doc/lispref/minibuf.texi (Basic Completion): Add missing "@end defun".
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5ca3929b
CY
12010-05-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (redisplay_window): After redisplay, check if point is
4 still valid before setting it (Bug#6177).
5
f5b416d2 62010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7
8 * s/netbsd.h: If terminfo is found, use it in preference to
9 termcap. (Bug#6190) [Backport from trunk]
10
aeb77d46
CY
112010-05-20 Kevin Ryde <user42@zip.com.au>
12
13 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
14 (Voverriding_terminal_local_map, Vsystem_key_alist)
15 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
16
c3bb441d
SM
172010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18
19 * editfns.c (Fbyte_to_string): New function.
20
754790b6
CY
212010-05-18 Chong Yidong <cyd@stupidchicken.com>
22
23 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
24 prevent stack overflow if number of arguments is too large
25 (Bug#6214).
26
c8670ded
EZ
272010-05-11 Eli Zaretskii <eliz@gnu.org>
28
29 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
30
31 * w32fns.c: Include w32.h.
32 (Fw32_shell_execute): Decode the error message before passing it
33 to `error'. (Bug#6126)
34
3ffd4615 352010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
36
37 * ftfont.c: Fix incorrect parentheses of #if condition for
38 definining M17N_FLT_USE_NEW_FEATURE.
39
61a808e8
CY
402010-05-07 Chong Yidong <cyd@stupidchicken.com>
41
42 * Version 23.2 released.
43
5dcde606
AS
442010-04-30 Andreas Schwab <schwab@linux-m68k.org>
45
46 * composite.c (autocmp_chars): Save point as marker before calling
47 auto-composition-function (Bug#5984).
48
49 * lisp.h (restore_point_unwind): Add prototype.
50
51 * fileio.c (restore_point_unwind): Remove static attribute.
52
c4170e32
KH
532010-04-23 Kenichi Handa <handa@m17n.org>
54
55 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
56 new feature of libotf and m17n-flt.
57 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]: Call
58 OTF_check_features even if no specific feature is given.
59 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
60 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
61 that OUT is NULL. Use OTF_drive_gsub_with_log and
62 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
63 OTF_drive_gpos.
64 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]: Setup
66 mflt_enable_new_feature and mflt_try_otf.
67
e42cd1a7
JB
682010-04-19 Juanma Barranquero <lekktu@gmail.com>
69
70 * dired.c (Ffile_attributes): Fix typo in docstring.
71
79353a53
AR
722010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
73
74 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
75 NSInteger (Bug#5811).
76
658b9b93
YM
772010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
78
79 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
80 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
81
16009a0e
YM
822010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
83
84 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
85
f016f225
JD
862010-04-07 Jan Djärv <jan.h.d@swipnet.se>
87
88 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
89 FRAME_LINE_TO_PIXEL_Y.
90
91 * xterm.c (x_set_window_size_1): Don't add border_width/height to
92 pixelwidth/height.
93
84257d93
CY
942010-04-05 Chong Yidong <cyd@stupidchicken.com>
95
96 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
97 terminal frames (Bug#5837).
98
95b1abcf
CY
992010-03-31 Chong Yidong <cyd@stupidchicken.com>
100
101 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
102 * nsterm.h: Fix prototype.
103
4a217bed
EZ
1042010-03-31 Eli Zaretskii <eliz@gnu.org>
105
106 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
107 in this function. (Bug#5703)
108
4f103e04
CY
1092010-03-31 Chong Yidong <cyd@stupidchicken.com>
110
111 * nsterm.h: Fix last change.
112
a6d676d9
CY
1132010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
114
115 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
116
67fee863
JD
1172010-03-30 Jan Djärv <jan.h.d@swipnet.se>
118
119 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
120 invisible (Bug#5766).
121
9ae6e189
CY
1222010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
123
124 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
125 HAVE_NS conditionals.
194d44e7 126 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
127
128 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
129 filename for the title.
130 (ns_set_doc_edited): Do nothing if the selected window is a
131 minibuffer window.
132
133 * nsterm.h: Add prototypes for ns_set_name_as_filename and
134 ns_set_doc_edited.
135
136 * nsterm.m: Remove unneeded prototype.
137
25c72475
GM
1382010-03-28 Glenn Morris <rgm@gnu.org>
139
140 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
141 in the DOC file. (Bug#5336)
142
f79a01db
CY
1432010-03-24 Chong Yidong <cyd@stupidchicken.com>
144
145 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
146
93318cbd
JD
1472010-03-20 Jan Djärv <jan.h.d@swipnet.se>
148
149 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
150
151 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
152
153 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
154
ad13a3ee
YM
1552010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156
157 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
158 XLoadQueryFont.
159
fbdc1721
KH
1602010-03-16 Kenichi Handa <handa@m17n.org>
161
162 * coding.c (decode_coding_ccl): Fix previous change for the
163 multibyte case.
fb608df3
KH
164 (encode_coding_ccl): Don't setup ccl program here. Fix for the
165 case that the output buffer is fullfilled.
166 (encode_coding): Setup ccl program here.
fbdc1721 167
35cd7cd6
CY
1682010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
169
170 * editfns.c (Fformat): Account for string precision when computing
171 field width (Bug#5710).
172
618db430
SM
1732010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
174
c0335e02
SM
175 Make it possible to C-g in a tight bytecode loop again (bug#5680).
176 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
177 (QUIT): Use it to consolidate code and remove redundancy.
178 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
179
254c06a8
SM
180 * regex.c (regex_compile): Setup gl_state as well.
181
618db430
SM
182 * syntax.c (skip_chars): Setup gl_state (bug#3823).
183 (in_classes): Use CONSP before XCAR/XCDR.
184
233f0c9f
CY
1852010-03-03 Chong Yidong <cyd@stupidchicken.com>
186
187 * keymap.c (Fwhere_is_internal): Use Fequal to compare
188 definitions, so that keyboard macros are correctly handled
189 (Bug#5481).
190
75f80e63
EZ
1912010-03-02 Eli Zaretskii <eliz@gnu.org>
192
193 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
194 text that could be relocated inside the call to emacs_mule_char.
195 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
196 (CODING_DECODE_CHAR): Add a comment describing its purpose.
197
dcfb9bc4
KH
1982010-03-02 Kenichi Handa <handa@m17n.org>
199
fc9a17bc
KH
200 * character.c (parse_str_as_multibyte): Fix handling of the
201 multibyte form of raw-bytes.
202 (str_as_multibyte): Likewise.
203
dcfb9bc4
KH
204 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
205 form of raw-bytes.
206
412c01b6
CY
2072010-02-28 Chong Yidong <cyd@stupidchicken.com>
208
209 * charset.c (load_charset_map_from_file)
210 (load_charset_map_from_vector): Zero out allocated
211 charset_map_entries before using them.
212
df7e1ea0
AS
2132010-02-27 Andreas Schwab <schwab@linux-m68k.org>
214
215 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
216
fe69a722
CY
2172010-02-27 Chong Yidong <cyd@stupidchicken.com>
218
4ed28cf4
CY
219 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
220 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 221
7379cfce
KH
2222010-02-26 Kenichi Handa <handa@m17n.org>
223
f88cc4d6
KH
224 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
225
7379cfce
KH
226 * xdisp.c (reseat_to_string): Fix previous change.
227
cf2fdcfb
CY
2282010-02-26 David Reitter <david.reitter@gmail.com>
229
230 * nsfont.m (nsfont_draw): ns_antialias_text should be a
231 Lisp_Object (Bug#4736).
232
cc6c7c75
KH
2332010-02-25 Kenichi Handa <handa@m17n.org>
234
235 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
236
32e737d7
JD
2372010-02-24 Jan Djärv <jan.h.d@swipnet.se>
238
239 * xterm.c (XTflash): Move declarations before statements.
240
241 * gtkutil.c (xg_get_gdk_display): Remove (unused).
242 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
243 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
244 (xg_create_tool_bar): Remove unused variables.
245 (x_wm_set_size_hint): Move declarations before statements.
246 (xg_create_frame_widgets): Remove variable grav,
247
676cae9f
CY
2482010-02-21 Chong Yidong <cyd@stupidchicken.com>
249
250 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
251
886cc2b8
SM
2522010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
253
254 * term.c (fatal): Add a final \n if needed (bug#5596).
255
ddb2d8e2
CY
2562010-02-18 Chong Yidong <cyd@stupidchicken.com>
257
258 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
259
2a4f8d3d
GM
2602010-02-18 Glenn Morris <rgm@gnu.org>
261
262 * callint.c (Finteractive): Doc fix.
263
ebaf11b6
KH
2642010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
265
886cc2b8
SM
266 * coding.c (record_conversion_result):
267 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
268 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
269 memory allocation error.
270
d0396581
KH
2712010-02-17 Kenichi Handa <handa@m17n.org>
272
886cc2b8
SM
273 * coding.c (decode_coding_ccl): Don't setup ccl program here.
274 Fix for the case that the output buffer is fullfilled.
d0396581
KH
275 (decode_coding): Setup ccl program here. Keep looping when the
276 decoder stopped because the output buffer is
277 fullfilled (bug#5534).
278
279 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
280
98599f74
JD
2812010-02-13 Jan Djärv <jan.h.d@swipnet.se>
282
471e4f04 283 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 284 bug #5571.
886cc2b8 285 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 286 overdrawn.
98599f74 287
182659ae
JD
2882010-02-10 Jan Djärv <jan.h.d@swipnet.se>
289
290 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
291 doing_interact here.
292 (ice_connection_closed): New function.
293 (x_session_check_input, smc_die_CB, ice_io_error_handler)
294 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
295 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
296 returns I/O error.
297 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
298 bug #5512.
299
9be32c4e 3002010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
301
302 * nsfont.m (nsfont_open): The system's value for the font descent
303 is negative, so round it down to avoid clipping.
304
a2f3eb19
CY
3052010-02-06 Chong Yidong <cyd@stupidchicken.com>
306
307 * charset.c (load_charset_map_from_file)
308 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 309 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 310
3088147c
CY
3112010-02-05 Chong Yidong <cyd@stupidchicken.com>
312
313 * charset.c (load_charset_map_from_file): Allocate large
314 charset_map_entries structure on the heap rather than the stack.
315 (Bug#5526).
316
b57d9029
KH
3172010-01-31 Kenichi Handa <handa@m17n.org>
318
319 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 320 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 321
c67d885b
CY
3222010-01-31 Chong Yidong <cyd@stupidchicken.com>
323
324 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
325 <deactivated@gmail.com> (Bug#3605).
326
8fab2362
CY
3272010-01-31 David De La Harpe Golden <david@harpegolden.net>
328
329 * fileio.c (Frename_file): Correctly rename symlinks to
330 directories (Bug#5496).
331
cb2a62f2
CY
3322010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
333
334 * nsterm.m (ns_ring_bell): Handle visible bell like X.
335
944c7a26
AS
3362010-01-30 Andreas Schwab <schwab@linux-m68k.org>
337
338 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
339
c024ac08
CY
3402010-01-29 Chong Yidong <cyd@stupidchicken.com>
341
342 * frame.c (DEFAULT_ROWS): Change default to 35.
343
344 * xfns.c (x_default_font_parameter): Change default XFT font to
345 monospace-10 (Bug#3643).
346
af93af83
EZ
3472010-01-29 Eli Zaretskii <eliz@gnu.org>
348
349 * w32inevt.c (key_event): Remove unnecessary comparison of
350 event->uChar.AsciiChar with 128.
351
ca0eb708
CY
3522010-01-28 Chong Yidong <cyd@stupidchicken.com>
353
b242dbfc
CY
354 * fileio.c (Frename_file): Fix last change (Bug#5487).
355
ca0eb708
CY
356 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
357
358 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
359
45d45af5
JD
3602010-01-28 Jan Djärv <jan.h.d@swipnet.se>
361
362 * xfns.c (Fx_create_frame): Remove window size matching code from
363 2010-01-15.
364 (x_get_current_desktop, x_get_desktop_workarea): Remove
365
7e233730
JR
3662010-01-27 Jason Rumney <jasonr@gnu.org>
367
368 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 369 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 370
86e893e3
KH
3712010-01-27 Kenichi Handa <handa@m17n.org>
372
373 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 374 pattern string (Bug#4209).
86e893e3 375
8719abec
CY
3762010-01-27 David De La Harpe Golden <david@harpegolden.net>
377
378 * fileio.c (Frename_file): Call copy-directory and
379 delete-directory for directories, in order to handle cross-device
380 renaming (Bug#3353).
381
844794c8
JD
3822010-01-25 Jan Djärv <jan.h.d@swipnet.se>
383
aa3e13b5 384 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 385 sizes 24 and 10. Bug #3643.
844794c8 386
bd4b5750
SM
3872010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
388
8dc1adf6 389 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
390 * keymap.c (shadow_lookup): Add `remap' arg.
391 (describe_map, describe_vector): Update calls to shadow_lookup.
392 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
393 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
394 perform remapping during shadow_lookup check of remapped_sequences.
395
285d07e2
CY
3962010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
397
398 * image.c (png_load): Use png_sig_cmp instead of the obsolete
399 png_check_sig, which has been removed in libpng 1.4.
400
c6d09b8d
CY
4012010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
402
403 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
404 lacks this header file).
405
3d782998
YM
4062010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
407
408 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
409 as in Emacs 22.
410
2aff7c53
YM
4112010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
412
413 * lisp.h (make_pure_string): String pointer arg now points to const.
414
415 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
416 args now point to const.
417
74327f7a
EZ
4182010-01-22 Eli Zaretskii <eliz@gnu.org>
419
420 * lread.c (Fload): Don't treat files without .elc extension as
421 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
422 them. (bug#5303)
423
4d1e6632
KH
4242010-01-20 Kenichi Handa <handa@m17n.org>
425
426 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
427 treat the source as actual byte sequence.
428
1fdede8f
AM
4292010-01-19 Alan Mackenzie <acm@muc.de>
430
431 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 432 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
433 `signal_after_change_p' to `coherent_change_p', and make the
434 invocation of `modify_region' conditional on it.
435
67477f30
JD
4362010-01-19 Jan Djärv <jan.h.d@swipnet.se>
437
438 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
439 for debug purpose.
440 (syms_of_xsettings): Declare xft-settings.
441
244b023e
CY
4422010-01-18 Chong Yidong <cyd@stupidchicken.com>
443
444 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
445
617364fe
CY
4462010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
447
448 * xterm.c (event_handler_gdk): Block input (Bug#5037).
449
4fe22cdf
CY
4502010-01-16 Chong Yidong <cyd@stupidchicken.com>
451
452 * emacs.c (standard_args): Adjust arg priorities to reflect how
453 they are processed in startup.el.
454
e118d2be
AS
4552010-01-16 Andreas Schwab <schwab@linux-m68k.org>
456
457 * Makefile.in (lisp, shortlisp): Update.
458
523ae620
SM
4592010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
460
461 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
462 code, link the new kboard into all_kboard before running Lisp code,
463 and protect the new terminal with GCPRO (Bug#5365).
464 (x_term_init): Remove unused var `atom'.
465 (x_delete_display, x_delete_terminal): Remove unused var `i'.
466
f0d13888
JD
4672010-01-15 Jan Djärv <jan.h.d@swipnet.se>
468
469 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
470 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
471 to find out usable size of the desktop. Don't make frames larger than
ac146f82 472 this. Bug #3643.
f0d13888 473
cc320f07
KH
4742010-01-15 Kenichi Handa <handa@m17n.org>
475
476 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
477
7ffdf101
CY
4782010-01-15 Chong Yidong <cyd@stupidchicken.com>
479
480 * nsterm.m (Qnone): Define.
481
482 * nsfns.m (Qnone): Move definition to nsterm.m.
483
d12bd917
KH
4842010-01-14 Kenichi Handa <handa@m17n.org>
485
486 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
487 systems.
488
d9a7c140
KH
4892010-01-14 Kenichi Handa <handa@m17n.org>
490
491 Make auto-composition work on all buffers even if they are
492 fundamental mode.
493
494 * composite.c (Vauto_composition_mode): New variable.
495 (composition_compute_stop_pos): Check Vauto_composition_mode
496 instead of Vauto_composition_function.
497 (composition_adjust_point, Ffind_composition_internal): Likewise.
498 (syms_of_composite): Declare Lisp variable
499 "auto-composition-mode" here.
500
63286bb2
CY
5012010-01-13 Chong Yidong <cyd@stupidchicken.com>
502
503 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
504 during call to vendor-specific-keysyms (Bug#5365).
505
c2623ee7
YM
5062010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
507
508 * keyboard.c (input_available_signal) [SYNC_INPUT]:
509 Call SIGNAL_THREAD_CHECK (Bug#5333).
510
511 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
512 Call SIGNAL_THREAD_CHECK.
513
0b5397c2
SM
5142010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
515
516 Try to fix bug#5314. This is probably not the final word, tho.
517 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
518 recent-auto-save-p as a side-effect.
519 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
520 * buffer.c (Fkill_buffer, reset_buffer):
521 * editfns.c (Fsubst_char_in_region):
522 * fileio.c (Finsert_file_contents, Fdo_auto_save)
523 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
524
dc954cb2
KH
5252010-01-13 Kenichi Handa <handa@m17n.org>
526
527 Display buffer name, etc. in mode line by composing correctly.
528
529 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
530 STRING is not nil.
0b5397c2 531 (display_mode_element): Adjust for the change of
dc954cb2
KH
532 decode_mode_spec and display_line.
533 (decode_mode_spec): Change arg MULTIBYTE to STRING.
534 (display_string): Handle the case that STRING is non-null and
535 LISP_STRING is not nil.
536
0b5397c2
SM
537 * xterm.c (x_draw_composite_glyph_string_foreground):
538 Pay attention to s->face->overstrike.
dc954cb2
KH
539
540 * composite.c (composition_reseat_it): Don't check PT if STRING is
541 non nil.
542
4a00eaca
YM
5432010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
544
545 * keyboard.c (read_char): Don't apply previous change when current
546 buffer is unchanged by command execution.
547
60abb287
JD
5482010-01-12 Jan Djärv <jan.h.d@swipnet.se>
549
550 * keyboard.c (read_char): Return after executing from special map.
551
893db5bc
GM
5522010-01-12 Glenn Morris <rgm@gnu.org>
553
554 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
555 bug-gnu-emacs rather than emacs-pretest-bug.
556
4d03ece0
CY
5572010-01-11 Chong Yidong <cyd@stupidchicken.com>
558
559 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
560 initializing the Lisp variables that depend on them.
561
1df47e38
YM
5622010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
563
564 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
565 Clear areas that will not be updated after change of menu bar lines.
566 Clear the menu bar window's current matrix when the window gets empty.
567
2f1c6384
CY
5682010-01-09 Chong Yidong <cyd@stupidchicken.com>
569
e398c61c
CY
570 * intervals.h, textprop.c (extend_property_ranges): Return value
571 and args changed. Discard properties that begin at or after the
572 new end (Bug#5306).
573
574 * editfns.c (Fformat): Caller changed.
575
e5a29a10
CY
576 * nsterm.m (ns_set_default_prefs): Delete function.
577 (syms_of_nsterm): Initialize ns_command_modifier,
578 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
579 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
580
2f1c6384
CY
581 * xdisp.c (pos_visible_p): Check for invisible text at the correct
582 position (Bug#4040).
583
d427a9fa
EZ
5842010-01-09 Eli Zaretskii <eliz@gnu.org>
585
586 * editfns.c (Ffloat_time): Doc fix.
587
21b9df2f
JD
5882010-01-09 Jan Djärv <jan.h.d@swipnet.se>
589
590 * xfns.c (Fx_create_frame): Don't create frame larger than display
591 by default bug#3643.
592
4b00d3b1
YM
5932010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
594
595 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
596 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
597 windows above internal border.
598
599 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
600 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
601 windows above internal border.
602
603 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
604 tool bar windows specially.
605
606 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
607
608 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
609 specially.
610 (XTflash): Take account of menu bar height.
611
612 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
613 specially.
614
5075d853
JD
6152010-01-08 Jan Djärv <jan.h.d@swipnet.se>
616
ac146f82 617 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
618 also be true before we can return early (bug #5339).
619
474217c8
CY
6202010-01-06 David Reitter <david.reitter@gmail.com>
621
622 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
623 (Fns_display_usable_bounds): Rewrite, computing bounds properly
624 (Bug#3233).
625
c0e6d47d
JD
6262010-01-06 Jan Djärv <jan.h.d@swipnet.se>
627
d0cf45b7
JD
628 * font.c (font_open_entity): Enable chache and call cached_font_ok
629 for the driver if defined.
630 (QCuser_spec): New symbol.
631 (font_spec_from_name): Save name as user-spec.
632 (font_load_for_lface): Keep user-spec instead of name.
633 (font_open_by_name): Save name as user-spec.
634 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 635 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
636
637 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
638 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
639 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
640
641 * font.h (struct font_driver): Add cached_font_ok.
642
c0e6d47d
JD
643 * xterm.c (x_clear_frame): Queue draw for scroll bars.
644
7c583cd8
JD
6452010-01-05 Jan Djärv <jan.h.d@swipnet.se>
646
647 * xterm.c (x_new_font): Move code for setting rows/cols before
648 resizing ...
ac146f82 649 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
650
651 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
652 (xg_frame_resized, xg_frame_set_char_size):
653 Call xg_clear_under_internal_border.
7c583cd8 654 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 655
03f77f0a
CY
6562010-01-05 Chong Yidong <cyd@stupidchicken.com>
657
658 * keyboard.c (read_key_sequence): Catch keyboard switch after
659 making a new tty frame (Bug#5095).
660
2a1ef5be
KH
6612010-01-05 Kenichi Handa <handa@m17n.org>
662
663 * fontset.c (fontset_find_font): Fix getting the frame pointer.
664
e3eb1dae
SM
6652010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
666
667 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
668 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
669 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
670
777013f2
MA
6712010-01-03 Michael Albinus <michael.albinus@gmx.de>
672
673 * dbusbind.c (xd_add_watch): Improve debug message.
674 (xd_remove_watch): Improve debug message. If DATA is the session
675 bus, unset D-Bus session environment.
676 (Fdbus_init_bus): Pass the bus as argument to
677 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 678
8932b1c2
CY
6792010-01-01 Chong Yidong <cyd@stupidchicken.com>
680
87231e2c
CY
681 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
682
4801c5fa
CY
683 * lread.c (syms_of_lread): Make it clearer that these are the
684 names of loaded files (Bug#5068).
685
8932b1c2
CY
686 * eval.c (run_hook_with_args): Handle the case where the global
687 value has the obsolete single-function form (Bug#5026).
688
11e3c684
CY
6892009-12-27 Chong Yidong <cyd@stupidchicken.com>
690
691 * minibuf.c (Fall_completions): Minor optimization.
692
5b28ce35
EZ
6932009-12-26 Eli Zaretskii <eliz@gnu.org>
694
5ce6e4f4
JB
695 * .gdbinit (pgx): Fix display of composite glyphs.
696 Display cmp.from and cmp.to as well.
697 (pitx): Fix last change.
5b28ce35 698
bcffff46
KH
6992009-12-25 Kenichi Handa <handa@m17n.org>
700
701 * composite.h (composition_adjust_point): Update prototype.
702
703 * composite.c (composition_reseat_it): Don't make a composition
704 spanning over point.
705 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
706 composable characters.
707 (composition_adjust_point): New arg NEW_PT. Callers changed.
708
709 * keyboard.c (command_loop_1): Force redisplay if the last point
710 was within a composition.
711 (adjust_point_for_property): Don't adjust point for automatic
712 composition when called after buffer modification.
713
3f670e9a
EZ
7142009-12-19 Eli Zaretskii <eliz@gnu.org>
715
5ce6e4f4
JB
716 * .gdbinit (pitx): Don't use enum names, use their values.
717 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
718 (pgx): Don't use enum names, use their values.
719 (pitmethod): New helper command.
720 (pitx): Use it to display iteration method.
721 (pgrowit): New command.
722
ad903955
EZ
723 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
724
3f670e9a
EZ
725 Update dependencies in Makefile.in.
726
727 * Makefile.in (alloc.o): Depend on termhooks.h.
728 (atimer.o): Depend on blockinput.h.
729 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
730 and frame.h.
731 (callint.o): Depend on systime.h, coding.h, and composite.h.
732 (callproc.o): Depend on buffer.h.
733 (casefiddle.o): Don't depend on charset.h.
734 (casetab.o): Depend on character.h.
735 (ccl.o): Depend on composite.h.
736 (chartab.o): Depend on ccl.h.
737 (cm.o): Depend on dispextern.h.
738 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
739 (coding.o): Don't depend on $(INTERVALS_H).
740 (composite.o): Don't depend on dispextern.h explicitly (it's in
741 $(INTERVALS_H)). Depend on ccl.h.
742 (data.o): Depend on systime.h, coding.h, composite.h,
743 dispextern.h, font.h, and ccl.h.
744 (dired.o): Depend on composite.h.
745 (dispnew.o): Depend on coding.h. Don't depend explicitly on
746 composite.h (it's in $(INTERVALS_H)).
747 (doc.o): Depend on systime.h, coding.h, and composite.h.
748 (editfns.o): Don't depend explicitly on dispextern.h.
749 (emacs.o): Depend on frame.h and coding.h.
750 (eval.o): Depend on coding.h, composite.h, and xterm.h.
751 (fileio.o): Depend on frame.h and commands.h. Don't depend
752 explicitly on dispextern.h.
753 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
754 composite.h.
755 (fns.o): Don't depend on termhooks.h.
756 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
757 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
758 coding.h, $(INTERVALS_H), window.h, xterm.h.
759 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
760 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
761 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
762 fontset.h, ccl.h, and ftfont.h.
763 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
764 (gtkutil.o): Depend on dispextern.h and composite.h.
765 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
766 termhooks.h, and ccl.h.
767 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
768 (intervals.o): Depend on systime.h and coding.h.
769 (keyboard.o): Depend on composite.h and coding.h.
770 (keymap.o): Depend on coding.h and frame.h.
771 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
772 (macros.o): Depend on systime.h, coding.h, and composite.h.
773 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
774 and atimer.h.
775 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
776 dispextern.h explicitly.
0b5397c2
SM
777 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
778 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
779 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
780 (regex.o): Don't depend on charset.h.
781 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
782 (search.o): Don't depend explicitly on composite.h.
783 (sound.o): Depend on atimer.h and systime.h.
784 (syntax.o): Don't depend explicitly on composite.h.
785 (sysdep.o): Depend on coding.h and composite.h.
786 (term.o): Depend on xterm.h and buffer.h.
787 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
788 (textprop.o): Don't depend on dispextern.h explicitly.
789 (undo.o): Depend on dispextern.h.
790 (window.o): Depend on coding.h and termhooks.h. Don't depend on
791 dispextern.h and composite.h explicitly.
792 (xdisp.o): Depend on ccl.h.
793 (xfaces.o): Depend on coding.h and ccl.h.
794 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
795 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
796 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
797 ftfont.h.
798 (xgselect.o): New dependency.
799 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
800 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
801 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
802 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
803 (xsmfns.o): Depend on frame.h and dispextern.h.
804 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
805 sysselect.h.
806
7a6f7fea
AS
8072009-12-19 Andreas Schwab <schwab@linux-m68k.org>
808
809 * font.c (Fclear_font_cache): Pass correct cache argument to
810 font_clear_cache.
811
f4c21026
AS
8122009-12-16 Andreas Schwab <schwab@linux-m68k.org>
813
814 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
815 twice.
816
f7ab0997
CY
8172009-12-15 Chong Yidong <cyd@stupidchicken.com>
818
819 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
820 calling file-remote-p. Reported by Jim Meyering.
821
fa8e045a
MA
8222009-12-15 Michael Albinus <michael.albinus@gmx.de>
823
824 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 825 avoid compiler warnings. (Bug #5217)
fa8e045a 826
a63dba42
KH
8272009-12-14 Kenichi Handa <handa@m17n.org>
828
829 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
830 in 8-bit encoding.
831
5ce6e4f4 8322009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
833
834 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
835 tooltip windows.
836
223e5fc6
JD
8372009-12-13 Jan Djärv <jan.h.d@swipnet.se>
838
36acb2a7
JD
839 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
840 Xatom_net_window_type.
841
842 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
843 Xatom_net_window_type.
844
b8f00677
JD
845 * xterm.c (my_log_handler): New function.
846 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 847 so we can filter out buggy messages. (Bug #5120).
b8f00677 848
e5f0bc9a
JD
849 * xterm.c (xg_scroll_callback): Parameter list changed,
850 use parameter GtkScrollType to determine scroll/line/page.
851 Only allow dragging if a button < 4 is grabbed (bug #5177).
852 (xg_end_scroll_callback): New function.
853 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
854 xg_create_scroll_bar.
855
856 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
857 (scroll_end_callback): Remove.
858 (xg_create_scroll_bar): Add parameter end_callback, bind it to
859 button-release-event. Replace value-changed event with change-value,
860 bug #5177,
861 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
862 bug #5177.
863
864 * gtkutil.h (XG_LAST_SB_DATA): Remove.
865 (xg_create_scroll_bar): Add GCallback end_callback.
866
223e5fc6
JD
867 * xftfont.c (QClcdfilter): New variable.
868 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
869 (syms_of_xftfont): Initialize QClcdfilter.
870
3c055b77
JD
8712009-12-12 Jan Djärv <jan.h.d@swipnet.se>
872
873 * xsettings.c (struct xsettings): Add member seen.
874 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 875 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
876 (apply_xft_settings): Only update Xft settings with what member seen
877 indicates as new.
878
05fe33ff
EZ
8792009-12-12 Eli Zaretskii <eliz@gnu.org>
880
881 * dispextern.h (struct text_pos): Use EMACS_INT;
882 (struct glyph): Use EMACS_INT for charpos.
883 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
884 region_beg_charpos, region_end_charpos,
885 redisplay_end_trigger_charpos, and also for
886 iterator_stack_entry.end_charpos and
887 iterator_stack_entry.stop_charpos.
888
e8d7886a
JD
8892009-12-12 Jan Djärv <jan.h.d@swipnet.se>
890
5ce6e4f4 891 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
892 (xg_create_scroll_bar): Call scroll_end_callback on button release
893 event (bug #5177).
894 (xg_event_is_for_scrollbar): != replaced with ==.
895
d0db2ec8
KH
8962009-12-12 Kenichi Handa <handa@m17n.org>
897
898 * ftfont.c (struct ftfont_info): New member matrix.
899 (ftfont_open): Setup xftfont_info->matrix.
900 (MFLTFontFT): New member matrix.
901 (FLOOR, CEIL, ROUND): New macros.
902 (ftfont_get_metrics): Handle matrix transformation.
903 (ftfont_shape_by_flt): New arg matrix. Callers changed.
904
905 * xftfont.c (struct xftfont_info): New member matrix.
906 (xftfont_open): Setup xftfont_info->matrix.
907
9082009-12-10 Kenichi Handa <handa@m17n.org>
909
910 * xdisp.c (append_space_for_newline): Consider face-remapping.
911
2cc7b62f
AS
9122009-12-09 Andreas Schwab <schwab@linux-m68k.org>
913
b87dd913
AS
914 * xsettings.c: Include "keyboard.h".
915
eba5eb94
AS
916 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
917
2cc7b62f
AS
918 Fix implicit function declarations.
919 * cmds.c: Include "frame.h".
920 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
921 * frame.h: Move declaration of delete_frame outside of
922 HAVE_WINDOW_SYSTEM.
923
a4ef73c8
CY
9242009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
925
926 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
927
928 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
929 GTK builds.
930
944a300c
AS
9312009-12-07 Andreas Schwab <schwab@linux-m68k.org>
932
933 * unexelf.c (unexec): Don't search for .data twice.
934
022eef62
CY
9352009-12-05 Chong Yidong <cyd@stupidchicken.com>
936
426ac949
CY
937 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
938 if push failed.
939 (handle_line_prefix): Set avoid_cursor_p here. Check return value
940 of push_display_prop (Bug#5000).
941
022eef62
CY
942 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
943 value of font_list_entities (Bug#5085).
944
be95bee9
JB
9452009-12-04 Juanma Barranquero <lekktu@gmail.com>
946
947 Fix `string-to-number' to deal consistently with integers and floats.
948 * lread.c (isfloat_string): New argument ignore_trailing to accept all
949 trailing characters, not just whitespace.
950 (read1): Pass new arg 0 to keep old behavior.
951 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
952 trailing chars, as it is already done for integers. Doc fixes.
953 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
954
24c2d7ce
EZ
9552009-12-04 Eli Zaretskii <eliz@gnu.org>
956
0b5397c2
SM
957 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
958 Delete unused enumeration value.
24c2d7ce 959
7e694795
EZ
9602009-12-03 Eli Zaretskii <eliz@gnu.org>
961
962 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
963
84b31826
SM
9642009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
965
966 * process.c (Fmake_network_process): Fix up the tests for
967 "connectionless socket", so they DTRT for seqpacket sockets as well.
968
f00c449b
SM
9692009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
970
971 * process.c (Qseqpacket): New symbol.
972 (HAVE_SEQPACKET): New macro.
973 (Fmake_network_process): Accept new :type `seqpacket'.
974 (init_process): Add `seqpacket' feature when applicable.
975 (syms_of_process): Initialize Qseqpacket.
976
8096a0ff
YM
9772009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
978
979 * font.c (font_load_for_lface, font_open_by_name): Don't store name
980 if entity is Qnil.
981
3e0de07f
SM
9822009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
983
984 * print.c (print_preprocess): Preprocess the key_and_value table of
985 hashtables, even tho they're "hidden" (bug#5082).
986
abeafb2a
JD
9872009-11-29 Jan Djärv <jan.h.d@swipnet.se>
988
989 * frame.c (frame_make_pointer_invisible)
990 (frame_make_pointer_visible): Declare f before statements.
991
4bf47195
EZ
9922009-11-28 Eli Zaretskii <eliz@gnu.org>
993
994 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
995 omitted dependencies on lisp.h.
996
c525b3f2
JD
9972009-11-27 Jan Djärv <jan.h.d@swipnet.se>
998
ece2d4ed
JD
999 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1000 is NULL.
1001
1002 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1003
1004 * frame.c (frame_make_pointer_invisible)
3e0de07f 1005 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1006 frame.
1007
c525b3f2
JD
1008 * search.c (simple_search): Remove warning by making *p const.
1009
2f00e299
DN
10102009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1011
1012 * xdisp.c (power_letter): Remove duplicate const.
1013
084b049b
JD
10142009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1015
a1fadc6f
JD
1016 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1017
5ce6e4f4 1018 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1019 defaults (bug #5025).
1020
28259cac
SM
10212009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1022
1023 * insdel.c (adjust_markers_for_delete): Move it in the
1024 right direction! (bug#4803)
1025
e8e14166
YM
10262009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1027
1028 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1029
1030 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1031
86677b58
GM
10322009-11-24 Glenn Morris <rgm@gnu.org>
1033
1034 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1035
581e51e8
JD
10362009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1037
cfc86c7a
JD
1038 * Makefile.in: Must create deps for ecrt0.o in its rule.
1039
581e51e8
JD
1040 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1041 because that is what Gtk+ font dialog understands.
1042
1043 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1044 of Fcopy_sequence.
1045 (font_open_by_name): Put name given into QCname for font-object returned.
1046
1047 * frame.c (x_set_font): Save original font name as frame parameter
1048 font-parameter.
1049
1050 * xsettings.c (set_default_xft_settings): New function.
1051 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1052 is found.
1053
8b264ecb
AS
10542009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1055
1056 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1057 searching backwards through multibyte buffer.
1058
872870b2
JD
10592009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1060
1061 * xterm.c: #include xgselect.h.
1062 (x_initialize): Call xgselect_initialize.
1063
1064 * xsettings.c (something_changedCB): C++ comments => C comments.
1065 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1066 does that now.
1067
1068 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1069 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1070 (scroll_bar_button_cb): Remove.
5ce6e4f4 1071 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1072 event.
1073 (xg_create_scroll_bar): Don't bind button-press-event and
1074 button-release-event.
1075
1076 * process.c: Include xgselect.h if defined (USE_GTK) ||
1077 defined (HAVE_GCONF).
1078 (wait_reading_process_output): Call xg_select for the same condition.
1079
1080 * xgselect.c (xg_select): New function to better integrate with
1081 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1082
1083 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1084
1085 * Makefile.in (XOBJ): Add xgselect.o.
1086
62a6e103
AS
10872009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1088
0b5397c2
SM
1089 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1090 Remove ignored second argument. All callers changed.
62a6e103
AS
1091 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1092 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1093 * xdisp.c (string_char_and_length): Likewise.
1094
b0ca0f33
DN
10952009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1096
1097 * xterm.c (x_new_font):
1098 * print.c (print_object):
1099 * cmds.c (Fself_insert_command): Move declarations before statements.
1100
dd5a6279
CY
11012009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1102
1103 * s/cygwin.h: Remove unneeded linker flags.
1104
4a8e097d
JD
11052009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1106
0d1d0d26
JD
1107 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1108
1109 * xsettings.h: Declare xsettings_get_system_font.
1110
1111 * xsettings.c (xsettings_get_system_font): New function.
1112 (init_gconf): No use initiating gconf unless we have Xft also.
1113 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1114 HAVE_GCONF.
1115
4a8e097d
JD
1116 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1117 add a blank entry so it doesn't collapse into nothing.
1118
8ab1650e
SM
11192009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1120
1121 * lread.c (Funintern): Comment out last change.
1122
82c602f0
RS
11232009-11-19 Richard Stallman <rms@gnu.org>
1124
1125 * lread.c (Funintern): Error if symbol is t or nil.
1126
87e32266
SM
11272009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1128
1129 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1130 representation of Lisp integers.
1131 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1132
1b9ac145
AS
11332009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1134
1135 * lisp.h: Remove declaration of Ffont_get_system_font.
1136 * xfns.c: Move include of "xsettings.h".
1137 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1138
dfb3c4c6
JD
11392009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1140
87e32266
SM
1141 * xsettings.c (something_changedCB, Ffont_get_system_font):
1142 Check use_system_font.
dfb3c4c6
JD
1143 (syms_of_xsettings): DEFVAR font-use-system-font.
1144
9370c1d8
AS
11452009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1146
25fe851a
AS
1147 * xfns.c (x_default_font_parameter): Remove dead assignment.
1148
9370c1d8
AS
1149 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1150
637fa988
JD
11512009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1152
87e32266 1153 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1154 not have FC_LCD_*. #define them if not there.
a6eb20d8 1155
87e32266 1156 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1157
637fa988
JD
1158 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1159
1160 * xterm.c (handle_one_xevent): Call xft_settings_event for
1161 ClientMessage, PropertyNotify and DestroyNotify.
1162 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1163 Call xsettings_initialize.
1164
1165 * xftfont.c (xftfont_fix_match): New function.
1166 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1167 Call xftfont_fix_match after XftFontMatch.
1168
1169 * xfont.c (xfont_driver): Initialize all members.
1170
87e32266
SM
1171 * xfns.c (x_default_font_parameter):
1172 Try font from Ffont_get_system_font.
637fa988
JD
1173 Do not get font from x_default_parameter if we got one from
1174 Ffont_get_system_font.
87e32266 1175 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1176
1177 * w32font.c (w32font_driver): Initialize all members.
1178
1179 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1180
1181 * lisp.h: Declare syms_of_xsettings.
1182
87e32266
SM
1183 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1184 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1185
1186 * ftfont.c (ftfont_filter_properties): New function.
1187
1188 * frame.c (x_set_font): Remove unused variable lval.
1189
87e32266 1190 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1191
1192 * font.c (font_put_extra): Don't return if val is nil, it means
1193 boolean option is off.
1194 (font_parse_fcname): Collect all extra properties in extra_props
1195 and call filter_properties for all drivers with extra_props and
1196 font as parameter.
87e32266
SM
1197 (font_open_entity): Do not use cache, it does not pick up new
1198 fontconfig settings like hinting.
637fa988
JD
1199 (font_load_for_lface): If spec had a name in it, store it in entity.
1200
1201 * emacs.c (main): Call syms_of_xsettings
1202
1203 * config.in: HAVE_GCONF is new.
1204
1205 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1206 xsettings.o is new.
1207
5a942932
KH
12082009-11-17 Kenichi Handa <handa@m17n.org>
1209
1210 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1211 back to the default font in case that no suitable font is found.
1212
b7c7a4d1
SM
12132009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1214
1215 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1216 Suggested by Chad Brown <yandros@mit.edu>.
1217 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1218
072f1e39
JD
12192009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1220
1221 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1222
5d1e70a2
AS
12232009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1224
87e32266 1225 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1226
a53cfbe5
JD
12272009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1228
473a99b7
JD
1229 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1230 has a parent.
1231
a53cfbe5 1232 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1233 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1234
1235 * config.in: Generated (AUTO_DEPEND).
1236
f04bb9b2
MA
12372009-11-13 Michael Albinus <michael.albinus@gmx.de>
1238
b7c7a4d1 1239 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1240 Vdbus_registered_functions_table, because it contains also
1241 properties. Fix docstring.
b7c7a4d1 1242 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1243
8f11f7ec
SM
12442009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1245
1246 * alloc.c (mark_object): Don't reprocess marked strings.
1247 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1248 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1249
8a605fe8
KH
12502009-11-13 Kenichi Handa <handa@m17n.org>
1251
8f11f7ec 1252 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1253 semantics of Vword_combining_categories.
1254 (Vword_combining_categories): Describe the slight change of the
1255 semantics.
1256
241c4680
EZ
12572009-11-13 Eli Zaretskii <eliz@gnu.org>
1258
1259 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1260
1261 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1262
5d58e44c
SM
12632009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1264
1265 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1266
5e13f9d3
JB
12672009-11-12 Juanma Barranquero <lekktu@gmail.com>
1268
1269 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1270
cf54c754
DR
12712009-11-11 David Reitter <david.reitter@gmail.com>
1272
1273 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1274 variables to fix 2009-11-09 change.
1275
a4ada374
DN
12762009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1277
91433552
DN
1278 * process.c (ifflag_def): Make flag_sym constant.
1279 (Fnetwork_interface_info): Use a constant pointer.
1280 (ifflag_table):
1281 * xfns.c (cursor_bits):
1282 * xdisp.c (power_letter):
1283 * termcap.c (speeds, esctab):
1284 * sysdep.c (baud_convert):
1285 * keyboard.c (lispy_accent_codes, modifier_names):
1286 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1287 (jpeg_format, tiff_format, gif_format, svg_format)
1288 (interlace_start, interlace_increment, gs_format):
1289 * gtkutil.c (separator_names):
1290 * fringe.c (swap_nibble):
1291 * fns.c (base64_value_to_char, base64_char_to_value):
1292 * fileio.c (make_temp_name_tbl):
1293 * coding.c (suffixes): Make constant.
1294
f4265f6c
DN
1295 * frame.c (make_initial_frame):
1296 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1297 build_string.
1298 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1299
04420943
DN
1300 * s/freebsd.h:
1301 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1302
0a5d24ae
DN
1303 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1304 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1305
a4ada374
DN
1306 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1307 * xterm.c (syms_of_xterm):
1308 * xfaces.c (syms_of_xfaces):
1309 * xdisp.c (syms_of_xdisp):
1310 * lread.c (syms_of_lread):
1311 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1312 build_string.
91433552 1313
a4ada374
DN
1314 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1315
af98fc7f
SM
13162009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1317
8ab1650e 1318 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1319
e90292a9
JD
13202009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1321
1322 * keyboard.h: Declare timer_check.
1323
1324 * keyboard.c (timer_check_2): New function that does what the old
1325 timer_check did.
1326 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1327 returned, i.e. don't return -1 with timers pending.
1328
1329 * process.c: Remove extern declaration of timer_check.
1330
1331 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1332 even if timer_check returned -1.
1333
af98fc7f
SM
1334 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1335 xg_dialog_data.
e90292a9
JD
1336 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1337 the event loop.
1338 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1339 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1340 Destroy the dialog after xg_dialog_run.
1341
045b83c0
SM
13422009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1343
1344 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1345
1fb99a3a
JD
13462009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1347
1348 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1349
04e452cb
JB
13502009-11-09 Juanma Barranquero <lekktu@gmail.com>
1351
1352 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1353
ef7417fd
SM
13542009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1355
1356 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1357 w32menu.c, and nsmenu.m.
1358 Simplify the obsolete case where position is nil.
1359 (cleanup_popup_menu): New function, moved from nsmenu.m.
1360 (struct skp): Remove slot `notreal'.
1361 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1362 adjust callers.
1363 (single_menu_item): Adjust call to parse_menu_item.
1364 (syms_of_menu): Defsubr x-popup-menu.
1365 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1366 (keymap_panes): Don't export any more.
1367 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1368 (xmenu_show): Declare.
1369 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1370 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1371 * keyboard.h (parse_menu_item): Update declaration.
1372 * xmenu.c (Fx_popup_menu): Remove.
1373 (syms_of_xmenu): Don't defsubr x-popup-menu.
1374 * w32menu.c (Fx_popup_menu): Remove.
1375 (syms_of_w32menu): Don't defsubr x-popup-menu.
1376 * nsmenu.m (cleanup_popup_menu): Remove.
1377 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1378 moved to menu.c's Fx_popup_menu.
1379 (Fx_popup_menu): Remove.
1380 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1381 menu_items (it's done in menu.c already).
1382
424d6179
SM
13832009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1384
1385 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1386 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1387
c0df13a6 13882009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1389
1390 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1391 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1392 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1393 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1394
2de9f71c
SM
13952009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1396
1397 Let integers use up 2 tags to give them one extra bit and thus double
1398 their range.
1399 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1400 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1401 New macros.
1402 (enum Lisp_Type): Use them. Give explicit values.
1403 (Lisp_Type_Limit): Remove.
1404 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1405 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1406 Pay attention to USE_2_TAGS_FOR_INTS.
1407 (INTEGERP): Use LISP_INT_TAG_P.
1408 * fns.c (internal_equal): Simplify the default case.
1409 (sxhash): Use case_Lisp_Int.
1410 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1411 any more.
1412 (Ftype_of): Use case_Lisp_Int.
1413 (store_symval_forwarding): Take into account the fact that Ints can
1414 now have more than one tag.
1415 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1416 buffer_slot_type_mismatch):
1417 * xfaces.c (face_attr_equal_p):
1418 * print.c (print_object):
1419 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1420 Use case_Lisp_Int.
1421
323637a2
EZ
14222009-11-06 Eli Zaretskii <eliz@gnu.org>
1423
7ac65b38
EZ
1424 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1425
323637a2
EZ
1426 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1427 warning.
1428
e511451f
JD
14292009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1430
1431 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1432
1433 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1434
1435 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1436 ButtonPressRelease and MotionNotify (bug#4870).
1437
5e2327cf
DN
14382009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1439
5adc433e
DN
1440 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1441
d67b4f80
DN
1442 * xterm.c (syms_of_xterm):
1443 * xselect.c (syms_of_xselect):
1444 * xmenu.c (syms_of_xmenu):
1445 * xfns.c (syms_of_xfns):
1446 * xfaces.c (syms_of_xfaces):
1447 * xdisp.c (syms_of_xdisp):
1448 * window.c (syms_of_window):
1449 * w32fns.c (syms_of_w32fns):
1450 * undo.c (syms_of_undo):
1451 * textprop.c (syms_of_textprop):
1452 * terminal.c (syms_of_terminal):
1453 * syntax.c (syms_of_syntax):
1454 * sound.c (syms_of_sound):
1455 * search.c (syms_of_search):
1456 * print.c (syms_of_print):
1457 * minibuf.c (syms_of_minibuf):
1458 * macros.c (syms_of_macros):
1459 * keymap.c (syms_of_keymap, initial_define_key)
1460 (initial_define_lispy_key):
1461 * keyboard.c (syms_of_keyboard):
1462 * insdel.c (syms_of_insdel):
1463 * image.c (syms_of_image):
1464 * fringe.c (syms_of_fringe):
1465 * frame.c (syms_of_frame):
1466 * fontset.c (syms_of_fontset):
1467 * fns.c (syms_of_fns):
1468 * fns.c (syms_of_fns):
1469 * fileio.c (syms_of_fileio):
1470 * fileio.c (syms_of_fileio):
1471 * eval.c (syms_of_eval):
1472 * doc.c (syms_of_doc):
1473 * dispnew.c (syms_of_display):
1474 * dired.c (syms_of_dired):
1475 * dbusbind.c (syms_of_dbusbind):
1476 * data.c (syms_of_data):
1477 * composite.c (syms_of_composite):
1478 * coding.c (syms_of_coding):
1479 * cmds.c (syms_of_cmds):
1480 * charset.c (define_charset_internal, syms_of_character):
1481 * ccl.c (syms_of_ccl):
1482 * category.c (syms_of_category, init_category_once):
1483 * casetab.c (syms_of_casetab):
1484 * casefiddle.c (syms_of_casefiddle):
1485 * callint.c (syms_of_callint):
1486 * bytecode.c (syms_of_bytecode):
1487 * buffer.c (keys_of_buffer, syms_of_buffer):
1488 * alloc.c (syms_of_alloc):
1489 * process.c (syms_of_process, init_process):
1490 * lread.c (syms_of_lread, init_obarray):
1491 * font.c (build_style_table):
1492 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1493 intern_c_string, calls to make_pure_string with
1494 make_pure_c_string. Use pure_cons instead of Fcons.
1495
5e2327cf
DN
1496 * process.c (socket_options): Make it const.
1497 (set_socket_option, init_process): Use a const pointer.
1498
1499 * lread.c (intern_c_string): New function.
1500 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1501 (defvar_int): Uset it. Make the name const char*.
1502
1503 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1504 (defvar_int): Update prototypes.
1505 (DEFUN, EXFUN): Support for prototypes is now required.
1506 (intern_c_string): New prototype.
1507 (struct Lisp_Subr): Make symbol_name constant.
1508
1509 * font.c (struct table_entry): Remove unused member. Make NAMES
1510 constant.
1511 (weight_table, slant_table, width_table): Make constant.
1512
1513 * emacs.c (struct standard_args): Make name and longname constant.
1514
1515 * character.h (DEFSYM): Use intern_c_string.
1516
a56eaaef
DN
15172009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1518
1519 * alloc.c (make_pure_c_string): New function.
1520
1521 * eval.c (Fautoload): Purecopy all arguments.
1522
f6a07420
KH
15232009-11-05 Kenichi Handa <handa@m17n.org>
1524
1525 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1526 the buffer in case of replace.
1527
5d28d4b1
DN
15282009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1529
1530 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1531
b349d111
SM
15322009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1533
d528b1ce
SM
1534 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1535 when applicable (bug#4851).
1536
b349d111
SM
1537 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1538 (P_): Support for prototypes is now required.
1539
c38eb027
CY
15402009-10-31 Chong Yidong <cyd@stupidchicken.com>
1541
1542 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1543 (Bug#4827).
1544
0405f8d9
EZ
15452009-10-30 Eli Zaretskii <eliz@gnu.org>
1546
d528b1ce 1547 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1548
ca0a881a
DN
15492009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1550
1551 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1552
d528b1ce
SM
1553 * lread.c (Fload): Purecopy the file name when building
1554 Vpreloaded_file_list.
ca0a881a 1555
47e0e0e4
JR
15562009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1557
1558 * w32fns.c (syms_of_w32fns): Change default value of
1559 w32-scroll-lock-modifier to nil. (Bug#2827)
1560
057bce6f
JB
15612009-10-26 Juanma Barranquero <lekktu@gmail.com>
1562
782a943e 1563 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1564
242bc74c
AS
15652009-10-26 Andreas Schwab <schwab@redhat.com>
1566
1567 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1568
522d013a
JB
15692009-10-26 Juanma Barranquero <lekktu@gmail.com>
1570
1571 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1572 For delta < 0, skip check that only makes sense when the mini-window
1573 is going to be enlarged. (Bug#4534)
1574
18060980
CY
15752009-10-25 Chong Yidong <cyd@stupidchicken.com>
1576
1577 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1578 string in menu maps (Bug#4471).
1579
fec8f0fe
CY
15802009-10-24 Chong Yidong <cyd@stupidchicken.com>
1581
1582 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1583 FRAME_NS_VIEW on terminal frames (Bug#4765).
1584
10d66ec0
AS
15852009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1586
1cae01f7
AS
1587 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1588 DBUS_TYPE_UINTnn separately to get proper sign extension.
1589
58a12889
AS
1590 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1591 can properly handle unsigned types.
d528b1ce 1592 (make_uid, make_gid): Remove.
58a12889 1593
987c9327
AS
1594 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1595 types again.
1596
522d013a 1597 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1598 (system_process_attributes): Likewise.
1599
905a9ed3
DN
16002009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1601
1602 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1603
1604 * eval.c (Fautoload): Purecopy the filename. Simplify.
1605
1606 * category.c (Fdefine_category): Purecopy docstring.
1607
a599b3e8
AS
16082009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1609
7b792fc9
AS
1610 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1611
a599b3e8
AS
1612 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1613
b35ac83e
CY
16142009-10-23 Chong Yidong <cyd@stupidchicken.com>
1615
1616 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1617 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1618 (Bug#4775).
1619
e8903e00
SM
16202009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1621
1622 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1623 (init_fileio_once):
1624 * lisp.h (init_fileio_once): Remove.
1625 * emacs.c (main): Don't call init_fileio_once.
1626
8f43cbf3
DN
16272009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1628
1629 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1630
26898943
AS
16312009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1632
1633 * doprnt.c (doprnt): Fix overflow check.
1634
5c646d5a
JD
16352009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1636
3132a7ea
JD
1637 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1638
5c646d5a
JD
1639 * xterm.h (x_wait_for_event): Declare it.
1640
1641 * xterm.c (pending_event_wait): New variable.
1642 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1643 see pending_event_wait.eventtype.
1644 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1645 (x_new_font): Call change_frame_size with new rows/columns before we
1646 try to resize the frame.
5c646d5a 1647 (x_wait_for_event): New function.
d528b1ce
SM
1648 (x_set_window_size_1): Don't change gravity unless change_gravity
1649 is set.
5c646d5a
JD
1650 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1651 don't change frame size, instead wait for the ConfigureNotify.
1652 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1653 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1654 (x_initialize): Initialize pending_event_wait.
1655
1656 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1657 size.
1658
1659 * widget.c (EmacsFrameSetValues): Add comment.
1660 (EmacsFrameSetCharSize): Just call x_set_window_size.
1661
1662 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1663 x_wait_for_event.
d528b1ce 1664 (flush_and_sync): Remove again.
5c646d5a
JD
1665 (xg_get_font_name): Suggest monospace if no previous font is known.
1666
e9c1637d
SM
16672009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1668
1669 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1670 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1671
5a72cccb
YM
16722009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1673
1674 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1675 processing pending events when event is filtered for input method.
ab04798f 1676 (Bug#3681)
5a72cccb 1677
2629aa37
JB
16782009-10-20 Juanma Barranquero <lekktu@gmail.com>
1679
1680 * fns.c: Add #endif accidentally removed in previous change.
1681
c3417a74
DN
16822009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1683
1684 * fns.c: Remove code for unsupported system: MAC_OS.
1685 * image.c: Likewise. Include setjmp.h.
1686
9685cef2
JD
16872009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1688
1689 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1690 pixel -1 (bug #4742).
1691
d7306fe6
DN
16922009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1693
019d2c4c
DN
1694 * process.c (create_pty): Remove conditionals for no longer
1695 supported systems: UNIPLUS and RTU.
1696
ee6bacd4
DN
1697 * xterm.c:
1698 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1699
d7306fe6
DN
1700 * alloc.c: Do not define struct catchtag.
1701 * eval.c: Move struct catchtag definition ...
1702 * lisp.h: ... here.
1703
1704 * image.c: Move png.h #include earlier to avoid warnings.
1705
1706 * xterm.c:
1707 * xsmfns.c:
1708 * xselect.c:
1709 * xrdb.c:
1710 * xmenu.c:
1711 * xftfont.c:
1712 * xfont.c:
1713 * xfns.c:
1714 * xfaces.c:
1715 * xdisp.c:
1716 * window.c:
1717 * widget.c:
1718 * w32xfns.c:
1719 * w32uniscribe.c:
1720 * w32term.c:
1721 * w32select.c:
1722 * w32reg.c:
1723 * w32proc.c:
1724 * w32menu.c:
1725 * w32inevt.c:
1726 * w32heap.c:
1727 * w32font.c:
1728 * w32fns.c:
1729 * w32console.c:
1730 * w32.c:
1731 * w16select.c:
1732 * vm-limit.c:
1733 * unexsol.c:
1734 * unexec.c:
1735 * unexcw.c:
1736 * unexaix.c:
1737 * undo.c:
1738 * tparam.c:
1739 * textprop.c:
1740 * terminfo.c:
1741 * terminal.c:
1742 * termcap.c:
1743 * term.c:
1744 * syntax.c:
1745 * sound.c:
1746 * sheap.c:
1747 * search.c:
1748 * scroll.c:
1749 * region-cache.c:
1750 * regex.c:
1751 * ralloc.c:
1752 * process.c:
1753 * print.c:
b024548b
DN
1754 * nsterm.m:
1755 * nsselect.m:
1756 * nsmenu.m:
1757 * nsimage.m:
1758 * nsfont.m:
1759 * nsfns.m:
d7306fe6
DN
1760 * msdos.c:
1761 * minibuf.c:
1762 * menu.c:
1763 * marker.c:
1764 * macros.c:
1765 * keymap.c:
1766 * keyboard.c:
1767 * intervals.c:
1768 * insdel.c:
1769 * indent.c:
1770 * gtkutil.c:
1771 * ftxfont.c:
1772 * ftfont.c:
1773 * fringe.c:
1774 * frame.c:
1775 * fontset.c:
1776 * font.c:
1777 * fns.c:
1778 * floatfns.c:
1779 * filelock.c:
1780 * fileio.c:
1781 * emacs.c:
1782 * editfns.c:
1783 * dosfns.c:
1784 * doprnt.c:
1785 * doc.c:
1786 * dispnew.c:
1787 * dired.c:
1788 * dbusbind.c:
1789 * data.c:
1790 * composite.c:
1791 * coding.c:
1792 * cmds.c:
1793 * cm.c:
1794 * chartab.c:
1795 * charset.c:
1796 * character.c:
1797 * ccl.c:
1798 * category.c:
1799 * casetab.c:
1800 * casefiddle.c:
1801 * callproc.c:
1802 * callint.c:
1803 * bytecode.c:
1804 * buffer.c:
1805 * atimer.c: Include setjmp.h. (Bug#4643)
1806
fd5f21e6
SM
18072009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1808
4c0354d7
SM
1809 Remove leftover table unibyte_to_multibyte_table.
1810 * character.c (unibyte_to_multibyte_table): Remove.
1811 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1812 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1813 * character.h (UNIBYTE_TO_CHAR): New macro.
1814 (MAKE_CHAR_MULTIBYTE): Use it.
1815 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1816 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1817 (message_dolog, set_message_1):
1818 * search.c (Freplace_match):
1819 * editfns.c (Fcompare_buffer_substrings):
1820 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1821 (concat):
1822 * insdel.c (copy_text, count_size_as_multibyte):
1823 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1824 * term.c (produce_glyphs):
1825 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1826 * regex.c (RE_CHAR_TO_MULTIBYTE):
1827 * cmds.c (internal_self_insert):
1828 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1829
fd5f21e6
SM
1830 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1831
4418646e
DN
18322009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1833
1834 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1835
35f5c1d2
JB
18362009-10-16 Juanma Barranquero <lekktu@gmail.com>
1837
1838 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1839
a0cd8f6b
AR
18402009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1841
1842 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1843 still needed under Tiger.
1844
1845 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1846
1847 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1848 __Apple__.
1849
1850 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1851
01a8d3fa
KH
18522009-10-15 Kenichi Handa <handa@m17n.org>
1853
1854 * print.c (print_object): Escape a symbol like "2E10" too.
1855
bf6c75c9 18562009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1857
1858 Cleanups and changes for 64-bit compile under Snow Leopard.
1859 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1860
1861 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1862
c5959062 1863 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1864 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1865 cast argument.
1866 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1867 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1868
1869 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1870
1871 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1872 where appropriate.
1873
1874 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1875 where appropriate.
6e4780c5
JB
1876 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1877 Use stringWithUTF8String.
bf6c75c9
AR
1878 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1879
6e4780c5
JB
1880 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1881 Add formal protocol mention to inheritance.
bf6c75c9
AR
1882 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1883
6e4780c5
JB
1884 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1885 Fix printf format.
bf6c75c9
AR
1886 (ns_query_color): Use CGFloat where appropriate.
1887 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1888 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1889 argument.
1890
3d87f118
AR
1891 * config.in (NS_HAVE_NSINTEGER): Drop.
1892
a95c8102
AR
1893 * dbusbind.c (dbus-method-return-internal)
1894 (dbus-method-error-internal): Use long format in printf, and cast
1895 argument.
1896
1897 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1898 in printf, and cast argument.
1899
6873acca 1900 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1901 cast argument.
1902
9ec6f100
GM
19032009-10-11 Glenn Morris <rgm@gnu.org>
1904
1905 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1906
5be883cd
JD
19072009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1908
1909 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1910 menu bar with a small width so it doesn't enlarge the frame.
1911
d7a39b51
JB
19122009-10-08 Juanma Barranquero <lekktu@gmail.com>
1913
1914 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1915
0c2b6f8e
GM
19162009-10-06 Glenn Morris <rgm@gnu.org>
1917
1918 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1919 SOME_MACHINE_LISP (this enters indirectly via DOC).
1920
e02131a2
EZ
19212009-10-05 Eli Zaretskii <eliz@gnu.org>
1922
1923 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1924
b4744254
EZ
19252009-10-04 Eli Zaretskii <eliz@gnu.org>
1926
1927 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1928 Doc fix.
1929
dbf64827
JB
19302009-10-03 Martin Rudalics <rudalics@gmx.at>
1931
1932 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1933
e9a0aef8
MA
19342009-10-02 Michael Albinus <michael.albinus@gmx.de>
1935
d528b1ce 1936 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1937 used anymore outside fileio.c.
1938
1939 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1940
64eb2b56
JB
19412009-10-01 Juanma Barranquero <lekktu@gmail.com>
1942
1943 * lisp.h (Qdelete_directory_internal):
1944 Declare, instead of Qdelete_directory.
1945
1946 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1947
9d28c33e
SM
19482009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1949
1950 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1951
9d8f3bd9
MA
19522009-10-01 Michael Albinus <michael.albinus@gmx.de>
1953
9d28c33e 1954 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1955 Fdelete_directory. It is not a command anymore. It has no file
1956 name handler.
1957
9694740b
SM
19582009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1959
1960 * xdisp.c (get_next_display_element): Use an enum in last change.
1961
748e162f
KH
19622009-09-28 Kenichi Handa <handa@m17n.org>
1963
9694740b 1964 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1965 unibyte_display_via_language_environment in handling
1966 Vnobreak_char_display.
1967
17efd58d
AR
19682009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1969
1970 * nsterm.h (ns_app_name): New extern variable.
1971
1972 * nsterm.m (ns_app_name): New variable.
1973 (ns_term_init): Set and use it.
1974 (ns_term_shutdown): Use it.
1975
1976 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1977 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1978
1979 * nsfns.m (ns_set_name_iconic, ns_set_name)
1980 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1981 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1982
9694740b
SM
1983 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1984 Remove double-casting in client_data comparison.
31c2d412 1985
3208cb35
YM
19862009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1987
1988 * keyboard.c (make_lispy_event): Remember last wheel direction.
1989 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1990
b7d552d6
GM
19912009-09-26 Glenn Morris <rgm@gnu.org>
1992
1993 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1994 internal.elc. Add term/pc-win.elc.
1995 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1996 term/x-win.elc.
1997 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1998 term/w32-win.elc.
1999 (NS_SUPPORT): New.
2000 (lisp): Add NS_SUPPORT.
2001 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2002
4ff670a8
DR
20032009-09-25 David Reitter <david.reitter@gmail.com>
2004
2005 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2006 on Mac OS X 10.6+ (bug#4513).
2007
feabfb6c
JB
20082009-09-24 Juanma Barranquero <lekktu@gmail.com>
2009
2010 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2011 some parts of Emacs code (like font selection) don't grok them.
2012 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2013
de59072a
AS
20142009-09-24 Andreas Schwab <schwab@redhat.com>
2015
2016 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2017
a489517b
JB
20182009-09-24 Juanma Barranquero <lekktu@gmail.com>
2019
2020 * dired.c (Fdirectory_files): Fix typo in docstring.
2021
0592970c
AR
20222009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2023
2024 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2025 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2026 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2027 under GNUstep.
2028 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2029
2030 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2031 glyph advancement.
2032
48e8a88b
AR
20332009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2034
2035 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2036 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2037
2038 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2039 deleted (bug #4492).
2040
e14f0a78
AR
2041 * nsfont.m (Vns_reg_to_script): New lisp variable.
2042 (syms_of_nsfont): Declare it.
2043 (ns_registry_to_script): New function.
2044 (ns_get_req_script): Call it.
2045 (ns_findfonts): Don't give up on non-unicode registry.
2046
2047 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2048
5b650faa
SM
20492009-09-20 Tom Tromey <tromey@redhat.com>
2050
2051 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2052 batch mode (bug#4228).
2053
a489517b 20542009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2055
2056 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2057 carefully. (Bug #4339)
0bae4e09 2058
fcfe06f3
CY
20592009-09-18 Chong Yidong <cyd@stupidchicken.com>
2060
d798ba87 2061 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2062
31642728
AR
20632009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2064
2065 * emacs.c (inhibit_x_resources): Update doc string for NS.
2066 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2067 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2068
2069 * nsterm.h (ns_no_defaults): Remove.
2070
2071 * nsterm.m (ns_no_defaults): Remove.
2072 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2073 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2074 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2075 don't update the NSWindow itself.
2076 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2077 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2078
2079 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2080 ns_use_qd_smoothing.
2081
2082 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2083 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2084 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2085 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2086
8686ac71
JB
20872009-09-17 Juanma Barranquero <lekktu@gmail.com>
2088
2089 * emacs.c (inhibit_x_resources): New variable.
2090 (main) [HAVE_NS]: Don't process --quick command line option.
2091 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2092
2093 * lisp.h (inhibit_x_resources): Declare it extern.
2094
2095 * w32reg.c (x_get_string_resource):
2096 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2097
e227ba05
EZ
20982009-09-17 Eli Zaretskii <eliz@gnu.org>
2099
362654a6
JB
2100 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2101 Add lisp/term/internal.elc.
e227ba05 2102
742d40e8
SM
21032009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2104
2105 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2106 (bug#4461).
2107
005bd5a2
DN
21082009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2109
2110 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2111
2112 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2113 (OBJECTS_MACHINE): Remove, unused.
2114
f9af9719
SM
21152009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2116
2117 * frame.c (x_get_resource_string): Remove unused.
2118
0307c7d2
JD
21192009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2120
2121 * xterm.c (x_new_font): Call change_frame_size before calling
2122 x_set_window_size, in case frame size won't change.
2123
2124 * frame.c (x_set_font): Remove dead code.
2125
428b13d6
SM
21262009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2127
2128 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2129
5766c380
SM
21302009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2131
2132 * lread.c (Fload): Don't output a message after loading an obsolete
2133 package any more (done in Lisp now).
2134
2fd0161b
CY
21352009-09-12 Chong Yidong <cyd@stupidchicken.com>
2136
2137 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2138
bc5e75b6
SM
21392009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2140
2141 * keymap.c (Fwhere_is_internal): Use nconc2.
2142
c31c985e
AM
21432009-09-11 Alan Mackenzie <acm@muc.de>
2144
2145 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2146 batch mode.
2147
78012bd2
AS
21482009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2149
2150 * xdisp.c (display_mode_element): Detect cycles.
2151
9d889332
SM
21522009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2153
2154 * keymap.c (where_is_internal): Don't erroneously return nil right after
2155 filling the cache.
2156 (where_is_internal_1): Fix up typo.
2157
7ab5d780
GM
21582009-09-11 Glenn Morris <rgm@gnu.org>
2159
2160 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2161 share a common doc-string.
2162
5238a749
SM
21632009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2164
66d77eda
SM
2165 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2166 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2167
5238a749
SM
2168 * keymap.c (QCadvertised_binding): New constant.
2169 (syms_of_keymap): Initialize it.
2170 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2171 if applicable.
2172
19f48442
SM
21732009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2174
50d4ba39
SM
2175 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2176 (parse_menu_item): Streamline since bindings are recomputed all the
2177 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2178 more and don't support lmenu's menu-alias any more either.
2179
a88a5372
SM
2180 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2181 (where_is_internal): Strip it down to only traverse the keymaps.
2182 Move the cache handling from Fwhere_is_internal to here.
2183 (Fwhere_is_internal): Move the handling of remapping and the choice of
2184 the best binding from where_is_internal to here.
2185 Unify the cached/noncached paths, so remapping is also handled
2186 correctly when the cache is used, and so the cache can be used to
2187 speed up remap-handling when applicable.
2188 Give preference to non-remapped bindings.
2189 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2190 non-remapped bindings.
2191 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2192 command remapping.
2193
19f48442
SM
2194 * xdisp.c (display_mode_element): Move list length limit from 50 to
2195 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2196
599498c3 21972009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2198
2199 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2200
f9b7b5ac
SM
22012009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2202
a53af587
JB
2203 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2204 (Bug#4334)
2205
f9b7b5ac
SM
2206 * keymap.c (where_is_internal): Filter out shadowed remappings.
2207 Assume that where_is_internal returns unshadowed bindings to simplify
2208 the code and get rid of the gotos. Use ASIZE.
2209
04f4b72d
JD
22102009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2211
4da146f2
JD
2212 * xterm.c (x_focus_changed): If we get a focusout and pointer
2213 is invisible, make it visible.
2214
04f4b72d
JD
2215 * xterm.h: Remove condition for declaration of
2216 x_*_window_to_frame.
2217
7cef7ce3
SM
22182009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2219
2220 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2221 initial terminal as well.
2222
a54fa5b7
JD
22232009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2224
2225 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2226 x_menubar_window_to_frame.
a54fa5b7
JD
2227
2228 * xterm.c: Remove declarations also in xterm.h
2229 (XTmouse_position): Do not return valid positions
2230 for clicks in the menubar and the toolbar for Gtk+.
2231
2232 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2233 if the widget for the event has the same top level as a frame,
2234 return the frame.
2235 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2236 internal windows, bug #4122.
2237 (x_non_menubar_window_to_frame): Remove.
2238
5a021dd0
GM
22392009-09-02 Glenn Morris <rgm@gnu.org>
2240
2241 * buffer.c (default-major-mode): Move most of the doc from here...
2242 (major-mode): ... to here.
2243
548fe2f3
NR
22442009-08-30 Nick Roberts <nickrob@snap.net.nz>
2245
2246 * process.c (wait_reading_process_output): Keep the descriptor
2247 when pty is used by a non-child process, e.g., in I/O buffer of
2248 GDB this allows inferior to be restarted.
2249
e0840eef
EZ
22502009-08-29 Eli Zaretskii <eliz@gnu.org>
2251
2252 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2253 both branches into one.
2254
82e98df4
SM
22552009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2256
2257 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2258 (main): Use enable-multibyte-characters rather than
2259 default-enable-multibyte-characters. Output a warning message when
2260 running a unibyte session.
2261
890617cb
YM
22622009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2263
2264 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2265 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2266 (copy_data_segment): Also copy __program_vars section.
2267 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2268 (dump_it) [LC_DYLD_INFO]: Use it.
2269
2270 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2271
e7adeadc
EZ
22722009-08-28 Eli Zaretskii <eliz@gnu.org>
2273
2274 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2275 $(SRC)/buildobj.h.
2276 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2277 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2278 $(SRC)/buildobj.h.
2279 (clean): Add buildobj.h.
2280
3ed8bbdc
TZ
22812009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2282
2283 * print.c (print_object): Set escapeflag to 1 when printing
2284 hashtable keys and values.
2285
155a6764
SM
22862009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2287
2288 * lread.c (read_integer): Use doubles (and potentially return a float
2289 number) as we do in string-to-number.
2290 (read1): Use strtol to read integers, signal errors on strtol's
2291 overflow and use floats if strtol's output is too large for
2292 Elisp integers.
2293
877610de
EZ
22942009-08-27 Eli Zaretskii <eliz@gnu.org>
2295
2296 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2297 (make-buildobj-SH): Fix last change.
2298 (SRC): Move to before where it's first used.
2299
ef73e7be
KH
23002009-08-27 Kenichi Handa <handa@m17n.org>
2301
550c8289
KH
2302 * process.c (send_process): Use encode_coding_object instead of
2303 encode_coding_string to perform eol-conversion even if the string
2304 is unibyte.
2305
60afa08d
KH
2306 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2307 character.
2308
ef73e7be 2309 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2310 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2311
7b3a82d7
DN
23122009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2313
5654bf63
DN
2314 * callproc.c (Fcall_process): Remove always true #if.
2315
7b3a82d7
DN
2316 * lisp.h: Replace #if 0 code for checking with text pointing to
2317 the --enable-checking configure flag.
2318
2319 * emacs.c (main): Mention the --enable-profiling configure flag
2320 instead of using CFLAGS.
2321
878bde49
KR
23222009-08-26 Ken Raeburn <raeburn@raeburn.org>
2323
2324 * Makefile.in (buildobj.h): New target.
2325 (doc.o): Depend on it.
2326 (temacs${EXEEXT}): Don't generate buildobj.lst.
2327 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2328 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2329 ($(BLD)/doc.$(O)): Depend on it.
2330 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2331 provided by Eli Zaretskii.)
2332 ($(TEMACS)): Don't generate buildobj.lst.
2333 * doc.c: Include buildobj.h.
2334 (buildobj): New static variable.
2335 (Fsnarf_documentation): Use it, instead of opening and reading
2336 buildobj.lst.
2337
1574224c
MA
23382009-08-25 Michael Albinus <michael.albinus@gmx.de>
2339
2340 * dbusbind.c (Fdbus_call_method)
2341 (Fdbus_call_method_asynchronously): Use English numeric format for
2342 timeout values in doc string.
2343
d9da2f45
KH
23442009-08-25 Kenichi Handa <handa@m17n.org>
2345
ef73e7be
KH
2346 * alloc.c (mark_char_table): New function.
2347 (mark_object): Use mark_char_table for a char-table.
2348
d9da2f45
KH
2349 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2350 (CHAR_TABLE_REF): Use it.
2351
c8edcc01
KR
23522009-08-23 Ken Raeburn <raeburn@raeburn.org>
2353
2354 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2355 before invoking the newly build emacs to check for load-path
2356 shadowing.
2357
7763401b
GM
23582009-08-22 Glenn Morris <rgm@gnu.org>
2359
2360 * Makefile.in (bootstrap_exe): New variable.
2361 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2362 Use ${bootstrap_exe}.
2363
729eadda
EZ
23642009-08-22 Eli Zaretskii <eliz@gnu.org>
2365
2366 * coding.h (encode_coding_string): Don't encode unibyte strings.
2367 (Bug#4047)
2368
eb4c6ace
MA
23692009-08-22 Michael Albinus <michael.albinus@gmx.de>
2370
2371 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2372
2373 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2374 intended as hotfix only.
2375 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2376
36e34d1b
AR
23772009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2378
2379 * nsterm.m (ns_get_color): Update documentation properly for last
2380 change, and clean up loose ends in the code left by it. Fix
2381 longstanding bug with 16-bit hex parsing, and add support for
2382 yet another X11 format (rgb:r/g/b) for compatibility.
2383 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2384 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2385
f983eb8a
SM
23862009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2387
2388 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2389
3f56d3c6
MA
23902009-08-20 Michael Albinus <michael.albinus@gmx.de>
2391
2392 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2393 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2394 (xd_initialize, xd_pending_messages): Check, whether
2395 $DBUS_SESSION_BUS_ADDRESS is set.
2396
fb641d68
YM
23972009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2398
2399 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2400
2401 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2402
cf59a374
GM
24032009-08-20 Glenn Morris <rgm@gnu.org>
2404
2405 * emacs.c (system-type): Doc fix.
2406
1373f3be
SM
24072009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2408
2409 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2410 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2411
058ed861
MA
24122009-08-18 Michael Albinus <michael.albinus@gmx.de>
2413
1373f3be
SM
2414 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2415 New functions.
058ed861
MA
2416 (xd_initialize): Revert change from 2009-08-16.
2417
563a866e 24182009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2419
2420 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2421 font-group vector, return nil.
5fc05db0 2422
e42bdf01
CY
24232009-08-17 Chong Yidong <cyd@stupidchicken.com>
2424
2425 * process.c (status_notify): Don't perform redisplay.
2426 (Fdelete_process, list_processes_1, process_send_signal):
2427 Expliticly perform redisplay.
2428 (wait_reading_process_output): Always check process status, but
2429 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2430
4230ab74
KR
24312009-08-17 Ken Raeburn <raeburn@raeburn.org>
2432
1373f3be 2433 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2434 (XFLOAT_INIT): New macro for storing a float value.
2435 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2436 * fns.c (sxhash): Copy out the value of a float in order to
2437 examine its bytes.
2438 * dbusbind.c (xd_append_arg): Likewise.
2439
4230ab74
KR
2440 * emacs.c (main): Don't call syms_of_data twice.
2441
a0645cdd
MA
24422009-08-16 Michael Albinus <michael.albinus@gmx.de>
2443
2444 * dbusbind.c (xd_initialize): Add connection file descriptor to
2445 input_wait_mask, in order to let select() detect, whether a new
2446 message has been arrived.
ca4f31ea 2447 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2448
485db0ba
MA
24492009-08-15 Michael Albinus <michael.albinus@gmx.de>
2450
1373f3be
SM
2451 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2452 New functions.
485db0ba
MA
2453
2454 * lisp.h (xd_pending_messages): Declare.
2455
2456 * keyboard.c (readable_events): Call xd_pending_messages.
2457
b5b98ff4
CY
24582009-08-15 Chong Yidong <cyd@stupidchicken.com>
2459
1373f3be 2460 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2461
f8354c6e
CY
2462 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2463
b5b98ff4
CY
2464 * buffer.c (set_buffer_internal_1)
2465 (swap_out_buffer_local_variables): Check for unbound local
2466 variables (Bug#4138).
2467
8b9fc636
EZ
24682009-08-14 Eli Zaretskii <eliz@gnu.org>
2469
2470 * process.c (create_pty): Fix last change.
2471
ce959360
CY
24722009-08-13 Chong Yidong <cyd@stupidchicken.com>
2473
2474 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2475 (xbm_load_image): Caller changed.
64b807c9 2476 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2477
c7baf7e9
NR
24782009-08-13 Nick Roberts <nickrob@snap.net.nz>
2479
2480 * process.c (create_pty): New function.
2481 (Fstart_process): Use it to allow Emacs to just associate a pty
2482 with the buffer. See associated change in gdb-mi.el.
2483 (list_processes_1): Deal with no program name.
2484 (start_process_unwind): Use pid == -2 to mean no process.
2485
1ac9108a
SM
24862009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2487
2488 * cmds.c (nonundocount): New global variable.
2489 (keys_of_cmds): Initialize it.
2490 (Fself_insert_command): Use it to combine upto 20 sequential chars
2491 into a single undo entry, just like the Qself_insert_command code in
2492 keyboard.c does.
2493 Call frame_make_pointer_invisible, also like the Qself_insert_command
2494 code in keyboard.c does.
2495 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2496 than its own local replacement for it.
2497
e267324c
KR
24982009-08-10 Ken Raeburn <raeburn@raeburn.org>
2499
1ac9108a 2500 * fns.c (concat): Don't re-set string length to its current value.
77437343 2501
1ac9108a
SM
2502 * coding.h (decode_coding_string, encode_coding_string):
2503 Use SBYTES macro.
f0bed503 2504
1ac9108a 2505 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2506 (doprnt): Merge with doprnt1, discarding lispstrings code.
2507 * lisp.h (doprnt_lisp): Don't declare.
2508
416e006d
JL
25092009-08-07 Juri Linkov <juri@jurta.org>
2510
2511 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2512
6f7d5780
DN
25132009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2514
2515 * print.c (syms_of_print): Undo previous change.
2516
f19a0f5b
TZ
25172009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2518
2519 * lread.c (read1, syms_of_lread): Read hashtables back from the
2520 readable format.
2521
2522 * print.c (print_preprocess, print_object): Print hashtables fully
2523 and readably.
2524 (syms_of_print): Provide 'hashtable-print-readable.
2525
b9173dc2
AR
25262009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2527
2528 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2529 no family set.
2530 (nsfont_open): Handle case when entity has no family.
2531
1586503c
AR
25322009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2533
2534 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2535 element, not a list, for match case.
2536
087048cd
KH
25372009-07-28 Kenichi Handa <handa@m17n.org>
2538
2539 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2540 rigidly.
2541
2542 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2543 font_parse_xlfd. Check font properties more rigidly.
2544
780c2506
DN
25452009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2546
31fd7c5c
JB
2547 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2548 bsd-common.h.
780c2506 2549
a8c0cc18
KH
25502009-07-27 Kenichi Handa <handa@m17n.org>
2551
2552 * xfaces.c (face_with_height): Call font_clear_prop.
2553
4fbe2306
CY
25542009-07-26 Chong Yidong <cyd@stupidchicken.com>
2555
111d9af3
CY
2556 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2557
2558 * xterm.c (x_term_init): Use Qx.
2559
4fbe2306
CY
2560 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2561
1ac9108a 2562 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2563 (ns_get_color): Revert 2009-07-16 change.
2564
beb0b7f9
EZ
25652009-07-25 Eli Zaretskii <eliz@gnu.org>
2566
2567 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2568 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2569
2baf5e76
KR
25702009-07-25 Ken Raeburn <raeburn@raeburn.org>
2571
1ac9108a
SM
2572 * coding.h (decode_coding_string, encode_coding_string):
2573 Use SCHARS macro.
8890e5f5 2574
2baf5e76 2575 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2576 (load_depth): Delete.
2baf5e76
KR
2577 (Qload_in_progress): New variable.
2578 (load_unwind): Don't reference load_depth or load_in_progress.
2579 (Fload): Likewise; specbind Qload_in_progress instead.
2580 (init_lread): Don't initialize load_depth.
2581 (syms_of_lread): Initialize and protect Qload_in_progress.
2582
1395c6f5
AR
25832009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2584
2585 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2586
4e2f36cf
AR
25872009-07-23 Yavor Doganov <yavor@gnu.org>
2588
2589 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2590
5dd9a6f7
AR
25912009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2592
2593 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2594 Bugs 3792, 3720, 2402.
2595 (ns_lookup_indexed_color): Check for bad index.
2596 (ns_index_color): Init unused slot to 0.
2597 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2598 Bug 3714, possibly 3082.
5dd9a6f7 2599
c902b920
JR
26002009-07-22 Jason Rumney <jasonr@gnu.org>
2601
1ac9108a
SM
2602 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2603 Position IME window at cursor (Bug#2570).
c902b920
JR
2604 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2605 (globals_of_w32fns): Dynamically load functions required above.
2606
2607 * w32term.c (w32_draw_window_cursor): Send message to reposition
2608 any IME window.
2609
090101cf
CY
26102009-07-21 Chong Yidong <cyd@stupidchicken.com>
2611
2612 * fileio.c: Revert 2009-07-16 changes.
2613 (Vauto_save_include_big_deletions): New variable.
2614 (Fdo_auto_save): Disable auto-save only if
2615 auto-save-include-big-deletions is nil.
2616
e6583e3d
CY
26172009-07-21 Chong Yidong <cyd@stupidchicken.com>
2618
2619 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2620 the overflowed pixels into account (Bug#3879).
2621
ece435a5
KR
26222009-07-21 Ken Raeburn <raeburn@raeburn.org>
2623
2624 * lread.c (load_depth): New variable.
2625 (Fload, load_unwind, init_lread): Set it to the load recursion
2626 depth; set load_in_progress as a simple boolean based on the
2627 current load_depth. (Bug#3892)
2628
40b2d973
AR
26292009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2630
2631 * nsfont.m (ns_has_attribute): Remove.
2632 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2633
10be7e0d
JL
26342009-07-18 Juri Linkov <juri@jurta.org>
2635
2636 * process.c (Fset_process_query_on_exit_flag): Mention killing
2637 a buffer in docstring.
2638
fa055055
KH
26392009-07-17 Kenichi Handa <handa@m17n.org>
2640
2641 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2642
042f7b69
YM
26432009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2644
2645 * nsfns.m (Fns_set_alpha): Remove function.
2646 (syms_of_nsfns): Don't defsubr it.
2647
2648 * nsterm.m (ns_get_color): Remove incompatible color formats.
2649 (ns_color_to_lisp): Generate #rrggbb color format string.
2650
4be941e3
RS
26512009-07-16 Richard Stallman <rms@gnu.org>
2652
2653 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2654 (Fset_buffer_auto_saved): Handle save_length = -2.
2655
4e6b227d
CY
26562009-07-16 Chong Yidong <cyd@stupidchicken.com>
2657
2658 * xterm.c (Qx_gtk_map_stock): New var.
2659
2660 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2661 of calling intern each time.
2662
a1856973
YM
26632009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2664
2665 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2666 does tiling.
2667
2668 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2669
497e54d8
KH
26702009-07-14 Kenichi Handa <handa@m17n.org>
2671
72d36834
KH
2672 * font.c (font_vconcat_entity_vectors): New function.
2673 (struct font_sort_data): New member font_driver_preference.
2674 (font_compare): Check font_driver_preference.
2675 (font_sort_entities): The format of the first argument changed.
2676 (font_delete_unmatched): Likewise.
2677 (font_list_entities): The return type changed.
2678 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2679 (font_find_for_lface): Adjuste for the above changes.
2680 Don't suppress the checking of C even if the repertory supports it.
2681 (Flist_fonts): Adjust for the above changes.
72d36834 2682
1ac9108a
SM
2683 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2684 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2685 Reject a font who has adstyle property that is different from a
2686 langname derived from registry property.
1ac9108a 2687 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2688
b6046155
EZ
26892009-07-13 Eli Zaretskii <eliz@gnu.org>
2690
2691 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2692 local copy of dirfilename.
2693
fb6b6049
KH
26942009-07-13 Kenichi Handa <handa@m17n.org>
2695
e2402a5e
KH
2696 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2697 against max_char.
2698
fb6b6049
KH
2699 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2700 calling XSYMBOL (sym).
2701
65156807
EZ
27022009-07-11 Eli Zaretskii <eliz@gnu.org>
2703
1ac9108a
SM
2704 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2705 New function.
2706 (directory_files_internal) [WINDOWSNT]:
2707 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2708 the filesystem of the directory is fast or slow.
2709
2710 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2711 file name.
2712 (is_slow_fs): New function.
2713 (stat): Use it to determine whether to issue more system calls to
2714 get accurate file attributes, when w32-get-true-file-attributes is
2715 `local'.
2716
e0ab5fcf
JD
27172009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2718
2719 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2720 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2721 parameter font-parameter as default to the font dialog.
2722
784ceded
KH
27232009-07-10 Kenichi Handa <handa@m17n.org>
2724
2725 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2726
fb8edc0b
EZ
27272009-07-09 Eli Zaretskii <eliz@gnu.org>
2728
1ac9108a 2729 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2730
fb8edc0b
EZ
2731 * w32.c (stat): Treat UNC file names as residing on remote
2732 drives. (Bug#3542)
2733
635c75b1
KH
27342009-07-09 Kenichi Handa <handa@m17n.org>
2735
2736 * fontset.c (fontset_find_font): Fix previous change.
2737
c1d5ce94
MA
27382009-07-08 Michael Albinus <michael.albinus@gmx.de>
2739
2740 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2741 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2742 error flag.
2743
edb61b39
KH
27442009-07-08 Kenichi Handa <handa@m17n.org>
2745
374bf7e4
KH
2746 * fontset.c (fontset_find_font): Fix the logic of handling
2747 charset_matched.
2748 (font_for_char): Delete unused var.
2749 (generate_ascii_font_name): Delete it.
2750
edb61b39
KH
2751 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2752
2753 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2754 (encode_coding_sjis): Fix the code range check.
2755
0f3f018c
CY
27562009-07-07 Chong Yidong <cyd@stupidchicken.com>
2757
2758 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2759 (Fexpand_file_name): Copy string data properly (Bug#3772).
2760
fcaf6f3a
JD
27612009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2762
2763 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2764 first MapNotify.
2765
6809ca75
KH
27662009-07-07 Kenichi Handa <handa@m17n.org>
2767
2768 * character.h (unibyte_has_multibyte_table): Delete extern.
2769 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2770
2771 * charset.c (Fset_charset_priority): Update charset_unibyte.
2772 (syms_of_charset): Initialize charset_unibyte.
2773
2774 * character.c (unibyte_has_multibyte_table): Delete it.
2775 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2776 charset_unibyte.
2777 (multibyte_char_to_unibyte_safe): Likewise.
2778 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2779
1ac9108a 2780 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2781 (x_produce_glyphs): Likewise.
2782
2783 * .gdbinit (xcharset): Fix the treating $arg0.
2784
ad9e2d54
EZ
27852009-07-04 Eli Zaretskii <eliz@gnu.org>
2786
2787 Emulation of `getloadavg' on MS-Windows.
2788 * w32.c: Include float.h
2789 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2790 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2791 (get_native_system_info, get_system_times): New functions.
2792 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2793 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2794 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2795 g_b_init_get_system_times, and num_of_processors.
2796
0a3472c7
JR
27972009-07-03 Jason Rumney <jasonr@gnu.org>
2798
2799 * w32term.c (w32_initialize): Use standard types.
2800
80904120
EZ
28012009-07-03 Eli Zaretskii <eliz@gnu.org>
2802
2803 * dired.c (Ffile_attributes): Decode user and group names by the
2804 locale's encoding. (Bug#3443)
2805
6978862d
DN
28062009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2807
f8d23104
DN
2808 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2809 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2810
2811 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2812
2813 * term.c (init_tty): Remove spurious #ifdef.
2814
6978862d
DN
2815 * m/mips.h: Mention this file is also used for netbsd.
2816 * m/pmax.h: Remove file.
2817
e044e4fc
JD
28182009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2819
2820 * xterm.h (struct x_display_info): Add invisible_cursor.
2821 (struct x_output): Add current_cursor.
2822
2823 * xterm.c (XTtoggle_invisible_pointer): New function.
2824 (x_define_frame_cursor): Don't define cursor if invisible or the
2825 same as before. Set current_cursor.
2826 (x_create_terminal): Set toggle_invisible_pointer_hook.
2827
2828 * xfns.c (make_invisible_cursor): New function.
2829 (x_set_mouse_color): Call make_invisible_cursor.
2830 Set current_cursor.
2831 (x_window): Set current_cursor.
2832
2833 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2834
2835 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2836 inserting a character.
2837 (read_avail_input): Call frame_make_pointer_visible.
2838
2839 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2840 (frame_make_pointer_invisible, frame_make_pointer_visible):
2841 New functions.
e044e4fc
JD
2842 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2843
2844 * frame.h: Declare frame_make_pointer_invisible and
2845 frame_make_pointer_visible.
2846 (struct frame): Add pointer_invisible.
2847
574c8efa
JD
28482009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2849
7b507248
JD
2850 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2851 frame isn't visible.
2852 (xg_frame_resized): If width/height is -1, get size of window
2853 from X server.
2854
2855 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2856 for MapNotify.
2857
835bdaa7 2858 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2859 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2860 (flush_and_sync): Reintroduce.
574c8efa 2861
3f1c6666 28622009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2863
31fd7c5c 2864 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2865
2866 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2867 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2868
2869 * frame.h: Declare Qsticky.
2870
cad9ef74
JD
2871 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2872
2873 * nsfns.m (ns_frame_parm_handlers): Ditto.
2874
2875 * frame.c: Declare Qsticky.
2876 (frame_parms): Add sticky.
2877
2878 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2879
2880 * xterm.h: Declare x_set_sticky.
2881
2882 * xterm.c (x_set_sticky): New function.
2883
69b16610
JD
2884 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2885 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2886 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2887
2888 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2889
2890 * frame.c: Qmaximized is new.
2891 (x_set_frame_parameters): Do not handle fullscreen specially.
2892 Only set width and height if explicitly set.
2893 (x_set_fullscreen): Handle Qmaximized.
2894 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2895 (syms_of_frame): Initialize Qmaximized.
2896
1ac9108a
SM
2897 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2898 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2899
2900 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2901 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2902 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2903 set gravity to NorthWestGravity when USE_GTK.
2904 (set_wm_state): New function.
31fd7c5c 2905 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2906 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2907 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2908 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2909 to x_real_positions and x_fullscreen_adjust.
2910
2911 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2912 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2913 flush_and_sync.
2914 (xg_height_changed): New function.
2915 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2916 and gtk_window_set_policy. Set frame gravity after parsing the
2917 geometry string.
3f1c6666
JD
2918 (xg_update_frame_menubar, free_frame_menubar)
2919 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2920 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2921 Remove calls to xg_frame_set_char_size.
2922
fd503d99
KH
29232009-07-01 Kenichi Handa <handa@m17n.org>
2924
2925 * keyboard.c (decode_keyboard_code): New function.
2926 (tty_read_avail_input): Decode the input bytes if necessary.
2927
1ac9108a
SM
2928 * coding.c (setup_coding_system):
2929 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2930 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2931 use Qno_conversion.
2932
24ed93fb
YM
29332009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2934
2935 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2936
99061dfc
CY
29372009-06-30 Chong Yidong <cyd@stupidchicken.com>
2938
1ac9108a 2939 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2940
ff90fbde
JR
29412009-06-30 Jason Rumney <jasonr@gnu.org>
2942
2943 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2944 is already loaded.
2945 Set user model ID if supported (bug#1849).
2946
5f445726
JM
29472009-06-29 Jim Meyering <meyering@redhat.com>
2948
2949 Remove useless if-before-xfree test.
2950 * nsfont.m (nsfont_close): Remove useless test.
2951 * term.c (delete_tty): Likewise.
2952 * w32.c (system_process_attributes): Likewise.
2953 * w32font.c (w32font_close): Likewise.
2954 * xfaces.c (x_free_gc): Likewise.
2955 * xselect.c (buffer): Likewise.
2956
b9607587
AS
29572009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2958
2959 * process.c (send_process): Keep decoded string in a local
2960 variable and protect it from GC. (Bug#3521)
2961
89ba96f4
EZ
29622009-06-28 Eli Zaretskii <eliz@gnu.org>
2963
2964 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2965 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2966
098a1589
CY
29672009-06-28 Chong Yidong <cyd@stupidchicken.com>
2968
485422be
CY
2969 * xdisp.c (start_display, handle_face_prop)
2970 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2971 (redisplay_window, try_window_id, produce_image_glyph):
2972 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2973
098a1589
CY
2974 * xterm.c (x_update_window_begin, x_new_focus_frame)
2975 (x_scroll_bar_handle_click, handle_one_xevent)
2976 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2977 (x_make_frame_visible, x_make_frame_invisible)
2978 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2979 code chunks that are now obsolete.
2980
78c38319
MA
29812009-06-28 Michael Albinus <michael.albinus@gmx.de>
2982
2983 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2984 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2985 for hours, when optimzation is enabled.
2986 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2987 (xd_read_message): Make them static.
2988
4189ed40
CY
29892009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2990
2991 * term.c (turn_on_face): Allow simultaneously bold and dim
2992 terminal faces (Bug#3530).
2993
cd9b5e16
CY
29942009-06-27 Chong Yidong <cyd@stupidchicken.com>
2995
4e23bedb
CY
2996 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2997
cd9b5e16
CY
2998 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2999 truncation glyphs (Bug#3686).
3000
07cc3c35
GM
30012009-06-27 Glenn Morris <rgm@gnu.org>
3002
3003 * m/pmax.h: Restore file, with only netbsd portions.
3004
31fd7c5c 30052009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3006
cd9b5e16 3007 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3008
42d4a64f
KH
30092009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3010
3011 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3012 the arg FORCE_SYMBOL.
3013
930fe55b 30142009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3015
3016 * fontset.c (fontset_find_font): When a usable rfont_def is found
3017 in a fallback font-group, make it the first element of the group.
3018
57ebc3fd
CY
30192009-06-24 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3022
f084f942
KH
30232009-06-24 Kenichi Handa <handa@m17n.org>
3024
3025 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3026 set for C.
3027 (fontset_font): Record the availability of a font for C both in
3028 the realized fontsets of the current one and the default one.
3029
2f686c87
DN
30302009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3031
3032 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3033 conditional, it is always defined on AIX.
3034
666e158e
MB
30352009-06-23 Miles Bader <miles@gnu.org>
3036
3037 * window.c (Vrecenter_redisplay): New variable.
3038 (syms_of_window): Initialize it.
3039 (Qtty): New extern declaration.
3040 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3041
c6da7cd2
JM
30422009-06-23 Jim Meyering <meyering@redhat.com>
3043
1ac9108a
SM
3044 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3045 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3046 pointer dereferences are guaranteed to be valid.
c6da7cd2 3047
678dca3d
KH
30482009-06-23 Kenichi Handa <handa@m17n.org>
3049
74d75424
KH
3050 * emacs.c (main): Call init_font ().
3051
3052 * font.h (Vfont_log): Extern it.
3053 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3054
3055 * font.c (font_sort_entities, font_list_entities)
3056 (font_matching_entity, font_open_entity)
3057 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3058 (Vfont_log): Delete static.
3059 (font_log_env_checked): Delete this variable.
3060 (font_add_log): Don't check font_log_env_checked.
3061 (font_deferred_log): Check Vfont_log.
3062 (init_font): New function.
3063
678dca3d
KH
3064 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3065
3066 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3067
3068 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3069
3070 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3071
3072 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3073 (face_for_char): Don't call font_deferred_log here.
3074 (font_for_char): Likewise.
3075
8a668709
CY
30762009-06-22 Chong Yidong <cyd@stupidchicken.com>
3077
9a01ee33
CY
3078 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3079 rather than its background_width for drawing the overline and
3080 underline (Bug#489).
3081
3082 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3083 rather than its background_width for drawing the overline and
3084 underline (Bug#489).
ec7c9926
CY
3085 (xg_default_icon_file): New variable.
3086 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3087 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3088
8a668709
CY
3089 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3090 (load_overlay_strings): Remove externs.
3091 (fast_find_position): Function deleted.
3092 (mouse_face_from_buffer_pos): New function, based on
3093 fast_find_position. Correctly handle before-strings,
3094 display-strings, and after-strings (Bug#1220).
3095 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3096
4d4c02d8
CY
30972009-06-21 Chong Yidong <cyd@stupidchicken.com>
3098
1ac9108a 3099 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3100 (move_it_in_display_line_to, move_it_in_display_line_to)
3101 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3102
70243478
CY
31032009-06-21 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * Branch for 23.1.
3106
13087e59
JR
31072009-06-21 Jason Rumney <jasonr@gnu.org>
3108
3109 * w32term.c (keyboard_codepage): New static variable.
3110 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3111 (w32_read_socket) [WM_CHAR]: Use it to decode character
3112 input (bug#3237).
3113 (w32_initialize): Initialize it.
3114 (codepage_for_locale): New function.
3115
4735b74e
KR
31162009-06-20 Ken Raeburn <raeburn@raeburn.org>
3117
3118 * process.c (status_message): Pass Faset index argument as a lisp
3119 object, so as to work with USE_LISP_UNION_TYPE.
3120
0e727afa
YM
31212009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3122
3123 * coding.c (Ffind_coding_systems_region_internal):
3124 Cache checked characters.
3125
cf299835
KH
31262009-06-18 Kenichi Handa <handa@m17n.org>
3127
1ac9108a 3128 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3129
90f20d94
AS
31302009-06-18 Andreas Schwab <aschwab@redhat.com>
3131
3132 * xdisp.c (redisplay_internal): Check that the frame is still
3133 live after redisplay of its windows.
3134 (redisplay_windows): Check that the window is still live.
3135
7f1faf1c
KH
31362009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3137
3138 * coding.c (detect_coding_utf_16): Fix previous change.
3139
cc13543e
KH
31402009-06-16 Kenichi Handa <handa@m17n.org>
3141
3142 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3143 UTF-16 by checking the dispersion of Eth and Oth bytes.
3144
977b85f4
AS
31452009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3146
3147 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3148
66bd43d1
KH
31492009-06-15 Kenichi Handa <handa@m17n.org>
3150
3151 * process.c (status_message): Fix previous change. Be sure to
3152 decode a localized string.
3153
cb5ca9c5
YM
31542009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3155
3156 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3157 add comment explaining why.
3158
ec7709ba 31592009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3160
ec7709ba 3161 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3162
4b7f335c
AR
31632009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3164
3165 * nsfont.m (ns_attribute_value): Remove.
3166 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3167 (ns_has_attribute): Shrink the normal range.
3168 (ns_findfonts): Don't worry about requested spec in determining
3169 need for synthItal.
e41820ee 3170 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3171
73b26103
SZ
31722009-06-14 Seiji Zenitani <zenitani@mac.com>
3173
3174 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3175
5753e4da
KH
31762009-06-11 Kenichi Handa <handa@m17n.org>
3177
3178 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3179 overhang for the static composition case.
3180
3561b671
KH
31812009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3182
5753e4da
KH
3183 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3184 overhang for the automatic composition case.
3185
3561b671
KH
3186 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3187 composition case.
3188
852bbd41
CY
31892009-06-10 Chong Yidong <cyd@stupidchicken.com>
3190
3191 * xdisp.c (get_next_display_element): When handling wrap-prefix
3192 and line-prefix, treat \n as a control character (bug#3502).
3193
9903d1e6
KH
31942009-06-10 Kenichi Handa <handa@m17n.org>
3195
3196 * font.c (font_parse_family_registry): Fix for one-char foundry.
3197 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3198
0bcbaaaa
CY
31992009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3200
3201 * process.c (status_message): Fix handling of multibyte signal
3202 string (Bug#3499).
3203
40aa3f13
JM
32042009-06-09 Jim Meyering <meyering@redhat.com>
3205
1f80c7e2
CY
3206 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3207 color name is missing.
40aa3f13 3208
72d51285
KH
32092009-06-09 Kenichi Handa <handa@m17n.org>
3210
3211 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3212 FROM-CODE and TO-CODE are codepoints of CHARSET.
3213
c1d04d84
AR
32142009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3215
3216 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3217
32182009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3219
3220 Changes to support :script/:lang/:otf in NS font driver.
3221 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3222 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3223 indicate not part of font driver interface, and change callers.
3224 (ns_get_family): Remove pointless null check.
3225 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3226 ns_spec_to_descriptor, ns_descriptor_to_entity.
3227 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3228 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3229 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3230 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3231 (ns_get_req_script, ns_accumulate_script_ranges)
3232 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3233 New functions.
3234 (nsfont_list, nsfont_match): Use ns_findfonts.
3235 (nsfont_open): Use font descriptor instead of traits.
3236 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3237 (dump_glyphstring): Rename to ns_dump_glyphstring.
3238
c7eb9816
AR
3239 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3240
c1d04d84
AR
3241 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3242
3243 * fontset.c (fontset_from_font): Remove NS-specific code.
3244
ec7709ba 32452009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3246
3247 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3248 nonactive windows.
3249
31fd7c5c 32502009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3251
1ac9108a 3252 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3253
68852c13 32542009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3255
3256 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3257
6756cd1d
CY
32582009-06-07 Chong Yidong <cyd@stupidchicken.com>
3259
3260 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3261 account for the overflowing of newlines into the last glyph on the
3262 display line (Bug#3482).
3263
28bf482a
DR
32642009-06-05 David Reitter <david.reitter@gmail.com>
3265
ec7709ba
JB
3266 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3267 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3268 Fns_selection_exists_p, Fns_selection_owner_p.
3269
fdb55376
JR
32702009-06-03 Jason Rumney <jasonr@gnu.org>
3271
3272 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3273 available. (Bug#3379)
3274
05129fbe
KH
32752009-05-29 Kenichi Handa <handa@m17n.org>
3276
1ac9108a
SM
3277 * coding.c (get_translation_table):
3278 Check Venable_character_translation.
05129fbe 3279
ec7709ba 32802009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3281
ec7709ba
JB
3282 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3283 (x_make_frame_visible): Move frame to front rather than calling
15891144 3284 ns_raise_frame().
ec7709ba 3285 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3286 isn't key window.
ec7709ba 3287 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3288 drawRect may be called by NSView even if the frame is hidden.
3289
ec7709ba
JB
3290 * nsfns.m (Fx_create_frame): Follow other ports in
3291 determining visibility; default to t. Ensure async_visible is set.
15891144 3292
21f73755
EZ
32932009-05-23 Eli Zaretskii <eliz@gnu.org>
3294
3295 * dired.c (Ffile_attributes): Doc fix.
3296
34001e41
CY
32972009-05-22 Chong Yidong <cyd@stupidchicken.com>
3298
3299 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3300
46306a17
SM
33012009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3302
3303 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3304 and xfont_scratch_props.
3305 (syms_of_xfont): Do it here instead.
3306 (xfont_find_ccl_program): Delete, unused.
3307 (xfont_open): Delete unused var `i'.
3308
ef6e0694
KH
33092009-05-21 Kenichi Handa <handa@m17n.org>
3310
3311 * fontset.c (Qlatin): Don't make it static.
3312
46306a17
SM
3313 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3314 New functions.
ef6e0694
KH
3315 (xfont_scripts_cache, xfont_scratch_props): New variables.
3316 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3317 (xfont_list_pattern): Argument changed. Callers changed.
3318 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3319 (xfont_list): Don't reject a font spec with :script property.
3320 (xfont_has_char): Fix setting of encoding.
3321 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3322 xfont_scratch_props.
3323
33242009-05-19 Kenichi Handa <handa@m17n.org>
3325
46306a17 3326 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3327 Callers changed.
3328
33292009-05-18 Kenichi Handa <handa@m17n.org>
3330
3331 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3332
ac71ced7
SM
33332009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3334
3335 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3336 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3337
1c6d1051
YM
33382009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3339
3340 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3341 (x_delete_terminal): Dissociate resource database from display and
3342 then call XrmDestroyDatabase before closing display.
3343
9b9b779c
AR
33442009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3345
3346 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3347 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3348 whether selected frame is viable before raising it (based on patch
3349 by David Reitter), and improve commentary.
3350 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3351
cccd42d5
KH
33522009-05-15 Kenichi Handa <handa@m17n.org>
3353
3354 * font.c (Ffont_spec): Check arguments.
3355
337fbd17
CY
33562009-05-14 Chong Yidong <cyd@stupidchicken.com>
3357
3358 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3359 weight when testing attributes (Bug#3282).
3360
47a6002f
JD
33612009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3362
3363 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3364 what we expect to get in the next ConfigureNotify event.
3365
9cb363db
YM
3366 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3367 before Xft one (Bug#1696).
3368
b9126609
CY
33692009-05-07 David Reitter <david.reitter@gmail.com>
3370
3371 * nsfns.m (Fx_display_planes): Compute bitplanes using
3372 NSBitsPerPixelFromDepth (Bug#3207).
3373
27a69fd9
CY
33742009-05-10 Chong Yidong <cyd@stupidchicken.com>
3375
3376 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3377
00f37552
TTN
33782009-05-10 Ulrich Mueller <ulm@gentoo.org>
3379
3380 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3381
2d82a920
DR
33822009-05-07 David Reitter <david.reitter@gmail.com>
3383
ec7709ba
JB
3384 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3385 Respect mouse face background.
2d82a920 3386
46b0d52d
DR
33872009-05-07 David Reitter <david.reitter@gmail.com>
3388
ec7709ba
JB
3389 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3390 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3391 in ns_update_begin and ns_update_end.
3392
ce1b23bb
SM
33932009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3394
5996e1b7
SM
3395 * nsfns.m (ns_get_screen): Rewrite.
3396 Don't presume selected-frame is of type `ns'.
3397
ba98e3a0
SM
3398 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3399 all drivers.
3400
ce1b23bb
SM
3401 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3402
bcda200f
YM
34032009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3404
3405 * keyboard.h (add_user_signal): Fix typo in extern.
3406
3407 * lisp.h (add_user_signal): Remove extern.
3408
3409 * unexelf.c (unexec): Consider a section to precede the .bss section
3410 if its addresses overlap that of .bss.
3411 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3412 instead of dumping process.
3413
864660a2
SM
34142009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3417
50da4e56
SM
34182009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3419
3420 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3421
51520a1a
DN
34222009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3423
3424 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3425 any statements.
3426
409ea3a1
AS
34272009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3428
59c4c60f
AS
3429 * process.c (read_process_output): Make sure the current buffer is
3430 always restored.
3431
409ea3a1
AS
3432 * coding.c (record_conversion_result): Don't modify
3433 Vlast_code_conversion_error for successful result.
3434 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3435
56f00ed2
KH
34362009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3437
3438 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3439 (load_charset_map): Remove unnecessary code.
56f00ed2 3440
4491c9d2
DR
34412009-04-30 David Reitter <david.reitter@gmail.com>
3442
35f5b128 3443 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3444 through f24.
3445
6970f632
CY
34462009-04-30 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3449
3450 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3451 face_at_buffer_position.
3452 (face_before_or_after_it_pos, get_next_display_element)
3453 (note_mouse_highlight): Update face_at_buffer_position call.
3454
3455 * term.c (term_mouse_highlight):
3456 * msdos.c (IT_note_mouse_highlight):
3457 * fontset.c (Finternal_char_font):
35f5b128 3458 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3459
3460 * dispextern.h (face_at_buffer_position): Update prototype.
3461
0c616f63
KH
34622009-04-30 Kenichi Handa <handa@m17n.org>
3463
35f5b128 3464 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3465
ad3aaf33
AS
34662009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3467
3468 * callproc.c (Fcall_process): Fix GC protection. Make sure
3469 current buffer is always restored.
3470
c3c963a0
YM
34712009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3472
3473 * atimer.c (init_atimer): Also clear stopped_atimers.
3474
3475 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3476
7e3386cb
YM
3477 * process.c (create_process): Clean up merger residues of
3478 2008-07-17 change.
3479
91f68422
CY
34802009-04-29 Ulrich Mueller <ulm@gentoo.org>
3481
3482 * lread.c (Vread_circle): New variable.
3483 (read1): Disable recursive read if Vread_circle is nil.
3484
24b34550
KH
34852009-04-29 Kenichi Handa <handa@m17n.org>
3486
3487 * fontset.h (set_default_ascii_font): Delete extern.
3488
3489 * fontset.c (set_default_ascii_font): Delete this unused function.
3490
3491 * frame.c (x_set_font): When ARG is a font-object, check if the
3492 font-object matches with the ASCII font-spec of the frame's
9c358bda 3493 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3494
77bf07e1
AS
34952009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3496
3497 * fns.c (Flocale_info): Protect vector from GC during decoding.
3498
3499 * process.c (Fstart_process): Protect argv strings from GC during
3500 encoding.
3501
2c55aacf
AS
35022009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3503
3504 * sysdep.c: Include <ctype.h>.
3505
b892d3c9
DR
35062009-04-27 David Reitter <david.reitter@gmail.com>
3507
35f5b128 3508 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3509 Remove commented-out code.
3510
9d0644c4
JB
35112009-04-26 Johan Bockgård <bojohan@gnu.org>
3512
3513 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3514
b7053016
JR
35152009-04-25 Jason Rumney <jasonr@gnu.org>
3516
3517 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3518
4e8231f3
YM
35192009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3520
3521 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3522 Swap bytes in short integer if fringe bitmap width > 8.
3523
493dcf2c
KH
35242009-04-23 Kenichi Handa <handa@m17n.org>
3525
3526 * xfaces.c (Fx_list_fonts): If a font size is specified in
3527 PATTERN, set it in returned scalable fonts.
3528
401e9e57
CY
35292009-04-22 Chong Yidong <cyd@stupidchicken.com>
3530
708e05dc
CY
3531 * keyboard.c (Fset_input_meta_mode): Doc fix.
3532
3533 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3534
1ac9108a 3535 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3536
3537 * coding.c (Fterminal_coding_system): Doc fix.
3538
3539 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3540 (Fx_display_pixel_height, Fx_display_planes)
3541 (Fx_display_color_cells, Fx_server_max_request_size)
3542 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3543 (Fx_display_mm_height, Fx_display_mm_width)
3544 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3545 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3546 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3547 (check_x_display_info): Handle terminal objects instead of
3548 terminal ids.
3549
401e9e57
CY
3550 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3551 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3552 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3553 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3554
df80c7f0
KH
35552009-04-21 Kenichi Handa <handa@m17n.org>
3556
5a8f12af 3557 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3558 (font_score): Check AVGWIDTH too.
908567ef 3559
df80c7f0
KH
3560 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3561 worst case.
1ac9108a
SM
3562 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3563 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3564
705af33f
JR
35652009-04-19 Jason Rumney <jasonr@gnu.org>
3566
3567 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3568 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3569
3570 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3571 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3572 get_phys_cursor_geometry.
3573
b71ac3dd 3574 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3575 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3576 using get_phys_cursor_geometry.
3577
3578 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3579 correctly calculated.
3580
dc2933eb
JD
35812009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3582
1ac9108a
SM
3583 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3584 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3585 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3586 is deprecated.
3587
973e7849
AS
35882009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3589
3590 * font.c (font_put_frame_data): Use xfree instead of free.
3591
314d66f4
JB
35922009-04-17 Juanma Barranquero <lekktu@gmail.com>
3593
3594 * w32font.c (Qja, Qko): Remove declarations.
3595 (syms_of_w32font): Don't DEFSYM them.
3596
cf702558
CY
35972009-04-17 Chong Yidong <cyd@stupidchicken.com>
3598
3599 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3600
3601 * font.h (Qja, Qko): Extern them.
3602
3603 * ftfont.c (Qja, Qko): Remove declarations.
3604
3605 * xfont.c (Qja, Qko): Remove declarations.
3606
b50504f5
KH
36072009-04-17 Kenichi Handa <handa@m17n.org>
3608
bde25748
KH
3609 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3610 string from a vector to handle Latin-1 characters correctly.
3611
b50504f5
KH
3612 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3613 entity even if the cache hits.
3614
f4646fff
AS
36152009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3616
3617 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3618 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3619
e7deaab0
AS
3620 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3621 * lisp.h: Adjust prototypes.
3622
0a0e7d49
CY
36232009-04-16 Chong Yidong <cyd@stupidchicken.com>
3624
3625 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3626 change (Bug#3003).
3627
3c908a57
KH
36282009-04-16 Kenichi Handa <handa@m17n.org>
3629
1ac9108a 3630 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3631
3632 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3633 adstyle.
3634
3635 * ftfont.c (Qja, Qko): Don't make them static.
3636 (enum ftfont_cache_for): New enum.
3637 (fc_charset_table): Undo the previous change.
3638 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3639 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3640 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3641 non-scarable font, try to get AVERAGE_WIDTH.
3642 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3643 Change ft_face_cache from a list of a hash-table. Don't check
3644 `ja' and `ko' adstyle here.
3645 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3646 FTFONT_CACHE_FOR_CHARET.
3647 (ftfont_get_charset): Undo the previous change.
1ac9108a 3648 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3649 (ftfont_close): Likewise.
3650 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3651
3652 * font.c (font_sort_entites): Change the meaning of the arg
3653 BEST-ONLY. Don't optimize for VEC of lenght 1.
3654 (font_select_entity): Just return the value of font_sort_entites.
3655
3656 * xfaces.c (merge_face_vectors): Reflect font properties in
3657 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3658 font_clear_prop if a face attribute doesn't change.
3659
3c908a57
KH
3660 * charset.h (charset_ksc5601): Extern it.
3661
3662 * charset.c (charset_ksc5601): New variable.
3663 (Fdefine_charset_internal): Set charset_ksc5601.
3664 (init_charset_once): Initialize charset_ksc5601 to -1.
3665
d65859c3
DN
36662009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3667
3668 * fileio.c (history_delete_duplicates): Remove unused declaration.
3669
3670 * callint.c (history_delete_duplicates): New declaration.
3671 (Fcall_interactively): Remove command history duplicates when
3672 history_delete_duplicates is true.
3673
3ba010e5
EZ
36742009-04-14 Eli Zaretskii <eliz@gnu.org>
3675
3676 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3677
06f19b91
KH
36782009-04-14 Kenichi Handa <handa@m17n.org>
3679
3680 * font.c (Ffont_info): Fix docstring. Fix the second element of
3681 the returned value (bug#2949).
3682
2cce8bfc
CY
36832009-04-14 Chong Yidong <cyd@stupidchicken.com>
3684
3685 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3686
d156542d
KH
36872009-04-14 Kenichi Handa <handa@m17n.org>
3688
3689 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3690 encoding charset is ascii_compatible.
3691
3692 * charset.c (Fdefine_charset_internal): Make charset
3693 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3694 code_offset is 0, and covers all ASCII characters.
3695
86fa089e
SM
36962009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3697
3698 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3699 (ns_string_to_pasteboard_internal):
3700 * nsmenu.m (process_dialog):
3701 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3702 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3703 * lisp.h (Fx_load_color_file): Declare.
3704
a8a3728b
KH
37052009-04-13 Kenichi Handa <handa@m17n.org>
3706
1ac9108a 3707 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3708 (font_select_entity): Suppress the code to optimize for the same
3709 kind of fonts.
3710 (font_load_for_lface): Get a font that supports at least ASCII
3711 characters.
3712
3713 * ftfont.c (Qja, Qko): New variables.
3714 (fc_charset_table): Delete uniquifier data for iso8859-1.
3715 (ftfont_get_latin1_charset): New function.
3716 (get_adstyle_property): New function.
3717 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3718 bitmap fonts.
3719 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3720 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3721 `ko' or `ja'.
3722 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3723 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3724 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3725 property.
3726 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3727 (syms_of_ftfont): DEFSYM Qja and Qko.
3728
483670b5
KH
37292009-04-09 Kenichi Handa <handa@m17n.org>
3730
12b55765
KH
3731 * charset.c (map_charset_chars): For a charset of `superset'
3732 method, fix calculation of code range.
3733
483670b5
KH
3734 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3735 from the list of extra properties.
3736 (font_clear_prop): Be sure to delete `:name' font property.
3737
57d3b93b
KH
37382009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3739
b4b2c2ca
YM
3740 * dispnew.c (redraw_overlapping_rows): Fix detection of
3741 overlapping for topmost and bottommost rows.
3742
1ac9108a 3743 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3744
472c3609
JR
37452009-04-06 Jason Rumney <jasonr@gnu.org>
3746
3747 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3748
ab193662
KH
37492009-04-06 Kenichi Handa <handa@m17n.org>
3750
3751 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3752
3753 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3754
0c26f026
KH
37552009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3756
3757 * ftfont.c (ftfont_open): Fix checking of the return value of
3758 FT_Load_Char. Fix setting font->underline_thickness.
3759
e173bbce
CY
37602009-04-04 Chong Yidong <cyd@stupidchicken.com>
3761
3762 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3763 (Fterminal_parameters, Fterminal_parameter)
3764 (Fset_terminal_parameter): In doc string, refer to terminal
3765 objects rather than terminal ids.
3766
693a2698
EZ
37672009-04-04 Eli Zaretskii <eliz@gnu.org>
3768
3769 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3770 ret_lim_data. (Bug#2867)
3771
d5221487
CY
37722009-04-03 Chong Yidong <cyd@stupidchicken.com>
3773
3774 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3775 so they don't get wider than the window, matching 2006-01-23
3776 change to the partner function in xdisp.c (Bug#2800).
3777
223509a3
KH
37782009-04-03 Kenichi Handa <handa@m17n.org>
3779
3780 * print.c (print_object): Make each lowest sub_char_table start a
3781 new line (Bug#2866).
3782
74fcd0b1
KH
37832009-04-02 Kenichi Handa <handa@m17n.org>
3784
3785 * fontset.c (fontset_font): Record no-font when a fontset
3786 explicitly tells not to try another font-specs.
3787
c542407d
SM
37882009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3789
3790 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3791
e3869731
KH
37922009-03-30 Kenichi Handa <handa@m17n.org>
3793
d8d2f142
KH
3794 * fontset.c (fontset_from_font): Specify only registry in a
3795 font-spec for all characters supported by that registry.
3796
e3869731
KH
3797 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3798 even if HAVE_M17N_FLT is not defined.
3799
5da5f805
CY
38002009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3801
3802 * ftfont.c: Conditionalize prototyping and use of
3803 ftfont_variation_glyphs.
3804
ab226c50
SM
38052009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3806
9628fed7
SM
3807 * frame.c (delete_frame): Work around compiler bug.
3808
3809 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3810 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3811 Some more EMACS_INT.
3812 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3813
3814 * xdisp.c (dump_glyph): Fix typo.
3815
ae19ba7c
SM
3816 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3817 (adjust_markers_gap_motion, adjust_markers_for_delete)
3818 (adjust_markers_for_insert, adjust_point)
3819 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3820 (make_gap, copy_text, count_size_as_multibyte, insert)
3821 (insert_and_inherit, insert_before_markers)
3822 (insert_before_markers_and_inherit, insert_1)
3823 (count_combining_before, count_combining_after, insert_1_both)
3824 (insert_from_string, insert_from_string_before_markers)
3825 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3826 (insert_from_buffer_1, adjust_after_replace)
3827 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3828 (replace_range_2, del_range, del_range_1, del_range_byte)
3829 (del_range_both, del_range_2, modify_region)
3830 (prepare_to_modify_buffer, signal_before_change)
3831 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3832 for buffer positions and sizes.
3833 * lisp.h: Adjust prototypes accordingly.
3834
3835 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3836 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3837 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3838
ab226c50
SM
3839 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3840
46dfb8fb
JD
38412009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3842
3843 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3844 lines and columns so we keep the same pixel height and width.
3845
3846 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3847 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3848 (x_handle_net_wm_state): New function to update frame parameter
3849 fullscreen.
3850 (x_term_init): Initialize atoms for _NET_WM_STATE.
3851
3852 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3853
d347e494
SM
38542009-03-27 Kevin Ryde <user42@zip.com.au>
3855
3856 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3857 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3858 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3859 (Fgpm_mouse_stop): Pass that new parameter.
3860 * termhooks.h (close_gpm): Adjust prototype.
3861
84db11d6
SM
38622009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3863
c95a5008
SM
3864 * lisp.h (Fx_focus_frame): Declare.
3865
84db11d6
SM
3866 * callint.c (Fcall_interactively): For '^' just delegate the work to
3867 handle-shift-selection.
3868 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3869
0a1958d6
CY
38702009-03-24 Chong Yidong <cyd@stupidchicken.com>
3871
0bfdff23
CY
3872 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3873
0a1958d6
CY
3874 * data.c (Qinteractive_form): New variable.
3875 (Finteractive_form): Use it.
3876
3877 * eval.c (Fcommandp): Use Qinteractive_form.
3878
58aec0d6
JR
38792009-03-24 Jason Rumney <jasonr@gnu.org>
3880
3881 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3882 Calculate total size precisely. Decode environment variables
3883 before substituting. (Bug#38)
3884
553dd618
KH
38852009-03-24 Kenichi Handa <handa@m17n.org>
3886
3887 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3888 encoding (Bug#2722).
553dd618 3889
c39ea606
JD
38902009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3891
3892 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3893 that gdpy is set.
3894
bc9b2b5e
AM
38952009-03-22 Alan Mackenzie <acm@muc.de>
3896
3897 * callint.c (Finteractive): Clarify the doc string - even
3898 promptless elements need \n separators.
3899
9f995a76
JR
39002009-03-22 Jason Rumney <jasonr@gnu.org>
3901
3902 * w32term.c (syms_of_w32term): Doc fix for
3903 x-use-underline-position-properties.
3904
22749e9a
EZ
39052009-03-21 Eli Zaretskii <eliz@gnu.org>
3906
3907 * w32.c (getpwuid): Change argument type to unsigned.
3908 (struct w32_id): Change type of `rid' member to unsigned.
3909 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3910 argument ID to unsigned. All callers changed.
3911 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3912
e00553bf
EZ
39132009-03-20 Eli Zaretskii <eliz@gnu.org>
3914
3915 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3916 negative, produce a float value.
3917
3918 * dired.c (make_uid, make_gid): New functions.
3919 (Ffile_attributes): Use them to avoid negative UID and GID.
3920
f761d6b6
JB
39212009-03-20 Juanma Barranquero <lekktu@gmail.com>
3922
3923 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3924 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3925 Fix typos in docstrings.
3926
d507f8d7
KH
39272009-03-19 Kenichi Handa <handa@m17n.org>
3928
3929 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3930 changed, use font_load_for_lface to get a new font object.
3931 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3932
3933 * frame.c (x_set_font): Handle the case that ARG is a cons.
3934
c68845e0
GM
39352009-03-19 Glenn Morris <rgm@gnu.org>
3936
3937 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3938
bfa49dd1
CY
39392009-03-19 Chong Yidong <cyd@stupidchicken.com>
3940
3941 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3942
8458d4c1
KH
39432009-03-19 Kenichi Handa <handa@m17n.org>
3944
3945 * charset.c (load_charset_map_from_file): When a mapfile can't be
3946 loaded, signal an error.
3947
78e7d1fe
EZ
39482009-03-18 Eli Zaretskii <eliz@gnu.org>
3949
3950 * dired.c (Ffile_attributes): Make sure UID and GID are always
3951 positive, even if the value is too large for a positive EMACS_INT.
3952 Doc fix.
3953
3954 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3955
5da9fdfa
YM
39562009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3957
3958 * xmenu.c (xdialog_show): Move Fredisplay call ...
3959 (Fx_popup_dialog): ... here.
3960
7519c40d
SM
39612009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3962
3963 * dired.c (file_name_completion): Disable the first optimization just
3964 installed, since it is not implemented correctly.
3965
2cd298e2
SM
39662009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3967
3968 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3969 only if the entry can affect bestmatch.
2cd298e2
SM
3970 Stop the search early, as Ftry_completion already does.
3971
48d37adf
CY
39722009-03-17 Chong Yidong <cyd@stupidchicken.com>
3973
e10c9c93 3974 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3975
9286b16a
CY
39762009-03-15 Chong Yidong <cyd@stupidchicken.com>
3977
3978 * keyboard.c (parse_menu_item): Don't display remappings as menu
3979 equivalent bindings (Bug#788).
3980
f7b146dc
JR
39812009-03-15 Jason Rumney <jasonr@gnu.org>
3982
3983 * w32term.h (WM_EMACS_PAINT): New message.
3984 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3985 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3986 before passing to lisp thread. (Bug#950)
3987
f761d6b6 39882009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3989
d93f9575
CY
3990 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3991 variable as it was never reset.
3992 (ns_term_init): Remove initialization of Lisp-settable defaults
3993 and ns_expand_space.
3994 (-setPanelFromDefaultValues): Remove ns_expand_space.
3995 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3996 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3997 i.e. no additional spacing, similar to Carbon port.
3998
d93f9575
CY
3999 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4000 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4001
305018ec
JD
40022009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4003
4004 * sound.c (alsa_configure): Remove call to deprecated
4005 snd_pcm_sw_params_set_xfer_align.
4006
f761d6b6 40072009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4008
4009 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4010 after clicking in a detached tool bar.
4011 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4012
46e722a9
SM
40132009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4014
348db3dd
SM
4015 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4016 int/Lisp_Object mixup).
46e722a9 4017
a3d16f39
KH
40182009-03-13 Kenichi Handa <handa@m17n.org>
4019
4020 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4021 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4022 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4023 (set_fontset_font): Change ARG to a vector. Handle range_list in
4024 ARG correctly.
4025 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4026 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4027 the above change.
4028 (fontset_from_font): Fix previous change.
fe24f56a 4029 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4030 entry. If FONTSET is the default fontset, don't set the extra
4031 slot of the returning char-table.
4032
b066e6b6
JB
40332009-03-12 Juanma Barranquero <lekktu@gmail.com>
4034
4035 * nsfns.m (Fx_close_connection): Doc fix.
4036 (Fns_do_applescript): Reflow docstring.
4037 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4038 (Fx_display_pixel_width, Fx_display_pixel_height)
4039 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4040 Fix typos in docstrings.
4041 (Fns_set_alpha): Fix typos in error messages.
4042
d472514e 40432009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4044
d472514e 4045 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4046 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4047 were used for such events.
4048
d472514e
JB
4049 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4050 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4051
d472514e 4052 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4053 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4054
fb930676
KH
40552009-03-11 Kenichi Handa <handa@m17n.org>
4056
ff85581a
KH
4057 * font.h (font_open_by_spec): Extern it.
4058
c50b7e98
KH
4059 * font.c (font_open_by_spec): New function.
4060 (font_open_by_name): Use font_open_by_spec.
4061
fb930676
KH
4062 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4063 fontset of the frame.
4064
4065 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4066 modify the default font of frames that use this fontset.
4067 (num_auto_fontsets): New variable.
4068 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4069 name. Be sure to set FONTSET_ASCII to the correct font name.
4070 (update_auto_fontset_alist): New function.
4071
df4e8455
JB
40722009-03-11 Juanma Barranquero <lekktu@gmail.com>
4073
4074 * makefile.w32-in: Update dependencies.
4075
0a375797
AR
40762009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4077
4078 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4079
61313fa3
SM
40802009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4081
4082 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4083
b55103fb
CY
40842009-03-10 Chong Yidong <cyd@stupidchicken.com>
4085
4086 * lread.c (Feval_buffer): Doc fix.
4087
dde2559c
KH
40882009-03-09 Kenichi Handa <handa@m17n.org>
4089
4090 * charset.c (Qfile_name_handler_alist): Extern it.
4091 (load_charset_map_from_file): Temporarily bind
4092 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4093
df4e8455 40942009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4095
47f588bb
GM
4096 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4097 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4098
4ddf94bd
AR
40992009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4100
4c9bdfc2
AR
4101 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4102 (x_set_window_size): Change back to calculated method of setting
4103 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4104 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4105 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4106
fe41ae9e
AR
4107 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4108
4c9bdfc2
AR
4109 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4110 accelerator in parens under GNUstep.
4111
825d0875
KH
41122009-03-06 Kenichi Handa <handa@m17n.org>
4113
4114 These changes are to detect incorrect composition sequence without
f3b3be74 4115 looking ahead the source. (Bug#2370)
825d0875
KH
4116
4117 * coding.h: Include "composite.h".
4118 (enum compisition_state): New enum.
4119 (struct compisition_status): New struct.
4120 (struct iso_2022_spec): New member cmp_status.
4121 (struct emacs_mule_spec): New struct.
4122 (struct coding_system): New members ctext_extended_segment_len and
4123 embedded_utf_8. Change the union member
4124 spec.emacs_mule_full_support to spec.emacs_mule.
4125
4126 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4127 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4128 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4129 (ADD_COMPOSITION_DATA): New arg nbytes.
4130 (emacs_mule_char): New arg cmp_status.
4131 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4132 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4133 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4134 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4135 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4136 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4137 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4138 (EMACS_MULE_COMPOSITION_END): New macro.
4139 (emacs_mule_finish_composition): New function.
4140 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4141 (decode_coding_emacs_mule): Avoid long looking ahead while
4142 handling composition.
4143 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4144 (ENCODE_COMPOSITION_RULE): New macro.
4145 (finish_composition): New function.
4146 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4147 (DECODE_COMPOSITION_START): New implementation.
4148 (DECODE_COMPOSITION_END): Likewise.
4149 (STORE_COMPOSITION_RULE): New macro.
4150 (decode_coding_iso_2022): Avoid long looking ahead while handling
4151 composition, CTEXT extended segment, and embedded UTF-8.
4152 (setup_coding_system): For a coding of type iso-2022, reset
4153 CODING_ISO_EXTSEGMENT_LEN (coding) and
4154 CODING_ISO_EMBEDDED_UTF_8 (coding).
4155 (get_translation): Delete arguments last_block, from_nchars,
4156 to_nchars. Callers changed.
4157 (produce_chars): Don't modify charbuf. Adjusted for the change of
4158 get_translation.
98a326f7 4159 (produce_composition): Adjust for the new annotation sequence.
825d0875 4160 (handle_composition_annotation): Likewise.
98a326f7 4161 (consume_chars): Adjust for the change of get_translation.
825d0875 4162
ccbc4452
AR
41632009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4164
4ddf94bd 4165 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4166
988a7ddb
KH
41672009-03-05 Kenichi Handa <handa@m17n.org>
4168
4169 * font.c (font_select_entity): New function.
4170 (font_find_for_lface): Use font_select_entity to select a font.
4171
4172 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4173 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4174 font with C restriction.
4175
98a326f7 41762009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4177
be1bce46 4178 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4179
10ea2b82
JR
41802009-03-04 Jason Rumney <jasonr@gnu.org>
4181
2c93b248 4182 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4183 characters that have already been read. (Bug#2569)
2c93b248 4184
10ea2b82
JR
4185 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4186 Log an error message if check_image_size failed.
4187 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4188 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4189
71a0c011
EZ
41902009-03-02 Eli Zaretskii <eliz@gnu.org>
4191
4192 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4193 when decoding process output.
4194
2f63bba8
RS
41952009-03-01 Richard M Stallman <rms@gnu.org>
4196
4197 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4198
4199 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4200
0a9564cb
EZ
42012009-02-28 Eli Zaretskii <eliz@gnu.org>
4202
4203 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4204 (decode_coding_emacs_mule, decode_coding_iso_2022)
4205 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4206 (decode_coding_raw_text, decode_coding_charset)
4207 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4208 Honor inhibit-eol-conversion. (Bug #2186)
4209
449148b3
JR
42102009-02-28 Jason Rumney <jasonr@gnu.org>
4211
4212 * coding.c (detect_coding_charset): If not checking latin extra,
4213 fail on characters between 0x80 and 0xA0. (Bug#2354)
4214
a4aee864
EZ
42152009-02-28 Eli Zaretskii <eliz@gnu.org>
4216
4217 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4218 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4219
d88bee5a
GM
42202009-02-27 Glenn Morris <rgm@gnu.org>
4221
4222 * callint.c (Finteractive): Doc fix.
4223
a808f22d
KH
42242009-02-27 Kenichi Handa <handa@m17n.org>
4225
4226 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4227
caf8d60c
CY
42282009-02-27 Chong Yidong <cyd@stupidchicken.com>
4229
4230 * font.c (font_style_to_value): Set value for unknown symbols to
4231 100 instead of 255.
b61137ea
CY
4232 (weight_table, slant_table, width_table): Treat "unspecified" as
4233 the default value.
caf8d60c 4234
1a0de25c
JB
42352009-02-26 Juanma Barranquero <lekktu@gmail.com>
4236
4237 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4238
8fc45744
JB
42392009-02-25 Juanma Barranquero <lekktu@gmail.com>
4240
107bd7d1
JB
4241 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4242 error as soon as a recursive load is detected.
8fc45744 4243
f097e223
AR
42442009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4245
4246 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4247 before caching.
4248
8810a12f
KH
42492009-02-24 Kenichi Handa <handa@m17n.org>
4250
4251 * fontset.c (fontset_find_font): Fix the condition for checking
4252 unavailable font.
4253
2c7d1565
GM
42542009-02-24 Glenn Morris <rgm@gnu.org>
4255
4256 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4257 whitespace that confuses documentation.
4258
a20878b6
MB
42592009-02-23 Miles Bader <miles@gnu.org>
4260
4261 * process.c (Flist_system_processes, Fprocess_attributes)
4262 (syms_of_process): Rename `system-process-attributes' to
4263 `process-attributes'.
4264
b3b58c01
AS
42652009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4266
1b3b981b
AS
4267 * coding.h (struct coding_system): Make safe_charsets a pointer to
4268 unsigned char.
4269 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4270 being 255.
4271 (SAFE_CHARSET_P): Likewise.
4272 (setup_iso_safe_charsets): Properly setup safe_charsets.
4273 (Fdefine_coding_system_internal): Likewise.
4274 (setup_coding_system): Likewise. Remove unneeded casts.
4275 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4276 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4277 unneeded casts.
4278
b3b58c01
AS
4279 * insdel.c (del_range_2): Don't modify gap contents when called
4280 from decode_coding_object. (Bug#1809)
4281
0b6f228c
CY
42822009-02-21 Chong Yidong <cyd@stupidchicken.com>
4283
4284 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4285 Qfont_object.
4286 (Ftype_of): Recognize font objects.
4287
4288 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4289
4290 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4291 moved to data.c.
4292
52f8870b
AR
42932009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4294
4295 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4296 async_iconified. Based on a patch by Christian Lynbech
4297 <christian.lynbech@tieto.com>.
4298 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4299
7087d5e9
GM
43002009-02-20 Glenn Morris <rgm@gnu.org>
4301
4302 * syntax.c (Fskip_chars_forward): Fix doc typo.
4303
41d2ceef
CY
43042009-02-20 Chong Yidong <cyd@stupidchicken.com>
4305
4306 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4307
1a3b7ca6
CY
43082009-02-19 Chong Yidong <cyd@stupidchicken.com>
4309
4310 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4311
73cce38d
KH
43122009-02-19 Kenichi Handa <handa@m17n.org>
4313
4314 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4315 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4316
a51092ee
DN
43172009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4318
4319 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4320
c423ecca
KH
43212009-02-18 Kenichi Handa <handa@m17n.org>
4322
4323 * font.c (font_check_otf_features): Fix handling of `nil' element.
4324 (Ffont_spec): Describe :lang and :otf in the docstring.
4325
4c1958f4
AS
43262009-02-16 Andreas Schwab <schwab@suse.de>
4327
4328 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4329 string.
4330
5704f39a
KH
43312009-02-16 Kenichi Handa <handa@m17n.org>
4332
4333 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4334 (Bug#1723)
5704f39a 4335
8f0085aa
CY
43362009-02-14 Chong Yidong <cyd@stupidchicken.com>
4337
a057d86a 4338 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4339
4340 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4341 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4342
aff01dd9
EZ
43432009-02-14 Eli Zaretskii <eliz@gnu.org>
4344
4345 * msdos.c (MAX_SCREEN_BUF): New macro.
4346 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4347 Encode the entire run of glyphs sharing the same face, instead of
4348 doing that one glyph at a time (fixes a bug with displaying
4349 double-size characters).
4350
ba301db3
AR
43512009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4352
4353 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4354
4355 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4356 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4357 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4358
4359 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4360 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4361
51d861de
SM
43622009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4363
ac146f82 4364 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4365 invisible areas.
4366
7fed8996
JR
43672009-02-12 Jason Rumney <jasonr@gnu.org>
4368
631ea4fb
JR
4369 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4370 (add_font_entity_to_list): Call check_face_name even when family
4371 is unspecified.
4372
cb4a3e42
JR
4373 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4374 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4375 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4376
7fed8996 4377 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4378 raster fonts. (Bug#2219)
7fed8996 4379
895416e3
KH
43802009-02-12 Kenichi Handa <handa@m17n.org>
4381
4382 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4383 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4384 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4385 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4386 (find_automatic_composition): While looking forward and backward,
4387 check static composition. Fix where to stop looking forward.
4388 (composition_adjust_point): Fix checking of static composition.
4389 (Fcomposition_get_gstring): Pay attention to
1dacf998 4390 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4391
4392 * lisp.h (fast_looking_at): Extern it.
4393
4394 * search.c (fast_looking_at): New function.
4395
51d861de 4396 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4397 <struct glyph>.u.cmp.to.
4398 (append_composite_glyph): Likewise.
4399
51d861de 4400 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4401 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4402 composition.
51d861de 4403 (append_composite_glyph): Adjust for the change of
895416e3
KH
4404 <strcut glyph>.u.cmp.to.
4405
8510724d
JB
44062009-02-11 Juanma Barranquero <lekktu@gmail.com>
4407
4408 * casetab.c (init_casetab_once):
4409 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4410 * font.c (font_update_lface):
4411 * fontset.c (Fnew_fontset):
4412 * ftfont.c (ftfont_drive_otf):
4413 * xfont.c (xfont_open):
4414 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4415
294fa707
SM
44162009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4417
4418 * fileio.c (Fwrite_region): !NILP -> CONSP.
4419
b5bfebec
AS
44202009-02-10 Andreas Schwab <schwab@suse.de>
4421
4422 * process.c (send_process): Properly relocate pointer into data
adab88bd 4423 when using encoded data. (Bug#2272)
b5bfebec 4424
cb84a2be
KH
44252009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4426
4427 * coding.c (detect_coding_charset): Fix previous change.
4428
89e09428
JR
44292009-02-08 Jason Rumney <jasonr@gnu.org>
4430
4431 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4432 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4433
4470a277
AS
44342009-02-07 Andreas Schwab <schwab@suse.de>
4435
4436 * unexelf.c (unexec): Fix error message.
4437
3175b12a
AR
44382009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4439
4440 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4441 when modal window is active. (Bug #2152)
3175b12a
AR
4442 (applicationShouldTerminate:): Remove now-unneeded while loop
4443 around NSRunAlertPanel.
4444
4445 * nsmenu.m (popupSession): New file-global variable.
4446 (pop_down_menu): End the popupSession before closing dialog.
4447 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4448 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4449 don't query NSApp for events (just sleep instead).
4450
8434d0b8
EZ
44512009-02-07 Eli Zaretskii <eliz@gnu.org>
4452
51d861de
SM
4453 * coding.c (syms_of_coding) <translation-table-for-input>:
4454 Modify doc string to discourage use for character code unification.
8434d0b8 4455
aa82edfd
CY
44562009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4457
4458 * atimer.c (run_timers): Update pending_atimers.
4459
2d283c7c
CY
44602009-02-06 Chong Yidong <cyd@stupidchicken.com>
4461
eb306cab
CY
4462 * image.c (svg_load_image): Fix last change.
4463
2d283c7c
CY
4464 * xfns.c (Fx_create_frame): Signal an error if no font is
4465 found (Bug#2147).
4466
4d8e170e
JB
44672009-02-05 Juanma Barranquero <lekktu@gmail.com>
4468
4469 * character.c (syms_of_character) <script-representative-chars>:
4470 Fix typo in docstring.
4471
c96169a0
AR
44722009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4473
4474 * nsmenu.m (pop_down_menu): New function.
4475 (ns_popup_dialog): Call it on unwind.
4476 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4477 call timer_check() (Bug#2154).
4478 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4479 handling_signal is set.
4480 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4481
31fd7c5c 4482 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4483
4484 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4485
4486 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4487
51d861de
SM
4488 * keyboard.c (poll_for_input_1, handle_async_input):
4489 Set handling_signal under HAVE_NS.
c96169a0 4490
aacd8ba1
GM
44912009-02-04 Glenn Morris <rgm@gnu.org>
4492
4493 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4494
4cb75c4b
KH
44952009-02-04 Kenichi Handa <handa@m17n.org>
4496
4497 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4498
4499 * charset.c (Fchar_charset): New optional arg restriction.
4500
4501 * coding.h (coding_system_charset_list): Extern it.
4502
4503 * coding.c (coding_system_charset_list): New function.
4504
4505 * composite.c: Include coding.h and termhooks.h.
4506 (composition_gstring_p): Fix for the terminal case.
4507 (composition_gstring_width): Likewise.
4508 (fill_gstring_body): Likewise.
4509 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4510 the frame.
4511 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4512 is within a composition.
867d4bb3 4513 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4514
4515 * term.c (encode_terminal_code): Fix handling of composition.
4516 (produce_composite_glyph): For static composition, get pixel_width
4517 from struct composition.
4518
826ba17e
AS
45192009-02-02 Andreas Schwab <schwab@suse.de>
4520
4521 * unexelf.c (unexec): Handle unaligned bss offset.
4522
8ad093db
AR
45232009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4524
4525 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4526 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4527
8ad093db
AR
4528 * keyboard.c (handle_interrupt): Don't call
4529 quit_throw_to_read_char() under NS.
d0a76a6e 4530
8ad093db
AR
4531 * blockinput.h: Remove NS-specific code.
4532
4d18a7a2
DN
45332009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4534
db878925
DN
4535 * dispnew.c (window_change_signal): Don't try to get the size of a
4536 suspended tty frame.
4537 * term.c (Fresume_tty): Resize if the size has changed while the
4538 tty was suspended.
4539
4d18a7a2
DN
4540 * alloc.c (mark_stack): Properly conditionalize previous change.
4541
8984df7c
JB
45422009-01-30 Juanma Barranquero <lekktu@gmail.com>
4543
4544 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4545 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4546 Remove; this code is not used on Windows.
4547
75f4f1ac
EZ
45482009-01-30 Eli Zaretskii <eliz@gnu.org>
4549
4550 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4551 EOLs that also has stray ^M characters.
4552
07a1e794
JB
45532009-01-30 Juanma Barranquero <lekktu@gmail.com>
4554
4555 * atimer.c (run_timers, alarm_signal_handler):
4556 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4557 * w32inevt.c (w32_console_read_socket):
4558 * w32term.c (w32_read_socket):
4559 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4560
a8b11cc9
CY
45612009-01-30 Chong Yidong <cyd@stupidchicken.com>
4562
4563 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4564 Initialize it as a relative filename pattern.
4565 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4566 (Fcall_process_region): Simplify temp file creation using
4567 temporary-file-directory.
4568
c279587b
EZ
45692009-01-29 Eli Zaretskii <eliz@gnu.org>
4570
4571 * msdos.c: Rename pending_signals to msdos_pending_signals.
4572 (sig_suspender, sigprocmask): Adjust.
4573
a8fe3242
CY
45742009-01-29 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * keyboard.c (pending_signals): New var.
4577 (poll_for_input, input_available_signal, init_keyboard): Set it.
4578 (process_pending_signals): New function.
4579
4580 * lisp.h (QUIT): Check pending_signals instead of
4581 interrupt_input_pending. Use process_pending_signals.
4582
51d861de 4583 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4584
51d861de 4585 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4586
4587 * sysdep.c (emacs_write): Use process_pending_signals.
4588
4589 * xterm.c (XTread_socket): Update pending_signals.
4590
4591 * w32term.c (w32_read_socket): Update pending_signals.
4592
4593 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4594
6570a1c4
KH
45952009-01-29 Kenichi Handa <handa@m17n.org>
4596
4597 * xftfont.c (xftfont_has_char): New function.
4598 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4599
d72a4afa
AR
46002009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4601
4602 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4603 under GNUstep.
4604 (ns_query_color): New declaration.
4605
4606 * nsterm.m (ns_confirm_quit): New variable.
4607 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4608 (EmacsApp-applicationShouldTerminate:): Use it.
4609 (EmacsPrefsController): Let user set it.
4610 (ns_query_color): New function.
4611 (ns_defined_color): Use it.
4612 (ns_initialize): Drop.
4613 (ns_term_init): Add two lines from ns_initialize(), and set
4614 input_interrupt_mode to nil.
4615
4616 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4617 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4618
9fe78804
KH
46192009-01-28 Kenichi Handa <handa@m17n.org>
4620
4621 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4622 (fontset_get_font_group): Remember that no font-group is specified
4623 for C.
9fe78804 4624
fa57de36
CY
46252009-01-27 Chong Yidong <cyd@stupidchicken.com>
4626
930600e9
CY
4627 * fns.c (concat): Check for string overflow (bug#1787).
4628
fa57de36
CY
4629 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4630 Quadruple undo limits (bug#1501).
4631
7179ce7b
KH
46322009-01-27 Kenichi Handa <handa@m17n.org>
4633
4634 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4635 directly use GT_Get_Char_index.
4636
4637 * xftfont.c (struct xftfont_info): New member `index'.
4638
4639 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4640 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4641
5be8fcc0
CY
46422009-01-26 Kenichi Handa <handa@m17n.org>
4643
4644 * fontset.c (fontset_find_font): Fix handling of non-cons return
4645 value of fontset_get_font_group.
4646 (fontset_font): Revert last change.
4647
19ae3e61
JR
46482009-01-26 Jason Rumney <jasonr@gnu.org>
4649
4650 * w32font.c (w32font_list_internal): Return quickly if registry is
4651 unknown. Simplify final return.
4652 (add_font_entity_to_list): Break complex logic down into more
4653 manageable chunks. Move unknown registry check to
4654 w32font_list_internal.
4655
8612b71a
AR
46562009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4657
4658 Changes to remove Feval calls from GUI under NS.
4659
d8038940
JB
4660 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4661 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4662 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4663
4664 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4665 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4666 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4667 instead of NON_ASCII_KEYSTROKE_EVENT.
4668 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4669 (EmacsApp-applicationShouldTerminate:): Query user.
4670 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4671 instead of Feval.
4672
4673 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4674
4675 * keyboard.c (kbd_buffer_get_event): Check for it.
4676 (keys_of_keyboard): Define lispy keys for
4677 ns-put/unput-working-text.
4678
4679 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4680 versions.
4681 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4682
6288ae55
CY
46832009-01-25 Chong Yidong <cyd@stupidchicken.com>
4684
4685 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4686 setting current_buffer directly. (Bug#2044)
6288ae55 4687
289e7f8f
CY
46882009-01-24 Chong Yidong <cyd@stupidchicken.com>
4689
5ce87308 4690 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4691 any work. (Bug#1952, bug#1990).
5ce87308 4692
64cc3cf6 4693 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4694
b3243e6f
AR
46952009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4696
4697 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4698 (ns_no_defaults): New declaration.
4699 (main): Use it.
e0d2e69a 4700
d900b2af 4701 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4702
d900b2af 4703 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4704
d900b2af
AR
4705 * nsterm.m (ns_no_defaults): New variable.
4706 (ns_initialize): Don't read defaults when ns_no_defaults.
4707 (EmacsView-readSelectionFromPasteboard:)
4708 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4709 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4710 (ns_dumpglyphs_stretch): New function.
4711 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4712 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4713
e0d2e69a
AR
4714 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4715
3ac71f5d
CY
47162009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4717
4718 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4719 call for Sparc64.
4720
3fe53a83
AR
47212009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4722
4723 * nsfns.m:
4724 * nsgui.h:
4725 * nsmenu.m:
4726 * nsselect.m:
4727 * nsterm.h:
4728 * nsterm.m: Remove '23' comments that indicated code added during
4729 update from emacs-20 -> emacs-23.
4730
10f87c6f 47312009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4732
4733 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4734 ns_alternate_modifier. (Bug#1217)
a3b53a85 4735
c7cef62d
AR
4736 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4737 Display all shortcuts, including those w/o super modifier.
4738
575fb8bd
AR
4739 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4740
918b848b
CY
47412009-01-22 Chong Yidong <cyd@stupidchicken.com>
4742
4743 * fileio.c (Vwrite_region_post_annotation_function)
4744 (Vwrite_region_annotation_buffers): New vars.
4745 (build_annotations_unwind): Just reset
4746 Vwrite_region_annotation_buffers.
4747 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4748 Call write-region-post-annotation-function.
4749 (build_annotations): Add to Vwrite_region_annotation_buffers if
4750 buffer changes.
4751
a39e2539
AR
47522009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4753
4754 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4755 Tiger.
51d861de
SM
4756 * nsfns.m (ns_do_applescript):
4757 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4758
35ed44db
AR
47592009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4760
4761 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4762
cbe0b5bf
AR
47632009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4764
4765 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4766
6049d3a0
AR
4767 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4768
4769 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4770 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4771 handle Ctrl-tab. (Bug#1841)
4772 (ns_get_color): Use unsigned long long for scanned hex string value.
4773 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4774 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4775 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4776 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4777 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4778 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4779 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4780
d3810c21 4781 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4782 DPI. (Bug#1316)
d3810c21
AR
4783 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4784 values in onTiger section.
4c7077c3 4785
e301e634
CY
47862009-01-19 Chong Yidong <cyd@stupidchicken.com>
4787
7f82490b
CY
4788 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4789 Check return value of font_spec_from_name.
64cc3cf6 4790 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4791
4792 * font.c (font_spec_from_name): Return Qnil if font name could not
4793 be parsed.
4794 (font_parse_name): Treat a `?' character as part of an XLFD.
4795
e301e634
CY
4796 * fns.c (Fsubstring): Doc fix.
4797
1c0db158
KH
47982009-01-19 Kenichi Handa <handa@m17n.org>
4799
51d861de 4800 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4801 (ftfont_list): Likewise.
4802
acf20901
JB
48032009-01-18 Juanma Barranquero <lekktu@gmail.com>
4804
fff4e459
JB
4805 * dbusbind.c (Fdbus_register_signal):
4806 * process.c (conv_sockaddr_to_lisp):
4807 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4808
acf20901
JB
4809 * callproc.c (Fgetenv_internal): Doc fix.
4810
e7abcdfb
CY
48112009-01-16 Chong Yidong <cyd@stupidchicken.com>
4812
4813 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4814 it is not even used.
4815
b60861e6
GM
48162009-01-16 Glenn Morris <rgm@gnu.org>
4817
4818 * font.c (Ffont_variation_glyphs): Silence compiler.
4819
8db52afe
JB
48202009-01-15 Juanma Barranquero <lekktu@gmail.com>
4821
4822 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4823 Reported by David Robinow <drobinow@gmail.com>.
4824
4cddb209
KH
48252009-01-15 Kenichi Handa <handa@m17n.org>
4826
51d861de 4827 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4828
f247f67b
JR
48292009-01-14 Jason Rumney <jasonr@gnu.org>
4830
4831 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4832 never a fontset. (Bug#1562)
f247f67b 4833
f56a4450
KH
48342009-01-14 Kenichi Handa <handa@m17n.org>
4835
4836 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4837 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4838
4e99855e
CY
48392009-01-13 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * font.c (font_clear_prop): If clearing the family, clear the font
4842 width index too.
4843
fff4e459 4844 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4845
24f01470
JB
48462009-01-12 Juanma Barranquero <lekktu@gmail.com>
4847
4848 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4849 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4850 functions, use sizeof.
4851
a41240a3
MR
48522009-01-12 Martin Rudalics <rudalics@gmx.at>
4853
4854 * keyboard.c (read_char): Fix case where last_nonmenu_event
4855 returned a bad value with submenus. (Bug#447)
4856
944636b8
CY
48572009-01-12 Chong Yidong <cyd@stupidchicken.com>
4858
4859 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4860 family, clear the font width index too.
4861
0dad7c6f
JR
48622009-01-11 Jason Rumney <jasonr@gnu.org>
4863
4864 * keyboard.c (cmd_error_internal): Exit when errors occur before
4865 frame creation and not in daemon mode. (Bug#1836)
4866
7c2363af
CY
48672009-01-10 Chong Yidong <cyd@stupidchicken.com>
4868
4869 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4870 of a display vector, backtrack.
4871 (try_window_reusing_current_matrix): Check glyph type before
4872 referencing charpos member.
4873
97b1b294
EZ
48742009-01-10 Eli Zaretskii <eliz@gnu.org>
4875
4876 Fix Bug #876:
4877
4878 * coding.c (inhibit_null_byte_detection): New variable.
4879 (detect_coding, detect_coding_system): Don't pay attention to null
4880 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4881 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4882 <inhibit-iso-escape-detection>: Doc fix.
4883
4624b6e3
JR
48842009-01-09 Jason Rumney <jasonr@gnu.org>
4885
4886 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4887 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4888 Only report Unicode Plane 2 fonts as unicode-sip.
4889
323b840c
CY
48902009-01-09 Chong Yidong <cyd@stupidchicken.com>
4891
51d861de
SM
4892 * xfaces.c (Fx_font_family_list): Delete function.
4893 Move compatibility version to faces.el.
323b840c 4894
51d861de 4895 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4896
eba7400d
MR
48972009-01-09 Martin Rudalics <rudalics@gmx.at>
4898
4899 * frame.c (x_set_frame_parameters): Remember requested value for
4900 fullscreen before it's reset by the parameter handler.
4901
4b09796d
GM
49022009-01-09 Glenn Morris <rgm@gnu.org>
4903
4904 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4905 (last_command_event): ... and update all users.
4b09796d
GM
4906 (last_input_char): For clarity, rename to...
4907 (last_input_event): ... and update all users.
4908 (last-command-char, last-input-char): Move to subr.el as aliases.
4909 * cmds.c, commands.h: Update for last_command_char rename.
4910
14ccea62
CY
49112009-01-08 Chong Yidong <cyd@stupidchicken.com>
4912
51d861de 4913 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4914
5f004711
JR
49152009-01-08 Jason Rumney <jasonr@gnu.org>
4916
4917 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4918 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4919 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4920 Don't declare.
fff4e459 4921 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4922 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4923
b71f6f73
KH
49242009-01-07 Kenichi Handa <handa@m17n.org>
4925
50b06221 4926 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4927 remember the coding system used for decoding in
50b06221
KH
4928 coding_system (Bug#1039).
4929
b71f6f73 4930 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4931 breaking the loop. (Bug#870)
b71f6f73
KH
4932 (decode_coding_utf_16, decode_coding_emacs_mule)
4933 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4934 (decode_coding_charset): Likewise.
4935
56f668f7
MR
49362009-01-05 Martin Rudalics <rudalics@gmx.at>
4937
4938 * frame.c (x_set_frame_parameters): Make sure height (width) get
4939 applied when fullwidth (fullheight) is set. (Bug#1522)
4940
5da9424d
JB
49412009-01-04 Juanma Barranquero <lekktu@gmail.com>
4942
4943 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4944 (utc_base): Declare as ULONGLONG, not long double.
4945 (convert_time_raw): Delete.
4946 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4947 (initialize_utc_base): New function.
4948 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4949 (convert_from_time_t): Use initialize_utc_base; compute result with
4950 64-bit arithmetic.
4951 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4952
c4605e09
EZ
49532009-01-03 Eli Zaretskii <eliz@gnu.org>
4954
9acef61c 4955 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4956 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4957 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4958 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4959 [!subprocesses]: Define.
4960 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4961 (Flist_system_processes, Fsystem_process_attributes)
4962 [!subprocesses]: Call list_system_processes and
4963 system_process_attributes instead of returning Qnil.
4964
9acef61c
JB
4965 * dosfns.c (system_process_attributes, list_system_processes):
4966 New functions.
c4605e09
EZ
4967
4968 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4969
4970 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4971 Don't use the default (no-op) implementation.
4972
8b7d0a16
JR
49732009-01-03 Jason Rumney <jasonr@gnu.org>
4974
a6d46bc1
JR
4975 * keyboard.c (parse_modifiers_uncached): Wheel events are
4976 clicks (bug#687).
4977
8b7d0a16
JR
4978 * w32term.c (x_query_colors, x_query_color): New functions.
4979
4980 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4981 (svg_load_image): Cast returned pointers from dynamically loaded
4982 functions. Eliminate W32 specific code.
4983
bfe11752
DN
49842009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4985
89e2438a
DN
4986 * nsfns.m (x_set_foreground_color, x_set_background_color)
4987 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4988 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4989 x_ prefix instead of ns_. Update references.
4990 (syms_of_nsfns): Add a FIXME comment.
4991
4992 * nsterm.m (x_set_cursor_type): New prototype.
4993 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4994
bfe11752
DN
4995 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4996 for Solaris instead of incorrectly providing Qutime and Qcutime.
4997
031da700
EZ
49982009-01-02 Eli Zaretskii <eliz@gnu.org>
4999
5000 * w32.c (process_times): Compute sum of utime and stime.
5001 (system_process_attributes): Add Qtime to the alist.
5002
5003 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5004 and add them to the alist.
5005
5006 * process.c (top level) <Qtime, Qctime>: New variables.
5007 (syms_of_process): staticpro them.
5008 (Fsystem_process_attributes): Add their documentation to the doc
5009 string.
5010
5011 * process.h: Declare Qtime and Qctime.
5012
df23bf08
JR
50132009-01-02 Jason Rumney <jasonr@gnu.org>
5014
9acef61c 5015 * image.c (Qgobject): New symbol.
df23bf08
JR
5016 (syms_of_image): Initialize it.
5017 (init_svg_functions): Load some functions from gobject library.
5018
5bbdf7aa
DN
50192009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5020
5021 * frame.c (make_terminal_frame): Remove redundant code and useless
5022 block.
5023
63136da6
AS
50242009-01-01 Andreas Schwab <schwab@suse.de>
5025
5026 * process.c (conv_sockaddr_to_lisp): Add workaround for
5027 getsockname bug on BSD.
5028
9ef69046
CY
50292009-01-01 Chong Yidong <cyd@stupidchicken.com>
5030
d6fafbe0
CY
5031 * xfns.c (x_create_tip_frame): Set border width of the X window.
5032
51d861de 5033 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5034
f9c34147
JR
50352009-01-01 Jason Rumney <jasonr@gnu.org>
5036
9acef61c 5037 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5038 Don't block input, as per earlier xterm.c changes.
5039
f5497e45
AR
50402008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5041
5042 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5043 (ns_appkit_version_int): New function.
5044 (x-server-version): Use ns_appkit_version_int and follow 21+
5045 convention of returning 3 integers.
5046
c19cab20
KH
50472008-12-30 Kenichi Handa <handa@m17n.org>
5048
5049 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5050 (CHAR_SURROGATE_PAIR_P): New macro.
5051
5052 * font.h (struct font_driver): New member get_variation_glyphs.
5053
9acef61c 5054 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5055 (Ffont_variation_glyphs): New function.
5056 (syms_of_font): Defsubr it.
5057
5058 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5059 ftfont_variation_glyphs.
5060 (setup_otf_gstring): New function.
5061 (ftfont_drive_otf): Use it.
5062 (ftfont_shape_by_flt): Handle variation selector.
5063 (ftfont_variation_glyphs): New function.
5064
28cd591f
MR
50652008-12-30 Martin Rudalics <rudalics@gmx.at>
5066
5067 * frame.c (Vemacs_iconified): Remove.
5068
7f714baf
JR
50692008-12-30 Jason Rumney <jasonr@gnu.org>
5070
5071 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5072 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5073
9d2d22ab
CY
50742008-12-30 Chong Yidong <cyd@stupidchicken.com>
5075
5076 * indent.c (Fvertical_motion): Don't advance iterator if we have
5077 reseated to the desired position.
5078
5079 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5080 checking for pos match.
5081
545312c2
KH
50822008-12-30 Kenichi Handa <handa@m17n.org>
5083
1ede3eb6
KH
5084 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5085 just get the low 8-bit of the code.
5086
545312c2
KH
5087 * font.c (font_intern_prop): Validate str as multibyte.
5088
bd7bbf29
DN
50892008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5090
31e0750e
DN
5091 * dispextern.h (struct face): Move lface and hash from the middle
5092 of bitfields.
5093
bd7bbf29
DN
5094 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5095
b5672e7c
DN
50962008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5097
5098 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5099 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5100 instead of intervals.h.
5101
d704470f
AS
51022008-12-26 Andreas Schwab <schwab@suse.de>
5103
5104 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5105 cons.
5106
54b33868
MR
51072008-12-26 Martin Rudalics <rudalics@gmx.at>
5108
5109 * textprop.c (Qminibuffer_prompt): New variable.
5110 (syms_of_textprop): Initialize it.
5111 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5112 in minibuffer-prompt face. (Bug#1662)
5113
40b615d6
JR
51142008-12-25 Jason Rumney <jasonr@gnu.org>
5115
5116 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5117
baae5c2d
JR
51182008-12-24 Jason Rumney <jasonr@gnu.org>
5119
5120 * ralloc.c (r_alloc_reset_variable): New function.
5121
5122 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5123 record of what points where. (Bug#716)
baae5c2d 5124
a9051c88
DN
51252008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5126
5127 * minibuf.c (read_minibuf): Follow the non-interactive case when
5128 running as a daemon, before detaching.
5129
8b146312
AS
51302008-12-22 Andreas Schwab <schwab@suse.de>
5131
5132 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5133 * gtkutil.c (free_widget_value): Use xfree instead of free.
5134
56f2de10
MR
51352008-12-22 Martin Rudalics <rudalics@gmx.at>
5136
5137 * frame.c (delete_frame): New function derived from
5138 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5139 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5140 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5141 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5142 * frame.h: Extern delete_frame.
5143 * window.c (window_loop):
5144 * terminal.c (delete_terminal):
5145 * xterm.c (x_connection_closed):
5146 * xfns.c (Fx_hide_tip):
9acef61c 5147 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5148
1fc200d6
JR
51492008-12-21 Jason Rumney <jasonr@gnu.org>
5150
5151 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5152 when character maps to .notdef character.
5153
5e252df2
SM
51542008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5155
5156 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5157
99b72cc4
JR
51582008-12-20 Jason Rumney <jasonr@gnu.org>
5159
5160 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5161 a graphical frame on Windows. (Bug#1325)
99b72cc4 5162
acc49a52
JD
51632008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5164
5165 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5166
6ea15123
CY
51672008-12-20 Chong Yidong <cyd@stupidchicken.com>
5168
5169 * minibuf.c (Fread_buffer): Doc fix.
5170
b2dab6c8
JR
51712008-12-20 Jason Rumney <jasonr@gnu.org>
5172
54ea0c87 5173 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5174 server name in UNC paths. (Bug#719)
54ea0c87 5175
b2dab6c8 5176 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5177 charbuf. (Bug#1035)
b2dab6c8 5178
6d1921be
DN
51792008-12-19 Daniel Engeler <engeler@gmail.com>
5180
5181 * sysdep.c (serial_configure): Fix typo.
5182
53934c98
DN
51832008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5184
5185 * sysdep.c: Include alloca.h.
f4f634e8
DN
5186 (system_process_attributes): Add implementation for Solaris.
5187
5188 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5189
06e111a6
DN
51902008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5191
5192 Reorganize implementation of Flist_system_processes and
5193 Fsystem_process_attributes. No functional changes.
5194 * process.c: Don't #include pwd.h, grp.h and limits.h.
5195 (Flist_system_processes): Just call list_system_processes.
5196 (Fsystem_process_attributes): Just call system_process_attributes.
5197 (procfs_list_system_processes, time_from_jiffies)
5198 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5199 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5200
5201 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5202 (list_system_processes): Rename from
5203 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5204 Provide a do nothing implementation.
5205 (system_process_attributes): Rename from
5206 procfs_list_system_processes.
5207 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5208 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5209
5210 * w32.c (list_system_processes): Rename from
5211 w32_list_system_processes.
5212 (system_process_attributes): Rename from
5213 w32_system_process_attributes.
5214
5215 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5216
5217 * process.h (w32_list_system_processes)
5218 (w32_system_process_attributes): Remove.
362654a6
JB
5219 (list_system_processes, system_process_attributes):
5220 New prototypes.
06e111a6 5221
6a705b23
KH
52222008-12-19 Kenichi Handa <handa@m17n.org>
5223
5224 * xfont.c (xfont_decode_coding_xlfd): New function.
5225 (xfont_encode_coding_xlfd): New function.
5226 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5227 (xfont_list): Decode and encode XLFD by iso-8859-1.
5228 (xfont_match): Likewise.
5229 (xfont_list_family): Likewise.
5230 (xfont_open): Likewise.
5231
d66c0241 5232 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5233 names are utf-8.
5234
d66c0241 5235 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5236 names are utf-8.
5237
5a130941
JD
52382008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5239
5240 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5241 changed.
bfd20325
JD
5242 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5243 clicked on a detached tool bar button.
5a130941 5244
fd95644b
DN
52452008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5246
5247 * emacs.c (main): Print and error and exit when no data is read
5248 from the pipe.
5249
e6eee6ae
JR
52502008-12-17 Jason Rumney <jasonr@gnu.org>
5251
5252 * w32font.c (w32font_has_char): Always return -1.
5253
a35dd56b
KH
52542008-12-16 Kenichi Handa <handa@m17n.org>
5255
5256 * font.c (font_open_entity): Fix previous change.
5257
0e3635c2
DN
52582008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5259
5260 * process.c: Include <limits.h>.
5261
d4835507 52622008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5263
5264 * font.c (font_update_drivers): Fix mistake in reconstructing the
5265 driver list.
5266
52672008-12-16 Chong Yidong <cyd@stupidchicken.com>
5268
5269 * font.c (font_clear_cache): Fix format of font cache data.
5270
e2cbc401
CY
52712008-12-15 Chong Yidong <cyd@stupidchicken.com>
5272
5273 * xftfont.c (xftfont_open): Free Xft font pattern if
5274 XftFontOpenPattern fails.
5275
5276 * xterm.c (x_free_frame_resources): Remove extraneous call to
5277 free_frame_faces.
5278
b131d535
CY
52792008-12-13 Chong Yidong <cyd@stupidchicken.com>
5280
5281 * xterm.c (x_delete_display): Move xim_close_dpy call to
5282 x_delete_terminal.
5283 (x_delete_terminal): Call xim_close_dpy.
5284
e6df5336
JR
52852008-12-13 Jason Rumney <jasonr@gnu.org>
5286
5287 * w32font.c (intern_font_name): New function.
5288 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5289 (w32font_open_internal, Fx_select_font): Decode font name.
5290 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5291
5292 * w32font.h (intern_font_name): Declare new function.
5293
5294 * w32uniscribe.c (add_opentype_font_name_to_list):
5295 Use intern_font_name.
5296
20d68145
CY
52972008-12-13 Chong Yidong <cyd@stupidchicken.com>
5298
9f2554de
CY
5299 * frame.c (Fdelete_frame): Call free_font_driver_list.
5300
3d9bec9a
CY
5301 * font.c (free_font_driver_list): Implement missing function.
5302
20d68145
CY
5303 * w32term.c (w32_term_init): Don't initialize the image cache
5304 here; it will be done in init_frame_faces.
5305
5306 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5307 (struct x_display_info): Remove unused member null_pixel. New
5308 member xim_callback_data.
5309
5310 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5311 (xim_initialize): Save pointer to callback function data.
5312 (xim_close_dpy): Free callback function data. Call XCloseIM,
5313 reverting 2008-11-04 change by David Smith.
5314 (x_term_init): Don't initialize the image cache here; it will be
5315 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5316 (x_delete_display): Free x_dnd_atoms member.
5317
96f9306b
KH
53182008-12-13 Kenichi Handa <handa@m17n.org>
5319
6dec9044
JB
5320 * font.c (font_rescale_ratio): Moved from xfaces.c.
5321 Argument type changed. Handle a font-spec too.
96f9306b 5322 (font_score): Check Vface_font_rescale_alist.
6dec9044 5323 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5324
5325 * xfaces.c (font_rescale_ratio): Moved to font.c.
5326
8d5b4964
CY
53272008-12-13 Chong Yidong <cyd@stupidchicken.com>
5328
5329 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5330
e6df5336
JR
53312008-12-12 Jason Rumney <jasonr@gnu.org>
5332
5333 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5334 Vwindow_system_version to the real w32 major version.
5335
97c6058a
DN
53362008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5337
5338 * term.c (init_tty): Move setting the terminal name before the
5339 potential user: maybe_fatal.
5340
ec4e88d7
CY
53412008-12-11 Chong Yidong <cyd@stupidchicken.com>
5342
d4835507
JB
5343 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5344 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5345
b4233ec9
JR
53462008-12-11 Jason Rumney <jasonr@gnu.org>
5347
8ec71e23 5348 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5349 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5350
b4233ec9 5351 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5352 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5353
011a0143
JB
53542008-12-11 Juanma Barranquero <lekktu@gmail.com>
5355
5356 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5357
3c309f34
JB
53582008-12-11 Juanma Barranquero <lekktu@gmail.com>
5359
5360 * process.c (Fsystem_process_attributes, syms_of_process):
5361 Fix typo in name of Ssystem_process_attributes.
5362 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5363
fedc6ab5
JB
53642008-12-11 Juanma Barranquero <lekktu@gmail.com>
5365
5366 * syntax.c (Fmodify_syntax_entry): Doc fix.
5367
ba3de0e8
JB
53682008-12-10 Juanma Barranquero <lekktu@gmail.com>
5369
5370 * font.c (Ffont_spec): Move usage to end of docstring.
5371
174f1c74
JR
53722008-12-10 Jason Rumney <jasonr@gnu.org>
5373
5374 * w32font.c (Qcham): New symbol.
5375 (font_supported_scripts): Add cham, and comments for other new
5376 scripts in bitfield from OpenType spec.
9d32f818
JR
5377 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5378 contain characters beyond the bmp.
174f1c74 5379
7b649478
KH
53802008-12-10 Kenichi Handa <handa@m17n.org>
5381
5382 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5383 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5384 Qunicode_sip.
5385
2133e2d1
JB
53862008-12-10 Juanma Barranquero <lekktu@gmail.com>
5387
5388 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5389 (Fcoding_system_put): Use QCdefault_char.
5390 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5391
9af886ee
CY
53922008-12-09 Chong Yidong <cyd@stupidchicken.com>
5393
74d819eb
CY
5394 * xftfont.c (syms_of_xftfont): Fix typo.
5395
4ccfa1c0 5396 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5397
7c19d3ae
DN
53982008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5399
5400 * emacs.c (main): Close daemon_pipe on exec.
5401
567826bb
CY
54022008-12-08 Chong Yidong <cyd@stupidchicken.com>
5403
5404 * termchar.h (struct tty): New members termcap_term_buffer and
5405 termcap_strings_buffer.
5406
5407 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5408 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5409 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5410 All callers changed.
5411 (init_tty): Store termcap data and string buffers in new struct
5412 tty members termcap_term_buffer and termcap_strings_buffer.
5413 (delete_tty): Free them.
4ccfa1c0 5414 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5415
aa96c42b
SZ
54162008-12-07 Seiji Zenitani <zenitani@mac.com>
5417
5418 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5419 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5420
b7e1d896
CY
54212008-12-06 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * coding.c (make_conversion_work_buffer): Disable buffer
5424 modification hooks in the work buffer.
5425
b5ec91a5
EZ
54262008-12-05 Eli Zaretskii <eliz@gnu.org>
5427
5428 * process.c (procfs_system_process_attributes): If `nread' has a
5429 negative value, assign zero to it.
5430
a5d2a52b
CY
54312008-12-05 Chong Yidong <cyd@stupidchicken.com>
5432
68c5540b 5433 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5434
7bf1bb21
KH
54352008-12-05 Kenichi Handa <handa@m17n.org>
5436
5437 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5438 second character is a combining character.
5439
2fdc7d00
EZ
54402008-12-05 Eli Zaretskii <eliz@gnu.org>
5441
5442 * process.c (procfs_system_process_attributes): Don't use cmd,
5443 cmdsize, and q without initializing them first.
5444
bf6bfba8
JR
54452008-12-04 Jason Rumney <jasonr@gnu.org>
5446
5447 * w32font.c (w32font_draw): Initialize orig_clip before getting
5448 it, and delete it when finished.
5449
a3b1a468
DN
54502008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5451
5452 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5453 case when running as a daemon before detaching.
5454
8b8be8eb
JB
54552008-12-03 Juanma Barranquero <lekktu@gmail.com>
5456
805f2638 5457 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5458
b1bde622
KH
54592008-12-03 Kenichi Handa <handa@m17n.org>
5460
e500c47d
KH
5461 * font.c (font_at): Set `multibyte' at first.
5462
ca516334
KH
5463 * coding.c (decode_coding_charset): Check type of an element of
5464 vector VALIDS.
7bf1bb21 5465 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5466
4ccfa1c0 5467 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5468 (font_for_char): Likewise.
5469
1e5ecd37
CY
54702008-12-03 Chong Yidong <cyd@stupidchicken.com>
5471
d5b01609 5472 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5473 (font_update_lface): Handle fonts with corrupted size specs,
5474 i.e. non-int and non-float.
d5b01609 5475
11e3a6e4 5476 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5477 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5478 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5479
ab06788b
CY
5480 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5481
1e5ecd37 5482 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5483 underline_minimum_offset for underline position.
1e5ecd37 5484
63c125ab
DN
54852008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5486
5487 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5488
5489 * character.c (c_string_width): Specify the type for LEN.
5490
3a8406e1
KH
54912008-12-03 Kenichi Handa <handa@m17n.org>
5492
4ccfa1c0 5493 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5494 (decode_coding_utf_8): Likewise.
4ccfa1c0 5495 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5496 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5497
651df7d9
CY
54982008-12-02 Chong Yidong <cyd@stupidchicken.com>
5499
5500 * keyboard.c (make_lispy_position): Only use PT if the selected
5501 window is current.
5502
1f625c6c
AS
55032008-12-02 Andreas Schwab <schwab@suse.de>
5504
f7741ce9
AS
5505 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5506
1f625c6c
AS
5507 * doprnt.c (doprnt1): Fix size of charbuf.
5508
92bc2678
CY
55092008-12-02 Chong Yidong <cyd@stupidchicken.com>
5510
5511 * keyboard.c (timer_check): Revert last change.
5512
93b9e8cc
JB
55132008-12-02 Juanma Barranquero <lekktu@gmail.com>
5514
5515 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5516
fd7a37d5
JB
55172008-12-01 Juanma Barranquero <lekktu@gmail.com>
5518
5519 * makefile.w32-in: Update dependencies.
5520 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5521
c115043b
AS
55222008-12-01 Andreas Schwab <schwab@suse.de>
5523
5524 * font.c (register_font_driver): Use xmalloc.
5525 (font_put_frame_data): Likewise.
5526
f5668d2a
CY
55272008-12-01 Chong Yidong <cyd@stupidchicken.com>
5528
860d96be
CY
5529 * xfaces.c (realize_x_face): Make abort condition clearer.
5530
f5668d2a
CY
5531 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5532
379c17e7
CY
55332008-11-30 Chong Yidong <cyd@stupidchicken.com>
5534
5535 * keyboard.c (timer_check): After a timer runs, ensure that the
5536 selected window's buffer is current.
5537
35f36d65
JB
55382008-11-30 Juanma Barranquero <lekktu@gmail.com>
5539
f952c61c
JB
5540 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5541 It was accidentally restored by the Unicode merge.
5542
35f36d65
JB
5543 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5544
b23077df
JB
55452008-11-29 Juanma Barranquero <lekktu@gmail.com>
5546
5547 * w32proc.c: Include "coding.h".
5548 (Fw32_short_file_name): Encode filename passed to Windows API.
5549 (Fw32_long_file_name): Encode filename passed to Windows API and
5550 decode back the result. (Bug#1433)
5551
b8ebe9dd
KH
55522008-11-29 Kenichi Handa <handa@m17n.org>
5553
8cc53f96
KH
5554 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5555 not before accessing it.
5556
b8ebe9dd
KH
5557 * charset.c (Fdefine_charset_internal): After calculating
5558 min_char, max_char, and fastmap, copy the charset structure again.
5559 (encode_char): Fix the previous change.
5560
59bc82c0
SZ
55612008-11-28 Seiji Zenitani <zenitani@mac.com>
5562
5563 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5564
5565 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5566
5567 * nsterm.m (x_set_frame_alpha): New function.
5568
32247e3d
EZ
55692008-11-27 Eli Zaretskii <eliz@gnu.org>
5570
5571 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5572
b003e5ff
JB
55732008-11-27 Juanma Barranquero <lekktu@gmail.com>
5574
5575 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5576 pointer to check_face_name.
5577
708550f5
KH
55782008-11-27 Kenichi Handa <handa@m17n.org>
5579
5580 * category.h (SET_CATEGORY_SET): Call set_category_set.
5581 (set_category_set): Extern it.
5582
5583 * category.c (hash_get_category_set): New function.
5584 (Fmodify_category_entry): Adjusted for the change of
5585 char_table_ref_and_range. Call hash_get_category_set to get a
5586 category set to store in the table.
5587
5588 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5589 Funify_charset.
5590
2ae37cf0 5591 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5592 (DECODE_CHAR): Check if the decoder vector is ready.
5593 (ENCODE_CHAR): Check if the encoder char-table is ready.
5594 (maybe_unify_char): Extern it.
5595
5596 * charset.c (Vchar_unified_charset_table): Delete it.
5597 (inhibit_load_charset_map): New variable.
5598 (temp_charset_work): New variable.
5599 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5600 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5601 New macros.
5602 (load_charset_map): Meaning of control_flag changed. If
5603 inhibit_load_charset_map is nonzero, setup a table in
5604 temp_charset_work.
5605 (load_charset): New argument control_flag.
5606 (map_charset_for_dump): New function.
5607 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5608 map_charset_for_dump.
5609 (Fdefine_charset_internal): If the charset method is MAP, load
5610 mapping tables by calling load_charset.
5611 (Funify_charset): Don't load a mapping table but directly set
5612 Vchar_unify_table.
5613 (maybe_unify_char): New function.
5614 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5615 Handle the case of inhibit_load_charset_map being nonzero.
5616 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5617 Handle the case of inhibit_load_charset_map being nonzero.
5618 (Fclear_charset_maps): Just free temp_charset_work.
5619 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5620 variable.
5621
5622 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5623 change of char_table_ref_and_range.
5624 (char_table_ref_and_range): Change the meaning of argument FROM
5625 and TO. Now the caller must provide initial values for *FROM
5626 and *TO.
5627
5628 * fontset.c (fontset_add): Adjusted for the change of
5629 char_table_ref_and_range.
5630 (fontset_get_font_group): Likewise.
5631 (Ffontset_info): Likewise.
5632
5633 * keymap.c (describe_vector): Adjusted for the change of
5634 char_table_ref_and_range. For char-table, put boundary between
5635 non-ASCII and 8-bit characters.
5636
5637 * print.c (print_object): For bool-vector, delete unnecessary
5638 check of ASCII_BYTE_P.
5639
9196133b
JR
56402008-11-26 Jason Rumney <jasonr@gnu.org>
5641
5642 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5643 leading in font height. (Bug#879)
9196133b 5644
9f688acf
GM
56452008-11-26 Glenn Morris <rgm@gnu.org>
5646
5647 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5648 redefinition with ifdef. (Bug#1383)
5649
90d19aff
AR
56502008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5651
5652 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5653
4ccfa1c0 56542008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5655
5656 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5657 New EmacsView methods.
5658 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5659 Fixes bug #1048,1357,1414.
5660
56612008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5662
5663 Fix bug #1362.
5664 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5665 is not an indexed color.
5666 * nsterm.m (free_indexed_color): Add argument checking.
5667 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5668
e7d5ecb3
CY
56692008-11-24 Chong Yidong <cyd@stupidchicken.com>
5670
5671 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5672 Document confirm-after-completion value for
5673 minibuffer-completion-confirm.
5674
c285743c
JR
56752008-11-24 Jason Rumney <jasonr@gnu.org>
5676
5677 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5678 warning.
5679
b0857706
JR
56802008-11-23 Jason Rumney <jasonr@gnu.org>
5681
5682 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5683 restored before returning.
5684
5685 * w32font.c (check_face_name): New function.
5686 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5687 fonts. (Bug#642)
b0857706 5688
ee50ff07
MR
56892008-11-22 Martin Rudalics <rudalics@gmx.at>
5690
5691 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5692 confirm-nonexistent-file-or-buffer in doc-string.
5693
b8ff72fa
SM
56942008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5695
5696 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5697 Fix copy/paste typo. Add checks.
5698
cee53ed4
KH
56992008-11-21 Kenichi Handa <handa@m17n.org>
5700
5701 * coding.c (detect_coding_iso_2022): Reject invalid composition
5702 sequence.
5703 (DECODE_COMPOSITION_START): If the current source is the last
5704 block, and the current composition doesn't end, regard this
5705 sequence as invalid.
5706 (decode_coding_iso_2022): Handle invalid composition sequence.
5707
f6ef1e65
MR
57082008-11-20 Martin Rudalics <rudalics@gmx.at>
5709
5710 * window.c (coordinates_in_window): Don't return
5711 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5712 line when the window is not the rightmost one. (Bug#1372)
5713
e08b1705
MR
57142008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5715
5716 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5717
ad98e89f
EZ
57182008-11-15 Eli Zaretskii <eliz@gnu.org>
5719
5720 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5721 and bright_bg if noninteractive is non-zero.
5722
fb098a4b
CY
57232008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5724
5725 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5726 x_draw_glyph_string_background.
5727
5728 * w32term.c (x_draw_glyph_string): Likewise.
5729
ce952b6e
CY
57302008-11-15 Chong Yidong <cyd@stupidchicken.com>
5731
5732 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5733 the next glyph string once past the overhang width.
5734
5735 * nsterm.m (ns_draw_glyph_string): Likewise.
5736
5737 * w32term.c (x_draw_glyph_string): Likewise.
5738
26ea7079
CY
57392008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5740
5741 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5742 double file close.
5743
1c33c906
MR
57442008-11-14 Martin Rudalics <rudalics@gmx.at>
5745
5746 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5747 dedicated status of window before attempting to display another
5748 buffer in it.
5749
8fc29035
JB
57502008-11-14 Juanma Barranquero <lekktu@gmail.com>
5751
5752 * msdos.c (Fmsdos_long_file_names):
5753 (syms_of_msdos) <dos-unsupported-char-glyph>:
5754 * dosfns.c (Fint86): Fix typos in docstrings.
5755
55fb4286
EZ
57562008-11-14 Eli Zaretskii <eliz@gnu.org>
5757
5758 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5759
3fda0315
KY
57602008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5761
5762 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5763
7e849c17
CY
57642008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5765
5766 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5767
5768 * frame.h: Negative alpha means "don't touch".
5769
5770 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5771
5772 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5773
b9fd67bd
DN
57742008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5775
5776 * hftctl.c:
5777 * chpdef.h:
5778 * acldef.h: Remove files used only for systems no longer supported.
5779
5780 * Makefile.in: Fix .o alphabetical ordering.
5781 (hftctl.o): Remove dependency, file removed.
5782 (keymap.o, print.o): Depend on charset.h.
5783
d5998e03
KH
57842008-11-10 Kenichi Handa <handa@m17n.org>
5785
2ae37cf0 5786 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5787
be70e183
CY
57882008-11-08 Chong Yidong <cyd@stupidchicken.com>
5789
5790 * dired.c (file_name_completion): If completion_ignore_case is
5791 enabled, ignore case when checking completion-regexp-list.
5792
7cf94eac
EZ
57932008-11-08 Eli Zaretskii <eliz@gnu.org>
5794
5795 * vm-limit.c (get_lim_data): Fix last change.
5796
ee107a89
KH
57972008-11-08 Kenichi Handa <handa@m17n.org>
5798
5799 * character.c (Fget_byte): New function.
5800 (syms_of_character): Defsubr Fget_byte.
5801
5fd15622
CY
58022008-11-07 Chong Yidong <cyd@stupidchicken.com>
5803
5804 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5805 cursor position is valid after scrolling.
5806
13d62fad
JB
58072008-11-06 Juanma Barranquero <lekktu@gmail.com>
5808
5809 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5810
a1dd2936
GM
58112008-11-06 Glenn Morris <rgm@gnu.org>
5812
5813 * xterm.c (handle_one_xevent): Don't let popup menus cause
5814 mouse-autoselect-window related window switching. (Bug#1261)
5815
860cd236
CY
58162008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5817
5818 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5819
653a3150
AS
58202008-11-04 Andreas Schwab <schwab@suse.de>
5821
5822 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5823
870f5cac
CY
58242008-11-03 Chong Yidong <cyd@stupidchicken.com>
5825
5826 * xfns.c (Fx_wm_set_size_hint): New function.
5827
1e02f3cb
MR
58282008-11-03 Martin Rudalics <rudalics@gmx.at>
5829
5830 * textprop.c (Fprevious_single_char_property_change): Return 0
5831 when there's no change in a string. (Bug#1301)
5832
e630dfc6
MR
58332008-11-02 Martin Rudalics <rudalics@gmx.at>
5834
5835 * frame.c (do_switch_frame): New argument NORECORD passed to
5836 Fselect_window.
5837 (Fselect_frame): New argument NORECORD passed to
5838 do_switch_frame.
5839 (Fset_frame_selected_window): New argument NORECORD passed to
5840 Fselect_frame.
5841 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5842 in call of do_switch_frame.
5843 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5844 Handle NORECORD argument in call of Fselect_frame.
5845 * lisp.h (do_switch_frame, Fselect_frame)
5846 (Fset_frame_selected_window): Adjust declarations.
5847 * window.c (select_frame_norecord): New function.
5848 (run_window_configuration_change_hook): Use it and call
5849 Fselect_frame with NORECORD set.
5850 (Fselect_window): Pass NORECORD to Fselect_frame.
5851 (Fset_window_configuration): Handle NORECORD argument in call of
5852 do_switch_frame.
5853 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5854 Fset_frame_selected_window.
5855 * keyboard.c (command_loop_1): Handle NORECORD in call of
5856 Fselect_frame (currently ifdefd).
5857
9020b223
GM
58582008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5859
5860 * emacs.c (USAGE2): Untabify.
5861
793ffee8
SM
58622008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5863
5864 * composite.c (fill_gstring_header): Fix copy/paste typo.
5865
ab6d1131
MR
58662008-10-31 Martin Rudalics <rudalics@gmx.at>
5867
5868 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5869 (Fother_window): Rename argument and rewrite doc-string.
5870 (select_window_norecord): Fix return value. (Bug#1276)
5871
601a9cf1
JB
58722008-10-30 Juanma Barranquero <lekktu@gmail.com>
5873
5874 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5875 new frames overriding foreground for tooltips. Based on similar patch
5876 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5877
813b0652
CY
58782008-10-29 Chong Yidong <cyd@stupidchicken.com>
5879
5880 * emacs.c (Fdaemon_initialized): Initialize nfd.
5881
4414f58f
MR
58822008-10-29 Martin Rudalics <rudalics@gmx.at>
5883
5884 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5885 (Fwindow_text_height): Clarify doc-strings.
5886 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5887 doc-string of window-scroll-functions.
5888
ecdcaa09
RS
58892008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5890
5891 * category.c (syms_of_category): Fix typo in docstring.
5892
23fe745a
JB
58932008-10-28 Juanma Barranquero <lekktu@gmail.com>
5894
5895 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5896 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5897 Fix typos in docstrings.
5898
ff808935
DN
58992008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5900
5901 * emacs.c (daemon_pipe): Make non-static.
5902 (IS_DAEMON): Move definition ...
5903 * lisp.h (IS_DAEMON): ... here.
5904 (daemon_pipe): Declare.
5905 (is_daemon): Remove.
5906 * dispnew.c (init_display): Use IS_DAEMON.
5907
fc012771
SM
59082008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5909
5910 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5911 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5912
5913 * emacs.c (is_daemon): Remove.
5914 (main): Don't set is_daemon.
5915 (IS_DAEMON): New macro.
5916 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5917 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5918 parent exits.
5919 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5920
d8bdbe6f
CY
59212008-10-27 Chong Yidong <cyd@stupidchicken.com>
5922
d1a072bf
CY
5923 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5924 over-sized glyph, draw it with the default glyph width.
5925
e2e325aa
CY
5926 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5927 glyph, draw it with the default glyph width.
5928
5929 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5930 glyph, draw it with the default glyph width.
5931
d8bdbe6f
CY
5932 * xdisp.c (try_scrolling): When computing the distance from the
5933 scroll margin to PT, try moving some distance past the window
5934 bottom before giving up.
5935
7bfac547
MR
59362008-10-27 Martin Rudalics <rudalics@gmx.at>
5937
5938 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5939 (Fset_window_buffer): Explain in doc-string that a window can be
5940 "strongly" dedicated to its buffer.
5941
4ff029f6
DN
59422008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5943
5944 * emacs.c (daemon_name): New variable.
5945 (main): Deal with --daemon=SERVER_NAME.
5946 (Fdaemonp): Return a name if one was passed to --daemon.
5947
5790ef40
DN
59482008-10-26 Romain Francoise <romain@orebokech.com>
5949
f9bd0df9 5950 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5951 (main): Create a pipe before forking, make the parent exit only after
5952 the child has closed its end of the pipe. Move closing the
5953 descriptors ...
5954 (Fdaemon_initialized): ... here. New function.
5955
f5385255
SM
59562008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5957
4d632321
SM
5958 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5959 the previous unoptimized table.
5960
f5385255
SM
5961 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5962 the distinction between non-nil and non-t value of `dedicated'.
5963
6c56a0f3
CY
59642008-10-25 Chong Yidong <cyd@stupidchicken.com>
5965
5966 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5967 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5968
fec89261
MR
59692008-10-25 Martin Rudalics <rudalics@gmx.at>
5970
5971 * window.c (Fget_buffer_window, Fdelete_windows_on)
5972 (Freplace_buffer_in_windows): Make buffer argument optional and
5973 rename to buffer_or_name.
5974
34fcddd0
CY
59752008-10-24 Chong Yidong <cyd@stupidchicken.com>
5976
f5385255
SM
5977 * xdisp.c (handle_single_display_spec, handle_display_prop):
5978 Undo 2005-05-16 change.
34fcddd0
CY
5979 (handle_stop): Pop iterator if it's loaded with an empty string.
5980 (get_overlay_strings_1): Don't save iterator if it's loaded with
5981 an empty string (bug#1201).
5982
064766f2
KH
59832008-10-24 Kenichi Handa <handa@m17n.org>
5984
5985 * ftfont.c (ftfont_otf_features): Fix previous change.
5986 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5987 calling ftfont_otf_features.
5988
f9bd0df9 59892008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5990
5991 * font.c (font_match_p): Fix for the case that a vector of
5992 characters is in script-representative-chars.
5993
1dae9197
MA
59942008-10-24 Michael Albinus <michael.albinus@gmx.de>
5995
5996 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5997 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5998 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5999 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6000 macro. (Bug#1186)
1dae9197 6001
f9bd0df9 60022008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6003
6004 * s/sol2-10.h: New file.
6005
878a4584
JB
60062008-10-23 Juanma Barranquero <lekktu@gmail.com>
6007
6008 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6009 poor beast has survived 9+ years and the jump from xterm.c!).
6010
cd265ca6
MR
60112008-10-23 Martin Rudalics <rudalics@gmx.at>
6012
6013 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6014 Reword doc-string.
f5385255 6015 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6016
472a4dc9
JB
60172008-10-23 Juanma Barranquero <lekktu@gmail.com>
6018
6019 * character.c (syms_of_character) <script-representative-chars>:
6020 <unicode-category-table>: Doc fixes.
6021
159bd5a2
NF
60222008-10-23 Noah Friedman <friedman@splode.com>
6023
6024 * coding.c (make_conversion_work_buffer): Check that
6025 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6026 Fget_buffer_create.
6027
49f9c344
KH
60282008-10-23 Kenichi Handa <handa@m17n.org>
6029
6030 * font.c (font_add_log): Check the values of extra properties.
6031
12bb3111
MR
60322008-10-22 Martin Rudalics <rudalics@gmx.at>
6033
6034 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6035 Reword doc-string.
6036 (Fset_window_parameter): Use NILP.
6037 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6038 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6039
bbeb4e99
JB
60402008-10-22 Juanma Barranquero <lekktu@gmail.com>
6041
6042 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6043
60442008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6045
6046 * nsfns.m (ns_appkit_version): New function.
6047 (x-server-version): Use it.
6048 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6049 (x-server-vendor): Don't check_ns().
6050
6051 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6052
a9b555d3
JB
60532008-10-22 Juanma Barranquero <lekktu@gmail.com>
6054
6055 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6056 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6057
4626499f
KH
60582008-10-22 Kenichi Handa <handa@m17n.org>
6059
e3681952
KH
6060 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6061 scripts.
6062
4626499f
KH
6063 * category.c (word_boundary_p): Check scripts instead of charset.
6064 Handle nil value in word-separating-categories and
6065 word-combining-categories.
6066 (syms_of_category): Fix docstrings of word-separating-categories
6067 and word-combining-categories.
6068
1560f91a
EZ
60692008-10-21 Eli Zaretskii <eliz@gnu.org>
6070
6071 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6072 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6073
f4668441
MR
60742008-10-21 Martin Rudalics <rudalics@gmx.at>
6075
6076 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6077 Rename arg "buffer" to "buffer_or_name".
6078 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6079 it optional.
6080 (no_switch_window): Remove since the return value is not used.
a9b555d3 6081 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6082 Consider window as dedicated when Fwindow_dedicated_p returns a
6083 non-nil value.
6084 * lisp.h: Remove prototype for no_switch_window.
6085
fd75ddb2
JD
60862008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6087
6088 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6089 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6090
07295713
KH
60912008-10-21 Kenichi Handa <handa@m17n.org>
6092
6093 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6094 check Vlatin_extra_code_table.
6095
712adc82
EZ
60962008-10-20 Eli Zaretskii <eliz@gnu.org>
6097
6098 * fileio.c (Fset_file_modes): Doc fix.
6099
f549eb0b
MA
61002008-10-19 Michael Albinus <michael.albinus@gmx.de>
6101
6102 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6103 in arrays.
6104
aac0c6e3
MR
61052008-10-19 Martin Rudalics <rudalics@gmx.at>
6106
6107 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6108 Mention kill-buffer in doc-string.
6109 (Fset_window_buffer): Reinsert tem check removed in last commit.
6110 (Fenlarge_window, Fshrink_window): Have argument names and
6111 doc-string follow Elisp manual more closely.
6112
61132008-10-18 Eli Zaretskii <eliz@gnu.org>
6114
6115 * fileio.c (Fset_file_modes): Doc fix.
6116
61172008-10-18 Martin Rudalics <rudalics@gmx.at>
6118
6119 * window.c (Fwindow_width, Fset_window_start)
6120 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6121 (Fdelete_windows_on, Freplace_buffer_in_windows):
6122 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6123 (Fwindow_dedicated_p): Make window argument optional.
6124 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6125 (Fset_window_buffer): Respect any non-nil dedicated value for
6126 window. Rename "buffer" argument to "buffer_or_name".
6127
61282008-10-18 Ulrich Mueller <ulm@gentoo.org>
6129
6130 * m/sh3.h: New file, machine description for SuperH.
6131
61322008-10-17 Martin Rudalics <rudalics@gmx.at>
6133
6134 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6135
61362008-10-17 Kenichi Handa <handa@m17n.org>
6137
6138 * ftfont.c (ftfont_otf_features): Fix indexing
6139 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6140
61412008-10-16 Magnus Henoch <mange@freemail.hu>
6142
6143 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6144 (Fdbus_call_method_asynchronously): Ditto.
6145 This change makes C-h f display the argument list.
6146
61472008-10-16 Chong Yidong <cyd@stupidchicken.com>
6148
6149 * fileio.c (Fexpand_file_name): Doc fix.
6150
6151 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6152 of :foreground and :background equivalent to unspecified (20.x
6153 compatibility).
6154
61552008-10-15 Eli Zaretskii <eliz@gnu.org>
6156
6157 * buffer.c (syms_of_buffer): Doc fix.
6158
61592008-10-14 Kenichi Handa <handa@m17n.org>
6160
6161 * font.c (font_clear_prop): When clearing font width, clear the
6162 average width field too.
6163
61642008-10-12 Andreas Schwab <schwab@suse.de>
6165
6166 * ftfont.c (ftfont_shape_by_flt): Make static.
6167 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6168
6169 * font.c: Don't include <m17n-flt.h>.
6170
61712008-10-10 Eli Zaretskii <eliz@gnu.org>
6172
6173 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6174
61752008-10-09 Eli Zaretskii <eliz@gnu.org>
6176
6177 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6178 away code.
6179
61802008-10-09 Chong Yidong <cyd@stupidchicken.com>
6181
6182 * dispnew.c (update_text_area): Avoid looping due to large glyph
6183 overhangs (bug#1070).
6184
61852008-10-09 Kenichi Handa <handa@m17n.org>
6186
6187 * fontset.c (face_for_char): If face->fontset is negative, just
6188 return ascii_face.
6189
f5385255
SM
6190 * font.c (font_delete_unmatched): Fix previous change.
6191 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6192
61932008-10-09 Martin Rudalics <rudalics@gmx.at>
6194
6195 * frame.c (Fraise_frame): On text-only terminals select frame in
6196 order to make it visible. (Bug#1061)
6197
61982008-10-08 Chong Yidong <cyd@stupidchicken.com>
6199
6200 * fontset.c (fontset_find_font): Check frame validity.
6201
62022008-10-07 Chong Yidong <cyd@stupidchicken.com>
6203
a9b555d3 6204 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6205 (xg_display_close): Allow Emacs to close all displays (bug#985).
6206
62072008-10-06 Andreas Schwab <schwab@suse.de>
6208
f5385255 6209 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6210
62112008-10-06 Chong Yidong <cyd@stupidchicken.com>
6212
f5385255 6213 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6214
a9b555d3 6215 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6216
6217 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6218 during initialization.
6219
62202008-10-04 Eli Zaretskii <eliz@gnu.org>
6221
6222 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6223 whole thing on MSDOS frames as well as on a TTY.
6224
6225 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6226 well as for TTY.
6227 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6228 well as on a TTY.
6229
6230 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6231 as well as for TTY.
6232
6233 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6234
6235 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6236 MSDOS frames as well.
6237
62382008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6239
6240 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6241 correct arguments.
b71ac3dd 6242 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6243
62442008-10-03 Glenn Morris <rgm@gnu.org>
6245
6246 * emacs.c (USAGE1): Add --daemon.
6247
62482008-10-02 Eli Zaretskii <eliz@gnu.org>
6249
6250 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6251 100, so it's in percents as advertised.
6252
62532008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6254
6255 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6256 (ns_output.current_cursor, ns_output.desired_cursor)
6257 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6258 (FRAME_NEW_CURSOR_COLOR): Remove.
6259
6260 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6261 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6262 enumeration (HOLLOW_BOX_CURSOR, etc.).
6263
6264 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6265 (draw_window_cursor): Simplify code.
f5385255
SM
6266 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6267 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6268 updates manually.
a9b555d3
JB
6269 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6270 Use core Emacs cursor types.
aac0c6e3 6271
b8ff72fa 6272 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6273
62742008-10-02 Martin Rudalics <rudalics@gmx.at>
6275
6276 * process.c (Faccept_process_output): Fix doc-string.
6277
62782008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6279
6280 * gmalloc.c (__sbrk): Also define for uClibc.
6281
6282 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6283 for uClibc.
6284
62852008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6286
6287 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6288 styles.
6289 (nsfont_open): Reenable the cache.
6290
62912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6292
6293 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6294 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6295
62962008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6297
6298 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6299 a suspended terminal.
6300
63012008-09-30 Michael Albinus <michael.albinus@gmx.de>
6302
6303 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6304
63052008-09-30 Eli Zaretskii <eliz@gnu.org>
6306
6307 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6308
63092008-09-30 Chong Yidong <cyd@stupidchicken.com>
6310
6311 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6312 in a continued line coincides with a line beginning.
6313
63142008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6315
6316 * nsfont.m (nsfont_trait_distance): Fix bug.
6317 (nsfont_list): Return a list rather than a vector (syncs with Handa
6318 changes of 2008-05-14).
6319 (nsfont_open): Improve logging.
6320
63212008-09-29 Andreas Schwab <schwab@suse.de>
6322
6323 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6324
63252008-09-28 Martin Rudalics <rudalics@gmx.at>
6326
6327 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6328 name as char-resolve-modifiers.
6329 Reported by: Markus Triska <markus.triska@gmx.at>
6330
63312008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6332
6333 * dispnew.c (init_display): Return earlier when running as a daemon.
6334
63352008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6336
6337 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6338
63392008-09-27 Eli Zaretskii <eliz@gnu.org>
6340
6341 * composite.c (Fcomposition_get_gstring)
6342 (Fcompose_region_internal, Fcompose_string_internal)
6343 (Ffind_composition_internal): Doc fix.
6344 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6345 (syms_of_composite) <auto-composition-function>: Doc fix.
6346 (syms_of_composite) <composition-function-table>: Doc fix.
6347
63482008-09-25 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * search.c (wordify): New argument for lax word-ends.
6351 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6352
63532008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6354
6355 * lisp.h (is_daemon): Declare.
6356 * dispnew.c (init_display): Do not try to initialize the terminal
6357 when running as a daemon.
6358
63592008-09-22 Chong Yidong <cyd@stupidchicken.com>
6360
6361 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6362 x_display_pixel_height.
6363
63642008-09-22 Martin Rudalics <rudalics@gmx.at>
6365
6366 * undo.c (record_point): Don't call Fundo_boundary for first
6367 change. (Bug#731)
6368
63692008-09-22 Juanma Barranquero <lekktu@gmail.com>
6370
6371 * emacs.c (Fdaemonp): Doc fix.
6372
63732008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6374
6375 * emacs.c (main): Place #ifdef in the proper place.
6376
63772008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6378
6379 * emacs.c (standard_args): Add --daemon.
6380 (main): Disconnect from the terminal when --daemon is passed.
6381 (is_daemon): New variable.
6382 (Fdaemonp): New function.
6383 (syms_of_emacs): Defsubr it.
6384
63852008-09-20 Chong Yidong <cyd@stupidchicken.com>
6386
6387 * xdisp.c (get_next_display_element): Handle string display
6388 correctly when checking for the end of a box run.
6389
63902008-09-20 Glenn Morris <rgm@gnu.org>
6391
6392 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6393 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6394 (Frename_file): Avoid copying to trash if a rename involves
6395 a delete. (Bug#964).
6396
63972008-09-20 Eli Zaretskii <eliz@gnu.org>
6398
6399 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6400 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6401 frames as well as termcap frames.
6402 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6403 get_named_tty.
6404
64052008-09-19 Eli Zaretskii <eliz@gnu.org>
6406
6407 * process.c (procfs_system_process_attributes): Fix cmdline in
6408 case /proc/PID/cmdline is empty.
6409
6410 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6411 x_display_pixel_height.
6412
64132008-09-19 Juanma Barranquero <lekktu@gmail.com>
6414
6415 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6416
6417 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6418 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6419
64202008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6421
6422 * dispextern.h (struct it): Move line_wrap away from the middle of
6423 bitfields. Move voffset in struct iterator_stack_entry after the
6424 bitfields. Move tab_width near after another short.
6425
64262008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6427
6428 * frame.h (struct frame): Move alpha from the middle of bitfields.
6429
6430 * window.h (struct window): Move frozen_window_start_p after the
6431 rest of the bitfields to reduce padding.
6432
64332008-09-18 Chong Yidong <cyd@stupidchicken.com>
6434
6435 * xterm.h (x_display_info): Remove `height' and `width' members.
6436
6437 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6438
6439 * w32term.h (w32_display_info): Remove `height', `width',
6440 `height_in', and `width_in' members.
6441
b8ff72fa
SM
6442 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6443 New functions.
aac0c6e3
MR
6444 (x_calc_absolute_position): Use them.
6445 (x_term_init): Omit removed `height' and `width' members.
6446
b8ff72fa
SM
6447 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6448 New functions.
aac0c6e3
MR
6449 (w32_read_socket, x_calc_absolute_position): Use them.
6450 (w32_initialize_display_info, w32_term_init): Omit removed members
6451 of w32_display_info.
6452
b8ff72fa
SM
6453 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6454 New functions.
6455 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6456
b8ff72fa
SM
6457 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6458 New functions.
aac0c6e3
MR
6459 (x_calc_absolute_position): Use them.
6460 (x_term_init): Omit removed `height' and `width' members.
6461
6462 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6463 (compute_tip_xy):
6464 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6465 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6466 x_display_pixel_width.
6467
64682008-09-18 Kenichi Handa <handa@m17n.org>
6469
6470 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6471 (composition_compute_stop_pos): Fix handling of static composition.
6472 (Fcomposition_get_gstring): Check FROM and TO at first.
6473
64742008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6475
46e722a9 6476 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6477 mixup (YAILOM).
6478
64792008-09-17 Chong Yidong <cyd@stupidchicken.com>
6480
6481 * indent.c (Fvertical_motion): Use position reported by iterator
6482 instead of PT for determining screen motion (bug#943).
6483
64842008-09-17 Romain Francoise <romain@orebokech.com>
6485
6486 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6487
64882008-09-17 Kenichi Handa <handa@m17n.org>
6489
6490 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6491
6492 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6493 if necessary.
6494
64952008-09-16 Kenichi Handa <handa@m17n.org>
6496
6497 * coding.c (make_conversion_work_buffer): Avoid calling
6498 Fget_buffer_create if it is not necessary.
6499
65002008-09-15 Martin Rudalics <rudalics@gmx.at>
6501
6502 * window.c (Fselect_window): Don't update window_select_count and
6503 use_time when norecord is not nil.
6504
65052008-09-14 Kenichi Handa <handa@m17n.org>
6506
6507 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6508 specpdl_ptr.
6509
65102008-09-12 Kenichi Handa <handa@m17n.org>
6511
6512 * indent.c (scan_for_column): Don't handle automatic composition
6513 if the current buffer is not associated with a window.
6514
6515 * composite.c (composition_reseat_it): If the current buffer is
6516 not associated with a window, ignore the automatic composition.
6517 (find_automatic_composition): Likewise.
6518
65192008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6520
6521 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6522 (Fgpm_mouse_stop): Use it.
6523 * termhooks.h (close_gpm): Declare.
6524 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6525 connection if Gpm_GetEvent fails.
6526
6527 * window.c (set_window_buffer): Always preserve current-buffer.
6528
65292008-09-12 Glenn Morris <rgm@gnu.org>
6530
6531 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6532
65332008-09-11 Glenn Morris <rgm@gnu.org>
6534
6535 * charset.c (charset-map-path): Doc fix.
6536
65372008-09-10 Kenichi Handa <handa@m17n.org>
6538
6539 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6540
6541 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6542 compose a grapheme cluster with the preceding base glyph.
6543
6544 * composite.c (composition_compute_stop_pos): Fix previous change.
6545 Reset cmp_it->id to -1 at first.
6546
65472008-09-10 Glenn Morris <rgm@gnu.org>
6548
6549 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6550
65512008-09-09 Chong Yidong <cyd@stupidchicken.com>
6552
6553 * keyboard.c (read_key_sequence): Reapply translation maps when
6554 switching keyboards.
6555
65562008-09-09 Kenichi Handa <handa@m17n.org>
6557
6558 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6559 characters.
6560
6561 * composite.c (FORWARD_CHAR): Fix calculation
6562 of (POSITION).pos_byte.
6563 (composition_compute_stop_pos): Limit the search of composition to
6564 at most 500 characters ahead. If we reach the limit or find a
6565 newline, set cmp_it->ch to -2 and return 0.
6566 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6567
65682008-09-08 Kenichi Handa <handa@m17n.org>
6569
6570 * indent.c (Fvertical_motion): Be sure to set
6571 it_overshoot_expected if it.cmp_it.id is non-negative.
6572
65732008-09-07 Andreas Schwab <schwab@suse.de>
6574
6575 * callproc.c (Fcall_process): Don't hold references to string data
6576 across garbage collection. Move initialisation of new_argv down
6577 to avoid compiler bug.
6578
65792008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6580
6581 * process.c (Fsystem_process_attributes): Doc fix.
6582
65832008-09-07 Chong Yidong <cyd@stupidchicken.com>
6584
6585 * callproc.c (Fcall_process): Canonicalize current directory name.
6586
6587 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6588 iterator advances to the next line if the current line ends in a
6589 continued tab.
6590
65912008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6592
6593 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6594 member to point to cmp_from.
6595
6596 * xdisp.c: Doc fix for references to gidx data member.
6597
65982008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6599
6600 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6601
66022008-09-07 Kenichi Handa <handa@m17n.org>
6603
6604 * composite.c (FORWARD_CHAR): Check STOP after
6605 incrementing (POSITION).pos.
6606
66072008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6608
6609 * process.c (Fsystem_process_attributes): Doc fix.
6610
66112008-09-06 Chong Yidong <cyd@stupidchicken.com>
6612
6613 * keyboard.c (Ftop_level): Doc fix.
6614
66152008-09-06 Eli Zaretskii <eliz@gnu.org>
6616
6617 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6618 minibuffer, don't let lower part of menu invade the echo area.
6619
6620 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6621 "char *q" to access menu text and advance through it. Revert the
6622 change that displayed ">" instead of ASCII character 0x10.
6623
66242008-09-05 Eli Zaretskii <eliz@gnu.org>
6625
6626 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6627 toggle boxes and radio buttons on MS-DOS as well.
6628
66292008-09-05 Kenichi Handa <handa@m17n.org>
6630
6631 * composite.c (autocmp_chars): Check lookback count.
6632 (composition_compute_stop_pos): Set cmp_it->lookback.
6633 (composition_reseat_it): Check lookback count.
6634 (struct position_record): New struct.
6635 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6636 (find_automatic_composition): New function.
6637 (composition_adjust_point): Use find_automatic_composition.
6638
6639 * dispextern.h (struct composition_it): New member lookback.
6640
66412008-09-02 Chong Yidong <cyd@stupidchicken.com>
6642
6643 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6644 if moving by a single line.
6645
66462008-09-02 Andreas Schwab <schwab@suse.de>
6647
6648 * xterm.c (x_delete_display): Fix merge error.
6649
6650 * fileio.c (Fexpand_file_name): Remove unused variables.
6651
66522008-09-02 Eli Zaretskii <eliz@gnu.org>
6653
6654 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6655 storage on all platforms, not just on DOS_NT.
6656
66572008-09-02 Jason Rumney <jasonr@gnu.org>
6658
b8ff72fa
SM
6659 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6660 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6661
66622008-09-01 Chong Yidong <cyd@stupidchicken.com>
6663
6664 * xfaces.c (Finternal_set_alternative_font_family_alist)
6665 (Finternal_set_alternative_font_registry_alist): Properly copy
6666 entire alist structure.
6667
66682008-09-01 Kenichi Handa <handa@m17n.org>
6669
d66c0241 6670 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6671 representative chars of the script is a vector.
d66c0241
JB
6672 (ftfont_list): Handle the case where the representative chars of
6673 the script is a vector.
aac0c6e3
MR
6674
6675 * character.c (syms_of_character): Docstring of
6676 script-representative-chars fixed.
6677
66782008-08-31 Eli Zaretskii <eliz@gnu.org>
6679
6680 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6681 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6682 the menu. Allocate larger buffer for `text', to account for
6683 possible ^C characters.
6684
66852008-08-31 Martin Rudalics <rudalics@gmx.at>
6686
6687 * xdisp.c (prepare_menu_bars): Don't call
6688 Vwindow_size_change_functions with arg Qt.
6689
66902008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6691
6692 * font.h (font_range):
6693 * fileio.c (report_file_error):
46e722a9
SM
6694 * composite.c (composition_update_it): Yet another int/Lisp_Object
6695 mixup (YAILOM).
aac0c6e3
MR
6696
66972008-08-30 Glenn Morris <rgm@gnu.org>
6698
6699 * data.c (Fmake_variable_frame_local): Doc fix.
6700
6701 * frame.c (Fmodify_frame_parameters): Doc fix.
6702
67032008-08-30 Eli Zaretskii <eliz@gnu.org>
6704
6705 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6706 needed by GetTokenInformation.
6707 (w32_system_process_attributes): Check return values of all system
6708 APIs.
6709
6710 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6711 only when the state changes.
6712 (IT_update_begin, IT_update_end): Add termscript trace.
6713
6714 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6715 clipboard is unavailable. Set dst to NULL if it doesn't point to
6716 malloc'ed data.
6717 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6718 passing random values to xfree.
6719
6720 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6721 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6722
67232008-08-29 Jason Rumney <jasonr@gnu.org>
6724
6725 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6726
67272008-08-29 Eli Zaretskii <eliz@gnu.org>
6728
6729 * composite.c (fill_gstring_body): Avoid compiler warnings.
6730
6731 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6732 LGLYPH_SET_CODE to avoid compiler warnings.
6733
2ae37cf0 6734 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6735
6736 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6737
6738 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6739 LGLYPH_SET_CODE.
6740
67412008-08-29 Kenichi Handa <handa@m17n.org>
6742
6743 * fileio.c (report_file_error): Don't downcase the first character
6744 of errstring if it is still unibyte.
6745
67462008-08-29 Kenichi Handa <handa@m17n.org>
6747
6748 These changes are to re-implement the automatic composition so
6749 that it doesn't use text properties.
6750
6751 * Makefile.in (ftfont.o): Depend on composite.h.
6752 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6753
6754 * character.h (Vunicode_category_table): Extern it.
6755
6756 * character.c (Vunicode_category_table): New variable.
6757 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6758
6759 * chartab.c (optimize_sub_char_table): Perform more greedy
6760 optimization.
6761
b8ff72fa
SM
6762 * composite.h (enum composition_method):
6763 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6764 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6765 (Vcomposition_function_table): Extern it.
6766 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6767 (composition_gstring_put_cache, composition_gstring_from_id)
6768 (composition_gstring_p, composition_gstring_width)
6769 (composition_compute_stop_pos, composition_reseat_it)
6770 (composition_update_it, composition_adjust_point): Extern them.
6771 (Fcomposition_get_gstring): EXFUN it.
6772
d66c0241 6773 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6774 (Vcomposition_function_table)
6775 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6776 (gstring_hash_table, gstring_work, gstring_work_headers):
6777 New variables.
aac0c6e3
MR
6778 (gstring_lookup_cache, composition_gstring_put_cache)
6779 (composition_gstring_from_id, composition_gstring_p)
6780 (composition_gstring_width, fill_gstring_header)
6781 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6782 (composition_reseat_it, composition_update_it)
b8ff72fa 6783 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6784 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6785 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6786 Defsubr compostion_get_gstring.
6787
6788 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6789 cmp_id.
6790 (struct glyph_string): Delete the member gidx. New members
6791 cmp_id, cmp_from, and cmp_to.
6792 (enum it_method): Delete GET_FROM_COMPOSITION.
6793 (struct composition_it): New struct.
6794 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6795 Delete c, len, cmp_id, cmp_len in u.comp.
6796
6797 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6798 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6799 (enum lglyph_indices): Likewise.
b8ff72fa 6800 (font_range): Adjust extern.
aac0c6e3
MR
6801 (font_fill_lglyph_metrics): Extern it.
6802
6803 * font.c (QCf): New variable.
6804 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6805 (font_prepare_composition): Delete this function.
6806 (font_range): Type and arguments changed.
6807 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6808 (font_fill_lglyph_metrics): New function.
b8ff72fa 6809 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6810 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6811 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6812 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6813
6814 * fontset.h (font_for_char): Extern it.
6815
6816 * fontset.c (font_for_char): New function.
6817
6818 * ftfont.c: Include composite.h.
6819 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6820 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6821
6822 * indent.c: Include composite.h and dispextern.h.
6823 (check_composition): Delete this function.
6824 (scan_for_column): Handle composition by
6825 composition_compute_stop_pos, composition_reseat_it, and
6826 composition_update_it.
6827 (compute_motion): Likewise.
6828 (Fvertical_motion): Fix checking of composition.
6829
6830 * keyboard.c (adjust_point_for_property): Check composition by
6831 composition_adjust_point.
6832
b8ff72fa 6833 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6834 struct glyph_string.
6835
b8ff72fa
SM
6836 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6837 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6838 struct glyph.
6839 (produce_composite_glyph): Likewise.
6840
b8ff72fa
SM
6841 * w32term.c (x_draw_composite_glyph_string_foreground):
6842 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6843 (x_draw_glyph_string): Likewise.
6844
6845 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6846 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6847
6848 * xdisp.c: Include font.h.
6849 (it_props): Delete the entry for Qauto_composed.
6850 (init_iterator): Initialize it->cmp_it.id to -1.
6851 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6852 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6853 (handle_auto_composed_prop): Delete it.
6854 (handle_composition_prop): Handle only static composition.
6855 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6856 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6857 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6858 (pop_it): Likewise.
6859 (get_next_element): Delete next_element_from_composition.
6860 (CHAR_COMPOSED_P): New macro.
6861 (get_next_display_element): For automatic composition, get a face
6862 from the font in the glyph-string.
6863 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6864 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6865 (next_element_from_string): Check if the character at the current
6866 position is composed by CHAR_COMPOSED_P.
6867 (next_element_from_buffer): Likewise.
d66c0241
JB
6868 (next_element_from_composition): Adjust for the change of struct it.
6869 Update it->cmp_it.
b8ff72fa
SM
6870 (dump_glyph): Adjust for the change of struct glyph.
6871 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6872 it and struct glyph. Don't handle automatic composition here.
6873 (fill_gstring_glyph_string): New function.
6874 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6875 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6876 (BUILD_GSTRING_GLYPH_STRING): New macro.
6877 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6878 automatic composition.
b8ff72fa 6879 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6880 struct glyph.
b8ff72fa 6881 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6882
b8ff72fa 6883 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6884 the change of struct glyph_string.
6885 (x_draw_glyph_string): Likewise.
6886
68872008-08-29 Glenn Morris <rgm@gnu.org>
6888
6889 * buffer.c (word-wrap): Doc fix.
6890 * xdisp.c (truncate-partial-width-windows): Doc fix.
6891 Increase default to 50.
6892
68932008-08-29 Chong Yidong <cyd@stupidchicken.com>
6894
6895 * xdisp.c (update_tool_bar_unwind): New function.
6896 (update_tool_bar): Temporarily set selected frame before building
6897 tool-bar items.
6898
68992008-08-28 Michael Albinus <michael.albinus@gmx.de>
6900
6901 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6902 snprintf, respectively.
6903 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6904
69052008-08-28 Chong Yidong <cyd@stupidchicken.com>
6906
6907 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6908 LDFLAGS to GNUstep CC invocation.
6909
69102008-08-27 Chong Yidong <cyd@stupidchicken.com>
6911
6912 * indent.c (Fvertical_motion): Revert last change. Handle the
6913 general case where we are moving forward, and PT spans multiple
6914 screen lines.
6915
6916 * eval.c (find_handler_clause): Temporarily increase
6917 max-lisp-eval-depth while printing the backtrace buffer, to
6918 guarantee that help-mode code can run.
6919
69202008-08-27 Eli Zaretskii <eliz@gnu.org>
6921
6922 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6923 colors under -rv.
6924 (IT_set_frame_parameters): Don't swap foreground and background
6925 colors if `(reverse . t)' is present in the frame properties.
6926 (internal_terminal_init): Call init_frame_faces only for the
6927 initial frame.
6928
69292008-08-27 Andreas Schwab <schwab@suse.de>
6930
6931 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6932
69332008-08-27 Andreas Schwab <schwab@suse.de>
6934
6935 * search.c (search_buffer): Set char_base to zero only at the end.
6936
69372008-08-27 Kenichi Handa <handa@m17n.org>
6938
b8ff72fa 6939 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6940
69412008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6942
6943 * xterm.c (x_term_init): Temporarily hide the partially
6944 initialized terminal while calling vendor-specific-keysyms.
6945
69462008-08-26 Eli Zaretskii <eliz@gnu.org>
6947
6948 * msdos.c (internal_terminal_init): Most initializations done only
6949 once, especially initial_screen_colors[] and termscript open.
6950
69512008-08-26 Chong Yidong <cyd@stupidchicken.com>
6952
6953 * eval.c (Fcondition_case): Doc fix.
6954
6955 * widgetprv.h (EmacsFramePart): Change font member to the new font
6956 struct.
6957
6958 * widget.c: Include character.h and font.h for XSETFONT.
6959 (setup_frame_gcs): Compute X font id from font struct, just once.
6960
69612008-08-26 Eli Zaretskii <eliz@gnu.org>
6962
6963 * term.c (get_named_tty): Fix last change.
6964
69652008-08-26 Chong Yidong <cyd@stupidchicken.com>
6966
6967 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6968 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6969
69702008-08-25 Eli Zaretskii <eliz@gnu.org>
6971
6972 * frame.c (do_switch_frame): Mark previously displayed frame as
6973 obscured for FRAME_MSDOS_P frames as well.
6974
69752008-08-24 Eli Zaretskii <eliz@gnu.org>
6976
6977 * frame.c (make_terminal_frame): Initialize f->terminal,
6978 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6979 Set the top frame to newly created frame.
6980 (Fmake_terminal_frame): Reuse the_only_display_info.
6981
6982 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6983 estimating available memory.
6984
b97439ce 69852008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6986
6987 * nsterm.m (ns_draw_window_cursor): Don't call
6988 NSDisableScreenUpdates and NSEnableScreenUpdates on
6989 non-NS_IMPL_COCOA systems.
6990
69912008-08-23 Andreas Schwab <schwab@suse.de>
6992
6993 * process.c (procfs_system_process_attributes): Fix use of
6994 uninitialized variables.
6995
69962008-08-23 Eli Zaretskii <eliz@gnu.org>
6997
6998 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6999
7000 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7001 calling tty-set-up-initial-frame-faces.
7002
b8ff72fa
SM
7003 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7004 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7005
7006 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7007 addition to output_termcap.
7008
7009 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7010
7011 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7012 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7013 highlight.
7014
7015 * process.c [!subprocesses]: Define QCname.
7016 (syms_of_process): Intern and staticpro it.
7017
7018 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7019 Adjust for changes in encoding/decoding routines.
7020 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7021 encode_coding and decode_coding.
7022
b8ff72fa 7023 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7024
7025 * dosfns.c: Include frame.h before termhooks.h.
7026 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7027 variable termscript.
7028
7029 * s/msdos.h (USER_FULL_NAME): Define.
7030 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7031
7032 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7033 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7034 pw->pw_gecos.
7035
7036 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7037 SELECTED_FRAME as additional (1st) argument.
7038 (tty_read_avail_input): Handle output_msdos_raw in
7039 addition to output_termcap.
7040
7041 * msdos.c: Include frame.h before termhooks.h.
7042 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7043 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7044 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7045 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7046 (IT_set_terminal_modes, IT_reset_terminal_modes)
7047 (IT_set_frame_parameters): Use tty->termscript instead of a global
7048 variable termscript.
7049 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7050 global variable terminal_coding. Don't refer to
7051 Vnonascii_translation_table.
7052 (internal_terminal_init): Set Vwindow_system in current_kboard.
7053 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7054 Announce date and time of session start, if termscript is open.
7055 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7056 term.c:init_tty). Open termscript only of not already open.
7057 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7058 here instead of dos_ttraw. Don't initialize display if this is an
7059 initial tty. Don't set FRAME_FONT.
7060 (Vwindow_system_version): Bump to 23.
7061 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7062 is available, set up mouse_position_hook.
7063 (dos_ttraw, IT_set_terminal_modes): If called with initial
7064 terminal, do nothing.
7065 (IT_set_frame_parameters): Handle the Qtty_type frame
7066 parameter by calling internal_terminal_init.
7067 (dos_set_window_size, show_mouse_face)
7068 (clear_mouse_face, IT_note_mode_line_highlight)
7069 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7070 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7071 (initialize_msdos_display): New function.
7072 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7073 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7074 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7075 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7076 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7077 (request_sigio, unrequest_sigio): Don't define, now defined on
7078 sysdep.c.
7079 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7080
7081 * term.c [MSDOS]: Include msdos.h.
7082 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7083 conditional to DOS_NT. Allow only one call to this function in a
7084 session. Don't allocate a new struct tty_display_info; instead,
7085 reuse the_only_display_info. Call get_tty_size to get screen
7086 dimensions. Call init_baud_rate to set bad_rate.
7087 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7088 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7089 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7090 (get_tty_terminal, get_named_tty, Ftty_type)
7091 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7092 output_termcap.
b8ff72fa
SM
7093 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7094 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7095 only when subprocesses are supported.
aac0c6e3
MR
7096
7097 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7098 f->output_data.x.
7099 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7100 terminal devices.
7101
5582fbc7 7102 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7103 x_output.
7104 (FRAME_FONT): Use output_data.tty.
7105 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7106 (struct x_display_info): Rename from display_info. Update all users in
7107 msdos.c.
aac0c6e3 7108 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7109 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7110 (dos_ttraw): Update prototype.
7111
7112 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7113 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7114
71152008-08-23 Jason Rumney <jasonr@gnu.org>
7116
7117 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7118 (fn_TIFFSetDirectory): New library function used.
7119 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7120 (tiff_load): Use :index to select among multiple images. Set count
7121 property when multiple images exist.
7122 (gif_format): Use :index, not :image.
7123
71242008-08-23 Chong Yidong <cyd@stupidchicken.com>
7125
7126 * xdisp.c (try_scrolling): Check INT_MAX instead of
7127 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7128 to obtain INT_MAX.
7129
71302008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7131
7132 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7133
71342008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7135
7136 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7137 GNUstep library location.
7138
71392008-08-21 Chong Yidong <cyd@stupidchicken.com>
7140
7141 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7142 before using it.
7143
7144 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7145
71462008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7147
7148 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7149 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7150 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7151 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7152 (EmacsApp-cursor_blink_handler): Remove declaration.
7153 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7154 match 01 Feb 2008 changes in xterm.c.
7155 (ns_read_socket): Add cast to avoid warning.
7156 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7157 GNUstep.
7158
71592008-08-20 Chong Yidong <cyd@stupidchicken.com>
7160
7161 * xselect.c (x_get_foreign_selection): Return nil if desired
7162 selection could not be obtained, instead of signalling an error.
7163
71642008-08-20 David Reitter <david.reitter@gmail.com>
7165
7166 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7167 * nsterm.m: Remove ns-specific code for cursor blinking.
7168 (ns_draw_window_cursor): Clear cursor properly rather than
7169 redrawing the area. Respect width of bar cursors.
7170 These changes enable the use of generic blink-cursor-mode and
7171 generic cursor types in NS and support smooth cursor movements (do
7172 not blink off after command).
7173 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7174 Nextstep, too.
7175
71762008-08-19 Kenichi Handa <handa@m17n.org>
7177
7178 * font.c (Vfont_log_deferred): New variable.
7179 (font_add_log): Check Vfont_log_deferred.
7180 (font_deferred_log): New function.
7181
7182 * font.h (font_deferred_log): Extern it.
7183
7184 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7185 for sorting.
7186 (face_for_char): Use deferred log.
7187
71882008-08-18 Kenichi Handa <handa@m17n.org>
7189
7190 * fontset.c (face_for_char): Add font log.
7191
7192 * font.c (font_add_log): Add the font properties :script, :lang,
7193 and :otf in the log.
7194
71952008-08-17 Chong Yidong <cyd@stupidchicken.com>
7196
7197 * xdisp.c: Remove dead code.
7198 (handle_invisible_prop, next_overlay_string): Defer call to
7199 setup_for_ellipsis.
7200 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7201
72022008-08-15 Chong Yidong <cyd@stupidchicken.com>
7203
7204 * xfaces.c (lookup_derived_face): Properly handle possible zero
7205 return value of get_lface_attributes.
7206 (merge_faces): Don't tell lookup_derived_face to signal an error
7207 if face is not found.
7208
7209 * dired.c (Fdirectory_files): Doc fix.
7210
7211 * process.c (make_process): Initialize kill_without_query struct
7212 member.
7213
72142008-08-15 Eli Zaretskii <eliz@gnu.org>
7215
7216 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7217 Alternative calculation of totphys for Visual Studio 6.
7218
7219 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7220
7221 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7222 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7223 All users changed.
7224 (stat): Only root directory passed to GetDriveType. Allow RAM
7225 disk as well as local fixed disk when w32-get-true-file-attributes
7226 is set to `local'.
7227 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7228 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7229 (w32_cached_id, w32_add_to_cache): New functions.
7230 (get_name_and_id): Look account names in the cache before calling
7231 lookup_account_sid.
7232 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7233 New initialization flags.
7234 (globals_of_w32): Initialize them to zero.
7235 (w32_system_process_attributes): Use w32_cached_id and
7236 w32_add_to_cache.
7237
72382008-08-14 Lawrence Mitchell <wence@gmx.li>
7239
7240 * lread.c (Fread_char, Fread_char_exclusive): If no character
7241 event is read before timeout is reached, return nil, rather than
7242 converting to a number.
7243
72442008-08-14 Chong Yidong <cyd@stupidchicken.com>
7245
7246 * fns.c (use_dialog_box): Doc fix.
7247
7248 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7249 on OS X.
7250
72512008-08-13 Chong Yidong <cyd@stupidchicken.com>
7252
7253 * frame.c (Qns_parse_geometry): New var.
7254 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7255
72562008-08-11 Chong Yidong <cyd@stupidchicken.com>
7257
7258 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7259 space character in calculating tabs.
7260
72612008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7262
7263 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7264
72652008-08-10 Glenn Morris <rgm@gnu.org>
7266
7267 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7268 silence gcc "limited range of data type" warnings in some
7269 make_fixnum_or_float calls.
7270
72712008-08-09 Eli Zaretskii <eliz@gnu.org>
7272
7273 * w32.c (w32_system_process_attributes): If the process does not
7274 exist, return nil.
7275
7276 * w32.c: Include thelp32.h, psapi.h and coding.h.
7277 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7278 declarations.
7279 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7280 (Process32Next_Proc): New typedefs.
7281 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7282 (g_b_init_process32_next, g_b_init_open_thread_token)
7283 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7284 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7285 (g_b_init_get_process_working_set_size)
7286 (g_b_init_global_memory_status_ex): New static variables.
7287 (globals_of_w32): Initialize them.
7288 (create_toolhelp32_snapshot, process32_first, process32_next)
7289 (open_thread_token, impersonate_self, revert_to_self)
7290 (get_process_memory_info, get_process_working_set_size)
7291 (global_memory_status, global_memory_status_ex): New wrapper
7292 functions.
7293 (w32_list_system_processes, w32_system_process_attributes)
7294 (enable_privilege, restore_privilege, ltime, process_times):
7295 New functions.
7296 (convert_time_raw): New function.
7297 (convert_time): Remove conversion of FILETIME into time in 100
7298 nsec units, call convert_time_raw instead.
7299
7300 * process.h (w32_list_system_processes, w32_system_process_attributes):
7301 Add prototypes.
7302 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7303 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7304 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7305 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7306
7307 * process.c (Fsystem_process_attributes): Doc fix.
7308
73092008-08-08 Chong Yidong <cyd@stupidchicken.com>
7310
7311 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7312 a continued multi-char glyph; if so, advance to the actual glyph.
7313
73142008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7315
7316 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7317
7318 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7319 (.m.o): Use it.
7320 * config.in: Regenerate.
7321
73222008-08-07 Chong Yidong <cyd@stupidchicken.com>
7323
7324 * xdisp.c (redisplay_window): Revert last change.
7325 (try_window): Check bottom scroll margin too.
7326
73272008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7328
7329 * config.in: Regenerate.
7330
7331 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7332 -list-load-path-shadows'.
7333 (nsgui.h): Reduce number of things depending on it.
7334
73352008-08-06 Chong Yidong <cyd@stupidchicken.com>
7336
7337 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7338 instead of window-end which does the wrong thing at eob.
7339 (try_cursor_movement): Minor optimization.
7340 (redisplay_window): If scroll margin is defined, don't assume
7341 window doesn't need scrolling.
7342
73432008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7344
7345 * config.in: Regenerate.
7346
7347 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7348 (mostlyclean): Don't delete *.d under NS.
7349
7350 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7351
73522008-08-06 Kenichi Handa <handa@m17n.org>
7353
7354 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7355
73562008-08-06 Andreas Schwab <schwab@suse.de>
7357
7358 * config.in: Regenerate.
7359
73602008-08-05 Chong Yidong <cyd@stupidchicken.com>
7361
7362 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7363 forcing a window start.
7364
7365 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7366 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7367
73682008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7369
7370 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7371 argument.
7372
73732008-08-05 Juanma Barranquero <lekktu@gmail.com>
7374
7375 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7376 <scroll-down-aggressively, before-change-functions>:
7377 <after-change-functions>: Reflow docstrings.
7378
73792008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7380 Ken Raeburn <raeburn@gnu.org>
7381
7382 Dock menu customization, based on a patch by Ken Raeburn, plus some
7383 other fixes.
7384 * nsmenu.m (dockMenu): New variable.
7385 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7386
7387 * nsterm.h (dockMenu): Declare.
7388
7389 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7390 (ns_term_init): Initialize dockMenu.
7391 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7392 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7393 left.
7394
7395 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7396
73972008-08-04 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7400
7401 * config.in: Regenerate.
7402
74032008-08-04 Seiji Zenitani <zenitani@mac.com>
7404
7405 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7406
74072008-08-04 Chong Yidong <cyd@stupidchicken.com>
7408
7409 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7410
74112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7412
7413 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7414
7415 * keyboard.h: Comment an #endif.
7416
7417 * lisp.h (have_menus_p): Adjust comment.
7418
7419 * menu.c (find_and_return_menu_selection): Fix comparison with
7420 client_data.
7421
7422 * nsmenu.m (popup_activated_flag): New variable.
7423 (popup_activated): New function.
7424 (menu-or-popup-active-p): New exported lisp definition.
7425 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7426 when popup done.
7427 (ns_popup_dialog): Set popup_activated_flag.
7428
7429 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7430 version for GNUstep (handled by conditional typedef in nsterm.m).
7431 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7432 in rgb.txt).
7433
7434 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7435
7436 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7437
7438 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7439
7440 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7441 shortcircuit if popup_activated like GTK and X toolkit.
7442
7443 * m/inter386.h: Change DARWIN to DARWIN_OS.
7444
7445 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7446 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7447 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7448 comment on NO_SOCK_SIGIO.
7449
74502008-08-03 Chong Yidong <cyd@stupidchicken.com>
7451
7452 * nsterm.m (windowDidResize): Remove stopModal call.
7453
74542008-08-03 Andreas Schwab <schwab@suse.de>
7455
7456 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7457 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7458
74592008-08-02 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7462 Don't use uninitialized pointer variable when using getrlimit.
7463
74642008-08-02 Jason Rumney <jasonr@gnu.org>
7465
7466 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7467
74682008-08-02 Eli Zaretskii <eliz@gnu.org>
7469
7470 * alloc.c (NSTATICS): Bump to 0x640.
7471
7472 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7473
7474 * lisp.h: Add prototype for directory_files_internal.
7475
7476 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7477 New functions.
7478 (syms_of_process): Defsubr them. Add initializations for various
7479 Q* symbols used in procfs_system_process_attributes.
7480 (procfs_list_system_processes, procfs_system_process_attributes)
7481 [HAVE_PROCFS]: New functions.
7482 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7483 (procfs_get_total_memory): New functions.
7484
74852008-08-01 Juanma Barranquero <lekktu@gmail.com>
7486
7487 * xfaces.c (Fx_load_color_file): Fix previous change;
7488 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7489
74902008-08-01 Michael Albinus <michael.albinus@gmx.de>
7491
7492 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7493
74942008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7495
7496 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7497
74982008-08-01 Chong Yidong <cyd@stupidchicken.com>
7499
7500 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7501
7502 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7503 define NSApplicationDelegateReplySuccess.
7504 (EmacsView -converstationIdentifier): Use long instead of
7505 NSInteger for GNUstep, since it doesn't have NSInteger.
7506
7507 * xmenu.c: Revert last change.
7508
7509 * keyboard.h: Fix last change.
7510
75112008-08-01 Juanma Barranquero <lekktu@gmail.com>
7512
7513 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7514 on Windows.
7515
75162008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7517
7518 Warning clearing and clean-up in NS port.
7519 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7520 Add prototypes.
7521 * nsgui.h (FACE_DEFAULT): Remove, unused.
7522 (XGCValues): Change colors to unsigned long.
7523 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7524 nsterm.m.
7525 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7526 (ns_list_fonts): Remove, unused.
7527 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7528 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7529 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7530 (nsfont_draw): Compare face colors to 0, not nil.
7531 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7532 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7533 (-addSubmenuWithTitle:): Use NSMenuItem class.
7534 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7535 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7536 (ns_clip_to_row): Make gc arg a BOOL.
7537 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7538 ns_clip_to_row() call.
7539 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7540 used). Cast FRAME_FONT assignments.
7541 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7542 (ns_string_to_lispmod): Change arg to const char.
7543 (ns_term_init): Use NSMenuItem class.
7544 (EmacsApp -openFile:): Move to different section of file.
7545 (EmacsApp -application:openFiles:): Don't return a value, call
7546 -replyToOpenOrPrint:.
7547 (EmacsView -keyDown:): Fix up cast.
7548 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7549 (EmacsView -menuDown:): Cast tag in call to
7550 find_and_call_menu_selection().
7551 (ns_list_fonts): Remove, unused.
7552 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7553 (ns_fontname_to_xlfd): Make static.
7554 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7555 Remove prototypes (now in keyboard.h).
7556 (next_menubar_widget_id): Remove, unused.
7557 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7558 Remove prototypes (now in keyboard.h).
7559 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7560
75612008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7562
7563 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7564 (floatfns.o): Depend on syssignal.h.
7565 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7566
7567 * systty.h: Fix previous change that removed BSD_TERMIOS.
7568 Add comments to #ifdefs.
7569
75702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7571
7572 * w32fns.c (w32-load-color-file): Remove.
7573 (x-open-connection): Use renamed Fx_load_color_file.
7574 * xfaces.c (x-load-color-file): Add.
7575 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7576 Emacs.clr.
7577 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7578
75792008-07-31 Michael Albinus <michael.albinus@gmx.de>
7580
7581 * dbusbind.c (Fdbus_call_method_asynchronously)
7582 (Fdbus_method_error_internal): New defuns.
7583 (xd_read_message): Handle also reply messages.
7584 (Vdbus_registered_functions_table): Extend docstring.
7585
75862008-07-31 Juanma Barranquero <lekktu@gmail.com>
7587
7588 * keyboard.c (gobble_input): Fix previous change.
7589
75902008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7591
7592 * bitmaps/README:
7593 * xfns.c:
7594 * termcap.c:
7595 * term.c:
7596 * syswait.h:
7597 * systty.h:
7598 * systime.h:
7599 * syssignal.h:
7600 * sysdep.c:
7601 * process.h:
7602 * process.c:
7603 * print.c:
7604 * ndir.h:
7605 * lread.c:
7606 * keyboard.c:
7607 * getpagesize.h:
7608 * floatfns.c:
7609 * fileio.c:
7610 * emacs.c:
7611 * doc.c:
7612 * dispnew.c:
7613 * dired.c:
7614 * data.c:
7615 * callproc.c:
7616 * buffer.c:
7617 * README:
7618 * Makefile.in:
7619 * s/template.h:
7620 * s/msdos.h:
7621 * m/vax.h: Remove VMS support.
7622 * s/vms.h:
7623 * vlimit.h:
7624 * uaf.h:
7625 * temacs.opt:
7626 * param.h:
7627 * ioctl.h: Remove file.
7628
76292008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * s/ms-w32.h (MULTI_KBOARD): Remove.
7632 * xterm.c:
7633 * xselect.c:
7634 * xfns.c:
7635 * window.c:
7636 * w32term.c:
7637 * w32fns.c:
7638 * terminal.c:
7639 * termhooks.h:
7640 * term.c:
7641 * sysdep.c:
7642 * keyboard.h:
7643 * keyboard.c:
7644 * frame.h:
7645 * frame.c:
7646 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7647 * config.in: Regenerate.
7648
76492008-07-30 Jason Rumney <jasonr@gnu.org>
7650
7651 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7652
7653 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7654 (w32font_open_internal): Get unicode version of textmetrics.
7655 Don't enable or disable glyph indices here.
7656 (w32font_open): Disable use of glyph indices.
7657
7658 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7659
76602008-07-30 Chong Yidong <cyd@stupidchicken.com>
7661
7662 * minibuf.c (Vread_buffer_function): Doc fix.
7663
76642008-07-30 John Paul Wallington <jpw@pobox.com>
7665
7666 * minibuf.c (read_buffer_completion_ignore_case): New var.
7667 (Fread_buffer): Use it.
7668
76692008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7670
7671 * systty.h (sensemode): Remove empty #if. Remove reference to
7672 BSD_TERMIOS, unused.
7673
7674 * sysdep.c: Remove reference to DGUX.
7675 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7676
7677 * config.in: Regenerate.
7678
76792008-07-30 Jason Rumney <jasonr@gnu.org>
7680
7681 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7682
76832008-07-29 Jason Rumney <jasonr@gnu.org>
7684
7685 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7686 is populated.
7687 (uniscribe_encode_char): Always use uniscribe.
7688 Avoid using context if cache is populated.
7689
76902008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7691
7692 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7693 open menu.
7694
7695 * gtkutil.c (menu_nav_ended): Remove.
7696 (create_menus): Remove signal connect for menu_nav_ended.
7697
76982008-07-28 Chong Yidong <cyd@stupidchicken.com>
7699
7700 * xdisp.c (redisplay_window): Check return value of
7701 compute_window_start_on_continuation_line before forcing a window
7702 start.
7703
77042008-07-28 Jason Rumney <jasonr@gnu.org>
7705
7706 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7707
7708 * w32term.c (w32_enable_unicode_output, cleartype_active):
7709 Remove obsolete display options.
7710 (x_draw_glyph_string_background): Don't use old cleartype_active
7711 workaround.
7712 (w32_initialize): Remove cleartype_active initialization.
7713 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7714
77152008-07-28 Andreas Schwab <schwab@suse.de>
7716
7717 * lisp.h (init_weak_hash_tables, syms_of_font)
7718 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7719 (remove_hash_entry): Don't declare.
7720 * eval.c (maybe_call_debugger): Make static and move before use.
7721 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7722 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7723 * xterm.h (x_set_frame_alpha): Declare.
7724
77252008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7726
7727 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7728 (create_menus): Connect selection-done to menu_nav_ended.
7729
77302008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7731
7732 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7733 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7734 parameter with read of 'alpha' one.
7735 (Qns_frame_parameter): Remove.
5582fbc7 7736 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7737 (next-selection-coding-system, Vselection_coding_system)
7738 (Vnext_selection_coding_system): Drop.
7739
77402008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7741
7742 * nsfns.m (do-applescript, do_applescript): Rename to
7743 ns-do-applescript, ns_do_applescript, and move within file.
7744
77452008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7746
7747 Remove support for Mac Carbon.
7748 * mactoolbox.c:
7749 * macterm.h:
7750 * macterm.c:
7751 * macselect.c:
7752 * macmenu.c:
7753 * macgui.h:
7754 * macfns.c:
7755 * mac.c: Remove file.
7756 * s/darwin.h:
7757 * m/intel386.h:
7758 * xfaces.c:
7759 * xdisp.c:
7760 * window.c:
7761 * tparam.c:
7762 * termhooks.h:
7763 * termcap.c:
7764 * term.c:
7765 * syssignal.h:
7766 * sysselect.h:
7767 * sysdep.c:
7768 * process.c:
7769 * lread.c:
7770 * lisp.h:
7771 * keyboard.c:
7772 * image.c:
7773 * fringe.c:
7774 * frame.h:
7775 * frame.c:
7776 * fontset.c:
7777 * font.h:
7778 * font.c:
7779 * fns.c:
7780 * fileio.c:
7781 * emacs.c:
7782 * dispnew.c:
7783 * dispextern.h:
7784 * config.in:
7785 * atimer.c:
2ae37cf0 7786 * Makefile.in: Remove code for Carbon.
aac0c6e3 7787
f0131492 77882008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7789
7790 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7791
77922008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7793
7794 * macterm.h (kCGBitmapByteOrder32Host): New define for
7795 non-universal SDKs.
7796
7797 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7798 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7799
7800 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7801 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7802
78032008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7804
7805 * w32inevt.c: Include dispextern.h.
7806
78072008-07-26 Andreas Schwab <schwab@suse.de>
7808
7809 * print.c (print_object): Fix off-by-one in last change.
7810
78112008-07-25 Juanma Barranquero <lekktu@gmail.com>
7812
7813 * term.c (syms_of_term): Don't initialize default_orig_pair,
7814 default_set_foreground and default_set_background on Windows.
7815
78162008-07-25 Jason Rumney <jasonr@gnu.org>
7817
7818 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7819 ScriptItemize. Clean up return value checking. Remove unused
7820 variables.
7821 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7822 shaping engine.
7823
7824 * w32font.c (w32font_has_char): Handle the case where we can't
7825 determine the script for a character.
7826
78272008-07-25 Chong Yidong <cyd@stupidchicken.com>
7828
7829 * term.c (syms_of_term): Initialize default_orig_pair,
7830 default_set_foreground, and default_set_background.
7831
7832 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7833 clash (bug#86).
7834 (getloadavg): Callers changed.
7835
7836 * image.c (svg_load_image): Fix last change.
7837 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7838 image size is valid. Use g_object_unref instead of deprecated
7839 rsvg_handle_free to free rsvg handle.
7840 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7841
78422008-07-25 Jason Rumney <jasonr@gnu.org>
7843
7844 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7845 surrogates before looking up glyph index.
7846 (w32font_text_extents): Encode as surrogates if falling back to
7847 functions that need UTF-16 wide chars.
7848
7849 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7850 BMP as surrogates before looking up glyph index.
7851
78522008-07-25 Chong Yidong <cyd@stupidchicken.com>
7853
7854 * image.c (svg_load_image): Check for failure in return value of
7855 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7856
78572008-07-25 Jason Rumney <jasonr@gnu.org>
7858
7859 * w32font.c (Fx_select_font): Reverse sense of second arg.
7860
78612008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7862
7863 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7864 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7865
7866 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7867 (PURESIZE): Use it.
7868
78692008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7870
7871 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7872 * m/alpha.h (TEXT_END):
7873 * m/ibmrs6000.h (TEXT_END):
7874 * m/macppc.h (TEXT_END):
7875 * s/darwin.h (TEXT_END):
7876 * s/msdos.h (TEXT_END): Remove, unused.
7877 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7878 * s/cygwin.h: Remove comment.
7879
7880 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7881 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7882 * m/intel386.h (DOT_GLOBAL_START):
7883 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7884 (USG): Remove, file not used on USG platforms.
7885
7886 * Makefile.in (HAVE_X11): Remove empty #else.
7887
78882008-07-24 Andreas Schwab <schwab@suse.de>
7889
7890 * fileio.c (Finsert_file_contents): Properly adjust undo list
7891 after format conversion.
7892
78932008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7894
7895 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7896 (menu_nav_ended): Remove.
7897 (create_menus): Remove signal connect for menu_nav_ended.
7898 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7899 create_menus.
7900 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7901
79022008-07-23 Jason Rumney <jasonr@gnu.org>
7903
7904 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7905 with opened font.
7906 (w32font_open): Set font type to gdi.
7907
7908 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7909
79102008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7911
7912 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7913 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7914 defines it.
7915 * unexec.c (ADDR_CORRECT): Define unconditionally.
7916
7917 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7918
7919 * unexec.c: Remove code depending on !COFF and USG, the file is
7920 not used for such systems.
7921
7922 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7923 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7924 (LD_SWITCH_SYSTEM_1): Remove, update users.
7925
7926 * s/darwin.h (DATA_END):
7927 * m/intel386.h (DATA_END):
7928 * m/ibmrs6000.h (DATA_END):
7929 * m/alpha.h (DATA_END): Remove, unused.
7930
7931 * config.in: Regenerate.
7932 * s/ms-w32.h (subprocesses): Define unconditionally.
7933 * s/template.h (subprocesses): Update comment.
7934 * s/vms.h (subprocesses):
7935 * s/usg5-4.h (subprocesses):
7936 * s/hpux10-20.h (subprocesses):
7937 * s/gnu-linux.h (subprocesses):
7938 * s/cygwin.h (subprocesses):
7939 * s/bsd-common.h (subprocesses):
7940 * s/aix4-2.h (subprocesses):
7941 * s/darwin.h (subprocesses): Do not define, defined by default now.
7942
7943 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7944 Remove all references.
7945 (temacs): Add GNUstep specific ld flags.
7946
7947 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7948 similarly to what X does.
7949
79502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7951
7952 * nsfns.m (x-list-fonts): Remove.
7953 (syms_of_nsfns): Drop the x-list-fonts declaration.
7954 * nsterm.m: Get rid of remaining "//" comments.
7955
79562008-07-22 Chong Yidong <cyd@stupidchicken.com>
7957
7958 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7959
7960 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7961 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7962 (Fns_own_selection_internal, Fx_disown_selection_internal)
7963 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7964
7965 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7966 ... */' style of docstrings. Doc fixes.
7967
79682008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7969
7970 * terminfo.c (UP, BC, PC): Undo previous change.
7971
7972 * nsfns.m: Rename ns prefixed functions/variables to the
7973 corresponding x versions. Update references.
7974
79752008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7976
7977 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7978
79792008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7980
7981 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7982 Remove forwarding functions.
7983 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7984 non-static.
7985 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7986 non-static.
7987 (ns_frame_parm_handlers): Use the new names.
7988 (syms_of_nsfns): Move to the end of file.
7989
7990 * nsterm.m (syms_of_nsterm): Move to the end of file.
7991
7992 * dispnew.c (init_display): Remove code for X10.
7993
79942008-07-22 Jason Rumney <jasonr@gnu.org>
7995
7996 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7997 bare drive.
7998
79992008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8000
8001 * nsterm.m (syms_of_nsterm): Remove debugging println.
8002
80032008-07-22 David Reitter <david.reitter@gmail.com>
8004
8005 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8006 Carbon implementation of the same functionality: execute arbitrary
8007 AppleScript code.
8008
80092008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8010
8011 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8012 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8013 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8014 (Fx_display_mm_height, Fx_display_mm_width)
8015 (Fx_display_backing_store, Fx_display_visual_class)
8016 (Fx_display_save_under, Fx_open_connection)
8017 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8018 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8019 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8020 (Fx_display_pixel_width, Fx_display_pixel_height)
8021 (Fx_display_usable_bounds, Fx_display_planes)
8022 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8023 ... */' style of docstrings.
8024
80252008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8026
8027 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8028 on this platform.
8029 (mips):
8030 * m/iris4d.h (mips): Do not define.
8031 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8032
8033 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8034
8035 * image.c:
8036 * nsfns.m:
8037 * nsselect.m:
8038 * nsterm.h:
8039 * nsterm.m: Rename ns prefixed functions/variables to the
8040 corresponding x versions. Update references.
8041
8042 * m/ibms390x.h (NO_REMAP): Do not undefine.
8043
8044 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8045
80462008-07-21 Chong Yidong <cyd@stupidchicken.com>
8047
8048 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8049 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8050 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8051 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8052 (Fns_display_mm_height, Fns_display_mm_width)
8053 (Fns_display_backing_store, Fns_display_visual_class)
8054 (Fns_display_save_under, Fns_open_connection)
8055 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8056 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8057 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8058 (Fns_display_pixel_width, Fns_display_pixel_height)
8059 (Fns_display_usable_bounds, Fx_display_planes)
8060 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8061
80622008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8063
8064 * print.c (print_object): Check print_depth before searching for
8065 circularities.
8066
80672008-07-21 Michael Albinus <michael.albinus@gmx.de>
8068
8069 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8070 only sprintf.
8071
80722008-07-21 Kenichi Handa <handa@m17n.org>
8073
8074 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8075
80762008-07-20 Andreas Schwab <schwab@suse.de>
8077
8078 * syntax.c (find_start_pos, find_start_value)
8079 (find_start_value_byte, find_start_begv, find_defun_start)
8080 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8081
80822008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8083
8084 * s/sol2-3.h: Insert contents of s/sol2.h.
8085 (LD_SWITCH_SYSTEM): Remove redundant definition.
8086 * s/sol2.h: Remove, unused.
8087
80882008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8089
8090 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8091
80922008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8093
8094 * Makefile.in (ns_appdir): Fix typo in find command.
8095
80962008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8097
8098 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8099
8100 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8101 added not supported anymore.
8102
8103 * s/usg5-4-2.h (LIBS_SYSTEM):
8104 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8105
8106 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8107 * s/lynxos.h (GETPGRP_NO_ARG):
8108 * s/hpux10-20.h (NO_SIOCTL_H):
8109 * s/gnu.h (GETPGRP_NO_ARG):
8110 * s/gnu-linux.h (NO_SIOCTL_H):
8111 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8112 * s/cygwin.h (GETPGRP_NO_ARG):
8113 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8114 (C_DEBUG_SWITCH): Remove duplicate definition.
8115
8116 * m/ibms390.h: Remove boilerplate comments.
8117
8118 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8119
8120 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8121 (wait_reading_process_output): Remove code for SunOS, platform not
8122 supported anymore. Use SOLARIS2 instead of sun.
8123
81242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8125
8126 * font.c (font_open_by_name): Under NS, default lface height to zero.
8127 (font_open_for_lface): Under NS, set size based on frame fontsize.
8128 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8129 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8130
81312008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8132
8133 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8134 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8135 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8136 YES/NO.
8137 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8138 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8139 * Makefile.in (clean): Clear out build destination dir.
8140
81412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8142
8143 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8144 xterm, xselect.
8145 * lisp.h: Remove declaration of hash_remove.
8146 * nsgui.h: Remove redefinitions of hash_remove.
8147 * fns.c (hash_remove): Rename to hash_remove_from_table.
8148
81492008-07-19 Seiji Zenitani <zenitani@mac.com>
8150
8151 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8152 strdup() the family UTF8String before modifying it.
8153
81542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8155
8156 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8157 NS_FACE_BACKGROUND with 0 instead of nil.
8158 * nsfont.m (nsfont_draw): Same.
8159
81602008-07-19 Chong Yidong <cyd@stupidchicken.com>
8161
8162 * nsfns.m (ns_set_background_color): Fix crash.
8163
81642008-07-18 Chong Yidong <cyd@stupidchicken.com>
8165
8166 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8167
81682008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8169
8170 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8171
81722008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8173
8174 * gtkutil.c: Include <config.h> instead of "config.h".
8175
8176 * lisp.h (Foverlay_buffer): Add EXFUN.
8177
8178 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8179 child process to complete child_setup. Undo 2005-09-21 change.
8180
8181 * s/darwin.h: Mention setsid after vfork.
8182
81832008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8184
8185 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8186 Depend on macgui.h.
8187
8188 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8189 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8190
8191 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8192 and f19.
8193 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8194
8195 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8196 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8197 Remove enumerators.
8198
8199 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8200 Check if FACE_FROM_ID returns NULL.
8201
82022008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8203
8204 * w32inevt.c (change_frame_size): Remove extern declaration.
8205 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8206 change_frame_size.
8207
82082008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8209
8210 * getloadavg.c: Revert last change (2008-07-15).
8211
82122008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8213
8214 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8215 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8216 from configure.
8217
82182008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8219
8220 * s/sol2.h:
8221 * s/sol2-4.h: Reorganize conditionals.
8222
8223 * ecrt0.c: Remove code depending on m68000, not used anymore.
8224
8225 * fns.c (hash_remove): Make static.
8226 * lisp.h (hash_remove): Don't prototype.
8227
8228 * m/ibmrs6000.h:
8229 * m/ibms390x.h:
8230 * m/macppc.h: Remove boilerplate comments.
8231
8232 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8233 Solaris, which does not need them.
8234
8235 * m/vax.h: Remove comments about unsupported systems.
8236
8237 * s/darwin.h: Reorganize ifdefs.
8238
82392008-07-17 Andreas Schwab <schwab@suse.de>
8240
8241 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8242
82432008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8244
8245 Use SDATA. Follow coding convention of placing operators at
8246 beginning of next line rather than end of previous line, and placing
8247 spaces around infix operators.
8248
8249 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8250 in case it was defined already.
8251 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8252 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8253 ns_default.
8254 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8255 Lisp_Objects.
8256 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8257 (ns_defined_color, ns_color_to_lisp): Declare.
8258 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8259 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8260 it's accepted even with USE_LISP_UNION_TYPE.
8261 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8262 (update_frame_tool_bar): Remove apparently obsolete tests for
8263 non-integerness of f->tool_bar_lines.
8264 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8265 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8266 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8267 (nsfont_open): Don't confuse NULL for Qnil.
8268 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8269 * menu.h (find_and_call_menu_selection):
8270 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8271 (find_and_return_menu_selection): Always return something.
8272 * frame.h: Include dispextern.h for Display_Info.
8273 (display_x_get_resource): Declare.
8274
82752008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
8277 * syntax.c: Remove stdio.h include accidentally introduced in
8278 Emacs.app commit.
8279 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8280 NS_IMPL_COCOA.
8281 * keyboard.c (handle_async_input, input_available_signal): Remove
8282 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8283
82842008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8285
8286 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8287 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8288 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8289 Use SDATA.
8290
8291 * keymap.c: Remove all NS-specific code.
8292 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8293 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8294 where_is_preferred_modifier, return a different value depending on how
8295 preferred is the binding.
8296 (where_is_internal): Adjust accordingly.
8297 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8298 Adjust to new preferred_sequence_p.
8299 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8300 * keyboard.c (parse_solitary_modifier): Not static any more.
8301 * keyboard.h (parse_solitary_modifier): Declare.
8302
83032008-07-16 Andreas Schwab <schwab@suse.de>
8304
8305 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8306 of easymenu.
8307
83082008-07-16 Chong Yidong <cyd@stupidchicken.com>
8309
8310 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8311 that we don't move off the line.
8312
83132008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8314
8315 * keyboard.c (Qsuper): Remove.
8316 (parse_menu_item): Don't call where_is_internal specially for NS.
8317
83182008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 * s/gnu-linux.h: Remove boilerplate comments.
8321
8322 * m/alpha.h (__ELF__): Consolidate conditions.
8323
8324 * m/m68k.h (linux): Use GNU_LINUX instead.
8325 Remove boilerplate comments.
8326
8327 * m/intel386.h: Undo refactoring from previous change.
8328 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8329 too, remove dead code.
8330 (linux): Use GNU_LINUX instead.
8331
83322008-07-16 Jason Rumney <jasonr@gnu.org>
8333
8334 * w32gui.h: Repeat 26 June changes lost by last change.
8335
83362008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8337
8338 * systty.h: Remove code for Aix on 386, unsupported platform.
8339
8340 * s/ms-w32.h: Remove boilerplate comments.
8341 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8342
8343 * s/gnu-linux.h (TERM): Remove support.
8344 (HAVE_SYSVIPC): Remove, unused.
8345 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8346 for this system.
8347
8348 * process.c: Remove support for IRIS, unused.
8349 Remove support for TERM, not relevant anymore.
8350
8351 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8352 used with the definition.
8353
8354 * s/aix4-2.h (static): Do not undef.
8355
8356 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8357 only used on Aix.
8358 (HAVE_SYSVIPC): Remove, unused.
8359
8360 * m/hp800.h (CANNOT_DUMP): Do not undef.
8361
8362 * m/alpha.h: Fix comment.
8363
8364 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8365 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8366 used by this configuration.
8367 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8368 * unexec.c: Remove code depending on HPUX and
8369 USG_SHARED_LIBRARIES, not used with this file. Remove code
8370 depending on IRIS, unused. Remove if 0-ed code.
8371
8372 * s/template.h: Remove comments about static.
8373
8374 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8375 Remove if 0-ed code.
8376 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8377 were the same as the default.
8378 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8379 Remove boilerplate comments.
8380 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8381 (HAVE_SYSVIPC): Remove, unused.
8382 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8383
8384 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8385 Remove boilerplate comments.
8386 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8387 Remove boilerplate comments.
8388 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8389 Remove boilerplate comments.
8390 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8391
8392 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8393 USG systems which do not use DATA_SEG_BITS.
8394 Refactor code. Remove boilerplate comments.
8395
8396 * m/ibms390.h:
8397 * m/m68k.h:
8398 * s/bsd-common.h:
8399 * s/cygwin.h:
8400 * s/darwin.h:
8401 * s/freebsd.h:
8402 * s/gnu.h:
8403 * s/msdos.h: Remove boilerplate comments.
8404
8405 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8406 do not use this file.
aac0c6e3
MR
8407 (IRIS_4D): Remove, unused.
8408
8409 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8410 do not use this file.
aac0c6e3
MR
8411 (SIGN_EXTEND_CHAR):
8412 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8413 * unexmips.c: Remove file, unused.
8414
8415 * editfns.c (Fuser_full_name): Replace the only use of
8416 USER_FULL_NAME with its value.
8417 * config.in: Regenerate.
8418
84192008-07-16 David Reitter <david.reitter@gmail.com>
8420
8421 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8422 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8423
84242008-07-16 Glenn Morris <rgm@gnu.org>
8425
8426 * emacs.c (system-type): Doc fix.
8427
84282008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8429
8430 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8431 If the cache doesn't work, let's fix it, rather than work around it.
8432
84332008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8434
8435 * Makefile.in: Correct additions for nsfont.o in last commit.
8436 * nsfont.m: New file (forgot last commit).
8437
84382008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8439
8440 * callproc.c (set_initial_environment): Initialize
8441 Vprocess_environment under CANNOT_DUMP (fixes crash when
8442 batch-compiling for bootstrap).
8443
84442008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8445 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8446
8447 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8448 fix crash due to different init order.
8449
84502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8451
8452 Changes and additions for NeXTstep windowing system (Cocoa and
8453 GNUstep) support.
8454
8455 * Makefile.in:
8456 * config.in: Support defines and build commands for NS port.
8457 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8458 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8459 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8460 windowing.
8461 (struct face): Add synth_ital field.
8462 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8463 (init_display): Initialize Vinitial_window_system to "ns" when so
8464 compiled.
8465 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8466 (display_arg): Use under NS.
8467 (main): Under NS, allocate autorelease pool and handle command line
8468 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8469 (standard_args): Add NS-specific args.
8470 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8471 * font.c (DEFAULT_ENCODING): New variable.
8472 (font_find_for_lface): Use it.
8473 (syms_of_font): Load syms_of_nsfont under NS.
8474 * font.h: Declare nsfont_driver when compiled under NS.
8475 * fontset.c: When compiling under NS, include nsterm.h.
8476 (fontset_from_font): Autoconstruct fontset under NS.
8477 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8478 symbol, document and use it.
8479 (do_switch_frame): When for_deletion under Cocoa, add
8480 Fraise_frame(Qnil).
8481 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8482 (x_get_arg): Allow "yes" and "no" as boolean values.
8483 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8484 Qright under Cocoa.
8485 (focus-follows-mouse): Default to 0 under NS.
8486 * frame.h (enum output_method): Add output_ns.
8487 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8488 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8489 (FRAME_WINDOW_P): NS-specific definition.
8490 * fringe.c (max_used_fringe_bitmap): Make public.
8491 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8492 (getloadavg): Use NeXT code under descendant OS's.
8493 * image.c (includes and header section, x_create_bitmap_from_data)
8494 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8495 (image_background_transparent, x_clear_image_1)
8496 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8497 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8498 (x_to_xcolors, x_from_xcolors, x_disable_image)
8499 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8500 other GUIs, including XPM support using code originally written for
8501 Carbon GUI.
8502 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8503 using NS API.
8504 (image_ascent): Use font metrics macros instead of direct struct field
8505 access.
8506 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8507 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8508 Also, handle NS as GTK for menu bar purposes.
8509 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8510 toolkit where they differ.
8511 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8512 use cachelist, still needed under NS.
8513 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8514 (struct widget_value): Define it here for menu.c.
8515 * keymap.c (includes): Include modifier internals.
8516 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8517 NS.
8518 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8519 support for preferring sequences using certain modifiers, specified by
8520 the FIRSTONLY argument.
8521 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8522 under NS GNUstep implementation.
8523 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8524 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8525 * menu.c: Include nsterm.h under NS.
8526 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8527 (free_menubar_widget_tree_value, update_submenu_strings)
8528 (find_and_call_menu_selection): Treat NS as X and NT.
8529 (find_and_return_menu_selection): New function, used for popup menus.
8530 * nsgui.h:
8531 * nsterm.h:
8532 * nsfns.m:
8533 * nsimage.m:
8534 * nsmenu.m:
8535 * nsselect.m:
8536 * nsterm.m: New files.
8537 * process.c (wait_reading_process_output): Under NS, call ns_select()
8538 instead of plain select().
8539 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8540 beginning of buffer.
8541 * sysselect.h (init_process): Rename when compiling under Cocoa to
8542 avoid name conflict.
8543 * termhooks.h (display_info): Add ns_display_info to union.
8544 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8545 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8546 COCOA environment.
8547 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8548 unexec() signature. (Note, this will dump, but the resulting file
8549 crashes; unexosx is used instead; keeping around for reference and
8550 possible aid in getting dump working under GNUstep.)
8551 * w32gui.h (button_type, widget_value): Remove definitions (now in
8552 keyboard.h).
8553 * window.c: Include nsterm.h when compiling under NS.
8554 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8555 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8556 other GUI windowing systems.
8557 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8558 GTK.
8559 (x_consider_frame_title): Under NS, set icon type and frame
8560 modified-state indicator; use ns_set_name_as_filename() when using
8561 formatted title.
8562 (update_window_cursor): Make public when compiling under NS.
8563 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8564 (hourglass_atimer, Vhourglass_delay
8565 * xfaces.c (header section, init_frame_faces, clear_font_table)
8566 (defined_color, unload_color, x_face_list_fonts)
8567 (prepare_face_for_display): Add NS support parallel to other GUIs.
8568 Emulate GCs like other non-X GUIs.
8569 (split_font_name): Don't lowercase font name under NS.
8570 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8571 under NS.
8572 * s/darwin.h: Add support for compilation under NS.
8573
85742008-07-15 Jason Rumney <jasonr@gnu.org>
8575
8576 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8577 (w32_show_hourglass): Rename from show_hourglass.
8578 (w32_hide_hourglass): Rename from hide_hourglass.
8579 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8580 (Vhourglass_delay): Declare extern.
8581 (hourglass_started): Remove.
8582
8583 * xdisp.c (Vhourglass_delay): Remove static.
8584 (hourglass_started, start_hourglass, cancel_hourglass):
8585 Don't include these versions on WINDOWSNT.
8586
85872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8588
8589 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8590 variables (formerly in xfns.c).
8591 (show_hourglass, hide_hourglass): New prototypes (same).
8592 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8593 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8594 in xfns.c).
8595 (syms_of_xdisp): Declare/initialize display-hourglass,
8596 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8597 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8598 formerly in xfns.c.
8599 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8600 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8601 (start_hourglass, cancel_hourglass): Remove.
8602 (show_hourglass, hide_hourglass): Remove prototypes and static
8603 modifiers.
8604 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8605 hourglass_atimer, hourglass_shown_p declaration/initialization.
8606 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8607 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8608 (start_hourglass, cancel_hourglass): Remove.
8609 (show_hourglass, hide_hourglass): Remove prototypes and static
8610 modifiers.
8611 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8612 hourglass_atimer, hourglass_shown_p declaration/initialization.
8613 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8614 (DEFAULT_HOURGLASS_DELAY): Remove.
8615 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8616 hourglass_shown_p declaration/initialization.
8617
86182008-07-14 Jason Rumney <jasonr@gnu.org>
8619
8620 * w32fns.c (w32_get_arg): Remove wrapper function.
8621 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8622 directly.
8623 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8624
86252008-07-14 Kenichi Handa <handa@m17n.org>
8626
8627 * xfont.c (xfont_open): Add workaround for X's bug.
8628
86292008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8630
8631 * fontset.c: Include <stdio.h> unconditionally.
8632
86332008-07-13 Michael Albinus <michael.albinus@gmx.de>
8634
8635 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8636 for filtering.
8637
86382008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8639
8640 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8641
8642 * m/macppc.h:
8643 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8644
8645 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8646 (SPECIAL_EMACS_INT):
8647 * m/ia64.h (SPECIAL_EMACS_INT):
8648 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8649 * s/gnu.h (NLIST_STRUCT):
8650 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8651 * s/gnu-linux.h (LINUX):
8652 * s/msdos.h (HAVE_FACES):
8653 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8654
8655 * systty.h:
8656 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8657 anymore.
8658
86592008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8660
8661 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8662 always defined as int.
8663
8664 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8665 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8666 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8667 * s/freebsd.h (HAVE_WAIT_HEADER):
8668 * s/bsd-common.h (HAVE_UNION_WAIT):
8669 * s/aix4-2.h (HAVE_WAIT_HEADER):
8670 * m/mips.h (HAVE_UNION_WAIT):
8671 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8672 (COFF, static): Do not define, they are undefined later in the file.
8673
8674 * process.c (update_status): Don't use a union.
8675 (status_convert):
8676 (sigchld_handler): Use int instead of WAITTYPE.
8677
86782008-07-12 Chong Yidong <cyd@stupidchicken.com>
8679
8680 * indent.c (Fvertical_motion): Restore hscroll before moving to
8681 goal column.
8682
86832008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8684
8685 * lisp.h: Remove left over code.
8686
86872008-07-11 Andreas Schwab <schwab@suse.de>
8688
8689 * lisp.h: Fix logic in last change.
8690
8691 * menu.h: New file.
8692 * menu.c: Include it.
8693 * xmenu.c: Likewise.
8694 * Makefile.in: Update dependencies.
8695
86962008-07-11 Kenichi Handa <handa@m17n.org>
8697
8698 * fontset.c (fontset_from_font): Cancel the previous change.
8699
87002008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8701
8702 * lisp.h:
8703 * w32heap.c:
8704 * emacs.c:
8705 * alloc.c: Replace all references of NO_UNION_TYPE with
8706 USE_LISP_UNION_TYPE.
8707
8708 * m/xtensa.h (NO_UNION_TYPE):
8709 * m/vax.h (NO_UNION_TYPE):
8710 * m/template.h (NO_UNION_TYPE):
8711 * m/sparc.h (NO_UNION_TYPE):
8712 * m/mips.h (NO_UNION_TYPE):
8713 * m/macppc.h (NO_UNION_TYPE):
8714 * m/m68k.h (NO_UNION_TYPE):
8715 * m/iris4d.h (NO_UNION_TYPE):
8716 * m/intel386.h (NO_UNION_TYPE):
8717 * m/ibms390x.h (NO_UNION_TYPE):
8718 * m/ibms390.h (NO_UNION_TYPE):
8719 * m/ibmrs6000.h (NO_UNION_TYPE):
8720 * m/ia64.h (NO_UNION_TYPE):
8721 * m/hp800.h (NO_UNION_TYPE):
8722 * m/arm.h (NO_UNION_TYPE):
8723 * m/amdx86-64.h (NO_UNION_TYPE):
8724 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8725 defining it the same.
8726
87272008-07-10 Chong Yidong <cyd@stupidchicken.com>
8728
8729 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8730
87312008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 * fileio.c:
8734 * sysdep.c
8735 * systty.h:
8736 * m/ibmrs6000.h:
8737 * m/iris4d.h:
8738 * s/aix4-2.h:
8739 * s/freebsd.h:
8740 * s/gnu-linux.h:
8741 * s/hpux10-20.h:
8742 * s/hpux11.h:
8743 * s/netbsd.h:
8744 * s/sol2-3.h:
8745 * s/sol2-4.h:
8746 * s/sol2.h:
8747 * s/usg5-4.h:
8748 * s/vms.h: Remove references to unused variables.
8749
87502008-07-10 Andreas Schwab <schwab@suse.de>
8751
8752 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8753 pattern before matching the generic family.
8754
87552008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8756
8757 * unexec.c:
8758 * s/vms.h:
8759 * s/usg5-4-2.h:
8760 * s/sol2-5.h:
8761 * s/freebsd.h:
8762 * s/darwin.h: Remove dead code.
8763
8764 * m/template.h:
8765 * m/sparc.h:
8766 * m/mips.h:
8767 * m/m68k.h:
8768 * m/iris4d.h:
8769 * m/intel386.h:
8770 * m/ibms390x.h:
8771 * m/ibms390.h:
8772 * m/ia64.h:
8773 * m/hp800.h:
8774 * m/arm.h:
8775 * m/amdx86-64.h: Remove dead code and references to unused
8776 and compiler defined symbols.
8777
8778 * unexmips.c:
8779 * unexelf.c: Remove references to desupported systems.
8780
8781 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8782
8783 * m/powermac.h: Remove boilerplate comments.
8784 (NO_REMAP): Remove unused definition.
8785
8786 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8787 define them.
8788
87892008-07-10 Kenichi Handa <handa@m17n.org>
8790
8791 * xfont.c (xfont_open): Log the reason of failure.
8792
87932008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8794
8795 * fontset.c (fontset_get_font_group):
8796 * font.c (font_check_otf): Specify argument types.
8797
87982008-07-09 Kenichi Handa <handa@m17n.org>
8799
8800 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8801 non-ASCII char is found.
8802
8803 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8804 (reorder_font_vector): Change the arg preferred_family to font.
8805 Prefer the spec matching with font.
8806 (fontset_get_font_group): New function.
8807 (fontset_find_font): Change the format of an element of a realized
8808 fontset. Use fontset_get_font_group.
8809 (fontset_font): Try the current fontset, the default fontset, the
8810 fallbacks of the current fontset, and the fallbacks of the default
8811 fontset in this order.
8812 (face_for_char): Delete the shortcut to use the current font.
8813 (fontset_from_font): Don't set fonts for Latin in the fontset.
8814
8815 * font.h (font_make_object, font_match_p): Adjust prototypes.
8816
8817 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8818
8819 * font.c (font_make_object): New arg entity and pixelsize.
8820 (font_check_otf_features, font_check_otf): New functions.
8821 (font_match_p): Check :lang, :script, and :otf properties.
8822
8823 * xfont.c (xfont_open): Adjust it for the change of
8824 font_make_object.
8825 (xfont_text_extents): Fix initial setting of metrics.
8826
8827 * ftfont.c (struct ftfont_info): New member index, delete member
8828 fc_charset_idx. Make the member order compatible with struct
8829 xftfont_info.
8830 (fc_charset_table): Change charset names to registry names.
8831 (ftfont_pattern_entity): Delete the args registry and
8832 fc_charset_idx. Change the value of :font-entity property
8833 to (FONTNAME . INDEX). Always set :registry property to
8834 `iso10646-1'.
8835 (struct ftfont_cache_data): New struct.
8836 (ftfont_lookup_cache): New arg for_face.
8837 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8838 (ftfont_driver): Set the member otf_capability.
8839 (ftfont_get_charset): Adjust it for the change of
8840 fc_charset_table.
8841 (OTF_TAG_SYM): New macro.
8842 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8843 for the change of fc_charset_table.
8844 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8845 ftfont_pattern_entity. Add FC_INDEX to objset.
8846 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8847 and ftfont_pattern_entity.
8848 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8849 font_make_object, struct ftfont_info.
8850 (ftfont_has_char): Use ftfont_get_fc_charset.
8851 (ftfont_otf_features, ftfont_otf_capability): New functions.
8852 (ftfont_shape): Use ftfont_get_otf.
8853 (ftfont_text_extents): Fix initial setting of metrics.
8854
8855 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8856 member order compatible with struct ftfont_info.
8857 (xftfont_open): Add FC_CHARSET to the pattern. Set
8858 xftfont_info->ft_size. Don't unlock the face. Check BDF
8859 properties if appropriate.
8860 (xftfont_close): Unlock the face.
8861 (xftfont_anchor_point, xftfont_shape): Deleted.
8862 (syms_of_xftfont): Don't set members anchor_point and shape of
8863 xftfont_driver.
8864
8865 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8866 font_make_object.
8867
8868 * w32font.c (w32font_open): Adjust it for the change of
8869 font_make_object.
8870 (w32font_open_internal): Don't set properties of font_object here.
8871
88722008-07-08 Chong Yidong <cyd@stupidchicken.com>
8873
8874 * macfns.c (x_create_tip_frame):
8875 * w32fns.c (x_create_tip_frame):
8876 * xfns.c (x_create_tip_frame): Pass parameter argument to
8877 face-set-after-frame-default.
8878
8879 * xfaces.c (Finternal_merge_in_global_face): Save merged
8880 attributes for the default face back into the face vector.
8881
88822008-07-08 Andreas Schwab <schwab@suse.de>
8883
8884 * fontset.h: Declare fontset_from_font. Don't declare
8885 new_fontset_from_font and fontset_from_font_name.
8886 * xterm.c: Include "fontset.h".
8887 * Makefile.in (xterm.o): Update dependencies.
8888
88892008-07-08 Glenn Morris <rgm@gnu.org>
8890
8891 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8892 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8893
88942008-07-07 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8897 (x_set_frame_parameters): Don't bind it.
8898
88992008-07-07 Juanma Barranquero <lekktu@gmail.com>
8900
8901 * w32fns.c (map_w32_filename): Declare extern.
8902
89032008-07-07 Jason Rumney <jasonr@gnu.org>
8904
8905 * w32term.c (WS_EX_LAYERED): Define if not already.
8906
89072008-07-06 Chong Yidong <cyd@stupidchicken.com>
8908
8909 * xfaces.c (set_font_frame_param): Don't try to set the font
8910 parameter if it is still unspecified in the lface.
8911
89122008-07-05 Chong Yidong <cyd@stupidchicken.com>
8913
8914 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8915 face if it didn't already exist.
8916
8917 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8918
89192008-07-05 Andreas Schwab <schwab@suse.de>
8920
8921 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8922
89232008-07-05 Chong Yidong <cyd@stupidchicken.com>
8924
8925 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8926 word-wrapping.
8927 (IT_DISPLAYING_WHITESPACE): New macro.
8928 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8929 when word-wrapping. Simplify word-wrapping logic. Use correct
8930 pixel positions when saving copies of the iterator.
8931 (display_line): Use proper wrap point if the last character on a
8932 line was preceded by whitespace.
8933
89342008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8935
8936 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8937
89382008-07-04 Kenichi Handa <handa@m17n.org>
8939
8940 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8941
8942 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8943
89442008-07-02 Jason Rumney <jasonr@gnu.org>
8945
8946 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8947 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8948
8949 * xdisp.c (next_element_from_display_vector): Move assignment out
8950 of if statement.
8951
89522008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8953
8954 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8955
8956 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8957 (syms_of_fileio): Initialize and export them.
8958 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8959
8960 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8961 (Fsystem_move_file_to_trash): New function.
8962 (syms_of_w32fns): Export it to lisp.
8963
89642008-07-01 Jason Rumney <jasonr@gnu.org>
8965
8966 * w32font.c (w32font_text_extents): Don't count overhang as part
8967 of width.
8968
89692008-06-30 Miles Bader <miles@gnu.org>
8970
8971 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8972 Add `avoid_cursor_p' field.
8973
8974 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8975 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8976 (append_glyph, append_composite_glyph, produce_image_glyph)
8977 (append_stretch_glyph): Initialize avoid_cursor_p.
8978 (get_it_property): Rename from `get_line_height_property'.
8979 (x_produce_glyphs): Use get_it_property.
8980 (handle_line_prefix, push_display_prop): New functions.
8981 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8982 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8983 New variables.
8984 (syms_of_xdisp): Initialize them.
8985
89862008-06-30 Kenichi Handa <handa@m17n.org>
8987
8988 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8989 XftDefaultSubstitute (they are called in XftFontMatch).
8990 (xftfont_open): Fix args to ftfont_font_format.
8991
8992 * ftfont.c (fc_charset_table): New member lang.
8993 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8994 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8995 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8996 (ftfont_open): Fix args to ftfont_font_format.
8997 (ftfont_font_format): New arg filename.
8998
89992008-06-30 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * xfaces.c (Finternal_merge_in_global_face): If default face was
9002 modified, realize it again. Update the font face attribute.
9003
90042008-06-29 Jason Rumney <jasonr@gnu.org>
9005
9006 * w32term.c (x_set_frame_alpha): Fix logic.
9007
90082008-06-29 Kenichi Handa <handa@m17n.org>
9009
9010 * fontset.c (Finternal_char_font): Return font-object instead of
9011 font-name.
9012
9013 * composite.c (get_composition_id): Fix the width calculation for TAB.
9014
90152008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9016
9017 * indent.c (Fvertical_motion): Properly handle float column arg.
9018
90192008-06-28 Jason Rumney <jasonr@gnu.org>
9020
9021 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9022 (pfnSetLayeredWindowAttributes): New function pointer.
9023 (w32_initialize): Initialize it when supported.
9024 (x_set_frame_alpha): New function.
9025
9026 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9027 (w32_frame_parm_handlers): Set alpha handler.
9028
9029 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9030
90312008-06-27 Jason Rumney <jasonr@gnu.org>
9032
9033 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9034 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9035 (w32_to_x_charset, x_to_w32_charset)
9036 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9037 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9038 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9039 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9040 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9041 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9042 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9043 (Qw32_charset_unicode): Remove.
9044 (syms_of_w32fns): Update for above changes.
9045
9046 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9047 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9048 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9049 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9050 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9051 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9052 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9053 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9054 (syms_of_w32font): Update for above changes.
9055
90562008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9057
9058 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9059 removed #if.
9060 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9061
90622008-06-26 Juanma Barranquero <lekktu@gmail.com>
9063 Eli Zaretskii <eliz@gnu.org>
9064
9065 * makefile.w32-in (LOCAL_FLAGS):
9066 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9067
9068 * sysdep.c (_spawnlp, _getpid):
9069 Declare with explicit _cdecl instead of _CRTAPI1.
9070
9071 * editfns.c (Fget_internal_run_time):
9072 Check for WINDOWSNT with #ifdef, not #if.
9073
90742008-06-26 Jason Rumney <jasonr@gnu.org>
9075
9076 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9077
9078 * w32term.c (x_draw_glyph_string_foreground)
9079 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9080 Use FONT_HANDLE macro.
9081 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9082
9083 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9084 (uniscribe_encode_char): Use FONT_HANDLE macro.
9085
9086 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9087 (w32font_text_extents): Use precast w32_font.
9088 (w32font_close): Free cached metrics.
9089 (w32font_open_internal): Allocate space for name on stack.
9090
90912008-06-26 Chong Yidong <cyd@stupidchicken.com>
9092
9093 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9094
90952008-06-26 Jason Rumney <jasonr@gnu.org>
9096
9097 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9098 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9099
91002008-06-26 Juanma Barranquero <lekktu@gmail.com>
9101
9102 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9103
91042008-06-26 Jason Rumney <jasonr@gnu.org>
9105
9106 * w32bdf.c, w32bdf.h: Remove obsolete files.
9107
9108 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9109
9110 * w32gui.h: Don't include w32bdf.h.
9111 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9112 Remove obsolete font support.
9113
9114 * w32font.h (struct w32font_info): Remove compat_w32_font.
9115 Add hfont member.
9116 (FONT_COMPAT): Remove obsolete macro.
9117
9118 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9119 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9120 (w32font_open_internal): Remove compat code. Set new hfont member.
9121 (Fx_select_font): Use new hfont member.
9122
9123 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9124 (uniscribe_encode_char): Use new hfont member.
9125
9126 * w32term.c (x_draw_glyph_string_foreground)
9127 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9128 (x_draw_glyph_string): Use metrics in w32font_info.
9129
91302008-06-26 Kenichi Handa <handa@m17n.org>
9131
9132 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9133
91342008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9135
9136 * unexnext.c:
9137 * m/ews4800.h:
9138 * m/hp9000s300.h:
9139 * m/ibm370aix.h:
9140 * m/mips-siemens.h:
9141 * m/ncr386.h:
9142 * m/next.h:
9143 * m/pmax.h:
9144 * m/powerpcle.h:
9145 * m/tandem-s2.h:
9146 * s/386bsd.h:
9147 * s/bsd386.h:
9148 * s/bsd4-1.h:
9149 * s/bsd4-2.h:
9150 * s/bsdos2-1.h:
9151 * s/bsdos2.h:
9152 * s/bsdos3.h:
9153 * s/bsdos4.h:
9154 * s/nextstep.h:
9155 * s/ultrix4-3.h:
9156 * s/usg5-0.h:
9157 * s/usg5-2-2.h:
9158 * s/usg5-2.h:
9159 * s/usg5-4-3.h:
9160 * s/ux4800.h:
9161 * s/uxpds.h:
9162 * s/uxpv.h: Remove support for obsolete systems.
9163 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9164 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9165 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9166 Remove, insert contents in s/aix4-2.h.
9167 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9168 * s/bsd4-3.h: Rename to ...
9169 * s/bsd-common.h: ... this.
9170 * data.c:
9171 * doc.c:
9172 * ecrt0.c:
9173 * emacs.c:
9174 * fileio.c:
9175 * floatfns.c:
9176 * keyboard.c:
9177 * mem-limits.h:
9178 * print.c:
9179 * process.c:
9180 * sysdep.c:
9181 * syssignal.h:
9182 * systty.h:
9183 * syswait.h:
9184 * term.c:
9185 * unexec.c:
9186 * unexelf.c:
9187 * unexhp9k800.c:
9188 * m/hp800.h:
9189 * m/ibmrs6000.h:
9190 * m/mips.h:
9191 * m/vax.h:
9192 * s/darwin.h:
9193 * s/freebsd.h:
9194 * s/gnu.h:
9195 * s/ms-w32.h:
9196 * s/msdos.h:
9197 * s/netbsd.h:
9198 * s/template.h: Remove references to obsolete variables.
9199
9200 * Makefile.in: Add dependencies for all unexec files.
9201 (admindir): Remove unused variable.
9202 (UNEXEC_SRC): Remove references.
9203
92042008-06-25 Chong Yidong <cyd@stupidchicken.com>
9205
9206 * xfns.c (x_default_font_parameter): If Xft is available, first
9207 try Monospace-12 for the default font.
9208
92092008-06-25 Jason Rumney <jasonr@gnu.org>
9210
9211 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9212
92132008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9214
9215 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9216
9217 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9218
92192008-06-25 Juanma Barranquero <lekktu@gmail.com>
9220
9221 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9222 <scroll-conservatively>: Fix typo in docstring.
9223
9224 * xselect.c (Fx_send_client_event): Doc fix.
9225
92262008-06-25 Kenichi Handa <handa@m17n.org>
9227
9228 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9229
9230 * font.c (font_parse_fcname): Remove unused variables.
9231 (font_sort_entites): Delete the arg SPEC. Caller changed.
9232 Fix for the case of ! best_only.
9233 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9234
9235 * lisp.h (Fstring_to_unibyte): EXFUN it.
9236
9237 * character.h (str_to_unibyte): Extern it.
9238
9239 * character.c (str_to_unibyte): New function.
9240
9241 * fns.c (Fstring_to_unibyte): New function.
9242 (syms_of_fns): Defsubr it.
9243
92442008-06-24 Kenichi Handa <handa@m17n.org>
9245
9246 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9247 DPI too.
9248 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9249
92502008-06-24 Andreas Schwab <schwab@suse.de>
9251
9252 * Makefile.in (${lispsource}loaddefs.el): Rename from
9253 ../lisp/loaddefs.el.
9254 (bootstrap-clean): Do what distclean does but don't remove
9255 Makefile.
9256 (distclean): Depend on bootstrap-clean and remove Makefile.
9257
92582008-06-24 Chong Yidong <cyd@stupidchicken.com>
9259
9260 * buffer.h (struct buffer): New member word_wrap.
9261
9262 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9263 word-wrap.
9264 (init_buffer_once): Initialize them.
9265
9266 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9267 line_wrap enum possessing three possible values.
9268
9269 * termopts.h: Replace truncate_partial_width_windows with
9270 Vtruncate_partial_width_windows.
9271
9272 * dispnew.c (direct_output_for_insert): Avoid direct output when
9273 inserting a space with word wrap on.
9274
9275 * indent.c (compute_motion): Obey integer values of
9276 truncate-partial-width-windows.
9277
9278 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9279 replacing truncate_partial_width_windows.
9280 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9281 truncate only if the window width is below that integer.
9282 (start_display, resize_mini_window, produce_stretch_glyph)
9283 (display_string, move_it_in_display_line_to): Use line_wrap.
9284 (back_to_previous_visible_line_start, reseat_1): Reset
9285 string_from_display_prop_p.
9286 (display_line): Extend default face to end of line when wrapping.
9287
92882008-06-24 Kim F. Storm <storm@cua.dk>
9289
9290 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9291 to wrap continued lines at word boundaries.
9292
92932008-06-24 Jason Rumney <jasonr@gnu.org>
9294
9295 * font.c (Ffont_face_attributes): Multiply pixel size before point
9296 conversion to avoid multiplying rounding error.
9297
92982008-06-23 Jason Rumney <jasonr@gnu.org>
9299
9300 * w32term.c (x_draw_glyph_string_background)
9301 (x_draw_glyph_string): Remove old bdf font code.
9302
9303 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9304
93052008-06-22 Kenichi Handa <handa@m17n.org>
9306
9307 * font.c (font_find_for_lface): Try the adstyle specified in
9308 the property of LFACE_FONT of LFACE (if any).
9309
93102008-06-21 Seiji Zenitani <zenitani@mac.com>
9311 Ryo Yoshitake <ryo@shiftmode.net>
9312
9313 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9314
93152008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9316
9317 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9318 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9319 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9320 (witness-emacs): Remove.
9321 (lisp, shortlisp): Move loaddefs.el earlier.
9322 (mostlyclean): Forget about witness-emacs.
9323
93242008-06-22 Glenn Morris <rgm@gnu.org>
9325
9326 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9327 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9328
93292008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9330
9331 * Makefile.in (PRECOMP): Remove.
9332 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9333 (witness-emacs): Run `compile-first'.
9334 (.el.elc): Use the new compile-onefile target.
9335
93362008-06-21 Kenichi Handa <handa@m17n.org>
9337
9338 * xftfont.c (xftfont_open): Handle QCembolden only when
9339 FC_EMBOLDEN is defined.
9340
93412008-06-21 Andreas Schwab <schwab@suse.de>
9342
9343 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9344 (.el.elc): Likewise.
9345
93462008-06-21 Miles Bader <miles@gnu.org>
9347
9348 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9349 build dir, not the lisp source dir.
9350
93512008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9352
9353 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9354 (bootstrapclean): Remove.
9355 (.el.elc): New rule.
9356 (PRECOMP): New var.
9357 (../lisp/subdirs.el): Remove.
9358 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9359 (witness-emacs): New target.
9360 (mostlyclean): Remove witness-emacs as well.
9361 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9362 Add witness-emacs dependency.
9363
93642008-06-20 Chong Yidong <cyd@stupidchicken.com>
9365
9366 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9367 defined by the font.
9368
93692008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9370
9371 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9372 (bootstrap-clean): New target that keeps TAGS around.
9373 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9374 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9375
93762008-06-20 Jason Rumney <jasonr@gnu.org>
9377
9378 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9379 Remove obsolete font code.
9380
9381 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9382 to determine language support.
9383
93842008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9385
9386 * sysdep.c (cfsetspeed): New fun extracted from the code.
9387 (cfmakeraw): Move before first use.
9388
93892008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9390
9391 * sysdep.c (cfmakeraw): Provide fallback implementation.
9392 (serial_configure): Provide fallback implementation of cfsetspeed.
9393
93942008-06-20 Kenichi Handa <handa@m17n.org>
9395
9396 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9397 the pattern.
9398
9399 * fontset.c (fontset_from_font): Copy font_spec before changing
9400 the elements.
9401
9402 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9403
94042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9405
9406 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9407 for explicit `font' parameters.
9408
9409 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9410
94112008-06-19 Kenichi Handa <handa@m17n.org>
9412
9413 * frame.c: Include <ctype.h>.
9414 (x_set_font_backend): Allow spacing characters in the X resource
9415 for FontBackend.
9416
94172008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9418
9419 * w32fns.c, xfns.c (Qfont_param): New var.
9420 (syms_of_w32fns): Initialize it.
9421 (x_default_font_parameter): Record explicit `font' into
9422 `font-parameter'.
9423
94242008-06-18 Kenichi Handa <handa@m17n.org>
9425
9426 * font.c (font_parse_xlfd): Fix previous change.
9427 (font_parse_fcname): Don't use :fc-unknown-spec.
9428 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9429 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9430 (font_add_log): Prepend the driver name to the resulting fonts.
9431
9432 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9433 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9434 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9435
9436 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9437 (QCembolden): New variables.
9438 (syms_of_xftfont): DEFSYM them.
9439 (xftfont_open): Call XftFontMatch. Don't trust the result of
9440 XftTextExtents8 if the pixel_size is less than 5.
9441
94422008-06-18 Andreas Schwab <schwab@suse.de>
9443
9444 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9445 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9446
94472008-06-18 Jason Rumney <jasonr@gnu.org>
9448
9449 * w32font.c (w32font_list, w32font_match): Add logging.
9450
9451 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9452
94532008-06-17 Chong Yidong <cyd@stupidchicken.com>
9454
9455 * font.c (font_parse_fcname): Store divider characters for
9456 unknown-spec list. For known key symbols, intern using correct
9457 symbol name.
9458
94592008-06-17 Kenichi Handa <handa@m17n.org>
9460
9461 * xfaces.c (realize_default_face): If the frame is not on window
9462 system, set the fontset of face to nil.
9463
94642008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9465
9466 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9467
94682008-06-16 Juanma Barranquero <lekktu@gmail.com>
9469
9470 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9471 (build_font_name_from_vector): Delete externs.
9472
9473 * xfaces.c (struct font_name): Don't declare.
9474
94752008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9476
9477 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9478
94792008-06-16 Chong Yidong <cyd@stupidchicken.com>
9480
9481 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9482
94832008-06-16 Juanma Barranquero <lekktu@gmail.com>
9484
9485 * font.c (Ffont_spec): Fix usage in docstring.
9486 (Ffont_face_attributes): Doc fix.
9487
94882008-06-16 Andreas Schwab <schwab@suse.de>
9489
9490 * font.c (Ffont_face_attributes): Fix definition.
9491
94922008-06-16 Jason Rumney <jasonr@gnu.org>
9493
9494 * font.h (font_style_symbolic_from_value): Remove.
9495
9496 * font.c (font_style_symbolic_from_value): Remove.
9497 (font_style_symbolic): Revert to pre 2008-06-13 version.
9498
9499 * w32font.c (w32_to_fc_weight): New function.
9500 (w32font_full_name, logfont_to_fcname): Use it.
9501
95022008-06-16 Kenichi Handa <handa@m17n.org>
9503
9504 * font.c (font_check_object): Delete it.
9505 (font_clear_cache): Check if a font-object is alive.
9506 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9507 font-object to nil.
9508 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9509 (font_at): Don't call font_check_object.
9510 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9511
95122008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9513
9514 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9515
95162008-06-16 Chong Yidong <cyd@stupidchicken.com>
9517
9518 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9519
95202008-06-15 Chong Yidong <cyd@stupidchicken.com>
9521
9522 * font.c (font_parse_fcname): Only one decimal point.
9523 (font_unparse_fcname): Handle data in family and foundry indices
9524 as symbols, not strings.
9525 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9526
9527 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9528
9529 * font.h (font_unparse_gtkname): Add prototype.
9530
95312008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9532
9533 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9534
95352008-06-15 Andreas Schwab <schwab@suse.de>
9536
9537 * font.c (font_update_drivers): Fix crash when no drivers match.
9538
95392008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9540
9541 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9542 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9543
95442008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9545
9546 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9547
95482008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9549
9550 * process.c (Fserial_process_configure, Fprocess_send_eof):
9551 Use EQ to compare Lisp_Objects.
9552
95532008-06-13 Jason Rumney <jasonr@gnu.org>
9554
9555 * w32fns.c (Fw32_select_font): Remove old font API function.
9556
9557 * w32font.c (logfont_to_fcname): New function.
9558 (Fx_select_font): New font dialog function compatible with
9559 GTK/fontconfig version.
9560
9561 * font.c (font_style_symbolic_from_value): New function.
9562 (font_style_symbolic): Use it.
9563
9564 * font.h (font_style_symbolic_from_value): Declare new function.
9565
95662008-06-13 Juanma Barranquero <lekktu@gmail.com>
9567
9568 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9569 <font-width-table>: Fix typos in docstrings.
9570
95712008-06-13 Daniel Engeler <engeler@gmail.com>
9572
9573 These changes add serial port access.
9574 * process.c: Add HAVE_SERIAL.
9575 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9576 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9577 (list_processes_1, select_wrapper, Fstop_process)
9578 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9579 (status_notify): Modify to handle serial processes.
9580 [HAVE_SERIAL] (Fserial_process_configure)
9581 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9582 New functions.
9583 * process.h (struct Lisp_Process): Add `type'.
9584 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9585 New functions.
9586 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9587 serial ports.
b71ac3dd 9588 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9589 * w32.h: Add FILE_SERIAL.
9590 (struct _child_process): Add ovl_read, ovl_write.
9591
95922008-06-13 Kenichi Handa <handa@m17n.org>
9593
9594 * dispextern.h (enum lface_attribute_index): New member
9595 LFACE_FOUNDRY_INDEX.
9596
9597 * font.c (font_score): Delete arg alternate_families. Check only
9598 weight, slant, width, and size. Ignore the difference of alias
9599 style symbols.
9600 (font_sort_entites): Adjust for the above change. Reflect the
9601 order of font-driver to scores.
9602 (font_list_entities): Don't check alternate_familes here.
9603 (font_clear_prop): Handle foundry.
9604 (font_update_lface): Don't parse "foundry-family" form here.
9605 Handle FONT_FOUNDRY_INDEX.
9606 (font_find_for_lface): Likewise. Handle alternate families here.
9607 If registry is nil, try iso8859-1 and ascii-0.
9608 (font_open_for_lface): Pay attention to size in ENTITY.
9609 (font_open_by_name): Simplify by calling font_load_for_lface.
9610 (free_font_driver_list): Delete it.
9611 (font_update_drivers): Preserve the order of backends.
9612 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9613 of font_score and font_sort_entites.
9614 (font_update_sort_order): Likewise.
9615
9616 * xfaces.c (LFACE_FOUNDRY): New macro.
9617 (check_lface_attrs): Check foundry.
9618 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9619 (merge_face_vectors): Check foundry.
9620 (merge_face_ref): Likewise.
9621 (Finternal_set_lisp_face_attribute): Likewise.
9622 (x_update_menu_appearance): Likewise.
9623 (Finternal_get_lisp_face_attribute): Likewise.
9624 (lface_hash): Likewise.
9625 (lface_same_font_attributes_p): Likewise.
9626 (x_supports_face_attributes_p): Likewise.
9627 (tty_supports_face_attributes_p): Likewise.
9628 (Finternal_set_alternative_font_family_alist): Intern strings.
9629 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9630 (realize_default_face): Set LFACE_FOUNDRY (lface).
9631
9632 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9633 font-driver at first.
9634
9635 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9636
96372008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9638
9639 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9640
96412008-06-12 Jim Meyering <meyering@redhat.com>
9642
9643 Make unexec_free handle NULL the same way free does.
9644 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9645
96462008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9647
9648 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9649 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9650 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9651 (WEAK_ALIAS): Simplify.
9652 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9653 when searching a unibyte buffer.
9654
96552008-06-12 Chong Yidong <cyd@stupidchicken.com>
9656
9657 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9658
96592008-06-12 Juanma Barranquero <lekktu@gmail.com>
9660
9661 * w32font.c: Include ctype.h.
9662
96632008-06-11 Jason Rumney <jasonr@gnu.org>
9664
9665 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9666 misreported as space.
9667 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9668 as aliases for registry iso10646-1.
9669
96702008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * buffer.c (clone_per_buffer_values): Skip `name'.
9673
96742008-06-11 Chong Yidong <cyd@stupidchicken.com>
9675
9676 * font.c (font_parse_fcname): Fix last change; accept decimal
9677 points in font size.
9678
96792008-06-10 Jason Rumney <jasonr@gnu.org>
9680
9681 * w32uniscribe.c (add_opentype_font_name_to_list):
9682 Skip non unicode fonts.
9683
96842008-06-10 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * xfns.c (Fx_font_dialog): New function.
9687
9688 * gtkutil.c (xg_dialog_response_cb): Rename from
9689 xg_file_response_callback.
9690 (pop_down_dialog): Rename from pop_down_file_dialog.
9691 (xg_get_file_name): Callers changed.
9692 (xg_get_font_name): New function.
9693
9694 * gtkutil.h (xg_get_font_name): Insert prototype.
9695
96962008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9699 x_underline_minimum_display_offset.
9700 (syms_of_xdisp): Declare it here rather than in xterm.c.
9701 * dispextern.h (underline_minimum_offset): Declare it.
9702 * w32term.c (x_draw_glyph_string): Use it.
9703 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9704 (syms_of_xterm): Don't declare it any more.
9705 (x_draw_glyph_string): Adjust to the new name.
9706
8719abec 97072008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9708
9709 * xterm.c (x_underline_minimum_display_offset): New var.
9710 (x_draw_glyph_string): Use it.
9711 (syms_of_xterm): Declare it.
9712
97132008-06-10 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * font.c (font_parse_fcname): Accept GTK-style font names too.
9716
97172008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9718
9719 * dired.c (file_name_completion): Don't return t if the match is exact
9720 but with different capitalization.
9721 * minibuf.c (Ftry_completion): Simplify.
9722
9723 * window.c (Vwindow_point_insertion_type): New var.
9724 (set_window_buffer): Use it.
9725 (syms_of_window): Init and export it to Lisp.
9726
97272008-06-10 Kenichi Handa <handa@m17n.org>
9728
9729 * font.h (font_intern_prop): Prototype adjusted.
9730
9731 * font.c (font_intern_prop): New arg force_symbol.
9732 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9733 Adjust for the change of font_intern_prop.
9734
9735 * ftfont.c (ftfont_pattern_entity):
9736 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9737 (w32_registry):
9738 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9739 the change of font_intern_prop.
9740
97412008-06-09 Juanma Barranquero <lekktu@gmail.com>
9742
9743 * w32menu.c (digest_single_submenu): Declare extern.
9744
97452008-06-09 Jason Rumney <jasonr@gnu.org>
9746
9747 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9748
9749 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9750 (parse_single_submenu): Remove.
9751 (digest_single_submenu): Remove.
9752 (syms_of_w32menu): Don't initialise variables that have moved
9753 to menu.c.
9754 (set_frame_menubar): Sync with version in xmenu.c.
9755 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9756
9757 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9758 Make static again.
9759
97602008-06-09 Jason Rumney <jasonr@gnu.org>
9761
9762 Changes to w32 files related to the move of common menu code
9763 to menu.c on 2008-06-08 by Chong Yidong.
9764
9765 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9766 defs to w32gui.h.
9767 (single_keymap_panes, push_menu_item, push_menu_pane):
9768 Make globally visible.
9769
9770 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9771 (local_free, malloc_widget_value, free_widget_value)
9772 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9773 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9774 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9775 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9776 (menu_items, menu_items_allocated, menu_items_used)
9777 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9778 (init_menu_items, finish_menu_items, discard_menu_items)
9779 (grow_menu_items, push_submenu_start, push_submenu_end)
9780 (push_left_right_boundary, push_menu_pane, push_menu_item)
9781 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9782 (free_menubar_widget_tree_value, parse_single_submenu)
9783 (update_submenu_strings): Remove functions.
9784 (xmalloc_widget_value): Remove and declare extern.
9785
9786 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9787 (OBJ1): Build it.
9788
9789 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9790 (local_heap, local_alloc, local_free, malloc_widget_value)
9791 (free_widget_value): Define here.
9792
97932008-06-09 Kenichi Handa <handa@m17n.org>
9794
9795 * font.h (Qascii_0): Extern it.
9796
9797 * font.c (Qascii_0): New variable.
9798 (syms_of_font): DEFSYM it.
9799 (font_open_by_name): If the registry "iso8859-1" fails, try also
9800 "ascii-0".
9801
9802 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9803
98042008-06-08 Kenichi Handa <handa@m17n.org>
9805
9806 * .gdbinit (xfont): New command.
9807
98082008-06-08 Andreas Schwab <schwab@suse.de>
9809
9810 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9811 * Makefile.in (menu.o): Update dependencies.
9812
9813 * Makefile.in (obj): Always add menu.o.
9814 * emacs.c (main): Always call syms_of_menu.
9815 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9816
98172008-06-08 Chong Yidong <cyd@stupidchicken.com>
9818
9819 * Makefile.in: Compile menu.c.
9820
9821 * lisp.h: Declare syms_of_menu.
9822
9823 * emacs.c (main): Call syms_of_menu.
9824
9825 * keyboard.h: Relocate platform-independent menu definitions from
9826 xmenu.c.
9827
9828 * menu.c: New file. Relocate platform-independent menu
9829 definitions from xmenu.c. Suggested by Adrian Robert.
9830
9831 * xmenu.c: Remove platform-independent menu definitions.
9832 (menu_items menu_items_inuse, menu_items_allocated)
9833 (menu_items_used, menu_items_n_panes)
9834 (menu_items_submenu_depth): Move to keyboard.h.
9835 (init_menu_items, finish_menu_items, unuse_menu_items)
9836 (discard_menu_items, restore_menu_items, save_menu_items)
9837 (grow_menu_items, push_submenu_start, push_submenu_end)
9838 (push_left_right_boundary, push_menu_pane, push_menu_item)
9839 (keymap_panes, single_keymap_panes, single_menu_item)
9840 (list_of_panes, list_of_items, find_and_call_menu_selection)
9841 (xmalloc_widget_value, free_menubar_widget_value_tree)
9842 (parse_single_submenu, digest_single_submenu)
9843 (update_submenu_strings): Move to menu.c.
9844
98452008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9846
9847 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9848
98492008-06-06 Miles Bader <miles@gnu.org>
9850
9851 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9852 face, not frame default.
9853
98542008-06-05 Martin Rudalics <rudalics@gmx.at>
9855
9856 * window.c (pop_up_windows, pop_up_frames)
9857 (display_buffer_reuse_frames, Vpop_up_frame_function)
9858 (Vdisplay_buffer_function, Veven_window_heights)
9859 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9860 (Vspecial_display_function, Vsame_window_buffer_names)
9861 (Vsame_window_regexps, split_height_threshold)
9862 (Vsplit_window_preferred_function): Move those vars to window.el.
9863 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9864 (Fdisplay_buffer): Move those functions to window.el.
9865 (syms_of_window): Remove corresponding declarations.
9866 (display_buffer): New function.
9867 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9868 * dispnew.c (Flast_nonminibuf_frame): New function.
9869 * buffer.c (Fpop_to_buffer): Move to window.el.
9870
98712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9872
9873 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9874
98752008-06-05 Kenichi Handa <handa@m17n.org>
9876
9877 * coding.c (detect_coding): Fix previous change.
9878 (detect_coding_system): Likewise.
9879
98802008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9881
9882 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9883
9884 * keymap.c (Vminibuffer_local_filename_must_match_map):
9885 Rename from Vminibuffer_local_must_match_filename_map.
9886 (syms_of_keymap):
9887 * minibuf.c (Fcompleting_read): Adjust accordingly.
9888 * commands.h: Rename declaration as well.
9889
98902008-06-05 Kenichi Handa <handa@m17n.org>
9891
9892 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9893 family name.
9894 (Ffont_put): Likewise.
9895
9896 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9897 current font-spec.
9898
9899 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9900 is unspecified.
9901
9902 * xfaces.c (realize_x_face): If the font-related face attributes
9903 are the same as those of default face, realize a new fontset from
9904 default->fontset.
9905 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9906
99072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9908
9909 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9910 (move_it_in_display_line): New wrapper.
9911
9912 * window.c (window_scroll_pixel_based_preserve_x)
9913 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9914 (window_scroll_pixel_based, window_scroll_line_based):
9915 Use them to preserve column positions.
9916 (syms_of_window): Initialize them.
9917
9918 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9919 (HPOS . VPOS) pair.
9920
9921 * dispextern.h (move_it_in_display_line): Declare.
9922
99232008-06-05 Juanma Barranquero <lekktu@gmail.com>
9924
9925 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9926 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9927 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9928
99292008-06-04 Juanma Barranquero <lekktu@gmail.com>
9930
9931 * window.c (Fset_window_parameter): Doc fix.
9932 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9933
99342008-06-04 Joakim Verona <joakim@verona.se>
9935
9936 * window.h (struct window): Add new member window_parameters.
9937
9938 * window.c (Fwindow_parameters, Fwindow_parameter)
9939 (Fset_window_parameter): New defuns.
9940 (syms_of_window): Defsubr the new defuns.
9941 (make_window): Initialize window_parameters to nil.
9942
99432008-06-04 John Paul Wallington <jpw@pobox.com>
9944
9945 * eval.c (Fdefmacro): Doc fix.
9946
99472008-06-04 Kenichi Handa <handa@m17n.org>
9948
9949 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9950 Be sure to call setup_coding_system when we find a proper coding system.
9951 (detect_coding_system): Fix handling of coding->head_ascii.
9952
99532008-06-03 Andreas Schwab <schwab@suse.de>
9954
9955 * font.c (font_prop_validate_spacing): Fix last change.
9956
99572008-06-03 Kenichi Handa <handa@m17n.org>
9958
9959 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9960 (font_parse_fcname): Fix handling of unknown key.
9961
9962 * xfont.c (xfont_list): Try an alias.
9963
9964 * charset.c (char_charset): Return NULL if the arg charset_list is
9965 specified and C doesn't belong to any of them.
9966
99672008-06-02 Chip Coldwell <coldwell@redhat.com>
9968
9969 * font.c (font_pixel_size): Don't take cdr of an integer.
9970
99712008-06-02 Jim Meyering <meyering@redhat.com>
9972
9973 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9974 * alloc.c (xfree): Return right away for a NULL arg.
9975 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9976 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9977 * mac.c (create_apple_event_from_event_ref): Likewise.
9978 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9979 Likewise.
9980 * doprnt.c (doprnt1): Likewise.
9981 * frame.c (frame): Likewise.
9982 * keyboard.c (wipe_kboard): Likewise.
9983 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9984 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9985 * term.c (tty_default_color_capabilities, maybe_fatal)
9986 (delete_tty): Likewise.
9987 * w16select.c (string): Likewise.
9988 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9989 * w32bdf.c (w32_free_bdf_font): Likewise.
9990 * w32fns.c (w32_unload_font): Likewise.
9991 * w32font.c (w32font_close): Likewise.
9992 * window.c (size_window): Likewise.
9993 * xselect.c (receive_incremental_selection): Likewise.
9994 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9995 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9996 * w32.c (stat): Likewise.
9997
9998 Remove useless if-before-free tests.
9999 * editfns.c (Fset_time_zone_rule): Likewise.
10000 * lread.c (nosuffix): Likewise.
10001 * ralloc.c (get_bloc): Likewise.
10002 * regex.c (reg_free): Likewise.
10003 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10004 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10005 * xsmfns.c (smc_save_yourself_CB): Likewise.
10006
100072008-06-02 Kenichi Handa <handa@m17n.org>
10008
10009 * font.c (font_find_for_lface): Handle float font size.
10010 (font_open_for_lface): Likewise.
10011
10012 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10013 comparing the properties.
10014
100152008-06-01 Jason Rumney <jasonr@gnu.org>
10016
10017 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10018 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10019 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10020 Don't add empty script list.
10021 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10022
100232008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10024
10025 * Makefile.in (dot, dotdot): Remove, update users.
10026 ".." has been used elsewhere in the file for a long time.
10027 (LIBXT_STATIC): Remove conditional based on unused variable.
10028
100292008-06-01 Miles Bader <miles@gnu.org>
10030
10031 * xfaces.c (Vface_remapping_alist): New variable.
10032 (syms_of_xfaces): Initialize it.
10033 (enum named_merge_point_kind): New type.
10034 (struct named_merge_point): Add `named_merge_point_kind' field.
10035 (push_named_merge_point): Make cycle detection respect different
10036 named-merge-point kinds.
10037 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10038 Remove face-name alias resolution.
10039 (lface_from_face_name): New definition using
10040 `lface_from_face_name_no_resolve'.
10041 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10042 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10043 (get_lface_attributes): New definition that layers face-remapping on
10044 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10045 (lookup_basic_face): New function.
10046 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10047 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10048 `get_lface_attributes'.
10049 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10050 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10051 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10052
10053 * xdisp.c (init_iterator): Pass base_face_id through
10054 `lookup_basic_face' when we actually use it as a face-id.
10055 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10056 DEFAULT_FACE_ID.
10057
10058 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10059 lookup the initial face-id.
10060
10061 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10062
100632008-06-01 Juanma Barranquero <lekktu@gmail.com>
10064
10065 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10066 (Fremove_text_properties): Fix typos in docstrings.
10067
100682008-05-31 Kenichi Handa <handa@m17n.org>
10069
10070 * font.c (font_list_entities): Fix the car part of data to be
10071 stored in the cache.
10072
10073 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10074
100752008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10076
10077 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10078 Add a `test' argument so another predicate than `equal' can be used.
10079 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10080 (map_char_table): Remove unused vars `c' and `i'.
10081 * lisp.h (Foptimize_char_table): Adjust declaration.
10082 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10083
100842008-05-30 Kenichi Handa <handa@m17n.org>
10085
10086 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10087 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10088 defined.
10089
100902008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10091
10092 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10093 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10094 frame-local settings for the same variable.
10095
100962008-05-30 Kenichi Handa <handa@m17n.org>
10097
10098 * fontset.c (Ffont_info): Move to font.c.
10099 (syms_of_fontset): Delete defsubr of Sfont_info.
10100
10101 * font.c (font_style_to_value, font_score): Delete casting of the
10102 args to xstcasecmp.
10103 (register_font_driver): Increment num_font_drivers only when
10104 registering the driver globally.
10105 (Ffont_info): Move from fontset.c. Handle a font object too.
10106 (syms_of_font): Defsubr Sfont_info.
10107
101082008-05-29 Kenichi Handa <handa@m17n.org>
10109
10110 * coding.h (enum define_coding_utf8_arg_index): New enum.
10111 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10112 coding_attr_utf_bom.
10113 (enum utf_bom_type): Rename from utf_16_bom_type.
10114 (struct utf_16_spec): Adjust for the above change.
10115 (struct coding_system): Add utf_8_bom in `spec' union.
10116
10117 * coding.c (CODING_UTF_8_BOM): New macro.
10118 (enum coding_category): Delete coding_category_utf_8, add
10119 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10120 coding_category_utf_8_sig.
10121 (CATEGORY_MASK_UTF_8): Delete it.
10122 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10123 (CATEGORY_MASK_UTF_8_SIG): New macros.
10124 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10125 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10126 CATEGORY_MASK_UTF_8_SIG.
10127 (CATEGORY_MASK_UTF_8): New macro.
10128 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10129 (detect_coding_utf_8): Check BOM.
10130 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10131 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10132 (encode_coding_utf_16): Likewise.
10133 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10134 (detect_coding, detect_coding_system): Handle utf-8-auto.
10135 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10136 (syms_of_coding): Fix setting up of Vcoding_category_table.
10137
101382008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10139
10140 * process.c (Faccept_process_output): If `millisec' is non-nil,
10141 `seconds' default to 0.
10142 (wait_reading_process_output): Also return non-nil if we read output
10143 from a non-running process.
10144
101452008-05-29 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10148 `raster' specified.
10149 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10150 in the uniscribe backend, but disallow any font that has no
10151 unicode subrange support.
10152
101532008-05-29 Juanma Barranquero <lekktu@gmail.com>
10154
10155 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10156 Fix typos in docstrings.
10157
101582008-05-29 Kenichi Handa <handa@m17n.org>
10159
10160 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10161 (Fx_family_fonts): Set frame correctly.
10162
101632008-05-28 Jason Rumney <jasonr@gnu.org>
10164
10165 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10166
101672008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10168
10169 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10170 calling build_annotations.
10171
101722008-05-28 Juanma Barranquero <lekktu@gmail.com>
10173
10174 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10175 (Fencode_coding_string):
10176 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10177 <latin-extra-code-table>: Fix typos in docstrings.
10178 (syms_of_coding) <coding-system-alist>: Doc fix.
10179 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10180
101812008-05-28 Kenichi Handa <handa@m17n.org>
10182
10183 * fontset.c (Ffont_info): Don't call font_close_object.
10184
10185 * font.c (font_parse_family_registry): Use Ffont_put to validate
10186 foundry and family.
10187 (font_delete_unmatched): Don't check spacing.
10188 (font_list_entities): Add spacing to the spec to list fonts.
10189
10190 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10191 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10192
10193 * coding.c (encode_coding_raw_text): Fix previous change.
10194 (encode_coding_object): When the dst_object is a buffer and is
10195 different from src_object, move gap to PT.
10196
101972008-05-27 Chong Yidong <cyd@stupidchicken.com>
10198
10199 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10200
102012008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10202
10203 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10204 all branches. Compute it differently.
10205
10206 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10207
102082008-05-27 Juanma Barranquero <lekktu@gmail.com>
10209
10210 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10211 into "else if () ... else ...".
10212
102132008-05-27 Jason Rumney <jasonr@gnu.org>
10214
10215 * w32font.c (w32font_open_internal): Determine if glyph indices
10216 are likely to work here.
10217
102182008-05-27 Chong Yidong <cyd@stupidchicken.com>
10219
10220 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10221 draw overlap glyphs with appropriate highlighting.
10222
102232008-05-27 Kenichi Handa <handa@m17n.org>
10224
10225 * xfont.c (xfont_open): Fix calculation of font->average_width.
10226
102272008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10228
10229 * casefiddle.c (casify_object): Try to guess better whether the
10230 argument is a byte or a char.
10231
102322008-05-26 Andreas Schwab <schwab@suse.de>
10233
10234 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10235 Always send multiples of format size.
10236
10237 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10238
102392008-05-26 Jason Rumney <jasonr@gnu.org>
10240
10241 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10242 (compute_metrics): Don't set failure if we just cleared the cache.
10243 (w32_weight_table): Remove unused variable.
10244 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10245 backwards compatibility.
10246
102472008-05-25 Kenichi Handa <handa@m17n.org>
10248
10249 * w32term.c (x_draw_glyph_string):
10250 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10251
10252 * xfaces.c: Delete unused function prototypes.
10253 (xstrlwr, font_frame): Delete them.
10254 (clear_face_cache): Delete unused variable.
10255
10256 * xftfont.c (xftfont_open): Delete unused variable.
10257 If underline_thickness is not 1, adjust underline_position.
10258
10259 * ftxfont.c (ftxfont_open): Delete unused variable.
10260
10261 * fontset.c (face_for_char): Optimize for the case of no charset
10262 property.
10263
10264 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10265 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10266 (otf_open, font_otf_capability, generate_otf_features)
10267 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10268 Comment out by surrounding "#if 0" and "#endif" for the moment.
10269 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10270 (syms_of_font): Codes for accessing above commented out.
10271
102722008-05-24 Eli Zaretskii <eliz@gnu.org>
10273
10274 * w32proc.c: Include dispextern.h.
10275
10276 * w32.c: Include dispextern.h.
10277
102782008-05-23 Juanma Barranquero <lekktu@gmail.com>
10279
10280 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10281 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10282 Fix typos in docstrings.
10283
102842008-05-23 Jason Rumney <jasonr@gnu.org>
10285
10286 * xsmfns.c: Remove includes that are already included by config.h.
10287
102882008-05-23 Kenichi Handa <handa@m17n.org>
10289
10290 * charset.c (Qemacs, charset_emacs): New variables.
10291 (char_charset): Fix for non-Unicode characters.
10292 (syms_of_charset): Define charset_emacs.
10293
10294 * w32term.c (x_draw_glyph_string): Be sure to update
10295 s->underline_thickness and s->underline_position. Be sure to draw
10296 underline within the current line area.
10297
10298 * xterm.c (x_draw_glyph_string): Be sure to update
10299 s->underline_thickness and s->underline_position. Be sure to draw
10300 underline within the current line area.
10301
10302 * fontset.c: Delete unused variables and add casting for char *
10303 throughout the file.
10304 (fontset_font): Try the fallback fonts of the current fontset
10305 before consulting the default fontset.
10306
10307 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10308
10309 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10310
103112008-05-22 Jason Rumney <jasonr@gnu.org>
10312
10313 * font.c: Don't include strings.h.
10314
10315 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10316
10317 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10318 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10319 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10320 to call xstrcasecmp.
10321
10322 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10323
10324 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10325
10326 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10327
10328 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10329
103302008-05-22 Kenichi Handa <handa@m17n.org>
10331
10332 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10333
10334 * font.c (font_prop_validate_style): Adjust for the format
10335 change of font_style_table.
10336
10337 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10338 two args.
10339
10340 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10341 two args.
10342
103432008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10344
10345 * minibuf.c (keys_of_minibuf): Delete.
10346 * lisp.h (keys_of_minibuf): Delete.
10347 * emacs.c (main): Don't call keys_of_minibuf.
10348
103492008-05-22 Kenichi Handa <handa@m17n.org>
10350
10351 * ftfont.c (ftfont_resolve_generic_family): Rename from
10352 ftfont_list_generic_family. Return a single family for each
10353 generic family.
10354 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10355 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10356 Call font_add_log.
10357 (ftfont_match): Call font_add_log.
10358
10359 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10360 (FONT_DEBUG): Define it.
10361 (font_add_log): Extern it.
10362 (font_assert): Rename from xassert.
10363
10364 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10365 (xfont_list_family): Call font_add_log.
10366 (xfont_match): Likewise.
10367 (memq_no_quit): Delete.
10368
10369 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10370 call of Ffont_xlfd_name.
10371
10372 * xfaces.c (struct table_entry, slant_table, weight_table)
10373 (swidth_table): Move to font.c.
10374
10375 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10376 xassert are changed to font_assert. Delete many unused variables.
10377 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10378 New variables.
10379 (struct table_entry): Move from xfaces.c and modified.
10380 (weight_table, slant_table, width_table): Move from xfaces.c and
10381 contents adjusted for the change of struct table_entry.
10382 (font_style_to_value, font_style_symbolic): Adjust for the
10383 format change of font_style_table.
10384 (font_parse_family_registry): Don't overwrite existing foundry and
10385 family of font_spec.
10386 (font_score): Fix calculation of diff for sizes.
10387 (font_sort_entites): Call font_add_log.
10388 (font_delete_unmatched): Return a newly created list.
10389 (font_list_entities): Fix previous change. Call font_add_log.
10390 (font_matching_entity, font_open_entity, font_close_entity):
10391 Call font_add_log.
10392 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10393 (Finternal_set_font_style_table): Delete.
10394 (BUILD_STYLE_TABLE): New macro.
10395 (build_style_table): New function.
10396 (Vfont_log, font_log_env_checked): New variables.
10397 (font_add_log): New function.
10398 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10399 Declare Lisp variables "font-weight-table", "font-slant-table",
10400 "font-width-table", and "font-log". Initialize font_style_table.
10401
104022008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10403
10404 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10405
104062008-05-21 Seiji Zenitani <zenitani@mac.com>
10407 Ryo Yoshitake <ryo@shiftmode.net>
10408
10409 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10410 (Vframe_alpha_lower_limit): New variable.
10411 (x_set_alpha): New function.
10412
10413 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10414
10415 * xfns.c (x-create-frame, Qalpha):
10416 Initialize the frame parameter `alpha'.
10417 * xterm.c (OPAQUE, OPACITY): New.
10418 (x_set_frame_alpha): New function.
10419 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10420
10421 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10422 * w32fns.c (w32_frame_parm_handlers): Likewise.
10423
104242008-05-20 Jason Rumney <jasonr@gnu.org>
10425
10426 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10427 truetype fonts to opentype list.
10428
104292008-05-20 Juanma Barranquero <lekktu@gmail.com>
10430
10431 * fontset.c (Ffontset_info): Doc fix.
10432 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10433 <ignore-relative-composition>: Fix typos in docstrings.
10434
10435 * font.c (syms-of-font) <font-encoding-alist>:
10436 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10437 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10438 (Ffont_otf_alternates): Doc fixes.
10439
104402008-05-20 Kenichi Handa <handa@m17n.org>
10441
10442 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10443 font.h through out the file.
10444 (FONT_DRIVERS): Rename from FONTOBJ.
10445 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10446 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10447
10448 * emacs.c (main): Call syms_of_font unconditionally.
10449
10450 * font.h (find_font_encoding): Extern it.
10451
10452 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10453 fontset.c.
194d44e7 10454 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10455 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10456 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10457 only when HAVE_WINDOW_SYSTEM is defined.
10458 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10459 when HAVE_WINDOW_SYSTEM is defined.
10460
10461 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10462 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10463
10464 * xfaces.c: Include font.h unconditionally.
10465 (merge_face_ref, merge_face_vectors)
10466 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10467
104682008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10469
10470 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10471 indirect_variable.
10472 * eval.c (lisp_indirect_variable): New fun.
10473 (Fuser_variable_p): Use it.
10474
104752008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10476
10477 * lisp.h (indirect_variable):
10478 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10479 Use Lisp_Symbol pointers rather than Lisp_Object.
10480 Adjust callers.
10481 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10482 To this end, change calling-convention.
10483
10484 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10485 if some non-hidden buffers are selected by string&pred.
10486
104872008-05-19 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * process.c (wait_reading_process_output): Always check status
10490 when in batch mode.
10491
104922008-05-19 Kenichi Handa <handa@m17n.org>
10493
10494 * font.c (font_list_entities): Fix handling of cache.
10495 (font_matching_entity): Likewise.
10496
10497 * ftfont.c (cs_iso8859_1): Delete.
10498 (ft_face_cache): New variable.
10499 (struct ftfont_info): New member fc_charset_idx.
10500 (ftfont_build_basic_charsets): Delete.
10501 (fc_charset_table): New variable.
10502 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10503 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10504 Callers changed.
10505 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10506 (ftfont_spec_pattern): New argument fc_charset_idx.
10507 Check registry more rigidly. Change callers.
10508 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10509 change of :font-entity property of the font.
10510
10511 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10512 property of the font.
10513
105142008-05-18 Juanma Barranquero <lekktu@gmail.com>
10515
10516 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10517 (Funencodable_char_position, Fcheck_coding_systems_region)
10518 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10519 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10520 (Ffind_operation_coding_system, Fset_coding_system_priority)
10521 (Fcoding_system_eol_type): Doc fixes.
10522
105232008-05-17 Glenn Morris <rgm@gnu.org>
10524
10525 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10526
105272008-05-16 Eli Zaretskii <eliz@gnu.org>
10528
10529 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10530 and st_gid.
10531
10532 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10533 HAVE_WINDOW_SYSTEM is not defined.
10534
10535 * xfaces.c (merge_face_ref, merge_face_vectors)
10536 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10537 HAVE_WINDOW_SYSTEM is defined.
10538 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10539
105402008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10541
10542 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10543
105442008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10545
10546 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10547
105482008-05-15 Kenichi Handa <handa@m17n.org>
10549
10550 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10551 preference.
10552
105532008-05-15 Glenn Morris <rgm@gnu.org>
10554
10555 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10556
105572008-05-15 Chong Yidong <cyd@stupidchicken.com>
10558
10559 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10560 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10561
10562 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10563
105642008-05-15 Kenichi Handa <handa@m17n.org>
10565
10566 * ftfont.c (ftfont_list): Downcase family name to check generic
10567 families.
10568
10569 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10570 font-spec for QCfont value.
10571
10572 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10573 buffer. Check the return value of it.
10574
105752008-05-14 Jason Rumney <jasonr@gnu.org>
10576
10577 * w32term.c (w32_get_glyph_overhangs): Remove.
10578 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10579
105802008-05-14 Kenichi Handa <handa@m17n.org>
10581
10582 * font.c (font_prop_validate): Make nil a valid value.
10583 (font_clear_cache): Check if the cached vector of entities is nil
10584 or not.
10585
105862008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10587
10588 * emacs.c (main_thread): Conditionalize on
10589 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10590 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10591
10592 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10593 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10594 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10595
105962008-05-14 Kenichi Handa <handa@m17n.org>
10597
10598 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10599 has no corresponding coding system.
10600
106012008-05-14 Jason Rumney <jasonr@gnu.org>
10602
10603 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10604
10605 * w32font.h (w32font_open_internal): Update declaration.
10606
10607 * w32font.c (w32font_open_internal): Change last argument from
10608 w32font_info struct to font object. Fill in font object from
10609 font_entity. Get Outline metrics if possible. Use them to
10610 calculate underline position and thickness. Use xlfd name as name
10611 property. Don't set codepage.
10612 (w32font_open): Pass font_object to w32font_open_internal. Don't
10613 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10614 (w32font_draw): Use s->font.
10615 (clear_cached_metrics): Don't clear non-existent blocks.
10616
10617 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10618 font was not found.
10619 (x_draw_glyph_string): Use underline position and thickness from font.
10620
10621 * w32uniscribe.c (uniscribe_open): Pass font_object to
10622 w32font_open_internal.
10623
106242008-05-14 Kenichi Handa <handa@m17n.org>
10625
10626 These changes are to delete all legacy font-handling codes, and
10627 make Emacs use only font-backends.
10628
10629 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10630 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10631
10632 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10633
10634 * charset.h (Vcharset_non_preferred_head)
10635 (Vcurrent_iso639_language): Extern them.
10636
10637 * charset.c (Vcharset_non_preferred_head): New variable.
10638 (Vcurrent_iso639_language): New variable.
10639 (syms_of_charset): Declare it as a Lisp variable.
10640 (char_charset): Don't check non preferred charsets. As a last
10641 resort, return charset_unicode.
10642 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10643
10644 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10645 conditionals. Don't check enable_font_backend. Delete all codes
10646 used only when USE_FONT_BACKEND is not defined.
10647
10648 * dispextern.h (struct glyph_string): Change type of `font' to
10649 `struct font *'.
10650 (struct glyph_string): New member underline_position and
10651 underline_thickness.
10652 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10653 (struct face): Change type of `font' to `struct font *'. Remove
10654 members `font_name', `font_info_id'.
10655 (per_char_metric, encode_char): Delete externs.
10656 (calc_pixel_width_or_height): Adjust the prototype.
10657
10658 * emacs.c (enable_font_backend): Delete extern.
10659 (main): Don't set enable_font_backend. Don't check the command
10660 line argument "-disable-font-backend".
10661
10662 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10663 (enum font_property_index): New members FONT_DPI_INDEX,
10664 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10665 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10666 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10667 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10668 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10669 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10670 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10671 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10672 (struct font_spec, struct font_entity): New structs.
10673 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10674 (struct font): Many members from old "struct font_info" moved to
10675 here. Members font and entity deleted.
10676 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10677 the new font-related objects.
10678 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10679 (CHECK_FONT_GET_OBJECT): Likewise.
10680 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10681 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10682 (struct font_driver): New members case_sensitive anc check. Type
10683 of the member list and open changed.
10684 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10685 (font_symbolic_width, font_find_object, font_get_spec)
10686 (font_set_lface_from_name): Delete extern.
10687 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10688
10689 * font.c: Include <strings.h>.
10690 (enable_font_backend): Delete it.
10691 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10692 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10693 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10694 (null_string): Delete it.
10695 (null_vector): Make it static.
10696 (font_family_alist): Delete it.
10697 (Qnormal): Extern it.
10698 (QCextra, QClanguage): Delete it.
10699 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10700 (font_make_spec, font_make_entity, font_make_object)
10701 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10702 the string. Callers changed.
10703 (font_pixel_size): Adjusted for the format change of font-related
10704 objects.
10705 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10706 (font_style_to_value, font_style_symbolic): New function.
10707 (build_font_family_alist): Delete it.
10708 (font_registry_charsets): Use Fassoc_string instead of
10709 assq_no_quit.
10710 (font_prop_validate_symbol): Don't return null_string.
10711 (font_prop_validate_style): Adjusted for the change of
10712 style-related values in a font vector.
10713 (font_property_table): Delete entries for QClanguage and
10714 QCantialias, add entries for QCavgwidth.
10715 (get_font_prop_index): Delete the 2nd argument FROM.
10716 (font_prop_validate): Arguments changed.
10717 (font_put_extra): Adjusted for the change of font-related objects.
10718 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10719 (font_parse_fcname, font_unparse_fcname)
10720 (font_prepare_composition): Likewise.
10721 (font_parse_family_registry): Renamed from font_merge_old_spec.
10722 (otf_open): Delete the 1st arg entity.
10723 (font_otf_capability): Adjusted for the above change.
10724 (font_score): New arg alternate_families. Adjusted for the change
10725 of font-related objects.
10726 (font_sort_entites): New arg best_only.
10727 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10728 Delete them.
10729 (font_match_p): Check alternate families.
10730 (font_find_object): Delete it.
10731 (font_check_object): New function.
10732 (font_clear_cache): Adjusted for the change of font-related objects.
10733 (font_delete_unmatched): New arg.
10734 (font_list_entities): Call font_driver->list with a spec that
10735 doesn't specify style-related properties.
10736 (font_matching_entity): Arguments changed. Caller changed.
10737 (font_open_entity): Adjusted for the change of font-related objects.
10738 (font_close_object, font_has_char, font_encode_char)
10739 (font_get_name, font_get_spec): Likewise.
10740 (font_spec_from_name, font_clear_prop, font_update_lface):
10741 New functions.
10742 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10743 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10744 (font_at): Adjusted for the change of font-related objects.
10745 (font_range): New function.
10746 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10747 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10748 (Fcopy_font_spec, Fmerge_font_spec): New function.
10749 (Ffont_family_list): Renamed from list-families.
10750 (Finternal_set_font_style_table): Arguments changed.
10751 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10752 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10753 change of font-related objects.
10754 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10755
10756 * fontset.h (struct font_info): Delete it. Most members go to
10757 struct font.
10758 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10759 (enum FONT_SPEC_INDEX): Delete it.
10760 (font_info, list_fonts_func, load_font_func, query_font_func)
10761 (set_frame_fontset_func, find_ccl_program_func)
10762 (get_font_repertory_func, new_fontset_from_font_name): Delete
10763 externs.
10764 (fontset_from_font_name): Extern it.
10765 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10766 (FONT_INFO_FROM_FACE): Deleted.
10767 (face_for_font): Adjust prototype.
10768
10769 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10770 conditionals. Don't check enable_font_backend. Delete all codes
10771 used only when USE_FONT_BACKEND is not defined.
10772 (get_font_info_func, list_font_func, load_font_func)
10773 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10774 (get_font_repertory_func): Delete them.
10775 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10776 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10777 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10778 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10779 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10780 (fontset_compare_rfontdef): New function.
10781 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10782 rfont-defs by qsort. Adjusted for the change of font-group vector.
10783 (load_font_get_repertory): Deleted.
10784 (fontset_find_font): Use new macros to ref/set elements of
10785 font-def and rfont-def.
10786 (fontset_font): Fix the timing of remembering that no font for C.
10787 (free_face_fontset): Do nothing if the face has no fontset.
10788 (face_suitable_for_char_p): Use new macros to ref/set elements of
10789 rfont-def.
10790 (face_for_char): Likewise. Call face_for_char with font_object.
10791 (fs_load_font): Delete. Delete #pragma surrounding it.
10792 (fs_query_fontset): Use strcasecmp instead of strcmp.
10793 (generate_ascii_font_name): Adjusted for the format change of
10794 font-spec.
10795 (Fset_fontset_font): Likewise. Use new macros to set elements of
10796 font-def.
10797 (Fnew_fontset): Use font_unparse_xlfd to generate
10798 FONTSET_ASCII (fontset).
10799 (new_fontset_from_font_name): Deleted.
10800 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10801 a fontset is already created for the font. FIx updating of
10802 Vfontset_alias_alist.
10803 (fontset_ascii_font): Deleted.
10804 (Ffont_info): Adjusted for the format change of font-spec.
10805 (Finternal_char_font): Likewise.
10806 (Ffontset_info): Likewise.
10807 (syms_of_fontset): Don't check load_font_func.
10808
10809 * fns.c (internal_equal): Handle PREV_FONT.
10810
10811 * frame.h: Delete USE_FONT_BACKEND conditional.
10812
10813 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10814 conditionals. Don't check enable_font_backend. Delete all codes
10815 used only when USE_FONT_BACKEND is not defined.
10816 (x_set_font): Call x_new_font, not x_new_fontset2.
10817 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10818 already set for the frame.
10819
10820 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10821 a font-entity by font_make_entity. Use font_intern_prop instead
10822 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10823 font property. If a font is scalable, set avgwidth property to 0.
10824 Set font-entity property by font_put_extra.
10825 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10826 (ffont_driver): Adjusted for the change of struct font_driver.
10827 (ftfont_spec_pattern): New function.
10828 (ftfont_list): Return a list, not vector.
10829 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10830 (ftfont_list_family): Don't downcase names.
10831 (ftfont_free_entity): Deleted.
10832 (ftfont_open): Return a font-object. Adjusted for the change of
10833 struct font. Get underline_thickness and underline_position from
10834 font property. Don't update dpyinfo->smallest_font_height and
10835 dpyinfo->smallest_char_width.
10836 (ftfont_close): Don't free `struct font'.
10837 (ftfont_has_char): Adjusted for the format change of font-entity.
10838 (ftfont_encode_char, ftfont_text_extents): Likewise.
10839
10840 * ftxfont.c (ftxfont_list): Return a list, not vector.
10841 (ftxfont_open): Return a font-object. Adjusted for the change of
10842 struct font. Get underline_thickness and underline_position from
10843 font property. Don't update dpyinfo->smallest_font_height and
10844 dpyinfo->smallest_char_width.
10845 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10846 (ftxfont_draw): Adjusted for the change of struct font.
10847
10848 * image.c (image_ascent): Don't include "charset.h". Include
10849 "character.h" and "font.h".
10850
10851 * lisp.h (enum pvec_type): New member PREV_FONT.
10852 (Fassoc_string): EXFUN it.
10853
10854 * print.c: Include font.h.
10855 (print_object): Handle font-related objects.
10856
10857 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10858 conditionals. Don't check enable_font_backend. Delete all codes
10859 used only when USE_FONT_BACKEND is not defined.
10860 (handle_auto_composed_prop): Do nothing if it->f is not on a
10861 window system. Check how many following characters can be
10862 displayed by the same font.
10863 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10864 'struct font *'.
10865 (get_char_face_and_encoding): Assign the whole encoding task to
10866 the `encode-char' method of a font driver.
10867 (fill_composite_glyph_string): Adjusted for the change of `struct
10868 face' and `struct glyph_string'.
10869 (fill_glyph_string): Likewise.
10870 (get_per_char_metric): Arguments changed.
10871 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10872 and `struct glyph_string'.
10873 (produce_stretch_glyph, calc_line_height_property)
10874 (x_produce_glyphs): Likewise.
10875
10876 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10877 conditionals. Don't check enable_font_backend. Delete all codes
10878 used only when USE_FONT_BACKEND is not defined. Use
10879 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10880 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10881 (Qp): Extern them.
10882 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10883 Deleted.
10884 (struct font_name): Deleted.
10885 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10886 (compare_fonts_by_sort_order): New function.
10887 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10888 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10889 Deleted.
10890 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10891 compare_fonts_by_sort_order.
10892 (Fx_font_family_list): Call Ffont_family_list.
10893 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10894 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10895 (face_symbolic_slant, face_symbolic_swidth)
10896 (split_font_name_into_vector, build_font_name_from_vector)
10897 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10898 (font_rescale_ratio, split_font_name, build_font_name)
10899 (free_font_names, sort_fonts, x_face_list_fonts)
10900 (face_font_available_p, sorted_font_list, cmp_font_names)
10901 (font_list_1, concat_font_list, font_list, remove_duplicates):
10902 Deleted.
10903 (Fx_list_fonts): Use Ffont_list.
10904 (LFACE_AVGWIDTH): Deleted.
10905 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10906 by FONTP.
10907 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10908 (set_lface_from_font_name): Delete it.
10909 (set_lface_from_font): Renamed from
10910 set_lface_from_font_and_fontset. Caller changed. Don't set
10911 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10912 for face.
10913 (merge_face_vectors): Copy font-spec if necessary.
10914 Clear properties of the font-spec if necessary.
10915 (merge_face_ref): Clear properties of the font-spec if necessary.
10916 (Finternal_set_lisp_face_attribute): Likewise.
10917 (set_font_frame_param): Use font_load_for_lface to load a
10918 font-object, and call Fmodify_frame_parameters with it.
10919 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10920 font name by Ffont_xlfd_name.
10921 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10922 QCslant, and QCwidth.
10923 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10924 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10925 Compare fonts by EQ.
10926 (lookup_non_ascii_face): Deleted.
10927 (face_for_font): The 2nd argument changed.
10928 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10929 Check atomic font properties by case insensitive.
10930 (realize_non_ascii_face): Set face->overstrike correctly.
10931 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10932 (dump_realized_face): Get font name from
10933 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10934
10935 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10936 conditionals. Don't check enable_font_backend. Delete all codes
10937 used only when USE_FONT_BACKEND is not defined.
10938 (xic_create_xfontset): Original code deleted and renamed from
10939 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10940 (x_make_gc): Don't set GCFont in GCs.
10941 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10942 opened by "fixed".
10943 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10944 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10945 get_font_repertory_func.
10946
10947 * xfont.c: Include <stdlib.h> and "ccl.h".
10948 (struct xfont_info): New structure.
10949 (xfont_query_font): Deleted.
10950 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10951 moved from xterm.c.
10952 (xfont_driver): Adjusted for the change of struct font_driver.
10953 (compare_font_names): New function.
10954 (xfont_list_pattern): Sort font names case insensitively. Make
10955 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10956 (xfont_list): Return a list, not vector.
10957 (xfont_match): If the font doesn't have QCname property, generate
10958 a name from the other font properties.
10959 (xfont_open): Return a font-object. Adjusted for the change of
10960 struct font. Get underline_thickness and underline_position from
10961 font property. Don't update dpyinfo->smallest_font_height and
10962 dpyinfo->smallest_char_width.
10963 (xfont_close): Don't free struct font.
10964 (xfont_prepare_face): Adjusted for the change of struct font.
10965 (xfont_done_face): Deleted.
10966 (xfont_has_char): Adjusted for the change of struct font.
10967 (xfont_encode_char, xfont_draw): Likewise.
10968 (xfont_check): New function.
10969
10970 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10971 callback function.
10972 (xftfont_match): Adjusted for the format change of font-entity.
10973 (xftfont_open): Adjusted for the format change of font-entity and
10974 font-object. Adjusted for the change of struct font. Return a
10975 font-object. Don't update dpyinfo->smallest_font_height and
10976 dpyinfo->smallest_char_width.
10977 (xftfont_close): Block input while calling XftFontClose.
10978 (xftfont_prepare_face): Don't block input while calling
10979 xftfont_get_colors. Adjusted for the change of struct font.
10980 (xftfont_shape): Return value of error case fixed.
10981
10982 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10983
10984 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10985 conditionals.
10986 (FONT_WIDTH): Return (f)->max_width.
10987 (struct x_display_info): Delete member `font'.
10988 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10989 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10990 (struct x_output): Change type of `font' to `struct font *'.
10991
10992 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10993 conditionals. Don't check enable_font_backend. Delete all codes
10994 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10995 (x_per_char_metric, x_encode_char): Deleted.
10996 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10997 (x_compute_glyph_string_overhangs): Adjusted for the change of
10998 `struct face'.
10999 (x_draw_glyph_string_foreground)
11000 (x_draw_composite_glyph_string_foreground): Likewise.
11001 (x_draw_glyph_string): Likewise. Use font->underline_position and
11002 font->underline_thickness.
11003 (x_new_font): Renamed from x_new_fontset2.
11004 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11005 (x_check_font): Call `check' method of a font driver.
11006 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11007 (x_query_font, x_get_font_repertory): Deleted.
11008 (x_find_ccl_program): Renamed and moved to xfont.c.
11009 (x_redisplay_interface): Adjusted for the change of `struct
11010 redisplay_interface'.
11011
11012 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11013 conditionals. Don't check enable_font_backend. Delete all codes
11014 used only when USE_FONT_BACKEND is not defined. Surround non-used
11015 code by "#ifdef OLD_FONT" and "endif".
11016 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11017
11018 * w32font.h (struct w32font_info): New member.
11019 (FONT_COMPAT): New macro.
11020 (w32font_open_internal): Prototype adjusted.
11021
11022 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11023 OLD_FONT" and "endif".
11024
11025 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11026 conditionals. Don't check enable_font_backend. Delete all codes
11027 used only when USE_FONT_BACKEND is not defined.
11028 (w32font_open): Return a font-object. Make a font-object by
11029 font_make_object. Adjusted for the change of struct w32font_info.
11030 (w32font_close): Don't free struct font. Adjusted for the change
11031 of struct w32font_info.
11032 (w32font_encode_char, w32font_text_extents, w32font_draw):
11033 Adjusted for the change of struct w32font_info.
11034 (w32font_draw): Likewise.
11035 (w32font_list_internal): Return a list, not vector.
11036 (w32font_open_internal): Change the 4th arg to font-object.
11037 Adjusted for the change of struct w32font_info and font-object format.
11038 (add_font_name_to_list): Don't downcase names.
11039 (w32_enumfont_pattern_entity): Make a font-entity by
11040 font_make_entity. Adjusted for the format change of font-entity.
11041 Use FONT_SET_STYLE to set a style-related font property. If a
11042 font is scalable, set avgwidth property to 0. Set font-entity
11043 property by font_put_extra.
11044 (font_matches_spec): Adjusted for the format change of font-entity.
11045 (w32_weight_table, w32_decode_weight): New variables.
11046 (w32_encode_weight): New function.
11047 (fill_in_logfont): Adjusted for the format change of font-spec.
11048 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11049 weight value.
11050 (w32font_driver): Adjusted for the change of struct font_driver.
11051
11052 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11053 conditionals. Don't check enable_font_backend. Surround non-used
11054 code by "#ifdef OLD_FONT" and "endif".
11055 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11056 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11057
11058 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11059 conditionals. Don't check enable_font_backend. Delete all codes
11060 used only when USE_FONT_BACKEND is not defined. Surround non-used
11061 code by "#ifdef OLD_FONT" and "endif".
11062
11063 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11064 (uniscribe_open): Return value changed to font-object.
11065 Adjusted for the format change of font-object.
11066 (uniscribe_otf_capability): Adjusted for the change of struct font.
11067 (add_opentype_font_name_to_list): Don't downcase names.
11068 (uniscribe_font_driver): Adjusted for the change of struct
11069 font_driver.
11070
110712008-05-13 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * dispnew.c (update_frame_1): Check if tty output is still valid
11074 before flushing it.
11075
110762008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11077
11078 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11079 to Gtk+ menus.
11080
110812008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11082
11083 * dired.c (file_name_completion): Tweak the code so as to always do it
11084 in a single pass. Tighten the scope of some variables.
11085
11086 * dired.c (Qdefault_directory): New var.
11087 (file_name_completion): Use it instead of Fexpand_file_name.
11088 (syms_of_dired): Initialize it.
11089
110902008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11091
11092 * fileio.c (double_dollars): Remove dead code.
11093
110942008-05-10 Eli Zaretskii <eliz@gnu.org>
11095
11096 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11097 Mention w32-get-true-file-attributes in doc string.
11098
11099 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11100
111012008-05-09 Glenn Morris <rgm@gnu.org>
11102
11103 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11104 2008-04-23.
11105
111062008-05-09 Eli Zaretskii <eliz@gnu.org>
11107
11108 Support for reporting owner and group of each file on MS-Windows:
11109 * dired.c (stat_uname, stat_gname): New functions, with special
11110 implementation for w32.
11111 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11112
11113 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11114 (dflt_group_name): New static variable.
11115 (dflt_group): Rename from the_group.
11116 (init_user_info): Init dflt_group fields. Get user's group name
11117 from LookupAccountSid.
11118 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11119 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11120 New initialization states.
11121 (globals_of_w32): Initialize them to zero. Initialize the default
11122 group name to "None".
11123 (GetFileSecurity_Name): New global var, the name of the function
11124 to call for GetFileSecurity.
11125 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11126 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11127 (get_file_security, get_security_descriptor_owner)
11128 (get_security_descriptor_group, is_valid_sid)
11129 (get_file_security_desc, get_rid, get_name_and_id)
11130 (get_file_owner_and_group): New functions.
11131 (stat): Use get_file_security_desc and get_file_owner_and_group to
11132 report the owner and primary group of each file. Don't ignore the
11133 high 32 bits of file's size, now that st_size is 64-bit wide.
11134 Fix test when to get true file attributes.
11135 (init_user_info): Use get_rid instead of equivalent inline code.
11136 (fstat): Don't ignore the high 32 bits of file's size.
11137
111382008-05-09 Chong Yidong <cyd@stupidchicken.com>
11139
11140 * image.c (png_load): Use correct bit-depth for setting background
11141 color.
11142
111432008-05-08 Eli Zaretskii <eliz@gnu.org>
11144
11145 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11146 epa-hook.elc.
11147
111482008-05-08 Juanma Barranquero <lekktu@gmail.com>
11149
11150 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11151
111522008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11153
11154 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11155 because the original parameters are in pure storage now.
11156 (mac_window): Remove unused params. Update callers.
11157
111582008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11159
11160 * lread.c (substitute_object_recurse): Use lower-level primitives.
11161 Don't signal errors when traversing sub-char-tables.
11162 Don't loop over all the possible characters when traversing char-tables.
11163
11164 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11165 just like we do in print.c.
11166
111672008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11168
11169 * minibuf.c (Ftry_completion): Remove code left over from when we used
11170 scmp instead of Fcompare_strings.
11171
111722008-05-04 Juanma Barranquero <lekktu@gmail.com>
11173
11174 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11175
111762008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11177
11178 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11179 Create bitmap context in native byte order.
11180
11181 * macterm.c (XDrawLine)
11182 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11183 context in native byte order.
11184
111852008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11186
11187 * config.in: Regenerate.
11188
11189 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11190 New definitions for Image I/O support.
11191 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11192 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11193 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11194 (mac_data_provider_release_data, image_load_image_io)
11195 [USE_MAC_IMAGE_IO]: New functions.
11196 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11197 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11198 (init_image_func_pointer) [MAC_OSX]: Remove function.
11199 (image_load_quartz2d) [MAC_OSX]: Check availability of
11200 CGImageCreateWithPNGDataProvider at compile time.
11201 Use lowercase `false' for boolean constant.
11202 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11203 Use image_load_image_io.
11204 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11205 Don't check MyCGImageCreateWithPNGDataProvider.
11206 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11207 Don't call init_image_func_pointer.
11208
11209 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11210
11211 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11212 Make variable non-static.
11213 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11214 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11215
11216 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11217 (RED_FROM_ULONG): Mask off higher bits.
11218 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11219
11220 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11221 Include AvailabilityMacros.h.
11222 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11223 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11224
112252008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11226
11227 * chartab.c (Fset_char_table_range): If range is t, really set all
11228 chars to that value.
11229
112302008-05-03 Eli Zaretskii <eliz@gnu.org>
11231
11232 * dired.c (Ffile_attributes): Don't allow the device number become
11233 negative.
11234
112352008-05-02 Daiki Ueno <ueno@unixuser.org>
11236
11237 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11238
112392008-05-02 Juri Linkov <juri@jurta.org>
11240
11241 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11242 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11243 DEFAULT argument as a list of default values in docstrings.
11244
112452008-05-01 Chong Yidong <cyd@stupidchicken.com>
11246
11247 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11248
112492008-05-01 Martin Rudalics <rudalics@gmx.at>
11250
11251 * dispnew.c (change_frame_size_1): Preserve small windows when
11252 shrinking frames by calling set_window_height|width with third
11253 arg 2.
11254
11255 * window.h (struct window): Replace field too_small_ok by field
11256 resize_proportionally.
11257
11258 * window.c (make_window): Initialize resize_proportionally.
11259 (enlarge_window): Temporarily set resize_proportionally to make
11260 sure that shrink_windows does scale the window proportionally.
11261 (shrink_windows): When window has resize_proportionally set try
11262 to shrink it proportionally by stealing from other windows.
11263 (struct saved_window, Fset_window_configuration)
11264 (compare_window_configurations): Handle resize_proportionally.
11265 (WINDOW_TOTAL_SIZE): New macro.
11266 (window_min_size, shrink_windows, size_window): Use it.
11267 (check_min_window_sizes): Remove. Invalid values of
11268 window-min-height|width are handled by window_min_size_2 now.
11269 (size_window, Fsplit_window, enlarge_window)
11270 (adjust_window_trailing_edge, grow_mini_window): Don't call
11271 check_min_window_sizes.
11272 (window_min_size_2, window_min_size_1, window_min_size):
11273 New argument safe_p for retrieving "safe" minimum sizes.
11274 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11275 (adjust_window_trailing_edge, grow_mini_window):
11276 Adjust arguments of window_min_size... functions.
11277 (shrink_windows): Argument min_size removed. New argument
11278 safe_p allows shrinking windows to their safe minimum sizes.
11279 Calculate minimum size and decide whether a window shall be
11280 deleted for each window individually.
11281 (size_window): When nodelete_p equals 2, tell shrink_windows to
11282 delete windows only if their new minimum size is no more safe.
11283 (shrink_window_lowest_first): Call window_min_size_1 to make
11284 sure to preserve modeline of bottom-most window when resizing
11285 the minibuffer.
11286 (Fset_window_configuration, Fcurrent_window_configuration)
11287 (compare_window_configurations): Do not handle
11288 window-min-height|width any more.
11289 (syms_of_window): Clarify window-min-height|width doc-strings.
11290
112912008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11292
11293 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11294 some more. Copy some of the code from Ftry_completions.
11295 Remove special case code that dates back to initial revision when the
11296 slash was only added when necessary and that can't trigger nowadays.
11297
112982008-04-27 Kenichi Handa <handa@m17n.org>
11299
11300 * font.c (font_prop_validate): Signal `error' instead of `font'.
11301
113022008-04-29 Jason Rumney <jasonr@gnu.org>
11303
11304 * w32fns.c (Fw32_battery_status): New defun.
11305 (syms_of_w32fns): Defsubr it.
11306
113072008-04-28 Andreas Schwab <schwab@suse.de>
11308
11309 * dired.c (file_name_completion): Fix another mixing of encoded
11310 and decoded names.
11311
113122008-04-28 Juanma Barranquero <lekktu@gmail.com>
11313
11314 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11315
113162008-04-27 Juanma Barranquero <lekktu@gmail.com>
11317
11318 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11319
113202008-04-27 Andreas Schwab <schwab@suse.de>
11321
11322 * dired.c (file_name_completion): Fix inappropriate mixing of
11323 encoded and decoded names.
11324
11325 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11326
11327 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11328
113292008-04-26 Eli Zaretskii <eliz@gnu.org>
11330
11331 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11332 2008-03-31, it's not needed anymore with `struct stat' definition
11333 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11334 for the same reasons.
11335
113362008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11337
11338 * m/sparc.h: Additional redefinitions for GNU/Linux.
11339
113402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11341
11342 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11343 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11344 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11345 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11346 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11347 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11348 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11349 Likewise.
11350
11351 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11352 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11353 (mac_ax_number_of_characters): Add externs.
11354 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11355 [USE_MAC_TSM]: Likewise.
11356 (mac_handle_text_input_event) [MAC_OSX]:
11357 Handle kEventTextInputOffsetToPos for no active input area case.
11358 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11359 (mac_handle_document_access_event)
11360 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11361 (install_application_handler) [MAC_OSX]: Register handlers for
11362 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11363 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11364 Register mac_handle_document_access_event.
11365
11366 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11367 Make functions non-static.
11368
113692008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11370
11371 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11372 (read_file_name_completion_ignore_case, insert_default_directory)
11373 (Qdefault_directory): Move to minibuffer.el.
11374 (Fread_file_name): Call the new `read-file-name' instead.
11375
113762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11377
11378 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11379 Make function non-static.
11380 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11381 Remove function.
11382 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11383 Move to mactoolbox.c.
11384 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11385
11386 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11387 (mac_rect_make): New macro.
11388
11389 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11390 instead of float.
11391 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11392 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11393 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11394 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11395 CGRectMake.
11396 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11397 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11398 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11399 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11400 instead of WindowRef in argument type.
11401 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11402 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11403 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11404 instead of DISPLAY. All uses changed.
11405 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11406 (x_calc_absolute_position): Simplify so as not to use
11407 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11408
11409 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11410 instead of WindowRef in argument type.
11411 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11412 [TARGET_API_MAC_CARBON]: Remove externs.
11413 (create_apple_event, mac_event_parameters_to_lisp)
11414 [TARGET_API_MAC_CARBON]: Add externs.
11415
11416 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11417 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11418 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11419 is clicked.
11420 (x_activate_menubar): Remove extern for saved_menu_event_location.
11421 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11422 Move from mac.c.
11423
114242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11425
11426 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11427 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11428
114292008-04-23 Jason Rumney <jasonr@gnu.org>
11430
11431 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11432 attributes only for local files.
11433
11434 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11435 default to Qlocal.
11436
114372008-04-22 Juri Linkov <juri@jurta.org>
11438
11439 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11440 read-buffer-to-switch instead of using the letter "B".
11441
114422008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11443
11444 * fileio.c (Qdefault_directory): New variable.
11445 (Fread_file_name): Use it to pass `dir' to the completion functions.
11446
114472008-04-20 Chong Yidong <cyd@stupidchicken.com>
11448
11449 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11450
114512008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * keyboard.c (Vpre_help_message): Remove.
11454 (show_help_echo): Remove default C code.
11455
11456 * dired.c (directory_files_internal, file_name_completion):
11457 Only call ENCODE_FILE if the string is indeed decoded.
11458
114592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11460
11461 * Makefile.in (TOOLKIT_DEFINES): Remove.
11462 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11463
114642008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11465
11466 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11467 (mactoolbox.o): New target.
11468
11469 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11470 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11471
11472 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11473 Use mac_set_frame_window_background instead of XSetWindowBackground.
11474 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11475 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11476 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11477 instead of SetWindowTitleWithCFString.
11478 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11479 Move function to mactoolbox.c.
11480 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11481 Use mac_set_window_modified instead of SetWindowModified.
11482 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11483 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11484 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11485 FrontNonFloatingWindow. Use mac_activate_window instead of
11486 ActivateWindow. Use mac_active_non_floating_window instead of
11487 ActiveNonFloatingWindow.
11488 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11489 Use mac_show_hourglass and mac_hide_hourglass.
11490 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11491 instead of GetGlobalMouse.
11492 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11493 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11494 Use mac_bring_window_to_front instead of BringToFront.
11495 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11496 mactoolbox.c.
11497 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11498 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11499 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11500 mactoolbox.c.
11501
11502 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11503 (XtPointer): Move typedef from macmenu.c.
11504 (enum button_type): Move enum from macmenu.c.
11505 (widget_value): Move typedef from macmenu.c.
11506 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11507 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11508 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11509 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11510 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11511 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11512 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11513 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11514 (Selection): Move typedef from macselect.c.
11515 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11516 macterm.c.
11517 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11518 (mac_is_window_collapsed, mac_bring_window_to_front)
11519 (mac_send_window_behind, mac_hide_window, mac_show_window)
11520 (mac_collapse_window, mac_front_non_floating_window)
11521 (mac_active_non_floating_window, mac_activate_window)
11522 (mac_move_window_structure, mac_move_window, mac_size_window)
11523 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11524
11525 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11526 (enum mac_menu_kind): Move enum to mactoolbox.c.
11527 (min_menu_id): Move variable to mactoolbox.c.
11528 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11529 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11530 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11531 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11532 [TARGET_API_MAC_CARBON]: Likewise.
11533 (XtPointer): Move typedef to macgui.h.
11534 (enum button_type): Move enum to macgui.h.
11535 (widget_value): Move typedef to macgui.h.
11536 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11537 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11538 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11539 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11540 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11541 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11542 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11543 (popup_activated_flag): Make variable non-static.
11544 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11545 (add_menu_item, fill_menu, dispose_menus):
11546 Move functions to mactoolbox.c.
11547 (restore_show_help_function, menu_target_item_handler)
11548 (install_menu_target_item_handler, mac_handle_dialog_event)
11549 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11550 [TARGET_API_MAC_CARBON]: Likewise.
11551 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11552 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11553 (find_and_call_menu_selection, name_is_separator): Make function
11554 non-static.
11555 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11556 to mactoolbox.c.
11557 (set_frame_menubar): Don't call install_menu_quit_handler.
11558 (menu_item_selection): New variable.
11559 (mac_menu_show): Use create_and_show_popup_menu.
11560 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11561 selection but set variable menu_item_selection. All uses changed.
11562 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11563 Call install_menu_quit_handler. Move to mactoolbox.c.
11564
11565 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11566 (Selection): Move typedef to macgui.h.
11567 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11568 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11569 Make variables non-static.
11570 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11571 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11572 Make functions non-static.
11573 (Vmac_service_selection) [MAC_OSX]: Likewise.
11574 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11575 (mac_valid_selection_target_p, mac_clear_selection)
11576 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11577 (mac_put_selection_value, mac_selection_has_target_p)
11578 (mac_get_selection_value, mac_get_selection_target_list)
11579 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11580 Move functions to mactoolbox.c.
11581 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11582 Likewise.
11583 (copy_scrap_flavor_data, mac_handle_service_event)
11584 (install_service_handler) [MAC_OSX]: Likewise.
11585 (syms_of_macselect) <Vmac_dnd_known_types>:
11586 Use mac_dnd_default_known_types.
11587
11588 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11589 Move to mactoolbox.c.
11590 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11591 (Fx_selection_owner_p): Add EXFUN.
11592 (install_window_handler, remove_window_handler, XSetWindowBackground):
11593 Remove externs.
11594 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11595 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11596 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11597 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11598 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11599 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11600 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11601 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11602 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11603 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11604 (mac_valid_selection_target_p, mac_clear_selection)
11605 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11606 (mac_put_selection_value, mac_selection_has_target_p)
11607 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11608 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11609 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11610 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11611 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11612 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11613 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11614 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11615 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11616
11617 * mactoolbox.c: New file.
11618
116192008-04-18 Jason Rumney <jasonr@gnu.org>
11620
11621 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11622
116232008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11624
11625 * character.c (Fmultibyte_char_to_unibyte):
11626 Return latin1 chars unchanged.
11627
11628 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11629 relocated if it points to `name'.
11630
116312008-04-17 Kenichi Handa <handa@m17n.org>
11632
11633 * data.c (Faset): Allow setting a multibyte character in an
11634 ASCII-only unibyte string.
11635
11636 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11637
116382008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11639
11640 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11641 done in config.h.
11642
116432008-04-16 Juanma Barranquero <lekktu@gmail.com>
11644
11645 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11646 (Fchar_direction): Add usage in the docstring.
11647
116482008-04-15 Chong Yidong <cyd@stupidchicken.com>
11649
11650 * keyboard.c (read_key_sequence): Remove always-true checks.
11651
116522008-04-14 Jason Rumney <jasonr@gnu.org>
11653
11654 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11655 compatibility struct, for better underline positioning.
11656
116572008-04-13 David Hansen <david.hansen@gmx.net>
11658
11659 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11660 string.
11661
116622008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11663
11664 * m/hp800.h (XUINT, XSET): Remove.
11665
116662008-04-12 Juanma Barranquero <lekktu@gmail.com>
11667
11668 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11669 previous change.
11670
116712008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11674 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11675
116762008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11677
11678 * keymap.h (map_keymap_canonical): Declare.
11679 * xmenu.c (single_keymap_panes): Use it.
11680
116812008-04-11 Glenn Morris <rgm@gnu.org>
11682
11683 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11684 set the target's value to that of the alias.
11685
116862008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11687
11688 * term.c (set_tty_color_mode): Left over typo.
11689
116902008-04-10 Michael Albinus <michael.albinus@gmx.de>
11691
11692 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11693 only after check for file name handler functions. Signal, when
11694 native functionality is not supported.
11695 (syms_of_fileio): Declare it unconditionally.
11696
116972008-04-10 Jason Rumney <jasonr@gnu.org>
11698
11699 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11700 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11701
11702 * w32.c (logon_network_drive): Also logon to remote drives that
11703 are mapped to drive letters.
11704
117052008-04-10 Glenn Morris <rgm@gnu.org>
11706
11707 * xdisp.c (truncate-partial-width-windows): Doc fix.
11708
117092008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11710
11711 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11712 Move functions to minibuffer.el.
11713 (syms_of_fileio): Don't declare them.
11714
117152008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11716
11717 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11718 (syms_of_minibuf): Remove its initialization.
11719
11720 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11721
117222008-04-09 Juanma Barranquero <lekktu@gmail.com>
11723
11724 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11725
117262008-04-09 Jason Rumney <jasonr@gnu.org>
11727
11728 * makefile.w32-in (distclean): Delete makefile too.
11729 (maintainer-clean): New target.
11730
11731 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11732
11733 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11734 for new font backend and composite cases.
11735
117362008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11737
11738 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11739 Most of the code moved to run_timers.
11740 (do_pending_atimers): Call run_timers.
11741 (run_timers): New function.
11742
11743 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11744 run atimers.
11745
11746 * process.c (wait_reading_process_output): The same as above.
11747
117482008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11749
11750 * minibuf.c (last_exact_completion): Remove variable.
11751 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11752 (complete_and_exit_1, complete_and_exit_2)
11753 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11754 (Fdisplay_completion_list, display_completion_list_1)
11755 (Fminibuffer_completion_help, Fself_insert_and_exit)
11756 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11757 minibuffer.el.
11758 (syms_of_minibuf): Remove corresponding initializations.
11759
11760 * keyboard.c (Qdeactivate_mark): New var.
11761 (command_loop_1): Use it to call `deactivate-mark'.
11762 (syms_of_keyboard): Initialize it.
11763
11764 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11765 to another frame.
11766 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11767 Don't call set_tty_color_mode.
11768 (store_frame_param): Reset previous_frame rather than call
11769 set_tty_color_mode.
11770 * term.c (set_tty_color_mode): Rewrite.
11771 * dispextern.h (set_tty_color_mode): New type.
11772 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11773
117742008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11775
11776 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11777 for generic chars, which do not exist any more in emacs-unicode.
11778
117792008-04-08 Michael Albinus <michael.albinus@gmx.de>
11780
11781 * coding.c (detect_coding_emacs_mule)
11782 (Ffind_operation_coding_system): Fix typo.
11783
117842008-04-08 Jason Rumney <jasonr@gnu.org>
11785
11786 * w32uniscribe.c (SNAME): Extract only symbol name.
11787
11788 * w32font.h (struct w32_metric_cache): New struct.
11789 (w32font_info): Use it.
11790 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11791 (CACHE_BLOCKSIZE): New constants.
11792
11793 * w32font.c (Qja, Qko, Qzh): New symbols.
11794 (syms_of_w32font): Initialise them.
11795 (font_matches_spec): Use them to filter by language.
11796 (recompute_cached_metrics): Remove function.
11797 (compute_metrics, clear_cached_metrics): New functions.
11798 (w32font_encode_char): Use them to manage metric cache.
11799 (w32font_text_extents): Cache metrics for all glyphs on demand.
11800 Delay converting glyph indices to WORD until needed.
11801 (w32font_open_internal): Initialize metric cache to empty.
11802 (registry_to_w32_charset): Charset should always be a symbol.
11803 (fill_in_logfont, list_all_matching_fonts): Family should
11804 always be a symbol.
11805
118062008-04-06 Jason Rumney <jasonr@gnu.org>
11807
11808 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11809 Give up if glyph indices not supported. Use uniscribe obtained
11810 ABC widths for individual metrics. Map glyph clusters back to
11811 characters using fClusterStart flag. Return number of glyphs
11812 produced, not chars processed.
11813 (uniscribe_shape): Map char at FROM to current glyph.
11814
118152008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11816
11817 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11818 Use SetMenuItemHierarchicalMenu.
11819
118202008-04-05 Jason Rumney <jasonr@gnu.org>
11821
11822 * image.c (pbm_load): Allow color values up to 65535.
11823 Throw an error if max_color_idx is outside the supported range.
11824 Report an error when image size is invalid.
11825 Read two bytes at a time when raw images have max_color_idx above 255.
11826
118272008-04-05 Eli Zaretskii <eliz@gnu.org>
11828
11829 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11830 cFileName a file name that includes `?' characters, use the 8+3
11831 alias in cAlternateFileName instead.
11832
118332008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11834
11835 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11836 append "CCL: Quitted" when the CCL program is quitted.
11837 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11838
11839 * ccl.h (struct ccl_program): New member quit_silently.
11840
118412008-04-05 Chong Yidong <cyd@stupidchicken.com>
11842
11843 * search.c (compile_pattern_1): Treat non-nil and non-string of
11844 search-spaces-regexp as nil.
11845
11846 * minibuf.c (Fassoc_string): Tweak docstring.
11847
118482008-04-05 Eli Zaretskii <eliz@gnu.org>
11849
11850 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11851 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11852 2008-03-14 to force inode be positive.
11853
11854 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11855 _S_* ones, since we now use our own sys/stat.h.
11856 (stat, fstat): Don't mangle the inode number.
11857 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11858
118592008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11860
11861 * frame.h (struct frame): Give one more bit to `visible' since we use
11862 values larger than 1 to indicate obscured frames on ttys.
11863
11864 * keymap.c (Qkeymap_canonicalize): New var.
11865 (Fmap_keymap_internal): New fun.
11866 (describe_map): Use keymap-canonicalize.
11867
11868 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11869 (Fundo_boundary): Set them.
11870 (syms_of_undo): Initialize them.
11871 (record_point): Use them instead of last_point_position*.
11872 (last_undo_buffer): Change type.
11873
118742008-04-04 Jason Rumney <jasonr@gnu.org>
11875
11876 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11877 (recompute_cached_metrics): Don't set ascent and descent per char.
11878
11879 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11880 (uniscribe_check_otf): Add GC protection before consing.
11881 Rearrange loop for counting features.
11882
118832008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11884
11885 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11886 buffer with byte-size of source buffer.
11887
118882008-04-03 Chong Yidong <cyd@stupidchicken.com>
11889
11890 * callint.c (Fcall_interactively): Handle temporary region even
11891 when shift-select-mode is off.
11892
118932008-04-03 Jason Rumney <jasonr@gnu.org>
11894
11895 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11896
118972008-04-03 Kenichi Handa <handa@m17n.org>
11898
11899 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11900 (CATEGORY_MASK_UTF_16): Likewise.
11901 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11902 binary file.
11903 (detect_coding): Add null-byte detection for a binary file.
11904 (detect_coding_system): Likewise.
11905
119062008-04-03 Jason Rumney <jasonr@gnu.org>
11907
11908 * w32uniscribe.c: New file.
11909
11910 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11911
11912 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11913
11914 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11915 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11916 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11917 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11918 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11919 (Qphonetic): New symbols.
11920 (syms_of_w32font): Initialize them.
11921 (font_supported_scripts): Use them.
11922 (w32font_list_family): List all charsets.
11923 (w32font_text_extents, recompute_cached_metrics): Fix metric
11924 calculations.
11925 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11926 Give opentype fonts their own format.
11927 (font_matches_spec): New arguments backend and logfont.
11928 Handle :otf spec for uniscribe backend.
11929 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11930 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11931
11932 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11933 font backend.
11934 (globals_of_w32fns): Initialize uniscribe font backend.
11935
11936 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11937 dependencies.
11938 (w32uniscribe.$(O)): New file to build.
11939 (FONT_OBJ): Include w32uniscribe.$(O).
11940 (LIBS): Add uniscribe libraries.
11941
11942 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11943
119442008-04-02 Chong Yidong <cyd@stupidchicken.com>
11945
11946 * callint.c (Vshift_select_mode): New var.
11947 (Finteractive): Document new ^ spec.
11948 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11949 is present.
11950
11951 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11952 (command_loop_1): Avoid running the direct display versions of
11953 forward-char and backward-char if shift-selection may occur.
11954 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11955 shift-translation takes place.
11956
11957 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11958 avoid clobbering by define-minor-mode.
11959
11960 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11961 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11962
11963 * syntax.c (Fforward_word): Add ^ interactive spec.
11964
11965 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11966 (Fscroll_right): Add ^ interactive spec.
11967
119682008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11969
11970 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11971
11972 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11973
11974 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11975
119762008-03-31 Juri Linkov <juri@jurta.org>
11977
11978 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11979
119802008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11981
11982 * gtkutil.c (xg_set_geometry): Fix indentation.
11983 (xg_resize_outer_widget): Remove.
11984 (x_wm_size_hint_off): Fix indentation.
11985 (xg_frame_set_char_size): Call flush_and_sync after
11986 gtk_window_resize.
11987 (x_wm_set_size_hint): Pass NULL as geometry window to
11988 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11989 Add menu bar and tool bar height to base height.
11990 (xg_update_frame_menubar, free_frame_menubar)
11991 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11992 (update_frame_tool_bar, free_frame_tool_bar):
11993 Change xg_resize_outer_widget to xg_frame_set_char_size.
11994
119952008-03-30 Michael Albinus <michael.albinus@gmx.de>
11996
11997 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11998 (Fdbus_call_method): New parameter TIMEOUT.
11999 (dbus-send-signal): Optimize UNGCPRO call.
12000
120012008-03-29 Juri Linkov <juri@jurta.org>
12002
12003 * window.c (Fdisplay_buffer): Move call to
12004 Vsplit_window_preferred_function out of conditions that check
12005 if window is eligible for vertical splitting.
12006 When Vsplit_window_preferred_function is non-nil, call it and use
12007 its non-nil return value as window. Otherwise, continue doing
12008 vertical splitting using Fsplit_window with arg horflag=nil.
12009 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12010 default value from `split-window' to nil.
12011
120122008-03-29 Juri Linkov <juri@jurta.org>
12013
12014 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12015 for interactive code letters 'b' and 'B'.
12016
120172008-03-29 Eli Zaretskii <eliz@gnu.org>
12018
12019 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12020 multibyte string.
12021
120222008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12023
12024 * keyboard.c (pending_funcalls): New var.
12025 (timer_check): Run it.
12026 (syms_of_keyboard): Initialize it.
12027 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12028 (Vdelete_terminal_functions): New vars.
12029 (syms_of_terminal): Initialize them.
12030 (Fdelete_terminal): Run delete-terminal-functions.
12031 * xdisp.c (safe_eval): Rewrite.
12032 (safe_call2): New fun.
12033 * frame.c (Qdelete_frame_functions): New var.
12034 (syms_of_frame): Initialize it.
12035 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12036 * lisp.h (safe_call2, pending_funcalls): Declare.
12037
120382008-03-28 Andreas Schwab <schwab@suse.de>
12039
12040 * indent.c (Fmove_to_column): Move declaration before statements.
12041
120422008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12043
12044 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12045 (struct frame): Use bit fields for boolean vars.
12046
12047 * process.c (server_accept_connection): Simplify naming.
12048 (emacs_get_tty_pgrp): Use SDATA.
12049
12050 * coding.c (decode_coding_object): Fix last change.
12051
120522008-03-27 Jason Rumney <jasonr@gnu.org>
12053
12054 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12055
120562008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12057
12058 * charset.c (Fdefine_charset_internal): Change the way of
12059 registering charsets in Vcharset_order_list.
12060 (syms_of_charset): Make the charset `eight-bit' supplementary.
12061
120622008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12063
12064 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12065 operations, to avoid having the difference between pointers
12066 overflow.
12067
120682008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * indent.c (check_display_width): New fun.
12071 (scan_for_column): Use it.
12072
12073 * data.c (syms_of_data): Mark most-positive-fixnum and
12074 most-negative-fixnum as constants.
12075
12076 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12077
12078 * indent.c (scan_for_column): Extract from current_column_1.
12079 Merge with the same code from Fmove_to_column.
12080 (current_column_1, Fmove_to_column): Use it.
12081
120822008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12083
12084 * keymap.c (map_keymap_internal): New fun.
12085 (map_keymap): Use it.
12086 (Fmap_keymap_internal): New fun.
12087 (Fmap_keymap): Remove left-out test from before make_save_value.
12088
12089 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12090
12091 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12092 Use XCAR/XCDR.
12093
12094 * process.h (struct Lisp_Process): Remove filter_multibyte.
12095 * process.c (QCfilter_multibyte): Remove.
12096 (setup_process_coding_systems): Don't use filter_multibyte.
12097 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12098 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12099 (Fset_process_filter_multibyte): Change the coding-system to
12100 approximate the previous behavior.
12101 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12102 coding-system.
12103
12104 * coding.c (decode_coding_object): When not decoding into a buffer,
12105 obey the coding system's preference of (uni|multi)byte.
12106
121072008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12108
12109 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12110 every char is changed and has a different byte-length.
12111 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12112 Fix int -> EMACS_INT.
12113
121142008-03-23 David Hansen <david.hansen@gmx.net>
12115
12116 * dbusbind.c (xd_read_message): Remove extra copying of message
12117 strings. Check for NULL `interface' or `member'.
12118
121192008-03-22 Eli Zaretskii <eliz@gnu.org>
12120
12121 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12122 cFileName a file name that includes `?' characters, use the 8+3
12123 alias in cAlternateFileName instead.
12124
121252008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12126
12127 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12128
121292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12130
12131 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12132 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12133 work on current_buffer only instead (that was already the case
12134 for some of the code anyway).
12135 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12136 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12137 (SET_PT, SET_PT_BOTH): Adjust.
12138 * intervals.h (set_point, temp_set_point, set_point_both)
12139 (temp_set_point_both): Remove redundant declarations.
12140
121412008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12142
12143 * fileio.c (Finsert_file_contents):
12144 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12145 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12146 when buffer != current_buffer anyway.
12147
121482008-03-20 Andreas Schwab <schwab@suse.de>
12149
12150 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12151 as default.
12152
121532008-03-19 Jason Rumney <jasonr@gnu.org>
12154
12155 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12156 (syms_of_w32fns): Initialize them.
12157 (HOURGLASS_ID): New constant.
12158 (x_window_to_frame): Don't check hourglass_window.
12159 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12160 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12161 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12162 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12163 Only change the cursor if hourglass is not active.
12164 (Fx_create_frame): Initialize frame's current_cursor.
12165 (hourglass_atimer): Remove.
12166 (hourglass_started): New function.
12167 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12168 (show_hourglass): Adapt to w32, changing argument to frame.
12169
12170 * w32term.h (struct w32_output): Remove hourglass_window.
12171 Add current_cursor.
12172
12173 * eval.c (call_debugger, Fsignal):
12174 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12175 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12176 (Fexecute_extended_command, cancel_hourglass_unwind):
12177 * minibuf.c (read_minibuf):
12178 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12179
121802008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12181
12182 * window.c (run_funs): New fun.
12183 (run_window_configuration_change_hook): Use it to run the buffer-local
12184 and the global part of the hook.
12185
12186 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12187 (unwind_format_mode_line): Restore selected window.
12188 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12189
121902008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12191
12192 * editfns.c (Fchar_equal): Check they are valid characters.
12193
12194 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12195
121962008-03-17 Andreas Schwab <schwab@suse.de>
12197
12198 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12199 against a charset.
12200
12201 * lisp.h (Fbuffer_list): Declare.
12202
122032008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12204
aac0c6e3
MR
12205 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12206 handlebox_widget is != 0.
12207
122082008-03-16 Juri Linkov <juri@jurta.org>
12209
12210 * callint.c (Fcall_interactively): For interactive code letters
12211 'b' and 'B' put the buffer list into the list of default "future"
12212 values of the minibuffer.
12213
122142008-03-16 Andreas Schwab <schwab@suse.de>
12215
12216 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12217 modifiers.
12218
12219 * regex.c (re_match_2_internal): Correct matching of a charset
12220 against latin-1 characters.
12221
122222008-03-16 Kenichi Handa <handa@m17n.org>
12223
12224 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12225 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12226 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12227 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12228 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12229 CHAR_STRING_ADVANCE.
12230 (produce_chars): Fix for the case that the source and the
12231 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12232 instead of CHAR_STRING_ADVANCE.
12233 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12234 STRING_CHAR_ADVANCE.
12235
122362008-03-15 Andreas Schwab <schwab@suse.de>
12237
12238 * regex.c (re_match_2_internal): Correct matching of eight bit
12239 characters in unibyte strings.
12240
122412008-03-15 Martin Rudalics <rudalics@gmx.at>
12242
12243 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12244 at end of range when it coincides with the end of the buffer.
12245
122462008-03-14 Eli Zaretskii <eliz@gnu.org>
12247
12248 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12249
12250 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12251
122522008-03-14 Jason Rumney <jasonr@gnu.org>
12253
12254 * editfns.c (initial_tz): New variable.
12255 (syms_of_editfns): Initialize it.
12256 (Fset_time_zone_rule): Set it when first called.
12257 Use it when TZSTRING is nil.
12258
12259 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12260 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12261 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12262 (globals_of_w32fns): Initialize them.
12263 (compute_tip_xy): Use them to position tooltips.
12264
122652008-03-14 Glenn Morris <rgm@gnu.org>
12266
12267 * emacs.c (main): Revert previous change.
12268 (standard_args): Revert -internal-script back to -scriptload,
12269 and remove the long-option form.
12270
122712008-03-13 Glenn Morris <rgm@gnu.org>
12272
12273 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12274 Remove option -enable-font-backend.
12275
122762008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12277
12278 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12279
122802008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12281
12282 * xterm.c (x_connection_closed): For GTK: If this is the last
12283 terminal just exit without closing the display.
12284
122852008-03-11 Jason Rumney <jasonr@gnu.org>
12286
12287 * w32font.c (w32font_full_name): Use floor to round.
12288
f0131492 122892008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12290
12291 * sound.c (alsa_configure): Declare vol at beginning of block.
12292
12293 * fontset.c (Ffontset_info): Remove extra semicolon.
12294
122952008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12296
12297 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12298 size of resulting string.
12299
123002008-03-10 Jason Rumney <jasonr@gnu.org>
12301
12302 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12303
123042008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12305
12306 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12307 Don't pretend as if characters with display property haven't been
12308 consumed for string-replacing-string case.
12309
123102008-03-08 Kim F. Storm <storm@cua.dk>
12311
12312 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12313 (get_next_display_element, next_element_from_string)
12314 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12315
123162008-03-08 Andreas Schwab <schwab@suse.de>
12317
12318 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12319
123202008-03-06 Jason Rumney <jasonr@gnu.org>
12321
12322 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12323 when charset not specified. Only translate ANSI to unicode when
12324 font_type is truetype.
12325 (w32font_coverage_ok): New function.
12326 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12327
123282008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12329
12330 * lread.c (Fread_char): Resolve modifiers.
12331 (Fread_char_exclusive): Likewise.
12332
12333 * character.c (char_resolve_modifier_mask): New function.
12334 (char_string): Use char_resolve_modifier_mask.
12335 (Fchar_resolve_modifiers): New function.
12336 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12337 function.
12338
123392008-03-04 Jason Rumney <jasonr@gnu.org>
12340
12341 * makefile.w32-in: Always include w32font.c in the build.
12342 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12343
123442008-03-04 Andreas Schwab <schwab@suse.de>
12345
12346 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12347 (versionclean): Likewise.
12348
123492008-03-04 Juanma Barranquero <lekktu@gmail.com>
12350
12351 * .cvsignore: Add oo.
12352
123532008-03-03 Andreas Schwab <schwab@suse.de>
12354
12355 * coding.c (decode_coding_object): Inhibit gap shrinking while
12356 decoding in place.
12357
123582008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12359
12360 * w32term.c: Remove unused include "gnu.h".
12361 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12362
12363 * gnu.h: Rename to ...
12364 * emacs-icon.h: ... this.
12365 * xterm.c: Use emacs-icon.h instead of gnu.h.
12366 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12367
123682008-03-03 Juanma Barranquero <lekktu@gmail.com>
12369
12370 * w32font.c: Include math.h.
12371
123722008-03-03 Jason Rumney <jasonr@gnu.org>
12373
12374 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12375 Compute options separately.
12376 (w32font_open_internal): Set glyph_idx before caching metrics.
12377
12378 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12379 Define if system headers don't.
12380 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12381 (w32font_encode_char): Don't declare here.
12382
12383 * w32font.c (Quniscribe, QCformat): New symbols.
12384 (syms_of_w32font): Define them.
12385 (w32font_has_char): Indicate uncertainty.
12386 (w32font_encode_char): Encode as glyph point. Make static.
12387 (recompute_cached_metrics): New function.
12388 (w32font_open_internal): Use it. Set font to use glyph points
12389 initially. Set format based on type of font.
12390 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12391 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12392 on it. Set format based on information available here.
12393 (add_font_entity_to_list): Identify backend based on opentype_only.
12394
123952008-03-02 Andreas Schwab <schwab@suse.de>
12396
12397 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12398
12399 * coding.c (decode_coding_big5, produce_chars):
12400 Fix typos in last change.
12401
124022008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12403
12404 * gnu.h: New icon.
12405
124062008-03-02 Kenichi Handa <handa@m17n.org>
12407
12408 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12409 `dos', don't decode '\r' if that is the last in the source.
12410 (decode_coding_utf_16, decode_coding_emacs_mule)
12411 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12412 (decode_coding_raw_text, decode_coding_charset): Likewise.
12413 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12414
124152008-03-01 Jason Rumney <jasonr@gnu.org>
12416
12417 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12418
124192008-03-01 Kim F. Storm <storm@cua.dk>
12420
12421 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12422
124232008-03-01 Jason Rumney <jasonr@gnu.org>
12424
12425 * w32font.c (w32font_full_name): New function.
12426 (w32font_open_internal): Use it.
12427
124282008-03-01 Kim F. Storm <storm@cua.dk>
12429
12430 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12431
124322008-03-01 Jason Rumney <jasonr@gnu.org>
12433
12434 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12435
124362008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12437
12438 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12439 xg_frame_resized when the event is for the edit widget.
12440
12441 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12442
12443 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12444 set_char_size.
12445 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12446 operations on widgets here. Just set frame size if needed.
12447 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12448 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12449 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12450 the whole frame.
12451 (xg_create_tool_bar): Move attachment of the tool bar to
12452 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12453 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12454
124552008-03-01 Jason Rumney <jasonr@gnu.org>
12456
12457 * w32fns.c (w32_msg_pump): Disable debug code.
12458
124592008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12460
12461 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12462
124632008-02-29 Chong Yidong <cyd@stupidchicken.com>
12464
12465 * xdisp.c (next_overlay_string): Don't set
12466 overlay_strings_at_end_processed_p if we're currently reading from
12467 a display string.
12468
124692008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12470
12471 * xdisp.c (get_overlay_strings_1): Fix typo.
12472
124732008-02-29 Chong Yidong <cyd@stupidchicken.com>
12474
12475 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12476
124772008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12478
12479 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12480
12481 * xdisp.c (display_mode_element): Cancel the previous change.
12482 (decode_mode_spec): Likewise.
12483 (handle_auto_composed_prop): Don't make composition if it->string
12484 is a string.
12485
124862008-02-27 Kim F. Storm <storm@cua.dk>
12487
12488 * lisp.h (GLYPH): Change type from int to struct with separate char
12489 and face_id members.
12490 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12491 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12492 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12493 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12494 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12495 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12496 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12497 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12498 handle new Lisp glyph code encoding, either an integer or a cons.
12499
12500 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12501 (GLYPH_ALIAS): Delete.
12502 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12503 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12504 (GLYPH_FROM_CHAR): Replace macro by ...
12505 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12506
12507 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12508 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12509 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12510 (GLYPH_INVALID_P): New macro.
12511 (spec_glyph_lookup_face): Update prototype.
12512
12513 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12514 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12515 new glyph code encoding.
12516 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12517 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12518
12519 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12520 Adapt to new glyph type and new glyph code encoding.
12521
12522 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12523
12524 * indent.c (current_column, current_column_1, Fmove_to_column)
12525 (compute_motion): Adapt to new glyph code encoding.
12526
12527 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12528
125292008-02-27 Chong Yidong <cyd@stupidchicken.com>
12530
12531 * process.c (wait_reading_process_output): Check for window
12532 changes caused by timers.
12533 Suggested by Johan Bockgård.
12534
125352008-02-27 Glenn Morris <rgm@gnu.org>
12536
12537 * emacs.c (USAGE1): Add `--disable-font-backend'.
12538
125392008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12540
12541 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12542 is made to the buffer.
12543
125442008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12545
12546 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12547 (face_at_string_position):
12548 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12549 (face_at_string_position):
12550 * xdisp.c (display_string, next_overlay_change):
12551 * buffer.h (overlays_at):
12552 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12553 Update callers.
12554
125552008-02-26 Chong Yidong <cyd@stupidchicken.com>
12556
12557 * editfns.c (Fformat): Doc fix.
12558
125592008-02-26 Juanma Barranquero <lekktu@gmail.com>
12560
12561 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12562 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12563 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12564
125652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12566
12567 * buffer.c (Fbuffer_swap_text): New function.
12568 (syms_of_buffer): Defsubr it.
12569
125702008-02-25 Chong Yidong <cyd@stupidchicken.com>
12571
12572 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12573
125742008-02-25 Jason Rumney <jasonr@gnu.org>
12575
12576 * w32font.c (w32font_draw): Draw one character at a time when padding.
12577
125782008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12579
12580 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12581 Handle a nil arg. Use run_window_configuration_change_hook.
12582 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12583 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12584 Use run_window_configuration_change_hook.
12585
125862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12587
12588 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12589 1-pixel width.
12590
125912008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12592
12593 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12594 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12595 if the glyph in the font is zero pixel with.
12596
12597 * dispextern.h (struct glyph_string): New member padding_p.
12598
12599 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12600
12601 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12602
12603 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12604
12605 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12606
12607 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12608
126092008-02-25 Jason Rumney <jasonr@gnu.org>
12610
12611 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12612
126132008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12614
12615 Allow fine-grained image-cache flushing.
12616 * dispextern.h (struct image): Add `dependencies' field.
12617 (clear_image_caches): Change arg to Lisp_Object.
12618 * image.c (make_image): Initialize `dependencies' field.
12619 (clear_image_cache): Change arg to allow fine-grained flushing.
12620 Perform the flush even if image-cache-eviction-delay is nil.
12621 (clear_image_caches): Change arg to Lisp_Object.
12622 (Fclear_image_cache): Expand meaning of the argument.
12623 (mark_image): Mark `dependencies' field.
12624 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12625 (lface_hash): Use XHASH rather than XFASTINT.
12626 (face_at_buffer_position): Fix int -> EMACS_INT position.
12627 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12628 (select_frame_for_redisplay): Remove code duplication.
12629 (redisplay_internal): Adapt arg to call to clear_image_caches.
12630
126312008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12632
12633 * s/vms4-0.h:
12634 * s/vms4-2.h:
12635 * s/vms4-4.h:
12636 * s/vms5-5.h: Remove, unused.
12637
12638 * s/irix5-2.h:
12639 * s/irix6-0.h:
12640 * s/riscos5.h:
12641 * s/mach-bsd4-3.h:
12642 * m/mips4.h: Remove files for obsolete systems.
12643
12644 * Makefile.in:
12645 * filelock.c:
12646 * unexmips.c:
12647 * m/hp9000s300.h:
12648 * m/iris4d.h:
12649 * s/aix3-1.h:
12650 * s/hpux.h:
12651 * s/msdos.h:
12652 * s/usg5-0.h:
12653 * s/usg5-2-2.h:
12654 * s/usg5-2.h:
12655 * s/usg5-3.h: Remove references to obsolete variables.
12656
12657 * s/irix5-0.h: Remove, move all the contents ...
12658 * s/irix6-5.h: ... here. Simplify.
12659 * config.in: Regenerate.
12660
126612008-02-24 Jason Rumney <jasonr@gnu.org>
12662
12663 * w32term.c (x_draw_glyph_string_background): Clear the background
12664 manually when cleartype is in use.
12665 (x_draw_glyph_string_foreground): Draw text transparently when
12666 cleartype is in use.
12667
12668 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12669 a font into it unless we have to.
12670
126712008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12672
12673 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12674 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12675
aac0c6e3
MR
126762008-02-18 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32fns.c (Fw32_shell_execute): Encode parameters.
12679
126802008-02-09 Eli Zaretskii <eliz@gnu.org>
12681
12682 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12683
126842008-02-05 Juanma Barranquero <lekktu@gmail.com>
12685
12686 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12687
126882008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12689
12690 * xterm.c (x_set_offset): Don't change the gravity if
12691 CHANGE_GRAVITY is -1.
12692
126932008-02-23 Chong Yidong <cyd@stupidchicken.com>
12694
12695 * fileio.c (auto_save_error_occurred): New var.
12696 (auto_save_error): Set it.
12697 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12698 error occurred.
12699
127002008-02-23 Eli Zaretskii <eliz@gnu.org>
12701
12702 * w32.c (globals_of_w32): Add initializations for
12703 g_b_init_get_sid_sub_authority and
12704 g_b_init_get_sid_sub_authority_count.
12705
127062008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12707
12708 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12709 (font_parse_xlfd): Use them for sanity check.
12710 (Finternal_set_font_style_table): Make sure the table is bijective.
12711
12712 Consolidate the image_cache to the terminal struct.
12713 * termhooks.h (P_): Remove redundant def.
12714 (struct terminal): New field `image_cache'.
12715 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12716 of FRAME_X_IMAGE_CACHE.
12717 * xterm.h (struct x_display_info): Remove image_cache field.
12718 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12719 * w32term.h (struct w32_display_info): Remove image_cache field.
12720 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12721 * macterm.h (struct mac_display_info): Remove image_cache field.
12722 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12723 * xterm.c (x_term_init):
12724 * w32term.c (w32_term_init):
12725 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12726 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12727 Remove declarations.
12728 (clear_image_caches, mark_image_cache): New declarations.
12729 * xfaces.c (clear_face_cache):
12730 * xdisp.c (redisplay_internal): Use clear_image_caches.
12731 * image.c (clear_image_cache): Don't check that a frame is on
12732 a window-system before checking if it shares the same cache.
12733 (clear_image_caches): New function.
12734 (Fclear_image_cache): Use it.
12735 (mark_image): Move from allo.c.
12736 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12737 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12738 (mark_object): Don't call mark_image_cache for frames.
12739 (mark_terminals): Call mark_image_cache.
12740
12741 * lisp.h (Fdelete_terminal): Declare.
12742
12743 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12744 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12745 wrong_type_argument.
12746
127472008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12748
12749 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12750 malayalam.el, and tamil.el. Add sinhala.el.
12751
127522008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * xterm.c (x_connection_closed): Consolidate identical tests.
12755 (x_delete_terminal): Don't crash if called via x_connection_closed.
12756
127572008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12758
12759 * xdisp.c (decode_mode_spec): New arg string.
12760 (display_mode_element): Adjust for the above change.
12761
127622008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12763
12764 * callint.c (Fcall_interactively): Use AREF.
12765
127662008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12767
12768 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12769
127702008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12771
12772 * xfns.c (Fx_show_tip): Set string to " " if empty.
12773
127742008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12775
12776 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12777 with Qt.
12778
127792008-02-17 Kenichi Handa <handa@m17n.org>
12780
12781 * ftfont.c (ftfont_shape): Return Lispy number.
12782
12783 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12784 for GCs.
12785 (Finternal_set_font_selection_order): Call font_update_sort_order
12786 only when enable_font_backend is set.
12787 (realize_x_face): Set face->font_info to that of default face only
12788 when enable_font_backend is set.
12789
12790 * xdisp.c (handle_composition_prop): Set it->c to the fist
12791 character of the composed region.
12792 (fill_composite_glyph_string): Set base_face->font_info to
12793 s->font_info. Get a face for ascii from base_face->ascii_face.
12794 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12795 with a face already decided.
12796 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12797 non-negative.
12798 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12799 call font_prepare_composition unconditionally.
12800
12801 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12802
12803 * xterm.h (struct x_display_info): New member font.
12804
12805 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12806 (x_set_mouse_face_gc, x_new_font): Likewise.
12807 (x_term_init): Setup display_info->font.
12808 (x_delete_terminal): Free display_info->font.
12809
12810 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12811
12812 * ftxfont.c (ftxfont_default_fid): Delete it.
12813 (ftxfont_open): Set xfont->fid to 0.
12814 (ftxfont_end_for_frame): Clear data specific to the frame and the
12815 font-driver.
12816
12817 * xftfont.c (xftfont_default_fid): Delete it.
12818 (xftfont_open): Set xfont->fid to 0.
12819
12820 * fontset.c (FONTSET_OBJLIST): New macro.
12821 (fontset_find_font): Update font-object list of the fontset.
12822 (free_realized_fontset): New function.
12823 (free_face_fontset): Call free_realized_fontset.
12824 (Ffont_info): Call font_close_object only when enable_font_backend
12825 is set.
12826
12827 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12828 [HAVE_NTGUI]: Include w32term.h.
12829 [MAC_OS]: Include macterm.ch.
12830 (font_otf_ValueRecord): Use make_number.
12831 (font_finish_cache): Fix handling of reference count.
12832 (font_clear_cache): Update num_fonts.
12833 (font_open_entity): Update smallest_char_width and
12834 smallest_font_height of the frame.
12835 (font_close_object): Update num_fonts.
12836 (Fclear_font_cache): Fix finding the target cache data.
12837
128382008-02-16 Glenn Morris <rgm@gnu.org>
12839
12840 * fontset.c (Finternal_char_font): Fix compilation warning.
12841
128422008-02-16 Eli Zaretskii <eliz@gnu.org>
12843
12844 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12845 instead of char arrays. Enlarge the size of array passed to
12846 get_token_information.
12847
12848 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12849 warnings.
12850
128512008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12852
12853 * .gdbinit: Don't set `args', it breaks gdb --args.
12854
128552008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12856
12857 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12858 within a narrowed buffer.
12859
128602008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12861
12862 * coding.c (decode_coding_object, encode_coding_object):
12863 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12864
128652008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12866
12867 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12868 hardcoding 1.
12869 (detect_coding_system):
12870 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12871 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12872 * insdel.c (insert_from_gap):
12873 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12874 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12875 (string_to_multibyte):
12876 * character.c (chars_in_text, multibyte_chars_in_text):
12877 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12878
12879 * character.h (FETCH_STRING_CHAR_ADVANCE)
12880 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12881 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12882 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12883
12884 * casefiddle.c (casify_region): Only call after-change and composition
12885 functions on the part of the region that was changed.
12886
12887 * keyboard.c (read_avail_input):
12888 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12889
128902008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12893 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12894
128952008-02-11 Juanma Barranquero <lekktu@gmail.com>
12896
12897 * w32menu.c (push_submenu_start, push_submenu_end)
12898 (push_left_right_boundary, push_menu_pane, push_menu_item):
12899 * keyboard.c (read_key_sequence): Don't pass args with side effects
12900 to AREF, it fails when compiling with -DENABLE_CHECKING.
12901
129022008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12903
12904 * Makefile.in (${lispsource}international/charprop.el):
12905 Delete this target.
12906
12907 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12908 emacs-unicode-2.
12909
129102008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12911
12912 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12913
129142008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * frame.c (Qnoelisp): New symbol.
12917 (syms_of_frame): Initialize it.
12918 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12919 harmless Elisp code, from a strong `force' from x_connection_closed.
12920 * frame.h (Qnoelisp): Declare.
12921 * xterm.c (x_connection_closed): Pass `noelisp'.
12922
12923 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12924 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12925 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12926 rather than `int' for the type of `type'.
12927
129282008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12929
12930 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12931
12932 * Makefile.in (GNUC): Remove support for gcc-1.x.
12933
129342008-02-10 Richard Stallman <rms@gnu.org>
12935
12936 * lisp.h (ASET): Use AREF, not ASLOT.
12937
129382008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12939
12940 * lisp.h (ASET): Check bounds.
12941
129422008-02-10 Glenn Morris <rgm@gnu.org>
12943
12944 * buffer.c (mode-name): Doc fix.
12945
129462008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12947
12948 * Makefile.in:
12949 * emacs.c:
12950 * gmalloc.c:
12951 * keyboard.c:
12952 * lisp.h:
12953 * m/ibm370aix.h:
12954 * process.c:
12955 * regex.c:
12956 * s/hpux.h:
12957 * sysdep.c:
12958 * sysselect.h:
12959 * systty.h:
12960 * unexec.c:
12961 * w32term.c:
12962 * xsmfns.c:
12963 * xterm.c: Remove code that deals with obsolete variables.
12964
12965 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12966
12967 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12968 nothing else needs it anymore.
12969
129702008-02-09 Eli Zaretskii <eliz@gnu.org>
12971
12972 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12973 instead of unibyte_char_to_multibyte.
12974
129752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12976
12977 * s/gnu-linux.h: Remove commented out code.
12978
12979 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12980
12981 * Makefile.in: Update what RMS says about using autoconf.
12982 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12983 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12984 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12985 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12986
129872008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12988
12989 * keymap.c (Fkey_description): Move side effect outside of macro call.
12990
12991 * xfaces.c (Finternal_make_lisp_face):
12992 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12993
12994 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12995 (syms_of_fontset): Use ASET.
12996
12997 * fns.c (concat): Move side effect outside of macro call.
12998 (hash_clear): Use ASET.
12999
130002008-02-08 Richard Stallman <rms@gnu.org>
13001
13002 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13003 If FORCE, and frame has a surrogate minibuffer for another frame,
13004 delete the other frame first.
13005
130062008-02-07 Timo Savola <timo.savola@iki.fi>
13007
13008 * xterm.c (x_detect_focus_change): Handle embed client message.
13009 (handle_one_xevent): Ditto.
13010 (handle_one_xevent): If embedded and we get a button press/release,
13011 request focus.
13012 (xembed_set_info, xembed_send_message): New functions.
13013 (x_make_frame_visible): Call xembed_set_info if embedded.
13014 (x_make_frame_invisible): Call xembed_set_info if embedded.
13015 (x_term_init): Initialize Xatom_XEMBED.
13016 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13017 (x_iconify_frame): Ditto.
13018
13019 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13020 (enum xembed_info, enum xembed_message, enum xembed_focus)
13021 (enum xembed_modifier, enum xembed_accelerator): New.
13022 (xembed_set_info, xembed_send_message): Declare.
13023 (FRAME_X_EMBEDDED_P): New.
13024
13025 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13026 gtk_plug_new.
13027
13028 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13029 window ID of a frame.
13030 (x_window): Reparent frame if embedded.
13031 (Fx_create_frame): Don't set border width if embedded.
13032
13033 * emacs.c (USAGE3): Add --parent-id.
13034 (standard_args): Ditto.
13035
130362008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13037
13038 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13039
130402008-02-07 Jim Meyering <meyering@redhat.com>
13041
13042 Use "do...while (0)", not "if (1)...else" in macro definitions.
13043 The latter provokes a warning from gcc about the empty else, when
13044 followed by ";". Also, without that trailing semicolon, it would
13045 silently swallow up any following statement.
13046 * syntax.h (SETUP_SYNTAX_TABLE)
13047 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13048 * buffer.h (DECODE_POSITION): Likewise.
13049 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13050 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13051 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13052 (FETCH_CHAR_ADVANCE): Likewise.
13053 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13054
130552008-02-07 Jim Meyering <meyering@redhat.com>
13056
13057 * lread.c [lint]: Don't include <sys/inode.h>.
13058
130592008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13060
13061 * xselect.c (x_handle_dnd_message):
13062 * xmenu.c (digest_single_submenu, xmenu_show):
13063 * xdisp.c (with_echo_area_buffer_unwind_data)
13064 (format_mode_line_unwind_data, unwind_format_mode_line)
13065 (display_menu_bar):
13066 * eval.c (Ffetch_bytecode):
13067 * doc.c (store_function_docstring):
13068 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13069 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13070 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13071
130722008-02-07 Kenichi Handa <handa@m17n.org>
13073
13074 * ftxfont.c (ftxfont_open): Don't set
13075 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13076
13077 * ftfont.c (ftfont_open): Fix previous change.
13078
130792008-02-06 Jason Rumney <jasonr@gnu.org>
13080
13081 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13082 Use cached metrics for ASCII characters.
13083 (w32font_open_internal): Don't set font's owning_frame.
13084 Cache metrics for ASCII characters.
13085
13086 * w32font.h (struct w32font_info): Add ascii_metrics.
13087 Remove owning_frame.
13088
130892008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13090
13091 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13092 to negative value.
13093
13094 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13095
13096 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13097
13098 * charset.c (syms_of_charset): Set QCtest and Qeq.
13099
131002008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13101
13102 * process.c (Fstart_process):
13103 * callproc.c (Fcall_process): Handle the case where
13104 Funhandled_file_name_directory returns nil.
13105
13106 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13107 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13108 * font.c (check_gstring): Use them and AREF to access the vector before
13109 we know it's really a gstring.
13110 (Ffont_shape_text): Fix typo.
46e722a9 13111 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13112
13113 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13114 Declare.
13115
13116 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13117
131182008-02-05 Jason Rumney <jasonr@gnu.org>
13119
13120 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13121 Set smallest_font_height and smallest_char_width in display info.
13122
131232008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13124
13125 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13126
131272008-02-05 Miles Bader <miles@gnu.org>
13128
13129 * xfaces.c (get_lface_attributes, merge_named_face)
13130 (lookup_named_face, lookup_derived_face, realize_named_face):
13131 Revert 2008-02-01 change by cyd@stupidchicken.com.
13132
131332008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13134
13135 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13136 fallback fonts.
13137 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13138
131392008-02-04 Jason Rumney <jasonr@gnu.org>
13140
13141 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13142 set full_name.
13143 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13144
131452008-02-03 Jason Rumney <jasonr@gnu.org>
13146
13147 * makefile.w32-in (OBJ1): Include font.o here.
13148 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13149
131502008-02-02 Jason Rumney <jasonr@gnu.org>
13151
13152 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13153
131542008-02-01 Jason Rumney <jasonr@gnu.org>
13155
13156 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13157
13158 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13159
131602008-02-01 Andreas Schwab <schwab@suse.de>
13161
13162 * Makefile.in (shortlisp, lisp): Update for rename of
13163 ../lisp/language/myanmar.el.
13164
131652008-02-01 Chong Yidong <cyd@stupidchicken.com>
13166
13167 * xfaces.c (get_lface_attributes): Delete function.
13168 (merge_named_face, lookup_named_face, lookup_derived_face)
13169 (realize_named_face): Call lface_from_face_name directly, and use
13170 the fact that merge_face_vectors does not alter its FROM argument.
13171
131722008-02-01 Jason Rumney <jasonr@gnu.org>
13173
13174 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13175 input in the default locale. Handle non-Unicode multibyte input.
13176
131772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13178
13179 * fontset.c (reorder_font_vector): Exclude nil elements from the
13180 font group. Don't try multiple fonts.
13181 (fontset_font): Adjust for the above change.
13182 (Finternal_char_font): Return nil if the found font doesn't
13183 contain the character ch.
13184
13185 * Makefile.in (lisp, shortlisp): Add cham.el.
13186
131872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13188
13189 * font.h (FONTP): Make it return 1 also for a font-object.
13190
13191 * .gdbinit (xfontset): New function.
13192
13193 * font.c (font_find_for_lface): Check if the character C is
13194 supported or not only for the first font.
13195
13196 * fontset.c (reorder_font_vector): Fix typo.
13197 (fontset_find_font): Don't add a font-spec specifying a script.
13198 Use 0 (not Qt) for the indication of empty font-group. Change the
13199 format of RFONT-DEF. Return Qt if no font in the font-group
13200 support the character.
13201 (fontset_font): Adjust for the above change. If no font was
13202 found the character, remember that.
13203 (face_for_char): Adjust for the change of RFONT-DEF.
13204 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13205 no font for the target.
13206 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13207
132082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13209
13210 * font.c (font_load_for_face): Handle the case that the font in
13211 face->lface is a string.
13212
132132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13214
13215 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13216
132172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13218
13219 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13220 Fix previous change. If the frame is not on a window system,
13221 signal an error.
13222
132232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13224
13225 * coding.c (decode_coding_object, encode_coding_object): Adjust
13226 marker positions after conversion.
13227
13228 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13229
132302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13231
13232 * font.c (font_find_for_lface): Fix the handling of the return
13233 value of font_has_char.
13234 (Ffont_shape_text): Fix previous change.
13235
13236 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13237 (fontset_ref_and_range): Delete it.
13238 (fontset_find_font): Call char_table_ref_and_range instead of
13239 FONTSET_REF_AND_RANGE.
13240 (make_fontset): Don't setup font groups of Latin here.
13241 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13242 (new_fontset_from_font): Make the specified font the default for
13243 all Latin characters.
13244
132452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13246
13247 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13248 is on a window system before accessing the fontset of the frame.
13249
132502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13251
13252 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13253
13254 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13255 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13256
13257 * font.c (Ffont_shape_text): If the font driver doesn't have a
13258 shaper function, make zero-width glyphs to have at least one-pixel
13259 width. Fix setting of `to' field of glyphs.
13260
132612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13262
13263 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13264 glyphs.
13265
13266 * font.h (struct font_driver): Improve docstring of member `shape'.
13267
132682008-02-01 Kenichi Handa <handa@m17n.org>
13269
13270 * composite.c (syms_of_composite): Fix docstring of
13271 auto-composition-function.
13272
13273 * font.h (LGLYPH_SIZE): New macro.
13274
13275 * font.c (Ffont_fill_gstring): Stop filling when a character not
13276 supported by the font is found.
13277 (Ffont_shape_text): When a shape callback function returns nil,
13278 try at most two more times with larger gstring.
13279 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13280
13281 * xdisp.c (handle_auto_composed_prop): Change the argument to
13282 auto-composition-function.
13283
13284 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13285 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13286 Lispy glyph and store it in the lgstring.
13287
13288 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13289
13290 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13291
132922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13293
13294 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13295
13296 * fontset.c (Vfont_encoding_charset_alist): New variable.
13297 (syms_of_fontset): DEFVAR it.
13298 (reorder_font_vector, fontset_find_font): Optimize for the case of
13299 no need of reordering.
13300 (face_for_char): Map the charset property by
13301 Vfont_encoding_charset_alist.
13302
133032008-02-01 Jason Rumney <jasonr@gnu.org>
13304
13305 * w32font.c (logfonts_match): Don't check adstyle here.
13306 (font_matches_spec): Check here against physical font instead.
13307 (add_font_entity_to_list): Avoid some substitutions.
13308
13309 * font.c (font_parse_fcname): Default weight and slant to normal.
13310 (font_score): Prefer normal fonts if weight or slant unspecified.
13311 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13312 match freetype scores.
13313
133142008-02-01 Jason Rumney <jasonr@gnu.org>
13315
13316 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13317 font, as it may have been deleted.
13318 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13319 most common hyphenless variation.
13320 (logfonts_match): Check generic family.
13321 (font_matches_spec): Don't check generic family here.
13322 (fill_in_logfont): Set generic family based on adstyle.
13323
13324 * w32font.h (w32font_get_cache): Update declaration.
13325
133262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13327
13328 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13329
13330 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13331 If none of the new drivers are available, call font_update_drivers
13332 with the old drivers.
13333
13334 * w32font.c (w32font_get_cache): Adjust the argument type.
13335
13336 * xfont.c (xfont_get_cache): Adjust the argument type.
13337
13338 * font.h (struct font_driver): Change argument type of get_cache.
13339
13340 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13341
13342 * font.c (Ffont_get): Fix arguments to Fassoc.
13343 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13344 (font_clear_cache): New function.
13345 (font_list_entities, font_matching_entity): Use font_get_cache.
13346 (font_update_drivers): Call font_clear_cache when finishing a driver.
13347
13348 * fontset.c (fontset_find_font): Fix previous change.
13349
133502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13351
13352 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13353 dpyinfo->font_table.
13354 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13355 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13356
13357 * font.c (font_at): Handle the case that the arg C is negative.
13358 Handle the unibyte case.
13359 (Ffont_at): Call font_at with the arg C -1.
13360
13361 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13362 the position here, and call font_at with the arg C -1.
13363 Don't check the range of the existing composition at the point.
13364
133652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13366
13367 * fontset.c (fontset_add): New args charset_id and family.
13368 Change caller.
13369 (load_font_get_repertory, fontset_find_font): Assume that
13370 font_spec is always a font-spec object.
13371 (Fset_fontset_font): Always store a font-spec object in a fontset.
13372
13373 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13374 instead of get_property_and_range.
13375
133762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13377
13378 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13379 (xftfont_open): Don't keep locking face.
13380 (xftfont_close): Don't unlock face.
13381 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13382
13383 * fontset.c (fontset_find_font): Don't prefer a font of
13384 supplementary charset.
13385
133862008-02-01 Kenichi Handa <handa@m17n.org>
13387
13388 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13389 script, langsys_tag to langsys, new member script.
13390 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13391 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13392 listing to the script specified in that property. Fix arg to
13393 OTF_check_features.
13394
133952008-02-01 Jason Rumney <jasonr@gnu.org>
13396
13397 * w32font.h: New file.
13398
13399 * w32font.c: Include it.
13400 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13401 (w32font_open): Set owning_frame.
13402 (w32font_text_extents): Use owning_frame.
13403 (struct font_callback_data): Add opentype_only field.
13404 (add_font_entity_to_list): Use it to filter fonts.
13405 Don't check against full name.
13406 (w32font_list_internal): New function.
13407 (w32font_list): Use it.
13408 (w32font_match_internal): New function.
13409 (w32font_match): Use it.
13410 (w32font_open_internal): New function.
13411 (w32font_open): Use it.
13412 (w32font_get_cache, w32font_close, w32font_has_char)
13413 (w32font_encode_char, w32font_text_extents, w32font_draw):
13414 Make non-static.
13415
13416 * makefile.w32-in (w32font.o): Depend on w32font.h.
13417
134182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13419
13420 * charset.c (Fdefine_charset_internal): Record a supplementary
13421 charset at the tail of Vcharset_order_list.
13422
13423 * font.c (Ffont_shape_text): Fix the return value.
13424
13425 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13426
13427 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13428
134292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13430
13431 * ftfont.c (struct OpenTypeSpec): New struct.
13432 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13433 (ftfont_get_open_type_spec): New function.
13434 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13435
13436 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13437
134382008-02-01 Jason Rumney <jasonr@gnu.org>
13439
13440 * w32font.c (add_font_entity_to_list): Compare only the beginning
13441 of full name.
13442
134432008-02-01 Kenichi Handa <handa@m17n.org>
13444
13445 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13446 Never return HANDLED_RECOMPUTE_PROPS.
13447
134482008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * font.c (font_gstring_produce): Delete it.
13451
13452 * composite.h (COMPOSITION_METHOD):
13453 Handle COMPOSITION_WITH_GLYPH_STRING.
13454
134552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13456
13457 * xfont.c (Qx): Delete.
13458 (syms_of_xfont): Don't initialize Qx.
13459
13460 * composite.h (enum composition_method):
13461 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13462
134632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13464
13465 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13466 (choose_face_font): Accept new form of font-spec.
13467
13468 * frame.h (font_driver_list): Declare it unconditionally.
13469 (struct frame): Define members font_driver_list and font_data_list
13470 unconditionally.
13471
13472 * fontset.c: Include "font.h" unconditionally.
13473 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13474 (Fset_fontset_font): Accept a font-spec object.
13475
13476 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13477 PIXEL_SIZE part a wild card.
13478
13479 * dispextern.h (struct glyph_string): Define members clip and
13480 num_clips unconditionally.
13481 (struct face): Define members font_info and extra unconditionally.
13482
13483 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13484 ftfont_info only when HAVE_LIBOTF is defined.
13485
134862008-02-01 Andreas Schwab <schwab@suse.de>
13487
13488 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13489 and end.
13490
134912008-02-01 Jason Rumney <jasonr@gnu.org>
13492
13493 * w32font.c (w32font_driver): Add new fields.
13494
134952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13496
13497 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13498 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13499 (LIBES): Add @M17N_FLT_CFLAGS@.
13500
13501 * composite.c (compose_text): Don't treat the new style
13502 composition specially.
13503
13504 * emacs.c (main): Call syms_of_font unconditionally.
13505
13506 * font.h (FONT_ENTITY_NOT_LOADABLE)
13507 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13508 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13509 (struct font_driver): New member shape.
13510 (font_registry_charsets): Extern it.
13511 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13512 (font_otf_capability, font_drive_otf): Delete their externs.
13513
13514 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13515 (font_charset_alist, font_registry_charsets): Move from xfont.c
13516 and rename.
13517 (font_prop_validate_otf): New function.
13518 (font_property_table): Register it for QCotf.
13519 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13520 (font_drive_otf): Delete.
13521 (font_prepare_composition): New arg F. Adjust for the change of
13522 lispy gstring.
13523 (font_find_for_lface): New arg C.
13524 (font_load_for_face): Adjust for the change of font_find_for_lface.
13525 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13526 lispy gstring.
13527 (Ffont_shape_text): New function.
13528 (Fopen_font): If the font size is not given, use 12-pixel.
13529 (Ffont_at): New arg STRING.
13530 (syms_of_font): Initalize font_charset_alist.
13531 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13532 conditionally.
13533
13534 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13535 fonts of the same font-spec. Change the format of RFONT-DEF.
13536 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13537 Adjust for the change of RFONT-DEF.
13538 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13539
13540 * ftfont.h: New file.
13541
13542 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13543 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13544 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13545 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13546 font_otf_capability and font_drive_otf, set ftfont_shape.
13547 (ftfont_list): Adjust for the change of :otf property value.
13548 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13549 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13550 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13551 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13552 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13553 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13554
13555 * w32term.c (x_draw_composite_glyph_string_foreground):
13556 Adjust for the change of lispy gstring.
13557
13558 * xdisp.c (handle_composition_prop): Adjust for the change of
13559 lispy gstring. Call a function for auto-composition with the
13560 third arg it->window.
13561 (fill_composite_glyph_string): Adjust for the change of lispy string.
13562 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13563
13564 * xfaces.c (set_font_frame_param): Adjust for the change of
13565 font_find_for_lface.
13566
13567 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13568 (xfont_registry_charsets): Likewise. Change caller.
13569 (syms_of_xfont): Don't handle x_font_charset_alist.
13570
13571 * xftfont.c: Include "ftfont.h".
13572 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13573 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13574 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13575 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13576 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13577 Set xftfont_driver.shape to xftfont_shape.
13578
13579 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13580 the change of lispy gstring.
13581
135822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13583
13584 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13585
135862008-02-01 Jason Rumney <jasonr@gnu.org>
13587
13588 * w32font.c (w32font_draw): Fill background manually.
13589
135902008-02-01 Jason Rumney <jasonr@gnu.org>
13591
13592 * font.c (Qfontp): Remove unused symbol.
13593 (QCantialias): New symbol.
13594 (syms_of_font): Define it.
13595 (font_property_table): Set a validator for QCantialias.
13596
13597 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13598 Define if not already.
13599 (QCfamily): Share with xfaces.c.
13600 (Qstandard, Qsubpixel, Qnatural): New symbols.
13601 (syms_of_w32font): Define them. Don't define QCfamily here.
13602 (w32_antialias_type, lispy_antialias_type): New functions.
13603 (w32_enumfont_pattern_entity): New arg requested_font.
13604 Set antialias parameter if non-default was requested.
13605 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13606
136072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13608
13609 * lread.c (read1): Undo the previous change.
13610
136112008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13612
13613 * frame.c (Fdelete_frame): Call font_update_drivers only when
13614 USE_FONT_BACKEND is defined.
13615
136162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13617
13618 * font.h (struct font_bitmap): New member bits_per_pixel.
13619 (struct font_driver): New members start_for_frame and end_for_frame.
13620 (struct font_data_list): New struct.
13621 (font_put_frame_data, font_get_frame_data): Extern them.
13622
13623 * frame.h (struct frame): New member font_data_list.
13624
13625 * font.c (font_update_drivers): Call driver->start_for_frame and
13626 driver->end_for_frame at proper timings.
13627 (font_put_frame_data, font_get_frame_data): New functions.
13628 (Ffont_spec): Add usage in the docstring.
13629
13630 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13631 (Fdelete_frame): Call font_update_drivers.
13632
13633 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13634 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13635 (xftfont_get_xft_draw): New function.
13636 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13637 (xftfont_end_for_frame): New function.
13638 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13639
13640 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13641 Change argument. Cache GCs in the per-frame data.
13642 (struct ftxfont_frame_data): New struct.
13643 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13644 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13645 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13646 (ftxfont_end_for_frame): New function.
13647 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13648
13649 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13650
136512008-02-01 Kenichi Handa <handa@m17n.org>
13652
13653 * xselect.c (Vselection_coding_system)
13654 (Vnext_selection_coding_system): Delete them.
13655 (syms_of_xselect): Don't declare selection-coding-system and
13656 next-selection-coding-system. They are declared in select.el.
13657
136582008-02-01 Jason Rumney <jasonr@gnu.org>
13659
13660 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13661
13662 * w32fns.c: Include imm.h.
13663 (get_composition_string_fn, get_ime_context_fn): New optional
13664 system functions.
13665 (globals_of_w32fns): Load them from imm32.dll.
13666 (ignore_ime_char): New flag.
13667 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13668 WM_IME_ENDCOMPOSITION messages.
13669
13670 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13671 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13672
136732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13674
13675 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13676 (READCHAR_REPORT_MULTIBYTE): New macro.
13677 (readchar): New 2nd arg MULTIBYTE.
13678 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13679 Make symbol's name multibyte according to the multibyteness of the
13680 source.
13681
136822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13683
13684 * xfaces.c (face_for_overlay_string): Call lookup_face with
13685 correct arguments (fix of synching with the trunk).
13686
136872008-02-01 Kenichi Handa <handa@m17n.org>
13688
13689 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13690 (font_prop_validate_non_neg, font_prop_validate_spacing):
13691 Delete argument prop_index.
13692 (font_property_table): Change arguments to validater. Change Callers.
13693 (font_lispy_object): Delete.
13694 (font_at): Use font_find_object instead fo font_lispy_object.
13695
136962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13697
13698 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13699 and file names.
13700
137012008-02-01 Jason Rumney <jasonr@gnu.org>
13702
13703 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13704 (font_matches_spec): Remove debug output.
13705 (add_font_entity_to_list): Avoid using substituted fonts.
13706
137072008-02-01 Jason Rumney <jasonr@gnu.org>
13708
13709 * doc.c (Fsnarf_documentation):
13710 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13711
137122008-02-01 Miles Bader <miles@gnu.org>
13713
13714 * dispextern.h (struct glyph_row): Only define "clip" field if
13715 HAVE_WINDOW_SYSTEM is defined.
13716
137172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13718
13719 Fix up multi-tty merge.
13720
13721 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13722 and indentation.
13723
13724 * xfaces.c (free_realized_face, clear_face_gcs):
13725 Include font_done_for_face in the input_blocked section, just in case.
13726
13727 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13728 (get_char_face_and_encoding): Undo last change and remove the *other*
13729 duplicate definition (i.e. keep the one that's better scoped and that
13730 includes code for the font-backend).
13731
13732 * terminal.c (create_terminal): Default keyboard_coding to
13733 `no-conversion' and terminal_coding to `undecided'.
13734
13735 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13736
13737 * fontset.c (free_realized_fontsets): Check that the table entry does
13738 contain a fontset before trying to compare it to `base'.
13739
13740 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13741 syms_of_charset, and syms_of_coding earlier because init_window_once
13742 now needs Vcoding_system_hash_table to be setup.
13743
13744 * coding.h (default_buffer_file_coding): Remove.
13745
13746 * coding.c (default_buffer_file_coding): Remove.
13747 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13748 than ->symbol, and use the terminal-local coding system.
13749 (syms_of_coding): Don't setup the coding-systems that are not
13750 terminal-local.
13751 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13752
13753 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13754 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13755
13756 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13757 in chartab.c and were re-added here by mistake.
13758 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13759
13760 * doc.c (Fsnarf_documentation):
13761 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13762 src to etc.
13763
13764 * ChangeLog.10: Add mistakenly removed entry.
13765
137662008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13767
13768 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13769
137702008-02-01 Miles Bader <miles@gnu.org>
13771
13772 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13773 Add extra args to FACE_FOR_CHAR.
13774
137752008-02-01 Kenichi Handa <handa@m17n.org>
13776
13777 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13778 in sequence.
13779
13780 * chartab.c (map_sub_char_table, map_char_table): If the range
13781 contains just one character, call the function with that character
13782 even if the depth is not 3.
13783
137842008-02-01 Jason Rumney <jasonr@gnu.org>
13785
13786 * w32font.c (w32font_text_extents): Calculate metrics for the
13787 whole string.
13788
137892008-02-01 Jason Rumney <jasonr@gnu.org>
13790
13791 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13792
137932008-02-01 Jason Rumney <jasonr@gnu.org>
13794
13795 * w32term.c (x_set_glyph_string_clipping): Use
13796 get_glyph_string_clip_rects.
13797 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13798 Adjust for the change of struct glyph_string.
13799
13800 * w32font.c (w32font_draw): Do clipping here.
13801
138022008-02-01 Kenichi Handa <handa@m17n.org>
13803
13804 * xftfont.c (xftfont_draw): Adjust for the change of struct
13805 glyph_string.
13806
13807 * xterm.c (x_set_glyph_string_clipping): Use
13808 get_glyph_string_clip_rects.
13809 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13810 Adjust for the change of struct glyph_string.
13811
13812 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13813 the resulting clip(s}.
13814 (expose_overlaps): Add arg r. Change callers. Set it to
13815 row->clip temporarily.
13816 (expose_window): Redraw rows overlapping the exposed area.
13817
13818 * dispextern.h (struct glyph_row): New member clip.
13819 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13820 clip_height, new member clip, and num_clips.
13821
138222008-02-01 Kenichi Handa <handa@m17n.org>
13823
13824 * data.c (Fchar_or_string_p): Fix docstring.
13825
138262008-02-01 Kenichi Handa <handa@m17n.org>
13827
13828 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13829 create a temporary XftDraw object.
13830
138312008-02-01 Kenichi Handa <handa@m17n.org>
13832
13833 * font.c (Ffontp): Fix docstring.
13834
13835 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13836 strong evidence of ISO-2022.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13841 SYNTAX_ENTRY_FOLLOW_PARENT.
13842
138432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13844
13845 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13846 its type.
13847 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13848 Update to the new type of weak_hash_tables and next_weak.
13849
13850 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13851 a plain C pointer to Lisp_Hash_Table.
13852
13853 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13854 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13855 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13856 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13857 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13858 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13859 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13860 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13861 (GC_EQ): Remove since they've been identical to their non-GC_
13862 alter-egos ever since the markbit was eradicated.
13863
13864 * alloc.c:
13865 * buffer.c:
13866 * buffer.h:
13867 * data.c:
13868 * fileio.c:
13869 * filelock.c:
13870 * fns.c:
13871 * frame.h:
13872 * lisp.h:
13873 * macterm.c:
13874 * print.c:
13875 * process.c:
13876 * w32fns.c:
13877 * w32menu.c:
13878 * w32term.c:
13879 * xfns.c:
13880 * xmenu.c:
13881 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13882
138832008-02-01 Kenichi Handa <handa@m17n.org>
13884
13885 * chartab.c (map_sub_char_table): Make it work for the top-level
13886 char-table. Fix handling of parent char-table.
13887 (map_char_table): Adjust for the above change.
13888
138892008-02-01 Jason Rumney <jasonr@gnu.org>
13890
13891 * w32font.c (Qgdi): Rename from Qw32.
13892
138932008-02-01 Jason Rumney <jasonr@gnu.org>
13894
13895 * w32bdf.c (get_quoted_string): Make function static.
13896
138972008-02-01 Kenichi Handa <handa@m17n.org>
13898
13899 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13900 bigger ascent and descent than those of the font, use them as
13901 font's ascent and descent.
13902
139032008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * Makefile.in (${lispsource}international/charprop.el): Move this
13906 target within "#ifdef HAVE_UNIDATA" and "#endif".
13907
139082008-02-01 Kenichi Handa <handa@m17n.org>
13909
13910 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13911 (shortlisp): Add ../lisp/language/tai-viet.el.
13912
139132008-02-01 Ulrich Mueller <ulm@gentoo.org>
13914
13915 * Makefile.in (${lispsource}international/charprop.el): Depend on
13916 temacs${EXEEXT}.
13917
139182008-02-01 Jason Rumney <jasonr@gnu.org>
13919
13920 * w32font.c (w32font_close): Delete the GDI font object.
13921
13922 * w32menu.c: Include character.h.
13923
13924 * w32proc.c: Likewise.
13925
13926 * w32select.c: Likewise.
13927
13928 * makefile.w32-in (w32proc.o): Depend on character.h.
13929
139302008-02-01 Jason Rumney <jasonr@gnu.org>
13931
13932 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13933
13934 * w32menu.c (syms_of_w32menu): Likewise.
13935
13936 * w32proc.c (syms_of_ntproc): Likewise.
13937
13938 * w32select.c (syms_of_w32select): Likewise.
13939
13940 * w32term.c (syms_of_w32term): Likewise.
13941
139422008-02-01 Jason Rumney <jasonr@gnu.org>
13943
13944 * w32font.c (w32font_draw): Delete brush after using it.
13945
139462008-02-01 Jason Rumney <jasonr@gnu.org>
13947
13948 * w32font.c (w32font_open): Don't set font_idx.
13949 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13950 to font settings.
13951 (w32font_draw): Fill background explicitly.
13952
139532008-02-01 Jason Rumney <jasonr@gnu.org>
13954
13955 * w32term.c (w32_initialize): Don't call w32font_initialize.
13956
13957 * w32font.c (w32font_info): Remove subranges.
13958 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13959 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13960 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13961 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13962 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13963 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13964 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13965 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13966 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13967 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13968 New symbols.
13969 (font_callback_data): New struct.
13970 (w32font_list, w32font_match): Use it.
13971 (w32font_open): Don't populate subranges.
13972 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13973 (w32font_encode_char): Always return unicode code-point as-is.
13974 (w32font_text_extents): Supply a transformation matrix to
13975 GetGlyphOutline. Never look up by glyph index. Avoid looping
13976 twice. Use unicode version of GetTexExtentPoint32 instead of
13977 glyph index version.
13978 (set_fonts_frame): Remove.
13979 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13980 set frame parameter. Use backward compatible fake foundries.
13981 Save generic family in extra slot under QCfamily. Make width slot
13982 constant. Save QCspacing value. Save list of scripts instead of
13983 binary subranges.
13984 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13985 (add_font_entity_to_list): Use font_callback_data struct. Filter
13986 unwanted fonts.
13987 (add_one_font_entity_to_list): Use font_callback_data struct.
13988 (w32_registry): Default to iso10646_1.
13989 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13990 string font registries. Don't fill in font name if it is a generic
13991 family name, fill family instead. Use spacing, family and script
13992 extra info to fill pitch, family and charset fields.
13993 (list_all_matching_fonts): Use font_callback_data struct.
13994 (unicode_range_for_char): Remove.
13995 (font_supported_scripts): New function.
13996 (w32font_initialize): Remove.
13997 (syms_of_w32font): Update which symbols are defined.
13998
139992008-02-01 Jason Rumney <jasonr@gnu.org>
14000
14001 * font.c (font_pixel_size): Reverse assq_no_quit args.
14002
14003 * w32term.h (FONT_WIDTH): Report max width, not average.
14004 (FONT_MAX_WIDTH): Remove.
14005 (FONT_AVG_WIDTH): New macro.
14006
14007 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14008 redefinition of FONT_WIDTH.
14009
14010 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14011 (w32_cache_char_metrics): Use FONT_WIDTH.
14012
14013 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14014
140152008-02-01 Jason Rumney <jasonr@gnu.org>
14016
14017 * w32font.c (w32font_open): Make lfHeight negative.
14018
14019 * w32fns.c (x_default_font_parameter): Use new style font name.
14020 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14021
140222008-02-01 Jason Rumney <jasonr@gnu.org>
14023
14024 * w32font.c (QCsubranges): New symbol.
14025 (w32font_open, w32font_has_char): Get subranges from subproperty
14026 of extra.
14027 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14028 (syms_of_w32font): Define :subranges symbol.
14029
14030 * font.c (font_put_extra): Expose externally.
14031
14032 * font.h (font_put_extra): Move declaration from font.c.
14033
14034 * font.c (Ffont_get): Use font driver to determine otf capability.
14035 (adjust_anchor): Check if driver defines anchor_point before using.
14036
14037 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14038 (w32font_draw): Use options.
14039 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14040 Fix detection of truetype fonts.
14041 (registry_to_w32_charset): Handle charsets other than iso8859-1
14042 expressed as lisp symbols.
14043 (w32_registry): Express charset as lisp symbol.
14044 (fill_in_logfont): Reverse pixel and point height logic.
14045 Don't set width here. Set quality to default.
14046
14047 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14048 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14049
14050 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14051 Remove redundant loop and allocation.
14052
14053 * makefile.w32-in (font.o, w32font.o): New objects.
14054 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14055 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14056
14057 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14058 STORE_XCHARB a valid l-value.
14059
14060 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14061 calculations for non-Truetype fonts.
14062 (x_draw_glyph_string): Sync with xterm.c.
14063 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14064 Remove redundant code.
14065 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14066
14067 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14068 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14069
14070 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14071 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14072
14073 * w32font.c: New file for w32 font backend.
14074
140752008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * term.c: Don't include "buffer.h" twice.
14078
140792008-02-01 Kenichi Handa <handa@m17n.org>
14080
14081 * character.c (Funibyte_string): New function.
14082 (syms_of_character): Defsubr it.
14083
140842008-02-01 Jason Rumney <jasonr@gnu.org>
14085
14086 * w32term.c [USE_FONT_BACKEND]:
14087 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14088 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14089 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14090 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14091 (x_free_frame_resources): Sync with xterm.c.
14092
140932008-02-01 Andreas Schwab <schwab@suse.de>
14094
14095 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14096 char-table size.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14105 font_otf_gpos, add font_drive_otf.
14106
14107 * fontset.c (fontset_find_font): Pay attention to font size
14108 specified for a font.
14109 (reorder_font_vector): Check contents of font_def.
14110
14111 * font.c (struct otf_list): Delete it.
14112 (otf_list): Make it a lisp variable.
14113 (otf_open): Use lispy otf_list.
14114 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14115 (check_otf_features): New function.
14116 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14117 New functions.
14118 (font_drive_otf): New function merging font_otf_gsub and
14119 font_otf_gpos.
14120 (font_open_for_lface): New arg spec. Change argument order.
14121 (font_load_for_face): Adjust for the change of font_open_for_lface.
14122 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14123 Ffont_otf_gpos.
14124 (syms_of_font): Staticpro otf_list. Delete defsubr of
14125 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14126
14127 * xfaces.c (set_font_frame_param): Adjust for the change of
14128 font_open_for_lface.
14129
14130 * font.h (font_open_for_lface): Adjust prototype.
14131 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14132 member otf_drive.
14133 (font_otf_gsub, font_otf_gpos): Delete externs.
14134 (font_drive_otf): Extern it.
14135
141362008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * font.c (font_at): If the window W is not on a window system,
14139 return Qnil.
14140
14141 * coding.c (produce_chars, encode_coding): Don't call
14142 insert_from_gap if no characters to produce.
14143
141442008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14147 Fclear_face_cache.
14148
14149 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14150
141512008-02-01 Miles Bader <miles@gnu.org>
14152
14153 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14154 Parse "--disable-font-backend" option.
14155 (standard_args): Add "--disable-font-backend" option.
14156
141572008-02-01 Kenichi Handa <handa@m17n.org>
14158
14159 * fontset.c (fontset_find_font): New function.
14160 (fontset_font): Use fontset_find_font.
14161 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14162 Register the specified font for all Latin characters.
14163 (new_fontset_from_font): Register the specified font for all Latin
14164 characters.
14165 (dump_fontset): For a realized fontset, include the base fontset
14166 name in the returned vector.
14167
141682008-02-01 Kenichi Handa <handa@m17n.org>
14169
14170 * character.h (CHAR_STRING): Cast C to unsigned on calling
14171 char_string.
14172
14173 * character.c (char_string): Type of arg C changed to unsigned.
14174 Signal an error if C is an invalid character code.
14175
14176 * editfns.c (general_insert_function, Fchar_to_string):
14177 Use CHARACTERP, not INTEGERP.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14182 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14183
14184 * regex.c (analyse_first): Fix for multibyte characters in "case
14185 charset:" and "case categoryspec:".
14186
141872008-02-01 Andreas Schwab <schwab@suse.de>
14188
14189 * Makefile.in (LIBES): Move standard libraries to the end.
14190
141912008-02-01 Kenichi Handa <handa@m17n.org>
14192
14193 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14194 nonzero, don't shrink the buffer nextb.
14195
14196 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14197
14198 * coding.c (coding_alloc_by_making_gap): New arg offset.
14199 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14200 offset.
14201 (decode_coding_iso_2022): Update coding->safe_charsets.
14202 (decode_coding_gap): Temporarily set
14203 current_buffer->text->inhibit_shrinking to 1.
14204
142052008-02-01 Kenichi Handa <handa@m17n.org>
14206
14207 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14208 indexing into elements of s->cmp and s->char2b.
14209
142102008-02-01 Juanma Barranquero <lekktu@gmail.com>
14211
14212 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14213
142142008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14217 target_multibyte instead of multibyte.
14218 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14219 (bcmp_translate): Change the argument name from multibyte to
14220 target_multibyte.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 These changes are to compile a regexp into a pattern that can be
14225 used both for multibyte and unibyte targets.
14226
14227 * Makefile.in (search.o): Depend on charset.h.
14228
14229 * character.c (multibyte_char_to_unibyte_safe): New function.
14230
14231 * search.c: Include "charset.h".
14232 (compile_pattern_1): Delete argument multibyte. Don't set
14233 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14234 (compile_pattern): Don't compare cp->buf.target_multibyte.
14235 Compare cp->buf.charset_unibyte.
14236 (compile_pattern): Set cp->buf.target_multibyte.
14237
14238 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14239
14240 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14241
14242 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14243 multibyte. Change callers.
14244 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14245 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14246 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14247 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14248 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14249 (regex_compile): Make the compiled pattern usable both for
14250 multibyte and unibyte targets.
14251 (analyse_first): Make the fastmap usable both for multibyte and
14252 unibyte targets.
14253 (TRANSLATE_VIA_MULTIBYTE): Delete.
14254 (re_match_2_internal): Pay attention to the case that the
14255 multibyteness of bufp and target may be different.
14256
142572008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14260 empty box occupy at least one column width.
14261
142622008-02-01 Miles Bader <miles@gnu.org>
14263
14264 * Makefile.in: Remove redundant HAVE_XFT clause.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14269
142702008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14273 being nil.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * search.c (simple_search): Fix previous change.
14286
142872008-02-01 Kenichi Handa <handa@m17n.org>
14288
14289 * xftfont.c (ftfont_font_format): Extern declaration.
14290
14291 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14292
14293 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14294 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14295
14296 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14297 (ftfont_font_format): Fix previous change.
14298
14299 * font.h (Ffont_xlfd_name): EXFUN it.
14300
14301 * font.c (font_parse_xlfd): Fix the array size of `f'.
14302 (register_font_driver): Use EQ to compare driver->type.
14303
14304 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14305 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14306 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14307
143082008-02-01 Kenichi Handa <handa@m17n.org>
14309
14310 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14311 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14312
143132008-02-01 Kenichi Handa <handa@m17n.org>
14314
14315 * xfont.c (xfont_open): Set font->format.
14316
14317 * xftfont.c (xftfont_open): Set font->format.
14318
14319 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14320 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14321 (ftfont_open): Set font->format.
14322 (ftfont_font_format): New function.
14323
14324 * font.h (struct font): New member format.
14325
14326 * font.c (Qopentype): New variable.
14327 (syms_of_font): Defsym it.
14328 (Fquery_font): Change the format of the last element of the return
14329 value.
14330
143312008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14334 last resort.
14335
143362008-02-01 Kenichi Handa <handa@m17n.org>
14337
14338 * coding.c (detect_coding_charset): Fix detection of multi-byte
14339 charset.
14340
143412008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14342
14343 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14344
143452008-02-01 Kenichi Handa <handa@m17n.org>
14346
14347 * xdisp.c (get_next_display_element): Set it->face_id for the
14348 first component of a composition.
14349 (x_produce_glyphs): Check if the font is changed or not for composition.
14350
143512008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * fontset.c (Qlatin): New variable.
14354 (syms_of_fontset): Define it as a lisp symbol.
14355 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14356
143572008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * font.c (font_unparse_fcname): Pay attention to the case that
14360 some of font property is a null string.
14361
143622008-02-01 Kenichi Handa <handa@m17n.org>
14363
14364 * term.c: Include "composite.h".
14365 (encode_terminal_code): Output all components of composition.
14366 Check the size of encode_terminal_src.
14367 (produce_glyphs): For composition, call produce_composite_glyph.
14368 (append_composite_glyph, produce_composite_glyph): New functions.
14369
14370 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14371 is not found, get font_info from the current ascii face.
14372
143732008-02-01 Kenichi Handa <handa@m17n.org>
14374
14375 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14376 buffer-file-name to Qnil before calling insert_from_buffer.
14377
14378 * font.c (font_unparse_fcname): Pay attention to the case that
14379 foundry is a null string.
14380
143812008-02-01 Kenichi Handa <handa@m17n.org>
14382
14383 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14384
14385 * font.c (Qunicode_sip): New variable.
14386 (syms_of_font): Declare it as a Lisp symbol.
14387
14388 * font.h (Qunicode_sip): Extern it.
14389
143902008-02-01 Kenichi Handa <handa@m17n.org>
14391
14392 * composite.c (get_composition_id): Pay attention to TAB component.
14393
14394 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14395 TAB. Adjust for the change of s->char2b which always points to
14396 the first element of allocated memory.
14397
14398 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14399
14400 * xdisp.c (handle_composition_prop): Set it->c to the first
14401 non-TAB component.
14402 (fill_composite_glyph_string): Change argument.
14403 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14404 (x_produce_glyphs): Fix handling of left/right padding.
14405
144062008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * coding.c (detect_coding_system): Fix for handling off
14409 inhibit_iso_escape_detection. Fix for the case that no coding
14410 system is defined for a specific coding category.
14411
144122008-02-01 Kenichi Handa <handa@m17n.org>
14413
14414 * font.c (font_matching_entity): Delete unused local var.
14415
14416 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14417 opening a font.
14418
14419 * fileio.c (Finsert_file_contents): On recovering a file, assume
14420 Unix-like eol.
14421 (choose_write_coding_system): On auto-saving a file, force
14422 Unix-like eol.
14423
14424 * coding.c (setup_coding_system): Fix setting of
14425 coding->common_flags based on eol_type.
14426 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14427 inherit from it.
14428
144292008-02-01 Kenichi Handa <handa@m17n.org>
14430
14431 * alloc.c (NSTATICS): Increas to 0x600.
14432
144332008-02-01 Kenichi Handa <handa@m17n.org>
14434
14435 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14436 (ftfont_list): Don't check :name property.
14437 (ftfont_match): New function.
14438 (ftfont_pattern_entity): If the pattern doesn't contain
14439 FC_SPACING, don't assume FC_MONO.
14440
14441 * font.h (struct font_driver): New member `match'.
14442 (font_update_drivers): Adjust prototype.
14443
14444 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14445 property of FONT.
14446 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14447 them unconditionally.
14448 (font_matching_entity): New function.
14449 (font_open_by_name): Try font_matching_entity if exact match is
14450 not found.
14451 (font_update_drivers): Delete the arg FONT. Return a list of
14452 actually used backends. Don't free faces, font caches here.
14453 Don't store data in frame parameters. Don't call x_set_font.
14454 (Ffont_spec): Store :name property as is.
14455 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14456 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14457 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14458 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14459 Call font->driver->otf_gsub instead of font_otf_gsub.
14460
14461 * frame.c (x_set_font_backend): Do more works that were done in
14462 font_update_drivers before.
14463
14464 * xfont.c (xfont_match): New function.
14465 (xfont_driver): Set xfont_driver.match to xfont_match.
14466 (xfont_draw): Set font in GC if necessary.
14467
14468 * ftxfont.c (ftxfont_match): New function.
14469 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14470
14471 * xftfont.c (xftfont_match): New function.
14472 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14473
144742008-02-01 Kenichi Handa <handa@m17n.org>
14475
14476 * font.h (struct font): New member scalable.
14477 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14478 (font_otf_gsub): Adjust prototype.
14479
14480 * font.c (font_otf_capability): Fix handling of the default langsys.
14481 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14482 Check the contents of SPEC.
14483 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14484 (check_gstring): New function.
14485 (REPLACEMENT_CHARACTER): New macro.
14486 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14487 glyph codes of GSTRING.
14488 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14489 (font_prepare_composition): Set cmp->glyph_len.
14490 (font_open_entity): Set font->scalable.
14491 (Ffont_get): Handle :otf property.
14492 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14493 functions.
14494 (Fquery_font): Use font->font.full_name.
14495 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14496 Sfont_otf_alternates.
14497
14498 * ftfont.c (ftfont_open): Set font->font.full_name and
14499 font->font.name properly. Fix calculation of font->font.height
14500 and font->min_width.
14501
14502 * ftxfont.c (ftxfont_create_gcs): New function.
14503 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14504 (ftxfont_draw_backgrond): Fix filling region.
14505 (ftxfont_default_fid): New function.
14506 (ftxfont_open): Set xfont->fid to the return value of
14507 ftxfont_default_fid.
14508 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14509 (ftxfont_done_face): Free only GCs that are created by
14510 ftxfont_create_gcs.
14511 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14512
14513 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14514 Clip to src->width, etc (not src->clip_XXX).
14515
14516 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14517 FontBackend frame parameter.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * font.h (struct font_driver_list): New member `on'.
14522 (Fclear_font_cache): EXFUN it.
14523 (font_update_drivers): Extern it.
14524
14525 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14526 (font_list_entities): Check driver_list->on.
14527 (register_font_driver): Initalize `on' member to 0.
14528 (font_update_drivers): New function.
14529 (Fclear_font_cache): Check driver_list->on.
14530
14531 * frame.h (Qfont_backend): Extern it.
14532 (x_set_font_backend): Extern it.
14533
14534 * frame.c (Qfont_backend): New variable.
14535 (frame_parms): New element for font-backend.
14536 (x_set_font_backend): New function.
14537
14538 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14539 FontBackend frame parameter.
14540 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14541 x_set_font_backend.
14542
14543 * xfont.c (xfont_list): Don't try listing by :name property if the
14544 name is not for XLFD.
14545
145462008-02-01 Kenichi Handa <handa@m17n.org>
14547
14548 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14549 (LGLYPH_SET_TO): New macros.
14550 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14551 element of G is vector or not.
14552 (font_at): Extern it.
14553
14554 * font.c: Include window.h.
14555 (font_lispy_object): New function.
14556 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14557 end of valid glyph.
14558 (font_close_object): Fix getting (struct font *).
14559 (font_at): New function.
14560 (Ffont_get): If FONT is a font-object, get entity from it.
14561 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14562 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14563 range check.
14564 (Ffont_at): New function.
14565 (syms_of_font): Defsubr Sfont_at.
14566
14567 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14568 before the entry for Qcomposition.
14569 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14570 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14571 the font in gstring.
14572 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14573 LGLYPH_FORM (g) to detect the end of valid glyph.
14574 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14575 we are composing with gstring.
14576
14577 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14578 Check if adjustment is vector or not.
14579
14580 * Makefile.in (font.o): Make it depends on window.h.
14581
145822008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14585 adjustment is vector or not.
14586
145872008-02-01 Miles Bader <miles@gnu.org>
14588
14589 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14594 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14595 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14596
14597 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14598 (DEVICE_DELTA): Fix typo.
14599 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14600 LGLYPH format.
14601
14602 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14603 the change of LGLYPH format.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * ftfont.c (ftfont_list): Fix typo.
14608 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14609
146102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14611
14612 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14613
14614 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14615 xftface_info is non-NULL.
14616
146172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14618
14619 * ftfont.c (ftfont_list): Move misplaced #endif.
14620
146212008-02-01 Kenichi Handa <handa@m17n.org>
14622
14623 * ftfont.c (ftfont_list): Pay attention to the case that
14624 FC_CAPABILITY is not defined.
14625
146262008-02-01 Kenichi Handa <handa@m17n.org>
14627
14628 * xftfont.c (xftfont_open): Set charset related members to -1.
14629
14630 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14631 QCname.
14632 (ftfont_open): Set charset related members to -1.
14633
14634 * fontset.c (Votf_script_alist): New variable.
14635 (syms_of_fontset): Initialize it.
14636 (fontset_font): Delete unused variable.
14637
14638 * fontset.h (Votf_script_alist): Extern it.
14639
14640 * font.c (font_find_for_lface): Optimize code.
14641
14642 * font.h (font_close_object, font_merge_old_spec): Extern them.
14643
146442008-02-01 Kenichi Handa <handa@m17n.org>
14645
14646 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14647 (syms_of_font): Initialize them.
14648 (font_pixel_size): Allow float value in dpi.
14649 (font_prop_validate_type): Delete.
14650 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14651 Change caller.
14652 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14653 (font_prop_validate_extra): Delete.
14654 (font_prop_validate_spacing): New function.
14655 (font_property_table): Add elements for all known properties.
14656 (get_font_prop_index): Rename from check_font_prop_name. New
14657 argument FROM. Change caller.
14658 (font_prop_validate): Validate all known properties.
14659 (font_put_extra): Delete argument force. Change caller.
14660 (font_expand_wildcards): Make it static. Fix the way of shrinking
14661 the possible range.
14662 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14663 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14664 Change caller.
14665 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14666 (font_parse_fcname): Delete argument merge. Fix parsing of point
14667 size. Don't validate properties values here. Change caller.
14668 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14669 (font_open_by_name): Delete unused variable.
14670 (Ffont_spec): Likewise. Validate property values.
14671 (Ffont_match_p): New function.
14672
14673 * font.h (QCscalable): Extern it.
14674 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14675
14676 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14677
14678 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14679 (xfont_list_pattern): New function.
14680 (xfont_list): Use xfont_list_pattern.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * font.h (Flist_fonts): EXFUN it.
14685
146862008-02-01 Jason Rumney <jasonr@gnu.org>
14687
14688 * w32term.c (w32_initialize): Add back smoothing_type and
14689 smoothing_enabled definitions.
14690
146912008-02-01 Kenichi Handa <handa@m17n.org>
14692
14693 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14694 s->face->font on determining underline position.
14695
146962008-02-01 Kenichi Handa <handa@m17n.org>
14697
14698 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14699 (font_has_char): Accept font-object too.
14700 (font_find_for_lface): Try at first with a size specified in face.
14701
147022008-02-01 Kenichi Handa <handa@m17n.org>
14703
14704 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14705 font_open_by_name.
14706
147072008-02-01 Kenichi Handa <handa@m17n.org>
14708
14709 * font.h (QCspacing, QCdpi): Extern them.
14710 (enum font_spacing): New enum.
14711 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14712
14713 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14714 (QCspacing, QCdpi): New variables.
14715 (syms_of_font): Initialize them.
14716 (font_pixel_size): New function.
14717 (font_put_extra): New function.
14718 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14719 in FONT_EXTRA.
14720 (font_parse_fcname): Handle enumerated values (e.g. bold).
14721 Fix handling font size. Add QCname property that contains only
14722 unknown properties.
14723 (font_score): Change argument. Change caller. Pay attention to
14724 FONT_PIXEL_SIZE_QUANTUM.
14725 (font_sort_entites, font_list_entities, font_find_for_lface)
14726 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14727 (Ffont_spec): Add QCname property that contains only unknown properties.
14728
14729 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14730 include weight in listing pattern, instead check weight of each
14731 listed font. Don't include scalable in pattern. Pay attention to
14732 FONT_PIXEL_SIZE_QUANTUM.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * font.c (font_parse_fcname): Fix parsing of point-size.
14737 (font_unparse_fcname): Produce symbolic names for style properties.
14738 (font_list_entities): Handle float size correctly.
14739 (font_open_by_name): Prefer `normal' property values if the name
14740 doesn't specify them.
14741
14742 * fontset.c (Finternal_char_font): Use font_get_name, not
14743 Ffont_xlfd_name.
14744
14745 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14746 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14747 pattern. Don't force scalable.
14748
14749 * xftfont.c (xftfont_open): For generating a name, start from
14750 96-byte buffer.
14751
147522008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14753
14754 * frame.h (x_new_fontset2): Fix prototype.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * font.h (struct font_driver): Delete member parse_name.
14759 (font_match_p, font_get_spec, font_parse_fcname)
14760 (font_unparse_fcname): Extern them.
14761 (font_get_name): Adjust prototype.
14762
14763 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14764 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14765 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14766 unnecessary checks for weight, slant, and swidth.
14767 (font_parse_fcname): New function.
14768 (font_unparse_fcname): New function.
14769 (font_parse_name): New function.
14770 (font_match_p): New function.
14771 (font_get_name): Change return value to Lisp string.
14772 (font_get_spec): New function.
14773 (Qunspecified, Qignore_defface): Don't extern them.
14774 (font_find_for_lface): Assume that LFACE is fully specified.
14775 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14776 object, use it for FACE.
14777 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14778 driver->parse_name.
14779 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14780
14781 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14782 prototype.
14783
14784 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14785 argument F. Don't call Fnew_fontset. Instead, directly call
14786 make_fontset.
14787
14788 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14789
14790 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14791 of x_new_fontset2.
14792
14793 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14794 (Qsans__serif): New variables.
14795 (ftfont_generic_family_list): New variable.
14796 (syms_of_ftfont): Initialize the above variables.
14797 (ftfont_pattern_entity): Delete argument NAME.
14798 (ftfont_list_generic_family): New function.
14799 (ftfont_parse_name): Delete this function.
14800 (ftfont_list): Try generic family only when FcFontList found no font.
14801 (ftfont_list_family): Fix args to FcObjectSetBuild.
14802
14803 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14804 object in attrs[LFACE_FONT_INDEX].
14805 (set_lface_from_font_name): Cancel all changes for font-backend.
14806 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14807 function.
14808 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14809 font object in QCfont attribute.
14810 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14811 (realize_default_face) [USE_FONT_BACKEND]: Call
14812 set_lface_from_font_and_fontset.
14813
14814 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14815 "fixed", and signal error here if no suitable font was found.
14816
14817 * xfont.c (xfont_parse_name): Delete this function.
14818
14819 * xftfont.c (xftfont_open): Change coding style of error
14820 handling. Generate fontconfig's fontname pattern.
14821
14822 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14823 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14824
14825 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14826 Both args FONTSET and FONT_OBJECT must be existing ones.
14827
148282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14829
14830 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14831
148322008-02-01 Kenichi Handa <handa@m17n.org>
14833
14834 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14835
14836 * font.h (struct font): Fix typo.
14837
14838 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14839 XLFD_XXX_INDEX.
14840 (enum xlfd_field_mask): New enum.
14841 (intern_font_field): Changed argument. Change caller. If digits
14842 are followed by non-digits, return a symbol.
14843 (font_expand_wildcards): New function.
14844 (font_parse_xlfd): Fix wildcard handling.
14845 (Ffont_spec): If :name is specified, reflect the info in the other
14846 properties.
14847
14848 * ftfont.c (ftfont_pattern_entity): Fix typo.
14849 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14850 locale.
14851
148522008-02-01 Kenichi Handa <handa@m17n.org>
14853
14854 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14855
14856 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14857 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14858 registry doesn't specify encoding part.
14859 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14860 (font_open_by_name): At first try parsing the name.
14861 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14862 as Lisp symbols.
14863
14864 * fontset.c (reorder_font_vector): Pay attention to the case that
14865 the 3rd element of font_def is nil.
14866 (fontset_font): For the default fontset, append one more fontset
14867 elements for a script-based font specification. Don't add script
14868 attribute on finding a font.
14869 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14870 font name.
14871 (fontset_ascii_font): If a font can't be opened, return nil.
14872
14873 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14874 (ftfont_pattern_entity): New function.
14875 (ftfont_get_cache): Assume that freetype_font_cache is already
14876 initialized.
14877 (ftfont_list): Handle the case that a file is specified in font
14878 name. Use ftfont_pattern_entity to generate entities.
14879 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14880 (syms_of_ftfont): Initialize freetype_font_cache.
14881
14882 * xftfont.c (xftfont_open): Make the font name fontconfig's
14883 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14884 (xftfont_close): Free font->font.name if not NULL.
14885
14886 * xfont.c (xfont_list): If script is specified for a font, return
14887 null_vector.
14888 (xfont_list_family): Declare argument type.
14889
14890 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14891 name, set LFACE_FONT (lface) to nil.
14892
14893 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14894 return Qnil.
14895
148962008-02-01 Kenichi Handa <handa@m17n.org>
14897
14898 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14899 (standard_args): Add "-enable-font-backend".
14900
149012008-02-01 Kenichi Handa <handa@m17n.org>
14902
14903 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14904 (struct xftdraw_list, xftdraw_list): Delete them.
14905 (register_xftdraw, check_xftdraw): Delete them.
14906 (xftfont_prepare_face): Don't call register_xftdraw.
14907 (xftfont_done_face): Don't call check_xftdraw.
14908 (xftfont_draw): Get background color only when with_background is
14909 nonzero.
14910
14911 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14912
149132008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 These changes are for the new font handling codes.
14916
14917 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14918 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14919 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14920 (FONTSRC, FONTOBJ): New variables.
14921 (obj): Add $(FONTOBJ).
14922 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14923 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14924 @LIBOTF_LIBS@.
14925 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14926 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14927
14928 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14929
14930 * character.h (Vscript_representative_chars): Extern it.
14931
14932 * character.c (Vscript_representative_chars): New variable.
14933 (syms_of_character): Declare it as a Lisp variable.
14934
14935 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14936 enable_font_backend is nonzero, accept the composition method
14937 COMPOSITION_WITH_GLYPH_STRING.
14938
14939 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14940 enumeration COMPOSITION_WITH_GLYPH_STRING.
14941
14942 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14943 members clip_x, clip_y, clip_width, and clip_height.
14944 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14945
14946 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14947 --enable-font-backend. Call syms_of_font.
14948
14949 * fns.c (assoc_no_quit): New function.
14950
14951 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14952 (face_for_font, new_fontset_from_font)
14953 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14954
14955 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14956 (fontset_font, fontset_ascii, face_for_char)
14957 (make_fontset_for_ascii_face, Ffont_info)
14958 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14959 is nonzero, use font-backend mechanism.
14960 (find_font_encoding): Make it non-static.
14961 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14962 New functions.
14963
14964 * frame.h (struct frame): New members resx and resy.
14965 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14966 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14967
14968 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14969 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14970
14971 * lisp.h (assoc_no_quit): Extern it.
14972
14973 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14974 Through out the file, use FONT_INFO_FROM_FACE instead of
14975 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14976 rif->per_char_metric.
14977 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14978 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14979 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14980 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14981 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14982 nonzero, use font-backend mechanism.
14983 (get_per_char_metric): New function.
14984
14985 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14986 (set_lface_from_font_name)
14987 (set_font_frame_param, free_realized_face)
14988 (prepare_face_for_display, clear_face_gcs)
14989 (Finternal_set_font_selection_order, realize_x_face)
14990 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14991 font-backend mechanism.
14992 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14993 (load_face_font) [USE_FONT_BACKEND]: Abort.
14994 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14995 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14996
14997 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14998 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14999 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15000 nonzero, register all available font drivers. Call
15001 x_default_font_parameter for deciding a font.
15002 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15003
15004 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15005 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15006 (x_set_glyph_string_clipping_exactly)
15007 (x_compute_glyph_string_overhangs)
15008 (x_draw_glyph_string_foreground)
15009 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15010 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15011 enable_font_backend is nonzero, use font-backend mechanism.
15012 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15013
150142008-02-01 Kenichi Handa <handa@m17n.org>
15015
15016 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15017 system_eol_type.
15018 (syms_of_coding): Initialize system_eol_type.
15019
15020 * process.c (Fset_process_coding_system): Inherit system's eol
15021 format if necessary.
15022
150232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15024
15025 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * coding.c (decode_eol): Pay attention to buffer relocation in
15030 del_range_2.
15031 (decode_coding): Call decode_eol before restoring undo_list.
15032
150332008-02-01 Kenichi Handa <handa@m17n.org>
15034
15035 * charset.c (Fdefine_charset_internal): Fix setting of
15036 emacs_mule_bytes.
15037
150382008-02-01 Kenichi Handa <handa@m17n.org>
15039
15040 * keyboard.c (read_char): Check if C is a character or not before
15041 looking up Vkeyboard_translate_table.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15046 condition to terminate the loop.
15047
150482008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * coding.c (produce_composition): Compare charbuf[i] instead of
15051 args[i] against 0.
15052 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15057 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15058 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15059 detect_coding.
15060 (emacs_mule_char): Handle old style (Emacs 20) component character
15061 of a composition.
15062 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15063 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15064 composition rule.
15065 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15066
150672008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * coding.c (encode_coding_ccl): Allocate destination dynamically
15070 when necessary.
15071
150722008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15075 the loop. When quitted, show a proper error message.
15076
150772008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15080 src->clip_head and src->clip_tail temporarily instead of src->hl.
15081
15082 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15083 character sequence.
15084 (Fccl_execute_on_string): Use ASET, not XSET.
15085
150862008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15089
150902008-02-01 Kenichi Handa <handa@m17n.org>
15091
15092 * coding.c (decode_coding): Fix the condition of terminating the
15093 decoding loop.
15094
150952008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * data.c (Faset): On setting a character bigger than 255 in a
15098 unibyte string, signal an error instead of make the string multibyte.
15099
151002008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15103 made by a mapping table.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15108 not.
15109 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15110 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15111
15112 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15113 s->face is NULL or not.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15118 (x_draw_glyph_string): Fix drawing of right_overhang and
15119 left_overhang around/on cursor.
15120
15121 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15122
151232008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15126
151272008-02-01 Kenichi Handa <handa@m17n.org>
15128
15129 * coding.c (Fdefine_coding_system_internal)
15130 (Fdefine_coding_system_alias): Avoid a duplicated element in
15131 Vcoding_system_alist.
15132
151332008-02-01 Kenichi Handa <handa@m17n.org>
15134
15135 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15136
15137 * coding.c (Qcoding_system_define_form): New variable.
15138 (syms_of_coding): Intern and staticpro it.
15139 (Fcoding_system_p): Check Qcoding_system_define_form.
15140 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15141
15142 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15143 Fcoding_system_p.
15144 (CHECK_CODING_SYSTEM): If ID is not available, call
15145 Fcheck_coding_system.
15146 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15147 Try also Fcheck_coding_system.
15148
151492008-02-01 Kenichi Handa <handa@m17n.org>
15150
15151 * coding.c (code_conversion_restore): GCPRO arg.
15152
151532008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * character.c (lisp_string_width): Check multibyteness of STRING.
15156
151572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15158
15159 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15160 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15161 (decode_mac_font_name): Use decode_coding_c_string instead of
15162 decode_coding.
15163 (x_load_font): Initialize fontp->fontset to -1. Set
15164 fontp->encoding_type.
15165
151662008-02-01 Kenichi Handa <handa@m17n.org>
15167
15168 * search.c (search_buffer): Give up BM search on case-fold-search
15169 if one of a target character has a case-equivalence of different
15170 byte length even if that target charcter is an ASCII.
15171 (simple_search): Fix calculation of byte length of matched text.
15172 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15173
151742008-02-01 Kenichi Handa <handa@m17n.org>
15175
15176 * coding.c (decode_coding): Fix handling of invalid bytes.
15177
151782008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15181 Unicode characters.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * coding.c (encode_coding_object): If a pre-write-conversion
15186 function makes a new buffer, kill it.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * coding.c (QCascii_compatible_p): New variable.
15191 (syms_of_coding): Initialize it.
15192 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15193 calling string_char.
15194 (record_conversion_result): Add `default:' case.
15195 (coding_charset_list): Delete unused variable `coding_type'.
15196 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15197 property in the plist of the coding system.
15198 (Fcoding_system_put): Check QCascii_compatible_p.
15199
152002008-02-01 Miles Bader <miles@gnu.org>
15201
15202 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15203 removed calculation of frame `f', as it's now used.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15208 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15209 (UNIDATA): New variable.
15210 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15211 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15212 $(RUN_TEMACS) unconditionally.
15213
152142008-02-01 Kenichi Handa <handa@m17n.org>
15215
15216 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15217 (admindir): New variable.
15218 ($(lispsource)international/charprop.el): New target.
15219
152202008-02-01 Miles Bader <miles@gnu.org>
15221
15222 * character.c (chars-in-region): Remove obsolete function.
15223 (syms_of_character): Remove its initialization.
15224
152252008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15226
15227 * w32select.c (validate_coding_system)
15228 (setup_windows_coding_system): New functions.
15229 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15230 setup_windows_coding_system.
15231 (setup_config, Fw32_get_clipboard_data): Use
15232 validate_coding_system.
15233 (Fx_selection_exists): Move call to setup_config to a place
15234 where signals are allowed.
15235
15236 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15237 (Fcheck_coding_system): Add declarations.
15238
152392008-02-01 Kenichi Handa <handa@m17n.org>
15240
15241 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15242
152432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15244
15245 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15246 string as the second argument for x_new_fontset.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15251 (encode_coding_object): Use safe_call instead of call2.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15256
15257 * Makefile.in (lisp): Include charprop.el.
15258
152592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15260
15261 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15262 Not sure if it's unnecessary.
15263
152642008-02-01 Steven Tamm <steventamm@mac.com>
15265
15266 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15267 some possibly unnecessary fontset checking code that crashed
15268 when creating a new frame.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15273 lookup_face.
15274
15275 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15276
15277 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15278
152792008-02-01 Kenichi Handa <handa@m17n.org>
15280
15281 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15282 (coding_charset_list): New function.
15283
15284 * coding.h (coding_charset_list): Extern it.
15285
152862008-02-01 Kenichi Handa <handa@m17n.org>
15287
15288 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15289 concatenation of family and registry.
15290
152912008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * character.h (BYTE8_STRING): Fix typo.
15294
15295 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15296 string to multibyte (sync to HEAD).
15297
15298 * casefiddle.c (casify_region): Handle changes in byte-length
15299 using replace_range_2 (sync to HEAD).
15300
153012008-02-01 Andreas Schwab <schwab@suse.de>
15302
15303 * chartab.c (map_char_table): GCPRO table and arg.
15304
153052008-02-01 Kenichi Handa <handa@m17n.org>
15306
15307 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15308 already at limit.
15309
153102008-02-01 Kenichi Handa <handa@m17n.org>
15311
15312 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15313 instead of fast_c_string_match_ignore_case.
15314 (find_font_encoding): Change argument to Lisp_Object. Use
15315 fast_string_match_ignore_case instead of
15316 fast_c_string_match_ignore_case. Change caller.
15317
153182008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 * xdisp.c (get_next_display_element): In unibyte case, decide to
15321 display in octal form by checking a character by
15322 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15323
15324 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15325
15326 * character.c (unibyte_has_multibyte_table): New variable.
15327
15328 * character.h (unibyte_has_multibyte_table): Extern it.
15329 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * coding.c (encode_coding_iso_2022): Fix handling of charset
15334 annotation.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * coding.c (setup_coding_system): If coding_system is nil, use
15339 Qundecided.
15340 (Fterminal_coding_system): Return nil if terminal coding system is
15341 `undecided'.
15342 (syms_of_coding): Define coding-system `undecided' here. Setup
15343 terminal_coding as `undecided'.
15344
153452008-02-01 Kenichi Handa <handa@m17n.org>
15346
15347 * xdisp.c (message_dolog, set_message_1): Call
15348 unibyte_char_to_multibyte with arg type int.
15349
15350 * lread.c (read1): Fix reading of a char-table.
15351
15352 * print.c (print_object): Include sub char-table in circularities
15353 detection.
15354
153552008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15358 Append the found sequences in car of ARGS instead of prepending.
15359
153602008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * fileio.c (report_file_error): Make a unibyte string from
15363 strerror (errorno).
15364 (Fsubstitute_in_file_name): Fix the arg to
15365 unibyte_char_to_multibyte. It is evaluated twice.
15366
153672008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15374 BOM is not found.
15375 (detect_coding, detect_coding_system): Optimization for ISO-2022
15376 when no 8-bit data is found.
15377
153782008-02-01 Jason Rumney <jasonr@gnu.org>
15379
15380 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15381
153822008-02-01 Kenichi Handa <handa@m17n.org>
15383
15384 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15385 CHARS.
15386
153872008-02-01 Steven Tamm <steventamm@mac.com>
15388
15389 * macterm.c (mac_encode_char): Add charset argument and update
15390 to use encoding_type.
15391 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15392 switch to pure fontset.
15393 (decode_mac_font_name): Temporarily remove decoding.
15394 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15395 (x_load_font): Temporarily remove encoding.
15396
153972008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * xfaces.c (Fface_font): If frame is not on a window system,
15400 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15401 refer to face->font.
15402 (split_font_name_into_vector, build_font_name_from_vector)
15403 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15404 when HAVE_WINDOW_SYSTEM is defined.
15405
154062008-02-01 Kenichi Handa <handa@m17n.org>
15407
15408 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15409 (x_produce_glyphs): Fix setting of members of cmp in case
15410 cmp->glyph_len is zero.
15411
15412 * fontset.c (Fset_fontset_font): Fix docstring.
15413 (Ffontset_info): Make it backward compatible. New arg ALL.
15414
154152008-02-01 Kim F. Storm <storm@cua.dk>
15416
15417 * process.c (read_process_output): Grow decoding_buf when needed;
15418 this could cause a crash in allocate_string and compact_small_strings.
15419
154202008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15423
154242008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * coding.c (setup_coding_system): Set coding->common_flags
15427 correctly for raw-text.
15428 (consume_chars): On encoding unibyte text by raw-text, don't check
15429 multibyte form.
15430 (encode_coding): On encoding by raw-text, never use translation tables.
15431
15432 * fileio.c (e_write): Short cut for the case of no encoding.
15433
154342008-02-01 Kenichi Handa <handa@m17n.org>
15435
15436 * coding.c (detect_coding, detect_coding_system): Delete unused
15437 variables.
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15442 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15443
154442008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * coding.c (Ffind_coding_systems_region_internal): Include
15447 raw-text and no-conversion in the result.
15448
154492008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15452 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15453 FONT_DEF.
15454 (font_def_arg, add_arg, from_arg, to_arg): New args.
15455 (set_fontset_font): Change argument.
15456 (Fset_fontset_font): Fix for the case that TARGET is a script
15457 name and charset name.
15458 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15459
154602008-02-01 Kenichi Handa <handa@m17n.org>
15461
15462 * fontset.c (fontset_font): Rename from fontset_face. Change return
15463 value.
15464 (face_suitable_for_char_p, face_for_char): Adjust for the change
15465 of fontset_font.
15466 (make_fontset_for_ascii_face): Fix setting of the fontset element
15467 for ASCII.
15468 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15469 to get a font name.
15470 (Ffontset_info): Adjust for the change of fontset_font.
15471
15472 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15473
15474 * character.h (LEADING_CODE_LATIN_1_MIN)
15475 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15476
154772008-02-01 Kenichi Handa <handa@m17n.org>
15478
15479 * editfns.c (check_translation): New function.
15480 (Ftranslate_region_internal): Handle M:N mapping.
15481
154822008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15485
154862008-02-01 Kenichi Handa <handa@m17n.org>
15487
15488 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15489 goto invalid_code.
15490 (decode_coding_iso_2022): Fix handling of invalid designation.
15491
15492 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15493 after calling code_conversion_save.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15498
15499 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15500
15501 * fontset.c: Include "intervals.h".
15502 (fontset_face): Fix comparing of Lisp_Objects.
15503 (free_face_fontset, new_fontset_from_font_name): Fix
15504 Lisp_Object/int mixup.
15505
15506 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15507
15508 * coding.c: Add many prototypes for static functions.
15509 (get_translation_table): Allow max_lookup to be NULL.
15510 (decode_coding, Ffind_coding_systems_region_internal)
15511 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15512 get_translation_table with max_lookup NULL.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * coding.c (get_translation_table): Declare it as Lisp_Object.
15517 (LOOKUP_TRANSLATION_TABLE): New macro.
15518 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15519 instead of CHAR_TABLE_REF.
15520
155212008-02-01 Kenichi Handa <handa@m17n.org>
15522
15523 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15524 annotation data format.
15525 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15526 Change arguments FROM and TO to single argument NCHARS. Change caller.
15527 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15528 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15529 (decode_coding_ccl, decode_coding_charset): Pay attention to
15530 coding->charbuf_used.
15531 (get_translation): New function.
15532 (produce_chars): New arguments translation_table and last_block.
15533 Translate characters here. Return number of carryover chars.
15534 Change caller.
15535 (produce_composition): New argument pos. Change caller.
15536 Adjust for the change of annotation data format.
15537 (produce_charset, produce_annotation): Likewise.
15538 (decode_coding, encode_coding): Don't call translate_chars.
15539 (consume_chars): New arg translation_table. Change caller.
15540 (translate_chars): Delete.
15541 (syms_of_coding): Make translation-table's number of extra slots 2.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * search.c (simple_search): Fix setting this_pos_byte in backward
15546 search.
15547
15548 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15549 byte sequence.
15550 (detect_coding_ccl): Fix setting of the variable valids.
15551
155522008-02-01 Kenichi Handa <handa@m17n.org>
15553
15554 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15555
15556 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15557
15558 * editfns.c (Ftranslate_region_internal): Rename from
15559 Ftranslate_region. Accept a char-table in TABLE.
15560 (syms_of_editfns): Defsubr Stranslate_region_internal.
15561
15562 * xfaces.c (set_lface_from_font_name): If a font is specified for
15563 a frame, generate a fontset from the font.
15564 (build_scalable_font_name): If the scalable font is requested for
15565 a specific size, don't change that size.
15566 (try_font_list): Try a scalable font also in the case that a
15567 pattern string is specified.
15568
155692008-02-01 Kenichi Handa <handa@m17n.org>
15570
15571 * xfaces.c (Fface_font): New optional arg CHARACTER.
15572
155732008-02-01 Kenichi Handa <handa@m17n.org>
15574
15575 * charset.h (CHARSET_OFFSET): New macro.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15580
15581 * fontset.c (fontset_face): Handle the case that repertory is a
15582 char-table.
15583 (find_font_encoding): Return nil for unknown encoding.
15584 (Fset_fontset_font): Ignore a font of unknown encoding.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * keymap.c (describe_vector): Handle default value of a char table.
15589
15590 * fontset.c (fontset_face): Handle fallback fonts correctly.
15591 (Ffontset_info): Return infomation about fallback fonts.
15592
155932008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 * fontset.c (FONTSET_DEFAULT): New macro.
15596 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15597 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15598 the case that it is nil.
15599 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15600 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15601
15602 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15603 subset or superset.
15604
156052008-02-01 Kenichi Handa <handa@m17n.org>
15606
15607 * emacs.c (main): Call init_charset after syms_of_XXX.
15608
15609 * charset.c (Vcharset_map_directory): Delete.
15610 (Vcharset_map_path): New variable.
15611 (load_charset_map_from_file): Use Vcharset_map_path instead.
15612 (init_charset): Initialize Vcharset_map_path.
15613 (syms_of_charset): Delete declaration of "charset-map-directory",
15614 add declaration of "charset-map-path".
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15619 ASCII only string.
15620
15621 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15622
15623 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15624 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15629
15630 * coding.c (QCmnemonic, QCdefalut_char)
15631 (QCdecode_translation_table, QCencode_translation_table)
15632 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15633 (get_translation_table): Return a list of translation tables if
15634 necessary.
15635 (decode_coding): Call get_translation_table with ENCODEP 0.
15636 (char_encodable_p): If translation_table is non-nil, always call
15637 translate_char.
15638 (Fdefine_coding_system_internal): Accept list of translation
15639 tables as :encode-translation-table and :decode-translation-table.
15640 (Fcoding_system_put): New function.
15641 (syms_of_coding): Declare new symbols. Defsubr
15642 Scoding_system_put.
15643 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15644 typically JISX0212.
15645
15646 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15647 when the charset is superset type.
15648
15649 * character.c (translate_char): Accept list of translation tables.
15650
156512008-02-01 Kenichi Handa <handa@m17n.org>
15652
15653 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15654 (CODING_ATTR_TRANS_TBL): New macro.
15655
15656 * coding.c (get_translation_table): New function.
15657 (translate_chars): Fix the bug of skipping annotation data.
15658 (decode_coding, encode_coding): Utilize get_translation_table.
15659 (char_encodable_p, Funencodable_char_position): Translate char if
15660 necessary.
15661 (Ffind_coding_systems_region_internal)
15662 (Fcheck_coding_systems_region): Setup translation table for encode
15663 in a coding system attribute vector in advance.
15664 (Fdefine_coding_system_internal): Allow a symbol as translation
15665 table. For shift-jis type coding system, allow 4th charset.
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15670
15671 * xdisp.c (get_next_display_element): Pass -1 as POS to
15672 FACE_FOR_CHAR if displaying a C-string.
15673
156742008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * composite.c (get_composition_id): Handle xoff and yoff in a
15677 composition rule.
15678
15679 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15680 (struct composition): New member lbearing and rbearing.
15681
15682 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15683 (x_get_glyph_overhangs): Handle a composition glyph.
15684 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15685
15686 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15687 composition glyph.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * print.c: Include charset.h.
15692 (Vprint_charset_text_property): New variable.
15693 (Qdefault): Extern it.
15694 (PRINT_STRING_NON_CHARSET_FOUND)
15695 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15696 (print_check_string_result): New variable.
15697 (print_check_string_charset_prop): New function.
15698 (print_prune_charset_plist): New variable.
15699 (print_prune_string_charset): New function.
15700 (print_object): Call print_prune_string_charset if
15701 Vprint_charset_text_property is not t.
15702 (print_interval): Print nothing if interval->plist is nil.
15703 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15704 variable. Init and staticpro print_prune_charset_plist.
15705
157062008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 * fontset.c (new_fontset_from_font_name): Use the specified font
15709 for all characters in the new fontset.
15710
15711 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15712 OBJECT args.
15713
15714 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15715 OBJECT args for composition too.
15716
15717 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15718 OBJECT args.
15719
157202008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15723
15724 * fontset.c (reorder_font_vector): Adjust for the change of
15725 FONT_DEF format.
15726 (fontset_face): New arg id. Change caller.
15727 (face_for_char): New args pos and object.
15728 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15729 (fs_query_fontset): Check NAME by Fassoc too.
15730 (Fset_fontset_font): Allow non-XLFD font name.
15731 (Ffontset_info): Adjust for the change of FONT_DEF format.
15732
15733 * fontset.h (face_for_char): Adjust prototype.
15734
15735 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15736 (append_space, extend_face_to_end_of_line)
15737 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15738 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15739
15740 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15741 POS and OBJECT args.
15742
15743 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15744 POS and OBJECT args.
15745
157462008-02-01 Jason Rumney <jasonr@gnu.org>
15747
15748 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15749 of GlobalAlloc'ed memory.
15750
157512008-02-01 Kenichi Handa <handa@m17n.org>
15752
15753 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15754
15755 * charset.h (charset_table_used): Delete extern.
15756
15757 * charset.c (charset_table_used): Make it static.
15758 (map_charset_chars): Fix args to c_function with.
15759
15760 * chartab.c (map_sub_char_table_for_charset): Fix args to
15761 c_function with.
15762
15763 * coding.h (enum coding_result_code): Delete
15764 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15765
15766 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15767 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15768 (Vlast_code_conversion_error): New variables.
15769 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15770 (ONE_MORE_BYTE): Record error if any instead of signaling an
15771 error. If non-ASCII multibyte char is found, return the negative
15772 value of the code. All callers changed to check it.
15773 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15774 (record_conversion_result): New function. Change all codes setting
15775 coding->result to call this function.
15776 (detect_coding_utf_8, decode_coding_utf_8)
15777 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15778 Don't use the local variable incomplete.
15779 (emacs_mule_char): Change the second arg to `const'.
15780 (decode_coding): Fix of flushing out unprocessed data.
15781 (make_conversion_work_buffer): Fix making of a work buffer.
15782 (decode_coding_object): Return coding->dst_object.
15783
15784 * fontset.c (set_fontset_font): Fix args.
15785
15786 * lisp.h (CHARACTERBITS): Define as 22.
15787
15788 * process.c (send_process): Be sure to set coding->src_multibyte.
15789
15790 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15791
157922008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * xdisp.c (handle_auto_composed_prop): Give limit to
15795 Fnext_single_char_property_change.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * composite.c (syms_of_composite): Don't make the composition hash
15800 table weak.
15801
15802 * fontset.c (Fset_fontset_font): Fix docstring.
15803
15804 * lisp.h (detect_coding_system): Adjust prototype.
15805
15806 * fileio.c (kill_workbuf_unwind): Delete this function.
15807 (Finsert_file_contents): Adjust the call of detect_coding_system.
15808 Get conversion_buffer by code_conversion_save. Use the macro
15809 CODING_MAY_REQUIRE_DECODING. After decoding, update
15810 coding_system.
15811
15812 * coding.h (make_conversion_work_buffer): Delete extern.
15813 (code_conversion_save): Extern it.
15814
15815 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15816 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15817 (decode_coding_utf_8): Don't do eol converion.
15818 (detect_coding_utf_16): Check coding->src_chars, not
15819 coding->src_bytes. Add heuristics for those that have no signature.
15820 (decode_coding_emacs_mule, decode_coding_iso_2022)
15821 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15822 Don't do eol converion.
15823 (adjust_coding_eol_type): Return a new coding system.
15824 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15825 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15826 each change.
15827 (decode_coding): Pay attention to undo_list. Do eol conversion for
15828 all types of coding-systems (if necessary).
15829 (Vcode_conversion_work_buf_list): Delete it.
15830 (Vcode_conversion_reused_workbuf): Rename from
15831 Vcode_conversion_reused_work_buf.
15832 (Vcode_conversion_workbuf_name): New variable.
15833 (reused_workbuf_in_use): New variable.
15834 (make_conversion_work_buffer): Delete the arg DEPTH.
15835 (code_conversion_restore): Change argument to cons.
15836 (code_conversion_save): Delete the argument BUFFER. Change callers.
15837 (detect_coding_system): New argument src_chars. Change callers.
15838 Fix for utf-16 detection.
15839 (init_coding_once): Don't use ISO_carriage_return.
15840 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15841 reused_workbuf_in_use.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * keymap.c (store_in_keymap): Pay attention to the case that idx
15846 is a cons specifying a character range.
15847
158482008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15851 HANDLED_RECOMPUTE_PROPS.
15852
15853 * coding.c (Fdefine_coding_system_internal): Fix checking of
15854 ascii compatibility.
15855
158562008-02-01 Kenichi Handa <handa@m17n.org>
15857
15858 * charset.c (find_charsets_in_text): Delete unused locale variable.
15859 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15860
15861 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15862 Resync charset_list to Vemacs_mule_charset_list.
15863
15864 * keymap.c (store_in_keymap): Pay attention to the case that idx
15865 is a cons specifying a character range.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * composite.c (update_compositions): Bind inhibit-read-only, etc
15870 to t before calling remove-list-of-text-properties.
15871
15872 * print.c (print_object): Always print ASCII chars as is.
15873
158742008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15877
15878 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15879 is a char table.
15880
158812008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15884
158852008-02-01 Kenichi Handa <handa@m17n.org>
15886
15887 * xfaces.c (set_lface_from_font_name): Fix for the case that
15888 FONTNAME is not fontset name.
15889
158902008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * fns.c (base64_encode_1): Fix previous change.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * fontset.c (set_fontset_font): New function.
15897 (Fset_fontset_font): If a font is specified for a charset, use
15898 map_charset_chars to store the font spec in a fontset.
15899
159002008-02-01 Kenichi Handa <handa@m17n.org>
15901
15902 * fontset.c (fontset_face): Create a fallback fontset on demand.
15903 (make_fontset): Don't create a fallback fontset here.
15904 (free_face_fontset): Free a fallback fontset (if any) too.
15905 (n_auto_fontsets): Delete this variable.
15906 (auto_fontset_alist): New variable.
15907 (new_fontset_from_font_name): Check auto_fontset_alist.
15908 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15909 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15910 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15911 Defsubr Sfontset_list_all.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15916
159172008-02-01 Kenichi Handa <handa@m17n.org>
15918
15919 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15920
159212008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 * editfns.c (Fgoto_char): Fix docstring.
15924
159252008-02-01 Kenichi Handa <handa@m17n.org>
15926
15927 * insdel.c (insert_from_gap): Adjust intervals correctly.
15928
159292008-02-01 Jason Rumney <jasonr@gnu.org>
15930
15931 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15932 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15933 (w32_initialize): Try to load it.
15934 (x_get_font_repertory): Use it if available.
15935 (w32_encode_char): Add shortcut for unicode output.
15936
15937 * w32fns.c (w32_load_system_font): Default charset to -1.
15938 (x_to_w32_charset): Match all fonts for unicode.
15939 (w32_to_x_charset): New parameter matching. Don't return partial
15940 or wildcard charsets.
15941 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15942 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15943 (w32_to_x_font): Match charset to real charset.
15944 (enum_font_cb2): Always list unicode versions.
15945
15946 * makefile.w32-in (temacs): Increase EMHEAP.
15947
159482008-02-01 Jason Rumney <jasonr@gnu.org>
15949
15950 * w32term.c (w32_encode_char): New charset parameter.
15951 font_info.encoding becomes encoding_type.
15952 (x_get_font_repertory): New function. Warning: stub only!
15953 (x_new_font): Return quickly if font already set.
15954 (x_new_fontset): fontsetname parameter is Lisp_Object.
15955 Use new fs_query_fontset. Try new_fontset_from_font_name.
15956 Use fontset_name for return value.
15957
15958 * w32term.h: Declare x_get_font_repertory.
15959
15960 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15961 place of find_charset_in_text. Use encode_coding_object in place
15962 of encode_coding.
15963 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15964 decode_coding.
15965
15966 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15967 of x_new_fontset.
15968 (w32_load_system_font): Initialize charset as unicode.
15969 font_info.encoding becomes encoding_type.
15970 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15971 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15972 (syms_of_w32fns): Set get_font_repertory_func.
15973
15974 * w32console.c: Include character.h. Use terminal_encode_buffer
15975 from term.c.
15976 (write_glyphs): Use new version of encode_terminal_code. Use
15977 encode_coding_object in place of encode_coding.
15978
15979 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15980 encoding becomes encoding_type.
15981
15982 * term.c (terminal_encode_buffer): Make externally visible.
15983
15984 * makefile.w32-in: Add character.h dependancies.
15985 (character.o, chartab.o): New targets.
15986
159872008-02-01 Kenichi Handa <handa@m17n.org>
15988
15989 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15990 CODING_ID_EOL_TYPE.
15991
159922008-02-01 Andreas Schwab <schwab@suse.de>
15993
15994 * coding.c (produce_chars): Revert last change.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * charset.h (charset_unicode): Extern it.
15999
16000 * charset.c (string_xstring_p): Check by (C >= 0x100).
16001 (find_charsets_in_text): Change format of the arc CHARSETS. New
16002 arg MULTIBYTE.
16003 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16004 change of find_charsets_in_text.
16005 (Fsplit_char): Fix doc. Never return unknown.
16006
16007 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16008
16009 * coding.c (Fdefine_coding_system_alias): Update
16010 Vcoding_system_list.
16011
16012 * fontset.c (load_font_get_repertory): Pay attention to the case
16013 that ENCODING of a font is specified by a char-table.
16014
16015 * xterm.c (x_get_font_repertory): Handle the case that the
16016 encoding of font is other than Unicode.
16017
160182008-02-01 Kenichi Handa <handa@m17n.org>
16019
16020 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16021 if a character is encodable by the terminal coding system. If
16022 not, produces proper number of `?'s. Update
16023 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16024 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16025
160262008-02-01 Kenichi Handa <handa@m17n.org>
16027
16028 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16029 variables.
16030 (encode_terminal_code): Change argument. Encode multiple
16031 characters at once. Store the result of encoding in
16032 terminal_encode_buffer.
16033 (write_glyphs, insert_glyphs): Adjust for the change of
16034 encode_terminal_code.
16035 (term_init): Initialize terminal_encode_buffer and
16036 terminal_encode_buf_size.
16037
16038 * coding.c (consume_chars): If coding->src_object is nil, don't
16039 check annotation.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * character.c (char_string): Use ASCII_CHAR_P instead of
16044 SINGLE_BYTE_CHAR_P.
16045
160462008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * xdisp.c (handle_auto_composed_prop): Check if the last
16049 characters of auto-composed region is newly composed with the
16050 following characters.
16051 (handle_composition_prop): Fix checking of point being inside
16052 composition.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * fns.c (concat): Don't change multibyteness of the result by
16057 concatenating an 8-bit character.
16058
16059 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16060 multibyteness of the result when newelt is an 8-bit character.
16061
160622008-02-01 Dave Love <fx@gnu.org>
16063
16064 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16065 EMACS_INT.
16066
16067 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16068
16069 * xfaces.c (face_numeric_value): Declare dim size_t.
16070 (Finternal_lisp_face_equal_p): Remove unused f.
16071
16072 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16073 (MATRIX_ROW): Remove unused vars.
16074 (draw_glyphs, x_insert_glyphs, fast_find_position)
16075 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16076 byte/char counts.
16077
16078 * regex.c (regex_compile): Remove unused var.
16079
16080 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16081
16082 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16083 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16084
16085 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16086
16087 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16088
16089 * fileio.c (Fwrite_region): Remove unused var.
16090
16091 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16092 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16093
16094 * composite.c (Fremove_list_of_text_properties): Declare.
16095
16096 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16097 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16098 (coding_inherit_eol_type): Remove unused attrs.
16099 (detect_coding): Cast arg of detect_eol.
16100
16101 * charset.c (syms_of_charset): Remove unused var p.
16102 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16103 byte/char counts.
16104
16105 * casetab.c (set_case_table): Remove unused var.
16106
16107 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16108 unused vars.
16109
161102008-02-01 Dave Love <fx@gnu.org>
16111
16112 * xterm.c (x_bitmap_mask): Declare.
16113
161142008-02-01 Dave Love <fx@gnu.org>
16115
16116 * xterm.c (x_term_init): Fix type error.
16117
16118 * lisp.h: Add Funibyte_char_to_multibyte.
16119
16120 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16121 (Fset_coding_system_priority): Doc fix.
16122
16123 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16124
16125 * indent.c (check_composition): Make start and end EMACS_INT.
16126
16127 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16128
16129 * xdisp.c (handle_composition_prop, check_point_in_composition):
16130 Make buffer positions EMACS_INT.
16131
16132 * composite.c (find_composition, run_composition_function)
16133 (update_compositions, Ffind_composition_internal): Make buffer
16134 positions EMACS_INT.
16135
16136 * composite.h (find_composition, update_compositions): Make
16137 position args EMACS_INT.
16138
16139 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16140
16141 * intervals.c (get_property_and_range):
16142 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16143
16144 * unexalpha.c: Don't include varargs.h.
16145
161462008-02-01 Dave Love <fx@gnu.org>
16147
16148 * coding.h (ENCODE_UTF_8): New.
16149
16150 * Makefile.in (gtkutil.o): Depend on coding.h.
16151
16152 * coding.c (Fset_coding_system_priority): Doc fix.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16157 the case of auto saving.
16158
161592008-02-01 Andreas Schwab <schwab@suse.de>
16160
16161 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16162 `range' from GC.
16163
161642008-02-01 Kenichi Handa <handa@m17n.org>
16165
16166 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16167
161682008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * fileio.c (choose_write_coding_system): Return a decided coding system.
16171 (Fwrite_region): Set Vlast_coding_system_used to the return value
16172 of choose_write_coding_system.
16173
161742008-02-01 Kenichi Handa <handa@m17n.org>
16175
16176 * charset.c (Fset_charset_priority): Pay attention to duplicated
16177 arguments.
16178
16179 * coding.c (QCcategory): New variable.
16180 (syms_of_coding): Defsym it. Set all elements of
16181 Vcoding_category_table and their symbol values.
16182 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16183 coding-category-XXX, and coding-category-list.
16184 (Fdefine_coding_system_internal): Add category in the plist.
16185
161862008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * callproc.c (Fcall_process): Handle carryover correctly.
16189
16190 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16191 (raw_text_coding_system): Check NILP (coding_system).
16192 (coding_inherit_eol_type): Check NILP (coding_system) and
16193 NILP (parent).
16194 (consume_chars): Fix for the case of raw-text.
16195
16196 * process.c (read_process_output): Handle carryover correctly.
16197
161982008-02-01 Dave Love <fx@gnu.org>
16199
16200 * regex.c (re_search_2): Fix last change.
16201
162022008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16205 target_multibyte. Even in a unibyte case, return a converted
16206 multibyte char.
16207 (GET_CHAR_AFTER): New macro.
16208 (PATFETCH): Translate via multibyte char.
16209 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16210 (SETUP_MULTIBYTE_RANGE): New macro.
16211 (regex_compile): Setup compiled code so that its multibyteness
16212 matches that of a target. Fix the handling of "[X-YZ]" using
16213 SETUP_MULTIBYTE_RANGE.
16214 (analyse_first) <charset>: For filling fastmap for all multibyte
16215 characters, don't check by BASE_LEADING_CODE_P.
16216 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16217 the same as RE_MULTIBYTE_P (bufp) now.
16218 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16219 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16220 (TRANSLATE_VIA_MULTIBYTE): New macro.
16221 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16222 It is the same as RE_MULTIBYTE_P (bufp) now.
16223 <exactn>: Translate via multibyte.
16224 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16225 translate it.
16226 <charset, charset_not>: Fetch a character by
16227 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16228 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16229 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16230 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16231 by GET_CHAR_AFTER.
16232 (bcmp_translate): Likewise.
16233
16234 * search.c (compile_pattern): Check the member target_multibyte,
16235 not the member multibyte of buf.
16236
16237 * lread.c (read1): While reading a string, set force_singlebyte
16238 and force_multibyte correctly.
16239
16240 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16241 up of unibyte_to_multibyte_table.
16242
162432008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * coding.c (setup_coding_system): If coding has
16246 post-read-conversion or pre-write-conversion, set
16247 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16248 respectively.
16249 (decode_coding_gap): Run post-read-conversion if any.
16250
16251 * fileio.c (Finsert_file_contents): Even if we read into a
16252 unibyte buffer, check if we must decode the result or not.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * coding.c (make_conversion_work_buffer): Change the work buffer
16257 name to the same one as that of Emacs 21.
16258
162592008-02-01 Kenichi Handa <handa@m17n.org>
16260
16261 * coding.h (make_conversion_work_buffer): Adjust prototype.
16262 (code_conversion_restore): Don't extern it.
16263
16264 * coding.c (detected_mask): Delete unused variable.
16265 (decode_coding_iso_2022): Pay attention to the byte sequence of
16266 CTEXT extended segment, and retain those bytes as is.
16267 (decode_coding_ccl): Delete unused variable `valids'.
16268 (setup_coding_system): Delete unused variable `category'.
16269 (consume_chars): Delete unused variable `category'. Make it work
16270 for non-multibyte case.
16271 (make_conversion_work_buffer): Change argument.
16272 (saved_coding): Delete unused variable.
16273 (code_conversion_restore): Don't check saved_coding->destination.
16274 (code_conversion_save): New function.
16275 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16276 instead of record_unwind_protect.
16277 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16278 (detect_coding_system): Delete unused variable `mask'.
16279 (Fdefine_coding_system_internal): Delete unused variable id.
16280
16281 * fileio.c (kill_workbuf_unwind): New function.
16282 (Finsert_file_contents): On replacing, call
16283 make_conversion_work_buffer with correct args, and call
16284 record_unwind_protect with the first arg kill_workbuf_unwind.
16285
16286 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16291 (fontset_add): Fix for the case that TO is less than TO1.
16292 (Ffontset_info): Don't use fallback fontset on checking the
16293 default fontset.
16294 (dump_fontset): New function for debugging.
16295
16296 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16297 coding_type is Qcharset.
16298
162992008-02-01 Kenichi Handa <handa@m17n.org>
16300
16301 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16302 (map_char_table): Don't inherit the value from the parent on
16303 initializing VAL. Adjust for the above change.
16304
163052008-02-01 Kenichi Handa <handa@m17n.org>
16306
16307 * coding.c (Qsignature, Qendian): Delete these variables.
16308 (syms_of_coding): Don't initialize them.
16309 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16310 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16311 detect_info->found.
16312 (decode_coding_utf_16): Don't detect BOM here.
16313 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16314 is NOT utf_16_without_bom.
16315 (setup_coding_system): For a coding system of type utf-16, check
16316 if the attribute :endian is Qbig or not (not nil or not), and set
16317 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16318 (detect_coding): If coding type is utf-16 and BOM detection is
16319 required, detect it.
16320 (Fdefine_coding_system_internal): For a coding system of type
16321 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16322
163232008-02-01 Kenichi Handa <handa@m17n.org>
16324
16325 * coding.c (coding_set_source): Fix for the case that the current
16326 buffer is different from coding->src_object.
16327 (decode_coding_object): Don't use the conversion work buffer if
16328 DST_OBJECT is a buffer.
16329
163302008-02-01 Dave Love <fx@gnu.org>
16331
16332 * lread.c (read_emacs_mule_char) [len==2]: Index
16333 emacs_mule_charset correctly.
16334
163352008-02-01 Dave Love <fx@gnu.org>
16336
16337 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16338 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16339 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16340 treated specially.)
16341 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16342 (detected_mask): Remove Big5 bits.
16343
163442008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 The following changes are to make the font rescaling facility
16347 compatible with Emacs 21.
16348
16349 * xfaces.c (Vface_font_rescale_alist): Rename from
16350 Vface_resizing_fonts.
16351 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16352 (font_rescale_ratio): Rename from font_resizing_ratio.
16353 (split_font_name): Set font->rescale_ratio.
16354 (better_font_p): Pay attention to font->rescale_ratio.
16355 (build_scalable_font_name): Likewise. Change RESX, and RESY
16356 fields.
16357 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16358
163592008-02-01 Kenichi Handa <handa@m17n.org>
16360
16361 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16362 (Qutf_16_le): Remove these variables.
16363 (syms_of_coding): Don't DEFSYM them.
16364 (decode_coding_utf_16): Fix handling of BOM.
16365 (encode_coding_utf_16): Fix handling of BOM.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * fileio.c (Finsert_file_contents): On replacing, before decoding
16370 the file into the work buffer, set point of the work buffer to the end.
16371
163722008-02-01 Dave Love <fx@gnu.org>
16373
16374 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16375
163762008-02-01 Dave Love <fx@gnu.org>
16377
16378 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16379 and fix C types.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * xdisp.c (SKIP_GLYPHS): New macro.
16384 (set_cursor_from_row): Pay attention to string display properties.
16385
16386 * category.c (copy_category_entry): Fix for the case that RANGE
16387 is an integer.
16388
16389 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16390
16391 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16392
163932008-02-01 Kenichi Handa <handa@m17n.org>
16394
16395 * charset.c (Fcharset_id_internal): New function.
16396 (syms_of_charset): Defsubr it.
16397
16398 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16399 with the last arg charset_list acquired from coding.
16400 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16401 the attribute coding_attr_ccl_valids.
16402
16403 * coding.h (enum define_coding_ccl_arg_index): Set the first
16404 member coding_arg_ccl_decoder to coding_arg_max.
16405
16406 * ccl.h (ccl_driver): Adjust prototype.
16407
16408 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16409 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16410 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16411 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16412 last arg Qnil.
16413
164142008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16417 call encode_char.
16418
16419 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16420
164212008-02-01 Dave Love <fx@gnu.org>
16422
16423 * composite.c (syms_of_composite): Make composition_hash_table weak.
16424
164252008-02-01 Kenichi Handa <handa@m17n.org>
16426
16427 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16428 (font_name_registry): Don't extern them.
16429 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16430
16431 * fontset.h (Qfontset): Don't extern it.
16432 (new_fontset_from_font_name): Extern it.
16433
16434 * fontset.c: Give 8 extra slots to fontset objects.
16435 (Qfontset_info): New variable.
16436 (syms_of_fontset): Defsym it.
16437 (FONTSET_FALLBACK): New macro.
16438 (fontset_face): Try also the default fontset.
16439 (make_fontset): Realize a fallback fontset from the default fontset.
16440 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16441 using split_font_name_into_vector and build_font_name_from_vector.
16442 (Fset_fontset_font): Access the elements of font_spec by enum
16443 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16444 name by using split_font_name_into_vector.
16445 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16446 generate a proper font name from the fontset name. Update
16447 Vfontset_alias_alist.
16448 (n_auto_fontsets): New variable.
16449 (new_fontset_from_font_name): New function.
16450 (Ffont_info): Store the information about fonts generated from the
16451 default fontset in the first extra slot of the returned char-table.
16452
16453 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16454 (font_name_registry): Delete function.
16455 (split_font_name_into_vector): New function.
16456 (build_font_name_from_vector): New function.
16457 (font_list): The argument REGISTRY is now a list of registry names.
16458 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16459 specifies an explicit font name, return the name as is. Make a
16460 list of registy names.
16461
16462 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16463 of x_new_fontset.
16464 (Fx_create_frame): Don't call x_new_fontset here. Just use
16465 x_list_fonts to check the existence of fonts.
16466
16467 * xterm.h (x_new_fontset): Adjust prototype.
16468
16469 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16470 string. Use new_fontset_from_font_name to create a fontset from a
16471 font name.
16472
164732008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * syntax.c (Vfind_word_boundary_function_table): New name for
16476 Vnext_word_boundary_function_table.
16477 (find-word-boundary-function-table): New name for
16478 next-word-boundary-function-table.
16479
164802008-02-01 Dave Love <fx@gnu.org>
16481
16482 * Makefile.in: Fix some dependencies.
16483
16484 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16485 set it to nil before returning.
16486
16487 * composite.c (update_compositions): Fix type error.
16488
16489 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16490
164912008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * xterm.c (x_new_font): Optimize for the case that the font is
16494 already set for the frame.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * chartab.c (char_table_ascii): Check if the char table contents
16499 is sub-char-table or not.
16500 (char_table_set, char_table_set_range): Fix argument to
16501 char_table_ascii.
16502
16503 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16504 (detect_coding_utf_8, detect_coding_utf_16)
16505 (detect_coding_emacs_mule, detect_coding_iso_2022)
16506 (detect_coding_sjis, detect_coding_big5)
16507 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16508 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16509 sequence is valid in this coding system. Change callers.
16510 (MAX_ANNOTATION_LENGTH): New macro.
16511 (ADD_ANNOTATION_DATA): New macro.
16512 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16513 ADD_ANNOTATION_DATA. Change the format of annotation data.
16514 (ADD_CHARSET_DATA): New macro.
16515 (emacs_mule_char): New argument ID. Change callers.
16516 (decode_coding_emacs_mule, decode_coding_iso_2022)
16517 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16518 Produce charset annotation data in coding->charbuf.
16519 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16520 to charset annotation data in coding->charbuf.
16521 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16522 coding->common_flags if the coding system is iso-2022 based and
16523 uses designation.
16524 (produce_composition): Adjust for the new annotation data format.
16525 (produce_charset): New function.
16526 (produce_annotation): Handle charset annotation.
16527 (handle_composition_annotation, handle_charset_annotation): New
16528 functions.
16529 (consume_chars): Handle charset annotation. Utilize the above two
16530 functions.
16531 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16532 buffer, get the deleted text as a string and set
16533 coding->src_object to that string.
16534 (detect_coding, detect_coding_system): Use the new struct
16535 coding_detection_info.
16536
16537 * coding.h (struct coding_detection_info): New structure.
16538 (struct coding_system): Adjust prototype of the member `detector'.
16539 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16544
165452008-02-01 Dave Love <fx@gnu.org>
16546
16547 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16548 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16549 to new local and nullify apropos_accumulate before returning.
16550 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16551
165522008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16555 correctly.
e3eea1fc 16556
aac0c6e3
MR
165572008-02-01 Dave Love <fx@gnu.org>
16558
16559 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16560
165612008-02-01 Kenichi Handa <handa@m17n.org>
16562
16563 The following changes are to make character composition happen
16564 automatically on displaying.
16565
16566 * Makefile.in (lisp, shortlisp): Add composite.elc.
16567
16568 * composite.h (Qauto_composed, Vauto_composition_function)
16569 (Qauto_composition_function): Extern them.
16570
16571 * composite.c (Vcomposition_function_table)
16572 (Qcomposition_function_table): Delete variables.
16573 (Qauto_composed, Vauto_composition_function)
16574 (Qauto_composition_function): New variables.
16575 (run_composition_function): Don't call
16576 compose-chars-after-function.
16577 (update_compositions): Clear `auto-composed' text property.
16578 (compose_chars_in_text): Delete this function.
16579 (syms_of_composite): Staticpro Qauto_composed and
16580 Qauto_composition_function. Declare Vauto_composition_function as
16581 a Lisp variable.
16582
16583 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16584
16585 * xdisp.c (it_props): Add an entry for Qauto_composed.
16586 (handle_auto_composed_prop): New function.
16587
16588 * xselect.c (selection_data_to_lisp_data): Don't call
16589 compose_chars_in_text.
16590
165912008-02-01 Dave Love <fx@gnu.org>
16592
16593 * keyboard.c (read_char): Modify checking around use of
16594 Vkeyboard_translate_table.
16595
16596 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16597 and fix C types.
16598
165992008-02-01 Kenichi Handa <handa@m17n.org>
16600
16601 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16602 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16603 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16604 the case that the last byte is '\r' correctly.
16605 (decode_coding): Flush out the unprocessed data correctly.
16606 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16607
166082008-02-01 Dave Love <fx@gnu.org>
16609
16610 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16611 Add XK_ISO... case.
16612 (xaw_scroll_callback): Revert last change.
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16617
166182008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * xfaces.c (Vface_resizing_fonts): New variable.
16621 (struct font_name): New member `resizing_ratio'.
16622 (font_resizing_ratio): New function.
16623 (split_font_name): Set font->resizing_ratio.
16624 (better_font_p): Pay attention to font->resizing_ratio.
16625 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16626 RESX, and RESY fields.
16627 (try_alternative_families): Try scalable fonts if
16628 Vscalable_fonts_allowed is not Qt.
16629 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16630
166312008-02-01 Dave Love <fx@gnu.org>
16632
16633 * xterm.c (xaw_scroll_callback): Cast correctly.
16634
166352008-02-01 Dave Love <fx@gnu.org>
16636
16637 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16638 (lispy_kana_keys): Comment out.
16639 (make_lispy_event) [XK_kana_A]: Comment out.
16640
16641 * xterm.c (xaw_scroll_callback): Cast call_data.
16642 (XTread_socket): Deal with ASCII keysyms.
16643 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16644
166452008-02-01 Dave Love <fx@gnu.org>
16646
16647 * xterm.c (Vx_keysym_table): New.
16648 (syms_of_xterm): Initialize it.
16649 (XTread_socket): Use it.
16650 From head: Eliminate incorrect optimization that tried to avoid
16651 decoding the output of X*LookupString.
16652 (x_get_font_repertory): Delete charset declaration.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16657 return 0.
16658 (Fdefine_coding_system_internal): Setup
16659 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16660
166612008-02-01 Dave Love <fx@gnu.org>
16662
16663 * coding.c (Fcheck_coding_system): Doc fix.
16664
16665 * editfns.c (Finsert_byte): Return a proper value.
16666
166672008-02-01 Kenichi Handa <handa@m17n.org>
16668
16669 * coding.c (decode_coding): Fix args to translate_chars. Pay
16670 attention to Vstandard_translation_table_for_decode.
16671 (encode_coding): Fix args to translate_chars. Pay attention to
16672 Vstandard_translation_table_for_encode.
16673
16674 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16675 SINGLE_BYTE_CHAR_P.
16676
16677 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16678 not by SINGLE_BYTE_CHAR_P.
16679
16680 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16681 SINGLE_BYTE_CHAR_P.
16682
16683 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16684 SINGLE_BYTE_CHAR_P.
16685
16686 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16687 by SINGLE_BYTE_CHAR_P.
16688
16689 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16690 SINGLE_BYTE_CHAR_P.
16691
166922008-02-01 Dave Love <fx@gnu.org>
16693
16694 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16695
166962008-02-01 Dave Love <fx@gnu.org>
16697
16698 * fns.c (Flanginfo): Fix typo.
16699
16700 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16701
167022008-02-01 Kenichi Handa <handa@m17n.org>
16703
16704 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16705 (detect_coding_emacs_mule, detect_coding_iso_2022)
16706 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16707 incomplete byte sequence. Don't update *mask when correctly detected.
16708 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16709 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16710 (detect_coding, detect_coding_system): Adjust for the changes above.
16711
167122008-02-01 Kenichi Handa <handa@m17n.org>
16713
16714 * character.c (char_string): Rename from
16715 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16716 (string_char): Rename from string_char.
16717
16718 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16719 if C is greater than MAX_3_BYTE_CHAR.
16720 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16721 string_char instead of string_char_with_unification.
16722
167232008-02-01 Dave Love <fx@gnu.org>
16724
16725 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16726
167272008-02-01 Kenichi Handa <handa@m17n.org>
16728
16729 * keymap.c (push_key_description): Pay attention to force_multibyte.
16730
16731 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16732
167332008-02-01 Dave Love <fx@gnu.org>
16734
16735 * charset.c (define_charset_internal): Rename `supprementary'.
16736
16737 * Makefile.in (lisp, shortlisp): Remove latin-N.
16738
167392008-02-01 Dave Love <fx@gnu.org>
16740
16741 * xfns.c (x_window, x_window): Use use_xim.
16742
16743 * xterm.c (use_xim): Initialize.
16744 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16745 (x_term_init): Maybe set use_xim.
16746
16747 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * search.c (search_buffer): Fix case-fold-search of multibyte
16752 characters.
16753 (boyer_moore): Rename the last argument to char_high_bits.
16754
167552008-02-01 Kenichi Handa <handa@m17n.org>
16756
16757 * xdisp.c (display_string): Fix for the case of zero width glyph.
16758
16759 * xfns.c (x_set_font): Change the error message of the case that
16760 x_new_fontset returns Qt.
16761
16762 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16763 (Finternal_set_lisp_face_attribute): Use signal_error for the
16764 error of invalid fontset.
16765
16766 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16767 fontset, return Qt.
16768
167692008-02-01 Dave Love <fx@gnu.org>
16770
16771 * unexelf.c (unexec): Make .got handling not SGI-specific.
16772
16773 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16774
16775 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16776
16777 * keyboard.c (read_key_sequence): Fix type error.
16778
16779 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16780 type error.
16781
16782 * fontset.c (fontset_add): Return Lisp_Object.
16783
167842008-02-01 Dave Love <fx@gnu.org>
16785
16786 * charset.h (charset_ordered_list_tick): Declare extern.
16787
167882008-02-01 Kenichi Handa <handa@m17n.org>
16789
16790 The following changes (and some of 2008-02-01 changes of mine) are
16791 for handling syntax, category, and case conversion for unibyte
16792 characters by converting them to multibyte on the fly. With these
16793 changes, we don't have to setup syntax and case tables for unibyte
16794 characters in each language environment.
16795
16796 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16797 multibyte if necessary.
16798
16799 * bytecode.c (Fbyte_code): Likewise.
16800
16801 * character.h (LEADING_CODE_LATIN_1_MIN)
16802 (LEADING_CODE_LATIN_1_MAX): New macros.
16803 (unibyte_to_multibyte_table): Extern it.
16804 (unibyte_char_to_multibyte): New macro.
16805 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16806 (CHAR_LEADING_CODE): New macro.
16807 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16808
16809 * character.c (unibyte_to_multibyte_table): New variable.
16810 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16811 (multibyte_char_to_unibyte): If C is an eight-bit character,
16812 convert it to the corresponding byte value.
16813
16814 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16815 not 1, signals an error. Update the elements of
16816 unibyte_to_multibyte_table.
16817 (init_charset_once): Initialize unibyte_to_multibyte_table.
16818 (syms_of_charset): Define the charset `iso-8859-1'.
16819
16820 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16821 as is without converting it to unibyte. In a unibyte buffer,
16822 convert C to multibyte before checking the syntax.
16823
16824 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16825
16826 * minibuf.c (Fminibuffer_complete_word): Use the macro
16827 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16828
16829 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16830
16831 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16832 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16833 that is zero, convert an eight-bit char to multibyte.
16834 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16835 non-emacs case.
16836 (PATFETCH): Convert an eight-bit char to multibyte.
16837 (HANDLE_UNIBYTE_RANGE): New macro.
16838 (regex_compile): Setup the compiled pattern for multibyte chars
16839 even if the given regex string is unibyte. Use PATFETCH_RAW
16840 instead of PATFETCH in many places. To handle `charset'
16841 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16842 only for ASCII chars.
16843 (analyse_first) <exactn>: Simplify because the compiled pattern
16844 is multibyte.
16845 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16846 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16847 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16848 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16849 multibyte always 1.
16850 (re_search_2): In emacs, set the locale variable multibyte to 1,
16851 otherwise to 0. New local variable target_multibyte. Check it
16852 to decide the multibyteness of STR1 and STR2. If
16853 target_multibyte is zero, convert unibyte chars to multibyte
16854 before translating and checking fastmap.
16855 (TARGET_CHAR_AND_LENGTH): New macro.
16856 (re_match_2_internal): In emacs, set the locale variable multibyte
16857 to 1, otherwise to 0. New local variable target_multibyte. Check
16858 it to decide the multibyteness of STR1 and STR2. Use
16859 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16860 <charset, charset_not>: If multibyte is nonzero, check fastmap
16861 only for ASCII chars. Call bcmp_translate with
16862 target_multibyte, not with multibyte.
16863 <begline>: Declare the local variable C as `unsigned'.
16864 (bcmp_translate): Change the last arg name to target_multibyte.
16865
16866 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16867 the regexp pattern and the matching target. Set cp->buf.multibyte
16868 to the multibyteness of the regexp pattern. Set
16869 cp->but.target_multibyte to the multibyteness of the matching target.
16870 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16871 FETCH_STRING_CHAR_ADVANCE.
16872 (Freplace_match): Convert unibyte chars to multibyte.
16873
16874 * syntax.c (char_quoted, back_comment, scan_words)
16875 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16876 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16877 unibyte chars to multibyte.
16878 (skip_chars): Delete the arg syntaxp, and move the code for
16879 handling syntaxes to skip_syntaxes. Change callers.
16880 Fix the case that the multibyteness of STRING and the current
16881 buffer doesn't match.
16882 (skip_syntaxes): New function.
16883 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16884 SINGLE_BYTE_CHAR_P.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * xfaces.c (QCfontset): New variable.
16889 (LFACE_FONTSET): New macro.
16890 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16891 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16892 (Finternal_set_lisp_face_attribute)
16893 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16894 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16895 check also LFACE_FONTSET_INDEX.
16896 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16897 attrs[LFACE_FONT_INDEX].
16898 (syms_of_xfaces): Intern and staticpro QCfontset.
16899
16900 * dispextern.h (enum lface_attribute_index): New member
16901 LFACE_FONTSET_INDEX.
16902
16903 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16904
169052008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * coding.c (coding_set_destination): Fix coding->destination for
16908 the case converting a region.
16909 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16910 (encode_coding_object): Fix coding->dst_pos and
16911 coding->dst_pos_byte for the case converting a region.
16912
16913 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16914
16915 * character.h (BYTE8_STRING): New macro.
16916
16917 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16918
169192008-02-01 Kenichi Handa <handa@m17n.org>
16920
16921 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16922 characters by octal form.
16923
16924 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16925
16926 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16927 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16928 _fetch_multibyte_char_len.
16929 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16930
16931 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16932
16933 * casefiddle.c (casify_object): Simplify. Handle the case that
16934 the case conversion change the byte length.
16935 (casify_region): Likewise.
16936
16937 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16938
16939 * character.c (_fetch_multibyte_char_len): Delete this variable.
16940 (syms_of_character): Setup Vprintable_chars.
16941
16942 * editfns.c (Fchar_equal): Fix for the unibyte case.
16943 (Finsert_byte): New function.
16944 (syms_of_editfns): Defsubr it.
16945
16946 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16947 of direct code 0x3ffff.
16948
16949 * search.c (Freplace_match): Fix for the unibyte case.
16950
169512008-02-01 Kenichi Handa <handa@m17n.org>
16952
16953 * lread.c (safe_to_load_p): Fix the logic.
16954
16955 * syntax.c (scan_words): Don't treat characters belonging to
16956 different scripts as constituting a word.
16957
16958 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16959
16960 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16961
16962 * emacs.c (main): In the case of --unibyte, instead of aborting on
16963 finding non-empty buffer, make it unibyte.
16964
169652008-02-01 Kenichi Handa <handa@m17n.org>
16966
16967 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16968 to create a fontset.
16969
169702008-02-01 Dave Love <fx@gnu.org>
16971
16972 * character.c (Funibyte_char_to_multibyte): Doc fix.
16973
16974 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16975
169762008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * fontset.c (fontset_add): Make the type `int'.
16979 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16980
16981 * character.c (unibyte_char_to_multibyte)
16982 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16983 charset_unibyte, not charset_primary.
16984
16985 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16986
16987 * charset.c (charset_unibyte): Rename from charset_primary.
16988 (Funibyte_charset): Rename from Fprimary_charset.
16989 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16990 (syms_of_charset): Adjust for the above changes.
16991
16992 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16993 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16994 it->multibyte_p is zero.
16995
16996 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16997 Delete extern.
16998
169992008-02-01 Kenichi Handa <handa@m17n.org>
17000
17001 * coding.c (Fdefine_coding_system_internal): Fix category setting
17002 for a coding system of type iso-2022.
17003
170042008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17007
170082008-02-01 Kenichi Handa <handa@m17n.org>
17009
17010 * syntax.c (Vnext_word_boundary_function_table): New variable.
17011 (next-word-boundary-function-table): Declare it as a Lisp variable
17012 in syms_of_syntax.
17013 (scan_words): Call functions in Vnext_word_boundary_function_table
17014 if any.
17015
17016 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17017
17018 * fontset.c (fs_load_font): If fontp->charset is not negative,
17019 return fontp without setting its members.
17020
170212008-02-01 Dave Love <fx@gnu.org>
17022
17023 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17024
17025 * m/sparc.h (HAVE_ALLOCA): Delete.
17026
17027 * s/irix6-5.h: Don't include strings.h.
17028 (bcopy, bzero, bcmp): Don't undef.
17029
17030 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17031
17032 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17033 (TIOCSIGSEND): Don't test IRIX6.
17034 (bcopy, bzero, bcmp): Define conditionally.
17035
170362008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * buffer.c (Qas, Qmake, Qto): New variables.
17039 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17040 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17041
17042 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17043 we are inserting a process output into a multibyte buffer.
17044
17045 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17046 multibyte_char_to_unibyte.
17047
17048 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17049 by the primary charset, make it eight-bit char.
17050 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17051
17052 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17053 (charset_8_bit__control, charset_8_bit_graphic)
17054 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17055 (define_charset_internal): New function.
17056 (syms_of_charset): Call define_charset_internal for pre-defined
17057 charsets.
17058
17059 * charset.h (charset_8_bit): Extern it.
17060
17061 * coding.c (make_conversion_work_buffer): Adjust for the change
17062 of Fset_buffer_multibyte.
17063 (encode_coding_raw_text): Increment p0 in the loop.
17064
17065 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17066
17067 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17068 for the change of Fset_buffer_multibyte.
17069
17070 * fns.c (Fstring_to_multibyte): New function.
17071 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17072
170732008-02-01 Dave Love <fx@gnu.org>
17074
17075 * xfns.c (x_put_x_image): Declare args.
17076
17077 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17078 (try_font_list): Declare an arg.
17079
17080 * xdisp.c (message2_nolog, set_message): Declare an arg.
17081
17082 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17083
17084 * syntax.c (scan_sexps_forward): Declare an arg.
17085
17086 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17087 Declare an arg.
17088
17089 * lisp.h (Fnew_fontset): Declare.
17090
17091 * keymap.c (push_key_description): Call CHARACTERP correctly.
17092
17093 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17094 (face_for_char): Delete unused vars.
17095 (Fset_fontset_font): Doc fix. Delete unused vars.
17096
17097 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17098
17099 * composite.c (update_compositions): Declare arg.
17100
17101 * cm.c (calccost, cmgoto): Declare args.
17102
17103 * charset.c: Remove `emacs' conditional. Doc fixes.
17104 (map_char_table_for_charset): Declare.
17105
17106 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17107
17108 * ccl.c: Remove `emacs' conditional.
17109
171102008-02-01 Kenichi Handa <handa@m17n.org>
17111
17112 The following changes are to allow specifying multiple font
17113 patterns for a character range (specified by script or charset).
17114
17115 * Makefile.in (abbrev.o): Depend on syntax.h.
17116 (xfaces.o): Depend on charset.h.
17117
17118 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17119 SINGLE_BYTE_CHAR_P.
17120
17121 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17122
17123 * character.h (Vchar_script_table): Extern it.
17124
17125 * character.c (Vscript_alist): Delete.
17126 (Vchar_script_table, Qchar_script_table): New variable.
17127 (syms_of_character): Declare Vchar_script_table as a lisp variable
17128 and initialize it.
17129
17130 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17131 have property char-table-extra-slots, make no extra slot.
17132
17133 * dispextern.h (struct face): Delete member `charset'.
17134 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17135 SINGLE_BYTE_CHAR_P.
17136 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17137 Add prototypes.
17138 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17139 (generate_ascii_font_name): Rename from generate_ascii_font.
17140
17141 * fontset.h (get_font_repertory_func): New prototype.
17142 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17143 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17144
17145 * fontset.c (Qprepend, Qappend): New variables.
17146 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17147 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17148 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17149 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17150 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17151 (load_font_get_repertory): New functions.
17152 (fontset_set): Delete.
17153 (fontset_face): New arg FACE. Return face ID, not face.
17154 Complete re-write to handle new fontset structure. Change caller.
17155 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17156 (face_for_char): Don't call lookup_face.
17157 (make_fontset_for_ascii_face): New arg FACE.
17158 (fs_load_font): New arg CHARSET_ID. Don't check
17159 Vfont_encoding_alist here.
17160 (find_font_encoding): New function.
17161 (list_fontsets): Use STRINGP, not ! NILP.
17162 (accumulate_script_ranges): New function.
17163 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17164 re-written to handle new fontset structure.
17165 (Ffontset_font): Return a copy of element.
17166 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17167 docstring of font-encoding-alist.
17168
17169 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17170 (Fset_fotset_font): Fix arguments to 5.
17171
17172 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17173
17174 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17175 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17176 (highlight_trailing_whitespace): Adjust for the change of
17177 lookup_named_face.
17178
17179 * xfaces.c: Include charset.h.
17180 (load_face_font): Delete argument C. Change caller.
17181 (generate_ascii_font_name): Rename from generate_ascii_font.
17182 (font_name_registry): New function.
17183 (cache_face): Store ascii faces before non-ascii faces in buckets.
17184 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17185 Lookup only ascii faces.
17186 (lookup_non_ascii_face): New function.
17187 (lookup_named_face): Delete argument C. Change caller.
17188 (lookup_derived_face): Delete argument C. Change caller.
17189 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17190 a string, just call font_list with it.
17191 (choose_face_font): Delete arguments FACE and C. New arg
17192 FONT_SPEC. Change caller.
17193 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17194 Change caller.
17195 (realize_non_ascii_face): New function.
17196 (realize_x_face): Call load_face_font here.
17197 (realize_tty_face): Delete argument C. Change caller.
17198 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17199 get a face ID.
17200 (dump_realized_face): Don't print charset of FACE.
17201
17202 * xfns.c (x_set_font): Always call x_new_fontset and
17203 store_frame_parameter.
17204 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17205 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17206
17207 * xterm.h (x_get_font_repertory): Extern it.
17208
17209 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17210 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17211 it->multibyte_p is zero.
17212 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17213 (x_new_fontset): If FONTSETNAME doesn't match any existing
17214 fontsets, create a new one.
17215 (x_get_font_repertory): New function.
17216
172172008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * coding.c (Ffind_coding_systems_region_internal): Detect an
17220 ASCII only string correctly.
17221
17222 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17223 version is 0.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * lread.c: Include "coding.h".
17228 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17229 (load_each_byte, unread_char): New variables.
17230 (readchar_backlog): Delete.
17231 (readchar): Return a character unless load_each_byte is nonzero.
17232 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17233 cons. If unread_char is not -1, simply return it.
17234 (unreadchar): Handle the case that readcharfun is
17235 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17236 (read_multibyte): Delete.
17237 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17238 (read_emacs_mule_char): New functions.
17239 (Fload): Even if the file doesn't have the extension ".elc", if
17240 safe_to_load_p returns a positive version number, assume that the
17241 file contains bytecompiled code. If the version is less than 22,
17242 load the file while decoding multibyte sequences by emacs-mule.
17243 (readevalloop): Don't use readchar_backlog.
17244 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17245 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17246 (read_escape): Delete the arg BYTEREP.
17247 (read1): Set load_each_byte to 1 temporarily while handling
17248 #@NUMBER. Don't call read_multibyte.
17249 (read_vector): Call Fread with a cons. If readcharfun is
17250 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17251 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17252 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17253 and Qload_force_doc_strings.
17254
172552008-02-01 Kenichi Handa <handa@m17n.org>
17256
17257 * xdisp.c (face_before_or_after_it_pos): Call
17258 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17259
172602008-02-01 Kenichi Handa <handa@m17n.org>
17261
17262 * character.h (TRAILING_CODE_P): New macro.
17263 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17264 (string_char_with_unification): Fix prototype.
17265 (Vscript_alist): Extern it.
17266
17267 * character.c (Vscript_alist): New variable.
17268 (string_char_with_unification, str_as_unibyte)
17269 (string_escape_byte8): Add `const' to local variables.
17270 (syms_of_character): Declare script-alist as a Lisp variable.
17271
17272 * charset.h (Vcharset_ordered_list): Extern it.
17273 (charset_ordered_list_tick): Extern it.
17274 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17275 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17276 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17277 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17278 (Funify_charset): Adjust for the change of Funify_charset.
17279
17280 * charset.c (charset_ordered_list_tick): New variable.
17281 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17282 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17283 deunify intead of unify a charset.
17284 (string_xstring_p): Add `const' to local variables.
17285 (find_charsets_in_text): Add `const' to arguments and local variables.
17286 (encode_char): Adjust for the change of Funify_charset. Fix
17287 detecting of invalid code.
17288 (Fset_charset_priority): Increment charset_ordered_list_tick.
17289 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17290 and TO_CODE.
17291
17292 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17293 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17294 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17295 (decode_coding_ccl, consume_chars)
17296 (Ffind_coding_systems_region_internal)
17297 (Fcheck_coding_systems_region): Add `const' to local variables.
17298
17299 * print.c (print_object): Use octal form for printing the
17300 contents of a bool vector.
17301
173022008-02-01 Dave Love <fx@gnu.org>
17303
17304 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17305 <version == 20>: Refuse to load.
17306
173072008-02-01 Dave Love <fx@gnu.org>
17308
17309 * fns.c: Move coding.h.
17310 (Qcodeset, Qdays, Qmonths): New.
17311 (concat): Use CHARACTERP instead of INTEGERP.
17312 (Flocale_codeset): Delete.
17313 (Flanginfo): New function.
17314 (syms_of_fns): Change accordingly.
17315
17316 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17317
173182008-02-01 Dave Love <fx@gnu.org>
17319
17320 * casetab.c (init_casetab_once, init_casetab_once): Fix
17321 CHAR_TABLE_SET call.
17322
17323 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17324
17325 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17326
17327 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17328 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17329 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17330
17331 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17332
17333 * coding.c (ENCODE_DESIGNATION, decode_eol)
17334 (make_conversion_work_buffer, code_conversion_restore)
17335 (Fdefine_coding_system_internal): Convert Lisp types.
17336 (code_conversion_restore): Use EQ, not ==.
17337 (Fencode_coding_string): Fix code_convert_string call.
17338
17339 * coding.h (code_convert_region): Fix prototype.
17340
17341 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17342
17343 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17344 (Ffontset_info): Convert Lisp types.
17345
17346 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17347
17348 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17349
17350 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17351
17352 * chartab.c: Include "...h", not <...h> in some cases.
17353
17354 * callproc.c (Fcall_process): Remove unused variables.
17355
173562008-02-01 Dave Love <fx@gnu.org>
17357
17358 * coding.c (Fset_coding_system_priority): Allow null arg list.
17359
173602008-02-01 Dave Love <fx@gnu.org>
17361
17362 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17363 (Fself_insert_and_exit): Use CHARACTERP.
17364
17365 * callproc.c (Fcall_process): Remove unused vars.
17366
17367 * xterm.c (XTread_socket): Add extra dead keysyms.
17368
17369 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17370
17371 * dispextern.h: Remove prototypes for redraw_frame,
17372 redraw_garbaged_frames.
17373
17374 * cmds.c (Fself_insert_command): Use CHARACTERP.
17375
17376 * chartab.c (make_sub_char_table): Remove unused var.
17377 (Fset_char_table_default, Fmap_char_table): Doc fix.
17378
17379 * keymap.c (access_keymap): Remove generic char code.
17380 (push_key_description): Use CHARACTERP.
17381
173822008-02-01 Dave Love <fx@gnu.org>
17383
17384 * charset.c: Doc fixes.
17385 (Funify_charset): Extra checking.
17386
173872008-02-01 Dave Love <fx@gnu.org>
17388
17389 * lread.c: Remove some unused variables.
17390 (safe_to_load_p): If safe, return the magic number version byte.
17391 (Fload): Maybe use load-with-code-conversion.
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * category.c (Fmodify_category_entry): Don't modify the contents
17396 of category_set for characters out of the range. Avoid
17397 unnecessary modification.
17398
17399 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17400 Vchar_unify_table. The default value of the table is now nil.
17401
17402 * character.c (syms_of_character): Setup Vchar_width_table for
17403 eight-bit-control and raw-byte chars.
17404
17405 * charset.h (enum define_charset_arg_index): Delete
17406 charset_arg_parents and add charset_arg_subset and
17407 charset_arg_superset.
17408 (enum charset_attr_index): Delete charset_parents and add
17409 charset_subset and charset_superset.
17410 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17411 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17412 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17413 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17414 (CHARSET_SUPERSET): New macros.
17415 (charset_work): Extern it.
17416 (ENCODE_CHAR): Use charset_work.
17417 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17418 (map_charset_chars): Extern it.
17419
17420 * charset.c (load_charset_map): Set the default value of encoder
17421 and deunifier char-tables to nil.
17422 (map_charset_chars): Change argument. Change callers. Use
17423 map_char_table_for_charset instead of map_char_table.
17424 (Fmap_charset_chars): New optional args from_code and to_code.
17425 (Fdefine_charset_internal): Adjust for the change of
17426 `define-charset' (:parents -> :subset or :superset).
17427 (charset_work): New variable.
17428 (encode_char, syms_of_charset): Adjust for the change of
17429 Fdefine_charset_internal.
17430 (Ffind_charset_string): Setup the vector `charsets' correctly.
17431
17432 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17433 the previous change.
17434 (char_table_ref_and_range): Adjust for the above change.
17435 (map_sub_char_table_for_charset): New function.
17436 (map_char_table_for_charset): New function.
17437
17438 * keymap.c (describe_vector): Handle a char-table directly here.
17439 (describe_char_table): Delete.
17440
17441 * lisp.h (map_charset_chars): Delete.
17442
174432008-02-01 Dave Love <fx@gnu.org>
17444
17445 * fns.c (count_combining): Comment out (unused).
17446 (Flocale_codeset): New.
17447 (syms_of_fns): Defsubr it.
17448
17449 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17450 (size_t): Remove.
17451
174522008-02-01 Dave Love <fx@gnu.org>
17453
17454 * Makefile.in (chartab.o): Depend on charset.h.
17455
174562008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * character.c (syms_of_character): Set the default value of
17459 Vprintable_chars to Qnil.
17460
174612008-02-01 Dave Love <fx@gnu.org>
17462
17463 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17464
174652008-02-01 Kenichi Handa <handa@m17n.org>
17466
17467 * charset.c (load_charset_map): Handle the case that from < to
17468 correctly.
17469
17470 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17471 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17472 Pay attention to raw-8-bit chars.
17473
174742008-02-01 Kenichi Handa <handa@m17n.org>
17475
17476 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17477 It is not bytecompiled now.
17478
17479 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17480 (charset_jisx0208): New variables.
17481 (Fdefine_charset_internal): Setup them if appropriate.
17482 (init_charset_once): Initialize them to -1.
17483
17484 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17485 (charset_jisx0208): Extern them.
17486
17487 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17488 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17489 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17490 (setup_iso_safe_charsets): Fix arguments to Fassq.
17491 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17492 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17493 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17494 (encode_coding_iso_2022): Change the 1st arg to
17495 ENCODE_ISO_CHARACTER to a variable.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * charset.h (enum define_charset_arg_index): New enums
17500 charset_arg_min_code and charset_arg_max_code.
17501 (struct charset): New member char_index_offset.
17502
17503 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17504 Take charset->char_index_offset into account.
17505 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17506 args[charset_arg_max_code]. Setup charset.char_index_offset.
17507 (syms_of_charset): Fix args to Fdefine_charset_internal.
17508
175092008-02-01 Dave Love <fx@gnu.org>
17510
17511 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17512
175132008-02-01 Dave Love <fx@gnu.org>
17514
17515 * coding.c: Doc fixes.
17516 (Fcoding_system_aliases): Fix return value.
17517 (Qmac): Remove (duplicated) definition.
17518
175192008-02-01 Dave Love <fx@gnu.org>
17520
362654a6
JB
17521 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17522 New functions.
aac0c6e3
MR
17523
17524 * character.c (Fstring): Doc fix.
17525
17526 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17527
362654a6 17528 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17529 (font-encoding-alist): Doc fix.
17530
175312008-02-01 Dave Love <fx@gnu.org>
17532
17533 * term.c (costs_set): Declare static, non-initialized for pcc.
17534 (encode_terminal_code): Remove unused var.
17535
17536 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17537 for K&R.
17538
17539 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17540
17541 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17542 (suffixes): Move out of make_subsidiaries for K&R.
17543
17544 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17545
17546 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17547
175482008-02-01 Dave Love <fx@gnu.org>
17549
17550 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17551
17552 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17553
175542008-02-01 Yong Lu <lyongu@asia-infonet.com>
17555
17556 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17557
17558 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17559
175602008-02-01 Kenichi Handa <handa@m17n.org>
17561
17562 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17563 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17564
175652008-02-01 Kenichi Handa <handa@m17n.org>
17566
17567 * coding.c (decode_coding_charset): Adjust for the change of
17568 Fdefine_coding_system_internal.
17569 (Fdefine_coding_system_internal): For a coding system of
17570 `charset' type, store a list of charset IDs in
17571 `charset_attr_charset_valids' element of coding attributes.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17576 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17577 caller. Handle 2-byte and 3-byte charsets correctly.
17578 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17579 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17580 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17581 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17582 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17583 sequence.
17584 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17585 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17586 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17587 and alt&rule composition.
17588 (decode_coding_iso_2022): Handle composition correctly.
17589 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17590
17591 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17592 re-defining a charset. If the charset has :emacs-mule-id, setup
17593 emacs_mule_bytes.
17594 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17595
175962008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17599 (encode_coding_big5, encode_coding_charset): If coding requires safe
17600 encoding, produce a character specified by
17601 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17602
176032008-02-01 Dave Love <fx@gnu.org>
17604
17605 * xterm.c (XSetIMValues): Declare.
17606
17607 * process.c: Conditionally include sys/wait.h, pty.h.
17608
17609 * print.c (print_object): Fix print format for 64-bit systems.
17610
17611 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17612
17613 * buffer.c (emacs_strerror): Declare.
17614
17615 * fontset.c (Fclear_face_cache): Declare.
17616 (accumulate_font_info): Comment-out (unused).
17617 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17618 variables.
17619
17620 * character.h (string_escape_byte8): Declare.
17621
17622 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17623 unused vars.
17624 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17625 (Fmap_charset_chars): Doc fix.
17626
17627 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17628 (Fset_coding_system_priority, Fset_coding_system_priority)
17629 (Fdefine_coding_system_internal): Doc fix.
17630
176312008-02-01 Dave Love <fx@gnu.org>
17632
17633 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17634
176352008-02-01 Kenichi Handa <handa@m17n.org>
17636
17637 * character.c (string_escape_byte8): Make multibyte string with
17638 correct size.
17639
17640 * charset.c (Fmake_char): Delete unnecessary code.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * xfns.c (x_encode_text): Allocate coding.destination here, and
17645 call encode_coding_object with dst_object Qnil.
17646
17647 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17648 multibyte form correctly.
17649
17650 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17651 against Vfont_encoding_alist.
17652
17653 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17654 handling of charset list.
17655 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17656 (decode_coding_object): Move point to coding->dst_pos before
17657 calling post-read-conversion function.
17658 (encode_coding_object): Give correct arguments to
17659 pre-write-conversion. Ignore the return value of
17660 pre-write-conversion function. Pay attention to the case that
17661 pre-write-conversion changes the current buffer. If dst_object is
17662 Qt, even if coding->src_bytes is zero, allocate at least one byte
17663 to coding->destination.
17664
17665 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17666
17667 * charset.c (Fmake_char): Make it more backward compatible.
17668 (Fmap_charset_chars): Fix docstring.
17669
176702008-02-01 Dave Love <fx@gnu.org>
17671
17672 * coding.c: Doc fixes.
17673 (Fdefine_coding_system_alias): Use names, not symbols, in
17674 coding-system-alist.
17675
176762008-02-01 Kenichi Handa <handa@m17n.org>
17677
17678 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17679 of calling free_realized_face.
17680
176812008-02-01 Yong Lu <lyongu@asia-infonet.com>
17682
17683 * charset.c (read_hex): Don't treat SPC as a comment starter.
17684 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17685 (Fdecode_char): Fix typo.
17686
176872008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * charset.h (struct charset): New member `code_space_mask'.
17690
17691 * coding.c (coding_set_source): Delete the local variable beg_byte.
17692 (encode_coding_charset, Fdefine_coding_system_internal):
17693 Delete the local variable charset.
17694 (Fdefine_coding_system_internal): Setup
17695 attrs[coding_attr_charset_valids] correctly.
17696
17697 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17698 member to check if CODE is valid or not.
17699 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17700 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17701 is within the range of charset->min_code and carset->max_code.
17702
177032008-02-01 Dave Love <fx@gnu.org>
17704
17705 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17706
17707 * dispextern.h (generate_ascii_font): Fix return type.
17708
17709 * xfaces.c (generate_ascii_font): Fix arg declaration.
17710
17711 * coding.c (coding_inherit_eol_type)
17712 (Fset_terminal_coding_system_internal)
17713 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17718 multiple charsets correctly.
17719
177202008-02-01 Kenichi Handa <handa@m17n.org>
17721
17722 * search.c (boyer_moore): Fix handling of multibyte character
17723 translation.
17724
17725 * xdisp.c (display_mode_element): When the variable `elt' is
17726 changed, update `this' and `lisp_string'.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17731
17732 * callproc.c (Fcall_process): Be sure to give the current buffer
17733 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17734
17735 * charset.c (struct charset_map_entries): New struct.
17736 (load_charset_map): Rename from parse_charset_map. New args
17737 entries and n_entries. Change caller.
17738 (load_charset_map_from_file): Rename from load_charset_map.
17739 Change caller. New arg control_flag. Call load_charset_map at
17740 the tail.
17741 (load_charset_map_from_vector): New function.
17742 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17743 (encode_char): If the charset is compact, change a character index
17744 to a code point.
17745
17746 * coding.c (coding_alloc_by_making_gap): Check the case that the
17747 source and destination are the same correctly.
17748 (decode_coding_raw_text): Set coding->consumed_char and
17749 coding->consumed to 0.
17750 (produce_chars): If coding->chars_at_source is nonzero, update
17751 coding->consumed_char and coding->consumed before calling
17752 alloc_destination.
17753 (Fdefine_coding_system_alias): Register ALIAS in
17754 Vcoding_system_alist.
17755 (syms_of_coding): Define `no-conversion' coding system at the tail.
17756
17757 * fileio.c (Finsert_file_contents): Set coding_system instead of
17758 val. If the current buffer is multibyte, always call
17759 decode_coding_gap.
17760
17761 * xfaces.c (try_font_list): Give higher priority to fontset's
17762 family than face's family.
17763
177642008-02-01 Kenichi Handa <handa@m17n.org>
17765
17766 * callproc.c (Fcall_process): Be sure to give the current buffer
17767 to decode_coding_c_string.
17768
17769 * xfaces.c (try_font_list): Give a family specified in a fontset
17770 higher priority than a family specified in a face.
17771
177722008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17775 Fix arguments to insert_from_buffer.
17776
17777 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17778
177792008-02-01 Kenichi Handa <handa@m17n.org>
17780
17781 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17782 (decode_coding_gap): Set coding->dst_multibyte correctly.
17783
177842008-02-01 Kenichi Handa <handa@m17n.org>
17785
17786 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17787 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17788 (encode_coding_utf_16): Substitute coding->default_char for
17789 non-Unicode characters.
17790 (decode_coding): Don't call record_insert here.
17791 (setup_coding_system): Initialize `surrogate' of
17792 coding->spec.utf_16 to 0.
17793 (EMIT_ONE_BYTE): Fix for multibyte case.
17794
17795 * insdel.c (insert_from_gap): Call record_insert.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * casefiddle.c (casify_region): Fix multibyte case.
17800
17801 * character.c (c_string_width): Add return type `int'.
17802 (char_string_with_unification): Delete arg ADVANCED.
17803
17804 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17805 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17806 (CHAR_STRING_ADVANCE): Make it do-while statement.
17807
17808 * chartab.c (sub_char_table_set_range): Optimize for the case
17809 DEPTH == 3. Add workaround code for a GCC optimization bug.
17810
17811 * charset.c (parse_charset_map): Remove an unused variable.
17812
17813 * coding.c: Delete unused variables.
17814
17815 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17816 earlier. If inserted is zero and the coding system doesn't
17817 require flushing, don't call decode_coding_gap.
17818
17819 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17820
178212008-02-01 Kenichi Handa <handa@m17n.org>
17822
17823 The following changes are for using Unicode as an internal
17824 character model, and use UTF-8 format for buffer/string
17825 representation.
17826
17827 * .gdbinit (xchartable): Adjust for the change of char table structure.
17828 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17829
17830 * Makefile.in (obj): Add character.o and chartab.o.
17831 (lisp, shortlisp): Remove utf-8.elc.
17832 (*.o): For many files, change dependency on charset.h to
17833 character.h, and add dependency on character.h.
17834 (character.o, chartab.o): New targets.
17835
17836 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17837 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17838 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17839 of "charset.h".
17840
17841 * dired.c, filelock.c: Include "character.h".
17842
17843 * alloc.c: Include "character.h" instead of "charset.h".
17844 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17845 (syms_of_alloc): Remove defsubr for Smake_char_table.
17846
17847 * buffer.c: Include "character.h" instead of "charset.h", don't
17848 include "coding.h".
17849 (Fset_buffer_multibyte): Adjust for UTF-8.
17850
17851 * buffer.h: EXFUN Fbuffer_live_p.
17852
17853 * callproc.c: Include "character.h" instead of "charset.h".
17854 (Fcall_process): Big change for the new code-conversion APIs.
17855
17856 * casetab.c: Include "character.h" instead of "charset.h".
17857 (set_canon, set_identity, shuffle): Adjust for the new
17858 map_char_table spec.
17859 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17860 accessing the char table structure.
17861
17862 * chartab.c: New file that implements char table.
17863
17864 * category.c: Include "character.h".
17865 (copy_category_entry): New function.
17866 (copy_category_table): Call map_char_table and copy_category_entry.
17867 (Fmake_category_table): Initialize all top-level slots.
17868 (char_category_set): New function.
17869 (modify_lower_category_set): Delete.
17870 (Fmodify_category_entry): Call char_table_ref_and_range.
17871
17872 * category.h (CATEGORY_SET): Just call char_category_set.
17873
17874 * ccl.c: Include "character.h".
17875 (Qccl, Qcclp): New variables.
17876 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17877 it's less than 256.
17878 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17879 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17880 and DST type.
17881 (ccl_driver): Change types of argument, adjust code accordingly.
17882 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17883 ccl_driver.
17884 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17885
17886 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17887 New members src_multibyte, dst_multibyte, consumed, and produced.
17888 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17889 (CODING_SPEC_CCL_PROGRAM): New macro.
17890 (ccl_driver): Update prototype.
17891 (Qccl, Qcclp, Fccl_program_p): Extern them.
17892 (CHECK_CCL_PROGRAM): New macro.
17893
17894 * character.c, character.h, chartab.c: New files.
17895
17896 * charset.c: Mostly re-written. Move character and multibyte sequence
17897 handling codes to character.c.
17898
17899 * charset.h: Mostly re-written. Move character and multibyte sequence
17900 handling codes to character.h.
17901
17902 * coding.c, coding.h: Mostly re-written.
17903
17904 * composite.c: Include "character.h" instead of "charset.h".
17905 (CHAR_WIDTH): Move to character.h.
17906 (HASH_KEY, HASH_VALUE): Delete.
17907
17908 * composite.h (enum composition_method): Change order of enumeration
17909 symbols.
17910
17911 * data.c: Include "character.h" instead of "charset.h".
17912 (Faref): Call CHAR_TABLE_REF for a char table.
17913 (Faset): Call CHAR_TABLE_SET for a char table.
17914
17915 * dispextern.h (free_realized_face, check_face_attribytes)
17916 (generate_ascii_font): Extern them.
17917 (free_realized_multibyte_face): Delete extern.
17918
17919 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17920 table structure.
17921
17922 * editfns.c: Include "character.h" instead of "charset.h".
17923 (Fchar_to_string): Always call CHAR_STRING.
17924
17925 * emacs.c (main): Call init_charset_once, init_charset,
17926 syms_of_chartab, and syms_of_character.
17927
17928 * fileio.c: Include "character.h" instead of "charset.h".
17929 (Finsert_file_contents): Big change for the new code-conversion API.
17930 (choose_write_coding_system, Fwrite_region): Likewise.
17931 (build_annotations_2): Delete.
17932 (e_write): Big change for the new code-conversion API.
17933
17934 * fns.c: Include "character.h" instead of "charset.h".
17935 (copy_sub_char_table): Move to chartab.c.
17936 (Fcopy_sequence): Call copy_char_table for a char table.
17937 (concat): Delete codes calling count_multibyte.
17938 (string_char_to_byte, string_byte_to_char): Adjust for the new
17939 multibyte form.
17940 (internal_equal): Adjust for the change of char table structure.
17941 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17942 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17943 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17944 (char_table_translate, optimize_sub_char_table)
17945 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17946 chartab.c.
17947 (char_table_ref_and_index): Delete.
17948 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17949 (Fmd5): Call preferred_coding_system instead of accessing
17950 Vcoding_category_list. Adjust for the new code-conversion API.
17951 (syms_of_fns): Move defsubr for char table related functions to
17952 chartab.c.
17953
17954 * fontset.c: Mostly re-written.
17955
17956 * fontset.h (struct font_info): Change type of the member encoding_type.
17957 (enum FONT_SPEC_INDEX): New enum.
17958 (fontset_font_pattern, fs_load_font): Update prototype.
17959 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17960
17961 * indent.c: Include "character.h" instead of "charset.h".
17962 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17963
17964 * insdel.c: Include "character.h" instead of "charset.h".
17965 (copy_text): Don't refer to Vnonascii_translation_table.
17966 (insert_from_gap): New function.
17967
17968 * keyboard.c: Include "character.h" instead of "charset.h".
17969 (command_loop_1): Never call direct_output_forward_char before
17970 a non-ASCII character.
17971 (read_char): If Vkeyboard_translate_table is a char table, always
17972 translate a character.
17973
17974 * keymap.c: Include "character.h".
17975 (store_in_keymap): Handle the case that IDX is a cons.
17976 (Fdefine_key): Handle the case that KEY is a cons and the car part
17977 is also a cons (range).
17978 (push_key_description): Adjust for the new character code.
17979 (describe_vector): Call describe_char_table for a char table.
17980 (describe_char_table): New function.
17981
17982 * keymap.h (describe_char_table): Extern it.
17983
17984 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17985 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17986 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17987 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17988 Delete.
17989 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17990 structure.
17991 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17992 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17993 (CHARTAB_SIZE_BITS_3): New macros.
17994 (chartab_size): Extern it.
17995 (struct Lisp_Char_Table): Re-design.
17996 (struct Lisp_Sub_Char_Table): New structure.
17997 (HASH_KEY, HASH_VALUE): Move from fns.c.
17998 (CHARACTERBITS): Define as 22.
17999 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18000 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18001 (GC_SUB_CHAR_TABLE_P): New macro.
18002 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18003 (code_convert_string_norecord): Deleted extern.
18004 (init_character_once, syms_of_character, init_charset)
18005 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18006
18007 * lread.c: Include "character.h".
18008 (read_multibyte): New arg NBYTES.
18009 (read_escape): Change the meaning of returned *BYTEREP.
18010 (to_multibyte): Delete.
18011 (read1): Adjust the handling of char table and string.
18012
18013 * print.c: Include "character.h" instead of "charset.h".
18014 (print_string): Convert 8-bit raw bytes to octal form by
18015 string_escape_byte8.
18016 (print_object): Adjust for the new multibyte form. Print 8-bit
18017 raw bytes always in octal form. Handle sub char table correctly.
18018
18019 * process.c: Include "character.h" instead of "charset.h".
18020 (read_process_output, send_process): Adjust for the new
18021 code-conversion API.
18022
18023 * puresize.h (BASE_PURESIZE): Increase.
18024
18025 * regex.c: Include "character.h" instead of "charset.h".
18026 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18027 (regex_compile): Accept a range whose starting and ending
18028 character have different leading bytes.
18029 (analyse_first): Adjust for the above change.
18030
18031 * search.c: Include "character.h" instead of "charset.h".
18032 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18033 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18034
18035 * syntax.c: Include "character.h" instead of "charset.h".
18036 (syntax_parent_lookup): Delete.
18037 (Fmodify_syntax_entry): Accept a cons as CHAR.
18038 (skip_chars): Adjust for the new multibyte form.
18039 (init_syntax_once): Call char_table_set_range instead of directly
18040 accessing the structure of a char table.
18041
18042 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18043 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18044 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18045 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18046
18047 * term.c: Include "buffer.h" and "character.h".
18048 (encode_terminal_code, write_glyphs): Adjust for the new
18049 code-conversion API.
18050 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18051
18052 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18053
18054 * xdisp.c: Include "character.h".
18055 (get_next_display_element): Adjust for the new multibyte form.
18056 (disp_char_vector): Adjust for the new char table structure.
18057 (decode_mode_spec_coding): Adjust for the new structure of
18058 coding system.
18059 (decode_mode_spec): Adjust for the new code-conversion API.
18060
18061 * xfaces.c: Include "character.h" instead of "charset.h".
18062 (load_face_font): Adjust for the change of choose_face_font and
18063 FS_LOAD_FONT.
18064 (generate_ascii_font): New function.
18065 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18066 (set_font_frame_param): Adjust for the change of choose_face_font.
18067 (free_realized_face): Make it public.
18068 (free_realized_faces_for_fontset): Rename from
18069 free_realized_multibyte_face. Free also faces realized for ASCII.
18070 (choose_face_font): Change arguments. Adjust for the change of
18071 fontset_font_pattern and FS_LOAD_FONT.
18072
18073 * xfns.c: Include "character.h".
18074 (x_encode_text): Adjust for the new code-conversion API.
18075
18076 * xselect.c: Don't include "charset.h".
18077 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18078
18079 * xterm.c: Include "character.h".
18080 (x_encode_char): New argument CHARSET. Change caller.
18081 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18082 Call ENCODE_CHAR instead of SPLIT_CHAR.
18083 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18084 CHAR_WIDTH instead of CHARSET_WIDTH.
18085 (XTread_socket): Adjust for the new code-conversion API.
18086 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18087 (x_load_font): Adjust for the change of struct font.
18088
180892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18090
18091 * xfaces.c (face_at_buffer_position): Remove unused vars.
18092
180932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18096 Fix overflow checking.
18097
180982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18099
18100 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18101 Cancel previous change.
18102
181032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18104
18105 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18106 ccl->eight_bit_control. Fix check for buffer overflow.
18107 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18108 (ccl_driver): Initialize extra_bytes to 0.
18109
181102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18111
18112 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18113 return it ORed with ctrl_modifier.
18114
181152008-01-29 Miles Bader <miles@gnu.org>
18116
18117 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18118
181192008-01-28 Jason Rumney <jasonr@gnu.org>
18120
18121 * w32.c (stat): Don't double check for networked drive.
18122
181232008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18124
18125 * window.c (run_window_configuration_change_hook): New function.
18126 Code extracted from set_window_buffer. Set the selected frame.
18127 (set_window_buffer): Use it.
18128 * window.h (run_window_configuration_change_hook): Declare.
18129 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18130
18131 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18132
181332008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18134
18135 * Makefile.in: Remove references to unused macros.
18136
181372008-01-26 Eli Zaretskii <eliz@gnu.org>
18138
18139 * w32.c (g_b_init_get_sid_sub_authority)
18140 (g_b_init_get_sid_sub_authority_count): New static variables.
18141 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18142 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18143 (init_user_info): Use them to retrieve uid and gid.
18144 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18145 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18146 st_uid and st_gid of the file.
18147
181482008-01-26 Jason Rumney <jasonr@gnu.org>
18149
18150 * w32.c (logon_network_drive): New function.
18151 (stat): Use it.
18152
181532008-01-26 Chong Yidong <cyd@stupidchicken.com>
18154
18155 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18156 invisible text covered with an ellipsis.
18157
181582008-01-25 Richard Stallman <rms@gnu.org>
18159
18160 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18161 jump back to beginning. Move some other initializations after that.
18162 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18163 New variables.
18164 (syms_of_xdisp): Init them.
18165
18166 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18167
18168 * buffer.c (reset_buffer_local_variables):
18169 Implement `permanent-local-hook'.
18170 (Qpermanent_local_hook): New variable.
18171 (syms_of_buffer): Init and staticpro it.
18172
181732008-01-25 Michael Albinus <michael.albinus@gmx.de>
18174
18175 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18176
181772008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18178
18179 * fns.c (Fclrhash): Return TABLE.
18180
181812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18182
18183 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18184 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18185 is set even without positional changes.
18186 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18187
18188 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18189
181902008-01-23 Jason Rumney <jasonr@gnu.org>
18191
18192 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18193
18194 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18195 the unicode range available in MULE by locale-coding-system.
18196 Improve dbcs lead byte detection. Set event timestamp and modifiers
18197 earlier.
18198
181992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18200
18201 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18202 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18203 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18204 when used on child processes.
18205
182062008-01-21 Michael Albinus <michael.albinus@gmx.de>
18207
18208 * dbusbind.c (Fdbus_method_return_internal): Rename from
18209 Fdbus_method_return.
18210 (Fdbus_unregister_object): Move to dbus.el.
18211 (Fdbus_call_method, Fdbus_method_return_internal)
18212 (Fdbus_send_signal): Improve debug messages.
18213
182142008-01-20 Martin Rudalics <rudalics@gmx.at>
18215
18216 * undo.c (undo_inhibit_record_point): New variable.
18217 (syms_of_undo): Initialize it.
18218 (record_point): Don't record point when undo_inhibit_record_point
18219 is set.
18220
182212008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18222
18223 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18224
18225 * xdisp.c (Qauto_hscroll_mode): New var.
18226 (syms_of_xdisp): Initialize it.
18227 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18228 window's buffer.
18229 (hscroll_windows): Don't check automatic_hscrolling_p here.
18230
18231 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18232 vscroll if we're setting window-buffer to the value it already has.
18233
182342008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18235
18236 * m/intel386.h: Remove references to XENIX.
18237
182382008-01-17 Andreas Schwab <schwab@suse.de>
18239
18240 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18241 instead of HAVE_X86_64_LIB64_DIR.
18242 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18243
182442008-01-17 Glenn Morris <rgm@gnu.org>
18245
18246 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18247 to HAVE_X86_64_LIB64_DIR.
18248
182492008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18250
18251 * s/irix3-3.h:
18252 * s/irix4-0.h:
18253 * s/386-ix.h:
18254 * s/domain.h:
18255 * s/hpux9-x11r4.h:
18256 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18257
18258 * sysdep.c: Remove code containing references to symbols defined
18259 by unsupported systems.
18260
182612008-01-16 Glenn Morris <rgm@gnu.org>
18262
18263 * coding.c (select-safe-coding-system-function): Doc fix.
18264
182652008-01-15 Glenn Morris <rgm@gnu.org>
18266
18267 * config.in: Revert 2008-01-13 change: this is a generated file.
18268
182692008-01-13 Tom Tromey <tromey@redhat.com>
18270
18271 * lisp.h: Fix typo.
18272
182732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18274
18275 * m/sequent-ptx.h:
18276 * m/sequent.h:
18277 * s/ptx.h:
18278 * s/ptx4-2.h:
18279 * s/ptx4.h: Remove files for systems no longer supported.
18280
18281 * callproc.c (Fcall_process): Fix previous change.
18282
182832008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18284
18285 * unexsunos4.c: Remove file, system not supported anymore.
18286
18287 * m/mips.h:
18288 * m/intel386.h:
18289 * callproc.c:
18290 * config.in:
18291 * ecrt0.c:
18292 * emacs.c:
18293 * fileio.c:
18294 * frame.c:
18295 * getpagesize.h:
18296 * keyboard.c:
18297 * lread.c:
18298 * process.c:
18299 * puresize.h:
18300 * sysdep.c:
18301 * systty.h:
18302 * syswait.h:
18303 * unexec.c:
18304 * xdisp.c:
18305 * alloc.c: Remove code containing references to symbols defined by
18306 unsupported systems.
18307
183082008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18309
18310 * coding.c (detect_coding_mask): Fix previous change.
18311
183122008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18313
18314 * coding.c (detect_coding_iso2022): New arg
18315 latin_extra_code_state. Allow Latin extra codes only
18316 when *latin_extra_code_state is nonzero.
18317 (detect_coding_mask): If there is a NULL byte, detect the encoding
18318 as UTF-16 or binary. If Latin extra codes exist, detect the
18319 encoding as ISO-2022 only when there's no other proper encoding is
18320 found.
18321
183222008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18323
18324 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18325 #ifdef MAC_OS.
18326
183272008-01-08 Richard Stallman <rms@gnu.org>
18328
18329 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18330
183312008-01-06 Nick Roberts <nickrob@snap.net.nz>
18332
18333 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18334 menu bar in parentheses.
18335
183362008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18337
18338 * m/7300.h:
18339 * m/acorn.h:
18340 * m/alliant-2800.h:
18341 * m/alliant.h:
18342 * m/alliant1.h:
18343 * m/alliant4.h:
18344 * m/altos.h:
18345 * m/amdahl.h:
18346 * m/apollo.h:
18347 * m/att3b.h:
18348 * m/aviion-intel.h:
18349 * m/aviion.h:
18350 * m/celerity.h:
18351 * m/clipper.h:
18352 * m/cnvrgnt.h:
18353 * m/convex.h:
18354 * m/cydra5.h:
18355 * m/delta88k.h:
18356 * m/dpx2.h:
18357 * m/dual.h:
18358 * m/elxsi.h:
18359 * m/f301.h:
18360 * m/gould-np1.h:
18361 * m/gould.h:
18362 * m/i860.h:
18363 * m/ibmps2-aix.h:
18364 * m/ibmrt-aix.h:
18365 * m/ibmrt.h:
18366 * m/irist.h:
18367 * m/is386.h:
18368 * m/isi-ov.h:
18369 * m/mega68.h:
18370 * m/mg1.h:
18371 * m/news-r6.h:
18372 * m/news-risc.h:
18373 * m/news.h:
18374 * m/nh3000.h:
18375 * m/nh4000.h:
18376 * m/ns16000.h:
18377 * m/ns32000.h:
18378 * m/nu.h:
18379 * m/orion.h:
18380 * m/orion105.h:
18381 * m/paragon.h:
18382 * m/pfa50.h:
18383 * m/plexus.h:
18384 * m/pyramid.h:
18385 * m/pyrmips.h:
18386 * m/sh3el.h:
18387 * m/sps7.h:
18388 * m/sr2k.h:
18389 * m/stride.h:
18390 * m/sun1.h:
18391 * m/sun2.h:
18392 * m/sun3-68881.h:
18393 * m/sun3-fpa.h:
18394 * m/sun3-soft.h:
18395 * m/sun3.h:
18396 * m/sun386.h:
18397 * m/symmetry.h:
18398 * m/tad68k.h:
18399 * m/tahoe.h:
18400 * m/targon31.h:
18401 * m/tek4300.h:
18402 * m/tekxd88.h:
18403 * m/tower32.h:
18404 * m/tower32v3.h:
18405 * m/ustation.h:
18406 * m/wicat.h:
18407 * m/xps100.h:
18408 * s/cxux.h:
18409 * s/cxux7.h:
18410 * s/dgux.h:
18411 * s/dgux4.h:
18412 * s/dgux5-4-3.h:
18413 * s/dgux5-4r2.h:
18414 * s/esix.h:
18415 * s/esix5r4.h:
18416 * s/hiuxmpp.h:
18417 * s/hiuxwe2.h:
18418 * s/iris3-5.h:
18419 * s/iris3-6.h:
18420 * s/isc2-2.h:
18421 * s/isc3-0.h:
18422 * s/isc4-0.h:
18423 * s/isc4-1.h:
18424 * s/newsos5.h:
18425 * s/newsos6.h:
18426 * s/osf1.h:
18427 * s/osf5-0.h:
18428 * s/riscix1-1.h:
18429 * s/riscix12.h:
18430 * s/sco4.h:
18431 * s/sco5.h:
18432 * s/sunos4-0.h:
18433 * s/sunos4-1.h:
18434 * s/sunos413.h:
18435 * s/sunos4shr.h:
18436 * s/umax.h:
18437 * s/unipl5-2.h:
18438 * s/xenix.h:
18439 * cxux-crt0.s:
18440 * unexapollo.c:
18441 * unexconvex.c:
18442 * unexenix.c:
18443 * unexsni.c: Remove files for systems no longer supported.
18444
18445 * m/intel386.h: Remove references to unsupported systems.
18446
18447 * w32.c (get_emacs_configuration): Remove reference to i860.
18448
18449 * sysdep.c: Remove dead code.
18450
184512008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18452
18453 * s/rtu.h:
18454 * m/masscomp.h: Remove files. Platform is obsolete.
18455
184562008-01-04 Michael Albinus <michael.albinus@gmx.de>
18457
18458 * dbusbind.c (Fdbus_method_return): New function.
18459 (xd_read_message): Add the serial number to the event.
18460 (Fdbus_register_method): Activate the function.
18461
184622008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18463
18464 * keyboard.c (read_key_sequence): Fix typo.
18465
184662008-01-03 Michael Albinus <michael.albinus@gmx.de>
18467
18468 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18469 (xd_signature, xd_append_arg): Handle element type detection for
18470 empty arrays.
18471 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18472 SDATA () calls; this must be solved more general.
18473 (Fdbus_register_signal): Use SBYTES instead of strlen.
18474
184752008-01-03 Magnus Henoch <magnus@zemdatav>
18476
18477 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18478 unsigned int for byte values (necessary for big-endian platform).
18479 (Fdbus_call_method): Handle the case of no returned arguments.
18480
184812007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18482
18483 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18484
184852007-12-31 Magnus Henoch <mange@freemail.hu>
18486
18487 * dbusbind.c (xd_signature): Signature of variant is just "v".
18488
184892007-12-30 Michael Albinus <michael.albinus@gmx.de>
18490
18491 * dbusbind.c: Fix several errors and compiler warnings.
18492 Reported by Tom Tromey <tromey@redhat.com>.
18493 (XD_ERROR, XD_DEBUG_MESSAGE)
18494 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18495 (xd_append_arg): Part for basic D-Bus types rewritten.
18496 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18497 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18498 appropriate.
18499 (xd_read_message): Return Qnil. Don't signal an error; it is not
18500 useful during event reading.
18501 (Fdbus_register_signal): Signal an error if the check for
18502 FUNCTIONP fails.
18503 (Fdbus_register_method): New function. The implementation is not
18504 complete, the call of the function signals an error therefore.
18505 (Fdbus_unregister_object): New function, renamed from
18506 Fdbus_unregister_signal. The initial check signals an error, if
18507 the object is not well formed.
18508
185092007-12-30 Richard Stallman <rms@gnu.org>
18510
18511 * textprop.c (get_char_property_and_overlay):
18512 Signal error if POSITION is out of range in a buffer.
18513
185142007-12-29 Martin Rudalics <rudalics@gmx.at>
18515
18516 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18517 because the original parameters are in pure storage now.
18518
185192007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18520
18521 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18522
185232007-12-22 Eli Zaretskii <eliz@gnu.org>
18524
18525 * callint.c (syms_of_callint) <command-history>: Add reference to
18526 history-length in the doc string.
18527
185282007-12-17 Jason Rumney <jasonr@gnu.org>
18529
18530 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18531 before passing as wParam.
18532
185332007-12-22 Michael Albinus <michael.albinus@gmx.de>
18534
18535 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18536 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18537 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18538 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18539 as number.
18540 (Fdbus_call_method): Fix docstring.
18541
185422007-12-21 Michael Albinus <michael.albinus@gmx.de>
18543
18544 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18545 New macros.
18546 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18547 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18548 Simplify.
18549 (xd_signature): New function.
18550 (xd_append_arg): Compute also signatures. Major rewrite.
18551 (xd_retrieve_arg): Make debug messages friendly.
18552 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18553 Check for signatures of arguments.
18554
185552007-12-19 Michael Albinus <michael.albinus@gmx.de>
18556
18557 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18558 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18559 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18560 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18561 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18562 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18563 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18564 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18565 (xd_retrieve_value): Remove. Functionality included in ...
18566 (xd_append_arg): New function.
18567 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18568
185692007-12-16 Michael Albinus <michael.albinus@gmx.de>
18570
18571 * dbusbind.c (top): Include <stdio.h>.
18572 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18573 dbus_message_new_method_call and dbus_message_new_signal.
18574 (Fdbus_register_signal): Rename unique_name to uname.
18575 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18576 non-existing unique name. Fix typos in matching rule. Return an
18577 object which is useful in Fdbus_unregister_signal.
18578 (Fdbus_unregister_signal): Reimplementation, in order to remove
18579 only the corresponding entry.
18580 (Vdbus_registered_functions_table): Change the order of entries.
18581 Apply these changes in xd_read_message and Fdbus_register_signal.
18582
185832007-12-16 Andreas Schwab <schwab@suse.de>
18584
18585 * fileio.c (Finsert_file_contents): Fix overflow check to not
18586 depend on undefined integer overflow.
18587
185882007-12-14 Jason Rumney <jasonr@gnu.org>
18589
18590 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18591 for characters above 127.
18592
185932007-12-13 Jason Rumney <jasonr@gnu.org>
18594
18595 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18596 before dereferencing array.
18597 (lookup_vk_code): Remove zero comparison.
18598
185992007-12-14 Michael Albinus <michael.albinus@gmx.de>
18600
18601 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18602 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18603 Use `unsigned int' instead of `uint'.
18604 (xd_read_message, Fdbus_register_signal): Split expressions into
18605 multiple lines before operators "&&" and "||", according to the
18606 GNU Coding Standards.
18607
186082007-12-14 Eli Zaretskii <eliz@gnu.org>
18609
18610 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18611
186122007-12-12 Juri Linkov <juri@jurta.org>
18613
18614 * buffer.c (Frename_buffer): In interactive spec replace
18615 `read-buffer' with `read-string' that uses `buffer-name-history'
18616 as history, and the current buffer's name as default.
18617
186182007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18619
18620 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18621 manipulating the backtrace manually.
18622 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18623 (struct backtrace, backtrace_list): Remove.
18624 (command_loop_1): Remove dead var `no_direct'.
18625
18626 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18627 preserve non-built-in buffer-local variables.
18628 (Fkill_all_local_variables): Don't re-create&re-set permanent
18629 buffer-local variables.
18630
186312007-12-09 Juri Linkov <juri@jurta.org>
18632
18633 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18634 Lisp code that uses `read-buffer' with current buffer as default.
18635
186362007-12-08 Michael Albinus <michael.albinus@gmx.de>
18637
18638 * dbusbind.c (xd_read_message): Generate an event for every
18639 registered handler. There might be several handlers registered
18640 for the same signal.
18641 (Fdbus_register_signal): Don't overwrite a registration for the
18642 same signal. Add a new registration if handlers are different.
18643 (Vdbus_registered_functions_table): Rework doc string.
18644
186452007-12-07 Michael Albinus <michael.albinus@gmx.de>
18646
18647 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18648 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18649 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18650 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18651 Unify argument lists.
18652 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18653 arguments and hash table keys. Use unique name for service.
18654 (Fdbus_unregister_signal): Remove checks.
18655 (Vdbus_registered_functions_table): Fix doc string.
18656
186572007-12-05 Magnus Henoch <mange@freemail.hu>
18658
18659 * process.c (make_process): Initialize pty_flag to 0.
18660
186612007-12-05 Jason Rumney <jasonr@gnu.org>
18662
18663 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18664 specified XBMs.
18665
186662007-12-05 Richard Stallman <rms@gnu.org>
18667
18668 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18669
186702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18671
18672 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18673 New variable.
18674 (mac_try_close_socket) [MAC_OSX]: New function.
18675 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18676 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18677
18678 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18679 Use mac_try_close_socket.
18680
186812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18682
18683 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18684 reloc_base.
18685 (copy_dysymtab): Compute relocation base here.
18686 (rebase_reloc_address) [__ppc64__]: New function.
18687 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18688 changed.
18689
186902007-12-05 Jason Rumney <jasonr@gnu.org>
18691
18692 * w32proc.c (sys_spawnve): Quote args with wildcards.
18693
186942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18695
18696 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18697 __objc_* sections.
18698 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18699
187002007-12-05 Michael Albinus <michael.albinus@gmx.de>
18701
18702 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18703 Move check for Vdbus_registered_functions_table to
18704 xd_read_queued_messages.
18705 (xd_read_queued_messages): Protect xd_read_message calls by
18706 internal_condition_case_1.
18707
187082007-12-04 Michael Albinus <michael.albinus@gmx.de>
18709
18710 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18711 Qdbus_system_bus and Qdbus_session_bus, respectively.
18712 (Vdbus_intern_symbols): Remove.
18713 (Vdbus_registered_functions_table): New hash table.
18714 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18715 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18716 Rewrite in order to manage registered functions by hash table
18717 Vdbus_registered_functions_table.
18718
187192007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18720
18721 * xterm.c: Update URL to Window Manager Specification in comment.
18722
187232007-12-02 Michael Albinus <michael.albinus@gmx.de>
18724
18725 * config.in (HAVE_DBUS): Add.
18726
18727 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18728 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18729 (obj): Add $(DBUS_OBJ).
18730 (LIBES): Add $(DBUS_LIBS).
18731 (dbusbind.o): New target.
18732
18733 * dbusbind.c: New file.
18734
18735 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18736
18737 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18738 (Qdbus_event): New Lisp symbol.
18739 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18740 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18741 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18742
18743 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18744
187452007-12-01 Richard Stallman <rms@gnu.org>
18746
18747 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18748
187492007-11-30 Jason Rumney <jasonr@gnu.org>
18750
18751 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18752 (w32con_reset_terminal_modes): Clear screen buffer.
18753 (w32_face_attributes): Don't use color indexes that are out of range.
18754 Only reverse the default colors.
18755
18756 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18757 WINDOWSNT.
18758
18759 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18760
187612007-11-29 Jason Rumney <jasonr@gnu.org>
18762
18763 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18764 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18765 if the terminal colors are initialized.
18766 (unspecified_fg, unspecified_bg): Remove unused declarations.
18767
187682007-11-29 Andreas Schwab <schwab@suse.de>
18769
18770 * keyboard.c (apply_modifiers): Fix typo.
18771
187722007-11-29 Richard Stallman <rms@gnu.org>
18773
18774 * keymap.c (Fcurrent_local_map): Doc fix.
18775
187762007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18777
18778 * s/gnu-kfreebsd.h: New file.
18779
187802007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18781
18782 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18783 Don't cast redundantly.
18784
18785 * keyboard.c (KEY_TO_CHAR): New macro.
18786 (parse_modifiers, apply_modifiers): Accept integer arguments.
18787 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18788 for chars and symbol keys.
18789 After doing such remapping, apply function-key-map again.
18790
187912007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18792
18793 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18794 compiled anymore.
18795
187962007-11-26 Andreas Schwab <schwab@suse.de>
18797
18798 * process.c (list_processes_1): Fix indentation level of the
18799 command column.
18800
188012007-11-23 Andreas Schwab <schwab@suse.de>
18802
18803 * editfns.c (Fformat): Handle %c specially since it requires the
18804 argument to be of type int.
18805
188062007-11-23 Markus Triska <markus.triska@gmx.at>
18807
18808 * emacs.c (main): Call init_editfns before init_process, since
18809 init_process sets Vprocess_connection_type depending on OS release.
18810
188112007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18812
18813 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18814 (find_symbol_value): Use do_symval_forwarding.
18815
18816 * data.c (set_internal): Set the value in the `cons-cell' (for
18817 Buffer_Local_values) not only for frame-local variables.
18818
188192007-11-22 Andreas Schwab <schwab@suse.de>
18820
18821 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18822 values to sprintf.
18823 * keymap.c (Fsingle_key_description): Likewise.
18824 * print.c (print_object): Likewise.
18825
188262007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18827
18828 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18829 file for image is nil.
18830
188312007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18832
18833 * term.c: Include stdarg.h.
18834 (fatal): Implement using varargs.
18835 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18836
188372007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18838
18839 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18840 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18841 Update call to buffer_slot_type_mismatch.
18842 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18843 (buffer_slot_type_mismatch): Update.
18844 * buffer.c (buffer_local_types): Remove.
18845 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18846 (defvar_per_buffer): Set the type in the buffer_objfwd.
18847
188482007-11-21 Jason Rumney <jasonr@gnu.org>
18849
18850 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18851 CreateFileMapping returns NULL on failure.
18852
188532007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18854
18855 * search.c (Fset_match_data): Remove the `evaporate' feature.
18856 (unwind_set_match_data): Don't use the `evaporate' feature.
18857
188582007-11-21 Jason Rumney <jasonr@gnu.org>
18859
18860 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18861
18862 * w32console.c (w32con_write_glyphs): Remove unused variables.
18863
188642007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18865
18866 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18867
18868 * s/darwin.h (MULTI_KBOARD): Remove.
18869
18870 * macfns.c (x_create_tip_frame, Fx_create_frame)
18871 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18872
188732007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18874
18875 * buffer.c (Fbuffer_local_value): Remove redundant test.
18876 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18877 than in `current-buffer' to match the comment.
18878 Do the swap using swap_in_global_binding.
18879
18880 * data.c (store_symval_forwarding, set_internal):
18881 * eval.c (specbind): Remove dead code.
18882
18883 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18884 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18885 Since we do not want to see internal Lisp_*fwd objects here.
18886
188872007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18888
18889 * sysdep.c (init_system_name): Use getaddrinfo if available.
18890
18891 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18892 (x_scroll_bar_note_movement): start, end, with, height in struct
18893 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18894
188952007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18896
18897 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18898
188992007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18900
18901 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18902 This undoes Richard's change of 14-Oct-2002.
18903
18904 * alloc.c (allocate_other_vector):
18905 * lisp.h (allocate_other_vector): Remove.
18906
18907 * window.c (struct save_window_data): Move non-lisp data to the end
18908 and make it `int' rather than Lisp_Object.
18909 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18910 Done wrap/unwrap integer values.
18911 (Fset_window_configuration, compare_window_configurations):
18912 Update use of fields to their new types.
18913
18914 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18915 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18916 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18917 (SET_SCROLL_BAR_X_WINDOW): Remove.
18918 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18919 Access the new x_window field directly.
18920 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18921 Don't wrap/unwrap integers into Lisp_Objects.
18922 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18923 (x_scroll_bar_report_motion):
18924 Don't wrap/unwrap integers into Lisp_Objects.
18925 (x_term_init): Use SDATA.
18926 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18927 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18928 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18929 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18930 * xfns.c (x_set_background_color):
18931 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18932 Access the new x_window field directly.
18933
18934 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18935 (allocate_pseudovector): Make non-static.
18936
18937 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18938 (allocate_pseudovector): Declare.
18939 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18940
189412007-11-15 Andreas Schwab <schwab@suse.de>
18942
18943 * editfns.c (Fformat): Correctly format EMACS_INT values.
18944 Also take precision into account when formatting an integer.
18945
18946 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18947
189482007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18949
18950 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18951 (syms_of_keyboard): Defsubr it.
18952
18953 * data.c (swap_in_global_binding): Fix longstanding bug where
18954 store_symval_forwarding was not called with the right second argument,
18955 thus causing objfwd-ing from being dropped.
18956
189572007-11-14 Juanma Barranquero <lekktu@gmail.com>
18958
18959 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18960 (Fx_display_pixel_height, Fx_display_planes)
18961 (Fx_display_color_cells, Fx_server_max_request_size)
18962 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18963 (Fx_display_visual_class, Fx_display_save_under):
18964 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18965 (Fx_display_pixel_height, Fx_display_planes)
18966 (Fx_display_color_cells, Fx_server_max_request_size)
18967 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18968 (Fx_display_mm_height, Fx_display_mm_width)
18969 (Fx_display_backing_store, Fx_display_visual_class)
18970 (Fw32_select_font, Fx_display_save_under):
18971 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18972 (Fx_display_pixel_height, Fx_display_planes)
18973 (Fx_display_color_cells, Fx_server_max_request_size)
18974 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18975 (Fx_display_save_under): Fix typos in docstrings.
18976
189772007-11-14 Juanma Barranquero <lekktu@gmail.com>
18978
18979 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18980 corresponding to deleted entries; they are an implementation detail.
18981 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18982 Remove variables.
18983 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18984 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18985 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18986 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18987 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18988 (Fw32_define_rgb_color, Fw32_load_color_file)
18989 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18990 Fix typos in docstrings.
18991 (Fx_server_version): Reflow docstring.
18992 (Fw32_shell_execute): Doc fixes.
18993
189942007-11-13 Juanma Barranquero <lekktu@gmail.com>
18995
18996 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18997 if w32_parse_hot_key returned nil.
18998
189992007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19000
19001 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19002
190032007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19004
aac0c6e3
MR
19005 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19006
19007 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19008
19009 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19010 Remove W32_SCROLL_BAR_CLICK_EVENT.
19011
19012 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19013 Add MULTIMEDIA_KEY_EVENT.
19014
19015 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19016 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19017 (make_lispy_event) [WINDOWSNT]: Use it to translate
19018 MULTIMEDIA_KEY_EVENT.
19019
19020 * w32term.h (WM_APPCOMMAND): Define if not already.
19021 (GET_APPCOMMAND_LPARAM): Likewise.
19022
19023 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19024 WM_APPCOMMAND.
19025
19026 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19027 (syms_of_w32fns): Export and initialize it.
19028 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19029
190302007-11-09 Chong Yidong <cyd@stupidchicken.com>
19031
19032 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19033 twice.
19034
19035 * xdisp.c (handle_face_prop): Fix last change.
19036
190372007-11-09 Richard Stallman <rms@gnu.org>
19038
19039 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19040 not just for after-strings and before-strings.
19041 Call face_for_overlay_string and pass the overlay to it.
19042 (handle_display_prop): Determine whether property came from an overlay.
19043 Pass OVERLAY arg to handle_single_display_spec.
19044 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19045 (load_overlay_strings): Fill in it->string_overlays.
19046 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19047
19048 * xfaces.c (face_for_overlay_string): Function renamed from
19049 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19050
19051 * dispextern.h (struct it): New elt string_overlays.
19052 New elt from_overlay, also in stack.
19053 Rearrange a few elements.
19054 (face_for_overlay_string): Decl renamed from
19055 face_at_buffer_position_no_overlays, and add argument.
19056
190572007-11-09 Richard Stallman <rms@gnu.org>
19058
19059 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19060 to get the base face for an overlay string.
19061
19062 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19063
19064 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19065
19066 * xdisp.c (handle_stop): Move some code out of loop.
19067
190682007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19069
19070 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19071 Fix conversion from Lisp object to ATSUFontID.
19072
190732007-11-09 Jason Rumney <jasonr@gnu.org>
19074
19075 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19076
190772007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19078
19079 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19080 Don't assume regions are aligned to page boundary.
19081 (print_load_command_name): Add LC_UUID if defined.
19082
190832007-11-09 Richard Stallman <rms@gnu.org>
19084
19085 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19086
190872007-11-07 Jason Rumney <jasonr@gnu.org>
19088
19089 * s/windows95.h: Remove.
19090
190912007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19092
19093 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19094 abort with a message on unhandled store_type values.
19095
190962007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19097
19098 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19099 Remove HAVE_X11R5 and HAVE_X11R4.
19100
191012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19102
19103 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19104
191052007-11-01 Johan Bockgård <bojohan@gnu.org>
19106
19107 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19108 Don't set s->stippled_p here, since it has already been set by
19109 x_set_glyph_string_gc from x_draw_glyph_string.
19110
191112007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19112
19113 * sunfns.c: Remove file.
19114
19115 * m/sun386.h:
19116 * m/sun2.h:
19117 * m/sparc.h: Remove Sun windows code.
19118
191192007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19120
19121 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19122 (init_keyboard): Set current_kboard's window-system to nil.
19123 (tty_read_avail_input): Typo.
19124 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19125
191262007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19127
19128 * s/usg5-4.h:
19129 * s/usg5-3.h:
19130 * s/ptx.h:
19131 * m/is386.h:
19132 * m/ibmps2-aix.h:
19133 * Makefile.in: Remove all mentions of X10.
19134
19135 * dispnew.c (syms_of_display): Don't mention version 10.
19136
191372007-10-28 Juanma Barranquero <lekktu@gmail.com>
19138
19139 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19140 ($(BLD)/abbrev.$(O)): Remove.
19141
191422007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19143
19144 Rewrite abbrev.c in Elisp.
19145 * image.c (Qcount): Don't declare as extern.
19146 (syms_of_image): Initialize and staticpro `Qcount'.
19147 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19148 * emacs.c (main): Don't call syms_of_abbrev.
19149 * Makefile.in (obj): Remove abbrev.o.
19150 (abbrev.o): Remove.
19151 * abbrev.c: Remove.
19152
191532007-10-26 Martin Rudalics <rudalics@gmx.at>
19154
19155 * window.c (window_min_size_2): Don't count header-line.
19156
191572007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19158
19159 * frame.h (struct frame): Move all bit fields after the first bit
19160 field to take advantage of the available space. Group all the
19161 chars together to reduce wasted space due to padding.
19162
191632007-10-26 Juanma Barranquero <lekktu@gmail.com>
19164
19165 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19166
19167 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19168 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19169 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19170 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19171 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19172 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19173 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19174 (last_marked, mark_object_loop_halt): Make static.
19175
19176 * frame.c (syms_of_frame) <delete-frame-functions>:
19177 Fix typo in docstring.
19178
191792007-10-25 Juanma Barranquero <lekktu@gmail.com>
19180
19181 * w32.c (init_environment): Fix tiny memory leak.
19182 (w32_get_resource): Remove unused variable `ok'.
19183
191842007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19185
19186 Make `window-system' into a keyboard-local variable (rather than
19187 frame-local as done originally by multi-tty).
19188
19189 * keyboard.h (struct kboard): Add Vwindow_system.
19190 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19191 (mark_kboards): Mark Vwindow_system.
19192
19193 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19194 (init_display): Don't set the obsolete `window-system' frame-param.
19195
19196 * xterm.c (x_term_init):
19197 * w32term.c (w32_create_terminal):
19198 * term.c (init_tty): Set Vwindow_system.
19199 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19200 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19201
19202 * xfns.c (Fx_create_frame, x_create_tip_frame):
19203 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19204 * macfns.c (Fx_create_frame):
19205 Don't set the obsolete `window-system' frame-param.
19206
19207 * frame.h (Qwindow_system): Remove.
19208 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19209 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19210
192112007-10-24 Richard Stallman <rms@gnu.org>
19212
19213 * frame.c (x_figure_window_size): For fullscreen case,
19214 set USPosition | PPosition without clobbering rest of window_prompting.
19215
19216 * keyboard.c (Fcurrent_idle_time): Doc fix.
19217
19218 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19219
192202007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19221
19222 * process.c (unwind_request_sigio): Only define if __ultrix__.
19223
19224 * callproc.c (child_setup): Remove spurious *.
19225
19226 * lisp.h (Fget_text_property): Declare.
19227 (have_menus_p): Declare it here rather than in sys-dep header files.
19228 * macterm.h (have_menus_p):
19229 * msdos.h (have_menus_p):
19230 * xterm.h (have_menus_p): Remove.
19231
19232 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19233 (Fmake_variable_frame_local): Just check the variable's const-ness
19234 rather than checking nil or t.
19235
192362007-10-22 Jason Rumney <jasonr@gnu.org>
19237
19238 * w32fns.c: Include math.h.
19239 (w32_abort): Declaration moved to nt/config.nt.
19240
19241 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19242 (abort): Redefinition moved to nt/config.nt.
19243
19244 * m/windowsnt.h: Remove.
19245
192462007-10-22 Juanma Barranquero <lekktu@gmail.com>
19247
19248 * emacs.c (Fdump_emacs): Fix typo in message.
19249 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19250 <installation-directory>: Reflow docstring.
19251
192522007-10-22 Juri Linkov <juri@jurta.org>
19253
19254 * minibuf.c: Allow minibuffer default to be a list of default values.
19255 With empty input use the first element of this list as returned default.
19256 (string_to_object)
19257 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19258 (read_minibuf): If defalt is cons, set histstring to its car.
19259 (Fread_string): If default_value is cons, set val to its car.
19260 (Fread_buffer): If def is cons, use its car.
19261 (Fcompleting_read): If defalt is cons, set val to its car.
19262
192632007-10-21 Michael Albinus <michael.albinus@gmx.de>
19264
19265 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19266
192672007-10-20 Juanma Barranquero <lekktu@gmail.com>
19268
19269 * doc.c (Fdocumentation): Check for advice in all cases.
19270
192712007-10-19 Chong Yidong <cyd@stupidchicken.com>
19272
19273 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19274
192752007-10-19 Richard Stallman <rms@gnu.org>
19276
19277 * doc.c (Fdocumentation): Check for and handle an advised function.
19278
192792007-10-19 Juanma Barranquero <lekktu@gmail.com>
19280
19281 * process.c (Fset_process_filter): Doc fix.
19282
192832007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19284
19285 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19286 which caused key-translation-map to applied repeatedly (thus breaking
19287 double-mode).
19288
192892007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19290
19291 * xselect.c (x_own_selection, x_handle_selection_clear)
19292 (x_clear_frame_selections):
19293 * w32menu.c (list_of_panes, list_of_items):
19294 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19295 * textprop.c (validate_plist, interval_has_all_properties)
19296 (interval_has_some_properties, interval_has_some_properties_list)
19297 (add_properties, text_property_list):
19298 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19299 * minibuf.c (Fassoc_string):
19300 * macselect.c (x_own_selection, x_clear_frame_selections)
19301 (Fx_disown_selection_internal):
19302 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19303 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19304
193052007-10-17 Chong Yidong <cyd@stupidchicken.com>
19306
19307 * process.c: Link to libs for calling res_init() if available.
19308 (Fmake_network_process): Call res_init() before getaddrinfo or
19309 gethostbyname, if possible.
19310
193112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19312
19313 * lread.c (read1): Set pvectype for char_tables.
19314
19315 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19316 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19317 Add type checks.
19318 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19319
19320 * alloc.c (free_misc): Use XMISCTYPE.
19321 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19322
193232007-10-17 Glenn Morris <rgm@gnu.org>
19324
19325 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19326 (syms_of_minibuf): Add Qcompletion_ignore_case.
19327 * dired.c (Qcompletion_ignore_case): Change to external.
19328 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19329 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19330 (Fread_file_name): Use it rather than intern'ing.
19331
19332 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19333 (Fread_coding_system): Ignore case of user input.
19334
193352007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19336
19337 * xdisp.c (handle_display_prop): Ignore display specs after
19338 replacing one when string text is being replaced.
19339 (handle_single_display_spec): Pretend as if characters with display
19340 property haven't been consumed only when buffer text is being replaced.
19341
193422007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19343
19344 * xfns.c (Fx_create_frame, Fx_display_list):
19345 * window.c (window_fixed_size_p, enlarge_window)
19346 (shrink_window_lowest_first):
19347 * macterm.c (init_font_name_table):
19348 * macfns.c (Fx_create_frame, Fx_display_list):
19349 * lread.c (close_load_descs):
19350 * keyboard.c (read_char_x_menu_prompt):
19351 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19352 * coding.c (code_convert_region_unwind): Test the type of an object
19353 rather than just !NILP before extracting data from it.
19354
19355 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19356
19357 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19358 (XMISCANY): New macro.
19359 (XMISCTYPE): Use it.
19360 (struct Lisp_Misc_Any): New type.
19361 (union Lisp_Misc): Use it.
19362 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19363 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19364 (find_symbol_value, set_internal, default_value, Fset_default)
19365 (Fmake_variable_buffer_local, Fmake_local_variable)
19366 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19367 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19368 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19369 * alloc.c (allocate_buffer): Set the size and tag.
19370 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19371 Use XMISCANY.
19372 (die): Follow the GNU convention for error messages.
19373 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19374 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19375 tag any more.
19376 (set_buffer_internal_1):
19377 * frame.c (store_frame_param):
19378 * eval.c (specbind):
19379 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19380
19381 * doc.c (Fsnarf_documentation): Simplify.
19382
193832007-10-14 Juanma Barranquero <lekktu@gmail.com>
19384
19385 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19386 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19387
193882007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19389
19390 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19391
193922007-10-14 Juanma Barranquero <lekktu@gmail.com>
19393
19394 * eval.c (do_autoload): Don't save autoloads.
19395
19396 * data.c (Ffset): Save autoload of the function being set.
19397
193982007-10-07 John Paul Wallington <jpw@pobox.com>
19399
19400 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19401 parameter before setting up faces.
19402
194032007-10-13 Eli Zaretskii <eliz@gnu.org>
19404
19405 * ccl.c (Fregister_code_conversion_map):
19406 * keyboard.c (append_tool_bar_item): Reformat last change.
19407
19408 * lisp.h (eabs): Rename from `abs'. All callers changed.
19409
194102007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19411
19412 * buffer.c (add_overlay_mod_hooklist):
19413 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19414 * fontset.c (make_fontset):
19415 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19416 (append_tool_bar_item):
19417 * macmenu.c (grow_menu_items):
19418 * w32menu.c (grow_menu_items):
19419 * xmenu.c (grow_menu_items): Use larger_vector.
19420
194212007-10-13 Eli Zaretskii <eliz@gnu.org>
19422
19423 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19424 selected frame'' on MSDOS).
19425
194262007-10-12 Martin Rudalics <rudalics@gmx.at>
19427
19428 * frame.c (Qexplicit_name): New variable.
19429 (x_report_frame_params): Report it in parameter alist.
19430 (syms_of_frame): Intern and staticpro it.
19431
194322007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19433
19434 * macfns.c (x_create_tip_frame): Set terminal for frame.
19435
194362007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19437
19438 * frame.c (Qenvironment): Remove.
19439 (syms_of_frame) <Qenvironment>: Don't initialize.
19440 (Fdelete_frame): Don't treat the `environment' param specially.
19441 * frame.h (Qenvironment): Don't declare.
19442 * callproc.c (set_initial_environment): Don't set unused frame param.
19443
19444 * frame.c (Fframe_with_environment): Remove.
19445 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19446
19447 * lisp.h (Fframe_with_environment): Don't declare.
19448
194492007-10-10 Juanma Barranquero <lekktu@gmail.com>
19450
19451 * indent.c (indent_tabs_mode, last_known_column)
19452 (last_known_column_modified): Make static.
19453 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19454
194552007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19456
19457 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19458
194592007-10-09 Jason Rumney <jasonr@gnu.org>
19460
19461 * w32term.c (x_set_window_size): Disable code that attempts to tell
19462 Lisp code about a size change before it actually happens.
19463
194642007-10-09 Richard Stallman <rms@gnu.org>
19465
19466 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19467 return HANDLED_RETURN.
19468
194692007-10-08 Martin Rudalics <rudalics@gmx.at>
19470
19471 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19472 when there's an unread command event.
19473
19474 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19475 window autoselection act appropriately when leaving selected frame.
19476 (syms_of_frame): Initialize focus_follows_mouse.
19477 * frame.h (focus_follows_mouse): Extern it.
19478 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19479 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19480 * msdos.c (dos_rawgetc): Likewise.
19481 * w32term.c (w32_read_socket): Likewise.
19482 * xterm.c (handle_one_xevent): Likewise.
19483 * xdisp.c (syms_of_xdisp): In doc-string of
19484 mouse-autoselect-window mention focus-follows-mouse.
19485
194862007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19487
19488 * macterm.c (mac_load_query_font): Fix missing return value.
19489 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19490 Add BLOCK_INPUT.
19491
194922007-10-08 Richard Stallman <rms@gnu.org>
19493
19494 * xdisp.c (get_window_cursor_type): Implement documented behavior
19495 for cursor-in-non-selected-windows = t.
19496
194972007-10-08 Jason Rumney <jasonr@gnu.org>
19498
19499 * w32.c (w32_get_resource): Always close registry keys.
19500
195012007-10-08 Jason Rumney <jasonr@gnu.org>
19502
19503 * makefile.w32-in (LIBS): Add COMCTL32.
19504
19505 * w32fns.c (globals_of_w32fns): Init common controls.
19506
195072007-10-08 Richard Stallman <rms@gnu.org>
19508
19509 * image.c (our_memory_buffer): Rename from omfib_buffer.
19510
195112007-10-08 Richard Stallman <rms@gnu.org>
19512
19513 * buffer.c (Foverlays_at): Doc fix.
19514
195152007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19516
19517 * fns.c (Fplist_put): Preserve uneven tail data.
19518
195192007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19520
19521 * termhooks.h (enum event_kind): Remove trailing comma.
19522
19523 * frame.h (enum): Remove trailing comma.
19524
195252007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19526
19527 * w32proc.c (delete_child): Don't terminate threads of zombies.
19528
195292007-10-08 Martin Rudalics <rudalics@gmx.at>
19530
19531 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19532
19533 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19534 last-repeatable-command.
19535 (init_kboard): Initialize Vlast_repeatable_command.
19536 (command_loop_1): Set it to real_this_command unless that was
19537 bound to an input event.
19538 (mark_kboards): Mark it.
19539
195402007-10-08 Richard Stallman <rms@gnu.org>
19541
19542 * eval.c (condition-case): Doc fix.
19543
195442007-10-08 Masatake YAMATO <jet@gyve.org>
19545
19546 * xfaces.c (tty_supports_face_attributes_p): Fix code
19547 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19548 was copied and not edited.
19549
195502007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19551
19552 Add new `input-decode-map' keymap and use it for terminal
19553 escape sequences.
19554 * keyboard.h (struct kboard): Add Vinput_decode_map.
19555 Remove Vlocal_key_translation_map.
19556 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19557 (init_kboard): Init input-decode-map.
19558 Replace local-key-translation-map back with key-translation-map.
19559 (syms_of_keyboard): Declare input-decode-map.
19560 Remove local-key-translation-map. Update docstrings.
19561 (mark_kboards): Mark Vinput_decode_map.
19562 Don't mark Vlocal_key_translation_map.
19563 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19564 Replace local-key-translation-map back with key-translation-map.
19565 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19566 Bind in input-decode-map rather than function-key-map.
19567
19568 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19569 This was made redundant by the previous introduction of XSETPVECTYPE.
19570
195712007-10-09 Richard Stallman <rms@gnu.org>
19572
19573 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19574
195752007-09-29 Richard Stallman <rms@gnu.org>
19576
19577 * eval.c (internal_condition_case_2, internal_condition_case_1)
19578 (internal_condition_case): Reenable abort if x_catching_errors ()
19579 to see if that really happens and why.
19580
195812007-10-06 Andreas Schwab <schwab@suse.de>
19582
19583 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19584
195852007-10-04 Juanma Barranquero <lekktu@gmail.com>
19586
19587 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19588
195892007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19590
19591 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19592
195932007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19594
19595 * window.h (struct window):
19596 * window.c (struct save_window_data, struct saved_window):
19597 * termhooks.h (struct terminal):
19598 * process.h (struct Lisp_Process):
19599 * frame.h (struct frame):
19600 * buffer.h (struct buffer):
19601 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19602 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19603 The size field of (pseudo)vectors is now unsigned.
19604 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19605
19606 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19607 Turn `count' into an integer.
19608
19609 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19610 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19611 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19612 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19613 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19614
19615 * alloc.c (allocate_pseudovector): New fun.
19616 (ALLOCATE_PSEUDOVECTOR): New macro.
19617 (allocate_window, allocate_terminal, allocate_frame)
19618 (allocate_process): Use it.
19619 (mark_vectorlike): New function.
19620 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19621 (mark_terminals): Use it.
19622 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19623 (Fmake_byte_code): Use XSETPVECTYPE.
19624
19625 * frame.c (Fframe_parameters): Minor simplification.
19626
19627 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19628
19629 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19630
19631 * buffer.c (Fget_buffer_create, init_buffer_once):
19632 * lread.c (defsubr):
19633 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19634
19635 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19636 defined differently in the m/*.h files.
19637 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19638 (XSETPVECTYPE): New macro.
19639 (XSETPSEUDOVECTOR): Use it.
19640
19641 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19642 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19643
19644 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19645 * lread.c (defvar_per_buffer):
19646 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19647
19648 * window.c (candidate_window_p): Only consider as visible frames that
19649 are on the same terminal.
19650
19651 * m/ibms390x.h (MARKBIT): Remove unused macro.
19652
196532007-10-01 Juanma Barranquero <lekktu@gmail.com>
19654
19655 * lread.c (Fload): Fix typo in docstring.
19656
196572007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19658
19659 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19660 of a non-zero value can't yield zero.
19661
196622007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19663
19664 * term.c (term_clear_mouse_face, term_mouse_highlight)
19665 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19666
19667 * print.c (safe_debug_print): Use XHASH.
19668
19669 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19670 Lisp elements such as tags.
19671 (XHASH): New macro.
19672 (EQ): Use it.
19673 (SREF, SSET, STRING_COPYIN): Use SDATA.
19674 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19675
19676 * alloc.c (mark_terminal): Remove left-over declaration.
19677 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19678 (allocate_vectorlike): Remove type argument. Adjust callers.
19679 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19680 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19681
19682 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19683 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19684 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19685 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19686 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19687 Use them.
19688
19689 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19690 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19691 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19692
196932007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19694
19695 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19696 loaded by default.
19697
196982007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19699
19700 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19701 on this tty.
19702 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19703
19704 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19705 Update all users.
19706 (handle_one_term_event): Use Gpm_DrawPointer.
19707 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19708 Signal errors instead of returning nil. Always return nil.
19709 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19710 Make it a noop if gpm-mouse was not activated.
19711 (syms_of_term): Update names.
19712
197132007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19716 (init_sys_modes): Check that gpm_tty is the current tty.
19717
19718 * alloc.c (allocate_terminal): Set the vector size to only count the
19719 lisp fields. Initialize those to nil.
19720 (mark_object): Don't treat terminals specially.
19721 (mark_terminal): Remove.
19722 (mark_terminals): Use mark_object instead.
19723
19724 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19725 the GC to the beginning.
19726
19727 * indent.h:
19728 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19729
19730 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19731
197322007-09-25 Jason Rumney <jasonr@gnu.org>
19733
19734 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19735
19736 * w32console.c (create_w32cons_output): Remove.
19737
19738 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19739
19740 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19741 (reset_sys_modes): Use reset_terminal_modes_hook.
19742
197432007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19744
19745 * eval.c (do_autoload): Don't output any message.
19746
197472007-09-24 Juri Linkov <juri@jurta.org>
19748
19749 * emacs.c (standard_args): Change priority of "--no-splash"
19750 from 40 to 3. Add "--no-desktop" with the same priority.
19751
197522007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19753
19754 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19755 and optimize the case where they are all 1.
19756
197572007-09-23 Johannes Weiner <hannes@saeurebad.de>
19758
19759 * lisp.h (abs): Define if not defined.
19760 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19761 Don't define `abs', since it's defined in lisp.h.
19762
197632007-09-22 Eli Zaretskii <eliz@gnu.org>
19764
19765 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19766 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19767 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19768 (init_tty): Use DEV_TTY instead of "/dev/tty".
19769 [WINDOWSNT]: No need to protect from NAME arg being null.
19770
197712007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19772
19773 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19774 up the tty state.
19775
197762007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19777
19778 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19779 (gpm_tty): Change its type.
19780 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19781 (gpm_tty): Change its type and initialize it.
19782 (Fterm_open_connection): Check the frame is indeed a tty.
19783 Use the new gpm_tty.
19784 (Fterm_close_connection): Use the new gpm_tty.
19785 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19786 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19787
197882007-09-21 Juanma Barranquero <lekktu@gmail.com>
19789
19790 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19791 underline_color, to draw strike-through.
19792
197932007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19794
19795 * lisp.h (allocate_terminal): Declare.
19796
19797 * window.c (candidate_window_p): Consider frames that are being placed
19798 by the user as somewhere between visible and iconified.
19799 (window_loop): Prefer windows on the current frame.
19800 (Fselect_window): Move the use of select-frame to the beginning so we
19801 can just delegate all the work (it'll call us back anyway).
19802
19803 * frame.c (Qdisplay_environment_variable):
19804 * frame.h (Qdisplay_environment_variable): Delete.
19805
19806 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19807 of the first arg, since that value may be a union.
19808
19809 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19810 parameter rather than Qdisplay_environment_variable. If all else
19811 fails, look for DISPLAY in initial-environment.
19812
198132007-09-21 Glenn Morris <rgm@gnu.org>
19814
19815 * Makefile.in (emacstool): Remove target.
19816 (lisp, shortlisp): Remove termdev.elc.
19817
198182007-09-21 Markus Triska <markus.triska@gmx.at>
19819
19820 * xterm.c (x_delete_display): Compile session management conditionally.
19821
198222007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19823
19824 * callproc.c (getenv_internal_1): New function.
19825 (getenv_internal): Use it.
19826 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19827
19828 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19829 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19830 (Fset_terminal_parameter): Work with dead terminals as well.
19831 (Fmodify_terminal_parameters): Remove.
19832
19833 * terminal.c (get_terminal): Handle terminals.
19834 Make sure the terminal returned is live.
19835 (create_terminal): Use allocate_terminal.
19836 (mark_terminals): Move to alloc.c.
19837 (delete_terminal): Use terminal->name as liveness status.
19838 NULL out fields after freeing their contents.
19839 Don't deallocate the object.
19840 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19841 rather than an int.
19842 (Fterminal_live_p): Accept non-integer arguments.
19843 (Fterminal_list): Return terminal objects rather than an ints.
19844
19845 * alloc.c (enum mem_type): New member for `terminal' objects.
19846 (allocate_terminal): New function.
19847 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19848 Handle terminals.
19849 (mark_terminal): New fun.
19850 (mark_terminals): Move from terminal.c.
19851
19852 * term.c (get_tty_terminal): Don't treat output_initial specially.
19853 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19854 (delete_tty): Use terminal->name as liveness status.
19855
19856 * termhooks.h (struct terminal): Make it into a pseudovector.
19857 Remove `deleted' replaced by checking `name's nullness.
19858
19859 * print.c (print_object): Handle terminals.
19860
19861 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19862 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19863
19864 * frame.c (make_terminal_frame):
19865 * keyboard.c (tty_read_avail_input):
19866 * w32term.c (x_delete_terminal):
19867 * xfns.c (Fx_create_frame, x_create_tip_frame):
19868 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19869
198702007-09-20 Glenn Morris <rgm@gnu.org>
19871
19872 * process.c (Fmake_network_process): Doc fix.
19873
198742007-09-19 Jason Rumney <jasonr@gnu.org>
19875
19876 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19877
198782007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19879
19880 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19881 Fix a C warning regarding variable constness.
19882
19883 * xterm.c (handle_one_xevent): Fix a C warning.
19884
198852007-09-18 Jason Rumney <jasonr@gnu.org>
19886
19887 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19888
198892007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19890
19891 * gtkutil.c (gdpy_def): New variable.
19892 (xg_initialize): Initialize gdpy_def.
19893 (xg_display_close): If no other display exists, set gdpy_def to a
19894 new connection.
19895
198962007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19897
19898 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19899 when we have no file name for the icon.
19900 (xg_tool_bar_expose_callback): Remove.
19901 (xg_create_tool_bar): Don't connect expose signal to
19902 xg_tool_bar_expose_callback.
19903 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19904
199052007-09-16 Andreas Schwab <schwab@suse.de>
19906
19907 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19908 values instead of zapping them.
19909
199102007-09-14 Glenn Morris <rgm@gnu.org>
19911
19912 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19913 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19914 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19915 scope and rename to omfib_buffer for clarity.
19916 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19917
199182007-09-14 Kenichi Handa <handa@m17n.org>
19919
19920 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19921
199222007-09-13 Jason Rumney <jasonr@gnu.org>
19923
19924 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19925
19926 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19927
19928 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19929 (mac_term_init): Call here instead, passing rif.
19930
199312007-09-13 Glenn Morris <rgm@gnu.org>
19932
19933 * s/hpux.h: No longer define `static' as nothing.
19934
199352007-09-13 Johan Bockgård <bojohan@gnu.org>
19936
19937 * callint.c (Fcall_interactively): Remove unused var `fun'.
19938
199392007-09-12 Romain Francoise <romain@orebokech.com>
19940
19941 * window.c (prefer_window_split_horizontally, display_buffer):
19942 Revert 2007-09-08 change.
19943
199442007-09-12 Glenn Morris <rgm@gnu.org>
19945
19946 * alloca.c: Remove file.
19947 * Makefile.in (alloca): Do not undef.
19948 (allocaobj, alloca.o): Remove.
19949 (otherobj): Remove allocaobj.
19950 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19951 * regex.c (C_ALLOCA): Remove all references and code that was only
19952 used when this was defined.
19953 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19954 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19955 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19956
19957 * Makefile.in (SOURCES, unlock, relock): Delete.
19958
19959 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19960 (menu_grab_callback): All uses changed.
19961
19962 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19963 (x_reply_selection_request): All uses changed.
19964
199652007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19966
19967 * lread.c (load_warn_old_style_backquotes): Change message to look
19968 better when it appears in the middle of byte-compiler messages.
19969
199702007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19971
19972 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19973
19974 * xterm.c (x_create_terminal): Add comment.
19975
19976 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19977
199782007-09-10 Richard Stallman <rms@gnu.org>
19979
19980 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19981
199822007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19983
19984 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19985 (DEFUN): Document `intspec', use it instead of `prompt'.
19986
19987 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19988
19989 * data.c (Finteractive_form): If the interactive specification starts
19990 with a `(', use it as a Lisp form.
19991
19992 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19993 name and file modes.
19994
19995 * callint.c (Fcall_interactively): Comment fixes.
19996
199972007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19998
19999 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20000 and compiled functions.
20001
200022007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20003
20004 * window.c (prefer_window_split_horizontally): New variable.
20005 (display_buffer): Consider splitting window horizontally depending
20006 on prefer_window_split_horizontally.
20007
200082007-09-08 Eli Zaretskii <eliz@gnu.org>
20009
20010 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20011
200122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20013
20014 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20015
20016 * frame.c (x_set_frame_parameters): Check number is positive before
20017 using XFASTINT.
20018
20019 * window.c (freeze_window_start): Don't presume selected_window holds
20020 a window object.
20021 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20022
200232007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20024
20025 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20026
200272007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20028
20029 * window.c (Vsplit_window_preferred_function): New var.
20030 (Fdisplay_buffer): Use it.
20031 (syms_of_window): Export, and initialize it.
20032
200332007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20034
20035 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20036
200372007-09-06 Glenn Morris <rgm@gnu.org>
20038
20039 * gtkutil.c (menu_grab_callback) <cnt>:
20040 * xselect.c (x_reply_selection_request) <cnt>: Move static
20041 variable to file scope.
20042
200432007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20044
20045 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20046 consistent values of selected_frame and selected_window.
20047
200482007-09-04 Jason Rumney <jasonr@gnu.org>
20049
20050 * w32console.c (initialize_w32_display): Zero unused hooks.
20051
200522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20053
20054 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20055 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20056
200572007-09-04 Jason Rumney <jasonr@gnu.org>
20058
20059 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20060 in w32console.c. Set up input. Remove XXX comments that have been
20061 confirmed as correct.
20062
20063 * s/ms-w32.h (MULTI_KBOARD): Define.
20064
20065 * w32console.c (one_and_only_w32cons): Remove.
20066 (initialize_w32_display): Take terminal argument.
20067
20068 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20069 initialize_w32_display.
20070 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20071
20072 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20073
20074 * keyboard.c (discard_mouse_events): Discard it.
20075 (make_lispy_event): Translate it to a lisp event.
20076 (lispy_wheel_names): Add wheel-left and right events.
20077 (syms_of_keyboard): Enlarge wheel_syms.
20078
20079 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20080 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20081
20082 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20083
20084 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20085 from WM_MOUSEHWHEEL.
20086 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20087
20088 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20089 terminal.
20090
20091 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20092 keyboard for the terminal.
20093
200942007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20095
20096 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20097 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20098 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20099 and resume-tty-function to resume-tty-hook.
20100 (Fsuspend_tty, Fresume_tty): Use new names.
20101
201022007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20103
20104 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20105 if it starts with "n:".
20106
201072007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20108
20109 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20110
201112007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20112
20113 * frame.h:
20114 * frame.c (Qterm_environment_variable): Remove.
20115 (syms_of_frame): Don't init and staticpro it.
20116
20117 * callproc.c (getenv_internal): Remove special case for $TERM.
20118
20119 * callproc.c (Vinitial_environment): New variable.
20120 (set_initial_environment): Initialize it.
20121 (syms_of_callproc): Declare it.
20122 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20123 TERM under which a process runs is never related to the TERM in which
20124 Emacs is running.
20125
201262007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20127
20128 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20129 * s/darwin.h: ... do it here.
20130
201312007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20132
20133 * lisp.h (set_initial_environment): Rename from set_global_environment.
20134
20135 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20136 removed by mistake on the multi-tty branch.
20137
20138 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20139 (Fmodify_frame_parameters): Return a value.
20140
20141 * image.c (png_load): Comment-out var only used in commented-out code.
20142
20143 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20144 before passing it to mark_object.
20145
20146 * xfaces.c (internal_resolve_face_name): Return a value.
20147 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20148
20149 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20150 (x_icon): Comment-out var only used in commented-out code.
20151
201522007-08-29 Romain Francoise <romain@orebokech.com>
20153
20154 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20155 QUIT hasn't been provided.
20156
201572007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20158
20159 * callproc.c (child_setup, getenv_internal): Use the
20160 display-environment-variable and term-environment-variable frame params.
20161 (set_initial_environment): Initialise Vprocess_environment.
20162
20163 * config.in: Disable multi-keyboard support on a mac.
20164
20165 * frame.c (Qterm_environment_variable)
20166 (Qdisplay_environment_variable): New variables.
20167 (syms_of_frame): Intern and staticpro them.
20168 (Fmake_terminal_frame): Disable output method test.
20169
20170 * frame.h: Declare them here.
20171
20172 * macfns.c (x_set_mouse_color): Get rif from the frame.
20173 (x_set_tool_bar_lines): Don't use updating_frame.
20174 (mac_window): Add 2 new parameters for consistency with other systems.
20175 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20176 frame parameters following what is done in X11 and w32. Don't use
20177 FRAME_MAC_DISPLAY_INFO.
20178 (Fx_open_connection, start_hourglass): Remove window-system check.
20179 (x_create_tip_frame): Get the keyboard from the terminal.
20180
20181 * macmenu.c: Reorder includes.
20182 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20183
20184 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20185 terminal parameter.
20186 (x_clear_frame): Add a frame parameter.
20187 (note_mouse_movement): Get rif from the frame.
20188 (mac_term_init): Initialize the terminal.
20189 (mac_initialize): Make static and move terminal initialization ...
20190 (mac_create_terminal): ... to this new function.
20191
20192 * macterm.h (struct mac_display_info): Add terminal.
20193 (mac_initialize): Delete declaration.
20194
20195 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20196
20197 * sysdep.c: Comment out text after #endif.
20198
20199 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20200 is defined. Better initialize ttys in windows. Use terminal
20201 specific mouse_position_hook.
20202
20203 * termhooks.h (union display_info): Add mac_display_info.
20204
20205 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20206 Set the default minibuffer frame, window_system and the rest of the
20207 frame parameters following what is done in X11.
20208
20209 * w32term.c (w32_initialize): Make static.
20210
20211 * xselect.c (x_handle_selection_clear): Only access
20212 terminal->kboard when MULTI_KBOARD is defined.
20213
20214 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20215 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20216
202172007-08-29 Jason Rumney <jasonr@gnu.org>
20218
20219 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20220 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20221
20222 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20223 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20224
20225 * keyboard.c (restore_kboard_configuration): Only define when
20226 MULTI_KBOARD defined.
20227
20228 * makefile.w32-in: Update dependancies from Makefile.in.
20229 (OBJ1): Add terminal.$(O)
20230
20231 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20232 Don't define function body.
20233 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20234
20235 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20236
20237 * w32.c (request_sigio, unrequest_sigio): Remove.
20238
20239 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20240 (w32con_clear_frame, w32con_clear_end_of_line)
20241 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20242 (w32con_delete_glyphs, w32con_set_terminal_window)
20243 (scroll_line, w32_sys_ring_bell): Add frame arg.
20244 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20245 Add terminal arg.
20246 (PICK_FRAME): Remove.
20247 (w32con_write_glyphs): Use frame specific terminal coding.
20248 (one_and_only_w32cons): New global variable.
20249 (initialize_w32_display): Use it for storing hooks.
20250 (create_w32cons_output): New function.
20251
20252 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20253 arg a frame.
20254
20255 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20256 Set window_system.
20257 (x_set_tool_bar_lines): Don't use updating_frame.
20258 (Fx_create_frame): Set terminal and ref count.
20259 (Fx_open_connection): Remove window-system check.
20260
20261 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20262
20263 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20264 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20265 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20266 Add frame arg.
20267 (x_delete_terminal, w32_create_terminal): New functions.
20268 (w32_term_init): Create a terminal.
20269 (w32_initialize): Move terminal specific initialization to
20270 w32_create_terminal.
20271
20272 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20273 (w32_clear_rect, w32_clear_area): Use background from frame.
20274 (w32_display_info): Add terminal.
20275 (w32_sys_ring_bell, x_delete_display): Declare here.
20276
20277 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20278
20279 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20280
202812007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20282
20283 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20284 Fix get_named_tty calls for the controlling tty.
20285
202862007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20287
194d44e7 20288 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20289
202902007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20291
20292 * term.c (tty_insert_glyphs): Add missing first parameter.
20293
202942007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20295
20296 * buffer.c (Fbuffer_list, Fbury_buffer):
20297 Take frame->buried_buffer_list into account.
20298
20299 * cm.c (current_tty): New variable, for cmputc().
20300 (cmputc): Use it.
20301 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20302 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20303 (cmgoto): Add tty parameter. Pass it on to calccost().
20304 Use emacs_tputs() instead of tputs().
20305
20306 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20307 tputs().
20308 (current_tty): New variable, for cmputc().
20309 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20310
20311 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20312 (internal_condition_case, internal_condition_case_1)
20313 (internal_condition_case_2): Don't abort when x_catching_errors.
20314
20315 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20316 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20317 prevent crashes caused by bogus longjmps in read_char.
20318
20319 * keymap.h (Fset_keymap_parent): Add EXFUN.
20320
20321 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20322 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20323 Remove redundant definition.
20324
20325 * macfns.c (x_set_mouse_color, x_make_gc):
20326 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20327
20328 * w32term.c (x_free_frame_resources):
20329 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20330 (w32_initialize): Use the accessor macros for terminal characteristics.
20331
20332 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20333 Use the accessor macros for terminal characteristics.
20334 * msdos.c (internal_terminal_init): Use the accessor macros for
20335 terminal characteristics.
20336 (ScreenVisualBell, internal_terminal_init):
20337 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20338
20339 * termopts.h (no_redraw_on_reenter): Declare.
20340
20341 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20342 (mark_terminals, mark_ttys): Declare.
20343 (Fgarbage_collect): Call them.
20344 (mark_object): Mark buried_buffer_list.
20345
20346 * prefix-args.c: Include stdlib.h for exit.
20347
20348 * syssignal.h: Add comment.
20349
20350 * indent.c: Include stdio.h.
20351
20352 * window.h (Vinitial_window_system): Declare.
20353 (Vwindow_system): Delete declaration.
20354
20355 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20356
20357 * image.c (lookup_image): Don't initialize `c' until the xasserts
20358 have been run.
20359
20360 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20361 FRAME_FOREGROUND_PIXEL.
20362
20363 * print.c (print_preprocess): Don't lose print_depth levels while
20364 iterating.
20365
20366 * widget.c (update_from_various_frame_slots):
20367 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20368
20369 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20370 frames.
20371 (window_internal_height): Remove bogus make_number call.
20372 (init_window_once): Call make_terminal_frame with two zero parameters.
20373
20374 * fileio.c (Fread_file_name): Update comment.
20375
20376 * callint.c (Fcall_interactively):
20377 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20378 Make sure it is correctly unwound.
20379
20380 * xsmfns.c (x_session_close): New function.
20381
20382 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20383 Delete declarations.
20384
20385 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20386 (x_output): Remove background_pixel and foreground_pixel fields.
20387 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20388 (x_delete_device, x_session_close): Declare.
20389
20390 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20391 (read_filtered_event): Call `read_char' with a local
20392 `wrong_kboard_jmpbuf'.
20393
20394 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20395 Don't call single_kboard_state. Use FRAME_RIF.
20396
20397 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20398 systems.
20399
20400 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20401 (Fframe_with_environment, Fset_input_meta_mode)
20402 (Fset_quit_char): EXFUN.
20403 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20404 (init_sys_modes, reset_sys_modes): Update prototypes.
20405 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20406
20407 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20408 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20409 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20410 Delete declarations.
20411 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20412 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20413 New declarations.
20414
20415 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20416 already does that during init_display(). Call syms_of_keymap
20417 before syms_of_keyboard. Call `syms_of_terminal'.
20418 Call set_initial_environment, not set_process_environment.
20419 (shut_down_emacs): Call reset_all_sys_modes() instead of
20420 reset_sys_modes().
20421
20422 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20423 (internal_resolve_face_name, resolve_face_name_error): New functions.
20424 (resolve_face_name): Protect against loops and errors thrown by Fget.
20425 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20426 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20427
20428 * scroll.c: Replace CURTTY() with local variables throughout the
20429 file (where applicable).
20430 (calculate_scrolling, calculate_direct_scrolling)
20431 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20432 characteristics.
20433
20434 * keymap.c (Vfunction_key_map): Remove.
20435 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20436 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20437 (Vkey_translation_map): Remove.
20438 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20439 (Fdescribe_buffer_bindings)
20440 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20441 Update for terminal-local key-translation-map.
20442
20443 * Makefile.in (callproc.o): Update dependencies.
20444 (lisp, shortlisp): Add termdev.elc.
20445 (obj): Add terminal.o.
20446 (terminal.o): Add dependencies.
20447 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20448 (data.o, fns.o): Add termhooks.h dependency.
20449 (SOME_MACHINE_LISP): Add dnd.elc.
20450 (minibuf.o): Fix typo.
20451 Update dependencies.
20452
20453 * data.c (do_symval_forwarding, store_symval_forwarding)
20454 (find_symbol_value): Use the selected frame's keyboard, not
20455 current_kboard.
20456
20457 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20458 Vwindow_system.
20459
20460 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20461 Fmenu_bar_open.
20462 (syms_of_xmenu): Update defsubr.
20463 (mouse_position_for_popup, Fx_popup_menu)
20464 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20465 (set_frame_menubar, free_frame_menubar)
b97439ce 20466 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20467 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20468 an X frame.
20469
20470 * xselect.c (x_own_selection): Abort if not an X frame.
20471 (some_frame_on_display): Check if it is an X frame.
20472 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20473
20474 * coding.c: Include frame.h and termhooks.h.
20475 (terminal_coding, keyboard_coding): Delete.
20476 (Fset_terminal_coding_system_internal)
20477 (Fset_keyboard_coding_system_internal)
20478 (Fkeyboard_coding_system)
20479 (Fterminal_coding_system): Add a terminal parameter.
20480 Get terminal_coding from the terminal.
20481 (init_coding_once): Don't call setup_coding_system here.
20482
20483 * dispextern.h (set_scroll_region, turn_off_insert)
20484 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20485 (tty_clear_end_of_line, tty_setup_colors)
20486 (delete_tty, updating_frame)
20487 (produce_special_glyphs, produce_glyphs, write_glyphs)
20488 (insert_glyphs): Remove.
20489 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20490 (tty_turn_off_highlight, get_tty_size): Add declaration.
20491 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20492
20493 * frame.h (enum output_method): Add output_initial.
20494 (struct x_output): Delete.
20495 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20496 Access foreground_pixel and background_pixel directly from the frame.
20497 (tty_display): Delete.
20498 (struct frame): Add buried_buffer_list, foreground_pixel,
20499 background_pixel and terminal. Delete kboard.
20500 (union output_data): Add tty.
20501 (FRAME_KBOARD): Get the kboard from the terminal.
20502 (FRAME_INITIAL_P): New macro.
20503 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20504 (Qterm_environment_variable, Qdisplay_environment_variable)
20505 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20506 New declarations.
20507
20508 * termchar.h (tty_output, tty_display_info): New structures.
20509 (tty_list): Declare.
20510 (FRAME_TTY, CURTTY): New macros.
20511 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20512 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20513 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20514 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20515
20516 * callproc.c: Include frame.h and termhooks.h, for terminal
20517 parameters.
20518 (add_env): New function.
20519 (child_setup): Use it.
20520 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20521 (getenv_internal): Fix get_terminal_param call.
20522 (Fgetenv_internal, egetenv): Update doc.
20523 (syms_of_callproc): Initialize Vprocess_environment to nil.
20524 Register and initialize them. Remove obsolete defvars. Update doc
20525 strings.
20526 (child_setup): Handle Vlocal_environment_variables.
20527 (getenv_internal): Add terminal parameter.
20528 Handle Vlocal_environment_variables.
20529 (Fgetenv_internal): Add terminal parameter.
20530 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20531 environment in a frame (not terminal) parameter. Update doc strings.
20532 (set_initial_environment): Rename from set_global_environment.
20533 Store Emacs environment in initial frame parameter.
20534
20535 * xdisp.c (redisplay_internal): Update references to
20536 `previous_terminal_frame'.
20537 (display_mode_line, Fformat_mode_line): Replace calls to
20538 `push_frame_kboard' with `push_kboard'.
20539 (get_glyph_string_clip_rects): Add extra parentheses and
20540 braces to prevent compiler warnings.
20541 (calc_pixel_width_or_height): Add xassert to check that the
20542 frame is alive. Don't call `lookup_image' on a termcap frame.
20543 (message2_nolog, message3_nolog, redisplay_internal)
20544 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20545 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20546 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20547 (Fx_display_pixel_width, Fx_display_pixel_height)
20548 (Fx_display_planes, Fx_display_color_cells)
20549 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20550 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20551 (Fx_display_backing_store, Fx_display_visual_class)
20552 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20553 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20554
20555 * xfns.c (x_set_foreground_color x_set_background_color)
20556 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20557 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20558 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20559 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20560 terminal that is being deleted.
20561 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20562 frame parameter, and make sure it overrides any user-supplied setting.
20563 (Fx_close_connection, Fx_synchronize): Unify argument names with
20564 the rest of the DEFUNs.
20565
20566 * dispnew.c (Fsend_string_to_terminal): Update call to
20567 `get_tty_terminal'.
20568 (Fredraw_frame, Fsend_string_to_terminal)
20569 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20570 FRAME_TERMCAP_P and FRAME_TTY.
20571 (window_change_signal): Don't believe width/height values that are
20572 impossibly small.
20573 (Vinitial_window_system): Rename from Vwindow_system.
20574 (termscript, Wcm, rif): Delete.
20575
20576 * termhooks.h (struct terminal): New struct containing the
20577 previously global text display hooks and new members NAME,
20578 DELETED and PARAM_ALIST.
20579 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20580 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20581 (FRAME_RIF): New macros.
20582 (get_terminal_param, get_device): New declarations.
20583 (termscript): Delete declaration.
20584
20585 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20586 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20587 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20588 FRAME_FOREGROUND_PIXEL.
20589 (x_fully_uncatch_errors): Disable definition.
20590 (x_scroll_bar_expose): Fix reference to foreground pixel.
20591 (XTread_socket): Disable loop on all X displays.
20592 (x_delete_terminal): Don't set terminal->deleted and let
20593 delete_terminal delete the frames on the terminal.
20594 (x_delete_display): Doc update to reflect changes in
20595 delete_terminal.
20596 (x_display_info) <terminal>: Move member earlier in the struct.
20597 (deleting_tty): Remove old variable.
20598 (Fsuspend_tty): Call clear_tty_hooks.
20599 (Fresume_tty, init_tty): Call set_tty_hooks.
20600 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20601 errors on X frames.
20602 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20603 (handle_one_xevent): Initialize `f' to NULL.
20604 (x_delete_terminal, x_create_terminal): New functions.
20605 (XTset_terminal_modes, XTreset_terminal_modes)
20606 (XTread_socket, x_connection_closed, x_term_init)
20607 (x_term_init, x_delete_display): Add terminal parameter.
20608 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20609 X connections.
20610
20611 * frame.c: Include termchar.h.
20612 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20613 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20614 (Qdisplay_environment_variable): New vars.
20615 (Fframep): Deal with output_initial.
20616 (Fframe-live-p): Doc fix.
20617 (Fwindow-system): New function.
20618 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20619 (make_terminal_frame): Don't create frames on a terminal that is
20620 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20621 (store_frame_param): Check for found_for_frame before calling XFRAME.
20622 (Fmake_terminal_frame): Handle NULL tty names correctly.
20623 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20624 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20625 frames to refer to a deleted frame in their 'environment parameter.
20626 (Fframe_with_environment): New function.
20627 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20628 (get_future_frame_param): New function.
20629 (Fmake_terminal_frame): Use it.
20630 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20631
20632 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20633 * sysdep.c (reset_sys_modes): Update for renames.
20634
20635 * keyboard.c (tty_read_avail_input): New function.
20636 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20637 (syms_of_keyboard): Defsubr them.
20638 (Fset_input_meta_mode, Fset_quit_char): New functions.
20639 (Fset_input_mode): Split to above functions.
20640 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20641 parameter. Use it in call to `read_char'.
20642 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20643 Set wrong_kboard_jmpbuf correctly in recursive calls.
20644 Use current_kboard to access Vkeyboard_translate_table.
20645 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20646 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20647 Update longjmp invocations. Remember the original current_kboard,
20648 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20649 changes it. Comment out unnecessary calls to
20650 `record_single_kboard_state' and `any_kboard_state'.
20651 Update recursive calls.
20652 (wrong_kboard_jmpbuf): Remove global variable.
20653 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20654 Handle deleted interrupted_kboards correctly; that is a legal
20655 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20656 and read_char calls. Abort if interrupted_kboard died in read_char.
20657 (any_kboard_state, single_kboard_state)
20658 (push_frame_kboard): Remove function.
20659 (pop_kboard): Switch out of single_kboard mode if the kboard has
20660 been deleted. Remove unused variable. Help debugging by not
20661 changing current_kboard unnecessarily. Set current_kboard to the
20662 kboard of the selected frame when the stored kboard object has
20663 been deleted before pop_kboard.
20664 (temporarily_switch_to_single_kboard): Change first parameter to a
20665 frame pointer. Throw an error when caller wants to change kboards
20666 while in single_kboard mode. Don't push_kboard if we weren't in
20667 single kboard state. Don't pop_kboard if we popped into any
20668 kboard state.
20669 (restore_kboard_configuration): Abort if pop_kboard changed the
20670 kboard in single_kboard mode. Call pop_kboard only after setting
20671 up single_kboard mode.
20672 (Frecursive_edit): Switch to single_kboard mode only in nested
20673 command loops.
20674 (cmd_error, command_loop, command_loop_1, timer_check):
20675 Comment out unnecessary call to `any_kboard_state' and
20676 `record_single_kboard_state'.
20677 (delete_kboard): Exit single_kboard mode if we have just deleted
20678 that kboard. Use FRAME_KBOARD.
20679 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20680 `fatal_error_signal'.
20681 (record_single_kboard_state): Don't push_kboard if we weren't in
20682 single kboard state. Don't pop_kboard if we popped into any
20683 kboard state.
20684 (push_frame_kboard): Rename to push_kboard.
20685 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20686 (read_avail_input): Read input from all terminals.
20687 (mark_kboards): Also mark Vkeyboard_translate_table.
20688 (kbd_buffer_store_event_hold): Simplify condition.
20689 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20690 (Vkeyboard_translate_table): Move to struct kboard.
20691 (init_kboard): Initialize Vkeyboard_translate_table.
20692 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20693 Vkeyboard_translate_table. Update doc strings. Update docs of
20694 local-function-key-map and function-key-map.
20695
20696 * terminal.c: New file.
20697
20698 * term.c: Include errno.h.
20699 (Vring_bell_function, device_list, initial_device)
20700 (next_device_id, ring_bell, update_begin, update_end)
20701 (set_terminal_window, cursor_to, raw_cursor_to)
20702 (clear_to_end, clear_frame, clear_end_of_line)
20703 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20704 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20705 (syms_of_term): Move their initialization to terminal.c.
20706 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20707 (Ftty_display_color_cells)
20708 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20709 (clear_tty_hooks, set_tty_hooks)
20710 (init_tty, maybe_fatal): New functions.
20711 (Ftty_type): Return nil if terminal is not on a tty instead of
20712 throwing an error. Doc update.
20713 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20714 Doc update. Initialize new subrs and variables.
20715 (delete_tty): Use terminal->deleted.
20716 (tty_set_terminal_modes): Rename from set_terminal_modes.
20717 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20718 (set_scroll_region): Rename to `tty_set_scroll_region'.
20719 (turn_on_insert): Rename to `tty_turn_on_insert'.
20720 (turn_off_insert): Rename to `tty_turn_off_insert'.
20721 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20722 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20723 (toggle_highligh): Rename to `tty_toggle_highlight'.
20724 (background_highlight): Rename to `tty_background_highlight'.
20725 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20726 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20727 (tty_set_scroll_region, tty_background_highlight)
20728 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20729 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20730 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20731 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20732 Add static modifier.
20733 (tty_reset_terminal_modes, tty_set_terminal_window)
20734 (tty_set_scroll_region, tty_background_highlight)
20735 (tty_highlight_if_desired, tty_cursor_to)
20736 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20737 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20738 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20739 renames.
20740
207412007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20742
20743 * keyboard.c: Qrtl is new.
20744 (parse_tool_bar_item): Handle :rtl keyword.
20745 (syms_of_keyboard): Intern :rtl keyword.
20746
20747 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20748
20749 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20750 so no Lisp code is executed.
20751 (file_for_image, find_rtl_image): New functions.
20752 (xg_get_image_for_pixmap): Use file_for_image.
20753 (update_frame_tool_bar): If direction is RTL, use RTL image if
20754 defined. Use Gtk stock images if defined.
20755
207562007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20757
20758 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20759 for nonexistent or zero-width glyph in composition glyph.
20760
207612007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20762
20763 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20764
20765 * xdisp.c (Finvisible_p): New function.
20766 (syms_of_xdisp): defsubr it.
20767
207682007-08-24 Juanma Barranquero <lekktu@gmail.com>
20769
20770 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20771 Doc fixes.
20772
207732007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20774
20775 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20776
207772007-08-24 Martin Rudalics <rudalics@gmx.at>
20778
20779 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20780 whether decoding has modified buffer contents.
20781
207822007-08-24 Jason Rumney <jasonr@gnu.org>
20783
20784 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20785 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20786 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20787 (init_svg_functions) [HAVE_NTGUI]: New function.
20788 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20789 (svg_load_image): Use them.
20790 (svg_load_image) [HAVE_NTGUI]: Implement background.
20791
207922007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20793
20794 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20795 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20796 (LIBX): Remove @RSVG_LIBS@.
20797 (LIBES): Add $(RSVG_LIBS).
20798
20799 * image.c (svg_load_image): Blend with specified background if exists.
20800 Use IMAGE_BACKGROUND. Add Mac OS Support.
20801
20802 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20803 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20804 Remove macros.
20805 [MAC_OSX] (socket_callback): Do nothing.
20806 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20807 ReceiveNextEvent.
20808 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20809 socket_callback.
20810 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20811
208122007-08-22 Glenn Morris <rgm@gnu.org>
20813
20814 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20815
208162007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20817
20818 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20819
20820 * image.c: Add support for SVG images. Some additional comments
20821 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20822 (svg_image_p): New function to test for SVG image.
20823 (svg_load): New function to load SVG image.
20824 (svg_load_image): New function, helper for svg_load.
20825 (Qsvg): New Lisp_object.
20826 (svg_keyword_index): New enum.
20827 (svg_format): New static `image_keyword' struct.
20828 (svg_type): New static `image_type' struct.
20829 (librsvg/rsvg.h): Include it.
20830
208312007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20832
20833 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20834
208352007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20836
20837 * lread.c (Qold_style_backquotes): New var.
20838 (syms_of_lread): Init and staticpro it.
20839 (load_warn_old_style_backquotes): New fun.
20840 (Fload): Use them to warn about old style backquotes.
20841 (end_of_file_error, Fload): Remove unused vars.
20842
20843 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20844
20845 * lread.c (Vold_style_backquotes): New var.
20846 (syms_of_lread): Init and export it to Elisp.
20847 (read1): Set it when we find an old-style (back)quote.
20848
208492007-08-22 Jason Rumney <jasonr@gnu.org>
20850
20851 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20852
208532007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20854
20855 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20856
208572007-08-19 Richard Stallman <rms@gnu.org>
20858
20859 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20860
208612007-08-19 Andreas Schwab <schwab@suse.de>
20862
20863 * alloc.c (pure): Round PURESIZE up.
20864
208652007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20866
20867 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20868 active frame.
20869
208702007-08-16 Richard Stallman <rms@gnu.org>
20871
20872 * eval.c (Fcommandp): Add parens to clarify.
20873
20874 * minibuf.c (Fall_completions): Use enum for type of table.
20875
20876 * emacs.c (USAGE2): Improve text.
20877
208782007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20879
20880 * term.c (tty_default_color_capabilities): Declare static
20881 variables in file scope, to avoid HPUX compiler problem.
20882
208832007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20884
20885 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20886 to gtk_toolbar_insert.
20887
208882007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20889
20890 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20891
20892 * insdel.c (reset_var_on_error): New fun.
20893 (signal_before_change, signal_after_change):
20894 Use it to reset (after|before)-change-functions to nil in case of error.
20895 Bind inhibit-modification-hooks to t.
20896 Don't bind (after|before)-change-functions to nil while they run.
20897
208982007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20899
20900 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20901 filling pixmap with stippled background.
20902
209032007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20904
20905 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20906 Don't use invisible frame as parent window for repositioning.
20907
209082007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20909
20910 * print.c (new_backquote_output): Rename from old_backquote_output.
20911 (print): Inverse its logic (according to its name) so as to match the
20912 behavior of new_backquote_flag in lread.c.
20913
209142007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20915
20916 * gmalloc.c (posix_memalign): New function.
20917
20918 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20919 ActivateControl/DeactivateControl here.
20920 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20921 frame-notice-user-settings is non-nil.
20922 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20923 for kEventParamFMFontStyle.
20924 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20925 mac_pass_command_to_system and mac_pass_control_to_system here.
20926 (XTread_socket): Call ActivateControl/DeactivateControl here.
20927 (XTread_socket) [TARGET_API_MAC_CARBON]:
20928 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20929 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20930 for window repositioning.
20931
209322007-08-08 Glenn Morris <rgm@gnu.org>
20933
20934 * Replace `iff' in doc-strings and comments.
20935
209362007-08-07 Chong Yidong <cyd@stupidchicken.com>
20937
20938 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20939
209402007-08-07 Martin Rudalics <rudalics@gmx.at>
20941
20942 * fileio.c (Finsert_file_contents): Run format-decode and
20943 after_insert_file_functions on entire buffer when REPLACE is
20944 non-nil and inhibit modification_hooks and point_motion_hooks.
20945 For consistency, run after_insert_file_functions iff something
20946 got inserted. Move signal_after_change and update_compositions
20947 after code running after_insert_file_functions. Make sure that
20948 undo_list doesn't record intermediate steps of the decoding process.
20949
209502007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20951
20952 * emacs.c (main)
20953 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20954 Call malloc_enable_thread on interactive startup.
20955
20956 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20957 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20958 [USE_PTHREAD]: Conditionalize with it.
20959 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20960 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20961 New functions.
20962
209632007-08-06 Chong Yidong <cyd@stupidchicken.com>
20964
20965 * xdisp.c (redisplay_window): When restoring original buffer
20966 position, make sure it is still valid.
20967
20968 * image.c (png_load): Ignore png-supplied background color.
20969
209702007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20971
20972 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20973 Use kCFAbsoluteTimeIntervalSince1970.
20974
20975 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20976 New variable.
20977 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20978 event loop should be quit.
20979 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20980 Quit dialog event loop if quit_dialog_event_loop is set.
20981
20982 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20983 (Selection): New typedef. Use instead of ScrapRef.
20984 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20985 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20986 (mac_clear_selection): Rename from clear_scrap.
20987 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20988 scrap_has_target_type. All uses changed.
20989 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20990 (mac_selection_has_target_p): New functions.
20991 (mac_put_selection_value): Rename from put_scrap_string.
20992 (mac_get_selection_value): Rename from get_scrap_string.
20993 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20994 (put_scrap_private_timestamp, scrap_has_target_type)
20995 (get_scrap_private_timestamp): Remove functions.
20996 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20997 (x_own_selection, x_get_local_selection):
20998 Use mac_valid_selection_value_p.
20999 (x_own_selection): Don't use put_scrap_private_timestamp.
21000 Record OWNERSHIP-INFO into Vselection_alist instead.
21001 (x_get_local_selection): Don't check type if request is local.
21002 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21003 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21004
210052007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21006
21007 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21008 add comment explaining why.
21009
210102007-08-03 Richard Stallman <rms@gnu.org>
21011
21012 * fileio.c (Fvisited_file_modtime): Use make_time.
21013
210142007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21015
21016 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21017 build.
21018
210192007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21020
21021 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21022
210232007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21024
21025 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21026
210272007-07-30 Richard Stallman <rms@gnu.org>
21028
21029 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21030
210312007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21032
21033 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21034
210352007-07-28 Nick Roberts <nickrob@snap.net.nz>
21036
21037 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21038 remote default-directory.
21039
21040 * buffer.c (mode-line-format): Update doc string.
21041
210422007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21043
21044 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21045 scroll bar gap.
21046 (x_scroll_bar_create): Set bar->fringe_extended_p.
21047 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21048 on frame edge. Check fringe background extension. Don't clear
21049 extended fringe background area.
21050
21051 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21052 (w32_fill_area): Enclose multiple statements with do ... while (0).
21053
21054 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21055 Extend fringe background to scroll bar gap.
21056 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21057 Set bar->fringe_extended_p.
21058 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21059 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21060 background extension. Don't clear extended fringe background area.
21061
21062 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21063 New member fringe_extended_p.
21064
210652007-07-25 Glenn Morris <rgm@gnu.org>
21066
21067 * Relicense all FSF files to GPLv3 or later.
21068
21069 * COPYING: Switch to GPLv3.
21070
210712007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21072
21073 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21074
21075 * data.c (Finteractive_form): Check for the presence of an
21076 `interactive-form' symbol property more thoroughly.
21077
21078 * data.c (Finteractive_form): Use an `interactive-form' property if
21079 present, analogous to the function-documentation property.
21080
210812007-07-24 Jason Rumney <jasonr@gnu.org>
21082
21083 * w32fns.c (x_real_positions): Get real position from OS instead of
21084 calculating it.
21085
210862007-07-23 Jason Rumney <jasonr@gnu.org>
21087
21088 * filelock.c (current_lock_owner): Allow for @ sign in username.
21089
210902007-07-22 Nick Roberts <nickrob@snap.net.nz>
21091
21092 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21093 remote default-directory.
21094
21095 * buffer.c (mode-line-format): Describe above case in doc string.
21096
210972007-07-20 Eli Zaretskii <eliz@gnu.org>
21098
21099 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21100 Define if not defined.
21101
211022007-07-18 Jason Rumney <jasonr@gnu.org>
21103
21104 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21105
211062007-07-18 Richard Stallman <rms@gnu.org>
21107
21108 * data.c (Fsetq_default): Doc fix.
21109
21110 * eval.c (Fsetq): Doc fix.
21111
211122007-07-18 Juanma Barranquero <lekktu@gmail.com>
21113
21114 * coding.c (Ffind_operation_coding_system):
21115 * eval.c (For, Fand): Doc fixes.
21116 Reported by Johan Bockgård.
21117
211182007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21119
21120 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21121
21122 * xterm.h: Declare x_ewmh_activate_frame.
21123
21124 * xterm.c (x_ewmh_activate_frame): New function.
21125 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21126
211272007-07-17 Martin Rudalics <rudalics@gmx.at>
21128
21129 * window.c (Fdisplay_buffer): If largest or LRU window is the
21130 only window, split it even if it is not eligible for splitting.
21131 This restores the original behavior broken by the 2007-07-15
21132 change.
21133
211342007-07-17 Glenn Morris <rgm@gnu.org>
21135
21136 * abbrev.c (abbrev_check_chars): New function.
21137 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21138 Call abbrev_check_chars to check abbrev characters are word
21139 constituents. Doc fix.
21140
211412007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21142
21143 * process.c (Fstart_process, Fmake_network_process)
21144 (read_process_output): Fix up last changes.
21145
211462007-07-16 Eli Zaretskii <eliz@gnu.org>
21147
21148 * makefile.w32-in (clean): Don't delete *~.
21149
211502007-07-16 Andreas Schwab <schwab@suse.de>
21151
21152 * window.c (Fdisplay_buffer): Use NILP.
21153 (Fset_window_scroll_bars): Likewise.
21154
211552007-07-15 Martin Rudalics <rudalics@gmx.at>
21156
21157 * window.c (window_min_size_2): New function.
21158 (window_min_size_1, size_window, Fdisplay_buffer)
21159 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21160 windows without mode- or header-lines when window-min-height is
21161 too small.
21162 (size_window): Reset nodelete_p after testing it, following an
21163 earlier note by Kim F. Storm.
21164 (display_buffer): Do not set split_height_threshold to twice the
21165 value of window_min_height to avoid changing the value of a
21166 customizable variable. Rather explicitly check whether the
21167 height of the window that shall be splitted is at least as large
21168 as split_height_threshold.
21169 (Fwindow_full_width_p): New defun.
21170 (syms_of_window): Defsubr it.
21171
21172 * window.h: Add EXFUN for Fwindow_full_width_p.
21173
211742007-07-14 Jason Rumney <jasonr@gnu.org>
21175
21176 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21177
211782007-07-14 Richard Stallman <rms@gnu.org>
21179
21180 * eval.c (maybe_call_debugger): New function.
21181 (find_handler_clause): Use maybe_call_debugger.
21182 Call it when the handler says `debug'.
21183 Eliminate DEBUGGER_VALUE_PTR.
21184 (Fsignal): Eliminate debugger_value.
21185 (Qdebug): New variable.
21186 (syms_of_eval): Initialize it.
21187
211882007-07-14 Juanma Barranquero <lekktu@gmail.com>
21189
21190 * eval.c (Fprogn):
21191 * keyboard.c (Ftrack_mouse):
21192 * print.c (Fwith_output_to_temp_buffer):
21193 * window.c (Fsave_window_excursion): Doc fix.
21194
211952007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21196
21197 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21198
211992007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21200
21201 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21202 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21203 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21204 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21205 Remove unused encoding_carryover.
21206 * process.c: Adjust all functions accordingly.
21207
212082007-07-12 Richard Stallman <rms@gnu.org>
21209
21210 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21211
212122007-07-11 Jason Rumney <jasonr@gnu.org>
21213
21214 * makefile.w32-in (LIBS): Include OLE32.
21215
21216 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21217 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21218
212192007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21220
21221 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21222 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21223 from a Lisp_Object into a bare pointer.
21224 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21225 Adjust the code correspondingly.
21226
21227 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21228
21229 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21230 (term_show_mouse_face): Remove unused var `j'.
21231 (handle_one_term_event): Remove unused vars `i' and `j'.
21232 Don't cast return value of ttyname since it's not necessary.
21233
212342007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21235
21236 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21237 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21238
21239 * fns.c (map_char_table): Use an array of int for `indices' rather than
21240 an array of Lisp_Objects (which are only ever integers anyway).
21241 (Fmap_char_table): Update caller.
21242 * lisp.h: Update prototype.
21243 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21244 * fontset.c (Ffontset_info):
21245 * casetab.c (set_case_table): Update callers.
21246
21247 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21248
21249 * keymap.c (struct accessible_keymaps_data)
21250 (struct where_is_internal_data): New structures.
21251 (accessible_keymaps_1, where_is_internal_1): Use them to change
21252 interface to adhere to the one used by map_keymap.
21253 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21254 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21255
21256 * keymap.h (map_keymap_function_t): More informative prototype.
21257
212582007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21259
21260 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21261 (looking_at_1): Don't change search_regs and last_thing_searched
21262 if `inhibit-changing-match-data' is non-nil.
21263 (string_match_1, search_buffer, set_search_regs): Likewise.
21264 (syms_of_search): Add Lisp level definition for
21265 `inhibit-changing-match-data' and set it to nil.
21266 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21267 start and end of the match, instead of using values in search_regs.
21268
212692007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * minibuf.c (Fcompleting_read): New value `confirm-only'
21272 for `require-match'.
21273
212742007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21275
21276 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21277 part of the 2007-06-27 change to syms_of_fileio.
21278
212792007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21280
21281 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21282 Check WINDOWP before using XWINDOW. Consolidate return statements.
21283
212842007-06-27 Richard Stallman <rms@gnu.org>
21285
21286 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21287
212882007-06-27 Juanma Barranquero <lekktu@gmail.com>
21289
21290 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21291
212922007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21293
21294 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21295 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21296 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21297 (_free_internal, memalign): Use them.
21298 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21299 Initialize to PTHREAD_MUTEX_INITIALIZER.
21300 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21301 (morecore_nolock): Rename from morecore. All uses changed.
21302 Use only nolock versions of internal allocation functions.
21303 (_malloc_internal_nolock, _realloc_internal_nolock)
21304 (_free_internal_nolock): New functions created from
21305 _malloc_internal, _realloc_internal, and _free_internal.
21306 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21307 Copy hook value to automatic variable before its use.
21308 (memalign): Copy hook value to automatic variable before its use.
21309
213102007-06-26 Kenichi Handa <handa@m17n.org>
21311
21312 * coding.c (Ffind_operation_coding_system): Docstring improved.
21313 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21314
213152007-06-25 David Kastrup <dak@gnu.org>
21316
21317 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21318 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21319 cater for additional parameter.
21320
21321 * keymap.h: Adjust number of parameters to `current-active-maps'.
21322
21323 * doc.c (Fsubstitute_command_keys): Adjust call of
21324 `current-active-maps'.
21325
213262007-06-25 David Kastrup <dak@gnu.org>
21327
21328 * callint.c (Fcall_interactively): Make the parsing of interactive
21329 specs somewhat more readable.
21330
213312007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21332
21333 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21334 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21335 if extended background has already been filled.
21336
213372007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21338
21339 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21340 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21341
21342 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21343 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21344 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21345 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21346 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21347 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21348 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21349 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21350 Run timers during dialog popup.
21351 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21352
213532007-06-21 Jason Rumney <jasonr@gnu.org>
21354
21355 * image.c (convert_mono_to_color_image): Swap fore and background.
21356
213572007-06-20 Jason Rumney <jasonr@gnu.org>
21358
21359 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21360 (w32_free_bdf_font): Unmap memory not handle.
21361
213622007-06-20 Sam Steingold <sds@gnu.org>
21363
21364 * gmalloc.c (__morecore): Fix the declaration to comply with the
21365 definition.
21366
213672007-06-20 Juanma Barranquero <lekktu@gmail.com>
21368
21369 * w32term.c (w32_delete_display): Remove leftover declaration.
21370 (w32_define_cursor, w32_initialize): Make static.
21371
21372 * w32.c (_wsa_errlist): Fix typo in error message.
21373 (init_environment): Ignore any environment variable from the
21374 registry having a null value.
21375
213762007-06-20 Glenn Morris <rgm@gnu.org>
21377
21378 * Makefile.in (LIBGIF): Default to -lgif.
21379
213802007-06-17 Jason Rumney <jasonr@gnu.org>
21381
21382 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21383 unicode strings.
21384
213852007-06-16 Juanma Barranquero <lekktu@gmail.com>
21386
21387 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21388 Fix typo in docstring.
21389
213902007-06-16 Eli Zaretskii <eliz@gnu.org>
21391
21392 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21393 and their keybindings.
21394
213952007-06-15 Chong Yidong <cyd@stupidchicken.com>
21396
21397 * composite.c (update_compositions): Fix last fix.
21398
213992007-06-14 Jason Rumney <jasonr@gnu.org>
21400
21401 * w32.c (get_process_times_fn): New function pointer.
21402 (globals_of_w32): Intialize it if present in kernel32.dll.
21403 (w32_get_internal_run_time): New function.
21404
21405 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21406
214072007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21408
21409 * composite.c (update_compositions): Check the validness of
21410 compositions.
21411
214122007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21413
21414 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21415 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21416
21417 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21418 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21419
21420 * macgui.h (USE_MAC_TOOLBAR): New define.
21421
21422 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21423 Return immediately unless popup is activated.
21424
21425 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21426 background to scroll bar gap.
21427 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21428 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21429 scroll bars on frame edge. Check fringe background extension.
21430 Don't clear extended fringe background area.
21431 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21432 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21433 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21434 [USE_MAC_TOOLBAR]: New macros.
21435 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21436 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21437 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21438 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21439 [USE_MAC_TOOLBAR]: New functions.
21440 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21441 manually if previous repositioning has failed.
21442 (mac_handle_keyboard_event): Use precomputed event kind.
21443 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21444 as tool bar item click. Handle mouse movement over tool bar items.
21445
21446 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21447 toolbar_win_gravity.
21448 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21449 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21450 Add externs.
21451
21452 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21453 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21454
214552007-06-14 Chong Yidong <cyd@stupidchicken.com>
21456
21457 * image.c (search_image_cache): Remove unused variable.
21458
214592007-06-13 Chong Yidong <cyd@stupidchicken.com>
21460
21461 * xfns.c, xmenu.c: Link to xaw3d if available.
21462
214632007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21464
21465 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21466 frame_foreground and frame_background.
21467
21468 * image.c (lookup_image): Save frame foreground and background colors.
21469 (search_image_cache): Check if saved and current frame colors match.
21470
214712007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21472
21473 * regex.c (regex_compile): Remove the `regnum' counter.
21474 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21475
214762007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21477
21478 * term.c: Include intervals.h to declare Fget_text_property.
21479
214802007-06-10 Jason Rumney <jasonr@gnu.org>
21481
21482 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21483
214842007-06-08 Juanma Barranquero <lekktu@gmail.com>
21485
21486 * callint.c (Fcall_interactively):
21487 * editfns.c (Fdelete_and_extract_region):
21488 * fileio.c (Fread_file_name):
21489 * fns.c (Fmapconcat):
21490 * keyboard.c (cmd_error_internal):
21491 * keymap.c (Fkey_description):
21492 * lread.c (openp):
21493 * minibuf.c (read_minibuf):
21494 * search.c (wordify):
21495 * sunfns.c (sel_read):
21496 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21497 * xfns.c (x_default_scroll_bar_color_parameter):
21498 * xmenu.c (menu_help_callback):
21499 * xselect.c (Fx_get_atom_name):
21500 * xterm.c (x_term_init): Use empty_unibyte_string.
21501
215022007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21503
21504 * alloc.c (init_strings): Initialize canonical empty strings.
21505 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21506 canonical empty string when the requested size is 0.
21507
21508 * emacs.c (empty_unibyte_string): Rename from empty_string.
21509 (empty_multibyte_string): New canonical empty string.
21510 (syms_of_emacs): Don't initialize empty_string.
21511
21512 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21513 string, if appropriate.
21514 (empty_unibyte_string, empty_multibyte_string): New externs.
21515 (empty_string): Remove extern.
21516
21517 * lread.c (syms_of_lread): Use empty_unibyte_string.
21518
215192007-06-07 Jason Rumney <jasonr@gnu.org>
21520
21521 * s/ms-w32.h: Don't define HAVE_TZNAME.
21522
21523 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21524
215252007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21526
21527 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21528
21529 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21530 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21531
21532 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21533 Don't call next handler.
21534 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21535 Remove argument. Install handler to application.
21536 (set_frame_menubar): Don't change deep_p.
21537 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21538 FRAME_OUTER_TO_INNER_DIFF_Y.
21539 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21540 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21541 [HAVE_DIALOGS]: New macros.
21542 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21543 Use them.
21544 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21545
21546 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21547 init_service_handler. All callers changed. Return OSStatus value.
21548
21549 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21550 All callers changed so as not to call SetPortWindowPort.
21551 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21552 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21553 mac_draw_string_common.
21554 (mac_draw_image_string_qd): Likewise.
21555 (mac_draw_string_common): Use them. Add INLINE.
21556 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21557 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21558 GetGlobalMouse.
21559 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21560 and FRAME_OUTER_TO_INNER_DIFF_Y.
21561 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21562 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21563 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21564 repositioning window to mac_handle_window_event.
21565 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21566 saving window location to mac_handle_window_event
21567 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21568 (install_menu_target_item_handler): Remove argument in extern.
21569 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21570 Also accept command events.
21571 (do_keystroke): New function created from XTread_socket.
21572 (init_command_handler): Remove functions.
21573 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21574 and save window location by kEventWindowShowing and kEventWindowHiding
21575 handlers here. Don't call next handler for window state change and
21576 focus events.
21577 (mac_handle_application_event, mac_handle_keyboard_event)
21578 [TARGET_API_MAC_CARBON]: New functions.
21579 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21580 kEventWindowShowing and kEventWindowHiding events. Move installation
21581 of mouse, font, text input and menu target item handlers to
21582 install_application_handler.
21583 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21584 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21585 New function.
21586 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21587 Register it.
21588 (XTread_socket) [TARGET_API_MAC_CARBON]:
21589 Consolidate SendEventToEventTarget calls.
21590 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21591 Move application activation handler to mac_handle_application_event.
21592 Move keyboard handler to mac_handle_keyboard_event.
21593 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21594 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21595 init_command_handler. Call install_application_handler.
21596
21597 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21598 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21599
216002007-06-07 Glenn Morris <rgm@gnu.org>
21601
21602 * emacs.c (main): Use `emacs-copyright' in --version output.
21603
216042007-06-06 Chong Yidong <cyd@stupidchicken.com>
21605
21606 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21607
216082007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21609
21610 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21611
21612 * macgui.h: Replace WindowPtr with WindowRef.
21613
21614 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21615 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21616 Replace ControlHandle with ControlRef.
21617 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21618
21619 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21620 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21621 Replace ControlHandle with ControlRef.
21622 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21623 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21624
21625 * macterm.h (struct scroll_bar): Rename member control_handle_low
21626 and control_handle_high to control_ref_low and control_ref_high.
21627 All uses changed.
21628 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21629 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21630 respectively. All uses changed.
21631 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21632 (install_window_handler, remove_window_handler): Replace WindowPtr
21633 with WindowRef in externs.
21634
216352007-06-05 Juanma Barranquero <lekktu@gmail.com>
21636
21637 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21638
216392007-06-03 Nick Roberts <nickrob@snap.net.nz>
21640
21641 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21642
21643 * frame.c (Fmouse_position, Fmouse_pixel_position):
21644 Condition on HAVE_GPM too.
21645
21646 * term.c (term_mouse_highlight): Remove unused variables.
21647 (Fterm_open_connection): Set gpm_zerobased to 1.
21648 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21649 Use zero based co-ordinates.
21650 (handle_one_term_event): Report a drag as mouse movement too.
21651
21652 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21653
216542007-06-03 Chong Yidong <cyd@stupidchicken.com>
21655
21656 * image.c (search_image_cache): New function. Require background
21657 color match if background color is unspecified in the image spec.
21658 (uncache_image, lookup_image): Use it.
21659
216602007-06-01 Juanma Barranquero <lekktu@gmail.com>
21661
21662 * window.c (Fshrink_window): Reflow docstring.
21663
216642007-06-02 Chong Yidong <cyd@stupidchicken.com>
21665
21666 * Version 22.1 released.
21667
216682007-06-01 Richard Stallman <rms@gnu.org>
21669
21670 * xfns.c (x_encode_text): Add GCPRO.
21671
216722007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21673
21674 * xfns.c (x_set_name_internal): Save encoded name before
21675 x_encode_text in case string data is relocated.
21676
216772007-05-31 Richard Stallman <rms@gnu.org>
21678
21679 * buffer.c (syms_of_buffer): Doc fix.
21680
216812007-05-30 Nick Roberts <nickrob@snap.net.nz>
21682
21683 * sysdep.c (init_sys_modes): Add rather than replace with
21684 O_NONBLOCK.
21685
21686 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21687 term_mouse_moveto.
21688
21689 * termhooks.h (term_mouse_moveto): New extern.
21690
21691 * term.c (mouse_face_window): Rename...
21692 (Qmouse_face_window): ...to this.
21693 (term_show_mouse_face, term_clear_mouse_face)
21694 (term_mouse_highlight): Use Qmouse_face_window.
21695 (term_mouse_moveto): New function.
21696 (term_mouse_position): Make it work.
21697 (syms_of_term): Uncomment assignment to mouse_position_hook.
21698 Staticpro Qmouse_face_window.
21699
217002007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21701
21702 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21703 around current_column call.
21704
217052007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21706
21707 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21708 * xdisp.c (next_element_from_buffer):
21709 * window.c (delete_window):
21710 * term.c (term_mouse_highlight):
21711 * msdos.c (getdefdir):
21712 * macterm.c (mac_create_bitmap_from_bitmap_data)
21713 (init_font_name_table):
21714 * fns.c (Fsxhash):
21715 * data.c (Fmake_local_variable):
21716 * ccl.c (ccl_driver): Likewise.
21717
217182007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21719
21720 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21721 Call mac_wakeup_from_rne on window size change.
21722
217232007-05-25 Chong Yidong <cyd@stupidchicken.com>
21724
21725 * image.c (uncache_image): Fix typo.
21726
217272007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21728
21729 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21730
217312007-05-22 Richard Stallman <rms@gnu.org>
21732
21733 * xterm.c (x_connection_closed): Remove NO_RETURN.
21734
217352007-05-22 Martin Rudalics <rudalics@gmx.at>
21736
21737 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21738
217392007-05-21 Chong Yidong <cyd@stupidchicken.com>
21740
21741 * image.c (uncache_image): New function.
21742 (Fimage_refresh): New function.
21743
217442007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21745
21746 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21747
217482007-05-20 Nick Roberts <nickrob@snap.net.nz>
21749
21750 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21751 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21752
217532007-05-20 Nick Roberts <nickrob@snap.net.nz>
21754
21755 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21756 conditional on [HAVE_GPM_H].
21757
217582007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21759
21760 * syntax.c (skip_chars): Update syntax-table only after we checked that
21761 the new location is valid.
21762
217632007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21764
21765 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21766 mac_get_window_bounds.
21767
217682007-05-20 Nick Roberts <nickrob@snap.net.nz>
21769
21770 * Makefile.in (LIBGPM): Allow it to be set from configure.
21771 If set then link Emacs with it.
21772
21773 * config.in: Regenerate.
21774
21775 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21776 New externs.
21777
21778 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21779 Include gpm.h.
21780 (handle_one_term_event, term_gpm): New externs.
21781
21782 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21783 and allow it to be interrupted by SIGIO.
21784
21785 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21786 (wait_reading_process_output): Wait on gpm_fd too.
21787 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21788 (add_gpm_wait_descriptor_called_flag): New variable.
21789 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21790
21791 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21792 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21793 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21794 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21795 (make_lispy_event): Add case GPM_CLICK_EVENT.
21796 (read_avail_input): Handle mouse input.
21797
21798 * term.c (write_glyphs_with_face): New function.
21799 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21800 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21801 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21802 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21803 (last_mouse_x, last_mouse_y): New variables.
21804 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21805 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21806 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21807 (Fterm_close_connection): New functions.
21808 (term_init): Initialise mouse_face_window.
21809
218102007-05-19 Chong Yidong <cyd@stupidchicken.com>
21811
21812 * xdisp.c (redisplay_window): If first window line is a
21813 continuation line, recompute the new window start instead of
21814 recentering.
21815
218162007-05-18 Glenn Morris <rgm@gnu.org>
21817
21818 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21819 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21820
218212007-05-17 Glenn Morris <rgm@gnu.org>
21822
21823 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21824
218252007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21826
21827 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21828 dead key repeat and up events.
21829
218302007-05-14 Chong Yidong <cyd@stupidchicken.com>
21831
21832 * image.c (pbm_load): Check image size for monochrome pbm.
21833
218342007-05-13 Chong Yidong <cyd@stupidchicken.com>
21835
21836 * xterm.c (XTread_socket): Revert last change.
21837
218382007-05-12 Chong Yidong <cyd@stupidchicken.com>
21839
21840 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21841
21842 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21843
218442007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21845
21846 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21847 mixup (YAILOM).
21848
218492007-05-07 Andreas Schwab <schwab@suse.de>
21850
21851 * keymap.c (Flookup_key): Fix typo in last change.
21852
218532007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21854
21855 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21856 mapping for unibyte strings.
21857
218582007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21859
21860 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21861 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21862
218632007-04-29 Richard Stallman <rms@gnu.org>
21864
21865 * insdel.c (replace_range): For undo, record insertion first.
21866
218672007-04-29 Andreas Schwab <schwab@suse.de>
21868
21869 * lisp.h (VECSIZE): Use OFFSETOF.
21870
218712007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21872
21873 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21874 disabled lines.
21875
218762007-04-28 Richard Stallman <rms@gnu.org>
21877
21878 * lread.c (read_escape): In a string, \s is always space.
21879
218802007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21881
21882 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21883
21884 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21885 submenu for menu bar items.
21886
21887See ChangeLog.10 for earlier changes.
21888
21889;; Local Variables:
21890;; coding: utf-8
21891;; add-log-time-zone-rule: t
aac0c6e3
MR
21892;; End:
21893
e3eb1dae 21894 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21895
21896 This file is part of GNU Emacs.
21897
21898 GNU Emacs is free software: you can redistribute it and/or modify
21899 it under the terms of the GNU General Public License as published by
21900 the Free Software Foundation, either version 3 of the License, or
21901 (at your option) any later version.
21902
21903 GNU Emacs is distributed in the hope that it will be useful,
21904 but WITHOUT ANY WARRANTY; without even the implied warranty of
21905 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21906 GNU General Public License for more details.
21907
21908 You should have received a copy of the GNU General Public License
21909 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21910
21911;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40