Fix faulty `if' statement in delete_frame.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
54ee7410
CY
12010-07-02 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (Qtooltip): New var.
4 (delete_frame): Use it. Fix faulty if statement. Don't update
5 mode line for tooltip frames. Suggested by Martin Rudalics.
6
7 * xfns.c (x_create_tip_frame):
8 * w32fns.c (x_create_tip_frame): Use it.
9
3d8416fc
NA
102010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
11
12 * xftfont.c (xftfont_open): Check font width one by one also when
13 spacing is dual.
14
15 * ftfont.c (ftfont_open): Ditto.
16
b1feb9b4
AS
172010-06-26 Andreas Schwab <schwab@linux-m68k.org>
18
19 * alloc.c (Fmake_byte_code): Don't access undefined argument
20 (Bug#6517).
21
c7dd9743
CY
222010-06-25 Chong Yidong <cyd@stupidchicken.com>
23
24 * xdisp.c (next_element_from_image): Ensure that after-strings are
25 read the next time we hit handle_stop (Bug#1336).
26
5721b4ed
AS
272010-06-23 Andreas Schwab <schwab@linux-m68k.org>
28
29 * lread.c (read1): Signal error if #s is not followed by paren.
30
277c5f18
CY
312010-06-19 Chong Yidong <cyd@stupidchicken.com>
32
52ab9bb2
CY
33 * image.c (free_image): Mark frame as garbaged (Bug#6426).
34
277c5f18
CY
35 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
36
6fda6a0c
GM
372010-06-15 Glenn Morris <rgm@gnu.org>
38
39 * editfns.c (Fbyte_to_string): Pacify compiler.
40
e454a4a3
SM
412010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
42
43 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
44 Check `object's type before accessing its guts.
45
657d4c0b
AS
462010-06-08 Andreas Schwab <schwab@linux-m68k.org>
47
48 * minibuf.c (Fall_completions): Add more checks.
49
9b27fd9f
JB
502010-06-08 Juanma Barranquero <lekktu@gmail.com>
51
52 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
53
0eb7675e
AS
542010-06-03 Andreas Schwab <schwab@linux-m68k.org>
55
56 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 57 address. (Bug#6346)
0eb7675e 58
78edd3b7
JB
592010-06-03 Juanma Barranquero <lekktu@gmail.com>
60
61 * ccl.c (Fccl_program_p): Fix typo in docstring.
62
1ab8293c
SM
632010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
64
65 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
66 of bug#6305).
67
5ca3929b
CY
682010-05-27 Chong Yidong <cyd@stupidchicken.com>
69
70 * xdisp.c (redisplay_window): After redisplay, check if point is
71 still valid before setting it (Bug#6177).
72
f5b416d2 732010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
74
75 * s/netbsd.h: If terminfo is found, use it in preference to
76 termcap. (Bug#6190) [Backport from trunk]
77
aeb77d46
CY
782010-05-20 Kevin Ryde <user42@zip.com.au>
79
80 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
81 (Voverriding_terminal_local_map, Vsystem_key_alist)
82 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
83
c3bb441d
SM
842010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
85
86 * editfns.c (Fbyte_to_string): New function.
87
754790b6
CY
882010-05-18 Chong Yidong <cyd@stupidchicken.com>
89
90 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
91 prevent stack overflow if number of arguments is too large
92 (Bug#6214).
93
c8670ded
EZ
942010-05-11 Eli Zaretskii <eliz@gnu.org>
95
96 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
97
98 * w32fns.c: Include w32.h.
99 (Fw32_shell_execute): Decode the error message before passing it
100 to `error'. (Bug#6126)
101
3ffd4615 1022010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
103
104 * ftfont.c: Fix incorrect parentheses of #if condition for
105 definining M17N_FLT_USE_NEW_FEATURE.
106
61a808e8
CY
1072010-05-07 Chong Yidong <cyd@stupidchicken.com>
108
109 * Version 23.2 released.
110
5dcde606
AS
1112010-04-30 Andreas Schwab <schwab@linux-m68k.org>
112
113 * composite.c (autocmp_chars): Save point as marker before calling
114 auto-composition-function (Bug#5984).
115
116 * lisp.h (restore_point_unwind): Add prototype.
117
118 * fileio.c (restore_point_unwind): Remove static attribute.
119
c4170e32
KH
1202010-04-23 Kenichi Handa <handa@m17n.org>
121
122 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
123 new feature of libotf and m17n-flt.
124 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]: Call
125 OTF_check_features even if no specific feature is given.
126 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
127 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
128 that OUT is NULL. Use OTF_drive_gsub_with_log and
129 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
130 OTF_drive_gpos.
131 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
132 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]: Setup
133 mflt_enable_new_feature and mflt_try_otf.
134
e42cd1a7
JB
1352010-04-19 Juanma Barranquero <lekktu@gmail.com>
136
137 * dired.c (Ffile_attributes): Fix typo in docstring.
138
79353a53
AR
1392010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
140
141 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
142 NSInteger (Bug#5811).
143
658b9b93
YM
1442010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
145
146 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
147 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
148
16009a0e
YM
1492010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
150
151 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
152
f016f225
JD
1532010-04-07 Jan Djärv <jan.h.d@swipnet.se>
154
155 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
156 FRAME_LINE_TO_PIXEL_Y.
157
158 * xterm.c (x_set_window_size_1): Don't add border_width/height to
159 pixelwidth/height.
160
84257d93
CY
1612010-04-05 Chong Yidong <cyd@stupidchicken.com>
162
163 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
164 terminal frames (Bug#5837).
165
95b1abcf
CY
1662010-03-31 Chong Yidong <cyd@stupidchicken.com>
167
168 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
169 * nsterm.h: Fix prototype.
170
4a217bed
EZ
1712010-03-31 Eli Zaretskii <eliz@gnu.org>
172
173 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
174 in this function. (Bug#5703)
175
4f103e04
CY
1762010-03-31 Chong Yidong <cyd@stupidchicken.com>
177
178 * nsterm.h: Fix last change.
179
a6d676d9
CY
1802010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
181
182 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
183
67fee863
JD
1842010-03-30 Jan Djärv <jan.h.d@swipnet.se>
185
186 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
187 invisible (Bug#5766).
188
9ae6e189
CY
1892010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
190
191 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
192 HAVE_NS conditionals.
194d44e7 193 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
194
195 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
196 filename for the title.
197 (ns_set_doc_edited): Do nothing if the selected window is a
198 minibuffer window.
199
200 * nsterm.h: Add prototypes for ns_set_name_as_filename and
201 ns_set_doc_edited.
202
203 * nsterm.m: Remove unneeded prototype.
204
25c72475
GM
2052010-03-28 Glenn Morris <rgm@gnu.org>
206
207 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
208 in the DOC file. (Bug#5336)
209
f79a01db
CY
2102010-03-24 Chong Yidong <cyd@stupidchicken.com>
211
212 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
213
93318cbd
JD
2142010-03-20 Jan Djärv <jan.h.d@swipnet.se>
215
216 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
217
218 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
219
220 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
221
ad13a3ee
YM
2222010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223
224 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
225 XLoadQueryFont.
226
fbdc1721
KH
2272010-03-16 Kenichi Handa <handa@m17n.org>
228
229 * coding.c (decode_coding_ccl): Fix previous change for the
230 multibyte case.
fb608df3
KH
231 (encode_coding_ccl): Don't setup ccl program here. Fix for the
232 case that the output buffer is fullfilled.
233 (encode_coding): Setup ccl program here.
fbdc1721 234
35cd7cd6
CY
2352010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
236
237 * editfns.c (Fformat): Account for string precision when computing
238 field width (Bug#5710).
239
618db430
SM
2402010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
241
c0335e02
SM
242 Make it possible to C-g in a tight bytecode loop again (bug#5680).
243 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
244 (QUIT): Use it to consolidate code and remove redundancy.
245 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
246
254c06a8
SM
247 * regex.c (regex_compile): Setup gl_state as well.
248
618db430
SM
249 * syntax.c (skip_chars): Setup gl_state (bug#3823).
250 (in_classes): Use CONSP before XCAR/XCDR.
251
233f0c9f
CY
2522010-03-03 Chong Yidong <cyd@stupidchicken.com>
253
254 * keymap.c (Fwhere_is_internal): Use Fequal to compare
255 definitions, so that keyboard macros are correctly handled
256 (Bug#5481).
257
75f80e63
EZ
2582010-03-02 Eli Zaretskii <eliz@gnu.org>
259
260 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
261 text that could be relocated inside the call to emacs_mule_char.
262 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
263 (CODING_DECODE_CHAR): Add a comment describing its purpose.
264
dcfb9bc4
KH
2652010-03-02 Kenichi Handa <handa@m17n.org>
266
fc9a17bc
KH
267 * character.c (parse_str_as_multibyte): Fix handling of the
268 multibyte form of raw-bytes.
269 (str_as_multibyte): Likewise.
270
dcfb9bc4
KH
271 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
272 form of raw-bytes.
273
412c01b6
CY
2742010-02-28 Chong Yidong <cyd@stupidchicken.com>
275
276 * charset.c (load_charset_map_from_file)
277 (load_charset_map_from_vector): Zero out allocated
278 charset_map_entries before using them.
279
df7e1ea0
AS
2802010-02-27 Andreas Schwab <schwab@linux-m68k.org>
281
282 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
283
fe69a722
CY
2842010-02-27 Chong Yidong <cyd@stupidchicken.com>
285
4ed28cf4
CY
286 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
287 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 288
7379cfce
KH
2892010-02-26 Kenichi Handa <handa@m17n.org>
290
f88cc4d6
KH
291 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
292
7379cfce
KH
293 * xdisp.c (reseat_to_string): Fix previous change.
294
cf2fdcfb
CY
2952010-02-26 David Reitter <david.reitter@gmail.com>
296
297 * nsfont.m (nsfont_draw): ns_antialias_text should be a
298 Lisp_Object (Bug#4736).
299
cc6c7c75
KH
3002010-02-25 Kenichi Handa <handa@m17n.org>
301
302 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
303
32e737d7
JD
3042010-02-24 Jan Djärv <jan.h.d@swipnet.se>
305
306 * xterm.c (XTflash): Move declarations before statements.
307
308 * gtkutil.c (xg_get_gdk_display): Remove (unused).
309 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
310 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
311 (xg_create_tool_bar): Remove unused variables.
312 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 313 (xg_create_frame_widgets): Remove variable grav.
32e737d7 314
676cae9f
CY
3152010-02-21 Chong Yidong <cyd@stupidchicken.com>
316
317 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
318
886cc2b8
SM
3192010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
320
321 * term.c (fatal): Add a final \n if needed (bug#5596).
322
ddb2d8e2
CY
3232010-02-18 Chong Yidong <cyd@stupidchicken.com>
324
325 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
326
2a4f8d3d
GM
3272010-02-18 Glenn Morris <rgm@gnu.org>
328
329 * callint.c (Finteractive): Doc fix.
330
ebaf11b6
KH
3312010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
332
886cc2b8
SM
333 * coding.c (record_conversion_result):
334 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
335 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
336 memory allocation error.
337
d0396581
KH
3382010-02-17 Kenichi Handa <handa@m17n.org>
339
886cc2b8
SM
340 * coding.c (decode_coding_ccl): Don't setup ccl program here.
341 Fix for the case that the output buffer is fullfilled.
d0396581
KH
342 (decode_coding): Setup ccl program here. Keep looping when the
343 decoder stopped because the output buffer is
344 fullfilled (bug#5534).
345
346 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
347
98599f74
JD
3482010-02-13 Jan Djärv <jan.h.d@swipnet.se>
349
471e4f04 350 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 351 bug #5571.
886cc2b8 352 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 353 overdrawn.
98599f74 354
182659ae
JD
3552010-02-10 Jan Djärv <jan.h.d@swipnet.se>
356
357 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
358 doing_interact here.
359 (ice_connection_closed): New function.
360 (x_session_check_input, smc_die_CB, ice_io_error_handler)
361 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
362 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
363 returns I/O error.
364 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
365 bug #5512.
366
9be32c4e 3672010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
368
369 * nsfont.m (nsfont_open): The system's value for the font descent
370 is negative, so round it down to avoid clipping.
371
a2f3eb19
CY
3722010-02-06 Chong Yidong <cyd@stupidchicken.com>
373
374 * charset.c (load_charset_map_from_file)
375 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 376 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 377
3088147c
CY
3782010-02-05 Chong Yidong <cyd@stupidchicken.com>
379
380 * charset.c (load_charset_map_from_file): Allocate large
381 charset_map_entries structure on the heap rather than the stack.
382 (Bug#5526).
383
b57d9029
KH
3842010-01-31 Kenichi Handa <handa@m17n.org>
385
386 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 387 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 388
c67d885b
CY
3892010-01-31 Chong Yidong <cyd@stupidchicken.com>
390
391 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
392 <deactivated@gmail.com> (Bug#3605).
393
8fab2362
CY
3942010-01-31 David De La Harpe Golden <david@harpegolden.net>
395
396 * fileio.c (Frename_file): Correctly rename symlinks to
397 directories (Bug#5496).
398
cb2a62f2
CY
3992010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
400
401 * nsterm.m (ns_ring_bell): Handle visible bell like X.
402
944c7a26
AS
4032010-01-30 Andreas Schwab <schwab@linux-m68k.org>
404
405 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
406
c024ac08
CY
4072010-01-29 Chong Yidong <cyd@stupidchicken.com>
408
409 * frame.c (DEFAULT_ROWS): Change default to 35.
410
411 * xfns.c (x_default_font_parameter): Change default XFT font to
412 monospace-10 (Bug#3643).
413
af93af83
EZ
4142010-01-29 Eli Zaretskii <eliz@gnu.org>
415
416 * w32inevt.c (key_event): Remove unnecessary comparison of
417 event->uChar.AsciiChar with 128.
418
ca0eb708
CY
4192010-01-28 Chong Yidong <cyd@stupidchicken.com>
420
b242dbfc
CY
421 * fileio.c (Frename_file): Fix last change (Bug#5487).
422
ca0eb708
CY
423 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
424
425 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
426
45d45af5
JD
4272010-01-28 Jan Djärv <jan.h.d@swipnet.se>
428
429 * xfns.c (Fx_create_frame): Remove window size matching code from
430 2010-01-15.
a73f9c9d 431 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 432
7e233730
JR
4332010-01-27 Jason Rumney <jasonr@gnu.org>
434
435 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 436 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 437
86e893e3
KH
4382010-01-27 Kenichi Handa <handa@m17n.org>
439
440 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 441 pattern string (Bug#4209).
86e893e3 442
8719abec
CY
4432010-01-27 David De La Harpe Golden <david@harpegolden.net>
444
445 * fileio.c (Frename_file): Call copy-directory and
446 delete-directory for directories, in order to handle cross-device
447 renaming (Bug#3353).
448
844794c8
JD
4492010-01-25 Jan Djärv <jan.h.d@swipnet.se>
450
aa3e13b5 451 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 452 sizes 24 and 10. Bug #3643.
844794c8 453
bd4b5750
SM
4542010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
455
8dc1adf6 456 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
457 * keymap.c (shadow_lookup): Add `remap' arg.
458 (describe_map, describe_vector): Update calls to shadow_lookup.
459 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
460 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
461 perform remapping during shadow_lookup check of remapped_sequences.
462
285d07e2
CY
4632010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
464
465 * image.c (png_load): Use png_sig_cmp instead of the obsolete
466 png_check_sig, which has been removed in libpng 1.4.
467
c6d09b8d
CY
4682010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
469
470 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
471 lacks this header file).
472
3d782998
YM
4732010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
474
475 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
476 as in Emacs 22.
477
2aff7c53
YM
4782010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
479
480 * lisp.h (make_pure_string): String pointer arg now points to const.
481
482 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
483 args now point to const.
484
74327f7a
EZ
4852010-01-22 Eli Zaretskii <eliz@gnu.org>
486
487 * lread.c (Fload): Don't treat files without .elc extension as
488 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
489 them. (bug#5303)
490
4d1e6632
KH
4912010-01-20 Kenichi Handa <handa@m17n.org>
492
493 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
494 treat the source as actual byte sequence.
495
1fdede8f
AM
4962010-01-19 Alan Mackenzie <acm@muc.de>
497
498 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 499 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
500 `signal_after_change_p' to `coherent_change_p', and make the
501 invocation of `modify_region' conditional on it.
502
67477f30
JD
5032010-01-19 Jan Djärv <jan.h.d@swipnet.se>
504
505 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
506 for debug purpose.
507 (syms_of_xsettings): Declare xft-settings.
508
244b023e
CY
5092010-01-18 Chong Yidong <cyd@stupidchicken.com>
510
511 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
512
617364fe
CY
5132010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
514
515 * xterm.c (event_handler_gdk): Block input (Bug#5037).
516
4fe22cdf
CY
5172010-01-16 Chong Yidong <cyd@stupidchicken.com>
518
519 * emacs.c (standard_args): Adjust arg priorities to reflect how
520 they are processed in startup.el.
521
e118d2be
AS
5222010-01-16 Andreas Schwab <schwab@linux-m68k.org>
523
524 * Makefile.in (lisp, shortlisp): Update.
525
523ae620
SM
5262010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
527
528 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
529 code, link the new kboard into all_kboard before running Lisp code,
530 and protect the new terminal with GCPRO (Bug#5365).
531 (x_term_init): Remove unused var `atom'.
532 (x_delete_display, x_delete_terminal): Remove unused var `i'.
533
f0d13888
JD
5342010-01-15 Jan Djärv <jan.h.d@swipnet.se>
535
536 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
537 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
538 to find out usable size of the desktop. Don't make frames larger than
ac146f82 539 this. Bug #3643.
f0d13888 540
cc320f07
KH
5412010-01-15 Kenichi Handa <handa@m17n.org>
542
543 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
544
7ffdf101
CY
5452010-01-15 Chong Yidong <cyd@stupidchicken.com>
546
547 * nsterm.m (Qnone): Define.
548
549 * nsfns.m (Qnone): Move definition to nsterm.m.
550
d12bd917
KH
5512010-01-14 Kenichi Handa <handa@m17n.org>
552
553 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
554 systems.
555
d9a7c140
KH
5562010-01-14 Kenichi Handa <handa@m17n.org>
557
558 Make auto-composition work on all buffers even if they are
559 fundamental mode.
560
561 * composite.c (Vauto_composition_mode): New variable.
562 (composition_compute_stop_pos): Check Vauto_composition_mode
563 instead of Vauto_composition_function.
564 (composition_adjust_point, Ffind_composition_internal): Likewise.
565 (syms_of_composite): Declare Lisp variable
566 "auto-composition-mode" here.
567
63286bb2
CY
5682010-01-13 Chong Yidong <cyd@stupidchicken.com>
569
570 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
571 during call to vendor-specific-keysyms (Bug#5365).
572
c2623ee7
YM
5732010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
574
575 * keyboard.c (input_available_signal) [SYNC_INPUT]:
576 Call SIGNAL_THREAD_CHECK (Bug#5333).
577
578 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
579 Call SIGNAL_THREAD_CHECK.
580
0b5397c2
SM
5812010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
582
583 Try to fix bug#5314. This is probably not the final word, tho.
584 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
585 recent-auto-save-p as a side-effect.
586 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
587 * buffer.c (Fkill_buffer, reset_buffer):
588 * editfns.c (Fsubst_char_in_region):
589 * fileio.c (Finsert_file_contents, Fdo_auto_save)
590 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
591
dc954cb2
KH
5922010-01-13 Kenichi Handa <handa@m17n.org>
593
594 Display buffer name, etc. in mode line by composing correctly.
595
596 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
597 STRING is not nil.
0b5397c2 598 (display_mode_element): Adjust for the change of
dc954cb2
KH
599 decode_mode_spec and display_line.
600 (decode_mode_spec): Change arg MULTIBYTE to STRING.
601 (display_string): Handle the case that STRING is non-null and
602 LISP_STRING is not nil.
603
0b5397c2
SM
604 * xterm.c (x_draw_composite_glyph_string_foreground):
605 Pay attention to s->face->overstrike.
dc954cb2
KH
606
607 * composite.c (composition_reseat_it): Don't check PT if STRING is
608 non nil.
609
4a00eaca
YM
6102010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
611
612 * keyboard.c (read_char): Don't apply previous change when current
613 buffer is unchanged by command execution.
614
60abb287
JD
6152010-01-12 Jan Djärv <jan.h.d@swipnet.se>
616
617 * keyboard.c (read_char): Return after executing from special map.
618
893db5bc
GM
6192010-01-12 Glenn Morris <rgm@gnu.org>
620
621 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
622 bug-gnu-emacs rather than emacs-pretest-bug.
623
4d03ece0
CY
6242010-01-11 Chong Yidong <cyd@stupidchicken.com>
625
626 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
627 initializing the Lisp variables that depend on them.
628
1df47e38
YM
6292010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
630
631 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
632 Clear areas that will not be updated after change of menu bar lines.
633 Clear the menu bar window's current matrix when the window gets empty.
634
2f1c6384
CY
6352010-01-09 Chong Yidong <cyd@stupidchicken.com>
636
e398c61c
CY
637 * intervals.h, textprop.c (extend_property_ranges): Return value
638 and args changed. Discard properties that begin at or after the
639 new end (Bug#5306).
640
641 * editfns.c (Fformat): Caller changed.
642
e5a29a10
CY
643 * nsterm.m (ns_set_default_prefs): Delete function.
644 (syms_of_nsterm): Initialize ns_command_modifier,
645 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
646 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
647
2f1c6384
CY
648 * xdisp.c (pos_visible_p): Check for invisible text at the correct
649 position (Bug#4040).
650
d427a9fa
EZ
6512010-01-09 Eli Zaretskii <eliz@gnu.org>
652
653 * editfns.c (Ffloat_time): Doc fix.
654
21b9df2f
JD
6552010-01-09 Jan Djärv <jan.h.d@swipnet.se>
656
657 * xfns.c (Fx_create_frame): Don't create frame larger than display
658 by default bug#3643.
659
4b00d3b1
YM
6602010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
661
662 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
663 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
664 windows above internal border.
665
666 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
667 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
668 windows above internal border.
669
670 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
671 tool bar windows specially.
672
673 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
674
675 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
676 specially.
677 (XTflash): Take account of menu bar height.
678
679 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
680 specially.
681
5075d853
JD
6822010-01-08 Jan Djärv <jan.h.d@swipnet.se>
683
ac146f82 684 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
685 also be true before we can return early (bug #5339).
686
474217c8
CY
6872010-01-06 David Reitter <david.reitter@gmail.com>
688
689 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
690 (Fns_display_usable_bounds): Rewrite, computing bounds properly
691 (Bug#3233).
692
c0e6d47d
JD
6932010-01-06 Jan Djärv <jan.h.d@swipnet.se>
694
d0cf45b7
JD
695 * font.c (font_open_entity): Enable chache and call cached_font_ok
696 for the driver if defined.
697 (QCuser_spec): New symbol.
698 (font_spec_from_name): Save name as user-spec.
699 (font_load_for_lface): Keep user-spec instead of name.
700 (font_open_by_name): Save name as user-spec.
701 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 702 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
703
704 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
705 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
706 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
707
708 * font.h (struct font_driver): Add cached_font_ok.
709
c0e6d47d
JD
710 * xterm.c (x_clear_frame): Queue draw for scroll bars.
711
7c583cd8
JD
7122010-01-05 Jan Djärv <jan.h.d@swipnet.se>
713
714 * xterm.c (x_new_font): Move code for setting rows/cols before
715 resizing ...
ac146f82 716 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
717
718 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
719 (xg_frame_resized, xg_frame_set_char_size):
720 Call xg_clear_under_internal_border.
7c583cd8 721 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 722
03f77f0a
CY
7232010-01-05 Chong Yidong <cyd@stupidchicken.com>
724
725 * keyboard.c (read_key_sequence): Catch keyboard switch after
726 making a new tty frame (Bug#5095).
727
2a1ef5be
KH
7282010-01-05 Kenichi Handa <handa@m17n.org>
729
730 * fontset.c (fontset_find_font): Fix getting the frame pointer.
731
e3eb1dae
SM
7322010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
733
734 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
735 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
736 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
737
777013f2
MA
7382010-01-03 Michael Albinus <michael.albinus@gmx.de>
739
740 * dbusbind.c (xd_add_watch): Improve debug message.
741 (xd_remove_watch): Improve debug message. If DATA is the session
742 bus, unset D-Bus session environment.
743 (Fdbus_init_bus): Pass the bus as argument to
744 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 745
8932b1c2
CY
7462010-01-01 Chong Yidong <cyd@stupidchicken.com>
747
87231e2c
CY
748 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
749
4801c5fa
CY
750 * lread.c (syms_of_lread): Make it clearer that these are the
751 names of loaded files (Bug#5068).
752
8932b1c2
CY
753 * eval.c (run_hook_with_args): Handle the case where the global
754 value has the obsolete single-function form (Bug#5026).
755
11e3c684
CY
7562009-12-27 Chong Yidong <cyd@stupidchicken.com>
757
758 * minibuf.c (Fall_completions): Minor optimization.
759
5b28ce35
EZ
7602009-12-26 Eli Zaretskii <eliz@gnu.org>
761
5ce6e4f4
JB
762 * .gdbinit (pgx): Fix display of composite glyphs.
763 Display cmp.from and cmp.to as well.
764 (pitx): Fix last change.
5b28ce35 765
bcffff46
KH
7662009-12-25 Kenichi Handa <handa@m17n.org>
767
768 * composite.h (composition_adjust_point): Update prototype.
769
770 * composite.c (composition_reseat_it): Don't make a composition
771 spanning over point.
772 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
773 composable characters.
774 (composition_adjust_point): New arg NEW_PT. Callers changed.
775
776 * keyboard.c (command_loop_1): Force redisplay if the last point
777 was within a composition.
778 (adjust_point_for_property): Don't adjust point for automatic
779 composition when called after buffer modification.
780
3f670e9a
EZ
7812009-12-19 Eli Zaretskii <eliz@gnu.org>
782
5ce6e4f4
JB
783 * .gdbinit (pitx): Don't use enum names, use their values.
784 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
785 (pgx): Don't use enum names, use their values.
786 (pitmethod): New helper command.
787 (pitx): Use it to display iteration method.
788 (pgrowit): New command.
789
ad903955
EZ
790 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
791
3f670e9a
EZ
792 Update dependencies in Makefile.in.
793
794 * Makefile.in (alloc.o): Depend on termhooks.h.
795 (atimer.o): Depend on blockinput.h.
796 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
797 and frame.h.
798 (callint.o): Depend on systime.h, coding.h, and composite.h.
799 (callproc.o): Depend on buffer.h.
800 (casefiddle.o): Don't depend on charset.h.
801 (casetab.o): Depend on character.h.
802 (ccl.o): Depend on composite.h.
803 (chartab.o): Depend on ccl.h.
804 (cm.o): Depend on dispextern.h.
805 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
806 (coding.o): Don't depend on $(INTERVALS_H).
807 (composite.o): Don't depend on dispextern.h explicitly (it's in
808 $(INTERVALS_H)). Depend on ccl.h.
809 (data.o): Depend on systime.h, coding.h, composite.h,
810 dispextern.h, font.h, and ccl.h.
811 (dired.o): Depend on composite.h.
812 (dispnew.o): Depend on coding.h. Don't depend explicitly on
813 composite.h (it's in $(INTERVALS_H)).
814 (doc.o): Depend on systime.h, coding.h, and composite.h.
815 (editfns.o): Don't depend explicitly on dispextern.h.
816 (emacs.o): Depend on frame.h and coding.h.
817 (eval.o): Depend on coding.h, composite.h, and xterm.h.
818 (fileio.o): Depend on frame.h and commands.h. Don't depend
819 explicitly on dispextern.h.
820 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
821 composite.h.
822 (fns.o): Don't depend on termhooks.h.
823 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
824 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
825 coding.h, $(INTERVALS_H), window.h, xterm.h.
826 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
827 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
828 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
829 fontset.h, ccl.h, and ftfont.h.
830 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
831 (gtkutil.o): Depend on dispextern.h and composite.h.
832 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
833 termhooks.h, and ccl.h.
834 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
835 (intervals.o): Depend on systime.h and coding.h.
836 (keyboard.o): Depend on composite.h and coding.h.
837 (keymap.o): Depend on coding.h and frame.h.
838 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
839 (macros.o): Depend on systime.h, coding.h, and composite.h.
840 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
841 and atimer.h.
842 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
843 dispextern.h explicitly.
0b5397c2
SM
844 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
845 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
846 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
847 (regex.o): Don't depend on charset.h.
848 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
849 (search.o): Don't depend explicitly on composite.h.
850 (sound.o): Depend on atimer.h and systime.h.
851 (syntax.o): Don't depend explicitly on composite.h.
852 (sysdep.o): Depend on coding.h and composite.h.
853 (term.o): Depend on xterm.h and buffer.h.
854 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
855 (textprop.o): Don't depend on dispextern.h explicitly.
856 (undo.o): Depend on dispextern.h.
857 (window.o): Depend on coding.h and termhooks.h. Don't depend on
858 dispextern.h and composite.h explicitly.
859 (xdisp.o): Depend on ccl.h.
860 (xfaces.o): Depend on coding.h and ccl.h.
861 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
862 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
863 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
864 ftfont.h.
865 (xgselect.o): New dependency.
866 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
867 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
868 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
869 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
870 (xsmfns.o): Depend on frame.h and dispextern.h.
871 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
872 sysselect.h.
873
7a6f7fea
AS
8742009-12-19 Andreas Schwab <schwab@linux-m68k.org>
875
876 * font.c (Fclear_font_cache): Pass correct cache argument to
877 font_clear_cache.
878
f4c21026
AS
8792009-12-16 Andreas Schwab <schwab@linux-m68k.org>
880
881 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
882 twice.
883
f7ab0997
CY
8842009-12-15 Chong Yidong <cyd@stupidchicken.com>
885
886 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
887 calling file-remote-p. Reported by Jim Meyering.
888
fa8e045a
MA
8892009-12-15 Michael Albinus <michael.albinus@gmx.de>
890
891 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 892 avoid compiler warnings. (Bug #5217)
fa8e045a 893
a63dba42
KH
8942009-12-14 Kenichi Handa <handa@m17n.org>
895
896 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
897 in 8-bit encoding.
898
5ce6e4f4 8992009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
900
901 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
902 tooltip windows.
903
223e5fc6
JD
9042009-12-13 Jan Djärv <jan.h.d@swipnet.se>
905
36acb2a7
JD
906 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
907 Xatom_net_window_type.
908
909 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
910 Xatom_net_window_type.
911
b8f00677
JD
912 * xterm.c (my_log_handler): New function.
913 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 914 so we can filter out buggy messages. (Bug #5120).
b8f00677 915
e5f0bc9a
JD
916 * xterm.c (xg_scroll_callback): Parameter list changed,
917 use parameter GtkScrollType to determine scroll/line/page.
918 Only allow dragging if a button < 4 is grabbed (bug #5177).
919 (xg_end_scroll_callback): New function.
920 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
921 xg_create_scroll_bar.
922
923 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
924 (scroll_end_callback): Remove.
925 (xg_create_scroll_bar): Add parameter end_callback, bind it to
926 button-release-event. Replace value-changed event with change-value,
927 bug #5177,
928 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
929 bug #5177.
930
931 * gtkutil.h (XG_LAST_SB_DATA): Remove.
932 (xg_create_scroll_bar): Add GCallback end_callback.
933
223e5fc6
JD
934 * xftfont.c (QClcdfilter): New variable.
935 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
936 (syms_of_xftfont): Initialize QClcdfilter.
937
3c055b77
JD
9382009-12-12 Jan Djärv <jan.h.d@swipnet.se>
939
940 * xsettings.c (struct xsettings): Add member seen.
941 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 942 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
943 (apply_xft_settings): Only update Xft settings with what member seen
944 indicates as new.
945
05fe33ff
EZ
9462009-12-12 Eli Zaretskii <eliz@gnu.org>
947
948 * dispextern.h (struct text_pos): Use EMACS_INT;
949 (struct glyph): Use EMACS_INT for charpos.
950 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
951 region_beg_charpos, region_end_charpos,
952 redisplay_end_trigger_charpos, and also for
953 iterator_stack_entry.end_charpos and
954 iterator_stack_entry.stop_charpos.
955
e8d7886a
JD
9562009-12-12 Jan Djärv <jan.h.d@swipnet.se>
957
5ce6e4f4 958 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
959 (xg_create_scroll_bar): Call scroll_end_callback on button release
960 event (bug #5177).
961 (xg_event_is_for_scrollbar): != replaced with ==.
962
d0db2ec8
KH
9632009-12-12 Kenichi Handa <handa@m17n.org>
964
965 * ftfont.c (struct ftfont_info): New member matrix.
966 (ftfont_open): Setup xftfont_info->matrix.
967 (MFLTFontFT): New member matrix.
968 (FLOOR, CEIL, ROUND): New macros.
969 (ftfont_get_metrics): Handle matrix transformation.
970 (ftfont_shape_by_flt): New arg matrix. Callers changed.
971
972 * xftfont.c (struct xftfont_info): New member matrix.
973 (xftfont_open): Setup xftfont_info->matrix.
974
9752009-12-10 Kenichi Handa <handa@m17n.org>
976
977 * xdisp.c (append_space_for_newline): Consider face-remapping.
978
2cc7b62f
AS
9792009-12-09 Andreas Schwab <schwab@linux-m68k.org>
980
b87dd913
AS
981 * xsettings.c: Include "keyboard.h".
982
eba5eb94
AS
983 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
984
2cc7b62f
AS
985 Fix implicit function declarations.
986 * cmds.c: Include "frame.h".
987 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
988 * frame.h: Move declaration of delete_frame outside of
989 HAVE_WINDOW_SYSTEM.
990
a4ef73c8
CY
9912009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
992
993 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
994
995 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
996 GTK builds.
997
944a300c
AS
9982009-12-07 Andreas Schwab <schwab@linux-m68k.org>
999
1000 * unexelf.c (unexec): Don't search for .data twice.
1001
022eef62
CY
10022009-12-05 Chong Yidong <cyd@stupidchicken.com>
1003
426ac949
CY
1004 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1005 if push failed.
1006 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1007 of push_display_prop (Bug#5000).
1008
022eef62
CY
1009 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1010 value of font_list_entities (Bug#5085).
1011
be95bee9
JB
10122009-12-04 Juanma Barranquero <lekktu@gmail.com>
1013
1014 Fix `string-to-number' to deal consistently with integers and floats.
1015 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1016 trailing characters, not just whitespace.
1017 (read1): Pass new arg 0 to keep old behavior.
1018 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1019 trailing chars, as it is already done for integers. Doc fixes.
1020 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1021
24c2d7ce
EZ
10222009-12-04 Eli Zaretskii <eliz@gnu.org>
1023
0b5397c2
SM
1024 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1025 Delete unused enumeration value.
24c2d7ce 1026
7e694795
EZ
10272009-12-03 Eli Zaretskii <eliz@gnu.org>
1028
1029 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1030
84b31826
SM
10312009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1032
1033 * process.c (Fmake_network_process): Fix up the tests for
1034 "connectionless socket", so they DTRT for seqpacket sockets as well.
1035
f00c449b
SM
10362009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1037
1038 * process.c (Qseqpacket): New symbol.
1039 (HAVE_SEQPACKET): New macro.
1040 (Fmake_network_process): Accept new :type `seqpacket'.
1041 (init_process): Add `seqpacket' feature when applicable.
1042 (syms_of_process): Initialize Qseqpacket.
1043
8096a0ff
YM
10442009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1045
1046 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1047 if entity is Qnil.
1048
3e0de07f
SM
10492009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1050
1051 * print.c (print_preprocess): Preprocess the key_and_value table of
1052 hashtables, even tho they're "hidden" (bug#5082).
1053
abeafb2a
JD
10542009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1055
1056 * frame.c (frame_make_pointer_invisible)
1057 (frame_make_pointer_visible): Declare f before statements.
1058
4bf47195
EZ
10592009-11-28 Eli Zaretskii <eliz@gnu.org>
1060
1061 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1062 omitted dependencies on lisp.h.
1063
c525b3f2
JD
10642009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1065
ece2d4ed
JD
1066 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1067 is NULL.
1068
1069 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1070
1071 * frame.c (frame_make_pointer_invisible)
3e0de07f 1072 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1073 frame.
1074
c525b3f2
JD
1075 * search.c (simple_search): Remove warning by making *p const.
1076
2f00e299
DN
10772009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1078
1079 * xdisp.c (power_letter): Remove duplicate const.
1080
084b049b
JD
10812009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1082
a1fadc6f
JD
1083 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1084
5ce6e4f4 1085 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1086 defaults (bug #5025).
1087
28259cac
SM
10882009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * insdel.c (adjust_markers_for_delete): Move it in the
1091 right direction! (bug#4803)
1092
e8e14166
YM
10932009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1094
1095 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1096
1097 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1098
86677b58
GM
10992009-11-24 Glenn Morris <rgm@gnu.org>
1100
1101 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1102
581e51e8
JD
11032009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1104
cfc86c7a
JD
1105 * Makefile.in: Must create deps for ecrt0.o in its rule.
1106
581e51e8
JD
1107 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1108 because that is what Gtk+ font dialog understands.
1109
1110 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1111 of Fcopy_sequence.
1112 (font_open_by_name): Put name given into QCname for font-object returned.
1113
1114 * frame.c (x_set_font): Save original font name as frame parameter
1115 font-parameter.
1116
1117 * xsettings.c (set_default_xft_settings): New function.
1118 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1119 is found.
1120
8b264ecb
AS
11212009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1122
1123 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1124 searching backwards through multibyte buffer.
1125
872870b2
JD
11262009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1127
1128 * xterm.c: #include xgselect.h.
1129 (x_initialize): Call xgselect_initialize.
1130
1131 * xsettings.c (something_changedCB): C++ comments => C comments.
1132 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1133 does that now.
1134
1135 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1136 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1137 (scroll_bar_button_cb): Remove.
5ce6e4f4 1138 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1139 event.
1140 (xg_create_scroll_bar): Don't bind button-press-event and
1141 button-release-event.
1142
1143 * process.c: Include xgselect.h if defined (USE_GTK) ||
1144 defined (HAVE_GCONF).
1145 (wait_reading_process_output): Call xg_select for the same condition.
1146
1147 * xgselect.c (xg_select): New function to better integrate with
1148 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1149
1150 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1151
1152 * Makefile.in (XOBJ): Add xgselect.o.
1153
62a6e103
AS
11542009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1155
0b5397c2
SM
1156 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1157 Remove ignored second argument. All callers changed.
62a6e103
AS
1158 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1159 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1160 * xdisp.c (string_char_and_length): Likewise.
1161
b0ca0f33
DN
11622009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1163
1164 * xterm.c (x_new_font):
1165 * print.c (print_object):
1166 * cmds.c (Fself_insert_command): Move declarations before statements.
1167
dd5a6279
CY
11682009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1169
1170 * s/cygwin.h: Remove unneeded linker flags.
1171
4a8e097d
JD
11722009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1173
0d1d0d26
JD
1174 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1175
1176 * xsettings.h: Declare xsettings_get_system_font.
1177
1178 * xsettings.c (xsettings_get_system_font): New function.
1179 (init_gconf): No use initiating gconf unless we have Xft also.
1180 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1181 HAVE_GCONF.
1182
4a8e097d
JD
1183 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1184 add a blank entry so it doesn't collapse into nothing.
1185
8ab1650e
SM
11862009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1187
1188 * lread.c (Funintern): Comment out last change.
1189
82c602f0
RS
11902009-11-19 Richard Stallman <rms@gnu.org>
1191
1192 * lread.c (Funintern): Error if symbol is t or nil.
1193
87e32266
SM
11942009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1195
1196 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1197 representation of Lisp integers.
1198 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1199
1b9ac145
AS
12002009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1201
1202 * lisp.h: Remove declaration of Ffont_get_system_font.
1203 * xfns.c: Move include of "xsettings.h".
1204 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1205
dfb3c4c6
JD
12062009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1207
87e32266
SM
1208 * xsettings.c (something_changedCB, Ffont_get_system_font):
1209 Check use_system_font.
dfb3c4c6
JD
1210 (syms_of_xsettings): DEFVAR font-use-system-font.
1211
9370c1d8
AS
12122009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1213
25fe851a
AS
1214 * xfns.c (x_default_font_parameter): Remove dead assignment.
1215
9370c1d8
AS
1216 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1217
637fa988
JD
12182009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1219
87e32266 1220 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1221 not have FC_LCD_*. #define them if not there.
a6eb20d8 1222
87e32266 1223 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1224
637fa988
JD
1225 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1226
1227 * xterm.c (handle_one_xevent): Call xft_settings_event for
1228 ClientMessage, PropertyNotify and DestroyNotify.
1229 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1230 Call xsettings_initialize.
1231
1232 * xftfont.c (xftfont_fix_match): New function.
1233 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1234 Call xftfont_fix_match after XftFontMatch.
1235
1236 * xfont.c (xfont_driver): Initialize all members.
1237
87e32266
SM
1238 * xfns.c (x_default_font_parameter):
1239 Try font from Ffont_get_system_font.
637fa988
JD
1240 Do not get font from x_default_parameter if we got one from
1241 Ffont_get_system_font.
87e32266 1242 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1243
1244 * w32font.c (w32font_driver): Initialize all members.
1245
1246 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1247
1248 * lisp.h: Declare syms_of_xsettings.
1249
87e32266
SM
1250 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1251 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1252
1253 * ftfont.c (ftfont_filter_properties): New function.
1254
1255 * frame.c (x_set_font): Remove unused variable lval.
1256
87e32266 1257 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1258
1259 * font.c (font_put_extra): Don't return if val is nil, it means
1260 boolean option is off.
1261 (font_parse_fcname): Collect all extra properties in extra_props
1262 and call filter_properties for all drivers with extra_props and
1263 font as parameter.
87e32266
SM
1264 (font_open_entity): Do not use cache, it does not pick up new
1265 fontconfig settings like hinting.
637fa988
JD
1266 (font_load_for_lface): If spec had a name in it, store it in entity.
1267
a73f9c9d 1268 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1269
1270 * config.in: HAVE_GCONF is new.
1271
1272 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1273 xsettings.o is new.
1274
5a942932
KH
12752009-11-17 Kenichi Handa <handa@m17n.org>
1276
1277 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1278 back to the default font in case that no suitable font is found.
1279
b7c7a4d1
SM
12802009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1281
1282 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1283 Suggested by Chad Brown <yandros@mit.edu>.
1284 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1285
072f1e39
JD
12862009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1287
1288 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1289
5d1e70a2
AS
12902009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1291
87e32266 1292 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1293
a53cfbe5
JD
12942009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1295
473a99b7
JD
1296 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1297 has a parent.
1298
a53cfbe5 1299 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1300 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1301
1302 * config.in: Generated (AUTO_DEPEND).
1303
f04bb9b2
MA
13042009-11-13 Michael Albinus <michael.albinus@gmx.de>
1305
b7c7a4d1 1306 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1307 Vdbus_registered_functions_table, because it contains also
1308 properties. Fix docstring.
b7c7a4d1 1309 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1310
8f11f7ec
SM
13112009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1312
1313 * alloc.c (mark_object): Don't reprocess marked strings.
1314 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1315 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1316
8a605fe8
KH
13172009-11-13 Kenichi Handa <handa@m17n.org>
1318
8f11f7ec 1319 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1320 semantics of Vword_combining_categories.
1321 (Vword_combining_categories): Describe the slight change of the
1322 semantics.
1323
241c4680
EZ
13242009-11-13 Eli Zaretskii <eliz@gnu.org>
1325
1326 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1327
1328 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1329
5d58e44c
SM
13302009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1331
1332 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1333
5e13f9d3
JB
13342009-11-12 Juanma Barranquero <lekktu@gmail.com>
1335
1336 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1337
cf54c754
DR
13382009-11-11 David Reitter <david.reitter@gmail.com>
1339
1340 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1341 variables to fix 2009-11-09 change.
1342
a4ada374
DN
13432009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1344
91433552
DN
1345 * process.c (ifflag_def): Make flag_sym constant.
1346 (Fnetwork_interface_info): Use a constant pointer.
1347 (ifflag_table):
1348 * xfns.c (cursor_bits):
1349 * xdisp.c (power_letter):
1350 * termcap.c (speeds, esctab):
1351 * sysdep.c (baud_convert):
1352 * keyboard.c (lispy_accent_codes, modifier_names):
1353 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1354 (jpeg_format, tiff_format, gif_format, svg_format)
1355 (interlace_start, interlace_increment, gs_format):
1356 * gtkutil.c (separator_names):
1357 * fringe.c (swap_nibble):
1358 * fns.c (base64_value_to_char, base64_char_to_value):
1359 * fileio.c (make_temp_name_tbl):
1360 * coding.c (suffixes): Make constant.
1361
f4265f6c
DN
1362 * frame.c (make_initial_frame):
1363 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1364 build_string.
1365 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1366
04420943
DN
1367 * s/freebsd.h:
1368 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1369
0a5d24ae
DN
1370 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1371 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1372
a4ada374
DN
1373 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1374 * xterm.c (syms_of_xterm):
1375 * xfaces.c (syms_of_xfaces):
1376 * xdisp.c (syms_of_xdisp):
1377 * lread.c (syms_of_lread):
1378 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1379 build_string.
91433552 1380
a4ada374
DN
1381 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1382
af98fc7f
SM
13832009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1384
8ab1650e 1385 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1386
e90292a9
JD
13872009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1388
1389 * keyboard.h: Declare timer_check.
1390
1391 * keyboard.c (timer_check_2): New function that does what the old
1392 timer_check did.
1393 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1394 returned, i.e. don't return -1 with timers pending.
1395
1396 * process.c: Remove extern declaration of timer_check.
1397
1398 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1399 even if timer_check returned -1.
1400
af98fc7f
SM
1401 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1402 xg_dialog_data.
e90292a9
JD
1403 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1404 the event loop.
1405 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1406 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1407 Destroy the dialog after xg_dialog_run.
1408
045b83c0
SM
14092009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1410
1411 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1412
1fb99a3a
JD
14132009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1414
1415 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1416
04e452cb
JB
14172009-11-09 Juanma Barranquero <lekktu@gmail.com>
1418
1419 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1420
ef7417fd
SM
14212009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1422
1423 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1424 w32menu.c, and nsmenu.m.
1425 Simplify the obsolete case where position is nil.
1426 (cleanup_popup_menu): New function, moved from nsmenu.m.
1427 (struct skp): Remove slot `notreal'.
1428 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1429 adjust callers.
1430 (single_menu_item): Adjust call to parse_menu_item.
1431 (syms_of_menu): Defsubr x-popup-menu.
1432 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1433 (keymap_panes): Don't export any more.
1434 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1435 (xmenu_show): Declare.
1436 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1437 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1438 * keyboard.h (parse_menu_item): Update declaration.
1439 * xmenu.c (Fx_popup_menu): Remove.
1440 (syms_of_xmenu): Don't defsubr x-popup-menu.
1441 * w32menu.c (Fx_popup_menu): Remove.
1442 (syms_of_w32menu): Don't defsubr x-popup-menu.
1443 * nsmenu.m (cleanup_popup_menu): Remove.
1444 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1445 moved to menu.c's Fx_popup_menu.
1446 (Fx_popup_menu): Remove.
1447 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1448 menu_items (it's done in menu.c already).
1449
424d6179
SM
14502009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1451
1452 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1453 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1454
c0df13a6 14552009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1456
1457 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1458 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1459 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1460 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1461
2de9f71c
SM
14622009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1463
1464 Let integers use up 2 tags to give them one extra bit and thus double
1465 their range.
1466 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1467 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1468 New macros.
1469 (enum Lisp_Type): Use them. Give explicit values.
1470 (Lisp_Type_Limit): Remove.
1471 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1472 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1473 Pay attention to USE_2_TAGS_FOR_INTS.
1474 (INTEGERP): Use LISP_INT_TAG_P.
1475 * fns.c (internal_equal): Simplify the default case.
1476 (sxhash): Use case_Lisp_Int.
1477 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1478 any more.
1479 (Ftype_of): Use case_Lisp_Int.
1480 (store_symval_forwarding): Take into account the fact that Ints can
1481 now have more than one tag.
1482 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1483 buffer_slot_type_mismatch):
1484 * xfaces.c (face_attr_equal_p):
1485 * print.c (print_object):
1486 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1487 Use case_Lisp_Int.
1488
323637a2
EZ
14892009-11-06 Eli Zaretskii <eliz@gnu.org>
1490
7ac65b38
EZ
1491 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1492
323637a2
EZ
1493 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1494 warning.
1495
e511451f
JD
14962009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1497
1498 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1499
1500 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1501
1502 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1503 ButtonPressRelease and MotionNotify (bug#4870).
1504
5e2327cf
DN
15052009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1506
5adc433e
DN
1507 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1508
d67b4f80
DN
1509 * xterm.c (syms_of_xterm):
1510 * xselect.c (syms_of_xselect):
1511 * xmenu.c (syms_of_xmenu):
1512 * xfns.c (syms_of_xfns):
1513 * xfaces.c (syms_of_xfaces):
1514 * xdisp.c (syms_of_xdisp):
1515 * window.c (syms_of_window):
1516 * w32fns.c (syms_of_w32fns):
1517 * undo.c (syms_of_undo):
1518 * textprop.c (syms_of_textprop):
1519 * terminal.c (syms_of_terminal):
1520 * syntax.c (syms_of_syntax):
1521 * sound.c (syms_of_sound):
1522 * search.c (syms_of_search):
1523 * print.c (syms_of_print):
1524 * minibuf.c (syms_of_minibuf):
1525 * macros.c (syms_of_macros):
1526 * keymap.c (syms_of_keymap, initial_define_key)
1527 (initial_define_lispy_key):
1528 * keyboard.c (syms_of_keyboard):
1529 * insdel.c (syms_of_insdel):
1530 * image.c (syms_of_image):
1531 * fringe.c (syms_of_fringe):
1532 * frame.c (syms_of_frame):
1533 * fontset.c (syms_of_fontset):
1534 * fns.c (syms_of_fns):
1535 * fns.c (syms_of_fns):
1536 * fileio.c (syms_of_fileio):
1537 * fileio.c (syms_of_fileio):
1538 * eval.c (syms_of_eval):
1539 * doc.c (syms_of_doc):
1540 * dispnew.c (syms_of_display):
1541 * dired.c (syms_of_dired):
1542 * dbusbind.c (syms_of_dbusbind):
1543 * data.c (syms_of_data):
1544 * composite.c (syms_of_composite):
1545 * coding.c (syms_of_coding):
1546 * cmds.c (syms_of_cmds):
1547 * charset.c (define_charset_internal, syms_of_character):
1548 * ccl.c (syms_of_ccl):
1549 * category.c (syms_of_category, init_category_once):
1550 * casetab.c (syms_of_casetab):
1551 * casefiddle.c (syms_of_casefiddle):
1552 * callint.c (syms_of_callint):
1553 * bytecode.c (syms_of_bytecode):
1554 * buffer.c (keys_of_buffer, syms_of_buffer):
1555 * alloc.c (syms_of_alloc):
1556 * process.c (syms_of_process, init_process):
1557 * lread.c (syms_of_lread, init_obarray):
1558 * font.c (build_style_table):
1559 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1560 intern_c_string, calls to make_pure_string with
1561 make_pure_c_string. Use pure_cons instead of Fcons.
1562
5e2327cf
DN
1563 * process.c (socket_options): Make it const.
1564 (set_socket_option, init_process): Use a const pointer.
1565
1566 * lread.c (intern_c_string): New function.
1567 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1568 (defvar_int): Uset it. Make the name const char*.
1569
1570 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1571 (defvar_int): Update prototypes.
1572 (DEFUN, EXFUN): Support for prototypes is now required.
1573 (intern_c_string): New prototype.
1574 (struct Lisp_Subr): Make symbol_name constant.
1575
1576 * font.c (struct table_entry): Remove unused member. Make NAMES
1577 constant.
1578 (weight_table, slant_table, width_table): Make constant.
1579
1580 * emacs.c (struct standard_args): Make name and longname constant.
1581
1582 * character.h (DEFSYM): Use intern_c_string.
1583
a56eaaef
DN
15842009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1585
1586 * alloc.c (make_pure_c_string): New function.
1587
1588 * eval.c (Fautoload): Purecopy all arguments.
1589
f6a07420
KH
15902009-11-05 Kenichi Handa <handa@m17n.org>
1591
1592 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1593 the buffer in case of replace.
1594
5d28d4b1
DN
15952009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1596
1597 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1598
b349d111
SM
15992009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1600
d528b1ce
SM
1601 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1602 when applicable (bug#4851).
1603
b349d111
SM
1604 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1605 (P_): Support for prototypes is now required.
1606
c38eb027
CY
16072009-10-31 Chong Yidong <cyd@stupidchicken.com>
1608
1609 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1610 (Bug#4827).
1611
0405f8d9
EZ
16122009-10-30 Eli Zaretskii <eliz@gnu.org>
1613
d528b1ce 1614 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1615
ca0a881a
DN
16162009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1617
1618 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1619
d528b1ce
SM
1620 * lread.c (Fload): Purecopy the file name when building
1621 Vpreloaded_file_list.
ca0a881a 1622
47e0e0e4
JR
16232009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1624
1625 * w32fns.c (syms_of_w32fns): Change default value of
1626 w32-scroll-lock-modifier to nil. (Bug#2827)
1627
057bce6f
JB
16282009-10-26 Juanma Barranquero <lekktu@gmail.com>
1629
782a943e 1630 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1631
242bc74c
AS
16322009-10-26 Andreas Schwab <schwab@redhat.com>
1633
1634 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1635
522d013a
JB
16362009-10-26 Juanma Barranquero <lekktu@gmail.com>
1637
1638 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1639 For delta < 0, skip check that only makes sense when the mini-window
1640 is going to be enlarged. (Bug#4534)
1641
18060980
CY
16422009-10-25 Chong Yidong <cyd@stupidchicken.com>
1643
1644 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1645 string in menu maps (Bug#4471).
1646
fec8f0fe
CY
16472009-10-24 Chong Yidong <cyd@stupidchicken.com>
1648
1649 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1650 FRAME_NS_VIEW on terminal frames (Bug#4765).
1651
10d66ec0
AS
16522009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1653
1cae01f7
AS
1654 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1655 DBUS_TYPE_UINTnn separately to get proper sign extension.
1656
58a12889
AS
1657 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1658 can properly handle unsigned types.
d528b1ce 1659 (make_uid, make_gid): Remove.
58a12889 1660
987c9327
AS
1661 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1662 types again.
1663
522d013a 1664 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1665 (system_process_attributes): Likewise.
1666
905a9ed3
DN
16672009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1668
1669 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1670
1671 * eval.c (Fautoload): Purecopy the filename. Simplify.
1672
1673 * category.c (Fdefine_category): Purecopy docstring.
1674
a599b3e8
AS
16752009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1676
7b792fc9
AS
1677 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1678
a599b3e8
AS
1679 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1680
b35ac83e
CY
16812009-10-23 Chong Yidong <cyd@stupidchicken.com>
1682
1683 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1684 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1685 (Bug#4775).
1686
e8903e00
SM
16872009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1688
1689 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1690 (init_fileio_once):
1691 * lisp.h (init_fileio_once): Remove.
1692 * emacs.c (main): Don't call init_fileio_once.
1693
8f43cbf3
DN
16942009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1695
1696 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1697
26898943
AS
16982009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1699
1700 * doprnt.c (doprnt): Fix overflow check.
1701
5c646d5a
JD
17022009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1703
3132a7ea
JD
1704 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1705
5c646d5a
JD
1706 * xterm.h (x_wait_for_event): Declare it.
1707
1708 * xterm.c (pending_event_wait): New variable.
1709 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1710 see pending_event_wait.eventtype.
1711 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1712 (x_new_font): Call change_frame_size with new rows/columns before we
1713 try to resize the frame.
5c646d5a 1714 (x_wait_for_event): New function.
d528b1ce
SM
1715 (x_set_window_size_1): Don't change gravity unless change_gravity
1716 is set.
5c646d5a
JD
1717 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1718 don't change frame size, instead wait for the ConfigureNotify.
1719 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1720 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1721 (x_initialize): Initialize pending_event_wait.
1722
1723 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1724 size.
1725
1726 * widget.c (EmacsFrameSetValues): Add comment.
1727 (EmacsFrameSetCharSize): Just call x_set_window_size.
1728
1729 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1730 x_wait_for_event.
d528b1ce 1731 (flush_and_sync): Remove again.
5c646d5a
JD
1732 (xg_get_font_name): Suggest monospace if no previous font is known.
1733
e9c1637d
SM
17342009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1735
1736 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1737 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1738
5a72cccb
YM
17392009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1740
1741 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1742 processing pending events when event is filtered for input method.
ab04798f 1743 (Bug#3681)
5a72cccb 1744
2629aa37
JB
17452009-10-20 Juanma Barranquero <lekktu@gmail.com>
1746
1747 * fns.c: Add #endif accidentally removed in previous change.
1748
c3417a74
DN
17492009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1750
1751 * fns.c: Remove code for unsupported system: MAC_OS.
1752 * image.c: Likewise. Include setjmp.h.
1753
9685cef2
JD
17542009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1755
1756 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1757 pixel -1 (bug #4742).
1758
d7306fe6
DN
17592009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1760
019d2c4c
DN
1761 * process.c (create_pty): Remove conditionals for no longer
1762 supported systems: UNIPLUS and RTU.
1763
ee6bacd4
DN
1764 * xterm.c:
1765 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1766
d7306fe6
DN
1767 * alloc.c: Do not define struct catchtag.
1768 * eval.c: Move struct catchtag definition ...
1769 * lisp.h: ... here.
1770
1771 * image.c: Move png.h #include earlier to avoid warnings.
1772
1773 * xterm.c:
1774 * xsmfns.c:
1775 * xselect.c:
1776 * xrdb.c:
1777 * xmenu.c:
1778 * xftfont.c:
1779 * xfont.c:
1780 * xfns.c:
1781 * xfaces.c:
1782 * xdisp.c:
1783 * window.c:
1784 * widget.c:
1785 * w32xfns.c:
1786 * w32uniscribe.c:
1787 * w32term.c:
1788 * w32select.c:
1789 * w32reg.c:
1790 * w32proc.c:
1791 * w32menu.c:
1792 * w32inevt.c:
1793 * w32heap.c:
1794 * w32font.c:
1795 * w32fns.c:
1796 * w32console.c:
1797 * w32.c:
1798 * w16select.c:
1799 * vm-limit.c:
1800 * unexsol.c:
1801 * unexec.c:
1802 * unexcw.c:
1803 * unexaix.c:
1804 * undo.c:
1805 * tparam.c:
1806 * textprop.c:
1807 * terminfo.c:
1808 * terminal.c:
1809 * termcap.c:
1810 * term.c:
1811 * syntax.c:
1812 * sound.c:
1813 * sheap.c:
1814 * search.c:
1815 * scroll.c:
1816 * region-cache.c:
1817 * regex.c:
1818 * ralloc.c:
1819 * process.c:
1820 * print.c:
b024548b
DN
1821 * nsterm.m:
1822 * nsselect.m:
1823 * nsmenu.m:
1824 * nsimage.m:
1825 * nsfont.m:
1826 * nsfns.m:
d7306fe6
DN
1827 * msdos.c:
1828 * minibuf.c:
1829 * menu.c:
1830 * marker.c:
1831 * macros.c:
1832 * keymap.c:
1833 * keyboard.c:
1834 * intervals.c:
1835 * insdel.c:
1836 * indent.c:
1837 * gtkutil.c:
1838 * ftxfont.c:
1839 * ftfont.c:
1840 * fringe.c:
1841 * frame.c:
1842 * fontset.c:
1843 * font.c:
1844 * fns.c:
1845 * floatfns.c:
1846 * filelock.c:
1847 * fileio.c:
1848 * emacs.c:
1849 * editfns.c:
1850 * dosfns.c:
1851 * doprnt.c:
1852 * doc.c:
1853 * dispnew.c:
1854 * dired.c:
1855 * dbusbind.c:
1856 * data.c:
1857 * composite.c:
1858 * coding.c:
1859 * cmds.c:
1860 * cm.c:
1861 * chartab.c:
1862 * charset.c:
1863 * character.c:
1864 * ccl.c:
1865 * category.c:
1866 * casetab.c:
1867 * casefiddle.c:
1868 * callproc.c:
1869 * callint.c:
1870 * bytecode.c:
1871 * buffer.c:
1872 * atimer.c: Include setjmp.h. (Bug#4643)
1873
fd5f21e6
SM
18742009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1875
4c0354d7
SM
1876 Remove leftover table unibyte_to_multibyte_table.
1877 * character.c (unibyte_to_multibyte_table): Remove.
1878 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1879 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1880 * character.h (UNIBYTE_TO_CHAR): New macro.
1881 (MAKE_CHAR_MULTIBYTE): Use it.
1882 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1883 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1884 (message_dolog, set_message_1):
1885 * search.c (Freplace_match):
1886 * editfns.c (Fcompare_buffer_substrings):
1887 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1888 (concat):
1889 * insdel.c (copy_text, count_size_as_multibyte):
1890 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1891 * term.c (produce_glyphs):
1892 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1893 * regex.c (RE_CHAR_TO_MULTIBYTE):
1894 * cmds.c (internal_self_insert):
1895 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1896
fd5f21e6
SM
1897 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1898
4418646e
DN
18992009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1900
1901 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1902
35f5c1d2
JB
19032009-10-16 Juanma Barranquero <lekktu@gmail.com>
1904
1905 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1906
a0cd8f6b
AR
19072009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1908
1909 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1910 still needed under Tiger.
1911
1912 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1913
1914 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1915 __Apple__.
1916
1917 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1918
01a8d3fa
KH
19192009-10-15 Kenichi Handa <handa@m17n.org>
1920
1921 * print.c (print_object): Escape a symbol like "2E10" too.
1922
bf6c75c9 19232009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1924
1925 Cleanups and changes for 64-bit compile under Snow Leopard.
1926 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1927
1928 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1929
c5959062 1930 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1931 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1932 cast argument.
1933 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1934 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1935
1936 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1937
1938 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1939 where appropriate.
1940
1941 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1942 where appropriate.
6e4780c5
JB
1943 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1944 Use stringWithUTF8String.
bf6c75c9
AR
1945 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1946
6e4780c5
JB
1947 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1948 Add formal protocol mention to inheritance.
bf6c75c9
AR
1949 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1950
6e4780c5
JB
1951 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1952 Fix printf format.
bf6c75c9
AR
1953 (ns_query_color): Use CGFloat where appropriate.
1954 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1955 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1956 argument.
1957
3d87f118
AR
1958 * config.in (NS_HAVE_NSINTEGER): Drop.
1959
a95c8102
AR
1960 * dbusbind.c (dbus-method-return-internal)
1961 (dbus-method-error-internal): Use long format in printf, and cast
1962 argument.
1963
1964 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1965 in printf, and cast argument.
1966
6873acca 1967 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1968 cast argument.
1969
9ec6f100
GM
19702009-10-11 Glenn Morris <rgm@gnu.org>
1971
1972 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1973
5be883cd
JD
19742009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1975
1976 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1977 menu bar with a small width so it doesn't enlarge the frame.
1978
d7a39b51
JB
19792009-10-08 Juanma Barranquero <lekktu@gmail.com>
1980
1981 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1982
0c2b6f8e
GM
19832009-10-06 Glenn Morris <rgm@gnu.org>
1984
1985 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1986 SOME_MACHINE_LISP (this enters indirectly via DOC).
1987
e02131a2
EZ
19882009-10-05 Eli Zaretskii <eliz@gnu.org>
1989
1990 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1991
b4744254
EZ
19922009-10-04 Eli Zaretskii <eliz@gnu.org>
1993
1994 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1995 Doc fix.
1996
dbf64827
JB
19972009-10-03 Martin Rudalics <rudalics@gmx.at>
1998
1999 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2000
e9a0aef8
MA
20012009-10-02 Michael Albinus <michael.albinus@gmx.de>
2002
d528b1ce 2003 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2004 used anymore outside fileio.c.
2005
2006 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2007
64eb2b56
JB
20082009-10-01 Juanma Barranquero <lekktu@gmail.com>
2009
2010 * lisp.h (Qdelete_directory_internal):
2011 Declare, instead of Qdelete_directory.
2012
2013 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2014
9d28c33e
SM
20152009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2016
2017 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2018
9d8f3bd9
MA
20192009-10-01 Michael Albinus <michael.albinus@gmx.de>
2020
9d28c33e 2021 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2022 Fdelete_directory. It is not a command anymore. It has no file
2023 name handler.
2024
9694740b
SM
20252009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2026
2027 * xdisp.c (get_next_display_element): Use an enum in last change.
2028
748e162f
KH
20292009-09-28 Kenichi Handa <handa@m17n.org>
2030
9694740b 2031 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2032 unibyte_display_via_language_environment in handling
2033 Vnobreak_char_display.
2034
17efd58d
AR
20352009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2036
2037 * nsterm.h (ns_app_name): New extern variable.
2038
2039 * nsterm.m (ns_app_name): New variable.
2040 (ns_term_init): Set and use it.
2041 (ns_term_shutdown): Use it.
2042
2043 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2044 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2045
2046 * nsfns.m (ns_set_name_iconic, ns_set_name)
2047 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2048 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2049
9694740b
SM
2050 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2051 Remove double-casting in client_data comparison.
31c2d412 2052
3208cb35
YM
20532009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2054
2055 * keyboard.c (make_lispy_event): Remember last wheel direction.
2056 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2057
b7d552d6
GM
20582009-09-26 Glenn Morris <rgm@gnu.org>
2059
2060 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2061 internal.elc. Add term/pc-win.elc.
2062 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2063 term/x-win.elc.
2064 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2065 term/w32-win.elc.
2066 (NS_SUPPORT): New.
2067 (lisp): Add NS_SUPPORT.
2068 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2069
4ff670a8
DR
20702009-09-25 David Reitter <david.reitter@gmail.com>
2071
2072 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2073 on Mac OS X 10.6+ (bug#4513).
2074
feabfb6c
JB
20752009-09-24 Juanma Barranquero <lekktu@gmail.com>
2076
2077 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2078 some parts of Emacs code (like font selection) don't grok them.
2079 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2080
de59072a
AS
20812009-09-24 Andreas Schwab <schwab@redhat.com>
2082
2083 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2084
a489517b
JB
20852009-09-24 Juanma Barranquero <lekktu@gmail.com>
2086
2087 * dired.c (Fdirectory_files): Fix typo in docstring.
2088
0592970c
AR
20892009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2090
2091 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2092 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2093 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2094 under GNUstep.
2095 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2096
2097 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2098 glyph advancement.
2099
48e8a88b
AR
21002009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2101
2102 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2103 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2104
2105 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2106 deleted (bug #4492).
2107
e14f0a78
AR
2108 * nsfont.m (Vns_reg_to_script): New lisp variable.
2109 (syms_of_nsfont): Declare it.
2110 (ns_registry_to_script): New function.
2111 (ns_get_req_script): Call it.
2112 (ns_findfonts): Don't give up on non-unicode registry.
2113
2114 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2115
5b650faa
SM
21162009-09-20 Tom Tromey <tromey@redhat.com>
2117
2118 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2119 batch mode (bug#4228).
2120
a489517b 21212009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2122
2123 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2124 carefully. (Bug #4339)
0bae4e09 2125
fcfe06f3
CY
21262009-09-18 Chong Yidong <cyd@stupidchicken.com>
2127
d798ba87 2128 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2129
31642728
AR
21302009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2131
2132 * emacs.c (inhibit_x_resources): Update doc string for NS.
2133 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2134 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2135
2136 * nsterm.h (ns_no_defaults): Remove.
2137
2138 * nsterm.m (ns_no_defaults): Remove.
2139 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2140 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2141 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2142 don't update the NSWindow itself.
2143 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2144 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2145
2146 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2147 ns_use_qd_smoothing.
2148
2149 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2150 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2151 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2152 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2153
8686ac71
JB
21542009-09-17 Juanma Barranquero <lekktu@gmail.com>
2155
2156 * emacs.c (inhibit_x_resources): New variable.
2157 (main) [HAVE_NS]: Don't process --quick command line option.
2158 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2159
2160 * lisp.h (inhibit_x_resources): Declare it extern.
2161
2162 * w32reg.c (x_get_string_resource):
2163 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2164
e227ba05
EZ
21652009-09-17 Eli Zaretskii <eliz@gnu.org>
2166
362654a6
JB
2167 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2168 Add lisp/term/internal.elc.
e227ba05 2169
742d40e8
SM
21702009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2171
2172 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2173 (bug#4461).
2174
005bd5a2
DN
21752009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2176
2177 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2178
2179 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2180 (OBJECTS_MACHINE): Remove, unused.
2181
f9af9719
SM
21822009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2183
2184 * frame.c (x_get_resource_string): Remove unused.
2185
0307c7d2
JD
21862009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2187
2188 * xterm.c (x_new_font): Call change_frame_size before calling
2189 x_set_window_size, in case frame size won't change.
2190
2191 * frame.c (x_set_font): Remove dead code.
2192
428b13d6
SM
21932009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2194
2195 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2196
5766c380
SM
21972009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2198
2199 * lread.c (Fload): Don't output a message after loading an obsolete
2200 package any more (done in Lisp now).
2201
2fd0161b
CY
22022009-09-12 Chong Yidong <cyd@stupidchicken.com>
2203
2204 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2205
bc5e75b6
SM
22062009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2207
2208 * keymap.c (Fwhere_is_internal): Use nconc2.
2209
c31c985e
AM
22102009-09-11 Alan Mackenzie <acm@muc.de>
2211
2212 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2213 batch mode.
2214
78012bd2
AS
22152009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2216
2217 * xdisp.c (display_mode_element): Detect cycles.
2218
9d889332
SM
22192009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2220
2221 * keymap.c (where_is_internal): Don't erroneously return nil right after
2222 filling the cache.
2223 (where_is_internal_1): Fix up typo.
2224
7ab5d780
GM
22252009-09-11 Glenn Morris <rgm@gnu.org>
2226
2227 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2228 share a common doc-string.
2229
5238a749
SM
22302009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2231
66d77eda
SM
2232 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2233 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2234
5238a749
SM
2235 * keymap.c (QCadvertised_binding): New constant.
2236 (syms_of_keymap): Initialize it.
2237 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2238 if applicable.
2239
19f48442
SM
22402009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2241
50d4ba39
SM
2242 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2243 (parse_menu_item): Streamline since bindings are recomputed all the
2244 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2245 more and don't support lmenu's menu-alias any more either.
2246
a88a5372
SM
2247 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2248 (where_is_internal): Strip it down to only traverse the keymaps.
2249 Move the cache handling from Fwhere_is_internal to here.
2250 (Fwhere_is_internal): Move the handling of remapping and the choice of
2251 the best binding from where_is_internal to here.
2252 Unify the cached/noncached paths, so remapping is also handled
2253 correctly when the cache is used, and so the cache can be used to
2254 speed up remap-handling when applicable.
2255 Give preference to non-remapped bindings.
2256 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2257 non-remapped bindings.
2258 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2259 command remapping.
2260
19f48442
SM
2261 * xdisp.c (display_mode_element): Move list length limit from 50 to
2262 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2263
599498c3 22642009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2265
2266 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2267
f9b7b5ac
SM
22682009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2269
a53af587
JB
2270 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2271 (Bug#4334)
2272
f9b7b5ac
SM
2273 * keymap.c (where_is_internal): Filter out shadowed remappings.
2274 Assume that where_is_internal returns unshadowed bindings to simplify
2275 the code and get rid of the gotos. Use ASIZE.
2276
04f4b72d
JD
22772009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2278
4da146f2
JD
2279 * xterm.c (x_focus_changed): If we get a focusout and pointer
2280 is invisible, make it visible.
2281
04f4b72d
JD
2282 * xterm.h: Remove condition for declaration of
2283 x_*_window_to_frame.
2284
7cef7ce3
SM
22852009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2286
2287 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2288 initial terminal as well.
2289
a54fa5b7
JD
22902009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2291
2292 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2293 x_menubar_window_to_frame.
a54fa5b7
JD
2294
2295 * xterm.c: Remove declarations also in xterm.h
2296 (XTmouse_position): Do not return valid positions
2297 for clicks in the menubar and the toolbar for Gtk+.
2298
2299 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2300 if the widget for the event has the same top level as a frame,
2301 return the frame.
2302 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2303 internal windows, bug #4122.
2304 (x_non_menubar_window_to_frame): Remove.
2305
5a021dd0
GM
23062009-09-02 Glenn Morris <rgm@gnu.org>
2307
2308 * buffer.c (default-major-mode): Move most of the doc from here...
2309 (major-mode): ... to here.
2310
548fe2f3
NR
23112009-08-30 Nick Roberts <nickrob@snap.net.nz>
2312
2313 * process.c (wait_reading_process_output): Keep the descriptor
2314 when pty is used by a non-child process, e.g., in I/O buffer of
2315 GDB this allows inferior to be restarted.
2316
e0840eef
EZ
23172009-08-29 Eli Zaretskii <eliz@gnu.org>
2318
2319 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2320 both branches into one.
2321
82e98df4
SM
23222009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2323
2324 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2325 (main): Use enable-multibyte-characters rather than
2326 default-enable-multibyte-characters. Output a warning message when
2327 running a unibyte session.
2328
890617cb
YM
23292009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2330
2331 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2332 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2333 (copy_data_segment): Also copy __program_vars section.
2334 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2335 (dump_it) [LC_DYLD_INFO]: Use it.
2336
2337 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2338
e7adeadc
EZ
23392009-08-28 Eli Zaretskii <eliz@gnu.org>
2340
2341 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2342 $(SRC)/buildobj.h.
2343 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2344 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2345 $(SRC)/buildobj.h.
2346 (clean): Add buildobj.h.
2347
3ed8bbdc
TZ
23482009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2349
2350 * print.c (print_object): Set escapeflag to 1 when printing
2351 hashtable keys and values.
2352
155a6764
SM
23532009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2354
2355 * lread.c (read_integer): Use doubles (and potentially return a float
2356 number) as we do in string-to-number.
2357 (read1): Use strtol to read integers, signal errors on strtol's
2358 overflow and use floats if strtol's output is too large for
2359 Elisp integers.
2360
877610de
EZ
23612009-08-27 Eli Zaretskii <eliz@gnu.org>
2362
2363 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2364 (make-buildobj-SH): Fix last change.
2365 (SRC): Move to before where it's first used.
2366
ef73e7be
KH
23672009-08-27 Kenichi Handa <handa@m17n.org>
2368
550c8289
KH
2369 * process.c (send_process): Use encode_coding_object instead of
2370 encode_coding_string to perform eol-conversion even if the string
2371 is unibyte.
2372
60afa08d
KH
2373 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2374 character.
2375
ef73e7be 2376 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2377 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2378
7b3a82d7
DN
23792009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2380
5654bf63
DN
2381 * callproc.c (Fcall_process): Remove always true #if.
2382
7b3a82d7
DN
2383 * lisp.h: Replace #if 0 code for checking with text pointing to
2384 the --enable-checking configure flag.
2385
2386 * emacs.c (main): Mention the --enable-profiling configure flag
2387 instead of using CFLAGS.
2388
878bde49
KR
23892009-08-26 Ken Raeburn <raeburn@raeburn.org>
2390
2391 * Makefile.in (buildobj.h): New target.
2392 (doc.o): Depend on it.
2393 (temacs${EXEEXT}): Don't generate buildobj.lst.
2394 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2395 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2396 ($(BLD)/doc.$(O)): Depend on it.
2397 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2398 provided by Eli Zaretskii.)
2399 ($(TEMACS)): Don't generate buildobj.lst.
2400 * doc.c: Include buildobj.h.
2401 (buildobj): New static variable.
2402 (Fsnarf_documentation): Use it, instead of opening and reading
2403 buildobj.lst.
2404
1574224c
MA
24052009-08-25 Michael Albinus <michael.albinus@gmx.de>
2406
2407 * dbusbind.c (Fdbus_call_method)
2408 (Fdbus_call_method_asynchronously): Use English numeric format for
2409 timeout values in doc string.
2410
d9da2f45
KH
24112009-08-25 Kenichi Handa <handa@m17n.org>
2412
ef73e7be
KH
2413 * alloc.c (mark_char_table): New function.
2414 (mark_object): Use mark_char_table for a char-table.
2415
d9da2f45
KH
2416 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2417 (CHAR_TABLE_REF): Use it.
2418
c8edcc01
KR
24192009-08-23 Ken Raeburn <raeburn@raeburn.org>
2420
2421 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2422 before invoking the newly build emacs to check for load-path
2423 shadowing.
2424
7763401b
GM
24252009-08-22 Glenn Morris <rgm@gnu.org>
2426
2427 * Makefile.in (bootstrap_exe): New variable.
2428 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2429 Use ${bootstrap_exe}.
2430
729eadda
EZ
24312009-08-22 Eli Zaretskii <eliz@gnu.org>
2432
2433 * coding.h (encode_coding_string): Don't encode unibyte strings.
2434 (Bug#4047)
2435
eb4c6ace
MA
24362009-08-22 Michael Albinus <michael.albinus@gmx.de>
2437
2438 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2439
2440 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2441 intended as hotfix only.
2442 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2443
36e34d1b
AR
24442009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2445
2446 * nsterm.m (ns_get_color): Update documentation properly for last
2447 change, and clean up loose ends in the code left by it. Fix
2448 longstanding bug with 16-bit hex parsing, and add support for
2449 yet another X11 format (rgb:r/g/b) for compatibility.
2450 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2451 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2452
f983eb8a
SM
24532009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2454
2455 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2456
3f56d3c6
MA
24572009-08-20 Michael Albinus <michael.albinus@gmx.de>
2458
2459 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2460 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2461 (xd_initialize, xd_pending_messages): Check, whether
2462 $DBUS_SESSION_BUS_ADDRESS is set.
2463
fb641d68
YM
24642009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2465
2466 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2467
2468 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2469
cf59a374
GM
24702009-08-20 Glenn Morris <rgm@gnu.org>
2471
2472 * emacs.c (system-type): Doc fix.
2473
1373f3be
SM
24742009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2475
2476 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2477 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2478
058ed861
MA
24792009-08-18 Michael Albinus <michael.albinus@gmx.de>
2480
1373f3be
SM
2481 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2482 New functions.
058ed861
MA
2483 (xd_initialize): Revert change from 2009-08-16.
2484
563a866e 24852009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2486
2487 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2488 font-group vector, return nil.
5fc05db0 2489
e42bdf01
CY
24902009-08-17 Chong Yidong <cyd@stupidchicken.com>
2491
2492 * process.c (status_notify): Don't perform redisplay.
2493 (Fdelete_process, list_processes_1, process_send_signal):
2494 Expliticly perform redisplay.
2495 (wait_reading_process_output): Always check process status, but
2496 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2497
4230ab74
KR
24982009-08-17 Ken Raeburn <raeburn@raeburn.org>
2499
1373f3be 2500 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2501 (XFLOAT_INIT): New macro for storing a float value.
2502 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2503 * fns.c (sxhash): Copy out the value of a float in order to
2504 examine its bytes.
2505 * dbusbind.c (xd_append_arg): Likewise.
2506
4230ab74
KR
2507 * emacs.c (main): Don't call syms_of_data twice.
2508
a0645cdd
MA
25092009-08-16 Michael Albinus <michael.albinus@gmx.de>
2510
2511 * dbusbind.c (xd_initialize): Add connection file descriptor to
2512 input_wait_mask, in order to let select() detect, whether a new
2513 message has been arrived.
ca4f31ea 2514 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2515
485db0ba
MA
25162009-08-15 Michael Albinus <michael.albinus@gmx.de>
2517
1373f3be
SM
2518 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2519 New functions.
485db0ba
MA
2520
2521 * lisp.h (xd_pending_messages): Declare.
2522
2523 * keyboard.c (readable_events): Call xd_pending_messages.
2524
b5b98ff4
CY
25252009-08-15 Chong Yidong <cyd@stupidchicken.com>
2526
1373f3be 2527 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2528
f8354c6e
CY
2529 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2530
b5b98ff4
CY
2531 * buffer.c (set_buffer_internal_1)
2532 (swap_out_buffer_local_variables): Check for unbound local
2533 variables (Bug#4138).
2534
8b9fc636
EZ
25352009-08-14 Eli Zaretskii <eliz@gnu.org>
2536
2537 * process.c (create_pty): Fix last change.
2538
ce959360
CY
25392009-08-13 Chong Yidong <cyd@stupidchicken.com>
2540
2541 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2542 (xbm_load_image): Caller changed.
64b807c9 2543 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2544
c7baf7e9
NR
25452009-08-13 Nick Roberts <nickrob@snap.net.nz>
2546
2547 * process.c (create_pty): New function.
2548 (Fstart_process): Use it to allow Emacs to just associate a pty
2549 with the buffer. See associated change in gdb-mi.el.
2550 (list_processes_1): Deal with no program name.
2551 (start_process_unwind): Use pid == -2 to mean no process.
2552
1ac9108a
SM
25532009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2554
2555 * cmds.c (nonundocount): New global variable.
2556 (keys_of_cmds): Initialize it.
2557 (Fself_insert_command): Use it to combine upto 20 sequential chars
2558 into a single undo entry, just like the Qself_insert_command code in
2559 keyboard.c does.
2560 Call frame_make_pointer_invisible, also like the Qself_insert_command
2561 code in keyboard.c does.
2562 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2563 than its own local replacement for it.
2564
e267324c
KR
25652009-08-10 Ken Raeburn <raeburn@raeburn.org>
2566
1ac9108a 2567 * fns.c (concat): Don't re-set string length to its current value.
77437343 2568
1ac9108a
SM
2569 * coding.h (decode_coding_string, encode_coding_string):
2570 Use SBYTES macro.
f0bed503 2571
1ac9108a 2572 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2573 (doprnt): Merge with doprnt1, discarding lispstrings code.
2574 * lisp.h (doprnt_lisp): Don't declare.
2575
416e006d
JL
25762009-08-07 Juri Linkov <juri@jurta.org>
2577
2578 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2579
6f7d5780
DN
25802009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2581
2582 * print.c (syms_of_print): Undo previous change.
2583
f19a0f5b
TZ
25842009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2585
2586 * lread.c (read1, syms_of_lread): Read hashtables back from the
2587 readable format.
2588
2589 * print.c (print_preprocess, print_object): Print hashtables fully
2590 and readably.
2591 (syms_of_print): Provide 'hashtable-print-readable.
2592
b9173dc2
AR
25932009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2594
2595 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2596 no family set.
2597 (nsfont_open): Handle case when entity has no family.
2598
1586503c
AR
25992009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2600
2601 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2602 element, not a list, for match case.
2603
087048cd
KH
26042009-07-28 Kenichi Handa <handa@m17n.org>
2605
2606 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2607 rigidly.
2608
2609 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2610 font_parse_xlfd. Check font properties more rigidly.
2611
780c2506
DN
26122009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2613
31fd7c5c
JB
2614 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2615 bsd-common.h.
780c2506 2616
a8c0cc18
KH
26172009-07-27 Kenichi Handa <handa@m17n.org>
2618
2619 * xfaces.c (face_with_height): Call font_clear_prop.
2620
4fbe2306
CY
26212009-07-26 Chong Yidong <cyd@stupidchicken.com>
2622
111d9af3
CY
2623 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2624
2625 * xterm.c (x_term_init): Use Qx.
2626
4fbe2306
CY
2627 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2628
1ac9108a 2629 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2630 (ns_get_color): Revert 2009-07-16 change.
2631
beb0b7f9
EZ
26322009-07-25 Eli Zaretskii <eliz@gnu.org>
2633
2634 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2635 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2636
2baf5e76
KR
26372009-07-25 Ken Raeburn <raeburn@raeburn.org>
2638
1ac9108a
SM
2639 * coding.h (decode_coding_string, encode_coding_string):
2640 Use SCHARS macro.
8890e5f5 2641
2baf5e76 2642 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2643 (load_depth): Delete.
2baf5e76
KR
2644 (Qload_in_progress): New variable.
2645 (load_unwind): Don't reference load_depth or load_in_progress.
2646 (Fload): Likewise; specbind Qload_in_progress instead.
2647 (init_lread): Don't initialize load_depth.
2648 (syms_of_lread): Initialize and protect Qload_in_progress.
2649
1395c6f5
AR
26502009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2651
2652 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2653
4e2f36cf
AR
26542009-07-23 Yavor Doganov <yavor@gnu.org>
2655
2656 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2657
5dd9a6f7
AR
26582009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2659
2660 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2661 Bugs 3792, 3720, 2402.
2662 (ns_lookup_indexed_color): Check for bad index.
2663 (ns_index_color): Init unused slot to 0.
2664 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2665 Bug 3714, possibly 3082.
5dd9a6f7 2666
c902b920
JR
26672009-07-22 Jason Rumney <jasonr@gnu.org>
2668
1ac9108a
SM
2669 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2670 Position IME window at cursor (Bug#2570).
c902b920
JR
2671 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2672 (globals_of_w32fns): Dynamically load functions required above.
2673
2674 * w32term.c (w32_draw_window_cursor): Send message to reposition
2675 any IME window.
2676
090101cf
CY
26772009-07-21 Chong Yidong <cyd@stupidchicken.com>
2678
2679 * fileio.c: Revert 2009-07-16 changes.
2680 (Vauto_save_include_big_deletions): New variable.
2681 (Fdo_auto_save): Disable auto-save only if
2682 auto-save-include-big-deletions is nil.
2683
e6583e3d
CY
26842009-07-21 Chong Yidong <cyd@stupidchicken.com>
2685
2686 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2687 the overflowed pixels into account (Bug#3879).
2688
ece435a5
KR
26892009-07-21 Ken Raeburn <raeburn@raeburn.org>
2690
2691 * lread.c (load_depth): New variable.
2692 (Fload, load_unwind, init_lread): Set it to the load recursion
2693 depth; set load_in_progress as a simple boolean based on the
2694 current load_depth. (Bug#3892)
2695
40b2d973
AR
26962009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2697
2698 * nsfont.m (ns_has_attribute): Remove.
2699 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2700
10be7e0d
JL
27012009-07-18 Juri Linkov <juri@jurta.org>
2702
2703 * process.c (Fset_process_query_on_exit_flag): Mention killing
2704 a buffer in docstring.
2705
fa055055
KH
27062009-07-17 Kenichi Handa <handa@m17n.org>
2707
2708 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2709
042f7b69
YM
27102009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2711
2712 * nsfns.m (Fns_set_alpha): Remove function.
2713 (syms_of_nsfns): Don't defsubr it.
2714
2715 * nsterm.m (ns_get_color): Remove incompatible color formats.
2716 (ns_color_to_lisp): Generate #rrggbb color format string.
2717
4be941e3
RS
27182009-07-16 Richard Stallman <rms@gnu.org>
2719
2720 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2721 (Fset_buffer_auto_saved): Handle save_length = -2.
2722
4e6b227d
CY
27232009-07-16 Chong Yidong <cyd@stupidchicken.com>
2724
2725 * xterm.c (Qx_gtk_map_stock): New var.
2726
2727 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2728 of calling intern each time.
2729
a1856973
YM
27302009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2731
2732 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2733 does tiling.
2734
2735 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2736
497e54d8
KH
27372009-07-14 Kenichi Handa <handa@m17n.org>
2738
72d36834
KH
2739 * font.c (font_vconcat_entity_vectors): New function.
2740 (struct font_sort_data): New member font_driver_preference.
2741 (font_compare): Check font_driver_preference.
2742 (font_sort_entities): The format of the first argument changed.
2743 (font_delete_unmatched): Likewise.
2744 (font_list_entities): The return type changed.
2745 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2746 (font_find_for_lface): Adjuste for the above changes.
2747 Don't suppress the checking of C even if the repertory supports it.
2748 (Flist_fonts): Adjust for the above changes.
72d36834 2749
1ac9108a
SM
2750 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2751 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2752 Reject a font who has adstyle property that is different from a
2753 langname derived from registry property.
1ac9108a 2754 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2755
b6046155
EZ
27562009-07-13 Eli Zaretskii <eliz@gnu.org>
2757
2758 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2759 local copy of dirfilename.
2760
fb6b6049
KH
27612009-07-13 Kenichi Handa <handa@m17n.org>
2762
e2402a5e
KH
2763 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2764 against max_char.
2765
fb6b6049
KH
2766 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2767 calling XSYMBOL (sym).
2768
65156807
EZ
27692009-07-11 Eli Zaretskii <eliz@gnu.org>
2770
1ac9108a
SM
2771 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2772 New function.
2773 (directory_files_internal) [WINDOWSNT]:
2774 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2775 the filesystem of the directory is fast or slow.
2776
2777 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2778 file name.
2779 (is_slow_fs): New function.
2780 (stat): Use it to determine whether to issue more system calls to
2781 get accurate file attributes, when w32-get-true-file-attributes is
2782 `local'.
2783
e0ab5fcf
JD
27842009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2785
2786 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2787 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2788 parameter font-parameter as default to the font dialog.
2789
784ceded
KH
27902009-07-10 Kenichi Handa <handa@m17n.org>
2791
2792 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2793
fb8edc0b
EZ
27942009-07-09 Eli Zaretskii <eliz@gnu.org>
2795
1ac9108a 2796 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2797
fb8edc0b
EZ
2798 * w32.c (stat): Treat UNC file names as residing on remote
2799 drives. (Bug#3542)
2800
635c75b1
KH
28012009-07-09 Kenichi Handa <handa@m17n.org>
2802
2803 * fontset.c (fontset_find_font): Fix previous change.
2804
c1d5ce94
MA
28052009-07-08 Michael Albinus <michael.albinus@gmx.de>
2806
2807 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2808 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2809 error flag.
2810
edb61b39
KH
28112009-07-08 Kenichi Handa <handa@m17n.org>
2812
374bf7e4
KH
2813 * fontset.c (fontset_find_font): Fix the logic of handling
2814 charset_matched.
2815 (font_for_char): Delete unused var.
2816 (generate_ascii_font_name): Delete it.
2817
edb61b39
KH
2818 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2819
2820 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2821 (encode_coding_sjis): Fix the code range check.
2822
0f3f018c
CY
28232009-07-07 Chong Yidong <cyd@stupidchicken.com>
2824
2825 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2826 (Fexpand_file_name): Copy string data properly (Bug#3772).
2827
fcaf6f3a
JD
28282009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2829
2830 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2831 first MapNotify.
2832
6809ca75
KH
28332009-07-07 Kenichi Handa <handa@m17n.org>
2834
2835 * character.h (unibyte_has_multibyte_table): Delete extern.
2836 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2837
2838 * charset.c (Fset_charset_priority): Update charset_unibyte.
2839 (syms_of_charset): Initialize charset_unibyte.
2840
2841 * character.c (unibyte_has_multibyte_table): Delete it.
2842 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2843 charset_unibyte.
2844 (multibyte_char_to_unibyte_safe): Likewise.
2845 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2846
1ac9108a 2847 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2848 (x_produce_glyphs): Likewise.
2849
2850 * .gdbinit (xcharset): Fix the treating $arg0.
2851
ad9e2d54
EZ
28522009-07-04 Eli Zaretskii <eliz@gnu.org>
2853
2854 Emulation of `getloadavg' on MS-Windows.
2855 * w32.c: Include float.h
2856 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2857 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2858 (get_native_system_info, get_system_times): New functions.
2859 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2860 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2861 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2862 g_b_init_get_system_times, and num_of_processors.
2863
0a3472c7
JR
28642009-07-03 Jason Rumney <jasonr@gnu.org>
2865
2866 * w32term.c (w32_initialize): Use standard types.
2867
80904120
EZ
28682009-07-03 Eli Zaretskii <eliz@gnu.org>
2869
2870 * dired.c (Ffile_attributes): Decode user and group names by the
2871 locale's encoding. (Bug#3443)
2872
6978862d
DN
28732009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2874
f8d23104
DN
2875 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2876 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2877
2878 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2879
2880 * term.c (init_tty): Remove spurious #ifdef.
2881
6978862d
DN
2882 * m/mips.h: Mention this file is also used for netbsd.
2883 * m/pmax.h: Remove file.
2884
e044e4fc
JD
28852009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2886
2887 * xterm.h (struct x_display_info): Add invisible_cursor.
2888 (struct x_output): Add current_cursor.
2889
2890 * xterm.c (XTtoggle_invisible_pointer): New function.
2891 (x_define_frame_cursor): Don't define cursor if invisible or the
2892 same as before. Set current_cursor.
2893 (x_create_terminal): Set toggle_invisible_pointer_hook.
2894
2895 * xfns.c (make_invisible_cursor): New function.
2896 (x_set_mouse_color): Call make_invisible_cursor.
2897 Set current_cursor.
2898 (x_window): Set current_cursor.
2899
2900 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2901
2902 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2903 inserting a character.
2904 (read_avail_input): Call frame_make_pointer_visible.
2905
2906 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2907 (frame_make_pointer_invisible, frame_make_pointer_visible):
2908 New functions.
e044e4fc
JD
2909 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2910
2911 * frame.h: Declare frame_make_pointer_invisible and
2912 frame_make_pointer_visible.
2913 (struct frame): Add pointer_invisible.
2914
574c8efa
JD
29152009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2916
7b507248
JD
2917 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2918 frame isn't visible.
2919 (xg_frame_resized): If width/height is -1, get size of window
2920 from X server.
2921
2922 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2923 for MapNotify.
2924
835bdaa7 2925 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2926 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2927 (flush_and_sync): Reintroduce.
574c8efa 2928
3f1c6666 29292009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2930
31fd7c5c 2931 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2932
2933 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2934 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2935
2936 * frame.h: Declare Qsticky.
2937
cad9ef74
JD
2938 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2939
2940 * nsfns.m (ns_frame_parm_handlers): Ditto.
2941
2942 * frame.c: Declare Qsticky.
2943 (frame_parms): Add sticky.
2944
2945 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2946
2947 * xterm.h: Declare x_set_sticky.
2948
2949 * xterm.c (x_set_sticky): New function.
2950
69b16610
JD
2951 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2952 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2953 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2954
2955 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2956
2957 * frame.c: Qmaximized is new.
2958 (x_set_frame_parameters): Do not handle fullscreen specially.
2959 Only set width and height if explicitly set.
2960 (x_set_fullscreen): Handle Qmaximized.
2961 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2962 (syms_of_frame): Initialize Qmaximized.
2963
1ac9108a
SM
2964 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2965 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2966
2967 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2968 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2969 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2970 set gravity to NorthWestGravity when USE_GTK.
2971 (set_wm_state): New function.
31fd7c5c 2972 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2973 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2974 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2975 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2976 to x_real_positions and x_fullscreen_adjust.
2977
2978 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2979 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2980 flush_and_sync.
2981 (xg_height_changed): New function.
2982 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2983 and gtk_window_set_policy. Set frame gravity after parsing the
2984 geometry string.
3f1c6666
JD
2985 (xg_update_frame_menubar, free_frame_menubar)
2986 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2987 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2988 Remove calls to xg_frame_set_char_size.
2989
fd503d99
KH
29902009-07-01 Kenichi Handa <handa@m17n.org>
2991
2992 * keyboard.c (decode_keyboard_code): New function.
2993 (tty_read_avail_input): Decode the input bytes if necessary.
2994
1ac9108a
SM
2995 * coding.c (setup_coding_system):
2996 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2997 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2998 use Qno_conversion.
2999
24ed93fb
YM
30002009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3001
3002 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3003
99061dfc
CY
30042009-06-30 Chong Yidong <cyd@stupidchicken.com>
3005
1ac9108a 3006 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3007
ff90fbde
JR
30082009-06-30 Jason Rumney <jasonr@gnu.org>
3009
3010 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3011 is already loaded.
3012 Set user model ID if supported (bug#1849).
3013
5f445726
JM
30142009-06-29 Jim Meyering <meyering@redhat.com>
3015
3016 Remove useless if-before-xfree test.
3017 * nsfont.m (nsfont_close): Remove useless test.
3018 * term.c (delete_tty): Likewise.
3019 * w32.c (system_process_attributes): Likewise.
3020 * w32font.c (w32font_close): Likewise.
3021 * xfaces.c (x_free_gc): Likewise.
3022 * xselect.c (buffer): Likewise.
3023
b9607587
AS
30242009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3025
3026 * process.c (send_process): Keep decoded string in a local
3027 variable and protect it from GC. (Bug#3521)
3028
89ba96f4
EZ
30292009-06-28 Eli Zaretskii <eliz@gnu.org>
3030
3031 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3032 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3033
098a1589
CY
30342009-06-28 Chong Yidong <cyd@stupidchicken.com>
3035
485422be
CY
3036 * xdisp.c (start_display, handle_face_prop)
3037 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3038 (redisplay_window, try_window_id, produce_image_glyph):
3039 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3040
098a1589
CY
3041 * xterm.c (x_update_window_begin, x_new_focus_frame)
3042 (x_scroll_bar_handle_click, handle_one_xevent)
3043 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3044 (x_make_frame_visible, x_make_frame_invisible)
3045 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3046 code chunks that are now obsolete.
3047
78c38319
MA
30482009-06-28 Michael Albinus <michael.albinus@gmx.de>
3049
3050 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3051 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3052 for hours, when optimzation is enabled.
3053 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3054 (xd_read_message): Make them static.
3055
4189ed40
CY
30562009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3057
3058 * term.c (turn_on_face): Allow simultaneously bold and dim
3059 terminal faces (Bug#3530).
3060
cd9b5e16
CY
30612009-06-27 Chong Yidong <cyd@stupidchicken.com>
3062
4e23bedb
CY
3063 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3064
cd9b5e16
CY
3065 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3066 truncation glyphs (Bug#3686).
3067
07cc3c35
GM
30682009-06-27 Glenn Morris <rgm@gnu.org>
3069
3070 * m/pmax.h: Restore file, with only netbsd portions.
3071
31fd7c5c 30722009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3073
cd9b5e16 3074 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3075
42d4a64f
KH
30762009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3077
3078 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3079 the arg FORCE_SYMBOL.
3080
930fe55b 30812009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3082
3083 * fontset.c (fontset_find_font): When a usable rfont_def is found
3084 in a fallback font-group, make it the first element of the group.
3085
57ebc3fd
CY
30862009-06-24 Chong Yidong <cyd@stupidchicken.com>
3087
3088 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3089
f084f942
KH
30902009-06-24 Kenichi Handa <handa@m17n.org>
3091
3092 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3093 set for C.
3094 (fontset_font): Record the availability of a font for C both in
3095 the realized fontsets of the current one and the default one.
3096
2f686c87
DN
30972009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3098
3099 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3100 conditional, it is always defined on AIX.
3101
666e158e
MB
31022009-06-23 Miles Bader <miles@gnu.org>
3103
3104 * window.c (Vrecenter_redisplay): New variable.
3105 (syms_of_window): Initialize it.
3106 (Qtty): New extern declaration.
3107 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3108
c6da7cd2
JM
31092009-06-23 Jim Meyering <meyering@redhat.com>
3110
1ac9108a
SM
3111 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3112 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3113 pointer dereferences are guaranteed to be valid.
c6da7cd2 3114
678dca3d
KH
31152009-06-23 Kenichi Handa <handa@m17n.org>
3116
74d75424
KH
3117 * emacs.c (main): Call init_font ().
3118
3119 * font.h (Vfont_log): Extern it.
3120 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3121
3122 * font.c (font_sort_entities, font_list_entities)
3123 (font_matching_entity, font_open_entity)
3124 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3125 (Vfont_log): Delete static.
3126 (font_log_env_checked): Delete this variable.
3127 (font_add_log): Don't check font_log_env_checked.
3128 (font_deferred_log): Check Vfont_log.
3129 (init_font): New function.
3130
678dca3d
KH
3131 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3132
3133 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3134
3135 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3136
3137 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3138
3139 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3140 (face_for_char): Don't call font_deferred_log here.
3141 (font_for_char): Likewise.
3142
8a668709
CY
31432009-06-22 Chong Yidong <cyd@stupidchicken.com>
3144
9a01ee33
CY
3145 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3146 rather than its background_width for drawing the overline and
3147 underline (Bug#489).
3148
3149 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3150 rather than its background_width for drawing the overline and
3151 underline (Bug#489).
ec7c9926
CY
3152 (xg_default_icon_file): New variable.
3153 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3154 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3155
8a668709
CY
3156 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3157 (load_overlay_strings): Remove externs.
3158 (fast_find_position): Function deleted.
3159 (mouse_face_from_buffer_pos): New function, based on
3160 fast_find_position. Correctly handle before-strings,
3161 display-strings, and after-strings (Bug#1220).
3162 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3163
4d4c02d8
CY
31642009-06-21 Chong Yidong <cyd@stupidchicken.com>
3165
1ac9108a 3166 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3167 (move_it_in_display_line_to, move_it_in_display_line_to)
3168 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3169
70243478
CY
31702009-06-21 Chong Yidong <cyd@stupidchicken.com>
3171
3172 * Branch for 23.1.
3173
13087e59
JR
31742009-06-21 Jason Rumney <jasonr@gnu.org>
3175
3176 * w32term.c (keyboard_codepage): New static variable.
3177 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3178 (w32_read_socket) [WM_CHAR]: Use it to decode character
3179 input (bug#3237).
3180 (w32_initialize): Initialize it.
3181 (codepage_for_locale): New function.
3182
4735b74e
KR
31832009-06-20 Ken Raeburn <raeburn@raeburn.org>
3184
3185 * process.c (status_message): Pass Faset index argument as a lisp
3186 object, so as to work with USE_LISP_UNION_TYPE.
3187
0e727afa
YM
31882009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3189
3190 * coding.c (Ffind_coding_systems_region_internal):
3191 Cache checked characters.
3192
cf299835
KH
31932009-06-18 Kenichi Handa <handa@m17n.org>
3194
1ac9108a 3195 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3196
90f20d94
AS
31972009-06-18 Andreas Schwab <aschwab@redhat.com>
3198
3199 * xdisp.c (redisplay_internal): Check that the frame is still
3200 live after redisplay of its windows.
3201 (redisplay_windows): Check that the window is still live.
3202
7f1faf1c
KH
32032009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3204
3205 * coding.c (detect_coding_utf_16): Fix previous change.
3206
cc13543e
KH
32072009-06-16 Kenichi Handa <handa@m17n.org>
3208
3209 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3210 UTF-16 by checking the dispersion of Eth and Oth bytes.
3211
977b85f4
AS
32122009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3213
3214 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3215
66bd43d1
KH
32162009-06-15 Kenichi Handa <handa@m17n.org>
3217
3218 * process.c (status_message): Fix previous change. Be sure to
3219 decode a localized string.
3220
cb5ca9c5
YM
32212009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3222
3223 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3224 add comment explaining why.
3225
ec7709ba 32262009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3227
ec7709ba 3228 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3229
4b7f335c
AR
32302009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3231
3232 * nsfont.m (ns_attribute_value): Remove.
3233 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3234 (ns_has_attribute): Shrink the normal range.
3235 (ns_findfonts): Don't worry about requested spec in determining
3236 need for synthItal.
e41820ee 3237 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3238
73b26103
SZ
32392009-06-14 Seiji Zenitani <zenitani@mac.com>
3240
3241 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3242
5753e4da
KH
32432009-06-11 Kenichi Handa <handa@m17n.org>
3244
3245 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3246 overhang for the static composition case.
3247
3561b671
KH
32482009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3249
5753e4da
KH
3250 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3251 overhang for the automatic composition case.
3252
3561b671
KH
3253 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3254 composition case.
3255
852bbd41
CY
32562009-06-10 Chong Yidong <cyd@stupidchicken.com>
3257
3258 * xdisp.c (get_next_display_element): When handling wrap-prefix
3259 and line-prefix, treat \n as a control character (bug#3502).
3260
9903d1e6
KH
32612009-06-10 Kenichi Handa <handa@m17n.org>
3262
3263 * font.c (font_parse_family_registry): Fix for one-char foundry.
3264 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3265
0bcbaaaa
CY
32662009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3267
3268 * process.c (status_message): Fix handling of multibyte signal
3269 string (Bug#3499).
3270
40aa3f13
JM
32712009-06-09 Jim Meyering <meyering@redhat.com>
3272
1f80c7e2
CY
3273 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3274 color name is missing.
40aa3f13 3275
72d51285
KH
32762009-06-09 Kenichi Handa <handa@m17n.org>
3277
3278 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3279 FROM-CODE and TO-CODE are codepoints of CHARSET.
3280
c1d04d84
AR
32812009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3282
3283 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3284
32852009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3286
3287 Changes to support :script/:lang/:otf in NS font driver.
3288 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3289 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3290 indicate not part of font driver interface, and change callers.
3291 (ns_get_family): Remove pointless null check.
3292 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3293 ns_spec_to_descriptor, ns_descriptor_to_entity.
3294 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3295 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3296 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3297 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3298 (ns_get_req_script, ns_accumulate_script_ranges)
3299 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3300 New functions.
3301 (nsfont_list, nsfont_match): Use ns_findfonts.
3302 (nsfont_open): Use font descriptor instead of traits.
3303 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3304 (dump_glyphstring): Rename to ns_dump_glyphstring.
3305
c7eb9816
AR
3306 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3307
c1d04d84
AR
3308 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3309
3310 * fontset.c (fontset_from_font): Remove NS-specific code.
3311
ec7709ba 33122009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3313
3314 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3315 nonactive windows.
3316
31fd7c5c 33172009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3318
1ac9108a 3319 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3320
68852c13 33212009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3322
3323 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3324
6756cd1d
CY
33252009-06-07 Chong Yidong <cyd@stupidchicken.com>
3326
3327 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3328 account for the overflowing of newlines into the last glyph on the
3329 display line (Bug#3482).
3330
28bf482a
DR
33312009-06-05 David Reitter <david.reitter@gmail.com>
3332
ec7709ba
JB
3333 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3334 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3335 Fns_selection_exists_p, Fns_selection_owner_p.
3336
fdb55376
JR
33372009-06-03 Jason Rumney <jasonr@gnu.org>
3338
3339 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3340 available. (Bug#3379)
3341
05129fbe
KH
33422009-05-29 Kenichi Handa <handa@m17n.org>
3343
1ac9108a
SM
3344 * coding.c (get_translation_table):
3345 Check Venable_character_translation.
05129fbe 3346
ec7709ba 33472009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3348
ec7709ba
JB
3349 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3350 (x_make_frame_visible): Move frame to front rather than calling
15891144 3351 ns_raise_frame().
ec7709ba 3352 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3353 isn't key window.
ec7709ba 3354 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3355 drawRect may be called by NSView even if the frame is hidden.
3356
ec7709ba
JB
3357 * nsfns.m (Fx_create_frame): Follow other ports in
3358 determining visibility; default to t. Ensure async_visible is set.
15891144 3359
21f73755
EZ
33602009-05-23 Eli Zaretskii <eliz@gnu.org>
3361
3362 * dired.c (Ffile_attributes): Doc fix.
3363
34001e41
CY
33642009-05-22 Chong Yidong <cyd@stupidchicken.com>
3365
3366 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3367
46306a17
SM
33682009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3369
3370 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3371 and xfont_scratch_props.
3372 (syms_of_xfont): Do it here instead.
3373 (xfont_find_ccl_program): Delete, unused.
3374 (xfont_open): Delete unused var `i'.
3375
ef6e0694
KH
33762009-05-21 Kenichi Handa <handa@m17n.org>
3377
3378 * fontset.c (Qlatin): Don't make it static.
3379
46306a17
SM
3380 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3381 New functions.
ef6e0694
KH
3382 (xfont_scripts_cache, xfont_scratch_props): New variables.
3383 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3384 (xfont_list_pattern): Argument changed. Callers changed.
3385 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3386 (xfont_list): Don't reject a font spec with :script property.
3387 (xfont_has_char): Fix setting of encoding.
3388 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3389 xfont_scratch_props.
3390
33912009-05-19 Kenichi Handa <handa@m17n.org>
3392
46306a17 3393 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3394 Callers changed.
3395
33962009-05-18 Kenichi Handa <handa@m17n.org>
3397
3398 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3399
ac71ced7
SM
34002009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3401
3402 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3403 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3404
1c6d1051
YM
34052009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3406
3407 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3408 (x_delete_terminal): Dissociate resource database from display and
3409 then call XrmDestroyDatabase before closing display.
3410
9b9b779c
AR
34112009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3412
3413 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3414 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3415 whether selected frame is viable before raising it (based on patch
3416 by David Reitter), and improve commentary.
3417 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3418
cccd42d5
KH
34192009-05-15 Kenichi Handa <handa@m17n.org>
3420
3421 * font.c (Ffont_spec): Check arguments.
3422
337fbd17
CY
34232009-05-14 Chong Yidong <cyd@stupidchicken.com>
3424
3425 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3426 weight when testing attributes (Bug#3282).
3427
47a6002f
JD
34282009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3429
3430 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3431 what we expect to get in the next ConfigureNotify event.
3432
9cb363db
YM
3433 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3434 before Xft one (Bug#1696).
3435
b9126609
CY
34362009-05-07 David Reitter <david.reitter@gmail.com>
3437
3438 * nsfns.m (Fx_display_planes): Compute bitplanes using
3439 NSBitsPerPixelFromDepth (Bug#3207).
3440
27a69fd9
CY
34412009-05-10 Chong Yidong <cyd@stupidchicken.com>
3442
3443 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3444
00f37552
TTN
34452009-05-10 Ulrich Mueller <ulm@gentoo.org>
3446
3447 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3448
2d82a920
DR
34492009-05-07 David Reitter <david.reitter@gmail.com>
3450
ec7709ba
JB
3451 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3452 Respect mouse face background.
2d82a920 3453
46b0d52d
DR
34542009-05-07 David Reitter <david.reitter@gmail.com>
3455
ec7709ba
JB
3456 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3457 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3458 in ns_update_begin and ns_update_end.
3459
ce1b23bb
SM
34602009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3461
5996e1b7
SM
3462 * nsfns.m (ns_get_screen): Rewrite.
3463 Don't presume selected-frame is of type `ns'.
3464
ba98e3a0
SM
3465 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3466 all drivers.
3467
ce1b23bb
SM
3468 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3469
bcda200f
YM
34702009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3471
3472 * keyboard.h (add_user_signal): Fix typo in extern.
3473
3474 * lisp.h (add_user_signal): Remove extern.
3475
3476 * unexelf.c (unexec): Consider a section to precede the .bss section
3477 if its addresses overlap that of .bss.
3478 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3479 instead of dumping process.
3480
864660a2
SM
34812009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3482
3483 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3484
50da4e56
SM
34852009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3486
3487 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3488
51520a1a
DN
34892009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3490
3491 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3492 any statements.
3493
409ea3a1
AS
34942009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3495
59c4c60f
AS
3496 * process.c (read_process_output): Make sure the current buffer is
3497 always restored.
3498
409ea3a1
AS
3499 * coding.c (record_conversion_result): Don't modify
3500 Vlast_code_conversion_error for successful result.
3501 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3502
56f00ed2
KH
35032009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3504
3505 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3506 (load_charset_map): Remove unnecessary code.
56f00ed2 3507
4491c9d2
DR
35082009-04-30 David Reitter <david.reitter@gmail.com>
3509
35f5b128 3510 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3511 through f24.
3512
6970f632
CY
35132009-04-30 Chong Yidong <cyd@stupidchicken.com>
3514
3515 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3516
3517 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3518 face_at_buffer_position.
3519 (face_before_or_after_it_pos, get_next_display_element)
3520 (note_mouse_highlight): Update face_at_buffer_position call.
3521
3522 * term.c (term_mouse_highlight):
3523 * msdos.c (IT_note_mouse_highlight):
3524 * fontset.c (Finternal_char_font):
35f5b128 3525 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3526
3527 * dispextern.h (face_at_buffer_position): Update prototype.
3528
0c616f63
KH
35292009-04-30 Kenichi Handa <handa@m17n.org>
3530
35f5b128 3531 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3532
ad3aaf33
AS
35332009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3534
3535 * callproc.c (Fcall_process): Fix GC protection. Make sure
3536 current buffer is always restored.
3537
c3c963a0
YM
35382009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3539
3540 * atimer.c (init_atimer): Also clear stopped_atimers.
3541
3542 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3543
7e3386cb
YM
3544 * process.c (create_process): Clean up merger residues of
3545 2008-07-17 change.
3546
91f68422
CY
35472009-04-29 Ulrich Mueller <ulm@gentoo.org>
3548
3549 * lread.c (Vread_circle): New variable.
3550 (read1): Disable recursive read if Vread_circle is nil.
3551
24b34550
KH
35522009-04-29 Kenichi Handa <handa@m17n.org>
3553
3554 * fontset.h (set_default_ascii_font): Delete extern.
3555
3556 * fontset.c (set_default_ascii_font): Delete this unused function.
3557
3558 * frame.c (x_set_font): When ARG is a font-object, check if the
3559 font-object matches with the ASCII font-spec of the frame's
9c358bda 3560 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3561
77bf07e1
AS
35622009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3563
3564 * fns.c (Flocale_info): Protect vector from GC during decoding.
3565
3566 * process.c (Fstart_process): Protect argv strings from GC during
3567 encoding.
3568
2c55aacf
AS
35692009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3570
3571 * sysdep.c: Include <ctype.h>.
3572
b892d3c9
DR
35732009-04-27 David Reitter <david.reitter@gmail.com>
3574
35f5b128 3575 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3576 Remove commented-out code.
3577
9d0644c4
JB
35782009-04-26 Johan Bockgård <bojohan@gnu.org>
3579
3580 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3581
b7053016
JR
35822009-04-25 Jason Rumney <jasonr@gnu.org>
3583
3584 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3585
4e8231f3
YM
35862009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3587
3588 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3589 Swap bytes in short integer if fringe bitmap width > 8.
3590
493dcf2c
KH
35912009-04-23 Kenichi Handa <handa@m17n.org>
3592
3593 * xfaces.c (Fx_list_fonts): If a font size is specified in
3594 PATTERN, set it in returned scalable fonts.
3595
401e9e57
CY
35962009-04-22 Chong Yidong <cyd@stupidchicken.com>
3597
708e05dc
CY
3598 * keyboard.c (Fset_input_meta_mode): Doc fix.
3599
3600 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3601
1ac9108a 3602 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3603
3604 * coding.c (Fterminal_coding_system): Doc fix.
3605
3606 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3607 (Fx_display_pixel_height, Fx_display_planes)
3608 (Fx_display_color_cells, Fx_server_max_request_size)
3609 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3610 (Fx_display_mm_height, Fx_display_mm_width)
3611 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3612 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3613 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3614 (check_x_display_info): Handle terminal objects instead of
3615 terminal ids.
3616
401e9e57
CY
3617 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3618 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3619 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3620 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3621
df80c7f0
KH
36222009-04-21 Kenichi Handa <handa@m17n.org>
3623
5a8f12af 3624 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3625 (font_score): Check AVGWIDTH too.
908567ef 3626
df80c7f0
KH
3627 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3628 worst case.
1ac9108a
SM
3629 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3630 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3631
705af33f
JR
36322009-04-19 Jason Rumney <jasonr@gnu.org>
3633
3634 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3635 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3636
3637 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3638 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3639 get_phys_cursor_geometry.
3640
b71ac3dd 3641 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3642 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3643 using get_phys_cursor_geometry.
3644
3645 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3646 correctly calculated.
3647
dc2933eb
JD
36482009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3649
1ac9108a
SM
3650 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3651 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3652 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3653 is deprecated.
3654
973e7849
AS
36552009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3656
3657 * font.c (font_put_frame_data): Use xfree instead of free.
3658
314d66f4
JB
36592009-04-17 Juanma Barranquero <lekktu@gmail.com>
3660
3661 * w32font.c (Qja, Qko): Remove declarations.
3662 (syms_of_w32font): Don't DEFSYM them.
3663
cf702558
CY
36642009-04-17 Chong Yidong <cyd@stupidchicken.com>
3665
3666 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3667
3668 * font.h (Qja, Qko): Extern them.
3669
3670 * ftfont.c (Qja, Qko): Remove declarations.
3671
3672 * xfont.c (Qja, Qko): Remove declarations.
3673
b50504f5
KH
36742009-04-17 Kenichi Handa <handa@m17n.org>
3675
bde25748
KH
3676 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3677 string from a vector to handle Latin-1 characters correctly.
3678
b50504f5
KH
3679 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3680 entity even if the cache hits.
3681
f4646fff
AS
36822009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3683
3684 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3685 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3686
e7deaab0
AS
3687 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3688 * lisp.h: Adjust prototypes.
3689
0a0e7d49
CY
36902009-04-16 Chong Yidong <cyd@stupidchicken.com>
3691
3692 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3693 change (Bug#3003).
3694
3c908a57
KH
36952009-04-16 Kenichi Handa <handa@m17n.org>
3696
1ac9108a 3697 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3698
3699 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3700 adstyle.
3701
3702 * ftfont.c (Qja, Qko): Don't make them static.
3703 (enum ftfont_cache_for): New enum.
3704 (fc_charset_table): Undo the previous change.
3705 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3706 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3707 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3708 non-scarable font, try to get AVERAGE_WIDTH.
3709 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3710 Change ft_face_cache from a list of a hash-table. Don't check
3711 `ja' and `ko' adstyle here.
3712 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3713 FTFONT_CACHE_FOR_CHARET.
3714 (ftfont_get_charset): Undo the previous change.
1ac9108a 3715 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3716 (ftfont_close): Likewise.
3717 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3718
3719 * font.c (font_sort_entites): Change the meaning of the arg
3720 BEST-ONLY. Don't optimize for VEC of lenght 1.
3721 (font_select_entity): Just return the value of font_sort_entites.
3722
3723 * xfaces.c (merge_face_vectors): Reflect font properties in
3724 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3725 font_clear_prop if a face attribute doesn't change.
3726
3c908a57
KH
3727 * charset.h (charset_ksc5601): Extern it.
3728
3729 * charset.c (charset_ksc5601): New variable.
3730 (Fdefine_charset_internal): Set charset_ksc5601.
3731 (init_charset_once): Initialize charset_ksc5601 to -1.
3732
d65859c3
DN
37332009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3734
3735 * fileio.c (history_delete_duplicates): Remove unused declaration.
3736
3737 * callint.c (history_delete_duplicates): New declaration.
3738 (Fcall_interactively): Remove command history duplicates when
3739 history_delete_duplicates is true.
3740
3ba010e5
EZ
37412009-04-14 Eli Zaretskii <eliz@gnu.org>
3742
3743 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3744
06f19b91
KH
37452009-04-14 Kenichi Handa <handa@m17n.org>
3746
3747 * font.c (Ffont_info): Fix docstring. Fix the second element of
3748 the returned value (bug#2949).
3749
2cce8bfc
CY
37502009-04-14 Chong Yidong <cyd@stupidchicken.com>
3751
3752 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3753
d156542d
KH
37542009-04-14 Kenichi Handa <handa@m17n.org>
3755
3756 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3757 encoding charset is ascii_compatible.
3758
3759 * charset.c (Fdefine_charset_internal): Make charset
3760 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3761 code_offset is 0, and covers all ASCII characters.
3762
86fa089e
SM
37632009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3764
3765 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3766 (ns_string_to_pasteboard_internal):
3767 * nsmenu.m (process_dialog):
3768 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3769 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3770 * lisp.h (Fx_load_color_file): Declare.
3771
a8a3728b
KH
37722009-04-13 Kenichi Handa <handa@m17n.org>
3773
1ac9108a 3774 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3775 (font_select_entity): Suppress the code to optimize for the same
3776 kind of fonts.
3777 (font_load_for_lface): Get a font that supports at least ASCII
3778 characters.
3779
3780 * ftfont.c (Qja, Qko): New variables.
3781 (fc_charset_table): Delete uniquifier data for iso8859-1.
3782 (ftfont_get_latin1_charset): New function.
3783 (get_adstyle_property): New function.
3784 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3785 bitmap fonts.
3786 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3787 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3788 `ko' or `ja'.
3789 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3790 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3791 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3792 property.
3793 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3794 (syms_of_ftfont): DEFSYM Qja and Qko.
3795
483670b5
KH
37962009-04-09 Kenichi Handa <handa@m17n.org>
3797
12b55765
KH
3798 * charset.c (map_charset_chars): For a charset of `superset'
3799 method, fix calculation of code range.
3800
483670b5
KH
3801 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3802 from the list of extra properties.
3803 (font_clear_prop): Be sure to delete `:name' font property.
3804
57d3b93b
KH
38052009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3806
b4b2c2ca
YM
3807 * dispnew.c (redraw_overlapping_rows): Fix detection of
3808 overlapping for topmost and bottommost rows.
3809
1ac9108a 3810 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3811
472c3609
JR
38122009-04-06 Jason Rumney <jasonr@gnu.org>
3813
3814 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3815
ab193662
KH
38162009-04-06 Kenichi Handa <handa@m17n.org>
3817
3818 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3819
3820 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3821
0c26f026
KH
38222009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3823
3824 * ftfont.c (ftfont_open): Fix checking of the return value of
3825 FT_Load_Char. Fix setting font->underline_thickness.
3826
e173bbce
CY
38272009-04-04 Chong Yidong <cyd@stupidchicken.com>
3828
3829 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3830 (Fterminal_parameters, Fterminal_parameter)
3831 (Fset_terminal_parameter): In doc string, refer to terminal
3832 objects rather than terminal ids.
3833
693a2698
EZ
38342009-04-04 Eli Zaretskii <eliz@gnu.org>
3835
3836 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3837 ret_lim_data. (Bug#2867)
3838
d5221487
CY
38392009-04-03 Chong Yidong <cyd@stupidchicken.com>
3840
3841 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3842 so they don't get wider than the window, matching 2006-01-23
3843 change to the partner function in xdisp.c (Bug#2800).
3844
223509a3
KH
38452009-04-03 Kenichi Handa <handa@m17n.org>
3846
3847 * print.c (print_object): Make each lowest sub_char_table start a
3848 new line (Bug#2866).
3849
74fcd0b1
KH
38502009-04-02 Kenichi Handa <handa@m17n.org>
3851
3852 * fontset.c (fontset_font): Record no-font when a fontset
3853 explicitly tells not to try another font-specs.
3854
c542407d
SM
38552009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3856
3857 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3858
e3869731
KH
38592009-03-30 Kenichi Handa <handa@m17n.org>
3860
d8d2f142
KH
3861 * fontset.c (fontset_from_font): Specify only registry in a
3862 font-spec for all characters supported by that registry.
3863
e3869731
KH
3864 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3865 even if HAVE_M17N_FLT is not defined.
3866
5da5f805
CY
38672009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3868
3869 * ftfont.c: Conditionalize prototyping and use of
3870 ftfont_variation_glyphs.
3871
ab226c50
SM
38722009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3873
9628fed7
SM
3874 * frame.c (delete_frame): Work around compiler bug.
3875
3876 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3877 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3878 Some more EMACS_INT.
3879 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3880
3881 * xdisp.c (dump_glyph): Fix typo.
3882
ae19ba7c
SM
3883 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3884 (adjust_markers_gap_motion, adjust_markers_for_delete)
3885 (adjust_markers_for_insert, adjust_point)
3886 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3887 (make_gap, copy_text, count_size_as_multibyte, insert)
3888 (insert_and_inherit, insert_before_markers)
3889 (insert_before_markers_and_inherit, insert_1)
3890 (count_combining_before, count_combining_after, insert_1_both)
3891 (insert_from_string, insert_from_string_before_markers)
3892 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3893 (insert_from_buffer_1, adjust_after_replace)
3894 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3895 (replace_range_2, del_range, del_range_1, del_range_byte)
3896 (del_range_both, del_range_2, modify_region)
3897 (prepare_to_modify_buffer, signal_before_change)
3898 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3899 for buffer positions and sizes.
3900 * lisp.h: Adjust prototypes accordingly.
3901
3902 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3903 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3904 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3905
ab226c50
SM
3906 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3907
46dfb8fb
JD
39082009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3909
3910 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3911 lines and columns so we keep the same pixel height and width.
3912
3913 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3914 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3915 (x_handle_net_wm_state): New function to update frame parameter
3916 fullscreen.
3917 (x_term_init): Initialize atoms for _NET_WM_STATE.
3918
3919 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3920
d347e494
SM
39212009-03-27 Kevin Ryde <user42@zip.com.au>
3922
3923 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3924 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3925 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3926 (Fgpm_mouse_stop): Pass that new parameter.
3927 * termhooks.h (close_gpm): Adjust prototype.
3928
84db11d6
SM
39292009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3930
c95a5008
SM
3931 * lisp.h (Fx_focus_frame): Declare.
3932
84db11d6
SM
3933 * callint.c (Fcall_interactively): For '^' just delegate the work to
3934 handle-shift-selection.
3935 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3936
0a1958d6
CY
39372009-03-24 Chong Yidong <cyd@stupidchicken.com>
3938
0bfdff23
CY
3939 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3940
0a1958d6
CY
3941 * data.c (Qinteractive_form): New variable.
3942 (Finteractive_form): Use it.
3943
3944 * eval.c (Fcommandp): Use Qinteractive_form.
3945
58aec0d6
JR
39462009-03-24 Jason Rumney <jasonr@gnu.org>
3947
3948 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3949 Calculate total size precisely. Decode environment variables
3950 before substituting. (Bug#38)
3951
553dd618
KH
39522009-03-24 Kenichi Handa <handa@m17n.org>
3953
3954 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3955 encoding (Bug#2722).
553dd618 3956
c39ea606
JD
39572009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3958
3959 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3960 that gdpy is set.
3961
bc9b2b5e
AM
39622009-03-22 Alan Mackenzie <acm@muc.de>
3963
3964 * callint.c (Finteractive): Clarify the doc string - even
3965 promptless elements need \n separators.
3966
9f995a76
JR
39672009-03-22 Jason Rumney <jasonr@gnu.org>
3968
3969 * w32term.c (syms_of_w32term): Doc fix for
3970 x-use-underline-position-properties.
3971
22749e9a
EZ
39722009-03-21 Eli Zaretskii <eliz@gnu.org>
3973
3974 * w32.c (getpwuid): Change argument type to unsigned.
3975 (struct w32_id): Change type of `rid' member to unsigned.
3976 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3977 argument ID to unsigned. All callers changed.
3978 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3979
e00553bf
EZ
39802009-03-20 Eli Zaretskii <eliz@gnu.org>
3981
3982 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3983 negative, produce a float value.
3984
3985 * dired.c (make_uid, make_gid): New functions.
3986 (Ffile_attributes): Use them to avoid negative UID and GID.
3987
f761d6b6
JB
39882009-03-20 Juanma Barranquero <lekktu@gmail.com>
3989
3990 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3991 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3992 Fix typos in docstrings.
3993
d507f8d7
KH
39942009-03-19 Kenichi Handa <handa@m17n.org>
3995
3996 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3997 changed, use font_load_for_lface to get a new font object.
3998 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3999
4000 * frame.c (x_set_font): Handle the case that ARG is a cons.
4001
c68845e0
GM
40022009-03-19 Glenn Morris <rgm@gnu.org>
4003
4004 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4005
bfa49dd1
CY
40062009-03-19 Chong Yidong <cyd@stupidchicken.com>
4007
4008 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4009
8458d4c1
KH
40102009-03-19 Kenichi Handa <handa@m17n.org>
4011
4012 * charset.c (load_charset_map_from_file): When a mapfile can't be
4013 loaded, signal an error.
4014
78e7d1fe
EZ
40152009-03-18 Eli Zaretskii <eliz@gnu.org>
4016
4017 * dired.c (Ffile_attributes): Make sure UID and GID are always
4018 positive, even if the value is too large for a positive EMACS_INT.
4019 Doc fix.
4020
4021 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4022
5da9fdfa
YM
40232009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4024
4025 * xmenu.c (xdialog_show): Move Fredisplay call ...
4026 (Fx_popup_dialog): ... here.
4027
7519c40d
SM
40282009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4029
4030 * dired.c (file_name_completion): Disable the first optimization just
4031 installed, since it is not implemented correctly.
4032
2cd298e2
SM
40332009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4034
4035 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4036 only if the entry can affect bestmatch.
2cd298e2
SM
4037 Stop the search early, as Ftry_completion already does.
4038
48d37adf
CY
40392009-03-17 Chong Yidong <cyd@stupidchicken.com>
4040
e10c9c93 4041 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4042
9286b16a
CY
40432009-03-15 Chong Yidong <cyd@stupidchicken.com>
4044
4045 * keyboard.c (parse_menu_item): Don't display remappings as menu
4046 equivalent bindings (Bug#788).
4047
f7b146dc
JR
40482009-03-15 Jason Rumney <jasonr@gnu.org>
4049
4050 * w32term.h (WM_EMACS_PAINT): New message.
4051 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4052 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4053 before passing to lisp thread. (Bug#950)
4054
f761d6b6 40552009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4056
d93f9575
CY
4057 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4058 variable as it was never reset.
4059 (ns_term_init): Remove initialization of Lisp-settable defaults
4060 and ns_expand_space.
4061 (-setPanelFromDefaultValues): Remove ns_expand_space.
4062 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4063 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4064 i.e. no additional spacing, similar to Carbon port.
4065
d93f9575
CY
4066 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4067 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4068
305018ec
JD
40692009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4070
4071 * sound.c (alsa_configure): Remove call to deprecated
4072 snd_pcm_sw_params_set_xfer_align.
4073
f761d6b6 40742009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4075
4076 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4077 after clicking in a detached tool bar.
4078 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4079
46e722a9
SM
40802009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4081
348db3dd
SM
4082 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4083 int/Lisp_Object mixup).
46e722a9 4084
a3d16f39
KH
40852009-03-13 Kenichi Handa <handa@m17n.org>
4086
4087 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4088 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4089 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4090 (set_fontset_font): Change ARG to a vector. Handle range_list in
4091 ARG correctly.
4092 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4093 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4094 the above change.
4095 (fontset_from_font): Fix previous change.
fe24f56a 4096 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4097 entry. If FONTSET is the default fontset, don't set the extra
4098 slot of the returning char-table.
4099
b066e6b6
JB
41002009-03-12 Juanma Barranquero <lekktu@gmail.com>
4101
4102 * nsfns.m (Fx_close_connection): Doc fix.
4103 (Fns_do_applescript): Reflow docstring.
4104 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4105 (Fx_display_pixel_width, Fx_display_pixel_height)
4106 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4107 Fix typos in docstrings.
4108 (Fns_set_alpha): Fix typos in error messages.
4109
d472514e 41102009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4111
d472514e 4112 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4113 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4114 were used for such events.
4115
d472514e
JB
4116 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4117 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4118
d472514e 4119 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4120 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4121
fb930676
KH
41222009-03-11 Kenichi Handa <handa@m17n.org>
4123
ff85581a
KH
4124 * font.h (font_open_by_spec): Extern it.
4125
c50b7e98
KH
4126 * font.c (font_open_by_spec): New function.
4127 (font_open_by_name): Use font_open_by_spec.
4128
fb930676
KH
4129 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4130 fontset of the frame.
4131
4132 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4133 modify the default font of frames that use this fontset.
4134 (num_auto_fontsets): New variable.
4135 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4136 name. Be sure to set FONTSET_ASCII to the correct font name.
4137 (update_auto_fontset_alist): New function.
4138
df4e8455
JB
41392009-03-11 Juanma Barranquero <lekktu@gmail.com>
4140
4141 * makefile.w32-in: Update dependencies.
4142
0a375797
AR
41432009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4144
4145 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4146
61313fa3
SM
41472009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4148
4149 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4150
b55103fb
CY
41512009-03-10 Chong Yidong <cyd@stupidchicken.com>
4152
4153 * lread.c (Feval_buffer): Doc fix.
4154
dde2559c
KH
41552009-03-09 Kenichi Handa <handa@m17n.org>
4156
4157 * charset.c (Qfile_name_handler_alist): Extern it.
4158 (load_charset_map_from_file): Temporarily bind
4159 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4160
df4e8455 41612009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4162
47f588bb
GM
4163 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4164 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4165
4ddf94bd
AR
41662009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4167
4c9bdfc2
AR
4168 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4169 (x_set_window_size): Change back to calculated method of setting
4170 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4171 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4172 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4173
fe41ae9e
AR
4174 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4175
4c9bdfc2
AR
4176 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4177 accelerator in parens under GNUstep.
4178
825d0875
KH
41792009-03-06 Kenichi Handa <handa@m17n.org>
4180
4181 These changes are to detect incorrect composition sequence without
f3b3be74 4182 looking ahead the source. (Bug#2370)
825d0875
KH
4183
4184 * coding.h: Include "composite.h".
4185 (enum compisition_state): New enum.
4186 (struct compisition_status): New struct.
4187 (struct iso_2022_spec): New member cmp_status.
4188 (struct emacs_mule_spec): New struct.
4189 (struct coding_system): New members ctext_extended_segment_len and
4190 embedded_utf_8. Change the union member
4191 spec.emacs_mule_full_support to spec.emacs_mule.
4192
4193 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4194 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4195 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4196 (ADD_COMPOSITION_DATA): New arg nbytes.
4197 (emacs_mule_char): New arg cmp_status.
4198 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4199 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4200 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4201 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4202 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4203 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4204 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4205 (EMACS_MULE_COMPOSITION_END): New macro.
4206 (emacs_mule_finish_composition): New function.
4207 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4208 (decode_coding_emacs_mule): Avoid long looking ahead while
4209 handling composition.
4210 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4211 (ENCODE_COMPOSITION_RULE): New macro.
4212 (finish_composition): New function.
4213 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4214 (DECODE_COMPOSITION_START): New implementation.
4215 (DECODE_COMPOSITION_END): Likewise.
4216 (STORE_COMPOSITION_RULE): New macro.
4217 (decode_coding_iso_2022): Avoid long looking ahead while handling
4218 composition, CTEXT extended segment, and embedded UTF-8.
4219 (setup_coding_system): For a coding of type iso-2022, reset
4220 CODING_ISO_EXTSEGMENT_LEN (coding) and
4221 CODING_ISO_EMBEDDED_UTF_8 (coding).
4222 (get_translation): Delete arguments last_block, from_nchars,
4223 to_nchars. Callers changed.
4224 (produce_chars): Don't modify charbuf. Adjusted for the change of
4225 get_translation.
98a326f7 4226 (produce_composition): Adjust for the new annotation sequence.
825d0875 4227 (handle_composition_annotation): Likewise.
98a326f7 4228 (consume_chars): Adjust for the change of get_translation.
825d0875 4229
ccbc4452
AR
42302009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4231
4ddf94bd 4232 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4233
988a7ddb
KH
42342009-03-05 Kenichi Handa <handa@m17n.org>
4235
4236 * font.c (font_select_entity): New function.
4237 (font_find_for_lface): Use font_select_entity to select a font.
4238
4239 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4240 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4241 font with C restriction.
4242
98a326f7 42432009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4244
be1bce46 4245 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4246
10ea2b82
JR
42472009-03-04 Jason Rumney <jasonr@gnu.org>
4248
2c93b248 4249 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4250 characters that have already been read. (Bug#2569)
2c93b248 4251
10ea2b82
JR
4252 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4253 Log an error message if check_image_size failed.
4254 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4255 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4256
71a0c011
EZ
42572009-03-02 Eli Zaretskii <eliz@gnu.org>
4258
4259 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4260 when decoding process output.
4261
2f63bba8
RS
42622009-03-01 Richard M Stallman <rms@gnu.org>
4263
4264 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4265
4266 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4267
0a9564cb
EZ
42682009-02-28 Eli Zaretskii <eliz@gnu.org>
4269
4270 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4271 (decode_coding_emacs_mule, decode_coding_iso_2022)
4272 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4273 (decode_coding_raw_text, decode_coding_charset)
4274 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4275 Honor inhibit-eol-conversion. (Bug #2186)
4276
449148b3
JR
42772009-02-28 Jason Rumney <jasonr@gnu.org>
4278
4279 * coding.c (detect_coding_charset): If not checking latin extra,
4280 fail on characters between 0x80 and 0xA0. (Bug#2354)
4281
a4aee864
EZ
42822009-02-28 Eli Zaretskii <eliz@gnu.org>
4283
4284 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4285 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4286
d88bee5a
GM
42872009-02-27 Glenn Morris <rgm@gnu.org>
4288
4289 * callint.c (Finteractive): Doc fix.
4290
a808f22d
KH
42912009-02-27 Kenichi Handa <handa@m17n.org>
4292
4293 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4294
caf8d60c
CY
42952009-02-27 Chong Yidong <cyd@stupidchicken.com>
4296
4297 * font.c (font_style_to_value): Set value for unknown symbols to
4298 100 instead of 255.
b61137ea
CY
4299 (weight_table, slant_table, width_table): Treat "unspecified" as
4300 the default value.
caf8d60c 4301
1a0de25c
JB
43022009-02-26 Juanma Barranquero <lekktu@gmail.com>
4303
4304 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4305
8fc45744
JB
43062009-02-25 Juanma Barranquero <lekktu@gmail.com>
4307
107bd7d1
JB
4308 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4309 error as soon as a recursive load is detected.
8fc45744 4310
f097e223
AR
43112009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4312
4313 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4314 before caching.
4315
8810a12f
KH
43162009-02-24 Kenichi Handa <handa@m17n.org>
4317
4318 * fontset.c (fontset_find_font): Fix the condition for checking
4319 unavailable font.
4320
2c7d1565
GM
43212009-02-24 Glenn Morris <rgm@gnu.org>
4322
4323 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4324 whitespace that confuses documentation.
4325
a20878b6
MB
43262009-02-23 Miles Bader <miles@gnu.org>
4327
4328 * process.c (Flist_system_processes, Fprocess_attributes)
4329 (syms_of_process): Rename `system-process-attributes' to
4330 `process-attributes'.
4331
b3b58c01
AS
43322009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4333
1b3b981b
AS
4334 * coding.h (struct coding_system): Make safe_charsets a pointer to
4335 unsigned char.
4336 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4337 being 255.
4338 (SAFE_CHARSET_P): Likewise.
4339 (setup_iso_safe_charsets): Properly setup safe_charsets.
4340 (Fdefine_coding_system_internal): Likewise.
4341 (setup_coding_system): Likewise. Remove unneeded casts.
4342 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4343 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4344 unneeded casts.
4345
b3b58c01
AS
4346 * insdel.c (del_range_2): Don't modify gap contents when called
4347 from decode_coding_object. (Bug#1809)
4348
0b6f228c
CY
43492009-02-21 Chong Yidong <cyd@stupidchicken.com>
4350
4351 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4352 Qfont_object.
4353 (Ftype_of): Recognize font objects.
4354
4355 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4356
4357 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4358 moved to data.c.
4359
52f8870b
AR
43602009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4361
4362 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4363 async_iconified. Based on a patch by Christian Lynbech
4364 <christian.lynbech@tieto.com>.
4365 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4366
7087d5e9
GM
43672009-02-20 Glenn Morris <rgm@gnu.org>
4368
4369 * syntax.c (Fskip_chars_forward): Fix doc typo.
4370
41d2ceef
CY
43712009-02-20 Chong Yidong <cyd@stupidchicken.com>
4372
4373 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4374
1a3b7ca6
CY
43752009-02-19 Chong Yidong <cyd@stupidchicken.com>
4376
4377 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4378
73cce38d
KH
43792009-02-19 Kenichi Handa <handa@m17n.org>
4380
4381 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4382 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4383
a51092ee
DN
43842009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4385
4386 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4387
c423ecca
KH
43882009-02-18 Kenichi Handa <handa@m17n.org>
4389
4390 * font.c (font_check_otf_features): Fix handling of `nil' element.
4391 (Ffont_spec): Describe :lang and :otf in the docstring.
4392
4c1958f4
AS
43932009-02-16 Andreas Schwab <schwab@suse.de>
4394
4395 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4396 string.
4397
5704f39a
KH
43982009-02-16 Kenichi Handa <handa@m17n.org>
4399
4400 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4401 (Bug#1723)
5704f39a 4402
8f0085aa
CY
44032009-02-14 Chong Yidong <cyd@stupidchicken.com>
4404
a057d86a 4405 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4406
4407 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4408 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4409
aff01dd9
EZ
44102009-02-14 Eli Zaretskii <eliz@gnu.org>
4411
4412 * msdos.c (MAX_SCREEN_BUF): New macro.
4413 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4414 Encode the entire run of glyphs sharing the same face, instead of
4415 doing that one glyph at a time (fixes a bug with displaying
4416 double-size characters).
4417
ba301db3
AR
44182009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4419
4420 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4421
4422 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4423 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4424 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4425
4426 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4427 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4428
51d861de
SM
44292009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4430
ac146f82 4431 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4432 invisible areas.
4433
7fed8996
JR
44342009-02-12 Jason Rumney <jasonr@gnu.org>
4435
631ea4fb
JR
4436 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4437 (add_font_entity_to_list): Call check_face_name even when family
4438 is unspecified.
4439
cb4a3e42
JR
4440 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4441 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4442 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4443
7fed8996 4444 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4445 raster fonts. (Bug#2219)
7fed8996 4446
895416e3
KH
44472009-02-12 Kenichi Handa <handa@m17n.org>
4448
4449 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4450 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4451 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4452 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4453 (find_automatic_composition): While looking forward and backward,
4454 check static composition. Fix where to stop looking forward.
4455 (composition_adjust_point): Fix checking of static composition.
4456 (Fcomposition_get_gstring): Pay attention to
1dacf998 4457 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4458
4459 * lisp.h (fast_looking_at): Extern it.
4460
4461 * search.c (fast_looking_at): New function.
4462
51d861de 4463 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4464 <struct glyph>.u.cmp.to.
4465 (append_composite_glyph): Likewise.
4466
51d861de 4467 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4468 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4469 composition.
51d861de 4470 (append_composite_glyph): Adjust for the change of
895416e3
KH
4471 <strcut glyph>.u.cmp.to.
4472
8510724d
JB
44732009-02-11 Juanma Barranquero <lekktu@gmail.com>
4474
4475 * casetab.c (init_casetab_once):
4476 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4477 * font.c (font_update_lface):
4478 * fontset.c (Fnew_fontset):
4479 * ftfont.c (ftfont_drive_otf):
4480 * xfont.c (xfont_open):
4481 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4482
294fa707
SM
44832009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4484
4485 * fileio.c (Fwrite_region): !NILP -> CONSP.
4486
b5bfebec
AS
44872009-02-10 Andreas Schwab <schwab@suse.de>
4488
4489 * process.c (send_process): Properly relocate pointer into data
adab88bd 4490 when using encoded data. (Bug#2272)
b5bfebec 4491
cb84a2be
KH
44922009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4493
4494 * coding.c (detect_coding_charset): Fix previous change.
4495
89e09428
JR
44962009-02-08 Jason Rumney <jasonr@gnu.org>
4497
4498 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4499 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4500
4470a277
AS
45012009-02-07 Andreas Schwab <schwab@suse.de>
4502
4503 * unexelf.c (unexec): Fix error message.
4504
3175b12a
AR
45052009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4506
4507 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4508 when modal window is active. (Bug #2152)
3175b12a
AR
4509 (applicationShouldTerminate:): Remove now-unneeded while loop
4510 around NSRunAlertPanel.
4511
4512 * nsmenu.m (popupSession): New file-global variable.
4513 (pop_down_menu): End the popupSession before closing dialog.
4514 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4515 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4516 don't query NSApp for events (just sleep instead).
4517
8434d0b8
EZ
45182009-02-07 Eli Zaretskii <eliz@gnu.org>
4519
51d861de
SM
4520 * coding.c (syms_of_coding) <translation-table-for-input>:
4521 Modify doc string to discourage use for character code unification.
8434d0b8 4522
aa82edfd
CY
45232009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4524
4525 * atimer.c (run_timers): Update pending_atimers.
4526
2d283c7c
CY
45272009-02-06 Chong Yidong <cyd@stupidchicken.com>
4528
eb306cab
CY
4529 * image.c (svg_load_image): Fix last change.
4530
2d283c7c
CY
4531 * xfns.c (Fx_create_frame): Signal an error if no font is
4532 found (Bug#2147).
4533
4d8e170e
JB
45342009-02-05 Juanma Barranquero <lekktu@gmail.com>
4535
4536 * character.c (syms_of_character) <script-representative-chars>:
4537 Fix typo in docstring.
4538
c96169a0
AR
45392009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4540
4541 * nsmenu.m (pop_down_menu): New function.
4542 (ns_popup_dialog): Call it on unwind.
4543 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4544 call timer_check() (Bug#2154).
4545 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4546 handling_signal is set.
4547 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4548
31fd7c5c 4549 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4550
4551 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4552
4553 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4554
51d861de
SM
4555 * keyboard.c (poll_for_input_1, handle_async_input):
4556 Set handling_signal under HAVE_NS.
c96169a0 4557
aacd8ba1
GM
45582009-02-04 Glenn Morris <rgm@gnu.org>
4559
4560 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4561
4cb75c4b
KH
45622009-02-04 Kenichi Handa <handa@m17n.org>
4563
4564 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4565
4566 * charset.c (Fchar_charset): New optional arg restriction.
4567
4568 * coding.h (coding_system_charset_list): Extern it.
4569
4570 * coding.c (coding_system_charset_list): New function.
4571
4572 * composite.c: Include coding.h and termhooks.h.
4573 (composition_gstring_p): Fix for the terminal case.
4574 (composition_gstring_width): Likewise.
4575 (fill_gstring_body): Likewise.
4576 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4577 the frame.
4578 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4579 is within a composition.
867d4bb3 4580 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4581
4582 * term.c (encode_terminal_code): Fix handling of composition.
4583 (produce_composite_glyph): For static composition, get pixel_width
4584 from struct composition.
4585
826ba17e
AS
45862009-02-02 Andreas Schwab <schwab@suse.de>
4587
4588 * unexelf.c (unexec): Handle unaligned bss offset.
4589
8ad093db
AR
45902009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4591
4592 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4593 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4594
8ad093db
AR
4595 * keyboard.c (handle_interrupt): Don't call
4596 quit_throw_to_read_char() under NS.
d0a76a6e 4597
8ad093db
AR
4598 * blockinput.h: Remove NS-specific code.
4599
4d18a7a2
DN
46002009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4601
db878925
DN
4602 * dispnew.c (window_change_signal): Don't try to get the size of a
4603 suspended tty frame.
4604 * term.c (Fresume_tty): Resize if the size has changed while the
4605 tty was suspended.
4606
4d18a7a2
DN
4607 * alloc.c (mark_stack): Properly conditionalize previous change.
4608
8984df7c
JB
46092009-01-30 Juanma Barranquero <lekktu@gmail.com>
4610
4611 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4612 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4613 Remove; this code is not used on Windows.
4614
75f4f1ac
EZ
46152009-01-30 Eli Zaretskii <eliz@gnu.org>
4616
4617 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4618 EOLs that also has stray ^M characters.
4619
07a1e794
JB
46202009-01-30 Juanma Barranquero <lekktu@gmail.com>
4621
4622 * atimer.c (run_timers, alarm_signal_handler):
4623 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4624 * w32inevt.c (w32_console_read_socket):
4625 * w32term.c (w32_read_socket):
4626 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4627
a8b11cc9
CY
46282009-01-30 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4631 Initialize it as a relative filename pattern.
4632 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4633 (Fcall_process_region): Simplify temp file creation using
4634 temporary-file-directory.
4635
c279587b
EZ
46362009-01-29 Eli Zaretskii <eliz@gnu.org>
4637
4638 * msdos.c: Rename pending_signals to msdos_pending_signals.
4639 (sig_suspender, sigprocmask): Adjust.
4640
a8fe3242
CY
46412009-01-29 Chong Yidong <cyd@stupidchicken.com>
4642
4643 * keyboard.c (pending_signals): New var.
4644 (poll_for_input, input_available_signal, init_keyboard): Set it.
4645 (process_pending_signals): New function.
4646
4647 * lisp.h (QUIT): Check pending_signals instead of
4648 interrupt_input_pending. Use process_pending_signals.
4649
51d861de 4650 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4651
51d861de 4652 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4653
4654 * sysdep.c (emacs_write): Use process_pending_signals.
4655
4656 * xterm.c (XTread_socket): Update pending_signals.
4657
4658 * w32term.c (w32_read_socket): Update pending_signals.
4659
4660 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4661
6570a1c4
KH
46622009-01-29 Kenichi Handa <handa@m17n.org>
4663
4664 * xftfont.c (xftfont_has_char): New function.
4665 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4666
d72a4afa
AR
46672009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4668
4669 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4670 under GNUstep.
4671 (ns_query_color): New declaration.
4672
4673 * nsterm.m (ns_confirm_quit): New variable.
4674 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4675 (EmacsApp-applicationShouldTerminate:): Use it.
4676 (EmacsPrefsController): Let user set it.
4677 (ns_query_color): New function.
4678 (ns_defined_color): Use it.
4679 (ns_initialize): Drop.
4680 (ns_term_init): Add two lines from ns_initialize(), and set
4681 input_interrupt_mode to nil.
4682
4683 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4684 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4685
9fe78804
KH
46862009-01-28 Kenichi Handa <handa@m17n.org>
4687
4688 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4689 (fontset_get_font_group): Remember that no font-group is specified
4690 for C.
9fe78804 4691
fa57de36
CY
46922009-01-27 Chong Yidong <cyd@stupidchicken.com>
4693
930600e9
CY
4694 * fns.c (concat): Check for string overflow (bug#1787).
4695
fa57de36
CY
4696 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4697 Quadruple undo limits (bug#1501).
4698
7179ce7b
KH
46992009-01-27 Kenichi Handa <handa@m17n.org>
4700
4701 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4702 directly use GT_Get_Char_index.
4703
4704 * xftfont.c (struct xftfont_info): New member `index'.
4705
4706 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4707 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4708
5be8fcc0
CY
47092009-01-26 Kenichi Handa <handa@m17n.org>
4710
4711 * fontset.c (fontset_find_font): Fix handling of non-cons return
4712 value of fontset_get_font_group.
4713 (fontset_font): Revert last change.
4714
19ae3e61
JR
47152009-01-26 Jason Rumney <jasonr@gnu.org>
4716
4717 * w32font.c (w32font_list_internal): Return quickly if registry is
4718 unknown. Simplify final return.
4719 (add_font_entity_to_list): Break complex logic down into more
4720 manageable chunks. Move unknown registry check to
4721 w32font_list_internal.
4722
8612b71a
AR
47232009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4724
4725 Changes to remove Feval calls from GUI under NS.
4726
d8038940
JB
4727 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4728 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4729 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4730
4731 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4732 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4733 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4734 instead of NON_ASCII_KEYSTROKE_EVENT.
4735 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4736 (EmacsApp-applicationShouldTerminate:): Query user.
4737 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4738 instead of Feval.
4739
4740 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4741
4742 * keyboard.c (kbd_buffer_get_event): Check for it.
4743 (keys_of_keyboard): Define lispy keys for
4744 ns-put/unput-working-text.
4745
4746 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4747 versions.
4748 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4749
6288ae55
CY
47502009-01-25 Chong Yidong <cyd@stupidchicken.com>
4751
4752 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4753 setting current_buffer directly. (Bug#2044)
6288ae55 4754
289e7f8f
CY
47552009-01-24 Chong Yidong <cyd@stupidchicken.com>
4756
5ce87308 4757 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4758 any work. (Bug#1952, bug#1990).
5ce87308 4759
64cc3cf6 4760 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4761
b3243e6f
AR
47622009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4763
4764 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4765 (ns_no_defaults): New declaration.
4766 (main): Use it.
e0d2e69a 4767
d900b2af 4768 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4769
d900b2af 4770 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4771
d900b2af
AR
4772 * nsterm.m (ns_no_defaults): New variable.
4773 (ns_initialize): Don't read defaults when ns_no_defaults.
4774 (EmacsView-readSelectionFromPasteboard:)
4775 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4776 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4777 (ns_dumpglyphs_stretch): New function.
4778 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4779 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4780
e0d2e69a
AR
4781 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4782
3ac71f5d
CY
47832009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4784
4785 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4786 call for Sparc64.
4787
3fe53a83
AR
47882009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4789
4790 * nsfns.m:
4791 * nsgui.h:
4792 * nsmenu.m:
4793 * nsselect.m:
4794 * nsterm.h:
4795 * nsterm.m: Remove '23' comments that indicated code added during
4796 update from emacs-20 -> emacs-23.
4797
10f87c6f 47982009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4799
4800 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4801 ns_alternate_modifier. (Bug#1217)
a3b53a85 4802
c7cef62d
AR
4803 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4804 Display all shortcuts, including those w/o super modifier.
4805
575fb8bd
AR
4806 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4807
918b848b
CY
48082009-01-22 Chong Yidong <cyd@stupidchicken.com>
4809
4810 * fileio.c (Vwrite_region_post_annotation_function)
4811 (Vwrite_region_annotation_buffers): New vars.
4812 (build_annotations_unwind): Just reset
4813 Vwrite_region_annotation_buffers.
4814 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4815 Call write-region-post-annotation-function.
4816 (build_annotations): Add to Vwrite_region_annotation_buffers if
4817 buffer changes.
4818
a39e2539
AR
48192009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4820
4821 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4822 Tiger.
51d861de
SM
4823 * nsfns.m (ns_do_applescript):
4824 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4825
35ed44db
AR
48262009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4827
4828 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4829
cbe0b5bf
AR
48302009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4831
4832 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4833
6049d3a0
AR
4834 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4835
4836 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4837 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4838 handle Ctrl-tab. (Bug#1841)
4839 (ns_get_color): Use unsigned long long for scanned hex string value.
4840 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4841 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4842 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4843 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4844 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4845 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4846 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4847
d3810c21 4848 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4849 DPI. (Bug#1316)
d3810c21
AR
4850 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4851 values in onTiger section.
4c7077c3 4852
e301e634
CY
48532009-01-19 Chong Yidong <cyd@stupidchicken.com>
4854
7f82490b
CY
4855 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4856 Check return value of font_spec_from_name.
64cc3cf6 4857 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4858
4859 * font.c (font_spec_from_name): Return Qnil if font name could not
4860 be parsed.
4861 (font_parse_name): Treat a `?' character as part of an XLFD.
4862
e301e634
CY
4863 * fns.c (Fsubstring): Doc fix.
4864
1c0db158
KH
48652009-01-19 Kenichi Handa <handa@m17n.org>
4866
51d861de 4867 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4868 (ftfont_list): Likewise.
4869
acf20901
JB
48702009-01-18 Juanma Barranquero <lekktu@gmail.com>
4871
fff4e459
JB
4872 * dbusbind.c (Fdbus_register_signal):
4873 * process.c (conv_sockaddr_to_lisp):
4874 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4875
acf20901
JB
4876 * callproc.c (Fgetenv_internal): Doc fix.
4877
e7abcdfb
CY
48782009-01-16 Chong Yidong <cyd@stupidchicken.com>
4879
4880 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4881 it is not even used.
4882
b60861e6
GM
48832009-01-16 Glenn Morris <rgm@gnu.org>
4884
4885 * font.c (Ffont_variation_glyphs): Silence compiler.
4886
8db52afe
JB
48872009-01-15 Juanma Barranquero <lekktu@gmail.com>
4888
4889 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4890 Reported by David Robinow <drobinow@gmail.com>.
4891
4cddb209
KH
48922009-01-15 Kenichi Handa <handa@m17n.org>
4893
51d861de 4894 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4895
f247f67b
JR
48962009-01-14 Jason Rumney <jasonr@gnu.org>
4897
4898 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4899 never a fontset. (Bug#1562)
f247f67b 4900
f56a4450
KH
49012009-01-14 Kenichi Handa <handa@m17n.org>
4902
4903 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4904 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4905
4e99855e
CY
49062009-01-13 Chong Yidong <cyd@stupidchicken.com>
4907
4908 * font.c (font_clear_prop): If clearing the family, clear the font
4909 width index too.
4910
fff4e459 4911 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4912
24f01470
JB
49132009-01-12 Juanma Barranquero <lekktu@gmail.com>
4914
4915 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4916 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4917 functions, use sizeof.
4918
a41240a3
MR
49192009-01-12 Martin Rudalics <rudalics@gmx.at>
4920
4921 * keyboard.c (read_char): Fix case where last_nonmenu_event
4922 returned a bad value with submenus. (Bug#447)
4923
944636b8
CY
49242009-01-12 Chong Yidong <cyd@stupidchicken.com>
4925
4926 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4927 family, clear the font width index too.
4928
0dad7c6f
JR
49292009-01-11 Jason Rumney <jasonr@gnu.org>
4930
4931 * keyboard.c (cmd_error_internal): Exit when errors occur before
4932 frame creation and not in daemon mode. (Bug#1836)
4933
7c2363af
CY
49342009-01-10 Chong Yidong <cyd@stupidchicken.com>
4935
4936 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4937 of a display vector, backtrack.
4938 (try_window_reusing_current_matrix): Check glyph type before
4939 referencing charpos member.
4940
97b1b294
EZ
49412009-01-10 Eli Zaretskii <eliz@gnu.org>
4942
4943 Fix Bug #876:
4944
4945 * coding.c (inhibit_null_byte_detection): New variable.
4946 (detect_coding, detect_coding_system): Don't pay attention to null
4947 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4948 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4949 <inhibit-iso-escape-detection>: Doc fix.
4950
4624b6e3
JR
49512009-01-09 Jason Rumney <jasonr@gnu.org>
4952
4953 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4954 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4955 Only report Unicode Plane 2 fonts as unicode-sip.
4956
323b840c
CY
49572009-01-09 Chong Yidong <cyd@stupidchicken.com>
4958
51d861de
SM
4959 * xfaces.c (Fx_font_family_list): Delete function.
4960 Move compatibility version to faces.el.
323b840c 4961
51d861de 4962 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4963
eba7400d
MR
49642009-01-09 Martin Rudalics <rudalics@gmx.at>
4965
4966 * frame.c (x_set_frame_parameters): Remember requested value for
4967 fullscreen before it's reset by the parameter handler.
4968
4b09796d
GM
49692009-01-09 Glenn Morris <rgm@gnu.org>
4970
4971 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4972 (last_command_event): ... and update all users.
4b09796d
GM
4973 (last_input_char): For clarity, rename to...
4974 (last_input_event): ... and update all users.
4975 (last-command-char, last-input-char): Move to subr.el as aliases.
4976 * cmds.c, commands.h: Update for last_command_char rename.
4977
14ccea62
CY
49782009-01-08 Chong Yidong <cyd@stupidchicken.com>
4979
51d861de 4980 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4981
5f004711
JR
49822009-01-08 Jason Rumney <jasonr@gnu.org>
4983
4984 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4985 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4986 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4987 Don't declare.
fff4e459 4988 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4989 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4990
b71f6f73
KH
49912009-01-07 Kenichi Handa <handa@m17n.org>
4992
50b06221 4993 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4994 remember the coding system used for decoding in
50b06221
KH
4995 coding_system (Bug#1039).
4996
b71f6f73 4997 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4998 breaking the loop. (Bug#870)
b71f6f73
KH
4999 (decode_coding_utf_16, decode_coding_emacs_mule)
5000 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5001 (decode_coding_charset): Likewise.
5002
56f668f7
MR
50032009-01-05 Martin Rudalics <rudalics@gmx.at>
5004
5005 * frame.c (x_set_frame_parameters): Make sure height (width) get
5006 applied when fullwidth (fullheight) is set. (Bug#1522)
5007
5da9424d
JB
50082009-01-04 Juanma Barranquero <lekktu@gmail.com>
5009
5010 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5011 (utc_base): Declare as ULONGLONG, not long double.
5012 (convert_time_raw): Delete.
5013 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5014 (initialize_utc_base): New function.
5015 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5016 (convert_from_time_t): Use initialize_utc_base; compute result with
5017 64-bit arithmetic.
5018 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5019
c4605e09
EZ
50202009-01-03 Eli Zaretskii <eliz@gnu.org>
5021
9acef61c 5022 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5023 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5024 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5025 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5026 [!subprocesses]: Define.
5027 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5028 (Flist_system_processes, Fsystem_process_attributes)
5029 [!subprocesses]: Call list_system_processes and
5030 system_process_attributes instead of returning Qnil.
5031
9acef61c
JB
5032 * dosfns.c (system_process_attributes, list_system_processes):
5033 New functions.
c4605e09
EZ
5034
5035 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5036
5037 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5038 Don't use the default (no-op) implementation.
5039
8b7d0a16
JR
50402009-01-03 Jason Rumney <jasonr@gnu.org>
5041
a6d46bc1
JR
5042 * keyboard.c (parse_modifiers_uncached): Wheel events are
5043 clicks (bug#687).
5044
8b7d0a16
JR
5045 * w32term.c (x_query_colors, x_query_color): New functions.
5046
5047 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5048 (svg_load_image): Cast returned pointers from dynamically loaded
5049 functions. Eliminate W32 specific code.
5050
bfe11752
DN
50512009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5052
89e2438a
DN
5053 * nsfns.m (x_set_foreground_color, x_set_background_color)
5054 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5055 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5056 x_ prefix instead of ns_. Update references.
5057 (syms_of_nsfns): Add a FIXME comment.
5058
5059 * nsterm.m (x_set_cursor_type): New prototype.
5060 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5061
bfe11752
DN
5062 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5063 for Solaris instead of incorrectly providing Qutime and Qcutime.
5064
031da700
EZ
50652009-01-02 Eli Zaretskii <eliz@gnu.org>
5066
5067 * w32.c (process_times): Compute sum of utime and stime.
5068 (system_process_attributes): Add Qtime to the alist.
5069
5070 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5071 and add them to the alist.
5072
5073 * process.c (top level) <Qtime, Qctime>: New variables.
5074 (syms_of_process): staticpro them.
5075 (Fsystem_process_attributes): Add their documentation to the doc
5076 string.
5077
5078 * process.h: Declare Qtime and Qctime.
5079
df23bf08
JR
50802009-01-02 Jason Rumney <jasonr@gnu.org>
5081
9acef61c 5082 * image.c (Qgobject): New symbol.
df23bf08
JR
5083 (syms_of_image): Initialize it.
5084 (init_svg_functions): Load some functions from gobject library.
5085
5bbdf7aa
DN
50862009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 * frame.c (make_terminal_frame): Remove redundant code and useless
5089 block.
5090
63136da6
AS
50912009-01-01 Andreas Schwab <schwab@suse.de>
5092
5093 * process.c (conv_sockaddr_to_lisp): Add workaround for
5094 getsockname bug on BSD.
5095
9ef69046
CY
50962009-01-01 Chong Yidong <cyd@stupidchicken.com>
5097
d6fafbe0
CY
5098 * xfns.c (x_create_tip_frame): Set border width of the X window.
5099
51d861de 5100 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5101
f9c34147
JR
51022009-01-01 Jason Rumney <jasonr@gnu.org>
5103
9acef61c 5104 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5105 Don't block input, as per earlier xterm.c changes.
5106
f5497e45
AR
51072008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5108
5109 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5110 (ns_appkit_version_int): New function.
5111 (x-server-version): Use ns_appkit_version_int and follow 21+
5112 convention of returning 3 integers.
5113
c19cab20
KH
51142008-12-30 Kenichi Handa <handa@m17n.org>
5115
5116 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5117 (CHAR_SURROGATE_PAIR_P): New macro.
5118
5119 * font.h (struct font_driver): New member get_variation_glyphs.
5120
9acef61c 5121 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5122 (Ffont_variation_glyphs): New function.
5123 (syms_of_font): Defsubr it.
5124
5125 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5126 ftfont_variation_glyphs.
5127 (setup_otf_gstring): New function.
5128 (ftfont_drive_otf): Use it.
5129 (ftfont_shape_by_flt): Handle variation selector.
5130 (ftfont_variation_glyphs): New function.
5131
28cd591f
MR
51322008-12-30 Martin Rudalics <rudalics@gmx.at>
5133
5134 * frame.c (Vemacs_iconified): Remove.
5135
7f714baf
JR
51362008-12-30 Jason Rumney <jasonr@gnu.org>
5137
5138 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5139 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5140
9d2d22ab
CY
51412008-12-30 Chong Yidong <cyd@stupidchicken.com>
5142
5143 * indent.c (Fvertical_motion): Don't advance iterator if we have
5144 reseated to the desired position.
5145
5146 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5147 checking for pos match.
5148
545312c2
KH
51492008-12-30 Kenichi Handa <handa@m17n.org>
5150
1ede3eb6
KH
5151 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5152 just get the low 8-bit of the code.
5153
545312c2
KH
5154 * font.c (font_intern_prop): Validate str as multibyte.
5155
bd7bbf29
DN
51562008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5157
31e0750e
DN
5158 * dispextern.h (struct face): Move lface and hash from the middle
5159 of bitfields.
5160
bd7bbf29
DN
5161 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5162
b5672e7c
DN
51632008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5164
5165 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5166 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5167 instead of intervals.h.
5168
d704470f
AS
51692008-12-26 Andreas Schwab <schwab@suse.de>
5170
5171 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5172 cons.
5173
54b33868
MR
51742008-12-26 Martin Rudalics <rudalics@gmx.at>
5175
5176 * textprop.c (Qminibuffer_prompt): New variable.
5177 (syms_of_textprop): Initialize it.
5178 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5179 in minibuffer-prompt face. (Bug#1662)
5180
40b615d6
JR
51812008-12-25 Jason Rumney <jasonr@gnu.org>
5182
5183 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5184
baae5c2d
JR
51852008-12-24 Jason Rumney <jasonr@gnu.org>
5186
5187 * ralloc.c (r_alloc_reset_variable): New function.
5188
5189 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5190 record of what points where. (Bug#716)
baae5c2d 5191
a9051c88
DN
51922008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5193
5194 * minibuf.c (read_minibuf): Follow the non-interactive case when
5195 running as a daemon, before detaching.
5196
8b146312
AS
51972008-12-22 Andreas Schwab <schwab@suse.de>
5198
5199 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5200 * gtkutil.c (free_widget_value): Use xfree instead of free.
5201
56f2de10
MR
52022008-12-22 Martin Rudalics <rudalics@gmx.at>
5203
5204 * frame.c (delete_frame): New function derived from
5205 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5206 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5207 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5208 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5209 * frame.h: Extern delete_frame.
5210 * window.c (window_loop):
5211 * terminal.c (delete_terminal):
5212 * xterm.c (x_connection_closed):
5213 * xfns.c (Fx_hide_tip):
9acef61c 5214 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5215
1fc200d6
JR
52162008-12-21 Jason Rumney <jasonr@gnu.org>
5217
5218 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5219 when character maps to .notdef character.
5220
5e252df2
SM
52212008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5222
5223 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5224
99b72cc4
JR
52252008-12-20 Jason Rumney <jasonr@gnu.org>
5226
5227 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5228 a graphical frame on Windows. (Bug#1325)
99b72cc4 5229
acc49a52
JD
52302008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5231
5232 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5233
6ea15123
CY
52342008-12-20 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * minibuf.c (Fread_buffer): Doc fix.
5237
b2dab6c8
JR
52382008-12-20 Jason Rumney <jasonr@gnu.org>
5239
54ea0c87 5240 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5241 server name in UNC paths. (Bug#719)
54ea0c87 5242
b2dab6c8 5243 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5244 charbuf. (Bug#1035)
b2dab6c8 5245
6d1921be
DN
52462008-12-19 Daniel Engeler <engeler@gmail.com>
5247
5248 * sysdep.c (serial_configure): Fix typo.
5249
53934c98
DN
52502008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5251
5252 * sysdep.c: Include alloca.h.
f4f634e8
DN
5253 (system_process_attributes): Add implementation for Solaris.
5254
5255 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5256
06e111a6
DN
52572008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5258
5259 Reorganize implementation of Flist_system_processes and
5260 Fsystem_process_attributes. No functional changes.
5261 * process.c: Don't #include pwd.h, grp.h and limits.h.
5262 (Flist_system_processes): Just call list_system_processes.
5263 (Fsystem_process_attributes): Just call system_process_attributes.
5264 (procfs_list_system_processes, time_from_jiffies)
5265 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5266 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5267
5268 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5269 (list_system_processes): Rename from
5270 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5271 Provide a do nothing implementation.
5272 (system_process_attributes): Rename from
5273 procfs_list_system_processes.
5274 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5275 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5276
5277 * w32.c (list_system_processes): Rename from
5278 w32_list_system_processes.
5279 (system_process_attributes): Rename from
5280 w32_system_process_attributes.
5281
5282 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5283
5284 * process.h (w32_list_system_processes)
5285 (w32_system_process_attributes): Remove.
362654a6
JB
5286 (list_system_processes, system_process_attributes):
5287 New prototypes.
06e111a6 5288
6a705b23
KH
52892008-12-19 Kenichi Handa <handa@m17n.org>
5290
5291 * xfont.c (xfont_decode_coding_xlfd): New function.
5292 (xfont_encode_coding_xlfd): New function.
5293 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5294 (xfont_list): Decode and encode XLFD by iso-8859-1.
5295 (xfont_match): Likewise.
5296 (xfont_list_family): Likewise.
5297 (xfont_open): Likewise.
5298
d66c0241 5299 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5300 names are utf-8.
5301
d66c0241 5302 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5303 names are utf-8.
5304
5a130941
JD
53052008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5306
5307 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5308 changed.
bfd20325
JD
5309 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5310 clicked on a detached tool bar button.
5a130941 5311
fd95644b
DN
53122008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5313
5314 * emacs.c (main): Print and error and exit when no data is read
5315 from the pipe.
5316
e6eee6ae
JR
53172008-12-17 Jason Rumney <jasonr@gnu.org>
5318
5319 * w32font.c (w32font_has_char): Always return -1.
5320
a35dd56b
KH
53212008-12-16 Kenichi Handa <handa@m17n.org>
5322
5323 * font.c (font_open_entity): Fix previous change.
5324
0e3635c2
DN
53252008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5326
5327 * process.c: Include <limits.h>.
5328
d4835507 53292008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5330
5331 * font.c (font_update_drivers): Fix mistake in reconstructing the
5332 driver list.
5333
53342008-12-16 Chong Yidong <cyd@stupidchicken.com>
5335
5336 * font.c (font_clear_cache): Fix format of font cache data.
5337
e2cbc401
CY
53382008-12-15 Chong Yidong <cyd@stupidchicken.com>
5339
5340 * xftfont.c (xftfont_open): Free Xft font pattern if
5341 XftFontOpenPattern fails.
5342
5343 * xterm.c (x_free_frame_resources): Remove extraneous call to
5344 free_frame_faces.
5345
b131d535
CY
53462008-12-13 Chong Yidong <cyd@stupidchicken.com>
5347
5348 * xterm.c (x_delete_display): Move xim_close_dpy call to
5349 x_delete_terminal.
5350 (x_delete_terminal): Call xim_close_dpy.
5351
e6df5336
JR
53522008-12-13 Jason Rumney <jasonr@gnu.org>
5353
5354 * w32font.c (intern_font_name): New function.
5355 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5356 (w32font_open_internal, Fx_select_font): Decode font name.
5357 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5358
5359 * w32font.h (intern_font_name): Declare new function.
5360
5361 * w32uniscribe.c (add_opentype_font_name_to_list):
5362 Use intern_font_name.
5363
20d68145
CY
53642008-12-13 Chong Yidong <cyd@stupidchicken.com>
5365
9f2554de
CY
5366 * frame.c (Fdelete_frame): Call free_font_driver_list.
5367
3d9bec9a
CY
5368 * font.c (free_font_driver_list): Implement missing function.
5369
20d68145
CY
5370 * w32term.c (w32_term_init): Don't initialize the image cache
5371 here; it will be done in init_frame_faces.
5372
5373 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5374 (struct x_display_info): Remove unused member null_pixel. New
5375 member xim_callback_data.
5376
5377 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5378 (xim_initialize): Save pointer to callback function data.
5379 (xim_close_dpy): Free callback function data. Call XCloseIM,
5380 reverting 2008-11-04 change by David Smith.
5381 (x_term_init): Don't initialize the image cache here; it will be
5382 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5383 (x_delete_display): Free x_dnd_atoms member.
5384
96f9306b
KH
53852008-12-13 Kenichi Handa <handa@m17n.org>
5386
6dec9044
JB
5387 * font.c (font_rescale_ratio): Moved from xfaces.c.
5388 Argument type changed. Handle a font-spec too.
96f9306b 5389 (font_score): Check Vface_font_rescale_alist.
6dec9044 5390 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5391
5392 * xfaces.c (font_rescale_ratio): Moved to font.c.
5393
8d5b4964
CY
53942008-12-13 Chong Yidong <cyd@stupidchicken.com>
5395
5396 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5397
e6df5336
JR
53982008-12-12 Jason Rumney <jasonr@gnu.org>
5399
5400 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5401 Vwindow_system_version to the real w32 major version.
5402
97c6058a
DN
54032008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5404
5405 * term.c (init_tty): Move setting the terminal name before the
5406 potential user: maybe_fatal.
5407
ec4e88d7
CY
54082008-12-11 Chong Yidong <cyd@stupidchicken.com>
5409
d4835507
JB
5410 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5411 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5412
b4233ec9
JR
54132008-12-11 Jason Rumney <jasonr@gnu.org>
5414
8ec71e23 5415 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5416 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5417
b4233ec9 5418 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5419 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5420
011a0143
JB
54212008-12-11 Juanma Barranquero <lekktu@gmail.com>
5422
5423 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5424
3c309f34
JB
54252008-12-11 Juanma Barranquero <lekktu@gmail.com>
5426
5427 * process.c (Fsystem_process_attributes, syms_of_process):
5428 Fix typo in name of Ssystem_process_attributes.
5429 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5430
fedc6ab5
JB
54312008-12-11 Juanma Barranquero <lekktu@gmail.com>
5432
5433 * syntax.c (Fmodify_syntax_entry): Doc fix.
5434
ba3de0e8
JB
54352008-12-10 Juanma Barranquero <lekktu@gmail.com>
5436
5437 * font.c (Ffont_spec): Move usage to end of docstring.
5438
174f1c74
JR
54392008-12-10 Jason Rumney <jasonr@gnu.org>
5440
5441 * w32font.c (Qcham): New symbol.
5442 (font_supported_scripts): Add cham, and comments for other new
5443 scripts in bitfield from OpenType spec.
9d32f818
JR
5444 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5445 contain characters beyond the bmp.
174f1c74 5446
7b649478
KH
54472008-12-10 Kenichi Handa <handa@m17n.org>
5448
5449 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5450 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5451 Qunicode_sip.
5452
2133e2d1
JB
54532008-12-10 Juanma Barranquero <lekktu@gmail.com>
5454
5455 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5456 (Fcoding_system_put): Use QCdefault_char.
5457 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5458
9af886ee
CY
54592008-12-09 Chong Yidong <cyd@stupidchicken.com>
5460
74d819eb
CY
5461 * xftfont.c (syms_of_xftfont): Fix typo.
5462
4ccfa1c0 5463 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5464
7c19d3ae
DN
54652008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5466
5467 * emacs.c (main): Close daemon_pipe on exec.
5468
567826bb
CY
54692008-12-08 Chong Yidong <cyd@stupidchicken.com>
5470
5471 * termchar.h (struct tty): New members termcap_term_buffer and
5472 termcap_strings_buffer.
5473
5474 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5475 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5476 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5477 All callers changed.
5478 (init_tty): Store termcap data and string buffers in new struct
5479 tty members termcap_term_buffer and termcap_strings_buffer.
5480 (delete_tty): Free them.
4ccfa1c0 5481 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5482
aa96c42b
SZ
54832008-12-07 Seiji Zenitani <zenitani@mac.com>
5484
5485 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5486 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5487
b7e1d896
CY
54882008-12-06 Chong Yidong <cyd@stupidchicken.com>
5489
5490 * coding.c (make_conversion_work_buffer): Disable buffer
5491 modification hooks in the work buffer.
5492
b5ec91a5
EZ
54932008-12-05 Eli Zaretskii <eliz@gnu.org>
5494
5495 * process.c (procfs_system_process_attributes): If `nread' has a
5496 negative value, assign zero to it.
5497
a5d2a52b
CY
54982008-12-05 Chong Yidong <cyd@stupidchicken.com>
5499
68c5540b 5500 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5501
7bf1bb21
KH
55022008-12-05 Kenichi Handa <handa@m17n.org>
5503
5504 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5505 second character is a combining character.
5506
2fdc7d00
EZ
55072008-12-05 Eli Zaretskii <eliz@gnu.org>
5508
5509 * process.c (procfs_system_process_attributes): Don't use cmd,
5510 cmdsize, and q without initializing them first.
5511
bf6bfba8
JR
55122008-12-04 Jason Rumney <jasonr@gnu.org>
5513
5514 * w32font.c (w32font_draw): Initialize orig_clip before getting
5515 it, and delete it when finished.
5516
a3b1a468
DN
55172008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5518
5519 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5520 case when running as a daemon before detaching.
5521
8b8be8eb
JB
55222008-12-03 Juanma Barranquero <lekktu@gmail.com>
5523
805f2638 5524 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5525
b1bde622
KH
55262008-12-03 Kenichi Handa <handa@m17n.org>
5527
e500c47d
KH
5528 * font.c (font_at): Set `multibyte' at first.
5529
ca516334
KH
5530 * coding.c (decode_coding_charset): Check type of an element of
5531 vector VALIDS.
7bf1bb21 5532 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5533
4ccfa1c0 5534 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5535 (font_for_char): Likewise.
5536
1e5ecd37
CY
55372008-12-03 Chong Yidong <cyd@stupidchicken.com>
5538
d5b01609 5539 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5540 (font_update_lface): Handle fonts with corrupted size specs,
5541 i.e. non-int and non-float.
d5b01609 5542
11e3a6e4 5543 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5544 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5545 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5546
ab06788b
CY
5547 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5548
1e5ecd37 5549 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5550 underline_minimum_offset for underline position.
1e5ecd37 5551
63c125ab
DN
55522008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5553
5554 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5555
5556 * character.c (c_string_width): Specify the type for LEN.
5557
3a8406e1
KH
55582008-12-03 Kenichi Handa <handa@m17n.org>
5559
4ccfa1c0 5560 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5561 (decode_coding_utf_8): Likewise.
4ccfa1c0 5562 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5563 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5564
651df7d9
CY
55652008-12-02 Chong Yidong <cyd@stupidchicken.com>
5566
5567 * keyboard.c (make_lispy_position): Only use PT if the selected
5568 window is current.
5569
1f625c6c
AS
55702008-12-02 Andreas Schwab <schwab@suse.de>
5571
f7741ce9
AS
5572 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5573
1f625c6c
AS
5574 * doprnt.c (doprnt1): Fix size of charbuf.
5575
92bc2678
CY
55762008-12-02 Chong Yidong <cyd@stupidchicken.com>
5577
5578 * keyboard.c (timer_check): Revert last change.
5579
93b9e8cc
JB
55802008-12-02 Juanma Barranquero <lekktu@gmail.com>
5581
5582 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5583
fd7a37d5
JB
55842008-12-01 Juanma Barranquero <lekktu@gmail.com>
5585
5586 * makefile.w32-in: Update dependencies.
5587 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5588
c115043b
AS
55892008-12-01 Andreas Schwab <schwab@suse.de>
5590
5591 * font.c (register_font_driver): Use xmalloc.
5592 (font_put_frame_data): Likewise.
5593
f5668d2a
CY
55942008-12-01 Chong Yidong <cyd@stupidchicken.com>
5595
860d96be
CY
5596 * xfaces.c (realize_x_face): Make abort condition clearer.
5597
f5668d2a
CY
5598 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5599
379c17e7
CY
56002008-11-30 Chong Yidong <cyd@stupidchicken.com>
5601
5602 * keyboard.c (timer_check): After a timer runs, ensure that the
5603 selected window's buffer is current.
5604
35f36d65
JB
56052008-11-30 Juanma Barranquero <lekktu@gmail.com>
5606
f952c61c
JB
5607 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5608 It was accidentally restored by the Unicode merge.
5609
35f36d65
JB
5610 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5611
b23077df
JB
56122008-11-29 Juanma Barranquero <lekktu@gmail.com>
5613
5614 * w32proc.c: Include "coding.h".
5615 (Fw32_short_file_name): Encode filename passed to Windows API.
5616 (Fw32_long_file_name): Encode filename passed to Windows API and
5617 decode back the result. (Bug#1433)
5618
b8ebe9dd
KH
56192008-11-29 Kenichi Handa <handa@m17n.org>
5620
8cc53f96
KH
5621 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5622 not before accessing it.
5623
b8ebe9dd
KH
5624 * charset.c (Fdefine_charset_internal): After calculating
5625 min_char, max_char, and fastmap, copy the charset structure again.
5626 (encode_char): Fix the previous change.
5627
59bc82c0
SZ
56282008-11-28 Seiji Zenitani <zenitani@mac.com>
5629
5630 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5631
5632 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5633
5634 * nsterm.m (x_set_frame_alpha): New function.
5635
32247e3d
EZ
56362008-11-27 Eli Zaretskii <eliz@gnu.org>
5637
5638 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5639
b003e5ff
JB
56402008-11-27 Juanma Barranquero <lekktu@gmail.com>
5641
5642 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5643 pointer to check_face_name.
5644
708550f5
KH
56452008-11-27 Kenichi Handa <handa@m17n.org>
5646
5647 * category.h (SET_CATEGORY_SET): Call set_category_set.
5648 (set_category_set): Extern it.
5649
5650 * category.c (hash_get_category_set): New function.
5651 (Fmodify_category_entry): Adjusted for the change of
5652 char_table_ref_and_range. Call hash_get_category_set to get a
5653 category set to store in the table.
5654
5655 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5656 Funify_charset.
5657
2ae37cf0 5658 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5659 (DECODE_CHAR): Check if the decoder vector is ready.
5660 (ENCODE_CHAR): Check if the encoder char-table is ready.
5661 (maybe_unify_char): Extern it.
5662
5663 * charset.c (Vchar_unified_charset_table): Delete it.
5664 (inhibit_load_charset_map): New variable.
5665 (temp_charset_work): New variable.
5666 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5667 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5668 New macros.
5669 (load_charset_map): Meaning of control_flag changed. If
5670 inhibit_load_charset_map is nonzero, setup a table in
5671 temp_charset_work.
5672 (load_charset): New argument control_flag.
5673 (map_charset_for_dump): New function.
5674 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5675 map_charset_for_dump.
5676 (Fdefine_charset_internal): If the charset method is MAP, load
5677 mapping tables by calling load_charset.
5678 (Funify_charset): Don't load a mapping table but directly set
5679 Vchar_unify_table.
5680 (maybe_unify_char): New function.
5681 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5682 Handle the case of inhibit_load_charset_map being nonzero.
5683 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5684 Handle the case of inhibit_load_charset_map being nonzero.
5685 (Fclear_charset_maps): Just free temp_charset_work.
5686 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5687 variable.
5688
5689 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5690 change of char_table_ref_and_range.
5691 (char_table_ref_and_range): Change the meaning of argument FROM
5692 and TO. Now the caller must provide initial values for *FROM
5693 and *TO.
5694
5695 * fontset.c (fontset_add): Adjusted for the change of
5696 char_table_ref_and_range.
5697 (fontset_get_font_group): Likewise.
5698 (Ffontset_info): Likewise.
5699
5700 * keymap.c (describe_vector): Adjusted for the change of
5701 char_table_ref_and_range. For char-table, put boundary between
5702 non-ASCII and 8-bit characters.
5703
5704 * print.c (print_object): For bool-vector, delete unnecessary
5705 check of ASCII_BYTE_P.
5706
9196133b
JR
57072008-11-26 Jason Rumney <jasonr@gnu.org>
5708
5709 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5710 leading in font height. (Bug#879)
9196133b 5711
9f688acf
GM
57122008-11-26 Glenn Morris <rgm@gnu.org>
5713
5714 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5715 redefinition with ifdef. (Bug#1383)
5716
90d19aff
AR
57172008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5718
5719 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5720
4ccfa1c0 57212008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5722
5723 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5724 New EmacsView methods.
5725 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5726 Fixes bug #1048,1357,1414.
5727
57282008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5729
5730 Fix bug #1362.
5731 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5732 is not an indexed color.
5733 * nsterm.m (free_indexed_color): Add argument checking.
5734 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5735
e7d5ecb3
CY
57362008-11-24 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5739 Document confirm-after-completion value for
5740 minibuffer-completion-confirm.
5741
c285743c
JR
57422008-11-24 Jason Rumney <jasonr@gnu.org>
5743
5744 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5745 warning.
5746
b0857706
JR
57472008-11-23 Jason Rumney <jasonr@gnu.org>
5748
5749 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5750 restored before returning.
5751
5752 * w32font.c (check_face_name): New function.
5753 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5754 fonts. (Bug#642)
b0857706 5755
ee50ff07
MR
57562008-11-22 Martin Rudalics <rudalics@gmx.at>
5757
5758 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5759 confirm-nonexistent-file-or-buffer in doc-string.
5760
b8ff72fa
SM
57612008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5762
5763 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5764 Fix copy/paste typo. Add checks.
5765
cee53ed4
KH
57662008-11-21 Kenichi Handa <handa@m17n.org>
5767
5768 * coding.c (detect_coding_iso_2022): Reject invalid composition
5769 sequence.
5770 (DECODE_COMPOSITION_START): If the current source is the last
5771 block, and the current composition doesn't end, regard this
5772 sequence as invalid.
5773 (decode_coding_iso_2022): Handle invalid composition sequence.
5774
f6ef1e65
MR
57752008-11-20 Martin Rudalics <rudalics@gmx.at>
5776
5777 * window.c (coordinates_in_window): Don't return
5778 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5779 line when the window is not the rightmost one. (Bug#1372)
5780
e08b1705
MR
57812008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5782
5783 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5784
ad98e89f
EZ
57852008-11-15 Eli Zaretskii <eliz@gnu.org>
5786
5787 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5788 and bright_bg if noninteractive is non-zero.
5789
fb098a4b
CY
57902008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5791
5792 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5793 x_draw_glyph_string_background.
5794
5795 * w32term.c (x_draw_glyph_string): Likewise.
5796
ce952b6e
CY
57972008-11-15 Chong Yidong <cyd@stupidchicken.com>
5798
5799 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5800 the next glyph string once past the overhang width.
5801
5802 * nsterm.m (ns_draw_glyph_string): Likewise.
5803
5804 * w32term.c (x_draw_glyph_string): Likewise.
5805
26ea7079
CY
58062008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5807
5808 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5809 double file close.
5810
1c33c906
MR
58112008-11-14 Martin Rudalics <rudalics@gmx.at>
5812
5813 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5814 dedicated status of window before attempting to display another
5815 buffer in it.
5816
8fc29035
JB
58172008-11-14 Juanma Barranquero <lekktu@gmail.com>
5818
5819 * msdos.c (Fmsdos_long_file_names):
5820 (syms_of_msdos) <dos-unsupported-char-glyph>:
5821 * dosfns.c (Fint86): Fix typos in docstrings.
5822
55fb4286
EZ
58232008-11-14 Eli Zaretskii <eliz@gnu.org>
5824
5825 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5826
3fda0315
KY
58272008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5828
5829 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5830
7e849c17
CY
58312008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5832
5833 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5834
5835 * frame.h: Negative alpha means "don't touch".
5836
5837 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5838
5839 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5840
b9fd67bd
DN
58412008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5842
5843 * hftctl.c:
5844 * chpdef.h:
5845 * acldef.h: Remove files used only for systems no longer supported.
5846
5847 * Makefile.in: Fix .o alphabetical ordering.
5848 (hftctl.o): Remove dependency, file removed.
5849 (keymap.o, print.o): Depend on charset.h.
5850
d5998e03
KH
58512008-11-10 Kenichi Handa <handa@m17n.org>
5852
2ae37cf0 5853 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5854
be70e183
CY
58552008-11-08 Chong Yidong <cyd@stupidchicken.com>
5856
5857 * dired.c (file_name_completion): If completion_ignore_case is
5858 enabled, ignore case when checking completion-regexp-list.
5859
7cf94eac
EZ
58602008-11-08 Eli Zaretskii <eliz@gnu.org>
5861
5862 * vm-limit.c (get_lim_data): Fix last change.
5863
ee107a89
KH
58642008-11-08 Kenichi Handa <handa@m17n.org>
5865
5866 * character.c (Fget_byte): New function.
5867 (syms_of_character): Defsubr Fget_byte.
5868
5fd15622
CY
58692008-11-07 Chong Yidong <cyd@stupidchicken.com>
5870
5871 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5872 cursor position is valid after scrolling.
5873
13d62fad
JB
58742008-11-06 Juanma Barranquero <lekktu@gmail.com>
5875
5876 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5877
a1dd2936
GM
58782008-11-06 Glenn Morris <rgm@gnu.org>
5879
5880 * xterm.c (handle_one_xevent): Don't let popup menus cause
5881 mouse-autoselect-window related window switching. (Bug#1261)
5882
860cd236
CY
58832008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5884
5885 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5886
653a3150
AS
58872008-11-04 Andreas Schwab <schwab@suse.de>
5888
5889 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5890
870f5cac
CY
58912008-11-03 Chong Yidong <cyd@stupidchicken.com>
5892
5893 * xfns.c (Fx_wm_set_size_hint): New function.
5894
1e02f3cb
MR
58952008-11-03 Martin Rudalics <rudalics@gmx.at>
5896
5897 * textprop.c (Fprevious_single_char_property_change): Return 0
5898 when there's no change in a string. (Bug#1301)
5899
e630dfc6
MR
59002008-11-02 Martin Rudalics <rudalics@gmx.at>
5901
5902 * frame.c (do_switch_frame): New argument NORECORD passed to
5903 Fselect_window.
5904 (Fselect_frame): New argument NORECORD passed to
5905 do_switch_frame.
5906 (Fset_frame_selected_window): New argument NORECORD passed to
5907 Fselect_frame.
5908 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5909 in call of do_switch_frame.
5910 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5911 Handle NORECORD argument in call of Fselect_frame.
5912 * lisp.h (do_switch_frame, Fselect_frame)
5913 (Fset_frame_selected_window): Adjust declarations.
5914 * window.c (select_frame_norecord): New function.
5915 (run_window_configuration_change_hook): Use it and call
5916 Fselect_frame with NORECORD set.
5917 (Fselect_window): Pass NORECORD to Fselect_frame.
5918 (Fset_window_configuration): Handle NORECORD argument in call of
5919 do_switch_frame.
5920 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5921 Fset_frame_selected_window.
5922 * keyboard.c (command_loop_1): Handle NORECORD in call of
5923 Fselect_frame (currently ifdefd).
5924
9020b223
GM
59252008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5926
5927 * emacs.c (USAGE2): Untabify.
5928
793ffee8
SM
59292008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5930
5931 * composite.c (fill_gstring_header): Fix copy/paste typo.
5932
ab6d1131
MR
59332008-10-31 Martin Rudalics <rudalics@gmx.at>
5934
5935 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5936 (Fother_window): Rename argument and rewrite doc-string.
5937 (select_window_norecord): Fix return value. (Bug#1276)
5938
601a9cf1
JB
59392008-10-30 Juanma Barranquero <lekktu@gmail.com>
5940
5941 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5942 new frames overriding foreground for tooltips. Based on similar patch
5943 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5944
813b0652
CY
59452008-10-29 Chong Yidong <cyd@stupidchicken.com>
5946
5947 * emacs.c (Fdaemon_initialized): Initialize nfd.
5948
4414f58f
MR
59492008-10-29 Martin Rudalics <rudalics@gmx.at>
5950
5951 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5952 (Fwindow_text_height): Clarify doc-strings.
5953 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5954 doc-string of window-scroll-functions.
5955
ecdcaa09
RS
59562008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5957
5958 * category.c (syms_of_category): Fix typo in docstring.
5959
23fe745a
JB
59602008-10-28 Juanma Barranquero <lekktu@gmail.com>
5961
5962 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5963 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5964 Fix typos in docstrings.
5965
ff808935
DN
59662008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5967
5968 * emacs.c (daemon_pipe): Make non-static.
5969 (IS_DAEMON): Move definition ...
5970 * lisp.h (IS_DAEMON): ... here.
5971 (daemon_pipe): Declare.
5972 (is_daemon): Remove.
5973 * dispnew.c (init_display): Use IS_DAEMON.
5974
fc012771
SM
59752008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5976
5977 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5978 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5979
5980 * emacs.c (is_daemon): Remove.
5981 (main): Don't set is_daemon.
5982 (IS_DAEMON): New macro.
5983 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5984 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5985 parent exits.
5986 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5987
d8bdbe6f
CY
59882008-10-27 Chong Yidong <cyd@stupidchicken.com>
5989
d1a072bf
CY
5990 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5991 over-sized glyph, draw it with the default glyph width.
5992
e2e325aa
CY
5993 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5994 glyph, draw it with the default glyph width.
5995
5996 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5997 glyph, draw it with the default glyph width.
5998
d8bdbe6f
CY
5999 * xdisp.c (try_scrolling): When computing the distance from the
6000 scroll margin to PT, try moving some distance past the window
6001 bottom before giving up.
6002
7bfac547
MR
60032008-10-27 Martin Rudalics <rudalics@gmx.at>
6004
6005 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6006 (Fset_window_buffer): Explain in doc-string that a window can be
6007 "strongly" dedicated to its buffer.
6008
4ff029f6
DN
60092008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6010
6011 * emacs.c (daemon_name): New variable.
6012 (main): Deal with --daemon=SERVER_NAME.
6013 (Fdaemonp): Return a name if one was passed to --daemon.
6014
5790ef40
DN
60152008-10-26 Romain Francoise <romain@orebokech.com>
6016
f9bd0df9 6017 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6018 (main): Create a pipe before forking, make the parent exit only after
6019 the child has closed its end of the pipe. Move closing the
6020 descriptors ...
6021 (Fdaemon_initialized): ... here. New function.
6022
f5385255
SM
60232008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6024
4d632321
SM
6025 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6026 the previous unoptimized table.
6027
f5385255
SM
6028 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6029 the distinction between non-nil and non-t value of `dedicated'.
6030
6c56a0f3
CY
60312008-10-25 Chong Yidong <cyd@stupidchicken.com>
6032
6033 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6034 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6035
fec89261
MR
60362008-10-25 Martin Rudalics <rudalics@gmx.at>
6037
6038 * window.c (Fget_buffer_window, Fdelete_windows_on)
6039 (Freplace_buffer_in_windows): Make buffer argument optional and
6040 rename to buffer_or_name.
6041
34fcddd0
CY
60422008-10-24 Chong Yidong <cyd@stupidchicken.com>
6043
f5385255
SM
6044 * xdisp.c (handle_single_display_spec, handle_display_prop):
6045 Undo 2005-05-16 change.
34fcddd0
CY
6046 (handle_stop): Pop iterator if it's loaded with an empty string.
6047 (get_overlay_strings_1): Don't save iterator if it's loaded with
6048 an empty string (bug#1201).
6049
064766f2
KH
60502008-10-24 Kenichi Handa <handa@m17n.org>
6051
6052 * ftfont.c (ftfont_otf_features): Fix previous change.
6053 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6054 calling ftfont_otf_features.
6055
f9bd0df9 60562008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6057
6058 * font.c (font_match_p): Fix for the case that a vector of
6059 characters is in script-representative-chars.
6060
1dae9197
MA
60612008-10-24 Michael Albinus <michael.albinus@gmx.de>
6062
6063 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6064 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6065 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6066 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6067 macro. (Bug#1186)
1dae9197 6068
f9bd0df9 60692008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6070
6071 * s/sol2-10.h: New file.
6072
878a4584
JB
60732008-10-23 Juanma Barranquero <lekktu@gmail.com>
6074
6075 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6076 poor beast has survived 9+ years and the jump from xterm.c!).
6077
cd265ca6
MR
60782008-10-23 Martin Rudalics <rudalics@gmx.at>
6079
6080 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6081 Reword doc-string.
f5385255 6082 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6083
472a4dc9
JB
60842008-10-23 Juanma Barranquero <lekktu@gmail.com>
6085
6086 * character.c (syms_of_character) <script-representative-chars>:
6087 <unicode-category-table>: Doc fixes.
6088
159bd5a2
NF
60892008-10-23 Noah Friedman <friedman@splode.com>
6090
6091 * coding.c (make_conversion_work_buffer): Check that
6092 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6093 Fget_buffer_create.
6094
49f9c344
KH
60952008-10-23 Kenichi Handa <handa@m17n.org>
6096
6097 * font.c (font_add_log): Check the values of extra properties.
6098
12bb3111
MR
60992008-10-22 Martin Rudalics <rudalics@gmx.at>
6100
6101 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6102 Reword doc-string.
6103 (Fset_window_parameter): Use NILP.
6104 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6105 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6106
bbeb4e99
JB
61072008-10-22 Juanma Barranquero <lekktu@gmail.com>
6108
6109 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6110
61112008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6112
6113 * nsfns.m (ns_appkit_version): New function.
6114 (x-server-version): Use it.
6115 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6116 (x-server-vendor): Don't check_ns().
6117
6118 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6119
a9b555d3
JB
61202008-10-22 Juanma Barranquero <lekktu@gmail.com>
6121
6122 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6123 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6124
4626499f
KH
61252008-10-22 Kenichi Handa <handa@m17n.org>
6126
e3681952
KH
6127 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6128 scripts.
6129
4626499f
KH
6130 * category.c (word_boundary_p): Check scripts instead of charset.
6131 Handle nil value in word-separating-categories and
6132 word-combining-categories.
6133 (syms_of_category): Fix docstrings of word-separating-categories
6134 and word-combining-categories.
6135
1560f91a
EZ
61362008-10-21 Eli Zaretskii <eliz@gnu.org>
6137
6138 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6139 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6140
f4668441
MR
61412008-10-21 Martin Rudalics <rudalics@gmx.at>
6142
6143 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6144 Rename arg "buffer" to "buffer_or_name".
6145 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6146 it optional.
6147 (no_switch_window): Remove since the return value is not used.
a9b555d3 6148 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6149 Consider window as dedicated when Fwindow_dedicated_p returns a
6150 non-nil value.
6151 * lisp.h: Remove prototype for no_switch_window.
6152
fd75ddb2
JD
61532008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6154
6155 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6156 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6157
07295713
KH
61582008-10-21 Kenichi Handa <handa@m17n.org>
6159
6160 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6161 check Vlatin_extra_code_table.
6162
712adc82
EZ
61632008-10-20 Eli Zaretskii <eliz@gnu.org>
6164
6165 * fileio.c (Fset_file_modes): Doc fix.
6166
f549eb0b
MA
61672008-10-19 Michael Albinus <michael.albinus@gmx.de>
6168
6169 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6170 in arrays.
6171
aac0c6e3
MR
61722008-10-19 Martin Rudalics <rudalics@gmx.at>
6173
6174 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6175 Mention kill-buffer in doc-string.
6176 (Fset_window_buffer): Reinsert tem check removed in last commit.
6177 (Fenlarge_window, Fshrink_window): Have argument names and
6178 doc-string follow Elisp manual more closely.
6179
61802008-10-18 Eli Zaretskii <eliz@gnu.org>
6181
6182 * fileio.c (Fset_file_modes): Doc fix.
6183
61842008-10-18 Martin Rudalics <rudalics@gmx.at>
6185
6186 * window.c (Fwindow_width, Fset_window_start)
6187 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6188 (Fdelete_windows_on, Freplace_buffer_in_windows):
6189 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6190 (Fwindow_dedicated_p): Make window argument optional.
6191 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6192 (Fset_window_buffer): Respect any non-nil dedicated value for
6193 window. Rename "buffer" argument to "buffer_or_name".
6194
61952008-10-18 Ulrich Mueller <ulm@gentoo.org>
6196
6197 * m/sh3.h: New file, machine description for SuperH.
6198
61992008-10-17 Martin Rudalics <rudalics@gmx.at>
6200
6201 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6202
62032008-10-17 Kenichi Handa <handa@m17n.org>
6204
6205 * ftfont.c (ftfont_otf_features): Fix indexing
6206 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6207
62082008-10-16 Magnus Henoch <mange@freemail.hu>
6209
6210 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6211 (Fdbus_call_method_asynchronously): Ditto.
6212 This change makes C-h f display the argument list.
6213
62142008-10-16 Chong Yidong <cyd@stupidchicken.com>
6215
6216 * fileio.c (Fexpand_file_name): Doc fix.
6217
6218 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6219 of :foreground and :background equivalent to unspecified (20.x
6220 compatibility).
6221
62222008-10-15 Eli Zaretskii <eliz@gnu.org>
6223
6224 * buffer.c (syms_of_buffer): Doc fix.
6225
62262008-10-14 Kenichi Handa <handa@m17n.org>
6227
6228 * font.c (font_clear_prop): When clearing font width, clear the
6229 average width field too.
6230
62312008-10-12 Andreas Schwab <schwab@suse.de>
6232
6233 * ftfont.c (ftfont_shape_by_flt): Make static.
6234 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6235
6236 * font.c: Don't include <m17n-flt.h>.
6237
62382008-10-10 Eli Zaretskii <eliz@gnu.org>
6239
6240 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6241
62422008-10-09 Eli Zaretskii <eliz@gnu.org>
6243
6244 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6245 away code.
6246
62472008-10-09 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * dispnew.c (update_text_area): Avoid looping due to large glyph
6250 overhangs (bug#1070).
6251
62522008-10-09 Kenichi Handa <handa@m17n.org>
6253
6254 * fontset.c (face_for_char): If face->fontset is negative, just
6255 return ascii_face.
6256
f5385255
SM
6257 * font.c (font_delete_unmatched): Fix previous change.
6258 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6259
62602008-10-09 Martin Rudalics <rudalics@gmx.at>
6261
6262 * frame.c (Fraise_frame): On text-only terminals select frame in
6263 order to make it visible. (Bug#1061)
6264
62652008-10-08 Chong Yidong <cyd@stupidchicken.com>
6266
6267 * fontset.c (fontset_find_font): Check frame validity.
6268
62692008-10-07 Chong Yidong <cyd@stupidchicken.com>
6270
a9b555d3 6271 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6272 (xg_display_close): Allow Emacs to close all displays (bug#985).
6273
62742008-10-06 Andreas Schwab <schwab@suse.de>
6275
f5385255 6276 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6277
62782008-10-06 Chong Yidong <cyd@stupidchicken.com>
6279
f5385255 6280 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6281
a9b555d3 6282 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6283
6284 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6285 during initialization.
6286
62872008-10-04 Eli Zaretskii <eliz@gnu.org>
6288
6289 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6290 whole thing on MSDOS frames as well as on a TTY.
6291
6292 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6293 well as for TTY.
6294 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6295 well as on a TTY.
6296
6297 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6298 as well as for TTY.
6299
6300 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6301
6302 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6303 MSDOS frames as well.
6304
63052008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6306
6307 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6308 correct arguments.
b71ac3dd 6309 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6310
63112008-10-03 Glenn Morris <rgm@gnu.org>
6312
6313 * emacs.c (USAGE1): Add --daemon.
6314
63152008-10-02 Eli Zaretskii <eliz@gnu.org>
6316
6317 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6318 100, so it's in percents as advertised.
6319
63202008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6321
6322 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6323 (ns_output.current_cursor, ns_output.desired_cursor)
6324 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6325 (FRAME_NEW_CURSOR_COLOR): Remove.
6326
6327 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6328 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6329 enumeration (HOLLOW_BOX_CURSOR, etc.).
6330
6331 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6332 (draw_window_cursor): Simplify code.
f5385255
SM
6333 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6334 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6335 updates manually.
a9b555d3
JB
6336 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6337 Use core Emacs cursor types.
aac0c6e3 6338
b8ff72fa 6339 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6340
63412008-10-02 Martin Rudalics <rudalics@gmx.at>
6342
6343 * process.c (Faccept_process_output): Fix doc-string.
6344
63452008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6346
6347 * gmalloc.c (__sbrk): Also define for uClibc.
6348
6349 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6350 for uClibc.
6351
63522008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6353
6354 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6355 styles.
6356 (nsfont_open): Reenable the cache.
6357
63582008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6359
6360 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6361 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6362
63632008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6364
6365 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6366 a suspended terminal.
6367
63682008-09-30 Michael Albinus <michael.albinus@gmx.de>
6369
6370 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6371
63722008-09-30 Eli Zaretskii <eliz@gnu.org>
6373
6374 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6375
63762008-09-30 Chong Yidong <cyd@stupidchicken.com>
6377
6378 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6379 in a continued line coincides with a line beginning.
6380
63812008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6382
6383 * nsfont.m (nsfont_trait_distance): Fix bug.
6384 (nsfont_list): Return a list rather than a vector (syncs with Handa
6385 changes of 2008-05-14).
6386 (nsfont_open): Improve logging.
6387
63882008-09-29 Andreas Schwab <schwab@suse.de>
6389
6390 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6391
63922008-09-28 Martin Rudalics <rudalics@gmx.at>
6393
6394 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6395 name as char-resolve-modifiers.
6396 Reported by: Markus Triska <markus.triska@gmx.at>
6397
63982008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6399
6400 * dispnew.c (init_display): Return earlier when running as a daemon.
6401
64022008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6403
6404 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6405
64062008-09-27 Eli Zaretskii <eliz@gnu.org>
6407
6408 * composite.c (Fcomposition_get_gstring)
6409 (Fcompose_region_internal, Fcompose_string_internal)
6410 (Ffind_composition_internal): Doc fix.
6411 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6412 (syms_of_composite) <auto-composition-function>: Doc fix.
6413 (syms_of_composite) <composition-function-table>: Doc fix.
6414
64152008-09-25 Chong Yidong <cyd@stupidchicken.com>
6416
6417 * search.c (wordify): New argument for lax word-ends.
6418 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6419
64202008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6421
6422 * lisp.h (is_daemon): Declare.
6423 * dispnew.c (init_display): Do not try to initialize the terminal
6424 when running as a daemon.
6425
64262008-09-22 Chong Yidong <cyd@stupidchicken.com>
6427
6428 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6429 x_display_pixel_height.
6430
64312008-09-22 Martin Rudalics <rudalics@gmx.at>
6432
6433 * undo.c (record_point): Don't call Fundo_boundary for first
6434 change. (Bug#731)
6435
64362008-09-22 Juanma Barranquero <lekktu@gmail.com>
6437
6438 * emacs.c (Fdaemonp): Doc fix.
6439
64402008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6441
6442 * emacs.c (main): Place #ifdef in the proper place.
6443
64442008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6445
6446 * emacs.c (standard_args): Add --daemon.
6447 (main): Disconnect from the terminal when --daemon is passed.
6448 (is_daemon): New variable.
6449 (Fdaemonp): New function.
6450 (syms_of_emacs): Defsubr it.
6451
64522008-09-20 Chong Yidong <cyd@stupidchicken.com>
6453
6454 * xdisp.c (get_next_display_element): Handle string display
6455 correctly when checking for the end of a box run.
6456
64572008-09-20 Glenn Morris <rgm@gnu.org>
6458
6459 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6460 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6461 (Frename_file): Avoid copying to trash if a rename involves
6462 a delete. (Bug#964).
6463
64642008-09-20 Eli Zaretskii <eliz@gnu.org>
6465
6466 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6467 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6468 frames as well as termcap frames.
6469 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6470 get_named_tty.
6471
64722008-09-19 Eli Zaretskii <eliz@gnu.org>
6473
6474 * process.c (procfs_system_process_attributes): Fix cmdline in
6475 case /proc/PID/cmdline is empty.
6476
6477 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6478 x_display_pixel_height.
6479
64802008-09-19 Juanma Barranquero <lekktu@gmail.com>
6481
6482 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6483
6484 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6485 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6486
64872008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6488
6489 * dispextern.h (struct it): Move line_wrap away from the middle of
6490 bitfields. Move voffset in struct iterator_stack_entry after the
6491 bitfields. Move tab_width near after another short.
6492
64932008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6494
6495 * frame.h (struct frame): Move alpha from the middle of bitfields.
6496
6497 * window.h (struct window): Move frozen_window_start_p after the
6498 rest of the bitfields to reduce padding.
6499
65002008-09-18 Chong Yidong <cyd@stupidchicken.com>
6501
6502 * xterm.h (x_display_info): Remove `height' and `width' members.
6503
6504 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6505
6506 * w32term.h (w32_display_info): Remove `height', `width',
6507 `height_in', and `width_in' members.
6508
b8ff72fa
SM
6509 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6510 New functions.
aac0c6e3
MR
6511 (x_calc_absolute_position): Use them.
6512 (x_term_init): Omit removed `height' and `width' members.
6513
b8ff72fa
SM
6514 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6515 New functions.
aac0c6e3
MR
6516 (w32_read_socket, x_calc_absolute_position): Use them.
6517 (w32_initialize_display_info, w32_term_init): Omit removed members
6518 of w32_display_info.
6519
b8ff72fa
SM
6520 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6521 New functions.
6522 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6523
b8ff72fa
SM
6524 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6525 New functions.
aac0c6e3
MR
6526 (x_calc_absolute_position): Use them.
6527 (x_term_init): Omit removed `height' and `width' members.
6528
6529 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6530 (compute_tip_xy):
6531 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6532 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6533 x_display_pixel_width.
6534
65352008-09-18 Kenichi Handa <handa@m17n.org>
6536
6537 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6538 (composition_compute_stop_pos): Fix handling of static composition.
6539 (Fcomposition_get_gstring): Check FROM and TO at first.
6540
65412008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6542
46e722a9 6543 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6544 mixup (YAILOM).
6545
65462008-09-17 Chong Yidong <cyd@stupidchicken.com>
6547
6548 * indent.c (Fvertical_motion): Use position reported by iterator
6549 instead of PT for determining screen motion (bug#943).
6550
65512008-09-17 Romain Francoise <romain@orebokech.com>
6552
6553 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6554
65552008-09-17 Kenichi Handa <handa@m17n.org>
6556
6557 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6558
6559 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6560 if necessary.
6561
65622008-09-16 Kenichi Handa <handa@m17n.org>
6563
6564 * coding.c (make_conversion_work_buffer): Avoid calling
6565 Fget_buffer_create if it is not necessary.
6566
65672008-09-15 Martin Rudalics <rudalics@gmx.at>
6568
6569 * window.c (Fselect_window): Don't update window_select_count and
6570 use_time when norecord is not nil.
6571
65722008-09-14 Kenichi Handa <handa@m17n.org>
6573
6574 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6575 specpdl_ptr.
6576
65772008-09-12 Kenichi Handa <handa@m17n.org>
6578
6579 * indent.c (scan_for_column): Don't handle automatic composition
6580 if the current buffer is not associated with a window.
6581
6582 * composite.c (composition_reseat_it): If the current buffer is
6583 not associated with a window, ignore the automatic composition.
6584 (find_automatic_composition): Likewise.
6585
65862008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6587
6588 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6589 (Fgpm_mouse_stop): Use it.
6590 * termhooks.h (close_gpm): Declare.
6591 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6592 connection if Gpm_GetEvent fails.
6593
6594 * window.c (set_window_buffer): Always preserve current-buffer.
6595
65962008-09-12 Glenn Morris <rgm@gnu.org>
6597
6598 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6599
66002008-09-11 Glenn Morris <rgm@gnu.org>
6601
6602 * charset.c (charset-map-path): Doc fix.
6603
66042008-09-10 Kenichi Handa <handa@m17n.org>
6605
6606 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6607
6608 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6609 compose a grapheme cluster with the preceding base glyph.
6610
6611 * composite.c (composition_compute_stop_pos): Fix previous change.
6612 Reset cmp_it->id to -1 at first.
6613
66142008-09-10 Glenn Morris <rgm@gnu.org>
6615
6616 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6617
66182008-09-09 Chong Yidong <cyd@stupidchicken.com>
6619
6620 * keyboard.c (read_key_sequence): Reapply translation maps when
6621 switching keyboards.
6622
66232008-09-09 Kenichi Handa <handa@m17n.org>
6624
6625 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6626 characters.
6627
6628 * composite.c (FORWARD_CHAR): Fix calculation
6629 of (POSITION).pos_byte.
6630 (composition_compute_stop_pos): Limit the search of composition to
6631 at most 500 characters ahead. If we reach the limit or find a
6632 newline, set cmp_it->ch to -2 and return 0.
6633 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6634
66352008-09-08 Kenichi Handa <handa@m17n.org>
6636
6637 * indent.c (Fvertical_motion): Be sure to set
6638 it_overshoot_expected if it.cmp_it.id is non-negative.
6639
66402008-09-07 Andreas Schwab <schwab@suse.de>
6641
6642 * callproc.c (Fcall_process): Don't hold references to string data
6643 across garbage collection. Move initialisation of new_argv down
6644 to avoid compiler bug.
6645
66462008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6647
6648 * process.c (Fsystem_process_attributes): Doc fix.
6649
66502008-09-07 Chong Yidong <cyd@stupidchicken.com>
6651
6652 * callproc.c (Fcall_process): Canonicalize current directory name.
6653
6654 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6655 iterator advances to the next line if the current line ends in a
6656 continued tab.
6657
66582008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6659
6660 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6661 member to point to cmp_from.
6662
6663 * xdisp.c: Doc fix for references to gidx data member.
6664
66652008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6666
6667 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6668
66692008-09-07 Kenichi Handa <handa@m17n.org>
6670
6671 * composite.c (FORWARD_CHAR): Check STOP after
6672 incrementing (POSITION).pos.
6673
66742008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6675
6676 * process.c (Fsystem_process_attributes): Doc fix.
6677
66782008-09-06 Chong Yidong <cyd@stupidchicken.com>
6679
6680 * keyboard.c (Ftop_level): Doc fix.
6681
66822008-09-06 Eli Zaretskii <eliz@gnu.org>
6683
6684 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6685 minibuffer, don't let lower part of menu invade the echo area.
6686
6687 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6688 "char *q" to access menu text and advance through it. Revert the
6689 change that displayed ">" instead of ASCII character 0x10.
6690
66912008-09-05 Eli Zaretskii <eliz@gnu.org>
6692
6693 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6694 toggle boxes and radio buttons on MS-DOS as well.
6695
66962008-09-05 Kenichi Handa <handa@m17n.org>
6697
6698 * composite.c (autocmp_chars): Check lookback count.
6699 (composition_compute_stop_pos): Set cmp_it->lookback.
6700 (composition_reseat_it): Check lookback count.
6701 (struct position_record): New struct.
6702 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6703 (find_automatic_composition): New function.
6704 (composition_adjust_point): Use find_automatic_composition.
6705
6706 * dispextern.h (struct composition_it): New member lookback.
6707
67082008-09-02 Chong Yidong <cyd@stupidchicken.com>
6709
6710 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6711 if moving by a single line.
6712
67132008-09-02 Andreas Schwab <schwab@suse.de>
6714
6715 * xterm.c (x_delete_display): Fix merge error.
6716
6717 * fileio.c (Fexpand_file_name): Remove unused variables.
6718
67192008-09-02 Eli Zaretskii <eliz@gnu.org>
6720
6721 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6722 storage on all platforms, not just on DOS_NT.
6723
67242008-09-02 Jason Rumney <jasonr@gnu.org>
6725
b8ff72fa
SM
6726 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6727 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6728
67292008-09-01 Chong Yidong <cyd@stupidchicken.com>
6730
6731 * xfaces.c (Finternal_set_alternative_font_family_alist)
6732 (Finternal_set_alternative_font_registry_alist): Properly copy
6733 entire alist structure.
6734
67352008-09-01 Kenichi Handa <handa@m17n.org>
6736
d66c0241 6737 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6738 representative chars of the script is a vector.
d66c0241
JB
6739 (ftfont_list): Handle the case where the representative chars of
6740 the script is a vector.
aac0c6e3
MR
6741
6742 * character.c (syms_of_character): Docstring of
6743 script-representative-chars fixed.
6744
67452008-08-31 Eli Zaretskii <eliz@gnu.org>
6746
6747 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6748 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6749 the menu. Allocate larger buffer for `text', to account for
6750 possible ^C characters.
6751
67522008-08-31 Martin Rudalics <rudalics@gmx.at>
6753
6754 * xdisp.c (prepare_menu_bars): Don't call
6755 Vwindow_size_change_functions with arg Qt.
6756
67572008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6758
6759 * font.h (font_range):
6760 * fileio.c (report_file_error):
46e722a9
SM
6761 * composite.c (composition_update_it): Yet another int/Lisp_Object
6762 mixup (YAILOM).
aac0c6e3
MR
6763
67642008-08-30 Glenn Morris <rgm@gnu.org>
6765
6766 * data.c (Fmake_variable_frame_local): Doc fix.
6767
6768 * frame.c (Fmodify_frame_parameters): Doc fix.
6769
67702008-08-30 Eli Zaretskii <eliz@gnu.org>
6771
6772 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6773 needed by GetTokenInformation.
6774 (w32_system_process_attributes): Check return values of all system
6775 APIs.
6776
6777 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6778 only when the state changes.
6779 (IT_update_begin, IT_update_end): Add termscript trace.
6780
6781 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6782 clipboard is unavailable. Set dst to NULL if it doesn't point to
6783 malloc'ed data.
6784 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6785 passing random values to xfree.
6786
6787 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6788 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6789
67902008-08-29 Jason Rumney <jasonr@gnu.org>
6791
6792 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6793
67942008-08-29 Eli Zaretskii <eliz@gnu.org>
6795
6796 * composite.c (fill_gstring_body): Avoid compiler warnings.
6797
6798 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6799 LGLYPH_SET_CODE to avoid compiler warnings.
6800
2ae37cf0 6801 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6802
6803 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6804
6805 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6806 LGLYPH_SET_CODE.
6807
68082008-08-29 Kenichi Handa <handa@m17n.org>
6809
6810 * fileio.c (report_file_error): Don't downcase the first character
6811 of errstring if it is still unibyte.
6812
68132008-08-29 Kenichi Handa <handa@m17n.org>
6814
6815 These changes are to re-implement the automatic composition so
6816 that it doesn't use text properties.
6817
6818 * Makefile.in (ftfont.o): Depend on composite.h.
6819 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6820
6821 * character.h (Vunicode_category_table): Extern it.
6822
6823 * character.c (Vunicode_category_table): New variable.
6824 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6825
6826 * chartab.c (optimize_sub_char_table): Perform more greedy
6827 optimization.
6828
b8ff72fa
SM
6829 * composite.h (enum composition_method):
6830 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6831 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6832 (Vcomposition_function_table): Extern it.
6833 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6834 (composition_gstring_put_cache, composition_gstring_from_id)
6835 (composition_gstring_p, composition_gstring_width)
6836 (composition_compute_stop_pos, composition_reseat_it)
6837 (composition_update_it, composition_adjust_point): Extern them.
6838 (Fcomposition_get_gstring): EXFUN it.
6839
d66c0241 6840 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6841 (Vcomposition_function_table)
6842 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6843 (gstring_hash_table, gstring_work, gstring_work_headers):
6844 New variables.
aac0c6e3
MR
6845 (gstring_lookup_cache, composition_gstring_put_cache)
6846 (composition_gstring_from_id, composition_gstring_p)
6847 (composition_gstring_width, fill_gstring_header)
6848 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6849 (composition_reseat_it, composition_update_it)
b8ff72fa 6850 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6851 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6852 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 6853 Defsubr composition_get_gstring.
aac0c6e3
MR
6854
6855 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6856 cmp_id.
6857 (struct glyph_string): Delete the member gidx. New members
6858 cmp_id, cmp_from, and cmp_to.
6859 (enum it_method): Delete GET_FROM_COMPOSITION.
6860 (struct composition_it): New struct.
6861 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6862 Delete c, len, cmp_id, cmp_len in u.comp.
6863
6864 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6865 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6866 (enum lglyph_indices): Likewise.
b8ff72fa 6867 (font_range): Adjust extern.
aac0c6e3
MR
6868 (font_fill_lglyph_metrics): Extern it.
6869
6870 * font.c (QCf): New variable.
6871 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6872 (font_prepare_composition): Delete this function.
6873 (font_range): Type and arguments changed.
6874 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6875 (font_fill_lglyph_metrics): New function.
b8ff72fa 6876 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6877 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6878 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6879 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6880
6881 * fontset.h (font_for_char): Extern it.
6882
6883 * fontset.c (font_for_char): New function.
6884
6885 * ftfont.c: Include composite.h.
6886 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6887 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6888
6889 * indent.c: Include composite.h and dispextern.h.
6890 (check_composition): Delete this function.
6891 (scan_for_column): Handle composition by
6892 composition_compute_stop_pos, composition_reseat_it, and
6893 composition_update_it.
6894 (compute_motion): Likewise.
6895 (Fvertical_motion): Fix checking of composition.
6896
6897 * keyboard.c (adjust_point_for_property): Check composition by
6898 composition_adjust_point.
6899
b8ff72fa 6900 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6901 struct glyph_string.
6902
b8ff72fa
SM
6903 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6904 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6905 struct glyph.
6906 (produce_composite_glyph): Likewise.
6907
b8ff72fa
SM
6908 * w32term.c (x_draw_composite_glyph_string_foreground):
6909 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6910 (x_draw_glyph_string): Likewise.
6911
6912 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6913 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6914
6915 * xdisp.c: Include font.h.
6916 (it_props): Delete the entry for Qauto_composed.
6917 (init_iterator): Initialize it->cmp_it.id to -1.
6918 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6919 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6920 (handle_auto_composed_prop): Delete it.
6921 (handle_composition_prop): Handle only static composition.
6922 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6923 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6924 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6925 (pop_it): Likewise.
6926 (get_next_element): Delete next_element_from_composition.
6927 (CHAR_COMPOSED_P): New macro.
6928 (get_next_display_element): For automatic composition, get a face
6929 from the font in the glyph-string.
6930 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6931 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6932 (next_element_from_string): Check if the character at the current
6933 position is composed by CHAR_COMPOSED_P.
6934 (next_element_from_buffer): Likewise.
d66c0241
JB
6935 (next_element_from_composition): Adjust for the change of struct it.
6936 Update it->cmp_it.
b8ff72fa
SM
6937 (dump_glyph): Adjust for the change of struct glyph.
6938 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6939 it and struct glyph. Don't handle automatic composition here.
6940 (fill_gstring_glyph_string): New function.
6941 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6942 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6943 (BUILD_GSTRING_GLYPH_STRING): New macro.
6944 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6945 automatic composition.
b8ff72fa 6946 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6947 struct glyph.
b8ff72fa 6948 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6949
b8ff72fa 6950 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6951 the change of struct glyph_string.
6952 (x_draw_glyph_string): Likewise.
6953
69542008-08-29 Glenn Morris <rgm@gnu.org>
6955
6956 * buffer.c (word-wrap): Doc fix.
6957 * xdisp.c (truncate-partial-width-windows): Doc fix.
6958 Increase default to 50.
6959
69602008-08-29 Chong Yidong <cyd@stupidchicken.com>
6961
6962 * xdisp.c (update_tool_bar_unwind): New function.
6963 (update_tool_bar): Temporarily set selected frame before building
6964 tool-bar items.
6965
69662008-08-28 Michael Albinus <michael.albinus@gmx.de>
6967
6968 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6969 snprintf, respectively.
6970 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6971
69722008-08-28 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6975 LDFLAGS to GNUstep CC invocation.
6976
69772008-08-27 Chong Yidong <cyd@stupidchicken.com>
6978
6979 * indent.c (Fvertical_motion): Revert last change. Handle the
6980 general case where we are moving forward, and PT spans multiple
6981 screen lines.
6982
6983 * eval.c (find_handler_clause): Temporarily increase
6984 max-lisp-eval-depth while printing the backtrace buffer, to
6985 guarantee that help-mode code can run.
6986
69872008-08-27 Eli Zaretskii <eliz@gnu.org>
6988
6989 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6990 colors under -rv.
6991 (IT_set_frame_parameters): Don't swap foreground and background
6992 colors if `(reverse . t)' is present in the frame properties.
6993 (internal_terminal_init): Call init_frame_faces only for the
6994 initial frame.
6995
69962008-08-27 Andreas Schwab <schwab@suse.de>
6997
6998 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6999
70002008-08-27 Andreas Schwab <schwab@suse.de>
7001
7002 * search.c (search_buffer): Set char_base to zero only at the end.
7003
70042008-08-27 Kenichi Handa <handa@m17n.org>
7005
b8ff72fa 7006 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7007
70082008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7009
7010 * xterm.c (x_term_init): Temporarily hide the partially
7011 initialized terminal while calling vendor-specific-keysyms.
7012
70132008-08-26 Eli Zaretskii <eliz@gnu.org>
7014
7015 * msdos.c (internal_terminal_init): Most initializations done only
7016 once, especially initial_screen_colors[] and termscript open.
7017
70182008-08-26 Chong Yidong <cyd@stupidchicken.com>
7019
7020 * eval.c (Fcondition_case): Doc fix.
7021
7022 * widgetprv.h (EmacsFramePart): Change font member to the new font
7023 struct.
7024
7025 * widget.c: Include character.h and font.h for XSETFONT.
7026 (setup_frame_gcs): Compute X font id from font struct, just once.
7027
70282008-08-26 Eli Zaretskii <eliz@gnu.org>
7029
7030 * term.c (get_named_tty): Fix last change.
7031
70322008-08-26 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7035 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7036
70372008-08-25 Eli Zaretskii <eliz@gnu.org>
7038
7039 * frame.c (do_switch_frame): Mark previously displayed frame as
7040 obscured for FRAME_MSDOS_P frames as well.
7041
70422008-08-24 Eli Zaretskii <eliz@gnu.org>
7043
7044 * frame.c (make_terminal_frame): Initialize f->terminal,
7045 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7046 Set the top frame to newly created frame.
7047 (Fmake_terminal_frame): Reuse the_only_display_info.
7048
7049 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7050 estimating available memory.
7051
b97439ce 70522008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7053
7054 * nsterm.m (ns_draw_window_cursor): Don't call
7055 NSDisableScreenUpdates and NSEnableScreenUpdates on
7056 non-NS_IMPL_COCOA systems.
7057
70582008-08-23 Andreas Schwab <schwab@suse.de>
7059
7060 * process.c (procfs_system_process_attributes): Fix use of
7061 uninitialized variables.
7062
70632008-08-23 Eli Zaretskii <eliz@gnu.org>
7064
7065 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7066
7067 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7068 calling tty-set-up-initial-frame-faces.
7069
b8ff72fa
SM
7070 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7071 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7072
7073 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7074 addition to output_termcap.
7075
7076 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7077
7078 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7079 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7080 highlight.
7081
7082 * process.c [!subprocesses]: Define QCname.
7083 (syms_of_process): Intern and staticpro it.
7084
7085 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7086 Adjust for changes in encoding/decoding routines.
7087 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7088 encode_coding and decode_coding.
7089
b8ff72fa 7090 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7091
7092 * dosfns.c: Include frame.h before termhooks.h.
7093 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7094 variable termscript.
7095
7096 * s/msdos.h (USER_FULL_NAME): Define.
7097 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7098
7099 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7100 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7101 pw->pw_gecos.
7102
7103 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7104 SELECTED_FRAME as additional (1st) argument.
7105 (tty_read_avail_input): Handle output_msdos_raw in
7106 addition to output_termcap.
7107
7108 * msdos.c: Include frame.h before termhooks.h.
7109 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7110 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7111 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7112 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7113 (IT_set_terminal_modes, IT_reset_terminal_modes)
7114 (IT_set_frame_parameters): Use tty->termscript instead of a global
7115 variable termscript.
7116 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7117 global variable terminal_coding. Don't refer to
7118 Vnonascii_translation_table.
7119 (internal_terminal_init): Set Vwindow_system in current_kboard.
7120 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7121 Announce date and time of session start, if termscript is open.
7122 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7123 term.c:init_tty). Open termscript only of not already open.
7124 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7125 here instead of dos_ttraw. Don't initialize display if this is an
7126 initial tty. Don't set FRAME_FONT.
7127 (Vwindow_system_version): Bump to 23.
7128 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7129 is available, set up mouse_position_hook.
7130 (dos_ttraw, IT_set_terminal_modes): If called with initial
7131 terminal, do nothing.
7132 (IT_set_frame_parameters): Handle the Qtty_type frame
7133 parameter by calling internal_terminal_init.
7134 (dos_set_window_size, show_mouse_face)
7135 (clear_mouse_face, IT_note_mode_line_highlight)
7136 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7137 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7138 (initialize_msdos_display): New function.
7139 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7140 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7141 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7142 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7143 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7144 (request_sigio, unrequest_sigio): Don't define, now defined on
7145 sysdep.c.
7146 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7147
7148 * term.c [MSDOS]: Include msdos.h.
7149 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7150 conditional to DOS_NT. Allow only one call to this function in a
7151 session. Don't allocate a new struct tty_display_info; instead,
7152 reuse the_only_display_info. Call get_tty_size to get screen
7153 dimensions. Call init_baud_rate to set bad_rate.
7154 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7155 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7156 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7157 (get_tty_terminal, get_named_tty, Ftty_type)
7158 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7159 output_termcap.
b8ff72fa
SM
7160 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7161 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7162 only when subprocesses are supported.
aac0c6e3
MR
7163
7164 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7165 f->output_data.x.
7166 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7167 terminal devices.
7168
5582fbc7 7169 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7170 x_output.
7171 (FRAME_FONT): Use output_data.tty.
7172 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7173 (struct x_display_info): Rename from display_info. Update all users in
7174 msdos.c.
aac0c6e3 7175 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7176 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7177 (dos_ttraw): Update prototype.
7178
7179 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7180 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7181
71822008-08-23 Jason Rumney <jasonr@gnu.org>
7183
7184 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7185 (fn_TIFFSetDirectory): New library function used.
7186 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7187 (tiff_load): Use :index to select among multiple images. Set count
7188 property when multiple images exist.
7189 (gif_format): Use :index, not :image.
7190
71912008-08-23 Chong Yidong <cyd@stupidchicken.com>
7192
7193 * xdisp.c (try_scrolling): Check INT_MAX instead of
7194 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7195 to obtain INT_MAX.
7196
71972008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7198
7199 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7200
72012008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7202
7203 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7204 GNUstep library location.
7205
72062008-08-21 Chong Yidong <cyd@stupidchicken.com>
7207
7208 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7209 before using it.
7210
7211 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7212
72132008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7214
7215 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7216 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7217 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7218 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7219 (EmacsApp-cursor_blink_handler): Remove declaration.
7220 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7221 match 01 Feb 2008 changes in xterm.c.
7222 (ns_read_socket): Add cast to avoid warning.
7223 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7224 GNUstep.
7225
72262008-08-20 Chong Yidong <cyd@stupidchicken.com>
7227
7228 * xselect.c (x_get_foreign_selection): Return nil if desired
7229 selection could not be obtained, instead of signalling an error.
7230
72312008-08-20 David Reitter <david.reitter@gmail.com>
7232
7233 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7234 * nsterm.m: Remove ns-specific code for cursor blinking.
7235 (ns_draw_window_cursor): Clear cursor properly rather than
7236 redrawing the area. Respect width of bar cursors.
7237 These changes enable the use of generic blink-cursor-mode and
7238 generic cursor types in NS and support smooth cursor movements (do
7239 not blink off after command).
7240 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7241 Nextstep, too.
7242
72432008-08-19 Kenichi Handa <handa@m17n.org>
7244
7245 * font.c (Vfont_log_deferred): New variable.
7246 (font_add_log): Check Vfont_log_deferred.
7247 (font_deferred_log): New function.
7248
7249 * font.h (font_deferred_log): Extern it.
7250
7251 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7252 for sorting.
7253 (face_for_char): Use deferred log.
7254
72552008-08-18 Kenichi Handa <handa@m17n.org>
7256
7257 * fontset.c (face_for_char): Add font log.
7258
7259 * font.c (font_add_log): Add the font properties :script, :lang,
7260 and :otf in the log.
7261
72622008-08-17 Chong Yidong <cyd@stupidchicken.com>
7263
7264 * xdisp.c: Remove dead code.
7265 (handle_invisible_prop, next_overlay_string): Defer call to
7266 setup_for_ellipsis.
7267 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7268
72692008-08-15 Chong Yidong <cyd@stupidchicken.com>
7270
7271 * xfaces.c (lookup_derived_face): Properly handle possible zero
7272 return value of get_lface_attributes.
7273 (merge_faces): Don't tell lookup_derived_face to signal an error
7274 if face is not found.
7275
7276 * dired.c (Fdirectory_files): Doc fix.
7277
7278 * process.c (make_process): Initialize kill_without_query struct
7279 member.
7280
72812008-08-15 Eli Zaretskii <eliz@gnu.org>
7282
7283 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7284 Alternative calculation of totphys for Visual Studio 6.
7285
7286 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7287
7288 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7289 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7290 All users changed.
7291 (stat): Only root directory passed to GetDriveType. Allow RAM
7292 disk as well as local fixed disk when w32-get-true-file-attributes
7293 is set to `local'.
7294 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7295 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7296 (w32_cached_id, w32_add_to_cache): New functions.
7297 (get_name_and_id): Look account names in the cache before calling
7298 lookup_account_sid.
7299 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7300 New initialization flags.
7301 (globals_of_w32): Initialize them to zero.
7302 (w32_system_process_attributes): Use w32_cached_id and
7303 w32_add_to_cache.
7304
73052008-08-14 Lawrence Mitchell <wence@gmx.li>
7306
7307 * lread.c (Fread_char, Fread_char_exclusive): If no character
7308 event is read before timeout is reached, return nil, rather than
7309 converting to a number.
7310
73112008-08-14 Chong Yidong <cyd@stupidchicken.com>
7312
7313 * fns.c (use_dialog_box): Doc fix.
7314
7315 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7316 on OS X.
7317
73182008-08-13 Chong Yidong <cyd@stupidchicken.com>
7319
7320 * frame.c (Qns_parse_geometry): New var.
7321 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7322
73232008-08-11 Chong Yidong <cyd@stupidchicken.com>
7324
7325 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7326 space character in calculating tabs.
7327
73282008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7329
7330 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7331
73322008-08-10 Glenn Morris <rgm@gnu.org>
7333
7334 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7335 silence gcc "limited range of data type" warnings in some
7336 make_fixnum_or_float calls.
7337
73382008-08-09 Eli Zaretskii <eliz@gnu.org>
7339
7340 * w32.c (w32_system_process_attributes): If the process does not
7341 exist, return nil.
7342
7343 * w32.c: Include thelp32.h, psapi.h and coding.h.
7344 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7345 declarations.
7346 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7347 (Process32Next_Proc): New typedefs.
7348 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7349 (g_b_init_process32_next, g_b_init_open_thread_token)
7350 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7351 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7352 (g_b_init_get_process_working_set_size)
7353 (g_b_init_global_memory_status_ex): New static variables.
7354 (globals_of_w32): Initialize them.
7355 (create_toolhelp32_snapshot, process32_first, process32_next)
7356 (open_thread_token, impersonate_self, revert_to_self)
7357 (get_process_memory_info, get_process_working_set_size)
7358 (global_memory_status, global_memory_status_ex): New wrapper
7359 functions.
7360 (w32_list_system_processes, w32_system_process_attributes)
7361 (enable_privilege, restore_privilege, ltime, process_times):
7362 New functions.
7363 (convert_time_raw): New function.
7364 (convert_time): Remove conversion of FILETIME into time in 100
7365 nsec units, call convert_time_raw instead.
7366
7367 * process.h (w32_list_system_processes, w32_system_process_attributes):
7368 Add prototypes.
7369 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7370 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7371 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7372 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7373
7374 * process.c (Fsystem_process_attributes): Doc fix.
7375
73762008-08-08 Chong Yidong <cyd@stupidchicken.com>
7377
7378 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7379 a continued multi-char glyph; if so, advance to the actual glyph.
7380
73812008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7382
7383 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7384
7385 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7386 (.m.o): Use it.
7387 * config.in: Regenerate.
7388
73892008-08-07 Chong Yidong <cyd@stupidchicken.com>
7390
7391 * xdisp.c (redisplay_window): Revert last change.
7392 (try_window): Check bottom scroll margin too.
7393
73942008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7395
7396 * config.in: Regenerate.
7397
7398 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7399 -list-load-path-shadows'.
7400 (nsgui.h): Reduce number of things depending on it.
7401
74022008-08-06 Chong Yidong <cyd@stupidchicken.com>
7403
7404 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7405 instead of window-end which does the wrong thing at eob.
7406 (try_cursor_movement): Minor optimization.
7407 (redisplay_window): If scroll margin is defined, don't assume
7408 window doesn't need scrolling.
7409
74102008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7411
7412 * config.in: Regenerate.
7413
7414 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7415 (mostlyclean): Don't delete *.d under NS.
7416
7417 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7418
74192008-08-06 Kenichi Handa <handa@m17n.org>
7420
7421 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7422
74232008-08-06 Andreas Schwab <schwab@suse.de>
7424
7425 * config.in: Regenerate.
7426
74272008-08-05 Chong Yidong <cyd@stupidchicken.com>
7428
7429 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7430 forcing a window start.
7431
7432 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7433 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7434
74352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7436
7437 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7438 argument.
7439
74402008-08-05 Juanma Barranquero <lekktu@gmail.com>
7441
7442 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7443 <scroll-down-aggressively, before-change-functions>:
7444 <after-change-functions>: Reflow docstrings.
7445
74462008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7447 Ken Raeburn <raeburn@gnu.org>
7448
7449 Dock menu customization, based on a patch by Ken Raeburn, plus some
7450 other fixes.
7451 * nsmenu.m (dockMenu): New variable.
7452 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7453
7454 * nsterm.h (dockMenu): Declare.
7455
7456 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7457 (ns_term_init): Initialize dockMenu.
7458 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7459 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7460 left.
7461
7462 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7463
74642008-08-04 Chong Yidong <cyd@stupidchicken.com>
7465
7466 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7467
7468 * config.in: Regenerate.
7469
74702008-08-04 Seiji Zenitani <zenitani@mac.com>
7471
7472 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7473
74742008-08-04 Chong Yidong <cyd@stupidchicken.com>
7475
7476 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7477
74782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7479
7480 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7481
7482 * keyboard.h: Comment an #endif.
7483
7484 * lisp.h (have_menus_p): Adjust comment.
7485
7486 * menu.c (find_and_return_menu_selection): Fix comparison with
7487 client_data.
7488
7489 * nsmenu.m (popup_activated_flag): New variable.
7490 (popup_activated): New function.
7491 (menu-or-popup-active-p): New exported lisp definition.
7492 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7493 when popup done.
7494 (ns_popup_dialog): Set popup_activated_flag.
7495
7496 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7497 version for GNUstep (handled by conditional typedef in nsterm.m).
7498 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7499 in rgb.txt).
7500
7501 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7502
7503 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7504
7505 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7506
7507 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7508 shortcircuit if popup_activated like GTK and X toolkit.
7509
7510 * m/inter386.h: Change DARWIN to DARWIN_OS.
7511
7512 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7513 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7514 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7515 comment on NO_SOCK_SIGIO.
7516
75172008-08-03 Chong Yidong <cyd@stupidchicken.com>
7518
7519 * nsterm.m (windowDidResize): Remove stopModal call.
7520
75212008-08-03 Andreas Schwab <schwab@suse.de>
7522
7523 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7524 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7525
75262008-08-02 Chong Yidong <cyd@stupidchicken.com>
7527
7528 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7529 Don't use uninitialized pointer variable when using getrlimit.
7530
75312008-08-02 Jason Rumney <jasonr@gnu.org>
7532
7533 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7534
75352008-08-02 Eli Zaretskii <eliz@gnu.org>
7536
7537 * alloc.c (NSTATICS): Bump to 0x640.
7538
7539 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7540
7541 * lisp.h: Add prototype for directory_files_internal.
7542
7543 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7544 New functions.
7545 (syms_of_process): Defsubr them. Add initializations for various
7546 Q* symbols used in procfs_system_process_attributes.
7547 (procfs_list_system_processes, procfs_system_process_attributes)
7548 [HAVE_PROCFS]: New functions.
7549 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7550 (procfs_get_total_memory): New functions.
7551
75522008-08-01 Juanma Barranquero <lekktu@gmail.com>
7553
7554 * xfaces.c (Fx_load_color_file): Fix previous change;
7555 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7556
75572008-08-01 Michael Albinus <michael.albinus@gmx.de>
7558
7559 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7560
75612008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7562
7563 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7564
75652008-08-01 Chong Yidong <cyd@stupidchicken.com>
7566
7567 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7568
7569 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7570 define NSApplicationDelegateReplySuccess.
7571 (EmacsView -converstationIdentifier): Use long instead of
7572 NSInteger for GNUstep, since it doesn't have NSInteger.
7573
7574 * xmenu.c: Revert last change.
7575
7576 * keyboard.h: Fix last change.
7577
75782008-08-01 Juanma Barranquero <lekktu@gmail.com>
7579
7580 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7581 on Windows.
7582
75832008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7584
7585 Warning clearing and clean-up in NS port.
7586 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7587 Add prototypes.
7588 * nsgui.h (FACE_DEFAULT): Remove, unused.
7589 (XGCValues): Change colors to unsigned long.
7590 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7591 nsterm.m.
7592 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7593 (ns_list_fonts): Remove, unused.
7594 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7595 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7596 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7597 (nsfont_draw): Compare face colors to 0, not nil.
7598 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7599 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7600 (-addSubmenuWithTitle:): Use NSMenuItem class.
7601 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7602 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7603 (ns_clip_to_row): Make gc arg a BOOL.
7604 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7605 ns_clip_to_row() call.
7606 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7607 used). Cast FRAME_FONT assignments.
7608 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7609 (ns_string_to_lispmod): Change arg to const char.
7610 (ns_term_init): Use NSMenuItem class.
7611 (EmacsApp -openFile:): Move to different section of file.
7612 (EmacsApp -application:openFiles:): Don't return a value, call
7613 -replyToOpenOrPrint:.
7614 (EmacsView -keyDown:): Fix up cast.
7615 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7616 (EmacsView -menuDown:): Cast tag in call to
7617 find_and_call_menu_selection().
7618 (ns_list_fonts): Remove, unused.
7619 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7620 (ns_fontname_to_xlfd): Make static.
7621 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7622 Remove prototypes (now in keyboard.h).
7623 (next_menubar_widget_id): Remove, unused.
7624 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7625 Remove prototypes (now in keyboard.h).
7626 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7627
76282008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7629
7630 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7631 (floatfns.o): Depend on syssignal.h.
7632 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7633
7634 * systty.h: Fix previous change that removed BSD_TERMIOS.
7635 Add comments to #ifdefs.
7636
76372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7638
7639 * w32fns.c (w32-load-color-file): Remove.
7640 (x-open-connection): Use renamed Fx_load_color_file.
7641 * xfaces.c (x-load-color-file): Add.
7642 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7643 Emacs.clr.
7644 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7645
76462008-07-31 Michael Albinus <michael.albinus@gmx.de>
7647
7648 * dbusbind.c (Fdbus_call_method_asynchronously)
7649 (Fdbus_method_error_internal): New defuns.
7650 (xd_read_message): Handle also reply messages.
7651 (Vdbus_registered_functions_table): Extend docstring.
7652
76532008-07-31 Juanma Barranquero <lekktu@gmail.com>
7654
7655 * keyboard.c (gobble_input): Fix previous change.
7656
76572008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7658
7659 * bitmaps/README:
7660 * xfns.c:
7661 * termcap.c:
7662 * term.c:
7663 * syswait.h:
7664 * systty.h:
7665 * systime.h:
7666 * syssignal.h:
7667 * sysdep.c:
7668 * process.h:
7669 * process.c:
7670 * print.c:
7671 * ndir.h:
7672 * lread.c:
7673 * keyboard.c:
7674 * getpagesize.h:
7675 * floatfns.c:
7676 * fileio.c:
7677 * emacs.c:
7678 * doc.c:
7679 * dispnew.c:
7680 * dired.c:
7681 * data.c:
7682 * callproc.c:
7683 * buffer.c:
7684 * README:
7685 * Makefile.in:
7686 * s/template.h:
7687 * s/msdos.h:
7688 * m/vax.h: Remove VMS support.
7689 * s/vms.h:
7690 * vlimit.h:
7691 * uaf.h:
7692 * temacs.opt:
7693 * param.h:
7694 * ioctl.h: Remove file.
7695
76962008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7697
7698 * s/ms-w32.h (MULTI_KBOARD): Remove.
7699 * xterm.c:
7700 * xselect.c:
7701 * xfns.c:
7702 * window.c:
7703 * w32term.c:
7704 * w32fns.c:
7705 * terminal.c:
7706 * termhooks.h:
7707 * term.c:
7708 * sysdep.c:
7709 * keyboard.h:
7710 * keyboard.c:
7711 * frame.h:
7712 * frame.c:
7713 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7714 * config.in: Regenerate.
7715
77162008-07-30 Jason Rumney <jasonr@gnu.org>
7717
7718 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7719
7720 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7721 (w32font_open_internal): Get unicode version of textmetrics.
7722 Don't enable or disable glyph indices here.
7723 (w32font_open): Disable use of glyph indices.
7724
7725 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7726
77272008-07-30 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * minibuf.c (Vread_buffer_function): Doc fix.
7730
77312008-07-30 John Paul Wallington <jpw@pobox.com>
7732
7733 * minibuf.c (read_buffer_completion_ignore_case): New var.
7734 (Fread_buffer): Use it.
7735
77362008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7737
7738 * systty.h (sensemode): Remove empty #if. Remove reference to
7739 BSD_TERMIOS, unused.
7740
7741 * sysdep.c: Remove reference to DGUX.
7742 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7743
7744 * config.in: Regenerate.
7745
77462008-07-30 Jason Rumney <jasonr@gnu.org>
7747
7748 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7749
77502008-07-29 Jason Rumney <jasonr@gnu.org>
7751
7752 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7753 is populated.
7754 (uniscribe_encode_char): Always use uniscribe.
7755 Avoid using context if cache is populated.
7756
77572008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7758
7759 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7760 open menu.
7761
7762 * gtkutil.c (menu_nav_ended): Remove.
7763 (create_menus): Remove signal connect for menu_nav_ended.
7764
77652008-07-28 Chong Yidong <cyd@stupidchicken.com>
7766
7767 * xdisp.c (redisplay_window): Check return value of
7768 compute_window_start_on_continuation_line before forcing a window
7769 start.
7770
77712008-07-28 Jason Rumney <jasonr@gnu.org>
7772
7773 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7774
7775 * w32term.c (w32_enable_unicode_output, cleartype_active):
7776 Remove obsolete display options.
7777 (x_draw_glyph_string_background): Don't use old cleartype_active
7778 workaround.
7779 (w32_initialize): Remove cleartype_active initialization.
7780 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7781
77822008-07-28 Andreas Schwab <schwab@suse.de>
7783
7784 * lisp.h (init_weak_hash_tables, syms_of_font)
7785 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7786 (remove_hash_entry): Don't declare.
7787 * eval.c (maybe_call_debugger): Make static and move before use.
7788 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7789 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7790 * xterm.h (x_set_frame_alpha): Declare.
7791
77922008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7793
7794 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7795 (create_menus): Connect selection-done to menu_nav_ended.
7796
77972008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7798
7799 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7800 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7801 parameter with read of 'alpha' one.
7802 (Qns_frame_parameter): Remove.
5582fbc7 7803 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7804 (next-selection-coding-system, Vselection_coding_system)
7805 (Vnext_selection_coding_system): Drop.
7806
78072008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7808
7809 * nsfns.m (do-applescript, do_applescript): Rename to
7810 ns-do-applescript, ns_do_applescript, and move within file.
7811
78122008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7813
7814 Remove support for Mac Carbon.
7815 * mactoolbox.c:
7816 * macterm.h:
7817 * macterm.c:
7818 * macselect.c:
7819 * macmenu.c:
7820 * macgui.h:
7821 * macfns.c:
7822 * mac.c: Remove file.
7823 * s/darwin.h:
7824 * m/intel386.h:
7825 * xfaces.c:
7826 * xdisp.c:
7827 * window.c:
7828 * tparam.c:
7829 * termhooks.h:
7830 * termcap.c:
7831 * term.c:
7832 * syssignal.h:
7833 * sysselect.h:
7834 * sysdep.c:
7835 * process.c:
7836 * lread.c:
7837 * lisp.h:
7838 * keyboard.c:
7839 * image.c:
7840 * fringe.c:
7841 * frame.h:
7842 * frame.c:
7843 * fontset.c:
7844 * font.h:
7845 * font.c:
7846 * fns.c:
7847 * fileio.c:
7848 * emacs.c:
7849 * dispnew.c:
7850 * dispextern.h:
7851 * config.in:
7852 * atimer.c:
2ae37cf0 7853 * Makefile.in: Remove code for Carbon.
aac0c6e3 7854
f0131492 78552008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7856
7857 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7858
78592008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7860
7861 * macterm.h (kCGBitmapByteOrder32Host): New define for
7862 non-universal SDKs.
7863
7864 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7865 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7866
7867 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7868 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7869
78702008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7871
7872 * w32inevt.c: Include dispextern.h.
7873
78742008-07-26 Andreas Schwab <schwab@suse.de>
7875
7876 * print.c (print_object): Fix off-by-one in last change.
7877
78782008-07-25 Juanma Barranquero <lekktu@gmail.com>
7879
7880 * term.c (syms_of_term): Don't initialize default_orig_pair,
7881 default_set_foreground and default_set_background on Windows.
7882
78832008-07-25 Jason Rumney <jasonr@gnu.org>
7884
7885 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7886 ScriptItemize. Clean up return value checking. Remove unused
7887 variables.
7888 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7889 shaping engine.
7890
7891 * w32font.c (w32font_has_char): Handle the case where we can't
7892 determine the script for a character.
7893
78942008-07-25 Chong Yidong <cyd@stupidchicken.com>
7895
7896 * term.c (syms_of_term): Initialize default_orig_pair,
7897 default_set_foreground, and default_set_background.
7898
7899 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7900 clash (bug#86).
7901 (getloadavg): Callers changed.
7902
7903 * image.c (svg_load_image): Fix last change.
7904 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7905 image size is valid. Use g_object_unref instead of deprecated
7906 rsvg_handle_free to free rsvg handle.
7907 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7908
79092008-07-25 Jason Rumney <jasonr@gnu.org>
7910
7911 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7912 surrogates before looking up glyph index.
7913 (w32font_text_extents): Encode as surrogates if falling back to
7914 functions that need UTF-16 wide chars.
7915
7916 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7917 BMP as surrogates before looking up glyph index.
7918
79192008-07-25 Chong Yidong <cyd@stupidchicken.com>
7920
7921 * image.c (svg_load_image): Check for failure in return value of
7922 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7923
79242008-07-25 Jason Rumney <jasonr@gnu.org>
7925
7926 * w32font.c (Fx_select_font): Reverse sense of second arg.
7927
79282008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7929
7930 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7931 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7932
7933 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7934 (PURESIZE): Use it.
7935
79362008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7937
7938 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7939 * m/alpha.h (TEXT_END):
7940 * m/ibmrs6000.h (TEXT_END):
7941 * m/macppc.h (TEXT_END):
7942 * s/darwin.h (TEXT_END):
7943 * s/msdos.h (TEXT_END): Remove, unused.
7944 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7945 * s/cygwin.h: Remove comment.
7946
7947 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7948 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7949 * m/intel386.h (DOT_GLOBAL_START):
7950 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7951 (USG): Remove, file not used on USG platforms.
7952
7953 * Makefile.in (HAVE_X11): Remove empty #else.
7954
79552008-07-24 Andreas Schwab <schwab@suse.de>
7956
7957 * fileio.c (Finsert_file_contents): Properly adjust undo list
7958 after format conversion.
7959
79602008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7961
7962 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7963 (menu_nav_ended): Remove.
7964 (create_menus): Remove signal connect for menu_nav_ended.
7965 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7966 create_menus.
7967 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7968
79692008-07-23 Jason Rumney <jasonr@gnu.org>
7970
7971 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7972 with opened font.
7973 (w32font_open): Set font type to gdi.
7974
7975 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7976
79772008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7978
7979 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7980 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7981 defines it.
7982 * unexec.c (ADDR_CORRECT): Define unconditionally.
7983
7984 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7985
7986 * unexec.c: Remove code depending on !COFF and USG, the file is
7987 not used for such systems.
7988
7989 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7990 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7991 (LD_SWITCH_SYSTEM_1): Remove, update users.
7992
7993 * s/darwin.h (DATA_END):
7994 * m/intel386.h (DATA_END):
7995 * m/ibmrs6000.h (DATA_END):
7996 * m/alpha.h (DATA_END): Remove, unused.
7997
7998 * config.in: Regenerate.
7999 * s/ms-w32.h (subprocesses): Define unconditionally.
8000 * s/template.h (subprocesses): Update comment.
8001 * s/vms.h (subprocesses):
8002 * s/usg5-4.h (subprocesses):
8003 * s/hpux10-20.h (subprocesses):
8004 * s/gnu-linux.h (subprocesses):
8005 * s/cygwin.h (subprocesses):
8006 * s/bsd-common.h (subprocesses):
8007 * s/aix4-2.h (subprocesses):
8008 * s/darwin.h (subprocesses): Do not define, defined by default now.
8009
8010 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8011 Remove all references.
8012 (temacs): Add GNUstep specific ld flags.
8013
8014 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8015 similarly to what X does.
8016
80172008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8018
8019 * nsfns.m (x-list-fonts): Remove.
8020 (syms_of_nsfns): Drop the x-list-fonts declaration.
8021 * nsterm.m: Get rid of remaining "//" comments.
8022
80232008-07-22 Chong Yidong <cyd@stupidchicken.com>
8024
8025 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8026
8027 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8028 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8029 (Fns_own_selection_internal, Fx_disown_selection_internal)
8030 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8031
8032 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8033 ... */' style of docstrings. Doc fixes.
8034
80352008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8036
8037 * terminfo.c (UP, BC, PC): Undo previous change.
8038
8039 * nsfns.m: Rename ns prefixed functions/variables to the
8040 corresponding x versions. Update references.
8041
80422008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8043
8044 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8045
80462008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8047
8048 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8049 Remove forwarding functions.
8050 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8051 non-static.
8052 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8053 non-static.
8054 (ns_frame_parm_handlers): Use the new names.
8055 (syms_of_nsfns): Move to the end of file.
8056
8057 * nsterm.m (syms_of_nsterm): Move to the end of file.
8058
8059 * dispnew.c (init_display): Remove code for X10.
8060
80612008-07-22 Jason Rumney <jasonr@gnu.org>
8062
8063 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8064 bare drive.
8065
80662008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8067
8068 * nsterm.m (syms_of_nsterm): Remove debugging println.
8069
80702008-07-22 David Reitter <david.reitter@gmail.com>
8071
8072 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8073 Carbon implementation of the same functionality: execute arbitrary
8074 AppleScript code.
8075
80762008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8077
8078 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8079 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8080 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8081 (Fx_display_mm_height, Fx_display_mm_width)
8082 (Fx_display_backing_store, Fx_display_visual_class)
8083 (Fx_display_save_under, Fx_open_connection)
8084 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8085 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8086 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8087 (Fx_display_pixel_width, Fx_display_pixel_height)
8088 (Fx_display_usable_bounds, Fx_display_planes)
8089 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8090 ... */' style of docstrings.
8091
80922008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8093
8094 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8095 on this platform.
8096 (mips):
8097 * m/iris4d.h (mips): Do not define.
8098 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8099
8100 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8101
8102 * image.c:
8103 * nsfns.m:
8104 * nsselect.m:
8105 * nsterm.h:
8106 * nsterm.m: Rename ns prefixed functions/variables to the
8107 corresponding x versions. Update references.
8108
8109 * m/ibms390x.h (NO_REMAP): Do not undefine.
8110
8111 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8112
81132008-07-21 Chong Yidong <cyd@stupidchicken.com>
8114
8115 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8116 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8117 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8118 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8119 (Fns_display_mm_height, Fns_display_mm_width)
8120 (Fns_display_backing_store, Fns_display_visual_class)
8121 (Fns_display_save_under, Fns_open_connection)
8122 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8123 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8124 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8125 (Fns_display_pixel_width, Fns_display_pixel_height)
8126 (Fns_display_usable_bounds, Fx_display_planes)
8127 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8128
81292008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8130
8131 * print.c (print_object): Check print_depth before searching for
8132 circularities.
8133
81342008-07-21 Michael Albinus <michael.albinus@gmx.de>
8135
8136 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8137 only sprintf.
8138
81392008-07-21 Kenichi Handa <handa@m17n.org>
8140
8141 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8142
81432008-07-20 Andreas Schwab <schwab@suse.de>
8144
8145 * syntax.c (find_start_pos, find_start_value)
8146 (find_start_value_byte, find_start_begv, find_defun_start)
8147 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8148
81492008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8150
8151 * s/sol2-3.h: Insert contents of s/sol2.h.
8152 (LD_SWITCH_SYSTEM): Remove redundant definition.
8153 * s/sol2.h: Remove, unused.
8154
81552008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8156
8157 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8158
81592008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8160
8161 * Makefile.in (ns_appdir): Fix typo in find command.
8162
81632008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8164
8165 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8166
8167 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8168 added not supported anymore.
8169
8170 * s/usg5-4-2.h (LIBS_SYSTEM):
8171 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8172
8173 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8174 * s/lynxos.h (GETPGRP_NO_ARG):
8175 * s/hpux10-20.h (NO_SIOCTL_H):
8176 * s/gnu.h (GETPGRP_NO_ARG):
8177 * s/gnu-linux.h (NO_SIOCTL_H):
8178 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8179 * s/cygwin.h (GETPGRP_NO_ARG):
8180 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8181 (C_DEBUG_SWITCH): Remove duplicate definition.
8182
8183 * m/ibms390.h: Remove boilerplate comments.
8184
8185 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8186
8187 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8188 (wait_reading_process_output): Remove code for SunOS, platform not
8189 supported anymore. Use SOLARIS2 instead of sun.
8190
81912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8192
8193 * font.c (font_open_by_name): Under NS, default lface height to zero.
8194 (font_open_for_lface): Under NS, set size based on frame fontsize.
8195 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8196 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8197
81982008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8199
8200 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8201 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8202 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8203 YES/NO.
8204 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8205 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8206 * Makefile.in (clean): Clear out build destination dir.
8207
82082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8209
8210 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8211 xterm, xselect.
8212 * lisp.h: Remove declaration of hash_remove.
8213 * nsgui.h: Remove redefinitions of hash_remove.
8214 * fns.c (hash_remove): Rename to hash_remove_from_table.
8215
82162008-07-19 Seiji Zenitani <zenitani@mac.com>
8217
8218 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8219 strdup() the family UTF8String before modifying it.
8220
82212008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8222
8223 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8224 NS_FACE_BACKGROUND with 0 instead of nil.
8225 * nsfont.m (nsfont_draw): Same.
8226
82272008-07-19 Chong Yidong <cyd@stupidchicken.com>
8228
8229 * nsfns.m (ns_set_background_color): Fix crash.
8230
82312008-07-18 Chong Yidong <cyd@stupidchicken.com>
8232
8233 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8234
82352008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8236
8237 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8238
82392008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8240
8241 * gtkutil.c: Include <config.h> instead of "config.h".
8242
8243 * lisp.h (Foverlay_buffer): Add EXFUN.
8244
8245 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8246 child process to complete child_setup. Undo 2005-09-21 change.
8247
8248 * s/darwin.h: Mention setsid after vfork.
8249
82502008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8251
8252 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8253 Depend on macgui.h.
8254
8255 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8256 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8257
8258 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8259 and f19.
8260 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8261
8262 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8263 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8264 Remove enumerators.
8265
8266 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8267 Check if FACE_FROM_ID returns NULL.
8268
82692008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8270
8271 * w32inevt.c (change_frame_size): Remove extern declaration.
8272 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8273 change_frame_size.
8274
82752008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
8277 * getloadavg.c: Revert last change (2008-07-15).
8278
82792008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8280
8281 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8282 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8283 from configure.
8284
82852008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8286
8287 * s/sol2.h:
8288 * s/sol2-4.h: Reorganize conditionals.
8289
8290 * ecrt0.c: Remove code depending on m68000, not used anymore.
8291
8292 * fns.c (hash_remove): Make static.
8293 * lisp.h (hash_remove): Don't prototype.
8294
8295 * m/ibmrs6000.h:
8296 * m/ibms390x.h:
8297 * m/macppc.h: Remove boilerplate comments.
8298
8299 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8300 Solaris, which does not need them.
8301
8302 * m/vax.h: Remove comments about unsupported systems.
8303
8304 * s/darwin.h: Reorganize ifdefs.
8305
83062008-07-17 Andreas Schwab <schwab@suse.de>
8307
8308 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8309
83102008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8311
8312 Use SDATA. Follow coding convention of placing operators at
8313 beginning of next line rather than end of previous line, and placing
8314 spaces around infix operators.
8315
8316 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8317 in case it was defined already.
8318 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8319 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8320 ns_default.
8321 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8322 Lisp_Objects.
8323 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8324 (ns_defined_color, ns_color_to_lisp): Declare.
8325 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8326 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8327 it's accepted even with USE_LISP_UNION_TYPE.
8328 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8329 (update_frame_tool_bar): Remove apparently obsolete tests for
8330 non-integerness of f->tool_bar_lines.
8331 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8332 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8333 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8334 (nsfont_open): Don't confuse NULL for Qnil.
8335 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8336 * menu.h (find_and_call_menu_selection):
8337 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8338 (find_and_return_menu_selection): Always return something.
8339 * frame.h: Include dispextern.h for Display_Info.
8340 (display_x_get_resource): Declare.
8341
83422008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8343
8344 * syntax.c: Remove stdio.h include accidentally introduced in
8345 Emacs.app commit.
8346 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8347 NS_IMPL_COCOA.
8348 * keyboard.c (handle_async_input, input_available_signal): Remove
8349 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8350
83512008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8352
8353 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8354 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8355 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8356 Use SDATA.
8357
8358 * keymap.c: Remove all NS-specific code.
8359 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8360 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8361 where_is_preferred_modifier, return a different value depending on how
8362 preferred is the binding.
8363 (where_is_internal): Adjust accordingly.
8364 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8365 Adjust to new preferred_sequence_p.
8366 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8367 * keyboard.c (parse_solitary_modifier): Not static any more.
8368 * keyboard.h (parse_solitary_modifier): Declare.
8369
83702008-07-16 Andreas Schwab <schwab@suse.de>
8371
8372 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8373 of easymenu.
8374
83752008-07-16 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8378 that we don't move off the line.
8379
83802008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8381
8382 * keyboard.c (Qsuper): Remove.
8383 (parse_menu_item): Don't call where_is_internal specially for NS.
8384
83852008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8386
8387 * s/gnu-linux.h: Remove boilerplate comments.
8388
8389 * m/alpha.h (__ELF__): Consolidate conditions.
8390
8391 * m/m68k.h (linux): Use GNU_LINUX instead.
8392 Remove boilerplate comments.
8393
8394 * m/intel386.h: Undo refactoring from previous change.
8395 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8396 too, remove dead code.
8397 (linux): Use GNU_LINUX instead.
8398
83992008-07-16 Jason Rumney <jasonr@gnu.org>
8400
8401 * w32gui.h: Repeat 26 June changes lost by last change.
8402
84032008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8404
8405 * systty.h: Remove code for Aix on 386, unsupported platform.
8406
8407 * s/ms-w32.h: Remove boilerplate comments.
8408 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8409
8410 * s/gnu-linux.h (TERM): Remove support.
8411 (HAVE_SYSVIPC): Remove, unused.
8412 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8413 for this system.
8414
8415 * process.c: Remove support for IRIS, unused.
8416 Remove support for TERM, not relevant anymore.
8417
8418 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8419 used with the definition.
8420
8421 * s/aix4-2.h (static): Do not undef.
8422
8423 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8424 only used on Aix.
8425 (HAVE_SYSVIPC): Remove, unused.
8426
8427 * m/hp800.h (CANNOT_DUMP): Do not undef.
8428
8429 * m/alpha.h: Fix comment.
8430
8431 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8432 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8433 used by this configuration.
8434 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8435 * unexec.c: Remove code depending on HPUX and
8436 USG_SHARED_LIBRARIES, not used with this file. Remove code
8437 depending on IRIS, unused. Remove if 0-ed code.
8438
8439 * s/template.h: Remove comments about static.
8440
8441 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8442 Remove if 0-ed code.
8443 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8444 were the same as the default.
8445 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8446 Remove boilerplate comments.
8447 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8448 (HAVE_SYSVIPC): Remove, unused.
8449 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8450
8451 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8452 Remove boilerplate comments.
8453 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8454 Remove boilerplate comments.
8455 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8456 Remove boilerplate comments.
8457 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8458
8459 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8460 USG systems which do not use DATA_SEG_BITS.
8461 Refactor code. Remove boilerplate comments.
8462
8463 * m/ibms390.h:
8464 * m/m68k.h:
8465 * s/bsd-common.h:
8466 * s/cygwin.h:
8467 * s/darwin.h:
8468 * s/freebsd.h:
8469 * s/gnu.h:
8470 * s/msdos.h: Remove boilerplate comments.
8471
8472 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8473 do not use this file.
aac0c6e3
MR
8474 (IRIS_4D): Remove, unused.
8475
8476 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8477 do not use this file.
aac0c6e3
MR
8478 (SIGN_EXTEND_CHAR):
8479 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8480 * unexmips.c: Remove file, unused.
8481
8482 * editfns.c (Fuser_full_name): Replace the only use of
8483 USER_FULL_NAME with its value.
8484 * config.in: Regenerate.
8485
84862008-07-16 David Reitter <david.reitter@gmail.com>
8487
8488 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8489 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8490
84912008-07-16 Glenn Morris <rgm@gnu.org>
8492
8493 * emacs.c (system-type): Doc fix.
8494
84952008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8496
8497 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8498 If the cache doesn't work, let's fix it, rather than work around it.
8499
85002008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8501
8502 * Makefile.in: Correct additions for nsfont.o in last commit.
8503 * nsfont.m: New file (forgot last commit).
8504
85052008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8506
8507 * callproc.c (set_initial_environment): Initialize
8508 Vprocess_environment under CANNOT_DUMP (fixes crash when
8509 batch-compiling for bootstrap).
8510
85112008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8512 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8513
8514 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8515 fix crash due to different init order.
8516
85172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8518
8519 Changes and additions for NeXTstep windowing system (Cocoa and
8520 GNUstep) support.
8521
8522 * Makefile.in:
8523 * config.in: Support defines and build commands for NS port.
8524 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8525 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8526 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8527 windowing.
8528 (struct face): Add synth_ital field.
8529 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8530 (init_display): Initialize Vinitial_window_system to "ns" when so
8531 compiled.
8532 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8533 (display_arg): Use under NS.
8534 (main): Under NS, allocate autorelease pool and handle command line
8535 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8536 (standard_args): Add NS-specific args.
8537 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8538 * font.c (DEFAULT_ENCODING): New variable.
8539 (font_find_for_lface): Use it.
8540 (syms_of_font): Load syms_of_nsfont under NS.
8541 * font.h: Declare nsfont_driver when compiled under NS.
8542 * fontset.c: When compiling under NS, include nsterm.h.
8543 (fontset_from_font): Autoconstruct fontset under NS.
8544 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8545 symbol, document and use it.
8546 (do_switch_frame): When for_deletion under Cocoa, add
8547 Fraise_frame(Qnil).
8548 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8549 (x_get_arg): Allow "yes" and "no" as boolean values.
8550 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8551 Qright under Cocoa.
8552 (focus-follows-mouse): Default to 0 under NS.
8553 * frame.h (enum output_method): Add output_ns.
8554 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8555 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8556 (FRAME_WINDOW_P): NS-specific definition.
8557 * fringe.c (max_used_fringe_bitmap): Make public.
8558 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8559 (getloadavg): Use NeXT code under descendant OS's.
8560 * image.c (includes and header section, x_create_bitmap_from_data)
8561 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8562 (image_background_transparent, x_clear_image_1)
8563 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8564 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8565 (x_to_xcolors, x_from_xcolors, x_disable_image)
8566 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8567 other GUIs, including XPM support using code originally written for
8568 Carbon GUI.
8569 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8570 using NS API.
8571 (image_ascent): Use font metrics macros instead of direct struct field
8572 access.
8573 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8574 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8575 Also, handle NS as GTK for menu bar purposes.
8576 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8577 toolkit where they differ.
8578 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8579 use cachelist, still needed under NS.
8580 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8581 (struct widget_value): Define it here for menu.c.
8582 * keymap.c (includes): Include modifier internals.
8583 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8584 NS.
8585 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8586 support for preferring sequences using certain modifiers, specified by
8587 the FIRSTONLY argument.
8588 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8589 under NS GNUstep implementation.
8590 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8591 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8592 * menu.c: Include nsterm.h under NS.
8593 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8594 (free_menubar_widget_tree_value, update_submenu_strings)
8595 (find_and_call_menu_selection): Treat NS as X and NT.
8596 (find_and_return_menu_selection): New function, used for popup menus.
8597 * nsgui.h:
8598 * nsterm.h:
8599 * nsfns.m:
8600 * nsimage.m:
8601 * nsmenu.m:
8602 * nsselect.m:
8603 * nsterm.m: New files.
8604 * process.c (wait_reading_process_output): Under NS, call ns_select()
8605 instead of plain select().
8606 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8607 beginning of buffer.
8608 * sysselect.h (init_process): Rename when compiling under Cocoa to
8609 avoid name conflict.
8610 * termhooks.h (display_info): Add ns_display_info to union.
8611 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8612 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8613 COCOA environment.
8614 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8615 unexec() signature. (Note, this will dump, but the resulting file
8616 crashes; unexosx is used instead; keeping around for reference and
8617 possible aid in getting dump working under GNUstep.)
8618 * w32gui.h (button_type, widget_value): Remove definitions (now in
8619 keyboard.h).
8620 * window.c: Include nsterm.h when compiling under NS.
8621 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8622 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8623 other GUI windowing systems.
8624 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8625 GTK.
8626 (x_consider_frame_title): Under NS, set icon type and frame
8627 modified-state indicator; use ns_set_name_as_filename() when using
8628 formatted title.
8629 (update_window_cursor): Make public when compiling under NS.
8630 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8631 (hourglass_atimer, Vhourglass_delay
8632 * xfaces.c (header section, init_frame_faces, clear_font_table)
8633 (defined_color, unload_color, x_face_list_fonts)
8634 (prepare_face_for_display): Add NS support parallel to other GUIs.
8635 Emulate GCs like other non-X GUIs.
8636 (split_font_name): Don't lowercase font name under NS.
8637 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8638 under NS.
8639 * s/darwin.h: Add support for compilation under NS.
8640
86412008-07-15 Jason Rumney <jasonr@gnu.org>
8642
8643 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8644 (w32_show_hourglass): Rename from show_hourglass.
8645 (w32_hide_hourglass): Rename from hide_hourglass.
8646 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8647 (Vhourglass_delay): Declare extern.
8648 (hourglass_started): Remove.
8649
8650 * xdisp.c (Vhourglass_delay): Remove static.
8651 (hourglass_started, start_hourglass, cancel_hourglass):
8652 Don't include these versions on WINDOWSNT.
8653
86542008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8655
8656 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8657 variables (formerly in xfns.c).
8658 (show_hourglass, hide_hourglass): New prototypes (same).
8659 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8660 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8661 in xfns.c).
8662 (syms_of_xdisp): Declare/initialize display-hourglass,
8663 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8664 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8665 formerly in xfns.c.
8666 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8667 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8668 (start_hourglass, cancel_hourglass): Remove.
8669 (show_hourglass, hide_hourglass): Remove prototypes and static
8670 modifiers.
8671 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8672 hourglass_atimer, hourglass_shown_p declaration/initialization.
8673 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8674 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8675 (start_hourglass, cancel_hourglass): Remove.
8676 (show_hourglass, hide_hourglass): Remove prototypes and static
8677 modifiers.
8678 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8679 hourglass_atimer, hourglass_shown_p declaration/initialization.
8680 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8681 (DEFAULT_HOURGLASS_DELAY): Remove.
8682 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8683 hourglass_shown_p declaration/initialization.
8684
86852008-07-14 Jason Rumney <jasonr@gnu.org>
8686
8687 * w32fns.c (w32_get_arg): Remove wrapper function.
8688 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8689 directly.
8690 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8691
86922008-07-14 Kenichi Handa <handa@m17n.org>
8693
8694 * xfont.c (xfont_open): Add workaround for X's bug.
8695
86962008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8697
8698 * fontset.c: Include <stdio.h> unconditionally.
8699
87002008-07-13 Michael Albinus <michael.albinus@gmx.de>
8701
8702 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8703 for filtering.
8704
87052008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8706
8707 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8708
8709 * m/macppc.h:
8710 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8711
8712 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8713 (SPECIAL_EMACS_INT):
8714 * m/ia64.h (SPECIAL_EMACS_INT):
8715 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8716 * s/gnu.h (NLIST_STRUCT):
8717 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8718 * s/gnu-linux.h (LINUX):
8719 * s/msdos.h (HAVE_FACES):
8720 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8721
8722 * systty.h:
8723 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8724 anymore.
8725
87262008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8727
8728 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8729 always defined as int.
8730
8731 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8732 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8733 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8734 * s/freebsd.h (HAVE_WAIT_HEADER):
8735 * s/bsd-common.h (HAVE_UNION_WAIT):
8736 * s/aix4-2.h (HAVE_WAIT_HEADER):
8737 * m/mips.h (HAVE_UNION_WAIT):
8738 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8739 (COFF, static): Do not define, they are undefined later in the file.
8740
8741 * process.c (update_status): Don't use a union.
8742 (status_convert):
8743 (sigchld_handler): Use int instead of WAITTYPE.
8744
87452008-07-12 Chong Yidong <cyd@stupidchicken.com>
8746
8747 * indent.c (Fvertical_motion): Restore hscroll before moving to
8748 goal column.
8749
87502008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8751
8752 * lisp.h: Remove left over code.
8753
87542008-07-11 Andreas Schwab <schwab@suse.de>
8755
8756 * lisp.h: Fix logic in last change.
8757
8758 * menu.h: New file.
8759 * menu.c: Include it.
8760 * xmenu.c: Likewise.
8761 * Makefile.in: Update dependencies.
8762
87632008-07-11 Kenichi Handa <handa@m17n.org>
8764
8765 * fontset.c (fontset_from_font): Cancel the previous change.
8766
87672008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8768
8769 * lisp.h:
8770 * w32heap.c:
8771 * emacs.c:
8772 * alloc.c: Replace all references of NO_UNION_TYPE with
8773 USE_LISP_UNION_TYPE.
8774
8775 * m/xtensa.h (NO_UNION_TYPE):
8776 * m/vax.h (NO_UNION_TYPE):
8777 * m/template.h (NO_UNION_TYPE):
8778 * m/sparc.h (NO_UNION_TYPE):
8779 * m/mips.h (NO_UNION_TYPE):
8780 * m/macppc.h (NO_UNION_TYPE):
8781 * m/m68k.h (NO_UNION_TYPE):
8782 * m/iris4d.h (NO_UNION_TYPE):
8783 * m/intel386.h (NO_UNION_TYPE):
8784 * m/ibms390x.h (NO_UNION_TYPE):
8785 * m/ibms390.h (NO_UNION_TYPE):
8786 * m/ibmrs6000.h (NO_UNION_TYPE):
8787 * m/ia64.h (NO_UNION_TYPE):
8788 * m/hp800.h (NO_UNION_TYPE):
8789 * m/arm.h (NO_UNION_TYPE):
8790 * m/amdx86-64.h (NO_UNION_TYPE):
8791 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8792 defining it the same.
8793
87942008-07-10 Chong Yidong <cyd@stupidchicken.com>
8795
8796 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8797
87982008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8799
8800 * fileio.c:
8801 * sysdep.c
8802 * systty.h:
8803 * m/ibmrs6000.h:
8804 * m/iris4d.h:
8805 * s/aix4-2.h:
8806 * s/freebsd.h:
8807 * s/gnu-linux.h:
8808 * s/hpux10-20.h:
8809 * s/hpux11.h:
8810 * s/netbsd.h:
8811 * s/sol2-3.h:
8812 * s/sol2-4.h:
8813 * s/sol2.h:
8814 * s/usg5-4.h:
8815 * s/vms.h: Remove references to unused variables.
8816
88172008-07-10 Andreas Schwab <schwab@suse.de>
8818
8819 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8820 pattern before matching the generic family.
8821
88222008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8823
8824 * unexec.c:
8825 * s/vms.h:
8826 * s/usg5-4-2.h:
8827 * s/sol2-5.h:
8828 * s/freebsd.h:
8829 * s/darwin.h: Remove dead code.
8830
8831 * m/template.h:
8832 * m/sparc.h:
8833 * m/mips.h:
8834 * m/m68k.h:
8835 * m/iris4d.h:
8836 * m/intel386.h:
8837 * m/ibms390x.h:
8838 * m/ibms390.h:
8839 * m/ia64.h:
8840 * m/hp800.h:
8841 * m/arm.h:
8842 * m/amdx86-64.h: Remove dead code and references to unused
8843 and compiler defined symbols.
8844
8845 * unexmips.c:
8846 * unexelf.c: Remove references to desupported systems.
8847
8848 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8849
8850 * m/powermac.h: Remove boilerplate comments.
8851 (NO_REMAP): Remove unused definition.
8852
8853 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8854 define them.
8855
88562008-07-10 Kenichi Handa <handa@m17n.org>
8857
8858 * xfont.c (xfont_open): Log the reason of failure.
8859
88602008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8861
8862 * fontset.c (fontset_get_font_group):
8863 * font.c (font_check_otf): Specify argument types.
8864
88652008-07-09 Kenichi Handa <handa@m17n.org>
8866
8867 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8868 non-ASCII char is found.
8869
8870 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8871 (reorder_font_vector): Change the arg preferred_family to font.
8872 Prefer the spec matching with font.
8873 (fontset_get_font_group): New function.
8874 (fontset_find_font): Change the format of an element of a realized
8875 fontset. Use fontset_get_font_group.
8876 (fontset_font): Try the current fontset, the default fontset, the
8877 fallbacks of the current fontset, and the fallbacks of the default
8878 fontset in this order.
8879 (face_for_char): Delete the shortcut to use the current font.
8880 (fontset_from_font): Don't set fonts for Latin in the fontset.
8881
8882 * font.h (font_make_object, font_match_p): Adjust prototypes.
8883
8884 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8885
8886 * font.c (font_make_object): New arg entity and pixelsize.
8887 (font_check_otf_features, font_check_otf): New functions.
8888 (font_match_p): Check :lang, :script, and :otf properties.
8889
8890 * xfont.c (xfont_open): Adjust it for the change of
8891 font_make_object.
8892 (xfont_text_extents): Fix initial setting of metrics.
8893
8894 * ftfont.c (struct ftfont_info): New member index, delete member
8895 fc_charset_idx. Make the member order compatible with struct
8896 xftfont_info.
8897 (fc_charset_table): Change charset names to registry names.
8898 (ftfont_pattern_entity): Delete the args registry and
8899 fc_charset_idx. Change the value of :font-entity property
8900 to (FONTNAME . INDEX). Always set :registry property to
8901 `iso10646-1'.
8902 (struct ftfont_cache_data): New struct.
8903 (ftfont_lookup_cache): New arg for_face.
8904 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8905 (ftfont_driver): Set the member otf_capability.
8906 (ftfont_get_charset): Adjust it for the change of
8907 fc_charset_table.
8908 (OTF_TAG_SYM): New macro.
8909 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8910 for the change of fc_charset_table.
8911 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8912 ftfont_pattern_entity. Add FC_INDEX to objset.
8913 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8914 and ftfont_pattern_entity.
8915 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8916 font_make_object, struct ftfont_info.
8917 (ftfont_has_char): Use ftfont_get_fc_charset.
8918 (ftfont_otf_features, ftfont_otf_capability): New functions.
8919 (ftfont_shape): Use ftfont_get_otf.
8920 (ftfont_text_extents): Fix initial setting of metrics.
8921
8922 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8923 member order compatible with struct ftfont_info.
8924 (xftfont_open): Add FC_CHARSET to the pattern. Set
8925 xftfont_info->ft_size. Don't unlock the face. Check BDF
8926 properties if appropriate.
8927 (xftfont_close): Unlock the face.
8928 (xftfont_anchor_point, xftfont_shape): Deleted.
8929 (syms_of_xftfont): Don't set members anchor_point and shape of
8930 xftfont_driver.
8931
8932 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8933 font_make_object.
8934
8935 * w32font.c (w32font_open): Adjust it for the change of
8936 font_make_object.
8937 (w32font_open_internal): Don't set properties of font_object here.
8938
89392008-07-08 Chong Yidong <cyd@stupidchicken.com>
8940
8941 * macfns.c (x_create_tip_frame):
8942 * w32fns.c (x_create_tip_frame):
8943 * xfns.c (x_create_tip_frame): Pass parameter argument to
8944 face-set-after-frame-default.
8945
8946 * xfaces.c (Finternal_merge_in_global_face): Save merged
8947 attributes for the default face back into the face vector.
8948
89492008-07-08 Andreas Schwab <schwab@suse.de>
8950
8951 * fontset.h: Declare fontset_from_font. Don't declare
8952 new_fontset_from_font and fontset_from_font_name.
8953 * xterm.c: Include "fontset.h".
8954 * Makefile.in (xterm.o): Update dependencies.
8955
89562008-07-08 Glenn Morris <rgm@gnu.org>
8957
8958 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8959 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8960
89612008-07-07 Chong Yidong <cyd@stupidchicken.com>
8962
8963 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8964 (x_set_frame_parameters): Don't bind it.
8965
89662008-07-07 Juanma Barranquero <lekktu@gmail.com>
8967
8968 * w32fns.c (map_w32_filename): Declare extern.
8969
89702008-07-07 Jason Rumney <jasonr@gnu.org>
8971
8972 * w32term.c (WS_EX_LAYERED): Define if not already.
8973
89742008-07-06 Chong Yidong <cyd@stupidchicken.com>
8975
8976 * xfaces.c (set_font_frame_param): Don't try to set the font
8977 parameter if it is still unspecified in the lface.
8978
89792008-07-05 Chong Yidong <cyd@stupidchicken.com>
8980
8981 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8982 face if it didn't already exist.
8983
8984 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8985
89862008-07-05 Andreas Schwab <schwab@suse.de>
8987
8988 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8989
89902008-07-05 Chong Yidong <cyd@stupidchicken.com>
8991
8992 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8993 word-wrapping.
8994 (IT_DISPLAYING_WHITESPACE): New macro.
8995 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8996 when word-wrapping. Simplify word-wrapping logic. Use correct
8997 pixel positions when saving copies of the iterator.
8998 (display_line): Use proper wrap point if the last character on a
8999 line was preceded by whitespace.
9000
90012008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9002
9003 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9004
90052008-07-04 Kenichi Handa <handa@m17n.org>
9006
9007 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9008
9009 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9010
90112008-07-02 Jason Rumney <jasonr@gnu.org>
9012
9013 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9014 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9015
9016 * xdisp.c (next_element_from_display_vector): Move assignment out
9017 of if statement.
9018
90192008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9020
9021 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9022
9023 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9024 (syms_of_fileio): Initialize and export them.
9025 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9026
9027 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9028 (Fsystem_move_file_to_trash): New function.
9029 (syms_of_w32fns): Export it to lisp.
9030
90312008-07-01 Jason Rumney <jasonr@gnu.org>
9032
9033 * w32font.c (w32font_text_extents): Don't count overhang as part
9034 of width.
9035
90362008-06-30 Miles Bader <miles@gnu.org>
9037
9038 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9039 Add `avoid_cursor_p' field.
9040
9041 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9042 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9043 (append_glyph, append_composite_glyph, produce_image_glyph)
9044 (append_stretch_glyph): Initialize avoid_cursor_p.
9045 (get_it_property): Rename from `get_line_height_property'.
9046 (x_produce_glyphs): Use get_it_property.
9047 (handle_line_prefix, push_display_prop): New functions.
9048 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9049 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9050 New variables.
9051 (syms_of_xdisp): Initialize them.
9052
90532008-06-30 Kenichi Handa <handa@m17n.org>
9054
9055 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9056 XftDefaultSubstitute (they are called in XftFontMatch).
9057 (xftfont_open): Fix args to ftfont_font_format.
9058
9059 * ftfont.c (fc_charset_table): New member lang.
9060 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9061 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9062 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9063 (ftfont_open): Fix args to ftfont_font_format.
9064 (ftfont_font_format): New arg filename.
9065
90662008-06-30 Chong Yidong <cyd@stupidchicken.com>
9067
9068 * xfaces.c (Finternal_merge_in_global_face): If default face was
9069 modified, realize it again. Update the font face attribute.
9070
90712008-06-29 Jason Rumney <jasonr@gnu.org>
9072
9073 * w32term.c (x_set_frame_alpha): Fix logic.
9074
90752008-06-29 Kenichi Handa <handa@m17n.org>
9076
9077 * fontset.c (Finternal_char_font): Return font-object instead of
9078 font-name.
9079
9080 * composite.c (get_composition_id): Fix the width calculation for TAB.
9081
90822008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9083
9084 * indent.c (Fvertical_motion): Properly handle float column arg.
9085
90862008-06-28 Jason Rumney <jasonr@gnu.org>
9087
9088 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9089 (pfnSetLayeredWindowAttributes): New function pointer.
9090 (w32_initialize): Initialize it when supported.
9091 (x_set_frame_alpha): New function.
9092
9093 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9094 (w32_frame_parm_handlers): Set alpha handler.
9095
9096 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9097
90982008-06-27 Jason Rumney <jasonr@gnu.org>
9099
9100 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9101 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9102 (w32_to_x_charset, x_to_w32_charset)
9103 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9104 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9105 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9106 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9107 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9108 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9109 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9110 (Qw32_charset_unicode): Remove.
9111 (syms_of_w32fns): Update for above changes.
9112
9113 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9114 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9115 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9116 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9117 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9118 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9119 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9120 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9121 (syms_of_w32font): Update for above changes.
9122
91232008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9124
9125 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9126 removed #if.
9127 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9128
91292008-06-26 Juanma Barranquero <lekktu@gmail.com>
9130 Eli Zaretskii <eliz@gnu.org>
9131
9132 * makefile.w32-in (LOCAL_FLAGS):
9133 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9134
9135 * sysdep.c (_spawnlp, _getpid):
9136 Declare with explicit _cdecl instead of _CRTAPI1.
9137
9138 * editfns.c (Fget_internal_run_time):
9139 Check for WINDOWSNT with #ifdef, not #if.
9140
91412008-06-26 Jason Rumney <jasonr@gnu.org>
9142
9143 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9144
9145 * w32term.c (x_draw_glyph_string_foreground)
9146 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9147 Use FONT_HANDLE macro.
9148 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9149
9150 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9151 (uniscribe_encode_char): Use FONT_HANDLE macro.
9152
9153 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9154 (w32font_text_extents): Use precast w32_font.
9155 (w32font_close): Free cached metrics.
9156 (w32font_open_internal): Allocate space for name on stack.
9157
91582008-06-26 Chong Yidong <cyd@stupidchicken.com>
9159
9160 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9161
91622008-06-26 Jason Rumney <jasonr@gnu.org>
9163
9164 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9165 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9166
91672008-06-26 Juanma Barranquero <lekktu@gmail.com>
9168
9169 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9170
91712008-06-26 Jason Rumney <jasonr@gnu.org>
9172
9173 * w32bdf.c, w32bdf.h: Remove obsolete files.
9174
9175 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9176
9177 * w32gui.h: Don't include w32bdf.h.
9178 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9179 Remove obsolete font support.
9180
9181 * w32font.h (struct w32font_info): Remove compat_w32_font.
9182 Add hfont member.
9183 (FONT_COMPAT): Remove obsolete macro.
9184
9185 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9186 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9187 (w32font_open_internal): Remove compat code. Set new hfont member.
9188 (Fx_select_font): Use new hfont member.
9189
9190 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9191 (uniscribe_encode_char): Use new hfont member.
9192
9193 * w32term.c (x_draw_glyph_string_foreground)
9194 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9195 (x_draw_glyph_string): Use metrics in w32font_info.
9196
91972008-06-26 Kenichi Handa <handa@m17n.org>
9198
9199 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9200
92012008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9202
9203 * unexnext.c:
9204 * m/ews4800.h:
9205 * m/hp9000s300.h:
9206 * m/ibm370aix.h:
9207 * m/mips-siemens.h:
9208 * m/ncr386.h:
9209 * m/next.h:
9210 * m/pmax.h:
9211 * m/powerpcle.h:
9212 * m/tandem-s2.h:
9213 * s/386bsd.h:
9214 * s/bsd386.h:
9215 * s/bsd4-1.h:
9216 * s/bsd4-2.h:
9217 * s/bsdos2-1.h:
9218 * s/bsdos2.h:
9219 * s/bsdos3.h:
9220 * s/bsdos4.h:
9221 * s/nextstep.h:
9222 * s/ultrix4-3.h:
9223 * s/usg5-0.h:
9224 * s/usg5-2-2.h:
9225 * s/usg5-2.h:
9226 * s/usg5-4-3.h:
9227 * s/ux4800.h:
9228 * s/uxpds.h:
9229 * s/uxpv.h: Remove support for obsolete systems.
9230 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9231 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9232 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9233 Remove, insert contents in s/aix4-2.h.
9234 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9235 * s/bsd4-3.h: Rename to ...
9236 * s/bsd-common.h: ... this.
9237 * data.c:
9238 * doc.c:
9239 * ecrt0.c:
9240 * emacs.c:
9241 * fileio.c:
9242 * floatfns.c:
9243 * keyboard.c:
9244 * mem-limits.h:
9245 * print.c:
9246 * process.c:
9247 * sysdep.c:
9248 * syssignal.h:
9249 * systty.h:
9250 * syswait.h:
9251 * term.c:
9252 * unexec.c:
9253 * unexelf.c:
9254 * unexhp9k800.c:
9255 * m/hp800.h:
9256 * m/ibmrs6000.h:
9257 * m/mips.h:
9258 * m/vax.h:
9259 * s/darwin.h:
9260 * s/freebsd.h:
9261 * s/gnu.h:
9262 * s/ms-w32.h:
9263 * s/msdos.h:
9264 * s/netbsd.h:
9265 * s/template.h: Remove references to obsolete variables.
9266
9267 * Makefile.in: Add dependencies for all unexec files.
9268 (admindir): Remove unused variable.
9269 (UNEXEC_SRC): Remove references.
9270
92712008-06-25 Chong Yidong <cyd@stupidchicken.com>
9272
9273 * xfns.c (x_default_font_parameter): If Xft is available, first
9274 try Monospace-12 for the default font.
9275
92762008-06-25 Jason Rumney <jasonr@gnu.org>
9277
9278 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9279
92802008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9281
9282 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9283
9284 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9285
92862008-06-25 Juanma Barranquero <lekktu@gmail.com>
9287
9288 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9289 <scroll-conservatively>: Fix typo in docstring.
9290
9291 * xselect.c (Fx_send_client_event): Doc fix.
9292
92932008-06-25 Kenichi Handa <handa@m17n.org>
9294
9295 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9296
9297 * font.c (font_parse_fcname): Remove unused variables.
9298 (font_sort_entites): Delete the arg SPEC. Caller changed.
9299 Fix for the case of ! best_only.
9300 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9301
9302 * lisp.h (Fstring_to_unibyte): EXFUN it.
9303
9304 * character.h (str_to_unibyte): Extern it.
9305
9306 * character.c (str_to_unibyte): New function.
9307
9308 * fns.c (Fstring_to_unibyte): New function.
9309 (syms_of_fns): Defsubr it.
9310
93112008-06-24 Kenichi Handa <handa@m17n.org>
9312
9313 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9314 DPI too.
9315 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9316
93172008-06-24 Andreas Schwab <schwab@suse.de>
9318
9319 * Makefile.in (${lispsource}loaddefs.el): Rename from
9320 ../lisp/loaddefs.el.
9321 (bootstrap-clean): Do what distclean does but don't remove
9322 Makefile.
9323 (distclean): Depend on bootstrap-clean and remove Makefile.
9324
93252008-06-24 Chong Yidong <cyd@stupidchicken.com>
9326
9327 * buffer.h (struct buffer): New member word_wrap.
9328
9329 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9330 word-wrap.
9331 (init_buffer_once): Initialize them.
9332
9333 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9334 line_wrap enum possessing three possible values.
9335
9336 * termopts.h: Replace truncate_partial_width_windows with
9337 Vtruncate_partial_width_windows.
9338
9339 * dispnew.c (direct_output_for_insert): Avoid direct output when
9340 inserting a space with word wrap on.
9341
9342 * indent.c (compute_motion): Obey integer values of
9343 truncate-partial-width-windows.
9344
9345 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9346 replacing truncate_partial_width_windows.
9347 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9348 truncate only if the window width is below that integer.
9349 (start_display, resize_mini_window, produce_stretch_glyph)
9350 (display_string, move_it_in_display_line_to): Use line_wrap.
9351 (back_to_previous_visible_line_start, reseat_1): Reset
9352 string_from_display_prop_p.
9353 (display_line): Extend default face to end of line when wrapping.
9354
93552008-06-24 Kim F. Storm <storm@cua.dk>
9356
9357 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9358 to wrap continued lines at word boundaries.
9359
93602008-06-24 Jason Rumney <jasonr@gnu.org>
9361
9362 * font.c (Ffont_face_attributes): Multiply pixel size before point
9363 conversion to avoid multiplying rounding error.
9364
93652008-06-23 Jason Rumney <jasonr@gnu.org>
9366
9367 * w32term.c (x_draw_glyph_string_background)
9368 (x_draw_glyph_string): Remove old bdf font code.
9369
9370 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9371
93722008-06-22 Kenichi Handa <handa@m17n.org>
9373
9374 * font.c (font_find_for_lface): Try the adstyle specified in
9375 the property of LFACE_FONT of LFACE (if any).
9376
93772008-06-21 Seiji Zenitani <zenitani@mac.com>
9378 Ryo Yoshitake <ryo@shiftmode.net>
9379
9380 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9381
93822008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9383
9384 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9385 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9386 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9387 (witness-emacs): Remove.
9388 (lisp, shortlisp): Move loaddefs.el earlier.
9389 (mostlyclean): Forget about witness-emacs.
9390
93912008-06-22 Glenn Morris <rgm@gnu.org>
9392
9393 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9394 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9395
93962008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9397
9398 * Makefile.in (PRECOMP): Remove.
9399 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9400 (witness-emacs): Run `compile-first'.
9401 (.el.elc): Use the new compile-onefile target.
9402
94032008-06-21 Kenichi Handa <handa@m17n.org>
9404
9405 * xftfont.c (xftfont_open): Handle QCembolden only when
9406 FC_EMBOLDEN is defined.
9407
94082008-06-21 Andreas Schwab <schwab@suse.de>
9409
9410 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9411 (.el.elc): Likewise.
9412
94132008-06-21 Miles Bader <miles@gnu.org>
9414
9415 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9416 build dir, not the lisp source dir.
9417
94182008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9419
9420 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9421 (bootstrapclean): Remove.
9422 (.el.elc): New rule.
9423 (PRECOMP): New var.
9424 (../lisp/subdirs.el): Remove.
9425 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9426 (witness-emacs): New target.
9427 (mostlyclean): Remove witness-emacs as well.
9428 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9429 Add witness-emacs dependency.
9430
94312008-06-20 Chong Yidong <cyd@stupidchicken.com>
9432
9433 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9434 defined by the font.
9435
94362008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9437
9438 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9439 (bootstrap-clean): New target that keeps TAGS around.
9440 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9441 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9442
94432008-06-20 Jason Rumney <jasonr@gnu.org>
9444
9445 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9446 Remove obsolete font code.
9447
9448 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9449 to determine language support.
9450
94512008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9452
9453 * sysdep.c (cfsetspeed): New fun extracted from the code.
9454 (cfmakeraw): Move before first use.
9455
94562008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9457
9458 * sysdep.c (cfmakeraw): Provide fallback implementation.
9459 (serial_configure): Provide fallback implementation of cfsetspeed.
9460
94612008-06-20 Kenichi Handa <handa@m17n.org>
9462
9463 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9464 the pattern.
9465
9466 * fontset.c (fontset_from_font): Copy font_spec before changing
9467 the elements.
9468
9469 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9470
94712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9472
9473 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9474 for explicit `font' parameters.
9475
9476 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9477
94782008-06-19 Kenichi Handa <handa@m17n.org>
9479
9480 * frame.c: Include <ctype.h>.
9481 (x_set_font_backend): Allow spacing characters in the X resource
9482 for FontBackend.
9483
94842008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9485
9486 * w32fns.c, xfns.c (Qfont_param): New var.
9487 (syms_of_w32fns): Initialize it.
9488 (x_default_font_parameter): Record explicit `font' into
9489 `font-parameter'.
9490
94912008-06-18 Kenichi Handa <handa@m17n.org>
9492
9493 * font.c (font_parse_xlfd): Fix previous change.
9494 (font_parse_fcname): Don't use :fc-unknown-spec.
9495 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9496 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9497 (font_add_log): Prepend the driver name to the resulting fonts.
9498
9499 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9500 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9501 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9502
9503 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9504 (QCembolden): New variables.
9505 (syms_of_xftfont): DEFSYM them.
9506 (xftfont_open): Call XftFontMatch. Don't trust the result of
9507 XftTextExtents8 if the pixel_size is less than 5.
9508
95092008-06-18 Andreas Schwab <schwab@suse.de>
9510
9511 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9512 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9513
95142008-06-18 Jason Rumney <jasonr@gnu.org>
9515
9516 * w32font.c (w32font_list, w32font_match): Add logging.
9517
9518 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9519
95202008-06-17 Chong Yidong <cyd@stupidchicken.com>
9521
9522 * font.c (font_parse_fcname): Store divider characters for
9523 unknown-spec list. For known key symbols, intern using correct
9524 symbol name.
9525
95262008-06-17 Kenichi Handa <handa@m17n.org>
9527
9528 * xfaces.c (realize_default_face): If the frame is not on window
9529 system, set the fontset of face to nil.
9530
95312008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9532
9533 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9534
95352008-06-16 Juanma Barranquero <lekktu@gmail.com>
9536
9537 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9538 (build_font_name_from_vector): Delete externs.
9539
9540 * xfaces.c (struct font_name): Don't declare.
9541
95422008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9543
9544 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9545
95462008-06-16 Chong Yidong <cyd@stupidchicken.com>
9547
9548 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9549
95502008-06-16 Juanma Barranquero <lekktu@gmail.com>
9551
9552 * font.c (Ffont_spec): Fix usage in docstring.
9553 (Ffont_face_attributes): Doc fix.
9554
95552008-06-16 Andreas Schwab <schwab@suse.de>
9556
9557 * font.c (Ffont_face_attributes): Fix definition.
9558
95592008-06-16 Jason Rumney <jasonr@gnu.org>
9560
9561 * font.h (font_style_symbolic_from_value): Remove.
9562
9563 * font.c (font_style_symbolic_from_value): Remove.
9564 (font_style_symbolic): Revert to pre 2008-06-13 version.
9565
9566 * w32font.c (w32_to_fc_weight): New function.
9567 (w32font_full_name, logfont_to_fcname): Use it.
9568
95692008-06-16 Kenichi Handa <handa@m17n.org>
9570
9571 * font.c (font_check_object): Delete it.
9572 (font_clear_cache): Check if a font-object is alive.
9573 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9574 font-object to nil.
9575 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9576 (font_at): Don't call font_check_object.
9577 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9578
95792008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9580
9581 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9582
95832008-06-16 Chong Yidong <cyd@stupidchicken.com>
9584
9585 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9586
95872008-06-15 Chong Yidong <cyd@stupidchicken.com>
9588
9589 * font.c (font_parse_fcname): Only one decimal point.
9590 (font_unparse_fcname): Handle data in family and foundry indices
9591 as symbols, not strings.
9592 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9593
9594 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9595
9596 * font.h (font_unparse_gtkname): Add prototype.
9597
95982008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9599
9600 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9601
96022008-06-15 Andreas Schwab <schwab@suse.de>
9603
9604 * font.c (font_update_drivers): Fix crash when no drivers match.
9605
96062008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9607
9608 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9609 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9610
96112008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9612
9613 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9614
96152008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9616
9617 * process.c (Fserial_process_configure, Fprocess_send_eof):
9618 Use EQ to compare Lisp_Objects.
9619
96202008-06-13 Jason Rumney <jasonr@gnu.org>
9621
9622 * w32fns.c (Fw32_select_font): Remove old font API function.
9623
9624 * w32font.c (logfont_to_fcname): New function.
9625 (Fx_select_font): New font dialog function compatible with
9626 GTK/fontconfig version.
9627
9628 * font.c (font_style_symbolic_from_value): New function.
9629 (font_style_symbolic): Use it.
9630
9631 * font.h (font_style_symbolic_from_value): Declare new function.
9632
96332008-06-13 Juanma Barranquero <lekktu@gmail.com>
9634
9635 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9636 <font-width-table>: Fix typos in docstrings.
9637
96382008-06-13 Daniel Engeler <engeler@gmail.com>
9639
9640 These changes add serial port access.
9641 * process.c: Add HAVE_SERIAL.
9642 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9643 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9644 (list_processes_1, select_wrapper, Fstop_process)
9645 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9646 (status_notify): Modify to handle serial processes.
9647 [HAVE_SERIAL] (Fserial_process_configure)
9648 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9649 New functions.
9650 * process.h (struct Lisp_Process): Add `type'.
9651 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9652 New functions.
9653 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9654 serial ports.
b71ac3dd 9655 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9656 * w32.h: Add FILE_SERIAL.
9657 (struct _child_process): Add ovl_read, ovl_write.
9658
96592008-06-13 Kenichi Handa <handa@m17n.org>
9660
9661 * dispextern.h (enum lface_attribute_index): New member
9662 LFACE_FOUNDRY_INDEX.
9663
9664 * font.c (font_score): Delete arg alternate_families. Check only
9665 weight, slant, width, and size. Ignore the difference of alias
9666 style symbols.
9667 (font_sort_entites): Adjust for the above change. Reflect the
9668 order of font-driver to scores.
9669 (font_list_entities): Don't check alternate_familes here.
9670 (font_clear_prop): Handle foundry.
9671 (font_update_lface): Don't parse "foundry-family" form here.
9672 Handle FONT_FOUNDRY_INDEX.
9673 (font_find_for_lface): Likewise. Handle alternate families here.
9674 If registry is nil, try iso8859-1 and ascii-0.
9675 (font_open_for_lface): Pay attention to size in ENTITY.
9676 (font_open_by_name): Simplify by calling font_load_for_lface.
9677 (free_font_driver_list): Delete it.
9678 (font_update_drivers): Preserve the order of backends.
9679 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9680 of font_score and font_sort_entites.
9681 (font_update_sort_order): Likewise.
9682
9683 * xfaces.c (LFACE_FOUNDRY): New macro.
9684 (check_lface_attrs): Check foundry.
9685 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9686 (merge_face_vectors): Check foundry.
9687 (merge_face_ref): Likewise.
9688 (Finternal_set_lisp_face_attribute): Likewise.
9689 (x_update_menu_appearance): Likewise.
9690 (Finternal_get_lisp_face_attribute): Likewise.
9691 (lface_hash): Likewise.
9692 (lface_same_font_attributes_p): Likewise.
9693 (x_supports_face_attributes_p): Likewise.
9694 (tty_supports_face_attributes_p): Likewise.
9695 (Finternal_set_alternative_font_family_alist): Intern strings.
9696 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9697 (realize_default_face): Set LFACE_FOUNDRY (lface).
9698
9699 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9700 font-driver at first.
9701
9702 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9703
97042008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9705
9706 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9707
97082008-06-12 Jim Meyering <meyering@redhat.com>
9709
9710 Make unexec_free handle NULL the same way free does.
9711 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9712
97132008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9714
9715 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9716 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9717 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9718 (WEAK_ALIAS): Simplify.
9719 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9720 when searching a unibyte buffer.
9721
97222008-06-12 Chong Yidong <cyd@stupidchicken.com>
9723
9724 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9725
97262008-06-12 Juanma Barranquero <lekktu@gmail.com>
9727
9728 * w32font.c: Include ctype.h.
9729
97302008-06-11 Jason Rumney <jasonr@gnu.org>
9731
9732 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9733 misreported as space.
9734 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9735 as aliases for registry iso10646-1.
9736
97372008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9738
9739 * buffer.c (clone_per_buffer_values): Skip `name'.
9740
97412008-06-11 Chong Yidong <cyd@stupidchicken.com>
9742
9743 * font.c (font_parse_fcname): Fix last change; accept decimal
9744 points in font size.
9745
97462008-06-10 Jason Rumney <jasonr@gnu.org>
9747
9748 * w32uniscribe.c (add_opentype_font_name_to_list):
9749 Skip non unicode fonts.
9750
97512008-06-10 Chong Yidong <cyd@stupidchicken.com>
9752
9753 * xfns.c (Fx_font_dialog): New function.
9754
9755 * gtkutil.c (xg_dialog_response_cb): Rename from
9756 xg_file_response_callback.
9757 (pop_down_dialog): Rename from pop_down_file_dialog.
9758 (xg_get_file_name): Callers changed.
9759 (xg_get_font_name): New function.
9760
9761 * gtkutil.h (xg_get_font_name): Insert prototype.
9762
97632008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9764
9765 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9766 x_underline_minimum_display_offset.
9767 (syms_of_xdisp): Declare it here rather than in xterm.c.
9768 * dispextern.h (underline_minimum_offset): Declare it.
9769 * w32term.c (x_draw_glyph_string): Use it.
9770 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9771 (syms_of_xterm): Don't declare it any more.
9772 (x_draw_glyph_string): Adjust to the new name.
9773
8719abec 97742008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9775
9776 * xterm.c (x_underline_minimum_display_offset): New var.
9777 (x_draw_glyph_string): Use it.
9778 (syms_of_xterm): Declare it.
9779
97802008-06-10 Chong Yidong <cyd@stupidchicken.com>
9781
9782 * font.c (font_parse_fcname): Accept GTK-style font names too.
9783
97842008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9785
9786 * dired.c (file_name_completion): Don't return t if the match is exact
9787 but with different capitalization.
9788 * minibuf.c (Ftry_completion): Simplify.
9789
9790 * window.c (Vwindow_point_insertion_type): New var.
9791 (set_window_buffer): Use it.
9792 (syms_of_window): Init and export it to Lisp.
9793
97942008-06-10 Kenichi Handa <handa@m17n.org>
9795
9796 * font.h (font_intern_prop): Prototype adjusted.
9797
9798 * font.c (font_intern_prop): New arg force_symbol.
9799 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9800 Adjust for the change of font_intern_prop.
9801
9802 * ftfont.c (ftfont_pattern_entity):
9803 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9804 (w32_registry):
9805 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9806 the change of font_intern_prop.
9807
98082008-06-09 Juanma Barranquero <lekktu@gmail.com>
9809
9810 * w32menu.c (digest_single_submenu): Declare extern.
9811
98122008-06-09 Jason Rumney <jasonr@gnu.org>
9813
9814 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9815
9816 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9817 (parse_single_submenu): Remove.
9818 (digest_single_submenu): Remove.
9819 (syms_of_w32menu): Don't initialise variables that have moved
9820 to menu.c.
9821 (set_frame_menubar): Sync with version in xmenu.c.
9822 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9823
9824 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9825 Make static again.
9826
98272008-06-09 Jason Rumney <jasonr@gnu.org>
9828
9829 Changes to w32 files related to the move of common menu code
9830 to menu.c on 2008-06-08 by Chong Yidong.
9831
9832 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9833 defs to w32gui.h.
9834 (single_keymap_panes, push_menu_item, push_menu_pane):
9835 Make globally visible.
9836
9837 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9838 (local_free, malloc_widget_value, free_widget_value)
9839 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9840 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9841 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9842 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9843 (menu_items, menu_items_allocated, menu_items_used)
9844 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9845 (init_menu_items, finish_menu_items, discard_menu_items)
9846 (grow_menu_items, push_submenu_start, push_submenu_end)
9847 (push_left_right_boundary, push_menu_pane, push_menu_item)
9848 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9849 (free_menubar_widget_tree_value, parse_single_submenu)
9850 (update_submenu_strings): Remove functions.
9851 (xmalloc_widget_value): Remove and declare extern.
9852
9853 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9854 (OBJ1): Build it.
9855
9856 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9857 (local_heap, local_alloc, local_free, malloc_widget_value)
9858 (free_widget_value): Define here.
9859
98602008-06-09 Kenichi Handa <handa@m17n.org>
9861
9862 * font.h (Qascii_0): Extern it.
9863
9864 * font.c (Qascii_0): New variable.
9865 (syms_of_font): DEFSYM it.
9866 (font_open_by_name): If the registry "iso8859-1" fails, try also
9867 "ascii-0".
9868
9869 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9870
98712008-06-08 Kenichi Handa <handa@m17n.org>
9872
9873 * .gdbinit (xfont): New command.
9874
98752008-06-08 Andreas Schwab <schwab@suse.de>
9876
9877 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9878 * Makefile.in (menu.o): Update dependencies.
9879
9880 * Makefile.in (obj): Always add menu.o.
9881 * emacs.c (main): Always call syms_of_menu.
9882 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9883
98842008-06-08 Chong Yidong <cyd@stupidchicken.com>
9885
9886 * Makefile.in: Compile menu.c.
9887
9888 * lisp.h: Declare syms_of_menu.
9889
9890 * emacs.c (main): Call syms_of_menu.
9891
9892 * keyboard.h: Relocate platform-independent menu definitions from
9893 xmenu.c.
9894
9895 * menu.c: New file. Relocate platform-independent menu
9896 definitions from xmenu.c. Suggested by Adrian Robert.
9897
9898 * xmenu.c: Remove platform-independent menu definitions.
9899 (menu_items menu_items_inuse, menu_items_allocated)
9900 (menu_items_used, menu_items_n_panes)
9901 (menu_items_submenu_depth): Move to keyboard.h.
9902 (init_menu_items, finish_menu_items, unuse_menu_items)
9903 (discard_menu_items, restore_menu_items, save_menu_items)
9904 (grow_menu_items, push_submenu_start, push_submenu_end)
9905 (push_left_right_boundary, push_menu_pane, push_menu_item)
9906 (keymap_panes, single_keymap_panes, single_menu_item)
9907 (list_of_panes, list_of_items, find_and_call_menu_selection)
9908 (xmalloc_widget_value, free_menubar_widget_value_tree)
9909 (parse_single_submenu, digest_single_submenu)
9910 (update_submenu_strings): Move to menu.c.
9911
99122008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9913
9914 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9915
99162008-06-06 Miles Bader <miles@gnu.org>
9917
9918 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9919 face, not frame default.
9920
99212008-06-05 Martin Rudalics <rudalics@gmx.at>
9922
9923 * window.c (pop_up_windows, pop_up_frames)
9924 (display_buffer_reuse_frames, Vpop_up_frame_function)
9925 (Vdisplay_buffer_function, Veven_window_heights)
9926 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9927 (Vspecial_display_function, Vsame_window_buffer_names)
9928 (Vsame_window_regexps, split_height_threshold)
9929 (Vsplit_window_preferred_function): Move those vars to window.el.
9930 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9931 (Fdisplay_buffer): Move those functions to window.el.
9932 (syms_of_window): Remove corresponding declarations.
9933 (display_buffer): New function.
9934 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9935 * dispnew.c (Flast_nonminibuf_frame): New function.
9936 * buffer.c (Fpop_to_buffer): Move to window.el.
9937
99382008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9939
9940 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9941
99422008-06-05 Kenichi Handa <handa@m17n.org>
9943
9944 * coding.c (detect_coding): Fix previous change.
9945 (detect_coding_system): Likewise.
9946
99472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9948
9949 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9950
9951 * keymap.c (Vminibuffer_local_filename_must_match_map):
9952 Rename from Vminibuffer_local_must_match_filename_map.
9953 (syms_of_keymap):
9954 * minibuf.c (Fcompleting_read): Adjust accordingly.
9955 * commands.h: Rename declaration as well.
9956
99572008-06-05 Kenichi Handa <handa@m17n.org>
9958
9959 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9960 family name.
9961 (Ffont_put): Likewise.
9962
9963 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9964 current font-spec.
9965
9966 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9967 is unspecified.
9968
9969 * xfaces.c (realize_x_face): If the font-related face attributes
9970 are the same as those of default face, realize a new fontset from
9971 default->fontset.
9972 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9973
99742008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9975
9976 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9977 (move_it_in_display_line): New wrapper.
9978
9979 * window.c (window_scroll_pixel_based_preserve_x)
9980 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9981 (window_scroll_pixel_based, window_scroll_line_based):
9982 Use them to preserve column positions.
9983 (syms_of_window): Initialize them.
9984
9985 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9986 (HPOS . VPOS) pair.
9987
9988 * dispextern.h (move_it_in_display_line): Declare.
9989
99902008-06-05 Juanma Barranquero <lekktu@gmail.com>
9991
9992 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9993 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9994 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9995
99962008-06-04 Juanma Barranquero <lekktu@gmail.com>
9997
9998 * window.c (Fset_window_parameter): Doc fix.
9999 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10000
100012008-06-04 Joakim Verona <joakim@verona.se>
10002
10003 * window.h (struct window): Add new member window_parameters.
10004
10005 * window.c (Fwindow_parameters, Fwindow_parameter)
10006 (Fset_window_parameter): New defuns.
10007 (syms_of_window): Defsubr the new defuns.
10008 (make_window): Initialize window_parameters to nil.
10009
100102008-06-04 John Paul Wallington <jpw@pobox.com>
10011
10012 * eval.c (Fdefmacro): Doc fix.
10013
100142008-06-04 Kenichi Handa <handa@m17n.org>
10015
10016 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10017 Be sure to call setup_coding_system when we find a proper coding system.
10018 (detect_coding_system): Fix handling of coding->head_ascii.
10019
100202008-06-03 Andreas Schwab <schwab@suse.de>
10021
10022 * font.c (font_prop_validate_spacing): Fix last change.
10023
100242008-06-03 Kenichi Handa <handa@m17n.org>
10025
10026 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10027 (font_parse_fcname): Fix handling of unknown key.
10028
10029 * xfont.c (xfont_list): Try an alias.
10030
10031 * charset.c (char_charset): Return NULL if the arg charset_list is
10032 specified and C doesn't belong to any of them.
10033
100342008-06-02 Chip Coldwell <coldwell@redhat.com>
10035
10036 * font.c (font_pixel_size): Don't take cdr of an integer.
10037
100382008-06-02 Jim Meyering <meyering@redhat.com>
10039
10040 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10041 * alloc.c (xfree): Return right away for a NULL arg.
10042 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10043 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10044 * mac.c (create_apple_event_from_event_ref): Likewise.
10045 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10046 Likewise.
10047 * doprnt.c (doprnt1): Likewise.
10048 * frame.c (frame): Likewise.
10049 * keyboard.c (wipe_kboard): Likewise.
10050 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10051 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10052 * term.c (tty_default_color_capabilities, maybe_fatal)
10053 (delete_tty): Likewise.
10054 * w16select.c (string): Likewise.
10055 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10056 * w32bdf.c (w32_free_bdf_font): Likewise.
10057 * w32fns.c (w32_unload_font): Likewise.
10058 * w32font.c (w32font_close): Likewise.
10059 * window.c (size_window): Likewise.
10060 * xselect.c (receive_incremental_selection): Likewise.
10061 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10062 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10063 * w32.c (stat): Likewise.
10064
10065 Remove useless if-before-free tests.
10066 * editfns.c (Fset_time_zone_rule): Likewise.
10067 * lread.c (nosuffix): Likewise.
10068 * ralloc.c (get_bloc): Likewise.
10069 * regex.c (reg_free): Likewise.
10070 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10071 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10072 * xsmfns.c (smc_save_yourself_CB): Likewise.
10073
100742008-06-02 Kenichi Handa <handa@m17n.org>
10075
10076 * font.c (font_find_for_lface): Handle float font size.
10077 (font_open_for_lface): Likewise.
10078
10079 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10080 comparing the properties.
10081
100822008-06-01 Jason Rumney <jasonr@gnu.org>
10083
10084 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10085 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10086 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10087 Don't add empty script list.
10088 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10089
100902008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10091
10092 * Makefile.in (dot, dotdot): Remove, update users.
10093 ".." has been used elsewhere in the file for a long time.
10094 (LIBXT_STATIC): Remove conditional based on unused variable.
10095
100962008-06-01 Miles Bader <miles@gnu.org>
10097
10098 * xfaces.c (Vface_remapping_alist): New variable.
10099 (syms_of_xfaces): Initialize it.
10100 (enum named_merge_point_kind): New type.
10101 (struct named_merge_point): Add `named_merge_point_kind' field.
10102 (push_named_merge_point): Make cycle detection respect different
10103 named-merge-point kinds.
10104 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10105 Remove face-name alias resolution.
10106 (lface_from_face_name): New definition using
10107 `lface_from_face_name_no_resolve'.
10108 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10109 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10110 (get_lface_attributes): New definition that layers face-remapping on
10111 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10112 (lookup_basic_face): New function.
10113 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10114 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10115 `get_lface_attributes'.
10116 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10117 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10118 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10119
10120 * xdisp.c (init_iterator): Pass base_face_id through
10121 `lookup_basic_face' when we actually use it as a face-id.
10122 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10123 DEFAULT_FACE_ID.
10124
10125 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10126 lookup the initial face-id.
10127
10128 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10129
101302008-06-01 Juanma Barranquero <lekktu@gmail.com>
10131
10132 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10133 (Fremove_text_properties): Fix typos in docstrings.
10134
101352008-05-31 Kenichi Handa <handa@m17n.org>
10136
10137 * font.c (font_list_entities): Fix the car part of data to be
10138 stored in the cache.
10139
10140 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10141
101422008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10143
10144 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10145 Add a `test' argument so another predicate than `equal' can be used.
10146 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10147 (map_char_table): Remove unused vars `c' and `i'.
10148 * lisp.h (Foptimize_char_table): Adjust declaration.
10149 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10150
101512008-05-30 Kenichi Handa <handa@m17n.org>
10152
10153 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10154 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10155 defined.
10156
101572008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10158
10159 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10160 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10161 frame-local settings for the same variable.
10162
101632008-05-30 Kenichi Handa <handa@m17n.org>
10164
10165 * fontset.c (Ffont_info): Move to font.c.
10166 (syms_of_fontset): Delete defsubr of Sfont_info.
10167
10168 * font.c (font_style_to_value, font_score): Delete casting of the
10169 args to xstcasecmp.
10170 (register_font_driver): Increment num_font_drivers only when
10171 registering the driver globally.
10172 (Ffont_info): Move from fontset.c. Handle a font object too.
10173 (syms_of_font): Defsubr Sfont_info.
10174
101752008-05-29 Kenichi Handa <handa@m17n.org>
10176
10177 * coding.h (enum define_coding_utf8_arg_index): New enum.
10178 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10179 coding_attr_utf_bom.
10180 (enum utf_bom_type): Rename from utf_16_bom_type.
10181 (struct utf_16_spec): Adjust for the above change.
10182 (struct coding_system): Add utf_8_bom in `spec' union.
10183
10184 * coding.c (CODING_UTF_8_BOM): New macro.
10185 (enum coding_category): Delete coding_category_utf_8, add
10186 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10187 coding_category_utf_8_sig.
10188 (CATEGORY_MASK_UTF_8): Delete it.
10189 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10190 (CATEGORY_MASK_UTF_8_SIG): New macros.
10191 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10192 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10193 CATEGORY_MASK_UTF_8_SIG.
10194 (CATEGORY_MASK_UTF_8): New macro.
10195 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10196 (detect_coding_utf_8): Check BOM.
10197 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10198 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10199 (encode_coding_utf_16): Likewise.
10200 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10201 (detect_coding, detect_coding_system): Handle utf-8-auto.
10202 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10203 (syms_of_coding): Fix setting up of Vcoding_category_table.
10204
102052008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10206
10207 * process.c (Faccept_process_output): If `millisec' is non-nil,
10208 `seconds' default to 0.
10209 (wait_reading_process_output): Also return non-nil if we read output
10210 from a non-running process.
10211
102122008-05-29 Jason Rumney <jasonr@gnu.org>
10213
10214 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10215 `raster' specified.
10216 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10217 in the uniscribe backend, but disallow any font that has no
10218 unicode subrange support.
10219
102202008-05-29 Juanma Barranquero <lekktu@gmail.com>
10221
10222 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10223 Fix typos in docstrings.
10224
102252008-05-29 Kenichi Handa <handa@m17n.org>
10226
10227 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10228 (Fx_family_fonts): Set frame correctly.
10229
102302008-05-28 Jason Rumney <jasonr@gnu.org>
10231
10232 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10233
102342008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10235
10236 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10237 calling build_annotations.
10238
102392008-05-28 Juanma Barranquero <lekktu@gmail.com>
10240
10241 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10242 (Fencode_coding_string):
10243 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10244 <latin-extra-code-table>: Fix typos in docstrings.
10245 (syms_of_coding) <coding-system-alist>: Doc fix.
10246 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10247
102482008-05-28 Kenichi Handa <handa@m17n.org>
10249
10250 * fontset.c (Ffont_info): Don't call font_close_object.
10251
10252 * font.c (font_parse_family_registry): Use Ffont_put to validate
10253 foundry and family.
10254 (font_delete_unmatched): Don't check spacing.
10255 (font_list_entities): Add spacing to the spec to list fonts.
10256
10257 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10258 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10259
10260 * coding.c (encode_coding_raw_text): Fix previous change.
10261 (encode_coding_object): When the dst_object is a buffer and is
10262 different from src_object, move gap to PT.
10263
102642008-05-27 Chong Yidong <cyd@stupidchicken.com>
10265
10266 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10267
102682008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10269
10270 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10271 all branches. Compute it differently.
10272
10273 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10274
102752008-05-27 Juanma Barranquero <lekktu@gmail.com>
10276
10277 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10278 into "else if () ... else ...".
10279
102802008-05-27 Jason Rumney <jasonr@gnu.org>
10281
10282 * w32font.c (w32font_open_internal): Determine if glyph indices
10283 are likely to work here.
10284
102852008-05-27 Chong Yidong <cyd@stupidchicken.com>
10286
10287 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10288 draw overlap glyphs with appropriate highlighting.
10289
102902008-05-27 Kenichi Handa <handa@m17n.org>
10291
10292 * xfont.c (xfont_open): Fix calculation of font->average_width.
10293
102942008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10295
10296 * casefiddle.c (casify_object): Try to guess better whether the
10297 argument is a byte or a char.
10298
102992008-05-26 Andreas Schwab <schwab@suse.de>
10300
10301 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10302 Always send multiples of format size.
10303
10304 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10305
103062008-05-26 Jason Rumney <jasonr@gnu.org>
10307
10308 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10309 (compute_metrics): Don't set failure if we just cleared the cache.
10310 (w32_weight_table): Remove unused variable.
10311 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10312 backwards compatibility.
10313
103142008-05-25 Kenichi Handa <handa@m17n.org>
10315
10316 * w32term.c (x_draw_glyph_string):
10317 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10318
10319 * xfaces.c: Delete unused function prototypes.
10320 (xstrlwr, font_frame): Delete them.
10321 (clear_face_cache): Delete unused variable.
10322
10323 * xftfont.c (xftfont_open): Delete unused variable.
10324 If underline_thickness is not 1, adjust underline_position.
10325
10326 * ftxfont.c (ftxfont_open): Delete unused variable.
10327
10328 * fontset.c (face_for_char): Optimize for the case of no charset
10329 property.
10330
10331 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10332 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10333 (otf_open, font_otf_capability, generate_otf_features)
10334 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10335 Comment out by surrounding "#if 0" and "#endif" for the moment.
10336 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10337 (syms_of_font): Codes for accessing above commented out.
10338
103392008-05-24 Eli Zaretskii <eliz@gnu.org>
10340
10341 * w32proc.c: Include dispextern.h.
10342
10343 * w32.c: Include dispextern.h.
10344
103452008-05-23 Juanma Barranquero <lekktu@gmail.com>
10346
10347 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10348 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10349 Fix typos in docstrings.
10350
103512008-05-23 Jason Rumney <jasonr@gnu.org>
10352
10353 * xsmfns.c: Remove includes that are already included by config.h.
10354
103552008-05-23 Kenichi Handa <handa@m17n.org>
10356
10357 * charset.c (Qemacs, charset_emacs): New variables.
10358 (char_charset): Fix for non-Unicode characters.
10359 (syms_of_charset): Define charset_emacs.
10360
10361 * w32term.c (x_draw_glyph_string): Be sure to update
10362 s->underline_thickness and s->underline_position. Be sure to draw
10363 underline within the current line area.
10364
10365 * xterm.c (x_draw_glyph_string): Be sure to update
10366 s->underline_thickness and s->underline_position. Be sure to draw
10367 underline within the current line area.
10368
10369 * fontset.c: Delete unused variables and add casting for char *
10370 throughout the file.
10371 (fontset_font): Try the fallback fonts of the current fontset
10372 before consulting the default fontset.
10373
10374 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10375
10376 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10377
103782008-05-22 Jason Rumney <jasonr@gnu.org>
10379
10380 * font.c: Don't include strings.h.
10381
10382 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10383
10384 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10385 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10386 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10387 to call xstrcasecmp.
10388
10389 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10390
10391 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10392
10393 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10394
10395 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10396
103972008-05-22 Kenichi Handa <handa@m17n.org>
10398
10399 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10400
10401 * font.c (font_prop_validate_style): Adjust for the format
10402 change of font_style_table.
10403
10404 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10405 two args.
10406
10407 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10408 two args.
10409
104102008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10411
10412 * minibuf.c (keys_of_minibuf): Delete.
10413 * lisp.h (keys_of_minibuf): Delete.
10414 * emacs.c (main): Don't call keys_of_minibuf.
10415
104162008-05-22 Kenichi Handa <handa@m17n.org>
10417
10418 * ftfont.c (ftfont_resolve_generic_family): Rename from
10419 ftfont_list_generic_family. Return a single family for each
10420 generic family.
10421 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10422 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10423 Call font_add_log.
10424 (ftfont_match): Call font_add_log.
10425
10426 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10427 (FONT_DEBUG): Define it.
10428 (font_add_log): Extern it.
10429 (font_assert): Rename from xassert.
10430
10431 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10432 (xfont_list_family): Call font_add_log.
10433 (xfont_match): Likewise.
10434 (memq_no_quit): Delete.
10435
10436 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10437 call of Ffont_xlfd_name.
10438
10439 * xfaces.c (struct table_entry, slant_table, weight_table)
10440 (swidth_table): Move to font.c.
10441
10442 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10443 xassert are changed to font_assert. Delete many unused variables.
10444 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10445 New variables.
10446 (struct table_entry): Move from xfaces.c and modified.
10447 (weight_table, slant_table, width_table): Move from xfaces.c and
10448 contents adjusted for the change of struct table_entry.
10449 (font_style_to_value, font_style_symbolic): Adjust for the
10450 format change of font_style_table.
10451 (font_parse_family_registry): Don't overwrite existing foundry and
10452 family of font_spec.
10453 (font_score): Fix calculation of diff for sizes.
10454 (font_sort_entites): Call font_add_log.
10455 (font_delete_unmatched): Return a newly created list.
10456 (font_list_entities): Fix previous change. Call font_add_log.
10457 (font_matching_entity, font_open_entity, font_close_entity):
10458 Call font_add_log.
10459 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10460 (Finternal_set_font_style_table): Delete.
10461 (BUILD_STYLE_TABLE): New macro.
10462 (build_style_table): New function.
10463 (Vfont_log, font_log_env_checked): New variables.
10464 (font_add_log): New function.
10465 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10466 Declare Lisp variables "font-weight-table", "font-slant-table",
10467 "font-width-table", and "font-log". Initialize font_style_table.
10468
104692008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10470
10471 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10472
104732008-05-21 Seiji Zenitani <zenitani@mac.com>
10474 Ryo Yoshitake <ryo@shiftmode.net>
10475
10476 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10477 (Vframe_alpha_lower_limit): New variable.
10478 (x_set_alpha): New function.
10479
10480 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10481
10482 * xfns.c (x-create-frame, Qalpha):
10483 Initialize the frame parameter `alpha'.
10484 * xterm.c (OPAQUE, OPACITY): New.
10485 (x_set_frame_alpha): New function.
10486 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10487
10488 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10489 * w32fns.c (w32_frame_parm_handlers): Likewise.
10490
104912008-05-20 Jason Rumney <jasonr@gnu.org>
10492
10493 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10494 truetype fonts to opentype list.
10495
104962008-05-20 Juanma Barranquero <lekktu@gmail.com>
10497
10498 * fontset.c (Ffontset_info): Doc fix.
10499 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10500 <ignore-relative-composition>: Fix typos in docstrings.
10501
10502 * font.c (syms-of-font) <font-encoding-alist>:
10503 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10504 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10505 (Ffont_otf_alternates): Doc fixes.
10506
105072008-05-20 Kenichi Handa <handa@m17n.org>
10508
10509 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10510 font.h through out the file.
10511 (FONT_DRIVERS): Rename from FONTOBJ.
10512 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10513 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10514
10515 * emacs.c (main): Call syms_of_font unconditionally.
10516
10517 * font.h (find_font_encoding): Extern it.
10518
10519 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10520 fontset.c.
194d44e7 10521 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10522 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10523 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10524 only when HAVE_WINDOW_SYSTEM is defined.
10525 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10526 when HAVE_WINDOW_SYSTEM is defined.
10527
10528 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10529 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10530
10531 * xfaces.c: Include font.h unconditionally.
10532 (merge_face_ref, merge_face_vectors)
10533 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10534
105352008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10536
10537 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10538 indirect_variable.
10539 * eval.c (lisp_indirect_variable): New fun.
10540 (Fuser_variable_p): Use it.
10541
105422008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * lisp.h (indirect_variable):
10545 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10546 Use Lisp_Symbol pointers rather than Lisp_Object.
10547 Adjust callers.
10548 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10549 To this end, change calling-convention.
10550
10551 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10552 if some non-hidden buffers are selected by string&pred.
10553
105542008-05-19 Chong Yidong <cyd@stupidchicken.com>
10555
10556 * process.c (wait_reading_process_output): Always check status
10557 when in batch mode.
10558
105592008-05-19 Kenichi Handa <handa@m17n.org>
10560
10561 * font.c (font_list_entities): Fix handling of cache.
10562 (font_matching_entity): Likewise.
10563
10564 * ftfont.c (cs_iso8859_1): Delete.
10565 (ft_face_cache): New variable.
10566 (struct ftfont_info): New member fc_charset_idx.
10567 (ftfont_build_basic_charsets): Delete.
10568 (fc_charset_table): New variable.
10569 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10570 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10571 Callers changed.
10572 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10573 (ftfont_spec_pattern): New argument fc_charset_idx.
10574 Check registry more rigidly. Change callers.
10575 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10576 change of :font-entity property of the font.
10577
10578 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10579 property of the font.
10580
105812008-05-18 Juanma Barranquero <lekktu@gmail.com>
10582
10583 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10584 (Funencodable_char_position, Fcheck_coding_systems_region)
10585 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10586 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10587 (Ffind_operation_coding_system, Fset_coding_system_priority)
10588 (Fcoding_system_eol_type): Doc fixes.
10589
105902008-05-17 Glenn Morris <rgm@gnu.org>
10591
10592 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10593
105942008-05-16 Eli Zaretskii <eliz@gnu.org>
10595
10596 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10597 and st_gid.
10598
10599 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10600 HAVE_WINDOW_SYSTEM is not defined.
10601
10602 * xfaces.c (merge_face_ref, merge_face_vectors)
10603 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10604 HAVE_WINDOW_SYSTEM is defined.
10605 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10606
106072008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10608
10609 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10610
106112008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10612
10613 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10614
106152008-05-15 Kenichi Handa <handa@m17n.org>
10616
10617 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10618 preference.
10619
106202008-05-15 Glenn Morris <rgm@gnu.org>
10621
10622 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10623
106242008-05-15 Chong Yidong <cyd@stupidchicken.com>
10625
10626 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10627 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10628
10629 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10630
106312008-05-15 Kenichi Handa <handa@m17n.org>
10632
10633 * ftfont.c (ftfont_list): Downcase family name to check generic
10634 families.
10635
10636 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10637 font-spec for QCfont value.
10638
10639 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10640 buffer. Check the return value of it.
10641
106422008-05-14 Jason Rumney <jasonr@gnu.org>
10643
10644 * w32term.c (w32_get_glyph_overhangs): Remove.
10645 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10646
106472008-05-14 Kenichi Handa <handa@m17n.org>
10648
10649 * font.c (font_prop_validate): Make nil a valid value.
10650 (font_clear_cache): Check if the cached vector of entities is nil
10651 or not.
10652
106532008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10654
10655 * emacs.c (main_thread): Conditionalize on
10656 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10657 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10658
10659 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10660 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10661 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10662
106632008-05-14 Kenichi Handa <handa@m17n.org>
10664
10665 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10666 has no corresponding coding system.
10667
106682008-05-14 Jason Rumney <jasonr@gnu.org>
10669
10670 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10671
10672 * w32font.h (w32font_open_internal): Update declaration.
10673
10674 * w32font.c (w32font_open_internal): Change last argument from
10675 w32font_info struct to font object. Fill in font object from
10676 font_entity. Get Outline metrics if possible. Use them to
10677 calculate underline position and thickness. Use xlfd name as name
10678 property. Don't set codepage.
10679 (w32font_open): Pass font_object to w32font_open_internal. Don't
10680 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10681 (w32font_draw): Use s->font.
10682 (clear_cached_metrics): Don't clear non-existent blocks.
10683
10684 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10685 font was not found.
10686 (x_draw_glyph_string): Use underline position and thickness from font.
10687
10688 * w32uniscribe.c (uniscribe_open): Pass font_object to
10689 w32font_open_internal.
10690
106912008-05-14 Kenichi Handa <handa@m17n.org>
10692
10693 These changes are to delete all legacy font-handling codes, and
10694 make Emacs use only font-backends.
10695
10696 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10697 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10698
10699 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10700
10701 * charset.h (Vcharset_non_preferred_head)
10702 (Vcurrent_iso639_language): Extern them.
10703
10704 * charset.c (Vcharset_non_preferred_head): New variable.
10705 (Vcurrent_iso639_language): New variable.
10706 (syms_of_charset): Declare it as a Lisp variable.
10707 (char_charset): Don't check non preferred charsets. As a last
10708 resort, return charset_unicode.
10709 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10710
10711 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10712 conditionals. Don't check enable_font_backend. Delete all codes
10713 used only when USE_FONT_BACKEND is not defined.
10714
10715 * dispextern.h (struct glyph_string): Change type of `font' to
10716 `struct font *'.
10717 (struct glyph_string): New member underline_position and
10718 underline_thickness.
10719 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10720 (struct face): Change type of `font' to `struct font *'. Remove
10721 members `font_name', `font_info_id'.
10722 (per_char_metric, encode_char): Delete externs.
10723 (calc_pixel_width_or_height): Adjust the prototype.
10724
10725 * emacs.c (enable_font_backend): Delete extern.
10726 (main): Don't set enable_font_backend. Don't check the command
10727 line argument "-disable-font-backend".
10728
10729 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10730 (enum font_property_index): New members FONT_DPI_INDEX,
10731 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10732 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10733 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10734 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10735 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10736 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10737 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10738 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10739 (struct font_spec, struct font_entity): New structs.
10740 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10741 (struct font): Many members from old "struct font_info" moved to
10742 here. Members font and entity deleted.
10743 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10744 the new font-related objects.
10745 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10746 (CHECK_FONT_GET_OBJECT): Likewise.
10747 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10748 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10749 (struct font_driver): New members case_sensitive anc check. Type
10750 of the member list and open changed.
10751 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10752 (font_symbolic_width, font_find_object, font_get_spec)
10753 (font_set_lface_from_name): Delete extern.
10754 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10755
10756 * font.c: Include <strings.h>.
10757 (enable_font_backend): Delete it.
10758 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10759 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10760 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10761 (null_string): Delete it.
10762 (null_vector): Make it static.
10763 (font_family_alist): Delete it.
10764 (Qnormal): Extern it.
10765 (QCextra, QClanguage): Delete it.
10766 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10767 (font_make_spec, font_make_entity, font_make_object)
10768 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10769 the string. Callers changed.
10770 (font_pixel_size): Adjusted for the format change of font-related
10771 objects.
10772 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10773 (font_style_to_value, font_style_symbolic): New function.
10774 (build_font_family_alist): Delete it.
10775 (font_registry_charsets): Use Fassoc_string instead of
10776 assq_no_quit.
10777 (font_prop_validate_symbol): Don't return null_string.
10778 (font_prop_validate_style): Adjusted for the change of
10779 style-related values in a font vector.
10780 (font_property_table): Delete entries for QClanguage and
10781 QCantialias, add entries for QCavgwidth.
10782 (get_font_prop_index): Delete the 2nd argument FROM.
10783 (font_prop_validate): Arguments changed.
10784 (font_put_extra): Adjusted for the change of font-related objects.
10785 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10786 (font_parse_fcname, font_unparse_fcname)
10787 (font_prepare_composition): Likewise.
10788 (font_parse_family_registry): Renamed from font_merge_old_spec.
10789 (otf_open): Delete the 1st arg entity.
10790 (font_otf_capability): Adjusted for the above change.
10791 (font_score): New arg alternate_families. Adjusted for the change
10792 of font-related objects.
10793 (font_sort_entites): New arg best_only.
10794 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10795 Delete them.
10796 (font_match_p): Check alternate families.
10797 (font_find_object): Delete it.
10798 (font_check_object): New function.
10799 (font_clear_cache): Adjusted for the change of font-related objects.
10800 (font_delete_unmatched): New arg.
10801 (font_list_entities): Call font_driver->list with a spec that
10802 doesn't specify style-related properties.
10803 (font_matching_entity): Arguments changed. Caller changed.
10804 (font_open_entity): Adjusted for the change of font-related objects.
10805 (font_close_object, font_has_char, font_encode_char)
10806 (font_get_name, font_get_spec): Likewise.
10807 (font_spec_from_name, font_clear_prop, font_update_lface):
10808 New functions.
10809 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10810 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10811 (font_at): Adjusted for the change of font-related objects.
10812 (font_range): New function.
10813 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10814 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10815 (Fcopy_font_spec, Fmerge_font_spec): New function.
10816 (Ffont_family_list): Renamed from list-families.
10817 (Finternal_set_font_style_table): Arguments changed.
10818 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10819 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10820 change of font-related objects.
10821 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10822
10823 * fontset.h (struct font_info): Delete it. Most members go to
10824 struct font.
10825 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10826 (enum FONT_SPEC_INDEX): Delete it.
10827 (font_info, list_fonts_func, load_font_func, query_font_func)
10828 (set_frame_fontset_func, find_ccl_program_func)
10829 (get_font_repertory_func, new_fontset_from_font_name): Delete
10830 externs.
10831 (fontset_from_font_name): Extern it.
10832 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10833 (FONT_INFO_FROM_FACE): Deleted.
10834 (face_for_font): Adjust prototype.
10835
10836 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10837 conditionals. Don't check enable_font_backend. Delete all codes
10838 used only when USE_FONT_BACKEND is not defined.
10839 (get_font_info_func, list_font_func, load_font_func)
10840 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10841 (get_font_repertory_func): Delete them.
10842 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10843 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10844 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10845 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10846 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10847 (fontset_compare_rfontdef): New function.
10848 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10849 rfont-defs by qsort. Adjusted for the change of font-group vector.
10850 (load_font_get_repertory): Deleted.
10851 (fontset_find_font): Use new macros to ref/set elements of
10852 font-def and rfont-def.
10853 (fontset_font): Fix the timing of remembering that no font for C.
10854 (free_face_fontset): Do nothing if the face has no fontset.
10855 (face_suitable_for_char_p): Use new macros to ref/set elements of
10856 rfont-def.
10857 (face_for_char): Likewise. Call face_for_char with font_object.
10858 (fs_load_font): Delete. Delete #pragma surrounding it.
10859 (fs_query_fontset): Use strcasecmp instead of strcmp.
10860 (generate_ascii_font_name): Adjusted for the format change of
10861 font-spec.
10862 (Fset_fontset_font): Likewise. Use new macros to set elements of
10863 font-def.
10864 (Fnew_fontset): Use font_unparse_xlfd to generate
10865 FONTSET_ASCII (fontset).
10866 (new_fontset_from_font_name): Deleted.
10867 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10868 a fontset is already created for the font. FIx updating of
10869 Vfontset_alias_alist.
10870 (fontset_ascii_font): Deleted.
10871 (Ffont_info): Adjusted for the format change of font-spec.
10872 (Finternal_char_font): Likewise.
10873 (Ffontset_info): Likewise.
10874 (syms_of_fontset): Don't check load_font_func.
10875
10876 * fns.c (internal_equal): Handle PREV_FONT.
10877
10878 * frame.h: Delete USE_FONT_BACKEND conditional.
10879
10880 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10881 conditionals. Don't check enable_font_backend. Delete all codes
10882 used only when USE_FONT_BACKEND is not defined.
10883 (x_set_font): Call x_new_font, not x_new_fontset2.
10884 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10885 already set for the frame.
10886
10887 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10888 a font-entity by font_make_entity. Use font_intern_prop instead
10889 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10890 font property. If a font is scalable, set avgwidth property to 0.
10891 Set font-entity property by font_put_extra.
10892 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10893 (ffont_driver): Adjusted for the change of struct font_driver.
10894 (ftfont_spec_pattern): New function.
10895 (ftfont_list): Return a list, not vector.
10896 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10897 (ftfont_list_family): Don't downcase names.
10898 (ftfont_free_entity): Deleted.
10899 (ftfont_open): Return a font-object. Adjusted for the change of
10900 struct font. Get underline_thickness and underline_position from
10901 font property. Don't update dpyinfo->smallest_font_height and
10902 dpyinfo->smallest_char_width.
10903 (ftfont_close): Don't free `struct font'.
10904 (ftfont_has_char): Adjusted for the format change of font-entity.
10905 (ftfont_encode_char, ftfont_text_extents): Likewise.
10906
10907 * ftxfont.c (ftxfont_list): Return a list, not vector.
10908 (ftxfont_open): Return a font-object. Adjusted for the change of
10909 struct font. Get underline_thickness and underline_position from
10910 font property. Don't update dpyinfo->smallest_font_height and
10911 dpyinfo->smallest_char_width.
10912 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10913 (ftxfont_draw): Adjusted for the change of struct font.
10914
10915 * image.c (image_ascent): Don't include "charset.h". Include
10916 "character.h" and "font.h".
10917
10918 * lisp.h (enum pvec_type): New member PREV_FONT.
10919 (Fassoc_string): EXFUN it.
10920
10921 * print.c: Include font.h.
10922 (print_object): Handle font-related objects.
10923
10924 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10925 conditionals. Don't check enable_font_backend. Delete all codes
10926 used only when USE_FONT_BACKEND is not defined.
10927 (handle_auto_composed_prop): Do nothing if it->f is not on a
10928 window system. Check how many following characters can be
10929 displayed by the same font.
10930 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10931 'struct font *'.
10932 (get_char_face_and_encoding): Assign the whole encoding task to
10933 the `encode-char' method of a font driver.
10934 (fill_composite_glyph_string): Adjusted for the change of `struct
10935 face' and `struct glyph_string'.
10936 (fill_glyph_string): Likewise.
10937 (get_per_char_metric): Arguments changed.
10938 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10939 and `struct glyph_string'.
10940 (produce_stretch_glyph, calc_line_height_property)
10941 (x_produce_glyphs): Likewise.
10942
10943 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10944 conditionals. Don't check enable_font_backend. Delete all codes
10945 used only when USE_FONT_BACKEND is not defined. Use
10946 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10947 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10948 (Qp): Extern them.
10949 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10950 Deleted.
10951 (struct font_name): Deleted.
10952 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10953 (compare_fonts_by_sort_order): New function.
10954 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10955 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10956 Deleted.
10957 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10958 compare_fonts_by_sort_order.
10959 (Fx_font_family_list): Call Ffont_family_list.
10960 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10961 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10962 (face_symbolic_slant, face_symbolic_swidth)
10963 (split_font_name_into_vector, build_font_name_from_vector)
10964 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10965 (font_rescale_ratio, split_font_name, build_font_name)
10966 (free_font_names, sort_fonts, x_face_list_fonts)
10967 (face_font_available_p, sorted_font_list, cmp_font_names)
10968 (font_list_1, concat_font_list, font_list, remove_duplicates):
10969 Deleted.
10970 (Fx_list_fonts): Use Ffont_list.
10971 (LFACE_AVGWIDTH): Deleted.
10972 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10973 by FONTP.
10974 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10975 (set_lface_from_font_name): Delete it.
10976 (set_lface_from_font): Renamed from
10977 set_lface_from_font_and_fontset. Caller changed. Don't set
10978 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10979 for face.
10980 (merge_face_vectors): Copy font-spec if necessary.
10981 Clear properties of the font-spec if necessary.
10982 (merge_face_ref): Clear properties of the font-spec if necessary.
10983 (Finternal_set_lisp_face_attribute): Likewise.
10984 (set_font_frame_param): Use font_load_for_lface to load a
10985 font-object, and call Fmodify_frame_parameters with it.
10986 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10987 font name by Ffont_xlfd_name.
10988 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10989 QCslant, and QCwidth.
10990 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10991 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10992 Compare fonts by EQ.
10993 (lookup_non_ascii_face): Deleted.
10994 (face_for_font): The 2nd argument changed.
10995 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10996 Check atomic font properties by case insensitive.
10997 (realize_non_ascii_face): Set face->overstrike correctly.
10998 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10999 (dump_realized_face): Get font name from
11000 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11001
11002 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11003 conditionals. Don't check enable_font_backend. Delete all codes
11004 used only when USE_FONT_BACKEND is not defined.
11005 (xic_create_xfontset): Original code deleted and renamed from
11006 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11007 (x_make_gc): Don't set GCFont in GCs.
11008 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11009 opened by "fixed".
11010 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11011 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11012 get_font_repertory_func.
11013
11014 * xfont.c: Include <stdlib.h> and "ccl.h".
11015 (struct xfont_info): New structure.
11016 (xfont_query_font): Deleted.
11017 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11018 moved from xterm.c.
11019 (xfont_driver): Adjusted for the change of struct font_driver.
11020 (compare_font_names): New function.
11021 (xfont_list_pattern): Sort font names case insensitively. Make
11022 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11023 (xfont_list): Return a list, not vector.
11024 (xfont_match): If the font doesn't have QCname property, generate
11025 a name from the other font properties.
11026 (xfont_open): Return a font-object. Adjusted for the change of
11027 struct font. Get underline_thickness and underline_position from
11028 font property. Don't update dpyinfo->smallest_font_height and
11029 dpyinfo->smallest_char_width.
11030 (xfont_close): Don't free struct font.
11031 (xfont_prepare_face): Adjusted for the change of struct font.
11032 (xfont_done_face): Deleted.
11033 (xfont_has_char): Adjusted for the change of struct font.
11034 (xfont_encode_char, xfont_draw): Likewise.
11035 (xfont_check): New function.
11036
11037 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11038 callback function.
11039 (xftfont_match): Adjusted for the format change of font-entity.
11040 (xftfont_open): Adjusted for the format change of font-entity and
11041 font-object. Adjusted for the change of struct font. Return a
11042 font-object. Don't update dpyinfo->smallest_font_height and
11043 dpyinfo->smallest_char_width.
11044 (xftfont_close): Block input while calling XftFontClose.
11045 (xftfont_prepare_face): Don't block input while calling
11046 xftfont_get_colors. Adjusted for the change of struct font.
11047 (xftfont_shape): Return value of error case fixed.
11048
11049 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11050
11051 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11052 conditionals.
11053 (FONT_WIDTH): Return (f)->max_width.
11054 (struct x_display_info): Delete member `font'.
11055 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11056 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11057 (struct x_output): Change type of `font' to `struct font *'.
11058
11059 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11060 conditionals. Don't check enable_font_backend. Delete all codes
11061 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11062 (x_per_char_metric, x_encode_char): Deleted.
11063 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11064 (x_compute_glyph_string_overhangs): Adjusted for the change of
11065 `struct face'.
11066 (x_draw_glyph_string_foreground)
11067 (x_draw_composite_glyph_string_foreground): Likewise.
11068 (x_draw_glyph_string): Likewise. Use font->underline_position and
11069 font->underline_thickness.
11070 (x_new_font): Renamed from x_new_fontset2.
11071 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11072 (x_check_font): Call `check' method of a font driver.
11073 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11074 (x_query_font, x_get_font_repertory): Deleted.
11075 (x_find_ccl_program): Renamed and moved to xfont.c.
11076 (x_redisplay_interface): Adjusted for the change of `struct
11077 redisplay_interface'.
11078
11079 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11080 conditionals. Don't check enable_font_backend. Delete all codes
11081 used only when USE_FONT_BACKEND is not defined. Surround non-used
11082 code by "#ifdef OLD_FONT" and "endif".
11083 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11084
11085 * w32font.h (struct w32font_info): New member.
11086 (FONT_COMPAT): New macro.
11087 (w32font_open_internal): Prototype adjusted.
11088
11089 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11090 OLD_FONT" and "endif".
11091
11092 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11093 conditionals. Don't check enable_font_backend. Delete all codes
11094 used only when USE_FONT_BACKEND is not defined.
11095 (w32font_open): Return a font-object. Make a font-object by
11096 font_make_object. Adjusted for the change of struct w32font_info.
11097 (w32font_close): Don't free struct font. Adjusted for the change
11098 of struct w32font_info.
11099 (w32font_encode_char, w32font_text_extents, w32font_draw):
11100 Adjusted for the change of struct w32font_info.
11101 (w32font_draw): Likewise.
11102 (w32font_list_internal): Return a list, not vector.
11103 (w32font_open_internal): Change the 4th arg to font-object.
11104 Adjusted for the change of struct w32font_info and font-object format.
11105 (add_font_name_to_list): Don't downcase names.
11106 (w32_enumfont_pattern_entity): Make a font-entity by
11107 font_make_entity. Adjusted for the format change of font-entity.
11108 Use FONT_SET_STYLE to set a style-related font property. If a
11109 font is scalable, set avgwidth property to 0. Set font-entity
11110 property by font_put_extra.
11111 (font_matches_spec): Adjusted for the format change of font-entity.
11112 (w32_weight_table, w32_decode_weight): New variables.
11113 (w32_encode_weight): New function.
11114 (fill_in_logfont): Adjusted for the format change of font-spec.
11115 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11116 weight value.
11117 (w32font_driver): Adjusted for the change of struct font_driver.
11118
11119 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11120 conditionals. Don't check enable_font_backend. Surround non-used
11121 code by "#ifdef OLD_FONT" and "endif".
11122 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11123 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11124
11125 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11126 conditionals. Don't check enable_font_backend. Delete all codes
11127 used only when USE_FONT_BACKEND is not defined. Surround non-used
11128 code by "#ifdef OLD_FONT" and "endif".
11129
11130 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11131 (uniscribe_open): Return value changed to font-object.
11132 Adjusted for the format change of font-object.
11133 (uniscribe_otf_capability): Adjusted for the change of struct font.
11134 (add_opentype_font_name_to_list): Don't downcase names.
11135 (uniscribe_font_driver): Adjusted for the change of struct
11136 font_driver.
11137
111382008-05-13 Chong Yidong <cyd@stupidchicken.com>
11139
11140 * dispnew.c (update_frame_1): Check if tty output is still valid
11141 before flushing it.
11142
111432008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11144
11145 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11146 to Gtk+ menus.
11147
111482008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11149
11150 * dired.c (file_name_completion): Tweak the code so as to always do it
11151 in a single pass. Tighten the scope of some variables.
11152
11153 * dired.c (Qdefault_directory): New var.
11154 (file_name_completion): Use it instead of Fexpand_file_name.
11155 (syms_of_dired): Initialize it.
11156
111572008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * fileio.c (double_dollars): Remove dead code.
11160
111612008-05-10 Eli Zaretskii <eliz@gnu.org>
11162
11163 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11164 Mention w32-get-true-file-attributes in doc string.
11165
11166 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11167
111682008-05-09 Glenn Morris <rgm@gnu.org>
11169
11170 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11171 2008-04-23.
11172
111732008-05-09 Eli Zaretskii <eliz@gnu.org>
11174
11175 Support for reporting owner and group of each file on MS-Windows:
11176 * dired.c (stat_uname, stat_gname): New functions, with special
11177 implementation for w32.
11178 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11179
11180 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11181 (dflt_group_name): New static variable.
11182 (dflt_group): Rename from the_group.
11183 (init_user_info): Init dflt_group fields. Get user's group name
11184 from LookupAccountSid.
11185 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11186 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11187 New initialization states.
11188 (globals_of_w32): Initialize them to zero. Initialize the default
11189 group name to "None".
11190 (GetFileSecurity_Name): New global var, the name of the function
11191 to call for GetFileSecurity.
11192 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11193 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11194 (get_file_security, get_security_descriptor_owner)
11195 (get_security_descriptor_group, is_valid_sid)
11196 (get_file_security_desc, get_rid, get_name_and_id)
11197 (get_file_owner_and_group): New functions.
11198 (stat): Use get_file_security_desc and get_file_owner_and_group to
11199 report the owner and primary group of each file. Don't ignore the
11200 high 32 bits of file's size, now that st_size is 64-bit wide.
11201 Fix test when to get true file attributes.
11202 (init_user_info): Use get_rid instead of equivalent inline code.
11203 (fstat): Don't ignore the high 32 bits of file's size.
11204
112052008-05-09 Chong Yidong <cyd@stupidchicken.com>
11206
11207 * image.c (png_load): Use correct bit-depth for setting background
11208 color.
11209
112102008-05-08 Eli Zaretskii <eliz@gnu.org>
11211
11212 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11213 epa-hook.elc.
11214
112152008-05-08 Juanma Barranquero <lekktu@gmail.com>
11216
11217 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11218
112192008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11220
11221 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11222 because the original parameters are in pure storage now.
11223 (mac_window): Remove unused params. Update callers.
11224
112252008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11226
11227 * lread.c (substitute_object_recurse): Use lower-level primitives.
11228 Don't signal errors when traversing sub-char-tables.
11229 Don't loop over all the possible characters when traversing char-tables.
11230
11231 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11232 just like we do in print.c.
11233
112342008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11235
11236 * minibuf.c (Ftry_completion): Remove code left over from when we used
11237 scmp instead of Fcompare_strings.
11238
112392008-05-04 Juanma Barranquero <lekktu@gmail.com>
11240
11241 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11242
112432008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11244
11245 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11246 Create bitmap context in native byte order.
11247
11248 * macterm.c (XDrawLine)
11249 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11250 context in native byte order.
11251
112522008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11253
11254 * config.in: Regenerate.
11255
11256 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11257 New definitions for Image I/O support.
11258 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11259 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11260 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11261 (mac_data_provider_release_data, image_load_image_io)
11262 [USE_MAC_IMAGE_IO]: New functions.
11263 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11264 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11265 (init_image_func_pointer) [MAC_OSX]: Remove function.
11266 (image_load_quartz2d) [MAC_OSX]: Check availability of
11267 CGImageCreateWithPNGDataProvider at compile time.
11268 Use lowercase `false' for boolean constant.
11269 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11270 Use image_load_image_io.
11271 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11272 Don't check MyCGImageCreateWithPNGDataProvider.
11273 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11274 Don't call init_image_func_pointer.
11275
11276 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11277
11278 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11279 Make variable non-static.
11280 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11281 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11282
11283 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11284 (RED_FROM_ULONG): Mask off higher bits.
11285 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11286
11287 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11288 Include AvailabilityMacros.h.
11289 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11290 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11291
112922008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11293
11294 * chartab.c (Fset_char_table_range): If range is t, really set all
11295 chars to that value.
11296
112972008-05-03 Eli Zaretskii <eliz@gnu.org>
11298
11299 * dired.c (Ffile_attributes): Don't allow the device number become
11300 negative.
11301
113022008-05-02 Daiki Ueno <ueno@unixuser.org>
11303
11304 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11305
113062008-05-02 Juri Linkov <juri@jurta.org>
11307
11308 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11309 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11310 DEFAULT argument as a list of default values in docstrings.
11311
113122008-05-01 Chong Yidong <cyd@stupidchicken.com>
11313
11314 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11315
113162008-05-01 Martin Rudalics <rudalics@gmx.at>
11317
11318 * dispnew.c (change_frame_size_1): Preserve small windows when
11319 shrinking frames by calling set_window_height|width with third
11320 arg 2.
11321
11322 * window.h (struct window): Replace field too_small_ok by field
11323 resize_proportionally.
11324
11325 * window.c (make_window): Initialize resize_proportionally.
11326 (enlarge_window): Temporarily set resize_proportionally to make
11327 sure that shrink_windows does scale the window proportionally.
11328 (shrink_windows): When window has resize_proportionally set try
11329 to shrink it proportionally by stealing from other windows.
11330 (struct saved_window, Fset_window_configuration)
11331 (compare_window_configurations): Handle resize_proportionally.
11332 (WINDOW_TOTAL_SIZE): New macro.
11333 (window_min_size, shrink_windows, size_window): Use it.
11334 (check_min_window_sizes): Remove. Invalid values of
11335 window-min-height|width are handled by window_min_size_2 now.
11336 (size_window, Fsplit_window, enlarge_window)
11337 (adjust_window_trailing_edge, grow_mini_window): Don't call
11338 check_min_window_sizes.
11339 (window_min_size_2, window_min_size_1, window_min_size):
11340 New argument safe_p for retrieving "safe" minimum sizes.
11341 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11342 (adjust_window_trailing_edge, grow_mini_window):
11343 Adjust arguments of window_min_size... functions.
11344 (shrink_windows): Argument min_size removed. New argument
11345 safe_p allows shrinking windows to their safe minimum sizes.
11346 Calculate minimum size and decide whether a window shall be
11347 deleted for each window individually.
11348 (size_window): When nodelete_p equals 2, tell shrink_windows to
11349 delete windows only if their new minimum size is no more safe.
11350 (shrink_window_lowest_first): Call window_min_size_1 to make
11351 sure to preserve modeline of bottom-most window when resizing
11352 the minibuffer.
11353 (Fset_window_configuration, Fcurrent_window_configuration)
11354 (compare_window_configurations): Do not handle
11355 window-min-height|width any more.
11356 (syms_of_window): Clarify window-min-height|width doc-strings.
11357
113582008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11359
11360 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11361 some more. Copy some of the code from Ftry_completions.
11362 Remove special case code that dates back to initial revision when the
11363 slash was only added when necessary and that can't trigger nowadays.
11364
113652008-04-27 Kenichi Handa <handa@m17n.org>
11366
11367 * font.c (font_prop_validate): Signal `error' instead of `font'.
11368
113692008-04-29 Jason Rumney <jasonr@gnu.org>
11370
11371 * w32fns.c (Fw32_battery_status): New defun.
11372 (syms_of_w32fns): Defsubr it.
11373
113742008-04-28 Andreas Schwab <schwab@suse.de>
11375
11376 * dired.c (file_name_completion): Fix another mixing of encoded
11377 and decoded names.
11378
113792008-04-28 Juanma Barranquero <lekktu@gmail.com>
11380
11381 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11382
113832008-04-27 Juanma Barranquero <lekktu@gmail.com>
11384
11385 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11386
113872008-04-27 Andreas Schwab <schwab@suse.de>
11388
11389 * dired.c (file_name_completion): Fix inappropriate mixing of
11390 encoded and decoded names.
11391
11392 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11393
11394 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11395
113962008-04-26 Eli Zaretskii <eliz@gnu.org>
11397
11398 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11399 2008-03-31, it's not needed anymore with `struct stat' definition
11400 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11401 for the same reasons.
11402
114032008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11404
11405 * m/sparc.h: Additional redefinitions for GNU/Linux.
11406
114072008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11408
11409 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11410 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11411 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11412 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11413 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11414 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11415 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11416 Likewise.
11417
11418 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11419 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11420 (mac_ax_number_of_characters): Add externs.
11421 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11422 [USE_MAC_TSM]: Likewise.
11423 (mac_handle_text_input_event) [MAC_OSX]:
11424 Handle kEventTextInputOffsetToPos for no active input area case.
11425 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11426 (mac_handle_document_access_event)
11427 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11428 (install_application_handler) [MAC_OSX]: Register handlers for
11429 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11430 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11431 Register mac_handle_document_access_event.
11432
11433 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11434 Make functions non-static.
11435
114362008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11437
11438 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11439 (read_file_name_completion_ignore_case, insert_default_directory)
11440 (Qdefault_directory): Move to minibuffer.el.
11441 (Fread_file_name): Call the new `read-file-name' instead.
11442
114432008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11444
11445 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11446 Make function non-static.
11447 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11448 Remove function.
11449 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11450 Move to mactoolbox.c.
11451 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11452
11453 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11454 (mac_rect_make): New macro.
11455
11456 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11457 instead of float.
11458 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11459 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11460 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11461 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11462 CGRectMake.
11463 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11464 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11465 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11466 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11467 instead of WindowRef in argument type.
11468 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11469 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11470 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11471 instead of DISPLAY. All uses changed.
11472 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11473 (x_calc_absolute_position): Simplify so as not to use
11474 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11475
11476 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11477 instead of WindowRef in argument type.
11478 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11479 [TARGET_API_MAC_CARBON]: Remove externs.
11480 (create_apple_event, mac_event_parameters_to_lisp)
11481 [TARGET_API_MAC_CARBON]: Add externs.
11482
11483 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11484 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11485 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11486 is clicked.
11487 (x_activate_menubar): Remove extern for saved_menu_event_location.
11488 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11489 Move from mac.c.
11490
114912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11492
11493 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11494 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11495
114962008-04-23 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11499 attributes only for local files.
11500
11501 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11502 default to Qlocal.
11503
115042008-04-22 Juri Linkov <juri@jurta.org>
11505
11506 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11507 read-buffer-to-switch instead of using the letter "B".
11508
115092008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11510
11511 * fileio.c (Qdefault_directory): New variable.
11512 (Fread_file_name): Use it to pass `dir' to the completion functions.
11513
115142008-04-20 Chong Yidong <cyd@stupidchicken.com>
11515
11516 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11517
115182008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11519
11520 * keyboard.c (Vpre_help_message): Remove.
11521 (show_help_echo): Remove default C code.
11522
11523 * dired.c (directory_files_internal, file_name_completion):
11524 Only call ENCODE_FILE if the string is indeed decoded.
11525
115262008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11527
11528 * Makefile.in (TOOLKIT_DEFINES): Remove.
11529 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11530
115312008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11532
11533 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11534 (mactoolbox.o): New target.
11535
11536 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11537 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11538
11539 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11540 Use mac_set_frame_window_background instead of XSetWindowBackground.
11541 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11542 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11543 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11544 instead of SetWindowTitleWithCFString.
11545 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11546 Move function to mactoolbox.c.
11547 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11548 Use mac_set_window_modified instead of SetWindowModified.
11549 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11550 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11551 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11552 FrontNonFloatingWindow. Use mac_activate_window instead of
11553 ActivateWindow. Use mac_active_non_floating_window instead of
11554 ActiveNonFloatingWindow.
11555 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11556 Use mac_show_hourglass and mac_hide_hourglass.
11557 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11558 instead of GetGlobalMouse.
11559 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11560 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11561 Use mac_bring_window_to_front instead of BringToFront.
11562 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11563 mactoolbox.c.
11564 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11565 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11566 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11567 mactoolbox.c.
11568
11569 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11570 (XtPointer): Move typedef from macmenu.c.
11571 (enum button_type): Move enum from macmenu.c.
11572 (widget_value): Move typedef from macmenu.c.
11573 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11574 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11575 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11576 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11577 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11578 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11579 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11580 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11581 (Selection): Move typedef from macselect.c.
11582 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11583 macterm.c.
11584 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11585 (mac_is_window_collapsed, mac_bring_window_to_front)
11586 (mac_send_window_behind, mac_hide_window, mac_show_window)
11587 (mac_collapse_window, mac_front_non_floating_window)
11588 (mac_active_non_floating_window, mac_activate_window)
11589 (mac_move_window_structure, mac_move_window, mac_size_window)
11590 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11591
11592 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11593 (enum mac_menu_kind): Move enum to mactoolbox.c.
11594 (min_menu_id): Move variable to mactoolbox.c.
11595 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11596 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11597 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11598 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11599 [TARGET_API_MAC_CARBON]: Likewise.
11600 (XtPointer): Move typedef to macgui.h.
11601 (enum button_type): Move enum to macgui.h.
11602 (widget_value): Move typedef to macgui.h.
11603 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11604 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11605 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11606 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11607 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11608 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11609 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11610 (popup_activated_flag): Make variable non-static.
11611 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11612 (add_menu_item, fill_menu, dispose_menus):
11613 Move functions to mactoolbox.c.
11614 (restore_show_help_function, menu_target_item_handler)
11615 (install_menu_target_item_handler, mac_handle_dialog_event)
11616 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11617 [TARGET_API_MAC_CARBON]: Likewise.
11618 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11619 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11620 (find_and_call_menu_selection, name_is_separator): Make function
11621 non-static.
11622 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11623 to mactoolbox.c.
11624 (set_frame_menubar): Don't call install_menu_quit_handler.
11625 (menu_item_selection): New variable.
11626 (mac_menu_show): Use create_and_show_popup_menu.
11627 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11628 selection but set variable menu_item_selection. All uses changed.
11629 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11630 Call install_menu_quit_handler. Move to mactoolbox.c.
11631
11632 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11633 (Selection): Move typedef to macgui.h.
11634 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11635 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11636 Make variables non-static.
11637 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11638 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11639 Make functions non-static.
11640 (Vmac_service_selection) [MAC_OSX]: Likewise.
11641 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11642 (mac_valid_selection_target_p, mac_clear_selection)
11643 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11644 (mac_put_selection_value, mac_selection_has_target_p)
11645 (mac_get_selection_value, mac_get_selection_target_list)
11646 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11647 Move functions to mactoolbox.c.
11648 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11649 Likewise.
11650 (copy_scrap_flavor_data, mac_handle_service_event)
11651 (install_service_handler) [MAC_OSX]: Likewise.
11652 (syms_of_macselect) <Vmac_dnd_known_types>:
11653 Use mac_dnd_default_known_types.
11654
11655 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11656 Move to mactoolbox.c.
11657 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11658 (Fx_selection_owner_p): Add EXFUN.
11659 (install_window_handler, remove_window_handler, XSetWindowBackground):
11660 Remove externs.
11661 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11662 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11663 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11664 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11665 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11666 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11667 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11668 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11669 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11670 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11671 (mac_valid_selection_target_p, mac_clear_selection)
11672 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11673 (mac_put_selection_value, mac_selection_has_target_p)
11674 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11675 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11676 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11677 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11678 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11679 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11680 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11681 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11682 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11683
11684 * mactoolbox.c: New file.
11685
116862008-04-18 Jason Rumney <jasonr@gnu.org>
11687
11688 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11689
116902008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11691
11692 * character.c (Fmultibyte_char_to_unibyte):
11693 Return latin1 chars unchanged.
11694
11695 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11696 relocated if it points to `name'.
11697
116982008-04-17 Kenichi Handa <handa@m17n.org>
11699
11700 * data.c (Faset): Allow setting a multibyte character in an
11701 ASCII-only unibyte string.
11702
11703 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11704
117052008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11706
11707 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11708 done in config.h.
11709
117102008-04-16 Juanma Barranquero <lekktu@gmail.com>
11711
11712 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11713 (Fchar_direction): Add usage in the docstring.
11714
117152008-04-15 Chong Yidong <cyd@stupidchicken.com>
11716
11717 * keyboard.c (read_key_sequence): Remove always-true checks.
11718
117192008-04-14 Jason Rumney <jasonr@gnu.org>
11720
11721 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11722 compatibility struct, for better underline positioning.
11723
117242008-04-13 David Hansen <david.hansen@gmx.net>
11725
11726 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11727 string.
11728
117292008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11730
11731 * m/hp800.h (XUINT, XSET): Remove.
11732
117332008-04-12 Juanma Barranquero <lekktu@gmail.com>
11734
11735 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11736 previous change.
11737
117382008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11741 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11742
117432008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * keymap.h (map_keymap_canonical): Declare.
11746 * xmenu.c (single_keymap_panes): Use it.
11747
117482008-04-11 Glenn Morris <rgm@gnu.org>
11749
11750 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11751 set the target's value to that of the alias.
11752
117532008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11754
11755 * term.c (set_tty_color_mode): Left over typo.
11756
117572008-04-10 Michael Albinus <michael.albinus@gmx.de>
11758
11759 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11760 only after check for file name handler functions. Signal, when
11761 native functionality is not supported.
11762 (syms_of_fileio): Declare it unconditionally.
11763
117642008-04-10 Jason Rumney <jasonr@gnu.org>
11765
11766 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11767 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11768
11769 * w32.c (logon_network_drive): Also logon to remote drives that
11770 are mapped to drive letters.
11771
117722008-04-10 Glenn Morris <rgm@gnu.org>
11773
11774 * xdisp.c (truncate-partial-width-windows): Doc fix.
11775
117762008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11777
11778 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11779 Move functions to minibuffer.el.
11780 (syms_of_fileio): Don't declare them.
11781
117822008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11783
11784 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11785 (syms_of_minibuf): Remove its initialization.
11786
11787 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11788
117892008-04-09 Juanma Barranquero <lekktu@gmail.com>
11790
11791 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11792
117932008-04-09 Jason Rumney <jasonr@gnu.org>
11794
11795 * makefile.w32-in (distclean): Delete makefile too.
11796 (maintainer-clean): New target.
11797
11798 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11799
11800 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11801 for new font backend and composite cases.
11802
118032008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11804
11805 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11806 Most of the code moved to run_timers.
11807 (do_pending_atimers): Call run_timers.
11808 (run_timers): New function.
11809
11810 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11811 run atimers.
11812
11813 * process.c (wait_reading_process_output): The same as above.
11814
118152008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11816
11817 * minibuf.c (last_exact_completion): Remove variable.
11818 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11819 (complete_and_exit_1, complete_and_exit_2)
11820 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11821 (Fdisplay_completion_list, display_completion_list_1)
11822 (Fminibuffer_completion_help, Fself_insert_and_exit)
11823 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11824 minibuffer.el.
11825 (syms_of_minibuf): Remove corresponding initializations.
11826
11827 * keyboard.c (Qdeactivate_mark): New var.
11828 (command_loop_1): Use it to call `deactivate-mark'.
11829 (syms_of_keyboard): Initialize it.
11830
11831 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11832 to another frame.
11833 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11834 Don't call set_tty_color_mode.
11835 (store_frame_param): Reset previous_frame rather than call
11836 set_tty_color_mode.
11837 * term.c (set_tty_color_mode): Rewrite.
11838 * dispextern.h (set_tty_color_mode): New type.
11839 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11840
118412008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11842
11843 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11844 for generic chars, which do not exist any more in emacs-unicode.
11845
118462008-04-08 Michael Albinus <michael.albinus@gmx.de>
11847
11848 * coding.c (detect_coding_emacs_mule)
11849 (Ffind_operation_coding_system): Fix typo.
11850
118512008-04-08 Jason Rumney <jasonr@gnu.org>
11852
11853 * w32uniscribe.c (SNAME): Extract only symbol name.
11854
11855 * w32font.h (struct w32_metric_cache): New struct.
11856 (w32font_info): Use it.
11857 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11858 (CACHE_BLOCKSIZE): New constants.
11859
11860 * w32font.c (Qja, Qko, Qzh): New symbols.
11861 (syms_of_w32font): Initialise them.
11862 (font_matches_spec): Use them to filter by language.
11863 (recompute_cached_metrics): Remove function.
11864 (compute_metrics, clear_cached_metrics): New functions.
11865 (w32font_encode_char): Use them to manage metric cache.
11866 (w32font_text_extents): Cache metrics for all glyphs on demand.
11867 Delay converting glyph indices to WORD until needed.
11868 (w32font_open_internal): Initialize metric cache to empty.
11869 (registry_to_w32_charset): Charset should always be a symbol.
11870 (fill_in_logfont, list_all_matching_fonts): Family should
11871 always be a symbol.
11872
118732008-04-06 Jason Rumney <jasonr@gnu.org>
11874
11875 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11876 Give up if glyph indices not supported. Use uniscribe obtained
11877 ABC widths for individual metrics. Map glyph clusters back to
11878 characters using fClusterStart flag. Return number of glyphs
11879 produced, not chars processed.
11880 (uniscribe_shape): Map char at FROM to current glyph.
11881
118822008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11883
11884 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11885 Use SetMenuItemHierarchicalMenu.
11886
118872008-04-05 Jason Rumney <jasonr@gnu.org>
11888
11889 * image.c (pbm_load): Allow color values up to 65535.
11890 Throw an error if max_color_idx is outside the supported range.
11891 Report an error when image size is invalid.
11892 Read two bytes at a time when raw images have max_color_idx above 255.
11893
118942008-04-05 Eli Zaretskii <eliz@gnu.org>
11895
11896 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11897 cFileName a file name that includes `?' characters, use the 8+3
11898 alias in cAlternateFileName instead.
11899
119002008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11901
11902 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11903 append "CCL: Quitted" when the CCL program is quitted.
11904 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11905
11906 * ccl.h (struct ccl_program): New member quit_silently.
11907
119082008-04-05 Chong Yidong <cyd@stupidchicken.com>
11909
11910 * search.c (compile_pattern_1): Treat non-nil and non-string of
11911 search-spaces-regexp as nil.
11912
11913 * minibuf.c (Fassoc_string): Tweak docstring.
11914
119152008-04-05 Eli Zaretskii <eliz@gnu.org>
11916
11917 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11918 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11919 2008-03-14 to force inode be positive.
11920
11921 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11922 _S_* ones, since we now use our own sys/stat.h.
11923 (stat, fstat): Don't mangle the inode number.
11924 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11925
119262008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11927
11928 * frame.h (struct frame): Give one more bit to `visible' since we use
11929 values larger than 1 to indicate obscured frames on ttys.
11930
11931 * keymap.c (Qkeymap_canonicalize): New var.
11932 (Fmap_keymap_internal): New fun.
11933 (describe_map): Use keymap-canonicalize.
11934
11935 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11936 (Fundo_boundary): Set them.
11937 (syms_of_undo): Initialize them.
11938 (record_point): Use them instead of last_point_position*.
11939 (last_undo_buffer): Change type.
11940
119412008-04-04 Jason Rumney <jasonr@gnu.org>
11942
11943 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11944 (recompute_cached_metrics): Don't set ascent and descent per char.
11945
11946 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11947 (uniscribe_check_otf): Add GC protection before consing.
11948 Rearrange loop for counting features.
11949
119502008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11951
11952 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11953 buffer with byte-size of source buffer.
11954
119552008-04-03 Chong Yidong <cyd@stupidchicken.com>
11956
11957 * callint.c (Fcall_interactively): Handle temporary region even
11958 when shift-select-mode is off.
11959
119602008-04-03 Jason Rumney <jasonr@gnu.org>
11961
11962 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11963
119642008-04-03 Kenichi Handa <handa@m17n.org>
11965
11966 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11967 (CATEGORY_MASK_UTF_16): Likewise.
11968 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11969 binary file.
11970 (detect_coding): Add null-byte detection for a binary file.
11971 (detect_coding_system): Likewise.
11972
119732008-04-03 Jason Rumney <jasonr@gnu.org>
11974
11975 * w32uniscribe.c: New file.
11976
11977 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11978
11979 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11980
11981 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11982 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11983 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11984 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11985 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11986 (Qphonetic): New symbols.
11987 (syms_of_w32font): Initialize them.
11988 (font_supported_scripts): Use them.
11989 (w32font_list_family): List all charsets.
11990 (w32font_text_extents, recompute_cached_metrics): Fix metric
11991 calculations.
11992 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11993 Give opentype fonts their own format.
11994 (font_matches_spec): New arguments backend and logfont.
11995 Handle :otf spec for uniscribe backend.
11996 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11997 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11998
11999 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12000 font backend.
12001 (globals_of_w32fns): Initialize uniscribe font backend.
12002
12003 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12004 dependencies.
12005 (w32uniscribe.$(O)): New file to build.
12006 (FONT_OBJ): Include w32uniscribe.$(O).
12007 (LIBS): Add uniscribe libraries.
12008
12009 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12010
120112008-04-02 Chong Yidong <cyd@stupidchicken.com>
12012
12013 * callint.c (Vshift_select_mode): New var.
12014 (Finteractive): Document new ^ spec.
12015 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12016 is present.
12017
12018 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12019 (command_loop_1): Avoid running the direct display versions of
12020 forward-char and backward-char if shift-selection may occur.
12021 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12022 shift-translation takes place.
12023
12024 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12025 avoid clobbering by define-minor-mode.
12026
12027 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12028 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12029
12030 * syntax.c (Fforward_word): Add ^ interactive spec.
12031
12032 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12033 (Fscroll_right): Add ^ interactive spec.
12034
120352008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12038
12039 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12040
12041 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12042
120432008-03-31 Juri Linkov <juri@jurta.org>
12044
12045 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12046
120472008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12048
12049 * gtkutil.c (xg_set_geometry): Fix indentation.
12050 (xg_resize_outer_widget): Remove.
12051 (x_wm_size_hint_off): Fix indentation.
12052 (xg_frame_set_char_size): Call flush_and_sync after
12053 gtk_window_resize.
12054 (x_wm_set_size_hint): Pass NULL as geometry window to
12055 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12056 Add menu bar and tool bar height to base height.
12057 (xg_update_frame_menubar, free_frame_menubar)
12058 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12059 (update_frame_tool_bar, free_frame_tool_bar):
12060 Change xg_resize_outer_widget to xg_frame_set_char_size.
12061
120622008-03-30 Michael Albinus <michael.albinus@gmx.de>
12063
12064 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12065 (Fdbus_call_method): New parameter TIMEOUT.
12066 (dbus-send-signal): Optimize UNGCPRO call.
12067
120682008-03-29 Juri Linkov <juri@jurta.org>
12069
12070 * window.c (Fdisplay_buffer): Move call to
12071 Vsplit_window_preferred_function out of conditions that check
12072 if window is eligible for vertical splitting.
12073 When Vsplit_window_preferred_function is non-nil, call it and use
12074 its non-nil return value as window. Otherwise, continue doing
12075 vertical splitting using Fsplit_window with arg horflag=nil.
12076 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12077 default value from `split-window' to nil.
12078
120792008-03-29 Juri Linkov <juri@jurta.org>
12080
12081 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12082 for interactive code letters 'b' and 'B'.
12083
120842008-03-29 Eli Zaretskii <eliz@gnu.org>
12085
12086 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12087 multibyte string.
12088
120892008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12090
12091 * keyboard.c (pending_funcalls): New var.
12092 (timer_check): Run it.
12093 (syms_of_keyboard): Initialize it.
12094 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12095 (Vdelete_terminal_functions): New vars.
12096 (syms_of_terminal): Initialize them.
12097 (Fdelete_terminal): Run delete-terminal-functions.
12098 * xdisp.c (safe_eval): Rewrite.
12099 (safe_call2): New fun.
12100 * frame.c (Qdelete_frame_functions): New var.
12101 (syms_of_frame): Initialize it.
12102 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12103 * lisp.h (safe_call2, pending_funcalls): Declare.
12104
121052008-03-28 Andreas Schwab <schwab@suse.de>
12106
12107 * indent.c (Fmove_to_column): Move declaration before statements.
12108
121092008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12110
12111 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12112 (struct frame): Use bit fields for boolean vars.
12113
12114 * process.c (server_accept_connection): Simplify naming.
12115 (emacs_get_tty_pgrp): Use SDATA.
12116
12117 * coding.c (decode_coding_object): Fix last change.
12118
121192008-03-27 Jason Rumney <jasonr@gnu.org>
12120
12121 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12122
121232008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12124
12125 * charset.c (Fdefine_charset_internal): Change the way of
12126 registering charsets in Vcharset_order_list.
12127 (syms_of_charset): Make the charset `eight-bit' supplementary.
12128
121292008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12130
12131 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12132 operations, to avoid having the difference between pointers
12133 overflow.
12134
121352008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12136
12137 * indent.c (check_display_width): New fun.
12138 (scan_for_column): Use it.
12139
12140 * data.c (syms_of_data): Mark most-positive-fixnum and
12141 most-negative-fixnum as constants.
12142
12143 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12144
12145 * indent.c (scan_for_column): Extract from current_column_1.
12146 Merge with the same code from Fmove_to_column.
12147 (current_column_1, Fmove_to_column): Use it.
12148
121492008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12150
12151 * keymap.c (map_keymap_internal): New fun.
12152 (map_keymap): Use it.
12153 (Fmap_keymap_internal): New fun.
12154 (Fmap_keymap): Remove left-out test from before make_save_value.
12155
12156 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12157
12158 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12159 Use XCAR/XCDR.
12160
12161 * process.h (struct Lisp_Process): Remove filter_multibyte.
12162 * process.c (QCfilter_multibyte): Remove.
12163 (setup_process_coding_systems): Don't use filter_multibyte.
12164 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12165 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12166 (Fset_process_filter_multibyte): Change the coding-system to
12167 approximate the previous behavior.
12168 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12169 coding-system.
12170
12171 * coding.c (decode_coding_object): When not decoding into a buffer,
12172 obey the coding system's preference of (uni|multi)byte.
12173
121742008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12177 every char is changed and has a different byte-length.
12178 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12179 Fix int -> EMACS_INT.
12180
121812008-03-23 David Hansen <david.hansen@gmx.net>
12182
12183 * dbusbind.c (xd_read_message): Remove extra copying of message
12184 strings. Check for NULL `interface' or `member'.
12185
121862008-03-22 Eli Zaretskii <eliz@gnu.org>
12187
12188 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12189 cFileName a file name that includes `?' characters, use the 8+3
12190 alias in cAlternateFileName instead.
12191
121922008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12193
12194 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12195
121962008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12197
12198 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12199 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12200 work on current_buffer only instead (that was already the case
12201 for some of the code anyway).
12202 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12203 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12204 (SET_PT, SET_PT_BOTH): Adjust.
12205 * intervals.h (set_point, temp_set_point, set_point_both)
12206 (temp_set_point_both): Remove redundant declarations.
12207
122082008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * fileio.c (Finsert_file_contents):
12211 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12212 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12213 when buffer != current_buffer anyway.
12214
122152008-03-20 Andreas Schwab <schwab@suse.de>
12216
12217 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12218 as default.
12219
122202008-03-19 Jason Rumney <jasonr@gnu.org>
12221
12222 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12223 (syms_of_w32fns): Initialize them.
12224 (HOURGLASS_ID): New constant.
12225 (x_window_to_frame): Don't check hourglass_window.
12226 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12227 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12228 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12229 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12230 Only change the cursor if hourglass is not active.
12231 (Fx_create_frame): Initialize frame's current_cursor.
12232 (hourglass_atimer): Remove.
12233 (hourglass_started): New function.
12234 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12235 (show_hourglass): Adapt to w32, changing argument to frame.
12236
12237 * w32term.h (struct w32_output): Remove hourglass_window.
12238 Add current_cursor.
12239
12240 * eval.c (call_debugger, Fsignal):
12241 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12242 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12243 (Fexecute_extended_command, cancel_hourglass_unwind):
12244 * minibuf.c (read_minibuf):
12245 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12246
122472008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12248
12249 * window.c (run_funs): New fun.
12250 (run_window_configuration_change_hook): Use it to run the buffer-local
12251 and the global part of the hook.
12252
12253 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12254 (unwind_format_mode_line): Restore selected window.
12255 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12256
122572008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12258
12259 * editfns.c (Fchar_equal): Check they are valid characters.
12260
12261 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12262
122632008-03-17 Andreas Schwab <schwab@suse.de>
12264
12265 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12266 against a charset.
12267
12268 * lisp.h (Fbuffer_list): Declare.
12269
122702008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12271
aac0c6e3
MR
12272 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12273 handlebox_widget is != 0.
12274
122752008-03-16 Juri Linkov <juri@jurta.org>
12276
12277 * callint.c (Fcall_interactively): For interactive code letters
12278 'b' and 'B' put the buffer list into the list of default "future"
12279 values of the minibuffer.
12280
122812008-03-16 Andreas Schwab <schwab@suse.de>
12282
12283 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12284 modifiers.
12285
12286 * regex.c (re_match_2_internal): Correct matching of a charset
12287 against latin-1 characters.
12288
122892008-03-16 Kenichi Handa <handa@m17n.org>
12290
12291 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12292 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12293 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12294 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12295 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12296 CHAR_STRING_ADVANCE.
12297 (produce_chars): Fix for the case that the source and the
12298 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12299 instead of CHAR_STRING_ADVANCE.
12300 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12301 STRING_CHAR_ADVANCE.
12302
123032008-03-15 Andreas Schwab <schwab@suse.de>
12304
12305 * regex.c (re_match_2_internal): Correct matching of eight bit
12306 characters in unibyte strings.
12307
123082008-03-15 Martin Rudalics <rudalics@gmx.at>
12309
12310 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12311 at end of range when it coincides with the end of the buffer.
12312
123132008-03-14 Eli Zaretskii <eliz@gnu.org>
12314
12315 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12316
12317 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12318
123192008-03-14 Jason Rumney <jasonr@gnu.org>
12320
12321 * editfns.c (initial_tz): New variable.
12322 (syms_of_editfns): Initialize it.
12323 (Fset_time_zone_rule): Set it when first called.
12324 Use it when TZSTRING is nil.
12325
12326 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12327 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12328 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12329 (globals_of_w32fns): Initialize them.
12330 (compute_tip_xy): Use them to position tooltips.
12331
123322008-03-14 Glenn Morris <rgm@gnu.org>
12333
12334 * emacs.c (main): Revert previous change.
12335 (standard_args): Revert -internal-script back to -scriptload,
12336 and remove the long-option form.
12337
123382008-03-13 Glenn Morris <rgm@gnu.org>
12339
12340 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12341 Remove option -enable-font-backend.
12342
123432008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12344
12345 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12346
123472008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12348
12349 * xterm.c (x_connection_closed): For GTK: If this is the last
12350 terminal just exit without closing the display.
12351
123522008-03-11 Jason Rumney <jasonr@gnu.org>
12353
12354 * w32font.c (w32font_full_name): Use floor to round.
12355
f0131492 123562008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12357
12358 * sound.c (alsa_configure): Declare vol at beginning of block.
12359
12360 * fontset.c (Ffontset_info): Remove extra semicolon.
12361
123622008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12365 size of resulting string.
12366
123672008-03-10 Jason Rumney <jasonr@gnu.org>
12368
12369 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12370
123712008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12372
12373 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12374 Don't pretend as if characters with display property haven't been
12375 consumed for string-replacing-string case.
12376
123772008-03-08 Kim F. Storm <storm@cua.dk>
12378
12379 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12380 (get_next_display_element, next_element_from_string)
12381 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12382
123832008-03-08 Andreas Schwab <schwab@suse.de>
12384
12385 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12386
123872008-03-06 Jason Rumney <jasonr@gnu.org>
12388
12389 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12390 when charset not specified. Only translate ANSI to unicode when
12391 font_type is truetype.
12392 (w32font_coverage_ok): New function.
12393 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12394
123952008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12396
12397 * lread.c (Fread_char): Resolve modifiers.
12398 (Fread_char_exclusive): Likewise.
12399
12400 * character.c (char_resolve_modifier_mask): New function.
12401 (char_string): Use char_resolve_modifier_mask.
12402 (Fchar_resolve_modifiers): New function.
12403 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12404 function.
12405
124062008-03-04 Jason Rumney <jasonr@gnu.org>
12407
12408 * makefile.w32-in: Always include w32font.c in the build.
12409 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12410
124112008-03-04 Andreas Schwab <schwab@suse.de>
12412
12413 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12414 (versionclean): Likewise.
12415
124162008-03-04 Juanma Barranquero <lekktu@gmail.com>
12417
12418 * .cvsignore: Add oo.
12419
124202008-03-03 Andreas Schwab <schwab@suse.de>
12421
12422 * coding.c (decode_coding_object): Inhibit gap shrinking while
12423 decoding in place.
12424
124252008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12426
12427 * w32term.c: Remove unused include "gnu.h".
12428 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12429
12430 * gnu.h: Rename to ...
12431 * emacs-icon.h: ... this.
12432 * xterm.c: Use emacs-icon.h instead of gnu.h.
12433 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12434
124352008-03-03 Juanma Barranquero <lekktu@gmail.com>
12436
12437 * w32font.c: Include math.h.
12438
124392008-03-03 Jason Rumney <jasonr@gnu.org>
12440
12441 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12442 Compute options separately.
12443 (w32font_open_internal): Set glyph_idx before caching metrics.
12444
12445 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12446 Define if system headers don't.
12447 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12448 (w32font_encode_char): Don't declare here.
12449
12450 * w32font.c (Quniscribe, QCformat): New symbols.
12451 (syms_of_w32font): Define them.
12452 (w32font_has_char): Indicate uncertainty.
12453 (w32font_encode_char): Encode as glyph point. Make static.
12454 (recompute_cached_metrics): New function.
12455 (w32font_open_internal): Use it. Set font to use glyph points
12456 initially. Set format based on type of font.
12457 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12458 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12459 on it. Set format based on information available here.
12460 (add_font_entity_to_list): Identify backend based on opentype_only.
12461
124622008-03-02 Andreas Schwab <schwab@suse.de>
12463
12464 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12465
12466 * coding.c (decode_coding_big5, produce_chars):
12467 Fix typos in last change.
12468
124692008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12470
12471 * gnu.h: New icon.
12472
124732008-03-02 Kenichi Handa <handa@m17n.org>
12474
12475 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12476 `dos', don't decode '\r' if that is the last in the source.
12477 (decode_coding_utf_16, decode_coding_emacs_mule)
12478 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12479 (decode_coding_raw_text, decode_coding_charset): Likewise.
12480 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12481
124822008-03-01 Jason Rumney <jasonr@gnu.org>
12483
12484 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12485
124862008-03-01 Kim F. Storm <storm@cua.dk>
12487
12488 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12489
124902008-03-01 Jason Rumney <jasonr@gnu.org>
12491
12492 * w32font.c (w32font_full_name): New function.
12493 (w32font_open_internal): Use it.
12494
124952008-03-01 Kim F. Storm <storm@cua.dk>
12496
12497 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12498
124992008-03-01 Jason Rumney <jasonr@gnu.org>
12500
12501 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12502
125032008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12504
12505 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12506 xg_frame_resized when the event is for the edit widget.
12507
12508 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12509
12510 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12511 set_char_size.
12512 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12513 operations on widgets here. Just set frame size if needed.
12514 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12515 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12516 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12517 the whole frame.
12518 (xg_create_tool_bar): Move attachment of the tool bar to
12519 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12520 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12521
125222008-03-01 Jason Rumney <jasonr@gnu.org>
12523
12524 * w32fns.c (w32_msg_pump): Disable debug code.
12525
125262008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12527
12528 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12529
125302008-02-29 Chong Yidong <cyd@stupidchicken.com>
12531
12532 * xdisp.c (next_overlay_string): Don't set
12533 overlay_strings_at_end_processed_p if we're currently reading from
12534 a display string.
12535
125362008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12537
12538 * xdisp.c (get_overlay_strings_1): Fix typo.
12539
125402008-02-29 Chong Yidong <cyd@stupidchicken.com>
12541
12542 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12543
125442008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12545
12546 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12547
12548 * xdisp.c (display_mode_element): Cancel the previous change.
12549 (decode_mode_spec): Likewise.
12550 (handle_auto_composed_prop): Don't make composition if it->string
12551 is a string.
12552
125532008-02-27 Kim F. Storm <storm@cua.dk>
12554
12555 * lisp.h (GLYPH): Change type from int to struct with separate char
12556 and face_id members.
12557 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12558 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12559 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12560 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12561 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12562 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12563 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12564 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12565 handle new Lisp glyph code encoding, either an integer or a cons.
12566
12567 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12568 (GLYPH_ALIAS): Delete.
12569 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12570 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12571 (GLYPH_FROM_CHAR): Replace macro by ...
12572 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12573
12574 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12575 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12576 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12577 (GLYPH_INVALID_P): New macro.
12578 (spec_glyph_lookup_face): Update prototype.
12579
12580 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12581 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12582 new glyph code encoding.
12583 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12584 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12585
12586 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12587 Adapt to new glyph type and new glyph code encoding.
12588
12589 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12590
12591 * indent.c (current_column, current_column_1, Fmove_to_column)
12592 (compute_motion): Adapt to new glyph code encoding.
12593
12594 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12595
125962008-02-27 Chong Yidong <cyd@stupidchicken.com>
12597
12598 * process.c (wait_reading_process_output): Check for window
12599 changes caused by timers.
12600 Suggested by Johan Bockgård.
12601
126022008-02-27 Glenn Morris <rgm@gnu.org>
12603
12604 * emacs.c (USAGE1): Add `--disable-font-backend'.
12605
126062008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12607
12608 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12609 is made to the buffer.
12610
126112008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12612
12613 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12614 (face_at_string_position):
12615 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12616 (face_at_string_position):
12617 * xdisp.c (display_string, next_overlay_change):
12618 * buffer.h (overlays_at):
12619 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12620 Update callers.
12621
126222008-02-26 Chong Yidong <cyd@stupidchicken.com>
12623
12624 * editfns.c (Fformat): Doc fix.
12625
126262008-02-26 Juanma Barranquero <lekktu@gmail.com>
12627
12628 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12629 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12630 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12631
126322008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12633
12634 * buffer.c (Fbuffer_swap_text): New function.
12635 (syms_of_buffer): Defsubr it.
12636
126372008-02-25 Chong Yidong <cyd@stupidchicken.com>
12638
12639 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12640
126412008-02-25 Jason Rumney <jasonr@gnu.org>
12642
12643 * w32font.c (w32font_draw): Draw one character at a time when padding.
12644
126452008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12646
12647 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12648 Handle a nil arg. Use run_window_configuration_change_hook.
12649 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12650 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12651 Use run_window_configuration_change_hook.
12652
126532008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12654
12655 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12656 1-pixel width.
12657
126582008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12659
12660 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12661 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12662 if the glyph in the font is zero pixel with.
12663
12664 * dispextern.h (struct glyph_string): New member padding_p.
12665
12666 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12667
12668 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12669
12670 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12671
12672 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12673
12674 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12675
126762008-02-25 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12679
126802008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12681
12682 Allow fine-grained image-cache flushing.
12683 * dispextern.h (struct image): Add `dependencies' field.
12684 (clear_image_caches): Change arg to Lisp_Object.
12685 * image.c (make_image): Initialize `dependencies' field.
12686 (clear_image_cache): Change arg to allow fine-grained flushing.
12687 Perform the flush even if image-cache-eviction-delay is nil.
12688 (clear_image_caches): Change arg to Lisp_Object.
12689 (Fclear_image_cache): Expand meaning of the argument.
12690 (mark_image): Mark `dependencies' field.
12691 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12692 (lface_hash): Use XHASH rather than XFASTINT.
12693 (face_at_buffer_position): Fix int -> EMACS_INT position.
12694 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12695 (select_frame_for_redisplay): Remove code duplication.
12696 (redisplay_internal): Adapt arg to call to clear_image_caches.
12697
126982008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12699
12700 * s/vms4-0.h:
12701 * s/vms4-2.h:
12702 * s/vms4-4.h:
12703 * s/vms5-5.h: Remove, unused.
12704
12705 * s/irix5-2.h:
12706 * s/irix6-0.h:
12707 * s/riscos5.h:
12708 * s/mach-bsd4-3.h:
12709 * m/mips4.h: Remove files for obsolete systems.
12710
12711 * Makefile.in:
12712 * filelock.c:
12713 * unexmips.c:
12714 * m/hp9000s300.h:
12715 * m/iris4d.h:
12716 * s/aix3-1.h:
12717 * s/hpux.h:
12718 * s/msdos.h:
12719 * s/usg5-0.h:
12720 * s/usg5-2-2.h:
12721 * s/usg5-2.h:
12722 * s/usg5-3.h: Remove references to obsolete variables.
12723
12724 * s/irix5-0.h: Remove, move all the contents ...
12725 * s/irix6-5.h: ... here. Simplify.
12726 * config.in: Regenerate.
12727
127282008-02-24 Jason Rumney <jasonr@gnu.org>
12729
12730 * w32term.c (x_draw_glyph_string_background): Clear the background
12731 manually when cleartype is in use.
12732 (x_draw_glyph_string_foreground): Draw text transparently when
12733 cleartype is in use.
12734
12735 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12736 a font into it unless we have to.
12737
127382008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12739
12740 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12741 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12742
aac0c6e3
MR
127432008-02-18 Jason Rumney <jasonr@gnu.org>
12744
12745 * w32fns.c (Fw32_shell_execute): Encode parameters.
12746
127472008-02-09 Eli Zaretskii <eliz@gnu.org>
12748
12749 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12750
127512008-02-05 Juanma Barranquero <lekktu@gmail.com>
12752
12753 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12754
127552008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12756
12757 * xterm.c (x_set_offset): Don't change the gravity if
12758 CHANGE_GRAVITY is -1.
12759
127602008-02-23 Chong Yidong <cyd@stupidchicken.com>
12761
12762 * fileio.c (auto_save_error_occurred): New var.
12763 (auto_save_error): Set it.
12764 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12765 error occurred.
12766
127672008-02-23 Eli Zaretskii <eliz@gnu.org>
12768
12769 * w32.c (globals_of_w32): Add initializations for
12770 g_b_init_get_sid_sub_authority and
12771 g_b_init_get_sid_sub_authority_count.
12772
127732008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12774
12775 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12776 (font_parse_xlfd): Use them for sanity check.
12777 (Finternal_set_font_style_table): Make sure the table is bijective.
12778
12779 Consolidate the image_cache to the terminal struct.
12780 * termhooks.h (P_): Remove redundant def.
12781 (struct terminal): New field `image_cache'.
12782 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12783 of FRAME_X_IMAGE_CACHE.
12784 * xterm.h (struct x_display_info): Remove image_cache field.
12785 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12786 * w32term.h (struct w32_display_info): Remove image_cache field.
12787 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12788 * macterm.h (struct mac_display_info): Remove image_cache field.
12789 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12790 * xterm.c (x_term_init):
12791 * w32term.c (w32_term_init):
12792 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12793 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12794 Remove declarations.
12795 (clear_image_caches, mark_image_cache): New declarations.
12796 * xfaces.c (clear_face_cache):
12797 * xdisp.c (redisplay_internal): Use clear_image_caches.
12798 * image.c (clear_image_cache): Don't check that a frame is on
12799 a window-system before checking if it shares the same cache.
12800 (clear_image_caches): New function.
12801 (Fclear_image_cache): Use it.
12802 (mark_image): Move from allo.c.
12803 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12804 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12805 (mark_object): Don't call mark_image_cache for frames.
12806 (mark_terminals): Call mark_image_cache.
12807
12808 * lisp.h (Fdelete_terminal): Declare.
12809
12810 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12811 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12812 wrong_type_argument.
12813
128142008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12815
12816 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12817 malayalam.el, and tamil.el. Add sinhala.el.
12818
128192008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12820
12821 * xterm.c (x_connection_closed): Consolidate identical tests.
12822 (x_delete_terminal): Don't crash if called via x_connection_closed.
12823
128242008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12825
12826 * xdisp.c (decode_mode_spec): New arg string.
12827 (display_mode_element): Adjust for the above change.
12828
128292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12830
12831 * callint.c (Fcall_interactively): Use AREF.
12832
128332008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12834
12835 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12836
128372008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12838
12839 * xfns.c (Fx_show_tip): Set string to " " if empty.
12840
128412008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12842
12843 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12844 with Qt.
12845
128462008-02-17 Kenichi Handa <handa@m17n.org>
12847
12848 * ftfont.c (ftfont_shape): Return Lispy number.
12849
12850 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12851 for GCs.
12852 (Finternal_set_font_selection_order): Call font_update_sort_order
12853 only when enable_font_backend is set.
12854 (realize_x_face): Set face->font_info to that of default face only
12855 when enable_font_backend is set.
12856
12857 * xdisp.c (handle_composition_prop): Set it->c to the fist
12858 character of the composed region.
12859 (fill_composite_glyph_string): Set base_face->font_info to
12860 s->font_info. Get a face for ascii from base_face->ascii_face.
12861 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12862 with a face already decided.
12863 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12864 non-negative.
12865 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12866 call font_prepare_composition unconditionally.
12867
12868 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12869
12870 * xterm.h (struct x_display_info): New member font.
12871
12872 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12873 (x_set_mouse_face_gc, x_new_font): Likewise.
12874 (x_term_init): Setup display_info->font.
12875 (x_delete_terminal): Free display_info->font.
12876
12877 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12878
12879 * ftxfont.c (ftxfont_default_fid): Delete it.
12880 (ftxfont_open): Set xfont->fid to 0.
12881 (ftxfont_end_for_frame): Clear data specific to the frame and the
12882 font-driver.
12883
12884 * xftfont.c (xftfont_default_fid): Delete it.
12885 (xftfont_open): Set xfont->fid to 0.
12886
12887 * fontset.c (FONTSET_OBJLIST): New macro.
12888 (fontset_find_font): Update font-object list of the fontset.
12889 (free_realized_fontset): New function.
12890 (free_face_fontset): Call free_realized_fontset.
12891 (Ffont_info): Call font_close_object only when enable_font_backend
12892 is set.
12893
12894 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12895 [HAVE_NTGUI]: Include w32term.h.
12896 [MAC_OS]: Include macterm.ch.
12897 (font_otf_ValueRecord): Use make_number.
12898 (font_finish_cache): Fix handling of reference count.
12899 (font_clear_cache): Update num_fonts.
12900 (font_open_entity): Update smallest_char_width and
12901 smallest_font_height of the frame.
12902 (font_close_object): Update num_fonts.
12903 (Fclear_font_cache): Fix finding the target cache data.
12904
129052008-02-16 Glenn Morris <rgm@gnu.org>
12906
12907 * fontset.c (Finternal_char_font): Fix compilation warning.
12908
129092008-02-16 Eli Zaretskii <eliz@gnu.org>
12910
12911 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12912 instead of char arrays. Enlarge the size of array passed to
12913 get_token_information.
12914
12915 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12916 warnings.
12917
129182008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12919
12920 * .gdbinit: Don't set `args', it breaks gdb --args.
12921
129222008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12923
12924 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12925 within a narrowed buffer.
12926
129272008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12928
12929 * coding.c (decode_coding_object, encode_coding_object):
12930 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12931
129322008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12933
12934 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12935 hardcoding 1.
12936 (detect_coding_system):
12937 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12938 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12939 * insdel.c (insert_from_gap):
12940 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12941 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12942 (string_to_multibyte):
12943 * character.c (chars_in_text, multibyte_chars_in_text):
12944 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12945
12946 * character.h (FETCH_STRING_CHAR_ADVANCE)
12947 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12948 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12949 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12950
12951 * casefiddle.c (casify_region): Only call after-change and composition
12952 functions on the part of the region that was changed.
12953
12954 * keyboard.c (read_avail_input):
12955 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12956
129572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12958
12959 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12960 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12961
129622008-02-11 Juanma Barranquero <lekktu@gmail.com>
12963
12964 * w32menu.c (push_submenu_start, push_submenu_end)
12965 (push_left_right_boundary, push_menu_pane, push_menu_item):
12966 * keyboard.c (read_key_sequence): Don't pass args with side effects
12967 to AREF, it fails when compiling with -DENABLE_CHECKING.
12968
129692008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12970
12971 * Makefile.in (${lispsource}international/charprop.el):
12972 Delete this target.
12973
12974 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12975 emacs-unicode-2.
12976
129772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12978
12979 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12980
129812008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12982
12983 * frame.c (Qnoelisp): New symbol.
12984 (syms_of_frame): Initialize it.
12985 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12986 harmless Elisp code, from a strong `force' from x_connection_closed.
12987 * frame.h (Qnoelisp): Declare.
12988 * xterm.c (x_connection_closed): Pass `noelisp'.
12989
12990 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12991 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12992 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12993 rather than `int' for the type of `type'.
12994
129952008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12996
12997 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12998
12999 * Makefile.in (GNUC): Remove support for gcc-1.x.
13000
130012008-02-10 Richard Stallman <rms@gnu.org>
13002
13003 * lisp.h (ASET): Use AREF, not ASLOT.
13004
130052008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13006
13007 * lisp.h (ASET): Check bounds.
13008
130092008-02-10 Glenn Morris <rgm@gnu.org>
13010
13011 * buffer.c (mode-name): Doc fix.
13012
130132008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13014
13015 * Makefile.in:
13016 * emacs.c:
13017 * gmalloc.c:
13018 * keyboard.c:
13019 * lisp.h:
13020 * m/ibm370aix.h:
13021 * process.c:
13022 * regex.c:
13023 * s/hpux.h:
13024 * sysdep.c:
13025 * sysselect.h:
13026 * systty.h:
13027 * unexec.c:
13028 * w32term.c:
13029 * xsmfns.c:
13030 * xterm.c: Remove code that deals with obsolete variables.
13031
13032 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13033
13034 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13035 nothing else needs it anymore.
13036
130372008-02-09 Eli Zaretskii <eliz@gnu.org>
13038
13039 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13040 instead of unibyte_char_to_multibyte.
13041
130422008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13043
13044 * s/gnu-linux.h: Remove commented out code.
13045
13046 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13047
13048 * Makefile.in: Update what RMS says about using autoconf.
13049 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13050 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13051 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13052 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13053
130542008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13055
13056 * keymap.c (Fkey_description): Move side effect outside of macro call.
13057
13058 * xfaces.c (Finternal_make_lisp_face):
13059 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13060
13061 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13062 (syms_of_fontset): Use ASET.
13063
13064 * fns.c (concat): Move side effect outside of macro call.
13065 (hash_clear): Use ASET.
13066
130672008-02-08 Richard Stallman <rms@gnu.org>
13068
13069 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13070 If FORCE, and frame has a surrogate minibuffer for another frame,
13071 delete the other frame first.
13072
130732008-02-07 Timo Savola <timo.savola@iki.fi>
13074
13075 * xterm.c (x_detect_focus_change): Handle embed client message.
13076 (handle_one_xevent): Ditto.
13077 (handle_one_xevent): If embedded and we get a button press/release,
13078 request focus.
13079 (xembed_set_info, xembed_send_message): New functions.
13080 (x_make_frame_visible): Call xembed_set_info if embedded.
13081 (x_make_frame_invisible): Call xembed_set_info if embedded.
13082 (x_term_init): Initialize Xatom_XEMBED.
13083 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13084 (x_iconify_frame): Ditto.
13085
13086 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13087 (enum xembed_info, enum xembed_message, enum xembed_focus)
13088 (enum xembed_modifier, enum xembed_accelerator): New.
13089 (xembed_set_info, xembed_send_message): Declare.
13090 (FRAME_X_EMBEDDED_P): New.
13091
13092 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13093 gtk_plug_new.
13094
13095 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13096 window ID of a frame.
13097 (x_window): Reparent frame if embedded.
13098 (Fx_create_frame): Don't set border width if embedded.
13099
13100 * emacs.c (USAGE3): Add --parent-id.
13101 (standard_args): Ditto.
13102
131032008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13104
13105 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13106
131072008-02-07 Jim Meyering <meyering@redhat.com>
13108
13109 Use "do...while (0)", not "if (1)...else" in macro definitions.
13110 The latter provokes a warning from gcc about the empty else, when
13111 followed by ";". Also, without that trailing semicolon, it would
13112 silently swallow up any following statement.
13113 * syntax.h (SETUP_SYNTAX_TABLE)
13114 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13115 * buffer.h (DECODE_POSITION): Likewise.
13116 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13117 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13118 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13119 (FETCH_CHAR_ADVANCE): Likewise.
13120 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13121
131222008-02-07 Jim Meyering <meyering@redhat.com>
13123
13124 * lread.c [lint]: Don't include <sys/inode.h>.
13125
131262008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13127
13128 * xselect.c (x_handle_dnd_message):
13129 * xmenu.c (digest_single_submenu, xmenu_show):
13130 * xdisp.c (with_echo_area_buffer_unwind_data)
13131 (format_mode_line_unwind_data, unwind_format_mode_line)
13132 (display_menu_bar):
13133 * eval.c (Ffetch_bytecode):
13134 * doc.c (store_function_docstring):
13135 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13136 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13137 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13138
131392008-02-07 Kenichi Handa <handa@m17n.org>
13140
13141 * ftxfont.c (ftxfont_open): Don't set
13142 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13143
13144 * ftfont.c (ftfont_open): Fix previous change.
13145
131462008-02-06 Jason Rumney <jasonr@gnu.org>
13147
13148 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13149 Use cached metrics for ASCII characters.
13150 (w32font_open_internal): Don't set font's owning_frame.
13151 Cache metrics for ASCII characters.
13152
13153 * w32font.h (struct w32font_info): Add ascii_metrics.
13154 Remove owning_frame.
13155
131562008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13157
13158 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13159 to negative value.
13160
13161 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13162
13163 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13164
13165 * charset.c (syms_of_charset): Set QCtest and Qeq.
13166
131672008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13168
13169 * process.c (Fstart_process):
13170 * callproc.c (Fcall_process): Handle the case where
13171 Funhandled_file_name_directory returns nil.
13172
13173 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13174 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13175 * font.c (check_gstring): Use them and AREF to access the vector before
13176 we know it's really a gstring.
13177 (Ffont_shape_text): Fix typo.
46e722a9 13178 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13179
13180 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13181 Declare.
13182
13183 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13184
131852008-02-05 Jason Rumney <jasonr@gnu.org>
13186
13187 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13188 Set smallest_font_height and smallest_char_width in display info.
13189
131902008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13191
13192 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13193
131942008-02-05 Miles Bader <miles@gnu.org>
13195
13196 * xfaces.c (get_lface_attributes, merge_named_face)
13197 (lookup_named_face, lookup_derived_face, realize_named_face):
13198 Revert 2008-02-01 change by cyd@stupidchicken.com.
13199
132002008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13201
13202 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13203 fallback fonts.
13204 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13205
132062008-02-04 Jason Rumney <jasonr@gnu.org>
13207
13208 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13209 set full_name.
13210 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13211
132122008-02-03 Jason Rumney <jasonr@gnu.org>
13213
13214 * makefile.w32-in (OBJ1): Include font.o here.
13215 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13216
132172008-02-02 Jason Rumney <jasonr@gnu.org>
13218
13219 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13220
132212008-02-01 Jason Rumney <jasonr@gnu.org>
13222
13223 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13224
13225 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13226
132272008-02-01 Andreas Schwab <schwab@suse.de>
13228
13229 * Makefile.in (shortlisp, lisp): Update for rename of
13230 ../lisp/language/myanmar.el.
13231
132322008-02-01 Chong Yidong <cyd@stupidchicken.com>
13233
13234 * xfaces.c (get_lface_attributes): Delete function.
13235 (merge_named_face, lookup_named_face, lookup_derived_face)
13236 (realize_named_face): Call lface_from_face_name directly, and use
13237 the fact that merge_face_vectors does not alter its FROM argument.
13238
132392008-02-01 Jason Rumney <jasonr@gnu.org>
13240
13241 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13242 input in the default locale. Handle non-Unicode multibyte input.
13243
132442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13245
13246 * fontset.c (reorder_font_vector): Exclude nil elements from the
13247 font group. Don't try multiple fonts.
13248 (fontset_font): Adjust for the above change.
13249 (Finternal_char_font): Return nil if the found font doesn't
13250 contain the character ch.
13251
13252 * Makefile.in (lisp, shortlisp): Add cham.el.
13253
132542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13255
13256 * font.h (FONTP): Make it return 1 also for a font-object.
13257
13258 * .gdbinit (xfontset): New function.
13259
13260 * font.c (font_find_for_lface): Check if the character C is
13261 supported or not only for the first font.
13262
13263 * fontset.c (reorder_font_vector): Fix typo.
13264 (fontset_find_font): Don't add a font-spec specifying a script.
13265 Use 0 (not Qt) for the indication of empty font-group. Change the
13266 format of RFONT-DEF. Return Qt if no font in the font-group
13267 support the character.
13268 (fontset_font): Adjust for the above change. If no font was
13269 found the character, remember that.
13270 (face_for_char): Adjust for the change of RFONT-DEF.
13271 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13272 no font for the target.
13273 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13274
132752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13276
13277 * font.c (font_load_for_face): Handle the case that the font in
13278 face->lface is a string.
13279
132802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13281
13282 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13283
132842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13285
13286 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13287 Fix previous change. If the frame is not on a window system,
13288 signal an error.
13289
132902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13291
13292 * coding.c (decode_coding_object, encode_coding_object): Adjust
13293 marker positions after conversion.
13294
13295 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13296
132972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13298
13299 * font.c (font_find_for_lface): Fix the handling of the return
13300 value of font_has_char.
13301 (Ffont_shape_text): Fix previous change.
13302
13303 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13304 (fontset_ref_and_range): Delete it.
13305 (fontset_find_font): Call char_table_ref_and_range instead of
13306 FONTSET_REF_AND_RANGE.
13307 (make_fontset): Don't setup font groups of Latin here.
13308 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13309 (new_fontset_from_font): Make the specified font the default for
13310 all Latin characters.
13311
133122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13313
13314 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13315 is on a window system before accessing the fontset of the frame.
13316
133172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13318
13319 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13320
13321 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13322 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13323
13324 * font.c (Ffont_shape_text): If the font driver doesn't have a
13325 shaper function, make zero-width glyphs to have at least one-pixel
13326 width. Fix setting of `to' field of glyphs.
13327
133282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13329
13330 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13331 glyphs.
13332
13333 * font.h (struct font_driver): Improve docstring of member `shape'.
13334
133352008-02-01 Kenichi Handa <handa@m17n.org>
13336
13337 * composite.c (syms_of_composite): Fix docstring of
13338 auto-composition-function.
13339
13340 * font.h (LGLYPH_SIZE): New macro.
13341
13342 * font.c (Ffont_fill_gstring): Stop filling when a character not
13343 supported by the font is found.
13344 (Ffont_shape_text): When a shape callback function returns nil,
13345 try at most two more times with larger gstring.
13346 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13347
13348 * xdisp.c (handle_auto_composed_prop): Change the argument to
13349 auto-composition-function.
13350
13351 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13352 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13353 Lispy glyph and store it in the lgstring.
13354
13355 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13356
13357 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13358
133592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13360
13361 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13362
13363 * fontset.c (Vfont_encoding_charset_alist): New variable.
13364 (syms_of_fontset): DEFVAR it.
13365 (reorder_font_vector, fontset_find_font): Optimize for the case of
13366 no need of reordering.
13367 (face_for_char): Map the charset property by
13368 Vfont_encoding_charset_alist.
13369
133702008-02-01 Jason Rumney <jasonr@gnu.org>
13371
13372 * w32font.c (logfonts_match): Don't check adstyle here.
13373 (font_matches_spec): Check here against physical font instead.
13374 (add_font_entity_to_list): Avoid some substitutions.
13375
13376 * font.c (font_parse_fcname): Default weight and slant to normal.
13377 (font_score): Prefer normal fonts if weight or slant unspecified.
13378 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13379 match freetype scores.
13380
133812008-02-01 Jason Rumney <jasonr@gnu.org>
13382
13383 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13384 font, as it may have been deleted.
13385 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13386 most common hyphenless variation.
13387 (logfonts_match): Check generic family.
13388 (font_matches_spec): Don't check generic family here.
13389 (fill_in_logfont): Set generic family based on adstyle.
13390
13391 * w32font.h (w32font_get_cache): Update declaration.
13392
133932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13394
13395 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13396
13397 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13398 If none of the new drivers are available, call font_update_drivers
13399 with the old drivers.
13400
13401 * w32font.c (w32font_get_cache): Adjust the argument type.
13402
13403 * xfont.c (xfont_get_cache): Adjust the argument type.
13404
13405 * font.h (struct font_driver): Change argument type of get_cache.
13406
13407 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13408
13409 * font.c (Ffont_get): Fix arguments to Fassoc.
13410 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13411 (font_clear_cache): New function.
13412 (font_list_entities, font_matching_entity): Use font_get_cache.
13413 (font_update_drivers): Call font_clear_cache when finishing a driver.
13414
13415 * fontset.c (fontset_find_font): Fix previous change.
13416
134172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13418
13419 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13420 dpyinfo->font_table.
13421 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13422 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13423
13424 * font.c (font_at): Handle the case that the arg C is negative.
13425 Handle the unibyte case.
13426 (Ffont_at): Call font_at with the arg C -1.
13427
13428 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13429 the position here, and call font_at with the arg C -1.
13430 Don't check the range of the existing composition at the point.
13431
134322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13433
13434 * fontset.c (fontset_add): New args charset_id and family.
13435 Change caller.
13436 (load_font_get_repertory, fontset_find_font): Assume that
13437 font_spec is always a font-spec object.
13438 (Fset_fontset_font): Always store a font-spec object in a fontset.
13439
13440 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13441 instead of get_property_and_range.
13442
134432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13444
13445 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13446 (xftfont_open): Don't keep locking face.
13447 (xftfont_close): Don't unlock face.
13448 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13449
13450 * fontset.c (fontset_find_font): Don't prefer a font of
13451 supplementary charset.
13452
134532008-02-01 Kenichi Handa <handa@m17n.org>
13454
13455 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13456 script, langsys_tag to langsys, new member script.
13457 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13458 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13459 listing to the script specified in that property. Fix arg to
13460 OTF_check_features.
13461
134622008-02-01 Jason Rumney <jasonr@gnu.org>
13463
13464 * w32font.h: New file.
13465
13466 * w32font.c: Include it.
13467 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13468 (w32font_open): Set owning_frame.
13469 (w32font_text_extents): Use owning_frame.
13470 (struct font_callback_data): Add opentype_only field.
13471 (add_font_entity_to_list): Use it to filter fonts.
13472 Don't check against full name.
13473 (w32font_list_internal): New function.
13474 (w32font_list): Use it.
13475 (w32font_match_internal): New function.
13476 (w32font_match): Use it.
13477 (w32font_open_internal): New function.
13478 (w32font_open): Use it.
13479 (w32font_get_cache, w32font_close, w32font_has_char)
13480 (w32font_encode_char, w32font_text_extents, w32font_draw):
13481 Make non-static.
13482
13483 * makefile.w32-in (w32font.o): Depend on w32font.h.
13484
134852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13486
13487 * charset.c (Fdefine_charset_internal): Record a supplementary
13488 charset at the tail of Vcharset_order_list.
13489
13490 * font.c (Ffont_shape_text): Fix the return value.
13491
13492 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13493
13494 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13495
134962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13497
13498 * ftfont.c (struct OpenTypeSpec): New struct.
13499 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13500 (ftfont_get_open_type_spec): New function.
13501 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13502
13503 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13504
135052008-02-01 Jason Rumney <jasonr@gnu.org>
13506
13507 * w32font.c (add_font_entity_to_list): Compare only the beginning
13508 of full name.
13509
135102008-02-01 Kenichi Handa <handa@m17n.org>
13511
13512 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13513 Never return HANDLED_RECOMPUTE_PROPS.
13514
135152008-02-01 Kenichi Handa <handa@m17n.org>
13516
13517 * font.c (font_gstring_produce): Delete it.
13518
13519 * composite.h (COMPOSITION_METHOD):
13520 Handle COMPOSITION_WITH_GLYPH_STRING.
13521
135222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13523
13524 * xfont.c (Qx): Delete.
13525 (syms_of_xfont): Don't initialize Qx.
13526
13527 * composite.h (enum composition_method):
13528 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13529
135302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13531
13532 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13533 (choose_face_font): Accept new form of font-spec.
13534
13535 * frame.h (font_driver_list): Declare it unconditionally.
13536 (struct frame): Define members font_driver_list and font_data_list
13537 unconditionally.
13538
13539 * fontset.c: Include "font.h" unconditionally.
13540 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13541 (Fset_fontset_font): Accept a font-spec object.
13542
13543 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13544 PIXEL_SIZE part a wild card.
13545
13546 * dispextern.h (struct glyph_string): Define members clip and
13547 num_clips unconditionally.
13548 (struct face): Define members font_info and extra unconditionally.
13549
13550 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13551 ftfont_info only when HAVE_LIBOTF is defined.
13552
135532008-02-01 Andreas Schwab <schwab@suse.de>
13554
13555 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13556 and end.
13557
135582008-02-01 Jason Rumney <jasonr@gnu.org>
13559
13560 * w32font.c (w32font_driver): Add new fields.
13561
135622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13563
13564 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13565 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13566 (LIBES): Add @M17N_FLT_CFLAGS@.
13567
13568 * composite.c (compose_text): Don't treat the new style
13569 composition specially.
13570
13571 * emacs.c (main): Call syms_of_font unconditionally.
13572
13573 * font.h (FONT_ENTITY_NOT_LOADABLE)
13574 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13575 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13576 (struct font_driver): New member shape.
13577 (font_registry_charsets): Extern it.
13578 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13579 (font_otf_capability, font_drive_otf): Delete their externs.
13580
13581 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13582 (font_charset_alist, font_registry_charsets): Move from xfont.c
13583 and rename.
13584 (font_prop_validate_otf): New function.
13585 (font_property_table): Register it for QCotf.
13586 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13587 (font_drive_otf): Delete.
13588 (font_prepare_composition): New arg F. Adjust for the change of
13589 lispy gstring.
13590 (font_find_for_lface): New arg C.
13591 (font_load_for_face): Adjust for the change of font_find_for_lface.
13592 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13593 lispy gstring.
13594 (Ffont_shape_text): New function.
13595 (Fopen_font): If the font size is not given, use 12-pixel.
13596 (Ffont_at): New arg STRING.
13597 (syms_of_font): Initalize font_charset_alist.
13598 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13599 conditionally.
13600
13601 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13602 fonts of the same font-spec. Change the format of RFONT-DEF.
13603 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13604 Adjust for the change of RFONT-DEF.
13605 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13606
13607 * ftfont.h: New file.
13608
13609 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13610 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13611 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13612 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13613 font_otf_capability and font_drive_otf, set ftfont_shape.
13614 (ftfont_list): Adjust for the change of :otf property value.
13615 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13616 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13617 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13618 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13619 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13620 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13621
13622 * w32term.c (x_draw_composite_glyph_string_foreground):
13623 Adjust for the change of lispy gstring.
13624
13625 * xdisp.c (handle_composition_prop): Adjust for the change of
13626 lispy gstring. Call a function for auto-composition with the
13627 third arg it->window.
13628 (fill_composite_glyph_string): Adjust for the change of lispy string.
13629 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13630
13631 * xfaces.c (set_font_frame_param): Adjust for the change of
13632 font_find_for_lface.
13633
13634 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13635 (xfont_registry_charsets): Likewise. Change caller.
13636 (syms_of_xfont): Don't handle x_font_charset_alist.
13637
13638 * xftfont.c: Include "ftfont.h".
13639 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13640 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13641 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13642 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13643 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13644 Set xftfont_driver.shape to xftfont_shape.
13645
13646 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13647 the change of lispy gstring.
13648
136492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13650
13651 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13652
136532008-02-01 Jason Rumney <jasonr@gnu.org>
13654
13655 * w32font.c (w32font_draw): Fill background manually.
13656
136572008-02-01 Jason Rumney <jasonr@gnu.org>
13658
13659 * font.c (Qfontp): Remove unused symbol.
13660 (QCantialias): New symbol.
13661 (syms_of_font): Define it.
13662 (font_property_table): Set a validator for QCantialias.
13663
13664 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13665 Define if not already.
13666 (QCfamily): Share with xfaces.c.
13667 (Qstandard, Qsubpixel, Qnatural): New symbols.
13668 (syms_of_w32font): Define them. Don't define QCfamily here.
13669 (w32_antialias_type, lispy_antialias_type): New functions.
13670 (w32_enumfont_pattern_entity): New arg requested_font.
13671 Set antialias parameter if non-default was requested.
13672 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13673
136742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13675
13676 * lread.c (read1): Undo the previous change.
13677
136782008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13679
13680 * frame.c (Fdelete_frame): Call font_update_drivers only when
13681 USE_FONT_BACKEND is defined.
13682
136832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13684
13685 * font.h (struct font_bitmap): New member bits_per_pixel.
13686 (struct font_driver): New members start_for_frame and end_for_frame.
13687 (struct font_data_list): New struct.
13688 (font_put_frame_data, font_get_frame_data): Extern them.
13689
13690 * frame.h (struct frame): New member font_data_list.
13691
13692 * font.c (font_update_drivers): Call driver->start_for_frame and
13693 driver->end_for_frame at proper timings.
13694 (font_put_frame_data, font_get_frame_data): New functions.
13695 (Ffont_spec): Add usage in the docstring.
13696
13697 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13698 (Fdelete_frame): Call font_update_drivers.
13699
13700 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13701 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13702 (xftfont_get_xft_draw): New function.
13703 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13704 (xftfont_end_for_frame): New function.
13705 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13706
13707 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13708 Change argument. Cache GCs in the per-frame data.
13709 (struct ftxfont_frame_data): New struct.
13710 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13711 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13712 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13713 (ftxfont_end_for_frame): New function.
13714 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13715
13716 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13717
137182008-02-01 Kenichi Handa <handa@m17n.org>
13719
13720 * xselect.c (Vselection_coding_system)
13721 (Vnext_selection_coding_system): Delete them.
13722 (syms_of_xselect): Don't declare selection-coding-system and
13723 next-selection-coding-system. They are declared in select.el.
13724
137252008-02-01 Jason Rumney <jasonr@gnu.org>
13726
13727 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13728
13729 * w32fns.c: Include imm.h.
13730 (get_composition_string_fn, get_ime_context_fn): New optional
13731 system functions.
13732 (globals_of_w32fns): Load them from imm32.dll.
13733 (ignore_ime_char): New flag.
13734 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13735 WM_IME_ENDCOMPOSITION messages.
13736
13737 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13738 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13739
137402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13741
13742 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13743 (READCHAR_REPORT_MULTIBYTE): New macro.
13744 (readchar): New 2nd arg MULTIBYTE.
13745 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13746 Make symbol's name multibyte according to the multibyteness of the
13747 source.
13748
137492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13750
13751 * xfaces.c (face_for_overlay_string): Call lookup_face with
13752 correct arguments (fix of synching with the trunk).
13753
137542008-02-01 Kenichi Handa <handa@m17n.org>
13755
13756 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13757 (font_prop_validate_non_neg, font_prop_validate_spacing):
13758 Delete argument prop_index.
13759 (font_property_table): Change arguments to validater. Change Callers.
13760 (font_lispy_object): Delete.
13761 (font_at): Use font_find_object instead fo font_lispy_object.
13762
137632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13764
13765 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13766 and file names.
13767
137682008-02-01 Jason Rumney <jasonr@gnu.org>
13769
13770 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13771 (font_matches_spec): Remove debug output.
13772 (add_font_entity_to_list): Avoid using substituted fonts.
13773
137742008-02-01 Jason Rumney <jasonr@gnu.org>
13775
13776 * doc.c (Fsnarf_documentation):
13777 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13778
137792008-02-01 Miles Bader <miles@gnu.org>
13780
13781 * dispextern.h (struct glyph_row): Only define "clip" field if
13782 HAVE_WINDOW_SYSTEM is defined.
13783
137842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13785
13786 Fix up multi-tty merge.
13787
13788 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13789 and indentation.
13790
13791 * xfaces.c (free_realized_face, clear_face_gcs):
13792 Include font_done_for_face in the input_blocked section, just in case.
13793
13794 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13795 (get_char_face_and_encoding): Undo last change and remove the *other*
13796 duplicate definition (i.e. keep the one that's better scoped and that
13797 includes code for the font-backend).
13798
13799 * terminal.c (create_terminal): Default keyboard_coding to
13800 `no-conversion' and terminal_coding to `undecided'.
13801
13802 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13803
13804 * fontset.c (free_realized_fontsets): Check that the table entry does
13805 contain a fontset before trying to compare it to `base'.
13806
13807 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13808 syms_of_charset, and syms_of_coding earlier because init_window_once
13809 now needs Vcoding_system_hash_table to be setup.
13810
13811 * coding.h (default_buffer_file_coding): Remove.
13812
13813 * coding.c (default_buffer_file_coding): Remove.
13814 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13815 than ->symbol, and use the terminal-local coding system.
13816 (syms_of_coding): Don't setup the coding-systems that are not
13817 terminal-local.
13818 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13819
13820 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13821 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13822
13823 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13824 in chartab.c and were re-added here by mistake.
13825 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13826
13827 * doc.c (Fsnarf_documentation):
13828 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13829 src to etc.
13830
13831 * ChangeLog.10: Add mistakenly removed entry.
13832
138332008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13834
13835 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13836
138372008-02-01 Miles Bader <miles@gnu.org>
13838
13839 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13840 Add extra args to FACE_FOR_CHAR.
13841
138422008-02-01 Kenichi Handa <handa@m17n.org>
13843
13844 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13845 in sequence.
13846
13847 * chartab.c (map_sub_char_table, map_char_table): If the range
13848 contains just one character, call the function with that character
13849 even if the depth is not 3.
13850
138512008-02-01 Jason Rumney <jasonr@gnu.org>
13852
13853 * w32font.c (w32font_text_extents): Calculate metrics for the
13854 whole string.
13855
138562008-02-01 Jason Rumney <jasonr@gnu.org>
13857
13858 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13859
138602008-02-01 Jason Rumney <jasonr@gnu.org>
13861
13862 * w32term.c (x_set_glyph_string_clipping): Use
13863 get_glyph_string_clip_rects.
13864 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13865 Adjust for the change of struct glyph_string.
13866
13867 * w32font.c (w32font_draw): Do clipping here.
13868
138692008-02-01 Kenichi Handa <handa@m17n.org>
13870
13871 * xftfont.c (xftfont_draw): Adjust for the change of struct
13872 glyph_string.
13873
13874 * xterm.c (x_set_glyph_string_clipping): Use
13875 get_glyph_string_clip_rects.
13876 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13877 Adjust for the change of struct glyph_string.
13878
13879 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13880 the resulting clip(s}.
13881 (expose_overlaps): Add arg r. Change callers. Set it to
13882 row->clip temporarily.
13883 (expose_window): Redraw rows overlapping the exposed area.
13884
13885 * dispextern.h (struct glyph_row): New member clip.
13886 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13887 clip_height, new member clip, and num_clips.
13888
138892008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * data.c (Fchar_or_string_p): Fix docstring.
13892
138932008-02-01 Kenichi Handa <handa@m17n.org>
13894
13895 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13896 create a temporary XftDraw object.
13897
138982008-02-01 Kenichi Handa <handa@m17n.org>
13899
13900 * font.c (Ffontp): Fix docstring.
13901
13902 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13903 strong evidence of ISO-2022.
13904
139052008-02-01 Kenichi Handa <handa@m17n.org>
13906
13907 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13908 SYNTAX_ENTRY_FOLLOW_PARENT.
13909
139102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13911
13912 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13913 its type.
13914 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13915 Update to the new type of weak_hash_tables and next_weak.
13916
13917 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13918 a plain C pointer to Lisp_Hash_Table.
13919
13920 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13921 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13922 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13923 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13924 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13925 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13926 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13927 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13928 (GC_EQ): Remove since they've been identical to their non-GC_
13929 alter-egos ever since the markbit was eradicated.
13930
13931 * alloc.c:
13932 * buffer.c:
13933 * buffer.h:
13934 * data.c:
13935 * fileio.c:
13936 * filelock.c:
13937 * fns.c:
13938 * frame.h:
13939 * lisp.h:
13940 * macterm.c:
13941 * print.c:
13942 * process.c:
13943 * w32fns.c:
13944 * w32menu.c:
13945 * w32term.c:
13946 * xfns.c:
13947 * xmenu.c:
13948 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13949
139502008-02-01 Kenichi Handa <handa@m17n.org>
13951
13952 * chartab.c (map_sub_char_table): Make it work for the top-level
13953 char-table. Fix handling of parent char-table.
13954 (map_char_table): Adjust for the above change.
13955
139562008-02-01 Jason Rumney <jasonr@gnu.org>
13957
13958 * w32font.c (Qgdi): Rename from Qw32.
13959
139602008-02-01 Jason Rumney <jasonr@gnu.org>
13961
13962 * w32bdf.c (get_quoted_string): Make function static.
13963
139642008-02-01 Kenichi Handa <handa@m17n.org>
13965
13966 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13967 bigger ascent and descent than those of the font, use them as
13968 font's ascent and descent.
13969
139702008-02-01 Kenichi Handa <handa@m17n.org>
13971
13972 * Makefile.in (${lispsource}international/charprop.el): Move this
13973 target within "#ifdef HAVE_UNIDATA" and "#endif".
13974
139752008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13978 (shortlisp): Add ../lisp/language/tai-viet.el.
13979
139802008-02-01 Ulrich Mueller <ulm@gentoo.org>
13981
13982 * Makefile.in (${lispsource}international/charprop.el): Depend on
13983 temacs${EXEEXT}.
13984
139852008-02-01 Jason Rumney <jasonr@gnu.org>
13986
13987 * w32font.c (w32font_close): Delete the GDI font object.
13988
13989 * w32menu.c: Include character.h.
13990
13991 * w32proc.c: Likewise.
13992
13993 * w32select.c: Likewise.
13994
13995 * makefile.w32-in (w32proc.o): Depend on character.h.
13996
139972008-02-01 Jason Rumney <jasonr@gnu.org>
13998
13999 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14000
14001 * w32menu.c (syms_of_w32menu): Likewise.
14002
14003 * w32proc.c (syms_of_ntproc): Likewise.
14004
14005 * w32select.c (syms_of_w32select): Likewise.
14006
14007 * w32term.c (syms_of_w32term): Likewise.
14008
140092008-02-01 Jason Rumney <jasonr@gnu.org>
14010
14011 * w32font.c (w32font_draw): Delete brush after using it.
14012
140132008-02-01 Jason Rumney <jasonr@gnu.org>
14014
14015 * w32font.c (w32font_open): Don't set font_idx.
14016 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14017 to font settings.
14018 (w32font_draw): Fill background explicitly.
14019
140202008-02-01 Jason Rumney <jasonr@gnu.org>
14021
14022 * w32term.c (w32_initialize): Don't call w32font_initialize.
14023
14024 * w32font.c (w32font_info): Remove subranges.
14025 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14026 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14027 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14028 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14029 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14030 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14031 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14032 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14033 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14034 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14035 New symbols.
14036 (font_callback_data): New struct.
14037 (w32font_list, w32font_match): Use it.
14038 (w32font_open): Don't populate subranges.
14039 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14040 (w32font_encode_char): Always return unicode code-point as-is.
14041 (w32font_text_extents): Supply a transformation matrix to
14042 GetGlyphOutline. Never look up by glyph index. Avoid looping
14043 twice. Use unicode version of GetTexExtentPoint32 instead of
14044 glyph index version.
14045 (set_fonts_frame): Remove.
14046 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14047 set frame parameter. Use backward compatible fake foundries.
14048 Save generic family in extra slot under QCfamily. Make width slot
14049 constant. Save QCspacing value. Save list of scripts instead of
14050 binary subranges.
14051 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14052 (add_font_entity_to_list): Use font_callback_data struct. Filter
14053 unwanted fonts.
14054 (add_one_font_entity_to_list): Use font_callback_data struct.
14055 (w32_registry): Default to iso10646_1.
14056 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14057 string font registries. Don't fill in font name if it is a generic
14058 family name, fill family instead. Use spacing, family and script
14059 extra info to fill pitch, family and charset fields.
14060 (list_all_matching_fonts): Use font_callback_data struct.
14061 (unicode_range_for_char): Remove.
14062 (font_supported_scripts): New function.
14063 (w32font_initialize): Remove.
14064 (syms_of_w32font): Update which symbols are defined.
14065
140662008-02-01 Jason Rumney <jasonr@gnu.org>
14067
14068 * font.c (font_pixel_size): Reverse assq_no_quit args.
14069
14070 * w32term.h (FONT_WIDTH): Report max width, not average.
14071 (FONT_MAX_WIDTH): Remove.
14072 (FONT_AVG_WIDTH): New macro.
14073
14074 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14075 redefinition of FONT_WIDTH.
14076
14077 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14078 (w32_cache_char_metrics): Use FONT_WIDTH.
14079
14080 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14081
140822008-02-01 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32font.c (w32font_open): Make lfHeight negative.
14085
14086 * w32fns.c (x_default_font_parameter): Use new style font name.
14087 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14088
140892008-02-01 Jason Rumney <jasonr@gnu.org>
14090
14091 * w32font.c (QCsubranges): New symbol.
14092 (w32font_open, w32font_has_char): Get subranges from subproperty
14093 of extra.
14094 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14095 (syms_of_w32font): Define :subranges symbol.
14096
14097 * font.c (font_put_extra): Expose externally.
14098
14099 * font.h (font_put_extra): Move declaration from font.c.
14100
14101 * font.c (Ffont_get): Use font driver to determine otf capability.
14102 (adjust_anchor): Check if driver defines anchor_point before using.
14103
14104 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14105 (w32font_draw): Use options.
14106 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14107 Fix detection of truetype fonts.
14108 (registry_to_w32_charset): Handle charsets other than iso8859-1
14109 expressed as lisp symbols.
14110 (w32_registry): Express charset as lisp symbol.
14111 (fill_in_logfont): Reverse pixel and point height logic.
14112 Don't set width here. Set quality to default.
14113
14114 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14115 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14116
14117 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14118 Remove redundant loop and allocation.
14119
14120 * makefile.w32-in (font.o, w32font.o): New objects.
14121 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14122 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14123
14124 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14125 STORE_XCHARB a valid l-value.
14126
14127 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14128 calculations for non-Truetype fonts.
14129 (x_draw_glyph_string): Sync with xterm.c.
14130 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14131 Remove redundant code.
14132 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14133
14134 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14135 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14136
14137 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14138 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14139
14140 * w32font.c: New file for w32 font backend.
14141
141422008-02-01 Kenichi Handa <handa@m17n.org>
14143
14144 * term.c: Don't include "buffer.h" twice.
14145
141462008-02-01 Kenichi Handa <handa@m17n.org>
14147
14148 * character.c (Funibyte_string): New function.
14149 (syms_of_character): Defsubr it.
14150
141512008-02-01 Jason Rumney <jasonr@gnu.org>
14152
14153 * w32term.c [USE_FONT_BACKEND]:
14154 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14155 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14156 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14157 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14158 (x_free_frame_resources): Sync with xterm.c.
14159
141602008-02-01 Andreas Schwab <schwab@suse.de>
14161
14162 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14163 char-table size.
14164
141652008-02-01 Kenichi Handa <handa@m17n.org>
14166
14167 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14168
141692008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14172 font_otf_gpos, add font_drive_otf.
14173
14174 * fontset.c (fontset_find_font): Pay attention to font size
14175 specified for a font.
14176 (reorder_font_vector): Check contents of font_def.
14177
14178 * font.c (struct otf_list): Delete it.
14179 (otf_list): Make it a lisp variable.
14180 (otf_open): Use lispy otf_list.
14181 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14182 (check_otf_features): New function.
14183 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14184 New functions.
14185 (font_drive_otf): New function merging font_otf_gsub and
14186 font_otf_gpos.
14187 (font_open_for_lface): New arg spec. Change argument order.
14188 (font_load_for_face): Adjust for the change of font_open_for_lface.
14189 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14190 Ffont_otf_gpos.
14191 (syms_of_font): Staticpro otf_list. Delete defsubr of
14192 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14193
14194 * xfaces.c (set_font_frame_param): Adjust for the change of
14195 font_open_for_lface.
14196
14197 * font.h (font_open_for_lface): Adjust prototype.
14198 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14199 member otf_drive.
14200 (font_otf_gsub, font_otf_gpos): Delete externs.
14201 (font_drive_otf): Extern it.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * font.c (font_at): If the window W is not on a window system,
14206 return Qnil.
14207
14208 * coding.c (produce_chars, encode_coding): Don't call
14209 insert_from_gap if no characters to produce.
14210
142112008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14214 Fclear_face_cache.
14215
14216 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14217
142182008-02-01 Miles Bader <miles@gnu.org>
14219
14220 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14221 Parse "--disable-font-backend" option.
14222 (standard_args): Add "--disable-font-backend" option.
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * fontset.c (fontset_find_font): New function.
14227 (fontset_font): Use fontset_find_font.
14228 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14229 Register the specified font for all Latin characters.
14230 (new_fontset_from_font): Register the specified font for all Latin
14231 characters.
14232 (dump_fontset): For a realized fontset, include the base fontset
14233 name in the returned vector.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * character.h (CHAR_STRING): Cast C to unsigned on calling
14238 char_string.
14239
14240 * character.c (char_string): Type of arg C changed to unsigned.
14241 Signal an error if C is an invalid character code.
14242
14243 * editfns.c (general_insert_function, Fchar_to_string):
14244 Use CHARACTERP, not INTEGERP.
14245
142462008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14249 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14250
14251 * regex.c (analyse_first): Fix for multibyte characters in "case
14252 charset:" and "case categoryspec:".
14253
142542008-02-01 Andreas Schwab <schwab@suse.de>
14255
14256 * Makefile.in (LIBES): Move standard libraries to the end.
14257
142582008-02-01 Kenichi Handa <handa@m17n.org>
14259
14260 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14261 nonzero, don't shrink the buffer nextb.
14262
14263 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14264
14265 * coding.c (coding_alloc_by_making_gap): New arg offset.
14266 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14267 offset.
14268 (decode_coding_iso_2022): Update coding->safe_charsets.
14269 (decode_coding_gap): Temporarily set
14270 current_buffer->text->inhibit_shrinking to 1.
14271
142722008-02-01 Kenichi Handa <handa@m17n.org>
14273
14274 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14275 indexing into elements of s->cmp and s->char2b.
14276
142772008-02-01 Juanma Barranquero <lekktu@gmail.com>
14278
14279 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14280
142812008-02-01 Kenichi Handa <handa@m17n.org>
14282
14283 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14284 target_multibyte instead of multibyte.
14285 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14286 (bcmp_translate): Change the argument name from multibyte to
14287 target_multibyte.
14288
142892008-02-01 Kenichi Handa <handa@m17n.org>
14290
14291 These changes are to compile a regexp into a pattern that can be
14292 used both for multibyte and unibyte targets.
14293
14294 * Makefile.in (search.o): Depend on charset.h.
14295
14296 * character.c (multibyte_char_to_unibyte_safe): New function.
14297
14298 * search.c: Include "charset.h".
14299 (compile_pattern_1): Delete argument multibyte. Don't set
14300 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14301 (compile_pattern): Don't compare cp->buf.target_multibyte.
14302 Compare cp->buf.charset_unibyte.
14303 (compile_pattern): Set cp->buf.target_multibyte.
14304
14305 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14306
14307 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14308
14309 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14310 multibyte. Change callers.
14311 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14312 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14313 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14314 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14315 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14316 (regex_compile): Make the compiled pattern usable both for
14317 multibyte and unibyte targets.
14318 (analyse_first): Make the fastmap usable both for multibyte and
14319 unibyte targets.
14320 (TRANSLATE_VIA_MULTIBYTE): Delete.
14321 (re_match_2_internal): Pay attention to the case that the
14322 multibyteness of bufp and target may be different.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14327 empty box occupy at least one column width.
14328
143292008-02-01 Miles Bader <miles@gnu.org>
14330
14331 * Makefile.in: Remove redundant HAVE_XFT clause.
14332
143332008-02-01 Kenichi Handa <handa@m17n.org>
14334
14335 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14336
143372008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14340 being nil.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14345
143462008-02-01 Kenichi Handa <handa@m17n.org>
14347
14348 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14349
143502008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 * search.c (simple_search): Fix previous change.
14353
143542008-02-01 Kenichi Handa <handa@m17n.org>
14355
14356 * xftfont.c (ftfont_font_format): Extern declaration.
14357
14358 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14359
14360 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14361 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14362
14363 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14364 (ftfont_font_format): Fix previous change.
14365
14366 * font.h (Ffont_xlfd_name): EXFUN it.
14367
14368 * font.c (font_parse_xlfd): Fix the array size of `f'.
14369 (register_font_driver): Use EQ to compare driver->type.
14370
14371 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14372 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14373 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14374
143752008-02-01 Kenichi Handa <handa@m17n.org>
14376
14377 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14378 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14379
143802008-02-01 Kenichi Handa <handa@m17n.org>
14381
14382 * xfont.c (xfont_open): Set font->format.
14383
14384 * xftfont.c (xftfont_open): Set font->format.
14385
14386 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14387 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14388 (ftfont_open): Set font->format.
14389 (ftfont_font_format): New function.
14390
14391 * font.h (struct font): New member format.
14392
14393 * font.c (Qopentype): New variable.
14394 (syms_of_font): Defsym it.
14395 (Fquery_font): Change the format of the last element of the return
14396 value.
14397
143982008-02-01 Kenichi Handa <handa@m17n.org>
14399
14400 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14401 last resort.
14402
144032008-02-01 Kenichi Handa <handa@m17n.org>
14404
14405 * coding.c (detect_coding_charset): Fix detection of multi-byte
14406 charset.
14407
144082008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14409
14410 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14411
144122008-02-01 Kenichi Handa <handa@m17n.org>
14413
14414 * xdisp.c (get_next_display_element): Set it->face_id for the
14415 first component of a composition.
14416 (x_produce_glyphs): Check if the font is changed or not for composition.
14417
144182008-02-01 Kenichi Handa <handa@m17n.org>
14419
14420 * fontset.c (Qlatin): New variable.
14421 (syms_of_fontset): Define it as a lisp symbol.
14422 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14423
144242008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * font.c (font_unparse_fcname): Pay attention to the case that
14427 some of font property is a null string.
14428
144292008-02-01 Kenichi Handa <handa@m17n.org>
14430
14431 * term.c: Include "composite.h".
14432 (encode_terminal_code): Output all components of composition.
14433 Check the size of encode_terminal_src.
14434 (produce_glyphs): For composition, call produce_composite_glyph.
14435 (append_composite_glyph, produce_composite_glyph): New functions.
14436
14437 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14438 is not found, get font_info from the current ascii face.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14443 buffer-file-name to Qnil before calling insert_from_buffer.
14444
14445 * font.c (font_unparse_fcname): Pay attention to the case that
14446 foundry is a null string.
14447
144482008-02-01 Kenichi Handa <handa@m17n.org>
14449
14450 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14451
14452 * font.c (Qunicode_sip): New variable.
14453 (syms_of_font): Declare it as a Lisp symbol.
14454
14455 * font.h (Qunicode_sip): Extern it.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * composite.c (get_composition_id): Pay attention to TAB component.
14460
14461 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14462 TAB. Adjust for the change of s->char2b which always points to
14463 the first element of allocated memory.
14464
14465 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14466
14467 * xdisp.c (handle_composition_prop): Set it->c to the first
14468 non-TAB component.
14469 (fill_composite_glyph_string): Change argument.
14470 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14471 (x_produce_glyphs): Fix handling of left/right padding.
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * coding.c (detect_coding_system): Fix for handling off
14476 inhibit_iso_escape_detection. Fix for the case that no coding
14477 system is defined for a specific coding category.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * font.c (font_matching_entity): Delete unused local var.
14482
14483 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14484 opening a font.
14485
14486 * fileio.c (Finsert_file_contents): On recovering a file, assume
14487 Unix-like eol.
14488 (choose_write_coding_system): On auto-saving a file, force
14489 Unix-like eol.
14490
14491 * coding.c (setup_coding_system): Fix setting of
14492 coding->common_flags based on eol_type.
14493 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14494 inherit from it.
14495
144962008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * alloc.c (NSTATICS): Increas to 0x600.
14499
145002008-02-01 Kenichi Handa <handa@m17n.org>
14501
14502 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14503 (ftfont_list): Don't check :name property.
14504 (ftfont_match): New function.
14505 (ftfont_pattern_entity): If the pattern doesn't contain
14506 FC_SPACING, don't assume FC_MONO.
14507
14508 * font.h (struct font_driver): New member `match'.
14509 (font_update_drivers): Adjust prototype.
14510
14511 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14512 property of FONT.
14513 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14514 them unconditionally.
14515 (font_matching_entity): New function.
14516 (font_open_by_name): Try font_matching_entity if exact match is
14517 not found.
14518 (font_update_drivers): Delete the arg FONT. Return a list of
14519 actually used backends. Don't free faces, font caches here.
14520 Don't store data in frame parameters. Don't call x_set_font.
14521 (Ffont_spec): Store :name property as is.
14522 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14523 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14524 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14525 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14526 Call font->driver->otf_gsub instead of font_otf_gsub.
14527
14528 * frame.c (x_set_font_backend): Do more works that were done in
14529 font_update_drivers before.
14530
14531 * xfont.c (xfont_match): New function.
14532 (xfont_driver): Set xfont_driver.match to xfont_match.
14533 (xfont_draw): Set font in GC if necessary.
14534
14535 * ftxfont.c (ftxfont_match): New function.
14536 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14537
14538 * xftfont.c (xftfont_match): New function.
14539 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14540
145412008-02-01 Kenichi Handa <handa@m17n.org>
14542
14543 * font.h (struct font): New member scalable.
14544 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14545 (font_otf_gsub): Adjust prototype.
14546
14547 * font.c (font_otf_capability): Fix handling of the default langsys.
14548 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14549 Check the contents of SPEC.
14550 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14551 (check_gstring): New function.
14552 (REPLACEMENT_CHARACTER): New macro.
14553 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14554 glyph codes of GSTRING.
14555 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14556 (font_prepare_composition): Set cmp->glyph_len.
14557 (font_open_entity): Set font->scalable.
14558 (Ffont_get): Handle :otf property.
14559 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14560 functions.
14561 (Fquery_font): Use font->font.full_name.
14562 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14563 Sfont_otf_alternates.
14564
14565 * ftfont.c (ftfont_open): Set font->font.full_name and
14566 font->font.name properly. Fix calculation of font->font.height
14567 and font->min_width.
14568
14569 * ftxfont.c (ftxfont_create_gcs): New function.
14570 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14571 (ftxfont_draw_backgrond): Fix filling region.
14572 (ftxfont_default_fid): New function.
14573 (ftxfont_open): Set xfont->fid to the return value of
14574 ftxfont_default_fid.
14575 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14576 (ftxfont_done_face): Free only GCs that are created by
14577 ftxfont_create_gcs.
14578 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14579
14580 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14581 Clip to src->width, etc (not src->clip_XXX).
14582
14583 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14584 FontBackend frame parameter.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * font.h (struct font_driver_list): New member `on'.
14589 (Fclear_font_cache): EXFUN it.
14590 (font_update_drivers): Extern it.
14591
14592 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14593 (font_list_entities): Check driver_list->on.
14594 (register_font_driver): Initalize `on' member to 0.
14595 (font_update_drivers): New function.
14596 (Fclear_font_cache): Check driver_list->on.
14597
14598 * frame.h (Qfont_backend): Extern it.
14599 (x_set_font_backend): Extern it.
14600
14601 * frame.c (Qfont_backend): New variable.
14602 (frame_parms): New element for font-backend.
14603 (x_set_font_backend): New function.
14604
14605 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14606 FontBackend frame parameter.
14607 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14608 x_set_font_backend.
14609
14610 * xfont.c (xfont_list): Don't try listing by :name property if the
14611 name is not for XLFD.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14616 (LGLYPH_SET_TO): New macros.
14617 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14618 element of G is vector or not.
14619 (font_at): Extern it.
14620
14621 * font.c: Include window.h.
14622 (font_lispy_object): New function.
14623 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14624 end of valid glyph.
14625 (font_close_object): Fix getting (struct font *).
14626 (font_at): New function.
14627 (Ffont_get): If FONT is a font-object, get entity from it.
14628 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14629 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14630 range check.
14631 (Ffont_at): New function.
14632 (syms_of_font): Defsubr Sfont_at.
14633
14634 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14635 before the entry for Qcomposition.
14636 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14637 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14638 the font in gstring.
14639 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14640 LGLYPH_FORM (g) to detect the end of valid glyph.
14641 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14642 we are composing with gstring.
14643
14644 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14645 Check if adjustment is vector or not.
14646
14647 * Makefile.in (font.o): Make it depends on window.h.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14652 adjustment is vector or not.
14653
146542008-02-01 Miles Bader <miles@gnu.org>
14655
14656 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14661 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14662 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14663
14664 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14665 (DEVICE_DELTA): Fix typo.
14666 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14667 LGLYPH format.
14668
14669 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14670 the change of LGLYPH format.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * ftfont.c (ftfont_list): Fix typo.
14675 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14676
146772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14678
14679 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14680
14681 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14682 xftface_info is non-NULL.
14683
146842008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14685
14686 * ftfont.c (ftfont_list): Move misplaced #endif.
14687
146882008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * ftfont.c (ftfont_list): Pay attention to the case that
14691 FC_CAPABILITY is not defined.
14692
146932008-02-01 Kenichi Handa <handa@m17n.org>
14694
14695 * xftfont.c (xftfont_open): Set charset related members to -1.
14696
14697 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14698 QCname.
14699 (ftfont_open): Set charset related members to -1.
14700
14701 * fontset.c (Votf_script_alist): New variable.
14702 (syms_of_fontset): Initialize it.
14703 (fontset_font): Delete unused variable.
14704
14705 * fontset.h (Votf_script_alist): Extern it.
14706
14707 * font.c (font_find_for_lface): Optimize code.
14708
14709 * font.h (font_close_object, font_merge_old_spec): Extern them.
14710
147112008-02-01 Kenichi Handa <handa@m17n.org>
14712
14713 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14714 (syms_of_font): Initialize them.
14715 (font_pixel_size): Allow float value in dpi.
14716 (font_prop_validate_type): Delete.
14717 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14718 Change caller.
14719 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14720 (font_prop_validate_extra): Delete.
14721 (font_prop_validate_spacing): New function.
14722 (font_property_table): Add elements for all known properties.
14723 (get_font_prop_index): Rename from check_font_prop_name. New
14724 argument FROM. Change caller.
14725 (font_prop_validate): Validate all known properties.
14726 (font_put_extra): Delete argument force. Change caller.
14727 (font_expand_wildcards): Make it static. Fix the way of shrinking
14728 the possible range.
14729 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14730 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14731 Change caller.
14732 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14733 (font_parse_fcname): Delete argument merge. Fix parsing of point
14734 size. Don't validate properties values here. Change caller.
14735 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14736 (font_open_by_name): Delete unused variable.
14737 (Ffont_spec): Likewise. Validate property values.
14738 (Ffont_match_p): New function.
14739
14740 * font.h (QCscalable): Extern it.
14741 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14742
14743 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14744
14745 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14746 (xfont_list_pattern): New function.
14747 (xfont_list): Use xfont_list_pattern.
14748
147492008-02-01 Kenichi Handa <handa@m17n.org>
14750
14751 * font.h (Flist_fonts): EXFUN it.
14752
147532008-02-01 Jason Rumney <jasonr@gnu.org>
14754
14755 * w32term.c (w32_initialize): Add back smoothing_type and
14756 smoothing_enabled definitions.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14761 s->face->font on determining underline position.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14766 (font_has_char): Accept font-object too.
14767 (font_find_for_lface): Try at first with a size specified in face.
14768
147692008-02-01 Kenichi Handa <handa@m17n.org>
14770
14771 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14772 font_open_by_name.
14773
147742008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * font.h (QCspacing, QCdpi): Extern them.
14777 (enum font_spacing): New enum.
14778 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14779
14780 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14781 (QCspacing, QCdpi): New variables.
14782 (syms_of_font): Initialize them.
14783 (font_pixel_size): New function.
14784 (font_put_extra): New function.
14785 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14786 in FONT_EXTRA.
14787 (font_parse_fcname): Handle enumerated values (e.g. bold).
14788 Fix handling font size. Add QCname property that contains only
14789 unknown properties.
14790 (font_score): Change argument. Change caller. Pay attention to
14791 FONT_PIXEL_SIZE_QUANTUM.
14792 (font_sort_entites, font_list_entities, font_find_for_lface)
14793 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14794 (Ffont_spec): Add QCname property that contains only unknown properties.
14795
14796 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14797 include weight in listing pattern, instead check weight of each
14798 listed font. Don't include scalable in pattern. Pay attention to
14799 FONT_PIXEL_SIZE_QUANTUM.
14800
148012008-02-01 Kenichi Handa <handa@m17n.org>
14802
14803 * font.c (font_parse_fcname): Fix parsing of point-size.
14804 (font_unparse_fcname): Produce symbolic names for style properties.
14805 (font_list_entities): Handle float size correctly.
14806 (font_open_by_name): Prefer `normal' property values if the name
14807 doesn't specify them.
14808
14809 * fontset.c (Finternal_char_font): Use font_get_name, not
14810 Ffont_xlfd_name.
14811
14812 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14813 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14814 pattern. Don't force scalable.
14815
14816 * xftfont.c (xftfont_open): For generating a name, start from
14817 96-byte buffer.
14818
148192008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14820
14821 * frame.h (x_new_fontset2): Fix prototype.
14822
148232008-02-01 Kenichi Handa <handa@m17n.org>
14824
14825 * font.h (struct font_driver): Delete member parse_name.
14826 (font_match_p, font_get_spec, font_parse_fcname)
14827 (font_unparse_fcname): Extern them.
14828 (font_get_name): Adjust prototype.
14829
14830 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14831 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14832 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14833 unnecessary checks for weight, slant, and swidth.
14834 (font_parse_fcname): New function.
14835 (font_unparse_fcname): New function.
14836 (font_parse_name): New function.
14837 (font_match_p): New function.
14838 (font_get_name): Change return value to Lisp string.
14839 (font_get_spec): New function.
14840 (Qunspecified, Qignore_defface): Don't extern them.
14841 (font_find_for_lface): Assume that LFACE is fully specified.
14842 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14843 object, use it for FACE.
14844 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14845 driver->parse_name.
14846 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14847
14848 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14849 prototype.
14850
14851 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14852 argument F. Don't call Fnew_fontset. Instead, directly call
14853 make_fontset.
14854
14855 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14856
14857 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14858 of x_new_fontset2.
14859
14860 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14861 (Qsans__serif): New variables.
14862 (ftfont_generic_family_list): New variable.
14863 (syms_of_ftfont): Initialize the above variables.
14864 (ftfont_pattern_entity): Delete argument NAME.
14865 (ftfont_list_generic_family): New function.
14866 (ftfont_parse_name): Delete this function.
14867 (ftfont_list): Try generic family only when FcFontList found no font.
14868 (ftfont_list_family): Fix args to FcObjectSetBuild.
14869
14870 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14871 object in attrs[LFACE_FONT_INDEX].
14872 (set_lface_from_font_name): Cancel all changes for font-backend.
14873 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14874 function.
14875 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14876 font object in QCfont attribute.
14877 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14878 (realize_default_face) [USE_FONT_BACKEND]: Call
14879 set_lface_from_font_and_fontset.
14880
14881 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14882 "fixed", and signal error here if no suitable font was found.
14883
14884 * xfont.c (xfont_parse_name): Delete this function.
14885
14886 * xftfont.c (xftfont_open): Change coding style of error
14887 handling. Generate fontconfig's fontname pattern.
14888
14889 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14890 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14891
14892 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14893 Both args FONTSET and FONT_OBJECT must be existing ones.
14894
148952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14896
14897 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14898
148992008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14902
14903 * font.h (struct font): Fix typo.
14904
14905 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14906 XLFD_XXX_INDEX.
14907 (enum xlfd_field_mask): New enum.
14908 (intern_font_field): Changed argument. Change caller. If digits
14909 are followed by non-digits, return a symbol.
14910 (font_expand_wildcards): New function.
14911 (font_parse_xlfd): Fix wildcard handling.
14912 (Ffont_spec): If :name is specified, reflect the info in the other
14913 properties.
14914
14915 * ftfont.c (ftfont_pattern_entity): Fix typo.
14916 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14917 locale.
14918
149192008-02-01 Kenichi Handa <handa@m17n.org>
14920
14921 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14922
14923 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14924 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14925 registry doesn't specify encoding part.
14926 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14927 (font_open_by_name): At first try parsing the name.
14928 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14929 as Lisp symbols.
14930
14931 * fontset.c (reorder_font_vector): Pay attention to the case that
14932 the 3rd element of font_def is nil.
14933 (fontset_font): For the default fontset, append one more fontset
14934 elements for a script-based font specification. Don't add script
14935 attribute on finding a font.
14936 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14937 font name.
14938 (fontset_ascii_font): If a font can't be opened, return nil.
14939
14940 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14941 (ftfont_pattern_entity): New function.
14942 (ftfont_get_cache): Assume that freetype_font_cache is already
14943 initialized.
14944 (ftfont_list): Handle the case that a file is specified in font
14945 name. Use ftfont_pattern_entity to generate entities.
14946 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14947 (syms_of_ftfont): Initialize freetype_font_cache.
14948
14949 * xftfont.c (xftfont_open): Make the font name fontconfig's
14950 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14951 (xftfont_close): Free font->font.name if not NULL.
14952
14953 * xfont.c (xfont_list): If script is specified for a font, return
14954 null_vector.
14955 (xfont_list_family): Declare argument type.
14956
14957 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14958 name, set LFACE_FONT (lface) to nil.
14959
14960 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14961 return Qnil.
14962
149632008-02-01 Kenichi Handa <handa@m17n.org>
14964
14965 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14966 (standard_args): Add "-enable-font-backend".
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14971 (struct xftdraw_list, xftdraw_list): Delete them.
14972 (register_xftdraw, check_xftdraw): Delete them.
14973 (xftfont_prepare_face): Don't call register_xftdraw.
14974 (xftfont_done_face): Don't call check_xftdraw.
14975 (xftfont_draw): Get background color only when with_background is
14976 nonzero.
14977
14978 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14979
149802008-02-01 Kenichi Handa <handa@m17n.org>
14981
14982 These changes are for the new font handling codes.
14983
14984 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14985 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14986 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14987 (FONTSRC, FONTOBJ): New variables.
14988 (obj): Add $(FONTOBJ).
14989 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14990 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14991 @LIBOTF_LIBS@.
14992 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14993 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14994
14995 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14996
14997 * character.h (Vscript_representative_chars): Extern it.
14998
14999 * character.c (Vscript_representative_chars): New variable.
15000 (syms_of_character): Declare it as a Lisp variable.
15001
15002 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15003 enable_font_backend is nonzero, accept the composition method
15004 COMPOSITION_WITH_GLYPH_STRING.
15005
15006 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15007 enumeration COMPOSITION_WITH_GLYPH_STRING.
15008
15009 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15010 members clip_x, clip_y, clip_width, and clip_height.
15011 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15012
15013 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15014 --enable-font-backend. Call syms_of_font.
15015
15016 * fns.c (assoc_no_quit): New function.
15017
15018 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15019 (face_for_font, new_fontset_from_font)
15020 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15021
15022 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15023 (fontset_font, fontset_ascii, face_for_char)
15024 (make_fontset_for_ascii_face, Ffont_info)
15025 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15026 is nonzero, use font-backend mechanism.
15027 (find_font_encoding): Make it non-static.
15028 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15029 New functions.
15030
15031 * frame.h (struct frame): New members resx and resy.
15032 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15033 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15034
15035 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15036 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15037
15038 * lisp.h (assoc_no_quit): Extern it.
15039
15040 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15041 Through out the file, use FONT_INFO_FROM_FACE instead of
15042 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15043 rif->per_char_metric.
15044 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15045 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15046 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15047 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15048 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15049 nonzero, use font-backend mechanism.
15050 (get_per_char_metric): New function.
15051
15052 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15053 (set_lface_from_font_name)
15054 (set_font_frame_param, free_realized_face)
15055 (prepare_face_for_display, clear_face_gcs)
15056 (Finternal_set_font_selection_order, realize_x_face)
15057 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15058 font-backend mechanism.
15059 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15060 (load_face_font) [USE_FONT_BACKEND]: Abort.
15061 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15062 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15063
15064 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15065 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15066 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15067 nonzero, register all available font drivers. Call
15068 x_default_font_parameter for deciding a font.
15069 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15070
15071 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15072 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15073 (x_set_glyph_string_clipping_exactly)
15074 (x_compute_glyph_string_overhangs)
15075 (x_draw_glyph_string_foreground)
15076 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15077 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15078 enable_font_backend is nonzero, use font-backend mechanism.
15079 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15084 system_eol_type.
15085 (syms_of_coding): Initialize system_eol_type.
15086
15087 * process.c (Fset_process_coding_system): Inherit system's eol
15088 format if necessary.
15089
150902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15091
15092 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15093
150942008-02-01 Kenichi Handa <handa@m17n.org>
15095
15096 * coding.c (decode_eol): Pay attention to buffer relocation in
15097 del_range_2.
15098 (decode_coding): Call decode_eol before restoring undo_list.
15099
151002008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * charset.c (Fdefine_charset_internal): Fix setting of
15103 emacs_mule_bytes.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * keyboard.c (read_char): Check if C is a character or not before
15108 looking up Vkeyboard_translate_table.
15109
151102008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15113 condition to terminate the loop.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * coding.c (produce_composition): Compare charbuf[i] instead of
15118 args[i] against 0.
15119 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15124 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15125 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15126 detect_coding.
15127 (emacs_mule_char): Handle old style (Emacs 20) component character
15128 of a composition.
15129 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15130 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15131 composition rule.
15132 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * coding.c (encode_coding_ccl): Allocate destination dynamically
15137 when necessary.
15138
151392008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15142 the loop. When quitted, show a proper error message.
15143
151442008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15147 src->clip_head and src->clip_tail temporarily instead of src->hl.
15148
15149 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15150 character sequence.
15151 (Fccl_execute_on_string): Use ASET, not XSET.
15152
151532008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15156
151572008-02-01 Kenichi Handa <handa@m17n.org>
15158
15159 * coding.c (decode_coding): Fix the condition of terminating the
15160 decoding loop.
15161
151622008-02-01 Kenichi Handa <handa@m17n.org>
15163
15164 * data.c (Faset): On setting a character bigger than 255 in a
15165 unibyte string, signal an error instead of make the string multibyte.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15170 made by a mapping table.
15171
151722008-02-01 Kenichi Handa <handa@m17n.org>
15173
15174 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15175 not.
15176 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15177 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15178
15179 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15180 s->face is NULL or not.
15181
151822008-02-01 Kenichi Handa <handa@m17n.org>
15183
15184 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15185 (x_draw_glyph_string): Fix drawing of right_overhang and
15186 left_overhang around/on cursor.
15187
15188 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15189
151902008-02-01 Kenichi Handa <handa@m17n.org>
15191
15192 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * coding.c (Fdefine_coding_system_internal)
15197 (Fdefine_coding_system_alias): Avoid a duplicated element in
15198 Vcoding_system_alist.
15199
152002008-02-01 Kenichi Handa <handa@m17n.org>
15201
15202 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15203
15204 * coding.c (Qcoding_system_define_form): New variable.
15205 (syms_of_coding): Intern and staticpro it.
15206 (Fcoding_system_p): Check Qcoding_system_define_form.
15207 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15208
15209 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15210 Fcoding_system_p.
15211 (CHECK_CODING_SYSTEM): If ID is not available, call
15212 Fcheck_coding_system.
15213 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15214 Try also Fcheck_coding_system.
15215
152162008-02-01 Kenichi Handa <handa@m17n.org>
15217
15218 * coding.c (code_conversion_restore): GCPRO arg.
15219
152202008-02-01 Kenichi Handa <handa@m17n.org>
15221
15222 * character.c (lisp_string_width): Check multibyteness of STRING.
15223
152242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15225
15226 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15227 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15228 (decode_mac_font_name): Use decode_coding_c_string instead of
15229 decode_coding.
15230 (x_load_font): Initialize fontp->fontset to -1. Set
15231 fontp->encoding_type.
15232
152332008-02-01 Kenichi Handa <handa@m17n.org>
15234
15235 * search.c (search_buffer): Give up BM search on case-fold-search
15236 if one of a target character has a case-equivalence of different
15237 byte length even if that target charcter is an ASCII.
15238 (simple_search): Fix calculation of byte length of matched text.
15239 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15240
152412008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * coding.c (decode_coding): Fix handling of invalid bytes.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15248 Unicode characters.
15249
152502008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * coding.c (encode_coding_object): If a pre-write-conversion
15253 function makes a new buffer, kill it.
15254
152552008-02-01 Kenichi Handa <handa@m17n.org>
15256
15257 * coding.c (QCascii_compatible_p): New variable.
15258 (syms_of_coding): Initialize it.
15259 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15260 calling string_char.
15261 (record_conversion_result): Add `default:' case.
15262 (coding_charset_list): Delete unused variable `coding_type'.
15263 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15264 property in the plist of the coding system.
15265 (Fcoding_system_put): Check QCascii_compatible_p.
15266
152672008-02-01 Miles Bader <miles@gnu.org>
15268
15269 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15270 removed calculation of frame `f', as it's now used.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15275 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15276 (UNIDATA): New variable.
15277 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15278 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15279 $(RUN_TEMACS) unconditionally.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15284 (admindir): New variable.
15285 ($(lispsource)international/charprop.el): New target.
15286
152872008-02-01 Miles Bader <miles@gnu.org>
15288
15289 * character.c (chars-in-region): Remove obsolete function.
15290 (syms_of_character): Remove its initialization.
15291
152922008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15293
15294 * w32select.c (validate_coding_system)
15295 (setup_windows_coding_system): New functions.
15296 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15297 setup_windows_coding_system.
15298 (setup_config, Fw32_get_clipboard_data): Use
15299 validate_coding_system.
15300 (Fx_selection_exists): Move call to setup_config to a place
15301 where signals are allowed.
15302
15303 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15304 (Fcheck_coding_system): Add declarations.
15305
153062008-02-01 Kenichi Handa <handa@m17n.org>
15307
15308 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15309
153102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15311
15312 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15313 string as the second argument for x_new_fontset.
15314
153152008-02-01 Kenichi Handa <handa@m17n.org>
15316
15317 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15318 (encode_coding_object): Use safe_call instead of call2.
15319
153202008-02-01 Kenichi Handa <handa@m17n.org>
15321
15322 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15323
15324 * Makefile.in (lisp): Include charprop.el.
15325
153262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15327
15328 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15329 Not sure if it's unnecessary.
15330
153312008-02-01 Steven Tamm <steventamm@mac.com>
15332
15333 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15334 some possibly unnecessary fontset checking code that crashed
15335 when creating a new frame.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15340 lookup_face.
15341
15342 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15343
15344 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15349 (coding_charset_list): New function.
15350
15351 * coding.h (coding_charset_list): Extern it.
15352
153532008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15356 concatenation of family and registry.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * character.h (BYTE8_STRING): Fix typo.
15361
15362 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15363 string to multibyte (sync to HEAD).
15364
15365 * casefiddle.c (casify_region): Handle changes in byte-length
15366 using replace_range_2 (sync to HEAD).
15367
153682008-02-01 Andreas Schwab <schwab@suse.de>
15369
15370 * chartab.c (map_char_table): GCPRO table and arg.
15371
153722008-02-01 Kenichi Handa <handa@m17n.org>
15373
15374 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15375 already at limit.
15376
153772008-02-01 Kenichi Handa <handa@m17n.org>
15378
15379 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15380 instead of fast_c_string_match_ignore_case.
15381 (find_font_encoding): Change argument to Lisp_Object. Use
15382 fast_string_match_ignore_case instead of
15383 fast_c_string_match_ignore_case. Change caller.
15384
153852008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * xdisp.c (get_next_display_element): In unibyte case, decide to
15388 display in octal form by checking a character by
15389 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15390
15391 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15392
15393 * character.c (unibyte_has_multibyte_table): New variable.
15394
15395 * character.h (unibyte_has_multibyte_table): Extern it.
15396 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15397
153982008-02-01 Kenichi Handa <handa@m17n.org>
15399
15400 * coding.c (encode_coding_iso_2022): Fix handling of charset
15401 annotation.
15402
154032008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * coding.c (setup_coding_system): If coding_system is nil, use
15406 Qundecided.
15407 (Fterminal_coding_system): Return nil if terminal coding system is
15408 `undecided'.
15409 (syms_of_coding): Define coding-system `undecided' here. Setup
15410 terminal_coding as `undecided'.
15411
154122008-02-01 Kenichi Handa <handa@m17n.org>
15413
15414 * xdisp.c (message_dolog, set_message_1): Call
15415 unibyte_char_to_multibyte with arg type int.
15416
15417 * lread.c (read1): Fix reading of a char-table.
15418
15419 * print.c (print_object): Include sub char-table in circularities
15420 detection.
15421
154222008-02-01 Kenichi Handa <handa@m17n.org>
15423
15424 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15425 Append the found sequences in car of ARGS instead of prepending.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * fileio.c (report_file_error): Make a unibyte string from
15430 strerror (errorno).
15431 (Fsubstitute_in_file_name): Fix the arg to
15432 unibyte_char_to_multibyte. It is evaluated twice.
15433
154342008-02-01 Kenichi Handa <handa@m17n.org>
15435
15436 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15441 BOM is not found.
15442 (detect_coding, detect_coding_system): Optimization for ISO-2022
15443 when no 8-bit data is found.
15444
154452008-02-01 Jason Rumney <jasonr@gnu.org>
15446
15447 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15448
154492008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15452 CHARS.
15453
154542008-02-01 Steven Tamm <steventamm@mac.com>
15455
15456 * macterm.c (mac_encode_char): Add charset argument and update
15457 to use encoding_type.
15458 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15459 switch to pure fontset.
15460 (decode_mac_font_name): Temporarily remove decoding.
15461 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15462 (x_load_font): Temporarily remove encoding.
15463
154642008-02-01 Kenichi Handa <handa@m17n.org>
15465
15466 * xfaces.c (Fface_font): If frame is not on a window system,
15467 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15468 refer to face->font.
15469 (split_font_name_into_vector, build_font_name_from_vector)
15470 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15471 when HAVE_WINDOW_SYSTEM is defined.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15476 (x_produce_glyphs): Fix setting of members of cmp in case
15477 cmp->glyph_len is zero.
15478
15479 * fontset.c (Fset_fontset_font): Fix docstring.
15480 (Ffontset_info): Make it backward compatible. New arg ALL.
15481
154822008-02-01 Kim F. Storm <storm@cua.dk>
15483
15484 * process.c (read_process_output): Grow decoding_buf when needed;
15485 this could cause a crash in allocate_string and compact_small_strings.
15486
154872008-02-01 Kenichi Handa <handa@m17n.org>
15488
15489 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15490
154912008-02-01 Kenichi Handa <handa@m17n.org>
15492
15493 * coding.c (setup_coding_system): Set coding->common_flags
15494 correctly for raw-text.
15495 (consume_chars): On encoding unibyte text by raw-text, don't check
15496 multibyte form.
15497 (encode_coding): On encoding by raw-text, never use translation tables.
15498
15499 * fileio.c (e_write): Short cut for the case of no encoding.
15500
155012008-02-01 Kenichi Handa <handa@m17n.org>
15502
15503 * coding.c (detect_coding, detect_coding_system): Delete unused
15504 variables.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15509 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15510
155112008-02-01 Kenichi Handa <handa@m17n.org>
15512
15513 * coding.c (Ffind_coding_systems_region_internal): Include
15514 raw-text and no-conversion in the result.
15515
155162008-02-01 Kenichi Handa <handa@m17n.org>
15517
15518 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15519 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15520 FONT_DEF.
15521 (font_def_arg, add_arg, from_arg, to_arg): New args.
15522 (set_fontset_font): Change argument.
15523 (Fset_fontset_font): Fix for the case that TARGET is a script
15524 name and charset name.
15525 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15526
155272008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * fontset.c (fontset_font): Rename from fontset_face. Change return
15530 value.
15531 (face_suitable_for_char_p, face_for_char): Adjust for the change
15532 of fontset_font.
15533 (make_fontset_for_ascii_face): Fix setting of the fontset element
15534 for ASCII.
15535 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15536 to get a font name.
15537 (Ffontset_info): Adjust for the change of fontset_font.
15538
15539 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15540
15541 * character.h (LEADING_CODE_LATIN_1_MIN)
15542 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * editfns.c (check_translation): New function.
15547 (Ftranslate_region_internal): Handle M:N mapping.
15548
155492008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15552
155532008-02-01 Kenichi Handa <handa@m17n.org>
15554
15555 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15556 goto invalid_code.
15557 (decode_coding_iso_2022): Fix handling of invalid designation.
15558
15559 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15560 after calling code_conversion_save.
15561
155622008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15565
15566 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15567
15568 * fontset.c: Include "intervals.h".
15569 (fontset_face): Fix comparing of Lisp_Objects.
15570 (free_face_fontset, new_fontset_from_font_name): Fix
15571 Lisp_Object/int mixup.
15572
15573 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15574
15575 * coding.c: Add many prototypes for static functions.
15576 (get_translation_table): Allow max_lookup to be NULL.
15577 (decode_coding, Ffind_coding_systems_region_internal)
15578 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15579 get_translation_table with max_lookup NULL.
15580
155812008-02-01 Kenichi Handa <handa@m17n.org>
15582
15583 * coding.c (get_translation_table): Declare it as Lisp_Object.
15584 (LOOKUP_TRANSLATION_TABLE): New macro.
15585 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15586 instead of CHAR_TABLE_REF.
15587
155882008-02-01 Kenichi Handa <handa@m17n.org>
15589
15590 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15591 annotation data format.
15592 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15593 Change arguments FROM and TO to single argument NCHARS. Change caller.
15594 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15595 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15596 (decode_coding_ccl, decode_coding_charset): Pay attention to
15597 coding->charbuf_used.
15598 (get_translation): New function.
15599 (produce_chars): New arguments translation_table and last_block.
15600 Translate characters here. Return number of carryover chars.
15601 Change caller.
15602 (produce_composition): New argument pos. Change caller.
15603 Adjust for the change of annotation data format.
15604 (produce_charset, produce_annotation): Likewise.
15605 (decode_coding, encode_coding): Don't call translate_chars.
15606 (consume_chars): New arg translation_table. Change caller.
15607 (translate_chars): Delete.
15608 (syms_of_coding): Make translation-table's number of extra slots 2.
15609
156102008-02-01 Kenichi Handa <handa@m17n.org>
15611
15612 * search.c (simple_search): Fix setting this_pos_byte in backward
15613 search.
15614
15615 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15616 byte sequence.
15617 (detect_coding_ccl): Fix setting of the variable valids.
15618
156192008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15622
15623 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15624
15625 * editfns.c (Ftranslate_region_internal): Rename from
15626 Ftranslate_region. Accept a char-table in TABLE.
15627 (syms_of_editfns): Defsubr Stranslate_region_internal.
15628
15629 * xfaces.c (set_lface_from_font_name): If a font is specified for
15630 a frame, generate a fontset from the font.
15631 (build_scalable_font_name): If the scalable font is requested for
15632 a specific size, don't change that size.
15633 (try_font_list): Try a scalable font also in the case that a
15634 pattern string is specified.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * xfaces.c (Fface_font): New optional arg CHARACTER.
15639
156402008-02-01 Kenichi Handa <handa@m17n.org>
15641
15642 * charset.h (CHARSET_OFFSET): New macro.
15643
156442008-02-01 Kenichi Handa <handa@m17n.org>
15645
15646 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15647
15648 * fontset.c (fontset_face): Handle the case that repertory is a
15649 char-table.
15650 (find_font_encoding): Return nil for unknown encoding.
15651 (Fset_fontset_font): Ignore a font of unknown encoding.
15652
156532008-02-01 Kenichi Handa <handa@m17n.org>
15654
15655 * keymap.c (describe_vector): Handle default value of a char table.
15656
15657 * fontset.c (fontset_face): Handle fallback fonts correctly.
15658 (Ffontset_info): Return infomation about fallback fonts.
15659
156602008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * fontset.c (FONTSET_DEFAULT): New macro.
15663 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15664 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15665 the case that it is nil.
15666 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15667 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15668
15669 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15670 subset or superset.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * emacs.c (main): Call init_charset after syms_of_XXX.
15675
15676 * charset.c (Vcharset_map_directory): Delete.
15677 (Vcharset_map_path): New variable.
15678 (load_charset_map_from_file): Use Vcharset_map_path instead.
15679 (init_charset): Initialize Vcharset_map_path.
15680 (syms_of_charset): Delete declaration of "charset-map-directory",
15681 add declaration of "charset-map-path".
15682
156832008-02-01 Kenichi Handa <handa@m17n.org>
15684
15685 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15686 ASCII only string.
15687
15688 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15689
15690 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15691 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15692
156932008-02-01 Kenichi Handa <handa@m17n.org>
15694
15695 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15696
15697 * coding.c (QCmnemonic, QCdefalut_char)
15698 (QCdecode_translation_table, QCencode_translation_table)
15699 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15700 (get_translation_table): Return a list of translation tables if
15701 necessary.
15702 (decode_coding): Call get_translation_table with ENCODEP 0.
15703 (char_encodable_p): If translation_table is non-nil, always call
15704 translate_char.
15705 (Fdefine_coding_system_internal): Accept list of translation
15706 tables as :encode-translation-table and :decode-translation-table.
15707 (Fcoding_system_put): New function.
15708 (syms_of_coding): Declare new symbols. Defsubr
15709 Scoding_system_put.
15710 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15711 typically JISX0212.
15712
15713 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15714 when the charset is superset type.
15715
15716 * character.c (translate_char): Accept list of translation tables.
15717
157182008-02-01 Kenichi Handa <handa@m17n.org>
15719
15720 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15721 (CODING_ATTR_TRANS_TBL): New macro.
15722
15723 * coding.c (get_translation_table): New function.
15724 (translate_chars): Fix the bug of skipping annotation data.
15725 (decode_coding, encode_coding): Utilize get_translation_table.
15726 (char_encodable_p, Funencodable_char_position): Translate char if
15727 necessary.
15728 (Ffind_coding_systems_region_internal)
15729 (Fcheck_coding_systems_region): Setup translation table for encode
15730 in a coding system attribute vector in advance.
15731 (Fdefine_coding_system_internal): Allow a symbol as translation
15732 table. For shift-jis type coding system, allow 4th charset.
15733
157342008-02-01 Kenichi Handa <handa@m17n.org>
15735
15736 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15737
15738 * xdisp.c (get_next_display_element): Pass -1 as POS to
15739 FACE_FOR_CHAR if displaying a C-string.
15740
157412008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * composite.c (get_composition_id): Handle xoff and yoff in a
15744 composition rule.
15745
15746 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15747 (struct composition): New member lbearing and rbearing.
15748
15749 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15750 (x_get_glyph_overhangs): Handle a composition glyph.
15751 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15752
15753 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15754 composition glyph.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * print.c: Include charset.h.
15759 (Vprint_charset_text_property): New variable.
15760 (Qdefault): Extern it.
15761 (PRINT_STRING_NON_CHARSET_FOUND)
15762 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15763 (print_check_string_result): New variable.
15764 (print_check_string_charset_prop): New function.
15765 (print_prune_charset_plist): New variable.
15766 (print_prune_string_charset): New function.
15767 (print_object): Call print_prune_string_charset if
15768 Vprint_charset_text_property is not t.
15769 (print_interval): Print nothing if interval->plist is nil.
15770 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15771 variable. Init and staticpro print_prune_charset_plist.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * fontset.c (new_fontset_from_font_name): Use the specified font
15776 for all characters in the new fontset.
15777
15778 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15779 OBJECT args.
15780
15781 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15782 OBJECT args for composition too.
15783
15784 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15785 OBJECT args.
15786
157872008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15790
15791 * fontset.c (reorder_font_vector): Adjust for the change of
15792 FONT_DEF format.
15793 (fontset_face): New arg id. Change caller.
15794 (face_for_char): New args pos and object.
15795 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15796 (fs_query_fontset): Check NAME by Fassoc too.
15797 (Fset_fontset_font): Allow non-XLFD font name.
15798 (Ffontset_info): Adjust for the change of FONT_DEF format.
15799
15800 * fontset.h (face_for_char): Adjust prototype.
15801
15802 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15803 (append_space, extend_face_to_end_of_line)
15804 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15805 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15806
15807 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15808 POS and OBJECT args.
15809
15810 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15811 POS and OBJECT args.
15812
158132008-02-01 Jason Rumney <jasonr@gnu.org>
15814
15815 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15816 of GlobalAlloc'ed memory.
15817
158182008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15821
15822 * charset.h (charset_table_used): Delete extern.
15823
15824 * charset.c (charset_table_used): Make it static.
15825 (map_charset_chars): Fix args to c_function with.
15826
15827 * chartab.c (map_sub_char_table_for_charset): Fix args to
15828 c_function with.
15829
15830 * coding.h (enum coding_result_code): Delete
15831 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15832
15833 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15834 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15835 (Vlast_code_conversion_error): New variables.
15836 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15837 (ONE_MORE_BYTE): Record error if any instead of signaling an
15838 error. If non-ASCII multibyte char is found, return the negative
15839 value of the code. All callers changed to check it.
15840 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15841 (record_conversion_result): New function. Change all codes setting
15842 coding->result to call this function.
15843 (detect_coding_utf_8, decode_coding_utf_8)
15844 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15845 Don't use the local variable incomplete.
15846 (emacs_mule_char): Change the second arg to `const'.
15847 (decode_coding): Fix of flushing out unprocessed data.
15848 (make_conversion_work_buffer): Fix making of a work buffer.
15849 (decode_coding_object): Return coding->dst_object.
15850
15851 * fontset.c (set_fontset_font): Fix args.
15852
15853 * lisp.h (CHARACTERBITS): Define as 22.
15854
15855 * process.c (send_process): Be sure to set coding->src_multibyte.
15856
15857 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15858
158592008-02-01 Kenichi Handa <handa@m17n.org>
15860
15861 * xdisp.c (handle_auto_composed_prop): Give limit to
15862 Fnext_single_char_property_change.
15863
158642008-02-01 Kenichi Handa <handa@m17n.org>
15865
15866 * composite.c (syms_of_composite): Don't make the composition hash
15867 table weak.
15868
15869 * fontset.c (Fset_fontset_font): Fix docstring.
15870
15871 * lisp.h (detect_coding_system): Adjust prototype.
15872
15873 * fileio.c (kill_workbuf_unwind): Delete this function.
15874 (Finsert_file_contents): Adjust the call of detect_coding_system.
15875 Get conversion_buffer by code_conversion_save. Use the macro
15876 CODING_MAY_REQUIRE_DECODING. After decoding, update
15877 coding_system.
15878
15879 * coding.h (make_conversion_work_buffer): Delete extern.
15880 (code_conversion_save): Extern it.
15881
15882 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15883 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15884 (decode_coding_utf_8): Don't do eol converion.
15885 (detect_coding_utf_16): Check coding->src_chars, not
15886 coding->src_bytes. Add heuristics for those that have no signature.
15887 (decode_coding_emacs_mule, decode_coding_iso_2022)
15888 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15889 Don't do eol converion.
15890 (adjust_coding_eol_type): Return a new coding system.
15891 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15892 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15893 each change.
15894 (decode_coding): Pay attention to undo_list. Do eol conversion for
15895 all types of coding-systems (if necessary).
15896 (Vcode_conversion_work_buf_list): Delete it.
15897 (Vcode_conversion_reused_workbuf): Rename from
15898 Vcode_conversion_reused_work_buf.
15899 (Vcode_conversion_workbuf_name): New variable.
15900 (reused_workbuf_in_use): New variable.
15901 (make_conversion_work_buffer): Delete the arg DEPTH.
15902 (code_conversion_restore): Change argument to cons.
15903 (code_conversion_save): Delete the argument BUFFER. Change callers.
15904 (detect_coding_system): New argument src_chars. Change callers.
15905 Fix for utf-16 detection.
15906 (init_coding_once): Don't use ISO_carriage_return.
15907 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15908 reused_workbuf_in_use.
15909
159102008-02-01 Kenichi Handa <handa@m17n.org>
15911
15912 * keymap.c (store_in_keymap): Pay attention to the case that idx
15913 is a cons specifying a character range.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15918 HANDLED_RECOMPUTE_PROPS.
15919
15920 * coding.c (Fdefine_coding_system_internal): Fix checking of
15921 ascii compatibility.
15922
159232008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * charset.c (find_charsets_in_text): Delete unused locale variable.
15926 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15927
15928 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15929 Resync charset_list to Vemacs_mule_charset_list.
15930
15931 * keymap.c (store_in_keymap): Pay attention to the case that idx
15932 is a cons specifying a character range.
15933
159342008-02-01 Kenichi Handa <handa@m17n.org>
15935
15936 * composite.c (update_compositions): Bind inhibit-read-only, etc
15937 to t before calling remove-list-of-text-properties.
15938
15939 * print.c (print_object): Always print ASCII chars as is.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15944
15945 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15946 is a char table.
15947
159482008-02-01 Kenichi Handa <handa@m17n.org>
15949
15950 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15951
159522008-02-01 Kenichi Handa <handa@m17n.org>
15953
15954 * xfaces.c (set_lface_from_font_name): Fix for the case that
15955 FONTNAME is not fontset name.
15956
159572008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * fns.c (base64_encode_1): Fix previous change.
15960
159612008-02-01 Kenichi Handa <handa@m17n.org>
15962
15963 * fontset.c (set_fontset_font): New function.
15964 (Fset_fontset_font): If a font is specified for a charset, use
15965 map_charset_chars to store the font spec in a fontset.
15966
159672008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * fontset.c (fontset_face): Create a fallback fontset on demand.
15970 (make_fontset): Don't create a fallback fontset here.
15971 (free_face_fontset): Free a fallback fontset (if any) too.
15972 (n_auto_fontsets): Delete this variable.
15973 (auto_fontset_alist): New variable.
15974 (new_fontset_from_font_name): Check auto_fontset_alist.
15975 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15976 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15977 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15978 Defsubr Sfontset_list_all.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15983
159842008-02-01 Kenichi Handa <handa@m17n.org>
15985
15986 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * editfns.c (Fgoto_char): Fix docstring.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * insdel.c (insert_from_gap): Adjust intervals correctly.
15995
159962008-02-01 Jason Rumney <jasonr@gnu.org>
15997
15998 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15999 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16000 (w32_initialize): Try to load it.
16001 (x_get_font_repertory): Use it if available.
16002 (w32_encode_char): Add shortcut for unicode output.
16003
16004 * w32fns.c (w32_load_system_font): Default charset to -1.
16005 (x_to_w32_charset): Match all fonts for unicode.
16006 (w32_to_x_charset): New parameter matching. Don't return partial
16007 or wildcard charsets.
16008 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16009 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16010 (w32_to_x_font): Match charset to real charset.
16011 (enum_font_cb2): Always list unicode versions.
16012
16013 * makefile.w32-in (temacs): Increase EMHEAP.
16014
160152008-02-01 Jason Rumney <jasonr@gnu.org>
16016
16017 * w32term.c (w32_encode_char): New charset parameter.
16018 font_info.encoding becomes encoding_type.
16019 (x_get_font_repertory): New function. Warning: stub only!
16020 (x_new_font): Return quickly if font already set.
16021 (x_new_fontset): fontsetname parameter is Lisp_Object.
16022 Use new fs_query_fontset. Try new_fontset_from_font_name.
16023 Use fontset_name for return value.
16024
16025 * w32term.h: Declare x_get_font_repertory.
16026
16027 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16028 place of find_charset_in_text. Use encode_coding_object in place
16029 of encode_coding.
16030 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16031 decode_coding.
16032
16033 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16034 of x_new_fontset.
16035 (w32_load_system_font): Initialize charset as unicode.
16036 font_info.encoding becomes encoding_type.
16037 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16038 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16039 (syms_of_w32fns): Set get_font_repertory_func.
16040
16041 * w32console.c: Include character.h. Use terminal_encode_buffer
16042 from term.c.
16043 (write_glyphs): Use new version of encode_terminal_code. Use
16044 encode_coding_object in place of encode_coding.
16045
16046 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16047 encoding becomes encoding_type.
16048
16049 * term.c (terminal_encode_buffer): Make externally visible.
16050
16051 * makefile.w32-in: Add character.h dependancies.
16052 (character.o, chartab.o): New targets.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16057 CODING_ID_EOL_TYPE.
16058
160592008-02-01 Andreas Schwab <schwab@suse.de>
16060
16061 * coding.c (produce_chars): Revert last change.
16062
160632008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * charset.h (charset_unicode): Extern it.
16066
16067 * charset.c (string_xstring_p): Check by (C >= 0x100).
16068 (find_charsets_in_text): Change format of the arc CHARSETS. New
16069 arg MULTIBYTE.
16070 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16071 change of find_charsets_in_text.
16072 (Fsplit_char): Fix doc. Never return unknown.
16073
16074 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16075
16076 * coding.c (Fdefine_coding_system_alias): Update
16077 Vcoding_system_list.
16078
16079 * fontset.c (load_font_get_repertory): Pay attention to the case
16080 that ENCODING of a font is specified by a char-table.
16081
16082 * xterm.c (x_get_font_repertory): Handle the case that the
16083 encoding of font is other than Unicode.
16084
160852008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16088 if a character is encodable by the terminal coding system. If
16089 not, produces proper number of `?'s. Update
16090 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16091 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16096 variables.
16097 (encode_terminal_code): Change argument. Encode multiple
16098 characters at once. Store the result of encoding in
16099 terminal_encode_buffer.
16100 (write_glyphs, insert_glyphs): Adjust for the change of
16101 encode_terminal_code.
16102 (term_init): Initialize terminal_encode_buffer and
16103 terminal_encode_buf_size.
16104
16105 * coding.c (consume_chars): If coding->src_object is nil, don't
16106 check annotation.
16107
161082008-02-01 Kenichi Handa <handa@m17n.org>
16109
16110 * character.c (char_string): Use ASCII_CHAR_P instead of
16111 SINGLE_BYTE_CHAR_P.
16112
161132008-02-01 Kenichi Handa <handa@m17n.org>
16114
16115 * xdisp.c (handle_auto_composed_prop): Check if the last
16116 characters of auto-composed region is newly composed with the
16117 following characters.
16118 (handle_composition_prop): Fix checking of point being inside
16119 composition.
16120
161212008-02-01 Kenichi Handa <handa@m17n.org>
16122
16123 * fns.c (concat): Don't change multibyteness of the result by
16124 concatenating an 8-bit character.
16125
16126 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16127 multibyteness of the result when newelt is an 8-bit character.
16128
161292008-02-01 Dave Love <fx@gnu.org>
16130
16131 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16132 EMACS_INT.
16133
16134 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16135
16136 * xfaces.c (face_numeric_value): Declare dim size_t.
16137 (Finternal_lisp_face_equal_p): Remove unused f.
16138
16139 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16140 (MATRIX_ROW): Remove unused vars.
16141 (draw_glyphs, x_insert_glyphs, fast_find_position)
16142 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16143 byte/char counts.
16144
16145 * regex.c (regex_compile): Remove unused var.
16146
16147 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16148
16149 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16150 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16151
16152 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16153
16154 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16155
16156 * fileio.c (Fwrite_region): Remove unused var.
16157
16158 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16159 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16160
16161 * composite.c (Fremove_list_of_text_properties): Declare.
16162
16163 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16164 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16165 (coding_inherit_eol_type): Remove unused attrs.
16166 (detect_coding): Cast arg of detect_eol.
16167
16168 * charset.c (syms_of_charset): Remove unused var p.
16169 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16170 byte/char counts.
16171
16172 * casetab.c (set_case_table): Remove unused var.
16173
16174 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16175 unused vars.
16176
161772008-02-01 Dave Love <fx@gnu.org>
16178
16179 * xterm.c (x_bitmap_mask): Declare.
16180
161812008-02-01 Dave Love <fx@gnu.org>
16182
16183 * xterm.c (x_term_init): Fix type error.
16184
16185 * lisp.h: Add Funibyte_char_to_multibyte.
16186
16187 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16188 (Fset_coding_system_priority): Doc fix.
16189
16190 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16191
16192 * indent.c (check_composition): Make start and end EMACS_INT.
16193
16194 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16195
16196 * xdisp.c (handle_composition_prop, check_point_in_composition):
16197 Make buffer positions EMACS_INT.
16198
16199 * composite.c (find_composition, run_composition_function)
16200 (update_compositions, Ffind_composition_internal): Make buffer
16201 positions EMACS_INT.
16202
16203 * composite.h (find_composition, update_compositions): Make
16204 position args EMACS_INT.
16205
16206 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16207
16208 * intervals.c (get_property_and_range):
16209 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16210
16211 * unexalpha.c: Don't include varargs.h.
16212
162132008-02-01 Dave Love <fx@gnu.org>
16214
16215 * coding.h (ENCODE_UTF_8): New.
16216
16217 * Makefile.in (gtkutil.o): Depend on coding.h.
16218
16219 * coding.c (Fset_coding_system_priority): Doc fix.
16220
162212008-02-01 Kenichi Handa <handa@m17n.org>
16222
16223 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16224 the case of auto saving.
16225
162262008-02-01 Andreas Schwab <schwab@suse.de>
16227
16228 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16229 `range' from GC.
16230
162312008-02-01 Kenichi Handa <handa@m17n.org>
16232
16233 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * fileio.c (choose_write_coding_system): Return a decided coding system.
16238 (Fwrite_region): Set Vlast_coding_system_used to the return value
16239 of choose_write_coding_system.
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 * charset.c (Fset_charset_priority): Pay attention to duplicated
16244 arguments.
16245
16246 * coding.c (QCcategory): New variable.
16247 (syms_of_coding): Defsym it. Set all elements of
16248 Vcoding_category_table and their symbol values.
16249 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16250 coding-category-XXX, and coding-category-list.
16251 (Fdefine_coding_system_internal): Add category in the plist.
16252
162532008-02-01 Kenichi Handa <handa@m17n.org>
16254
16255 * callproc.c (Fcall_process): Handle carryover correctly.
16256
16257 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16258 (raw_text_coding_system): Check NILP (coding_system).
16259 (coding_inherit_eol_type): Check NILP (coding_system) and
16260 NILP (parent).
16261 (consume_chars): Fix for the case of raw-text.
16262
16263 * process.c (read_process_output): Handle carryover correctly.
16264
162652008-02-01 Dave Love <fx@gnu.org>
16266
16267 * regex.c (re_search_2): Fix last change.
16268
162692008-02-01 Kenichi Handa <handa@m17n.org>
16270
16271 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16272 target_multibyte. Even in a unibyte case, return a converted
16273 multibyte char.
16274 (GET_CHAR_AFTER): New macro.
16275 (PATFETCH): Translate via multibyte char.
16276 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16277 (SETUP_MULTIBYTE_RANGE): New macro.
16278 (regex_compile): Setup compiled code so that its multibyteness
16279 matches that of a target. Fix the handling of "[X-YZ]" using
16280 SETUP_MULTIBYTE_RANGE.
16281 (analyse_first) <charset>: For filling fastmap for all multibyte
16282 characters, don't check by BASE_LEADING_CODE_P.
16283 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16284 the same as RE_MULTIBYTE_P (bufp) now.
16285 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16286 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16287 (TRANSLATE_VIA_MULTIBYTE): New macro.
16288 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16289 It is the same as RE_MULTIBYTE_P (bufp) now.
16290 <exactn>: Translate via multibyte.
16291 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16292 translate it.
16293 <charset, charset_not>: Fetch a character by
16294 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16295 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16296 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16297 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16298 by GET_CHAR_AFTER.
16299 (bcmp_translate): Likewise.
16300
16301 * search.c (compile_pattern): Check the member target_multibyte,
16302 not the member multibyte of buf.
16303
16304 * lread.c (read1): While reading a string, set force_singlebyte
16305 and force_multibyte correctly.
16306
16307 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16308 up of unibyte_to_multibyte_table.
16309
163102008-02-01 Kenichi Handa <handa@m17n.org>
16311
16312 * coding.c (setup_coding_system): If coding has
16313 post-read-conversion or pre-write-conversion, set
16314 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16315 respectively.
16316 (decode_coding_gap): Run post-read-conversion if any.
16317
16318 * fileio.c (Finsert_file_contents): Even if we read into a
16319 unibyte buffer, check if we must decode the result or not.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * coding.c (make_conversion_work_buffer): Change the work buffer
16324 name to the same one as that of Emacs 21.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * coding.h (make_conversion_work_buffer): Adjust prototype.
16329 (code_conversion_restore): Don't extern it.
16330
16331 * coding.c (detected_mask): Delete unused variable.
16332 (decode_coding_iso_2022): Pay attention to the byte sequence of
16333 CTEXT extended segment, and retain those bytes as is.
16334 (decode_coding_ccl): Delete unused variable `valids'.
16335 (setup_coding_system): Delete unused variable `category'.
16336 (consume_chars): Delete unused variable `category'. Make it work
16337 for non-multibyte case.
16338 (make_conversion_work_buffer): Change argument.
16339 (saved_coding): Delete unused variable.
16340 (code_conversion_restore): Don't check saved_coding->destination.
16341 (code_conversion_save): New function.
16342 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16343 instead of record_unwind_protect.
16344 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16345 (detect_coding_system): Delete unused variable `mask'.
16346 (Fdefine_coding_system_internal): Delete unused variable id.
16347
16348 * fileio.c (kill_workbuf_unwind): New function.
16349 (Finsert_file_contents): On replacing, call
16350 make_conversion_work_buffer with correct args, and call
16351 record_unwind_protect with the first arg kill_workbuf_unwind.
16352
16353 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16358 (fontset_add): Fix for the case that TO is less than TO1.
16359 (Ffontset_info): Don't use fallback fontset on checking the
16360 default fontset.
16361 (dump_fontset): New function for debugging.
16362
16363 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16364 coding_type is Qcharset.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16369 (map_char_table): Don't inherit the value from the parent on
16370 initializing VAL. Adjust for the above change.
16371
163722008-02-01 Kenichi Handa <handa@m17n.org>
16373
16374 * coding.c (Qsignature, Qendian): Delete these variables.
16375 (syms_of_coding): Don't initialize them.
16376 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16377 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16378 detect_info->found.
16379 (decode_coding_utf_16): Don't detect BOM here.
16380 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16381 is NOT utf_16_without_bom.
16382 (setup_coding_system): For a coding system of type utf-16, check
16383 if the attribute :endian is Qbig or not (not nil or not), and set
16384 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16385 (detect_coding): If coding type is utf-16 and BOM detection is
16386 required, detect it.
16387 (Fdefine_coding_system_internal): For a coding system of type
16388 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * coding.c (coding_set_source): Fix for the case that the current
16393 buffer is different from coding->src_object.
16394 (decode_coding_object): Don't use the conversion work buffer if
16395 DST_OBJECT is a buffer.
16396
163972008-02-01 Dave Love <fx@gnu.org>
16398
16399 * lread.c (read_emacs_mule_char) [len==2]: Index
16400 emacs_mule_charset correctly.
16401
164022008-02-01 Dave Love <fx@gnu.org>
16403
16404 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16405 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16406 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16407 treated specially.)
16408 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16409 (detected_mask): Remove Big5 bits.
16410
164112008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 The following changes are to make the font rescaling facility
16414 compatible with Emacs 21.
16415
16416 * xfaces.c (Vface_font_rescale_alist): Rename from
16417 Vface_resizing_fonts.
16418 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16419 (font_rescale_ratio): Rename from font_resizing_ratio.
16420 (split_font_name): Set font->rescale_ratio.
16421 (better_font_p): Pay attention to font->rescale_ratio.
16422 (build_scalable_font_name): Likewise. Change RESX, and RESY
16423 fields.
16424 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16429 (Qutf_16_le): Remove these variables.
16430 (syms_of_coding): Don't DEFSYM them.
16431 (decode_coding_utf_16): Fix handling of BOM.
16432 (encode_coding_utf_16): Fix handling of BOM.
16433
164342008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * fileio.c (Finsert_file_contents): On replacing, before decoding
16437 the file into the work buffer, set point of the work buffer to the end.
16438
164392008-02-01 Dave Love <fx@gnu.org>
16440
16441 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16442
164432008-02-01 Dave Love <fx@gnu.org>
16444
16445 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16446 and fix C types.
16447
164482008-02-01 Kenichi Handa <handa@m17n.org>
16449
16450 * xdisp.c (SKIP_GLYPHS): New macro.
16451 (set_cursor_from_row): Pay attention to string display properties.
16452
16453 * category.c (copy_category_entry): Fix for the case that RANGE
16454 is an integer.
16455
16456 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16457
16458 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16459
164602008-02-01 Kenichi Handa <handa@m17n.org>
16461
16462 * charset.c (Fcharset_id_internal): New function.
16463 (syms_of_charset): Defsubr it.
16464
16465 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16466 with the last arg charset_list acquired from coding.
16467 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16468 the attribute coding_attr_ccl_valids.
16469
16470 * coding.h (enum define_coding_ccl_arg_index): Set the first
16471 member coding_arg_ccl_decoder to coding_arg_max.
16472
16473 * ccl.h (ccl_driver): Adjust prototype.
16474
16475 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16476 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16477 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16478 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16479 last arg Qnil.
16480
164812008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16484 call encode_char.
16485
16486 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16487
164882008-02-01 Dave Love <fx@gnu.org>
16489
16490 * composite.c (syms_of_composite): Make composition_hash_table weak.
16491
164922008-02-01 Kenichi Handa <handa@m17n.org>
16493
16494 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16495 (font_name_registry): Don't extern them.
16496 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16497
16498 * fontset.h (Qfontset): Don't extern it.
16499 (new_fontset_from_font_name): Extern it.
16500
16501 * fontset.c: Give 8 extra slots to fontset objects.
16502 (Qfontset_info): New variable.
16503 (syms_of_fontset): Defsym it.
16504 (FONTSET_FALLBACK): New macro.
16505 (fontset_face): Try also the default fontset.
16506 (make_fontset): Realize a fallback fontset from the default fontset.
16507 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16508 using split_font_name_into_vector and build_font_name_from_vector.
16509 (Fset_fontset_font): Access the elements of font_spec by enum
16510 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16511 name by using split_font_name_into_vector.
16512 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16513 generate a proper font name from the fontset name. Update
16514 Vfontset_alias_alist.
16515 (n_auto_fontsets): New variable.
16516 (new_fontset_from_font_name): New function.
16517 (Ffont_info): Store the information about fonts generated from the
16518 default fontset in the first extra slot of the returned char-table.
16519
16520 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16521 (font_name_registry): Delete function.
16522 (split_font_name_into_vector): New function.
16523 (build_font_name_from_vector): New function.
16524 (font_list): The argument REGISTRY is now a list of registry names.
16525 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16526 specifies an explicit font name, return the name as is. Make a
16527 list of registy names.
16528
16529 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16530 of x_new_fontset.
16531 (Fx_create_frame): Don't call x_new_fontset here. Just use
16532 x_list_fonts to check the existence of fonts.
16533
16534 * xterm.h (x_new_fontset): Adjust prototype.
16535
16536 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16537 string. Use new_fontset_from_font_name to create a fontset from a
16538 font name.
16539
165402008-02-01 Kenichi Handa <handa@m17n.org>
16541
16542 * syntax.c (Vfind_word_boundary_function_table): New name for
16543 Vnext_word_boundary_function_table.
16544 (find-word-boundary-function-table): New name for
16545 next-word-boundary-function-table.
16546
165472008-02-01 Dave Love <fx@gnu.org>
16548
16549 * Makefile.in: Fix some dependencies.
16550
16551 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16552 set it to nil before returning.
16553
16554 * composite.c (update_compositions): Fix type error.
16555
16556 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * xterm.c (x_new_font): Optimize for the case that the font is
16561 already set for the frame.
16562
165632008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * chartab.c (char_table_ascii): Check if the char table contents
16566 is sub-char-table or not.
16567 (char_table_set, char_table_set_range): Fix argument to
16568 char_table_ascii.
16569
16570 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16571 (detect_coding_utf_8, detect_coding_utf_16)
16572 (detect_coding_emacs_mule, detect_coding_iso_2022)
16573 (detect_coding_sjis, detect_coding_big5)
16574 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16575 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16576 sequence is valid in this coding system. Change callers.
16577 (MAX_ANNOTATION_LENGTH): New macro.
16578 (ADD_ANNOTATION_DATA): New macro.
16579 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16580 ADD_ANNOTATION_DATA. Change the format of annotation data.
16581 (ADD_CHARSET_DATA): New macro.
16582 (emacs_mule_char): New argument ID. Change callers.
16583 (decode_coding_emacs_mule, decode_coding_iso_2022)
16584 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16585 Produce charset annotation data in coding->charbuf.
16586 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16587 to charset annotation data in coding->charbuf.
16588 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16589 coding->common_flags if the coding system is iso-2022 based and
16590 uses designation.
16591 (produce_composition): Adjust for the new annotation data format.
16592 (produce_charset): New function.
16593 (produce_annotation): Handle charset annotation.
16594 (handle_composition_annotation, handle_charset_annotation): New
16595 functions.
16596 (consume_chars): Handle charset annotation. Utilize the above two
16597 functions.
16598 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16599 buffer, get the deleted text as a string and set
16600 coding->src_object to that string.
16601 (detect_coding, detect_coding_system): Use the new struct
16602 coding_detection_info.
16603
16604 * coding.h (struct coding_detection_info): New structure.
16605 (struct coding_system): Adjust prototype of the member `detector'.
16606 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16607
166082008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16611
166122008-02-01 Dave Love <fx@gnu.org>
16613
16614 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16615 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16616 to new local and nullify apropos_accumulate before returning.
16617 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16622 correctly.
e3eea1fc 16623
aac0c6e3
MR
166242008-02-01 Dave Love <fx@gnu.org>
16625
16626 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16627
166282008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 The following changes are to make character composition happen
16631 automatically on displaying.
16632
16633 * Makefile.in (lisp, shortlisp): Add composite.elc.
16634
16635 * composite.h (Qauto_composed, Vauto_composition_function)
16636 (Qauto_composition_function): Extern them.
16637
16638 * composite.c (Vcomposition_function_table)
16639 (Qcomposition_function_table): Delete variables.
16640 (Qauto_composed, Vauto_composition_function)
16641 (Qauto_composition_function): New variables.
16642 (run_composition_function): Don't call
16643 compose-chars-after-function.
16644 (update_compositions): Clear `auto-composed' text property.
16645 (compose_chars_in_text): Delete this function.
16646 (syms_of_composite): Staticpro Qauto_composed and
16647 Qauto_composition_function. Declare Vauto_composition_function as
16648 a Lisp variable.
16649
16650 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16651
16652 * xdisp.c (it_props): Add an entry for Qauto_composed.
16653 (handle_auto_composed_prop): New function.
16654
16655 * xselect.c (selection_data_to_lisp_data): Don't call
16656 compose_chars_in_text.
16657
166582008-02-01 Dave Love <fx@gnu.org>
16659
16660 * keyboard.c (read_char): Modify checking around use of
16661 Vkeyboard_translate_table.
16662
16663 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16664 and fix C types.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16669 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16670 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16671 the case that the last byte is '\r' correctly.
16672 (decode_coding): Flush out the unprocessed data correctly.
16673 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16674
166752008-02-01 Dave Love <fx@gnu.org>
16676
16677 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16678 Add XK_ISO... case.
16679 (xaw_scroll_callback): Revert last change.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 * xfaces.c (Vface_resizing_fonts): New variable.
16688 (struct font_name): New member `resizing_ratio'.
16689 (font_resizing_ratio): New function.
16690 (split_font_name): Set font->resizing_ratio.
16691 (better_font_p): Pay attention to font->resizing_ratio.
16692 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16693 RESX, and RESY fields.
16694 (try_alternative_families): Try scalable fonts if
16695 Vscalable_fonts_allowed is not Qt.
16696 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16697
166982008-02-01 Dave Love <fx@gnu.org>
16699
16700 * xterm.c (xaw_scroll_callback): Cast correctly.
16701
167022008-02-01 Dave Love <fx@gnu.org>
16703
16704 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16705 (lispy_kana_keys): Comment out.
16706 (make_lispy_event) [XK_kana_A]: Comment out.
16707
16708 * xterm.c (xaw_scroll_callback): Cast call_data.
16709 (XTread_socket): Deal with ASCII keysyms.
16710 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16711
167122008-02-01 Dave Love <fx@gnu.org>
16713
16714 * xterm.c (Vx_keysym_table): New.
16715 (syms_of_xterm): Initialize it.
16716 (XTread_socket): Use it.
16717 From head: Eliminate incorrect optimization that tried to avoid
16718 decoding the output of X*LookupString.
16719 (x_get_font_repertory): Delete charset declaration.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16724 return 0.
16725 (Fdefine_coding_system_internal): Setup
16726 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16727
167282008-02-01 Dave Love <fx@gnu.org>
16729
16730 * coding.c (Fcheck_coding_system): Doc fix.
16731
16732 * editfns.c (Finsert_byte): Return a proper value.
16733
167342008-02-01 Kenichi Handa <handa@m17n.org>
16735
16736 * coding.c (decode_coding): Fix args to translate_chars. Pay
16737 attention to Vstandard_translation_table_for_decode.
16738 (encode_coding): Fix args to translate_chars. Pay attention to
16739 Vstandard_translation_table_for_encode.
16740
16741 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16742 SINGLE_BYTE_CHAR_P.
16743
16744 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16745 not by SINGLE_BYTE_CHAR_P.
16746
16747 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16748 SINGLE_BYTE_CHAR_P.
16749
16750 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16751 SINGLE_BYTE_CHAR_P.
16752
16753 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16754 by SINGLE_BYTE_CHAR_P.
16755
16756 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16757 SINGLE_BYTE_CHAR_P.
16758
167592008-02-01 Dave Love <fx@gnu.org>
16760
16761 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16762
167632008-02-01 Dave Love <fx@gnu.org>
16764
16765 * fns.c (Flanginfo): Fix typo.
16766
16767 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16768
167692008-02-01 Kenichi Handa <handa@m17n.org>
16770
16771 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16772 (detect_coding_emacs_mule, detect_coding_iso_2022)
16773 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16774 incomplete byte sequence. Don't update *mask when correctly detected.
16775 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16776 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16777 (detect_coding, detect_coding_system): Adjust for the changes above.
16778
167792008-02-01 Kenichi Handa <handa@m17n.org>
16780
16781 * character.c (char_string): Rename from
16782 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16783 (string_char): Rename from string_char.
16784
16785 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16786 if C is greater than MAX_3_BYTE_CHAR.
16787 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16788 string_char instead of string_char_with_unification.
16789
167902008-02-01 Dave Love <fx@gnu.org>
16791
16792 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16793
167942008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * keymap.c (push_key_description): Pay attention to force_multibyte.
16797
16798 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16799
168002008-02-01 Dave Love <fx@gnu.org>
16801
16802 * charset.c (define_charset_internal): Rename `supprementary'.
16803
16804 * Makefile.in (lisp, shortlisp): Remove latin-N.
16805
168062008-02-01 Dave Love <fx@gnu.org>
16807
16808 * xfns.c (x_window, x_window): Use use_xim.
16809
16810 * xterm.c (use_xim): Initialize.
16811 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16812 (x_term_init): Maybe set use_xim.
16813
16814 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * search.c (search_buffer): Fix case-fold-search of multibyte
16819 characters.
16820 (boyer_moore): Rename the last argument to char_high_bits.
16821
168222008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * xdisp.c (display_string): Fix for the case of zero width glyph.
16825
16826 * xfns.c (x_set_font): Change the error message of the case that
16827 x_new_fontset returns Qt.
16828
16829 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16830 (Finternal_set_lisp_face_attribute): Use signal_error for the
16831 error of invalid fontset.
16832
16833 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16834 fontset, return Qt.
16835
168362008-02-01 Dave Love <fx@gnu.org>
16837
16838 * unexelf.c (unexec): Make .got handling not SGI-specific.
16839
16840 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16841
16842 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16843
16844 * keyboard.c (read_key_sequence): Fix type error.
16845
16846 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16847 type error.
16848
16849 * fontset.c (fontset_add): Return Lisp_Object.
16850
168512008-02-01 Dave Love <fx@gnu.org>
16852
16853 * charset.h (charset_ordered_list_tick): Declare extern.
16854
168552008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 The following changes (and some of 2008-02-01 changes of mine) are
16858 for handling syntax, category, and case conversion for unibyte
16859 characters by converting them to multibyte on the fly. With these
16860 changes, we don't have to setup syntax and case tables for unibyte
16861 characters in each language environment.
16862
16863 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16864 multibyte if necessary.
16865
16866 * bytecode.c (Fbyte_code): Likewise.
16867
16868 * character.h (LEADING_CODE_LATIN_1_MIN)
16869 (LEADING_CODE_LATIN_1_MAX): New macros.
16870 (unibyte_to_multibyte_table): Extern it.
16871 (unibyte_char_to_multibyte): New macro.
16872 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16873 (CHAR_LEADING_CODE): New macro.
16874 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16875
16876 * character.c (unibyte_to_multibyte_table): New variable.
16877 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16878 (multibyte_char_to_unibyte): If C is an eight-bit character,
16879 convert it to the corresponding byte value.
16880
16881 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16882 not 1, signals an error. Update the elements of
16883 unibyte_to_multibyte_table.
16884 (init_charset_once): Initialize unibyte_to_multibyte_table.
16885 (syms_of_charset): Define the charset `iso-8859-1'.
16886
16887 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16888 as is without converting it to unibyte. In a unibyte buffer,
16889 convert C to multibyte before checking the syntax.
16890
16891 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16892
16893 * minibuf.c (Fminibuffer_complete_word): Use the macro
16894 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16895
16896 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16897
16898 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16899 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16900 that is zero, convert an eight-bit char to multibyte.
16901 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16902 non-emacs case.
16903 (PATFETCH): Convert an eight-bit char to multibyte.
16904 (HANDLE_UNIBYTE_RANGE): New macro.
16905 (regex_compile): Setup the compiled pattern for multibyte chars
16906 even if the given regex string is unibyte. Use PATFETCH_RAW
16907 instead of PATFETCH in many places. To handle `charset'
16908 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16909 only for ASCII chars.
16910 (analyse_first) <exactn>: Simplify because the compiled pattern
16911 is multibyte.
16912 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16913 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16914 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16915 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16916 multibyte always 1.
16917 (re_search_2): In emacs, set the locale variable multibyte to 1,
16918 otherwise to 0. New local variable target_multibyte. Check it
16919 to decide the multibyteness of STR1 and STR2. If
16920 target_multibyte is zero, convert unibyte chars to multibyte
16921 before translating and checking fastmap.
16922 (TARGET_CHAR_AND_LENGTH): New macro.
16923 (re_match_2_internal): In emacs, set the locale variable multibyte
16924 to 1, otherwise to 0. New local variable target_multibyte. Check
16925 it to decide the multibyteness of STR1 and STR2. Use
16926 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16927 <charset, charset_not>: If multibyte is nonzero, check fastmap
16928 only for ASCII chars. Call bcmp_translate with
16929 target_multibyte, not with multibyte.
16930 <begline>: Declare the local variable C as `unsigned'.
16931 (bcmp_translate): Change the last arg name to target_multibyte.
16932
16933 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16934 the regexp pattern and the matching target. Set cp->buf.multibyte
16935 to the multibyteness of the regexp pattern. Set
16936 cp->but.target_multibyte to the multibyteness of the matching target.
16937 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16938 FETCH_STRING_CHAR_ADVANCE.
16939 (Freplace_match): Convert unibyte chars to multibyte.
16940
16941 * syntax.c (char_quoted, back_comment, scan_words)
16942 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16943 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16944 unibyte chars to multibyte.
16945 (skip_chars): Delete the arg syntaxp, and move the code for
16946 handling syntaxes to skip_syntaxes. Change callers.
16947 Fix the case that the multibyteness of STRING and the current
16948 buffer doesn't match.
16949 (skip_syntaxes): New function.
16950 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16951 SINGLE_BYTE_CHAR_P.
16952
169532008-02-01 Kenichi Handa <handa@m17n.org>
16954
16955 * xfaces.c (QCfontset): New variable.
16956 (LFACE_FONTSET): New macro.
16957 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16958 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16959 (Finternal_set_lisp_face_attribute)
16960 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16961 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16962 check also LFACE_FONTSET_INDEX.
16963 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16964 attrs[LFACE_FONT_INDEX].
16965 (syms_of_xfaces): Intern and staticpro QCfontset.
16966
16967 * dispextern.h (enum lface_attribute_index): New member
16968 LFACE_FONTSET_INDEX.
16969
16970 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16971
169722008-02-01 Kenichi Handa <handa@m17n.org>
16973
16974 * coding.c (coding_set_destination): Fix coding->destination for
16975 the case converting a region.
16976 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16977 (encode_coding_object): Fix coding->dst_pos and
16978 coding->dst_pos_byte for the case converting a region.
16979
16980 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16981
16982 * character.h (BYTE8_STRING): New macro.
16983
16984 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16989 characters by octal form.
16990
16991 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16992
16993 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16994 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16995 _fetch_multibyte_char_len.
16996 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16997
16998 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16999
17000 * casefiddle.c (casify_object): Simplify. Handle the case that
17001 the case conversion change the byte length.
17002 (casify_region): Likewise.
17003
17004 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17005
17006 * character.c (_fetch_multibyte_char_len): Delete this variable.
17007 (syms_of_character): Setup Vprintable_chars.
17008
17009 * editfns.c (Fchar_equal): Fix for the unibyte case.
17010 (Finsert_byte): New function.
17011 (syms_of_editfns): Defsubr it.
17012
17013 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17014 of direct code 0x3ffff.
17015
17016 * search.c (Freplace_match): Fix for the unibyte case.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * lread.c (safe_to_load_p): Fix the logic.
17021
17022 * syntax.c (scan_words): Don't treat characters belonging to
17023 different scripts as constituting a word.
17024
17025 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17026
17027 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17028
17029 * emacs.c (main): In the case of --unibyte, instead of aborting on
17030 finding non-empty buffer, make it unibyte.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17035 to create a fontset.
17036
170372008-02-01 Dave Love <fx@gnu.org>
17038
17039 * character.c (Funibyte_char_to_multibyte): Doc fix.
17040
17041 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17042
170432008-02-01 Kenichi Handa <handa@m17n.org>
17044
17045 * fontset.c (fontset_add): Make the type `int'.
17046 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17047
17048 * character.c (unibyte_char_to_multibyte)
17049 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17050 charset_unibyte, not charset_primary.
17051
17052 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17053
17054 * charset.c (charset_unibyte): Rename from charset_primary.
17055 (Funibyte_charset): Rename from Fprimary_charset.
17056 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17057 (syms_of_charset): Adjust for the above changes.
17058
17059 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17060 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17061 it->multibyte_p is zero.
17062
17063 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17064 Delete extern.
17065
170662008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 * coding.c (Fdefine_coding_system_internal): Fix category setting
17069 for a coding system of type iso-2022.
17070
170712008-02-01 Kenichi Handa <handa@m17n.org>
17072
17073 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * syntax.c (Vnext_word_boundary_function_table): New variable.
17078 (next-word-boundary-function-table): Declare it as a Lisp variable
17079 in syms_of_syntax.
17080 (scan_words): Call functions in Vnext_word_boundary_function_table
17081 if any.
17082
17083 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17084
17085 * fontset.c (fs_load_font): If fontp->charset is not negative,
17086 return fontp without setting its members.
17087
170882008-02-01 Dave Love <fx@gnu.org>
17089
17090 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17091
17092 * m/sparc.h (HAVE_ALLOCA): Delete.
17093
17094 * s/irix6-5.h: Don't include strings.h.
17095 (bcopy, bzero, bcmp): Don't undef.
17096
17097 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17098
17099 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17100 (TIOCSIGSEND): Don't test IRIX6.
17101 (bcopy, bzero, bcmp): Define conditionally.
17102
171032008-02-01 Kenichi Handa <handa@m17n.org>
17104
17105 * buffer.c (Qas, Qmake, Qto): New variables.
17106 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17107 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17108
17109 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17110 we are inserting a process output into a multibyte buffer.
17111
17112 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17113 multibyte_char_to_unibyte.
17114
17115 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17116 by the primary charset, make it eight-bit char.
17117 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17118
17119 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17120 (charset_8_bit__control, charset_8_bit_graphic)
17121 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17122 (define_charset_internal): New function.
17123 (syms_of_charset): Call define_charset_internal for pre-defined
17124 charsets.
17125
17126 * charset.h (charset_8_bit): Extern it.
17127
17128 * coding.c (make_conversion_work_buffer): Adjust for the change
17129 of Fset_buffer_multibyte.
17130 (encode_coding_raw_text): Increment p0 in the loop.
17131
17132 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17133
17134 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17135 for the change of Fset_buffer_multibyte.
17136
17137 * fns.c (Fstring_to_multibyte): New function.
17138 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17139
171402008-02-01 Dave Love <fx@gnu.org>
17141
17142 * xfns.c (x_put_x_image): Declare args.
17143
17144 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17145 (try_font_list): Declare an arg.
17146
17147 * xdisp.c (message2_nolog, set_message): Declare an arg.
17148
17149 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17150
17151 * syntax.c (scan_sexps_forward): Declare an arg.
17152
17153 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17154 Declare an arg.
17155
17156 * lisp.h (Fnew_fontset): Declare.
17157
17158 * keymap.c (push_key_description): Call CHARACTERP correctly.
17159
17160 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17161 (face_for_char): Delete unused vars.
17162 (Fset_fontset_font): Doc fix. Delete unused vars.
17163
17164 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17165
17166 * composite.c (update_compositions): Declare arg.
17167
17168 * cm.c (calccost, cmgoto): Declare args.
17169
17170 * charset.c: Remove `emacs' conditional. Doc fixes.
17171 (map_char_table_for_charset): Declare.
17172
17173 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17174
17175 * ccl.c: Remove `emacs' conditional.
17176
171772008-02-01 Kenichi Handa <handa@m17n.org>
17178
17179 The following changes are to allow specifying multiple font
17180 patterns for a character range (specified by script or charset).
17181
17182 * Makefile.in (abbrev.o): Depend on syntax.h.
17183 (xfaces.o): Depend on charset.h.
17184
17185 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17186 SINGLE_BYTE_CHAR_P.
17187
17188 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17189
17190 * character.h (Vchar_script_table): Extern it.
17191
17192 * character.c (Vscript_alist): Delete.
17193 (Vchar_script_table, Qchar_script_table): New variable.
17194 (syms_of_character): Declare Vchar_script_table as a lisp variable
17195 and initialize it.
17196
17197 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17198 have property char-table-extra-slots, make no extra slot.
17199
17200 * dispextern.h (struct face): Delete member `charset'.
17201 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17202 SINGLE_BYTE_CHAR_P.
17203 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17204 Add prototypes.
17205 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17206 (generate_ascii_font_name): Rename from generate_ascii_font.
17207
17208 * fontset.h (get_font_repertory_func): New prototype.
17209 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17210 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17211
17212 * fontset.c (Qprepend, Qappend): New variables.
17213 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17214 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17215 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17216 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17217 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17218 (load_font_get_repertory): New functions.
17219 (fontset_set): Delete.
17220 (fontset_face): New arg FACE. Return face ID, not face.
17221 Complete re-write to handle new fontset structure. Change caller.
17222 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17223 (face_for_char): Don't call lookup_face.
17224 (make_fontset_for_ascii_face): New arg FACE.
17225 (fs_load_font): New arg CHARSET_ID. Don't check
17226 Vfont_encoding_alist here.
17227 (find_font_encoding): New function.
17228 (list_fontsets): Use STRINGP, not ! NILP.
17229 (accumulate_script_ranges): New function.
17230 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17231 re-written to handle new fontset structure.
17232 (Ffontset_font): Return a copy of element.
17233 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17234 docstring of font-encoding-alist.
17235
17236 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17237 (Fset_fotset_font): Fix arguments to 5.
17238
17239 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17240
17241 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17242 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17243 (highlight_trailing_whitespace): Adjust for the change of
17244 lookup_named_face.
17245
17246 * xfaces.c: Include charset.h.
17247 (load_face_font): Delete argument C. Change caller.
17248 (generate_ascii_font_name): Rename from generate_ascii_font.
17249 (font_name_registry): New function.
17250 (cache_face): Store ascii faces before non-ascii faces in buckets.
17251 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17252 Lookup only ascii faces.
17253 (lookup_non_ascii_face): New function.
17254 (lookup_named_face): Delete argument C. Change caller.
17255 (lookup_derived_face): Delete argument C. Change caller.
17256 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17257 a string, just call font_list with it.
17258 (choose_face_font): Delete arguments FACE and C. New arg
17259 FONT_SPEC. Change caller.
17260 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17261 Change caller.
17262 (realize_non_ascii_face): New function.
17263 (realize_x_face): Call load_face_font here.
17264 (realize_tty_face): Delete argument C. Change caller.
17265 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17266 get a face ID.
17267 (dump_realized_face): Don't print charset of FACE.
17268
17269 * xfns.c (x_set_font): Always call x_new_fontset and
17270 store_frame_parameter.
17271 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17272 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17273
17274 * xterm.h (x_get_font_repertory): Extern it.
17275
17276 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17277 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17278 it->multibyte_p is zero.
17279 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17280 (x_new_fontset): If FONTSETNAME doesn't match any existing
17281 fontsets, create a new one.
17282 (x_get_font_repertory): New function.
17283
172842008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * coding.c (Ffind_coding_systems_region_internal): Detect an
17287 ASCII only string correctly.
17288
17289 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17290 version is 0.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * lread.c: Include "coding.h".
17295 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17296 (load_each_byte, unread_char): New variables.
17297 (readchar_backlog): Delete.
17298 (readchar): Return a character unless load_each_byte is nonzero.
17299 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17300 cons. If unread_char is not -1, simply return it.
17301 (unreadchar): Handle the case that readcharfun is
17302 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17303 (read_multibyte): Delete.
17304 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17305 (read_emacs_mule_char): New functions.
17306 (Fload): Even if the file doesn't have the extension ".elc", if
17307 safe_to_load_p returns a positive version number, assume that the
17308 file contains bytecompiled code. If the version is less than 22,
17309 load the file while decoding multibyte sequences by emacs-mule.
17310 (readevalloop): Don't use readchar_backlog.
17311 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17312 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17313 (read_escape): Delete the arg BYTEREP.
17314 (read1): Set load_each_byte to 1 temporarily while handling
17315 #@NUMBER. Don't call read_multibyte.
17316 (read_vector): Call Fread with a cons. If readcharfun is
17317 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17318 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17319 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17320 and Qload_force_doc_strings.
17321
173222008-02-01 Kenichi Handa <handa@m17n.org>
17323
17324 * xdisp.c (face_before_or_after_it_pos): Call
17325 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17326
173272008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * character.h (TRAILING_CODE_P): New macro.
17330 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17331 (string_char_with_unification): Fix prototype.
17332 (Vscript_alist): Extern it.
17333
17334 * character.c (Vscript_alist): New variable.
17335 (string_char_with_unification, str_as_unibyte)
17336 (string_escape_byte8): Add `const' to local variables.
17337 (syms_of_character): Declare script-alist as a Lisp variable.
17338
17339 * charset.h (Vcharset_ordered_list): Extern it.
17340 (charset_ordered_list_tick): Extern it.
17341 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17342 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17343 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17344 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17345 (Funify_charset): Adjust for the change of Funify_charset.
17346
17347 * charset.c (charset_ordered_list_tick): New variable.
17348 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17349 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17350 deunify intead of unify a charset.
17351 (string_xstring_p): Add `const' to local variables.
17352 (find_charsets_in_text): Add `const' to arguments and local variables.
17353 (encode_char): Adjust for the change of Funify_charset. Fix
17354 detecting of invalid code.
17355 (Fset_charset_priority): Increment charset_ordered_list_tick.
17356 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17357 and TO_CODE.
17358
17359 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17360 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17361 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17362 (decode_coding_ccl, consume_chars)
17363 (Ffind_coding_systems_region_internal)
17364 (Fcheck_coding_systems_region): Add `const' to local variables.
17365
17366 * print.c (print_object): Use octal form for printing the
17367 contents of a bool vector.
17368
173692008-02-01 Dave Love <fx@gnu.org>
17370
17371 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17372 <version == 20>: Refuse to load.
17373
173742008-02-01 Dave Love <fx@gnu.org>
17375
17376 * fns.c: Move coding.h.
17377 (Qcodeset, Qdays, Qmonths): New.
17378 (concat): Use CHARACTERP instead of INTEGERP.
17379 (Flocale_codeset): Delete.
17380 (Flanginfo): New function.
17381 (syms_of_fns): Change accordingly.
17382
17383 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17384
173852008-02-01 Dave Love <fx@gnu.org>
17386
17387 * casetab.c (init_casetab_once, init_casetab_once): Fix
17388 CHAR_TABLE_SET call.
17389
17390 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17391
17392 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17393
17394 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17395 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17396 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17397
17398 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17399
17400 * coding.c (ENCODE_DESIGNATION, decode_eol)
17401 (make_conversion_work_buffer, code_conversion_restore)
17402 (Fdefine_coding_system_internal): Convert Lisp types.
17403 (code_conversion_restore): Use EQ, not ==.
17404 (Fencode_coding_string): Fix code_convert_string call.
17405
17406 * coding.h (code_convert_region): Fix prototype.
17407
17408 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17409
17410 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17411 (Ffontset_info): Convert Lisp types.
17412
17413 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17414
17415 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17416
17417 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17418
17419 * chartab.c: Include "...h", not <...h> in some cases.
17420
17421 * callproc.c (Fcall_process): Remove unused variables.
17422
174232008-02-01 Dave Love <fx@gnu.org>
17424
17425 * coding.c (Fset_coding_system_priority): Allow null arg list.
17426
174272008-02-01 Dave Love <fx@gnu.org>
17428
17429 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17430 (Fself_insert_and_exit): Use CHARACTERP.
17431
17432 * callproc.c (Fcall_process): Remove unused vars.
17433
17434 * xterm.c (XTread_socket): Add extra dead keysyms.
17435
17436 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17437
17438 * dispextern.h: Remove prototypes for redraw_frame,
17439 redraw_garbaged_frames.
17440
17441 * cmds.c (Fself_insert_command): Use CHARACTERP.
17442
17443 * chartab.c (make_sub_char_table): Remove unused var.
17444 (Fset_char_table_default, Fmap_char_table): Doc fix.
17445
17446 * keymap.c (access_keymap): Remove generic char code.
17447 (push_key_description): Use CHARACTERP.
17448
174492008-02-01 Dave Love <fx@gnu.org>
17450
17451 * charset.c: Doc fixes.
17452 (Funify_charset): Extra checking.
17453
174542008-02-01 Dave Love <fx@gnu.org>
17455
17456 * lread.c: Remove some unused variables.
17457 (safe_to_load_p): If safe, return the magic number version byte.
17458 (Fload): Maybe use load-with-code-conversion.
17459
174602008-02-01 Kenichi Handa <handa@m17n.org>
17461
17462 * category.c (Fmodify_category_entry): Don't modify the contents
17463 of category_set for characters out of the range. Avoid
17464 unnecessary modification.
17465
17466 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17467 Vchar_unify_table. The default value of the table is now nil.
17468
17469 * character.c (syms_of_character): Setup Vchar_width_table for
17470 eight-bit-control and raw-byte chars.
17471
17472 * charset.h (enum define_charset_arg_index): Delete
17473 charset_arg_parents and add charset_arg_subset and
17474 charset_arg_superset.
17475 (enum charset_attr_index): Delete charset_parents and add
17476 charset_subset and charset_superset.
17477 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17478 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17479 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17480 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17481 (CHARSET_SUPERSET): New macros.
17482 (charset_work): Extern it.
17483 (ENCODE_CHAR): Use charset_work.
17484 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17485 (map_charset_chars): Extern it.
17486
17487 * charset.c (load_charset_map): Set the default value of encoder
17488 and deunifier char-tables to nil.
17489 (map_charset_chars): Change argument. Change callers. Use
17490 map_char_table_for_charset instead of map_char_table.
17491 (Fmap_charset_chars): New optional args from_code and to_code.
17492 (Fdefine_charset_internal): Adjust for the change of
17493 `define-charset' (:parents -> :subset or :superset).
17494 (charset_work): New variable.
17495 (encode_char, syms_of_charset): Adjust for the change of
17496 Fdefine_charset_internal.
17497 (Ffind_charset_string): Setup the vector `charsets' correctly.
17498
17499 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17500 the previous change.
17501 (char_table_ref_and_range): Adjust for the above change.
17502 (map_sub_char_table_for_charset): New function.
17503 (map_char_table_for_charset): New function.
17504
17505 * keymap.c (describe_vector): Handle a char-table directly here.
17506 (describe_char_table): Delete.
17507
17508 * lisp.h (map_charset_chars): Delete.
17509
175102008-02-01 Dave Love <fx@gnu.org>
17511
17512 * fns.c (count_combining): Comment out (unused).
17513 (Flocale_codeset): New.
17514 (syms_of_fns): Defsubr it.
17515
17516 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17517 (size_t): Remove.
17518
175192008-02-01 Dave Love <fx@gnu.org>
17520
17521 * Makefile.in (chartab.o): Depend on charset.h.
17522
175232008-02-01 Kenichi Handa <handa@m17n.org>
17524
17525 * character.c (syms_of_character): Set the default value of
17526 Vprintable_chars to Qnil.
17527
175282008-02-01 Dave Love <fx@gnu.org>
17529
17530 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * charset.c (load_charset_map): Handle the case that from < to
17535 correctly.
17536
17537 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17538 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17539 Pay attention to raw-8-bit chars.
17540
175412008-02-01 Kenichi Handa <handa@m17n.org>
17542
17543 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17544 It is not bytecompiled now.
17545
17546 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17547 (charset_jisx0208): New variables.
17548 (Fdefine_charset_internal): Setup them if appropriate.
17549 (init_charset_once): Initialize them to -1.
17550
17551 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17552 (charset_jisx0208): Extern them.
17553
17554 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17555 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17556 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17557 (setup_iso_safe_charsets): Fix arguments to Fassq.
17558 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17559 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17560 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17561 (encode_coding_iso_2022): Change the 1st arg to
17562 ENCODE_ISO_CHARACTER to a variable.
17563
175642008-02-01 Kenichi Handa <handa@m17n.org>
17565
17566 * charset.h (enum define_charset_arg_index): New enums
17567 charset_arg_min_code and charset_arg_max_code.
17568 (struct charset): New member char_index_offset.
17569
17570 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17571 Take charset->char_index_offset into account.
17572 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17573 args[charset_arg_max_code]. Setup charset.char_index_offset.
17574 (syms_of_charset): Fix args to Fdefine_charset_internal.
17575
175762008-02-01 Dave Love <fx@gnu.org>
17577
17578 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17579
175802008-02-01 Dave Love <fx@gnu.org>
17581
17582 * coding.c: Doc fixes.
17583 (Fcoding_system_aliases): Fix return value.
17584 (Qmac): Remove (duplicated) definition.
17585
175862008-02-01 Dave Love <fx@gnu.org>
17587
362654a6
JB
17588 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17589 New functions.
aac0c6e3
MR
17590
17591 * character.c (Fstring): Doc fix.
17592
17593 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17594
362654a6 17595 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17596 (font-encoding-alist): Doc fix.
17597
175982008-02-01 Dave Love <fx@gnu.org>
17599
17600 * term.c (costs_set): Declare static, non-initialized for pcc.
17601 (encode_terminal_code): Remove unused var.
17602
17603 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17604 for K&R.
17605
17606 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17607
17608 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17609 (suffixes): Move out of make_subsidiaries for K&R.
17610
17611 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17612
17613 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17614
176152008-02-01 Dave Love <fx@gnu.org>
17616
17617 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17618
17619 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17620
176212008-02-01 Yong Lu <lyongu@asia-infonet.com>
17622
17623 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17624
17625 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17630 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17631
176322008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 * coding.c (decode_coding_charset): Adjust for the change of
17635 Fdefine_coding_system_internal.
17636 (Fdefine_coding_system_internal): For a coding system of
17637 `charset' type, store a list of charset IDs in
17638 `charset_attr_charset_valids' element of coding attributes.
17639
176402008-02-01 Kenichi Handa <handa@m17n.org>
17641
17642 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17643 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17644 caller. Handle 2-byte and 3-byte charsets correctly.
17645 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17646 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17647 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17648 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17649 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17650 sequence.
17651 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17652 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17653 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17654 and alt&rule composition.
17655 (decode_coding_iso_2022): Handle composition correctly.
17656 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17657
17658 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17659 re-defining a charset. If the charset has :emacs-mule-id, setup
17660 emacs_mule_bytes.
17661 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17666 (encode_coding_big5, encode_coding_charset): If coding requires safe
17667 encoding, produce a character specified by
17668 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17669
176702008-02-01 Dave Love <fx@gnu.org>
17671
17672 * xterm.c (XSetIMValues): Declare.
17673
17674 * process.c: Conditionally include sys/wait.h, pty.h.
17675
17676 * print.c (print_object): Fix print format for 64-bit systems.
17677
17678 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17679
17680 * buffer.c (emacs_strerror): Declare.
17681
17682 * fontset.c (Fclear_face_cache): Declare.
17683 (accumulate_font_info): Comment-out (unused).
17684 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17685 variables.
17686
17687 * character.h (string_escape_byte8): Declare.
17688
17689 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17690 unused vars.
17691 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17692 (Fmap_charset_chars): Doc fix.
17693
17694 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17695 (Fset_coding_system_priority, Fset_coding_system_priority)
17696 (Fdefine_coding_system_internal): Doc fix.
17697
176982008-02-01 Dave Love <fx@gnu.org>
17699
17700 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * character.c (string_escape_byte8): Make multibyte string with
17705 correct size.
17706
17707 * charset.c (Fmake_char): Delete unnecessary code.
17708
177092008-02-01 Kenichi Handa <handa@m17n.org>
17710
17711 * xfns.c (x_encode_text): Allocate coding.destination here, and
17712 call encode_coding_object with dst_object Qnil.
17713
17714 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17715 multibyte form correctly.
17716
17717 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17718 against Vfont_encoding_alist.
17719
17720 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17721 handling of charset list.
17722 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17723 (decode_coding_object): Move point to coding->dst_pos before
17724 calling post-read-conversion function.
17725 (encode_coding_object): Give correct arguments to
17726 pre-write-conversion. Ignore the return value of
17727 pre-write-conversion function. Pay attention to the case that
17728 pre-write-conversion changes the current buffer. If dst_object is
17729 Qt, even if coding->src_bytes is zero, allocate at least one byte
17730 to coding->destination.
17731
17732 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17733
17734 * charset.c (Fmake_char): Make it more backward compatible.
17735 (Fmap_charset_chars): Fix docstring.
17736
177372008-02-01 Dave Love <fx@gnu.org>
17738
17739 * coding.c: Doc fixes.
17740 (Fdefine_coding_system_alias): Use names, not symbols, in
17741 coding-system-alist.
17742
177432008-02-01 Kenichi Handa <handa@m17n.org>
17744
17745 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17746 of calling free_realized_face.
17747
177482008-02-01 Yong Lu <lyongu@asia-infonet.com>
17749
17750 * charset.c (read_hex): Don't treat SPC as a comment starter.
17751 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17752 (Fdecode_char): Fix typo.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * charset.h (struct charset): New member `code_space_mask'.
17757
17758 * coding.c (coding_set_source): Delete the local variable beg_byte.
17759 (encode_coding_charset, Fdefine_coding_system_internal):
17760 Delete the local variable charset.
17761 (Fdefine_coding_system_internal): Setup
17762 attrs[coding_attr_charset_valids] correctly.
17763
17764 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17765 member to check if CODE is valid or not.
17766 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17767 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17768 is within the range of charset->min_code and carset->max_code.
17769
177702008-02-01 Dave Love <fx@gnu.org>
17771
17772 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17773
17774 * dispextern.h (generate_ascii_font): Fix return type.
17775
17776 * xfaces.c (generate_ascii_font): Fix arg declaration.
17777
17778 * coding.c (coding_inherit_eol_type)
17779 (Fset_terminal_coding_system_internal)
17780 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17781
177822008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17785 multiple charsets correctly.
17786
177872008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * search.c (boyer_moore): Fix handling of multibyte character
17790 translation.
17791
17792 * xdisp.c (display_mode_element): When the variable `elt' is
17793 changed, update `this' and `lisp_string'.
17794
177952008-02-01 Kenichi Handa <handa@m17n.org>
17796
17797 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17798
17799 * callproc.c (Fcall_process): Be sure to give the current buffer
17800 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17801
17802 * charset.c (struct charset_map_entries): New struct.
17803 (load_charset_map): Rename from parse_charset_map. New args
17804 entries and n_entries. Change caller.
17805 (load_charset_map_from_file): Rename from load_charset_map.
17806 Change caller. New arg control_flag. Call load_charset_map at
17807 the tail.
17808 (load_charset_map_from_vector): New function.
17809 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17810 (encode_char): If the charset is compact, change a character index
17811 to a code point.
17812
17813 * coding.c (coding_alloc_by_making_gap): Check the case that the
17814 source and destination are the same correctly.
17815 (decode_coding_raw_text): Set coding->consumed_char and
17816 coding->consumed to 0.
17817 (produce_chars): If coding->chars_at_source is nonzero, update
17818 coding->consumed_char and coding->consumed before calling
17819 alloc_destination.
17820 (Fdefine_coding_system_alias): Register ALIAS in
17821 Vcoding_system_alist.
17822 (syms_of_coding): Define `no-conversion' coding system at the tail.
17823
17824 * fileio.c (Finsert_file_contents): Set coding_system instead of
17825 val. If the current buffer is multibyte, always call
17826 decode_coding_gap.
17827
17828 * xfaces.c (try_font_list): Give higher priority to fontset's
17829 family than face's family.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * callproc.c (Fcall_process): Be sure to give the current buffer
17834 to decode_coding_c_string.
17835
17836 * xfaces.c (try_font_list): Give a family specified in a fontset
17837 higher priority than a family specified in a face.
17838
178392008-02-01 Kenichi Handa <handa@m17n.org>
17840
17841 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17842 Fix arguments to insert_from_buffer.
17843
17844 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17845
178462008-02-01 Kenichi Handa <handa@m17n.org>
17847
17848 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17849 (decode_coding_gap): Set coding->dst_multibyte correctly.
17850
178512008-02-01 Kenichi Handa <handa@m17n.org>
17852
17853 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17854 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17855 (encode_coding_utf_16): Substitute coding->default_char for
17856 non-Unicode characters.
17857 (decode_coding): Don't call record_insert here.
17858 (setup_coding_system): Initialize `surrogate' of
17859 coding->spec.utf_16 to 0.
17860 (EMIT_ONE_BYTE): Fix for multibyte case.
17861
17862 * insdel.c (insert_from_gap): Call record_insert.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * casefiddle.c (casify_region): Fix multibyte case.
17867
17868 * character.c (c_string_width): Add return type `int'.
17869 (char_string_with_unification): Delete arg ADVANCED.
17870
17871 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17872 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17873 (CHAR_STRING_ADVANCE): Make it do-while statement.
17874
17875 * chartab.c (sub_char_table_set_range): Optimize for the case
17876 DEPTH == 3. Add workaround code for a GCC optimization bug.
17877
17878 * charset.c (parse_charset_map): Remove an unused variable.
17879
17880 * coding.c: Delete unused variables.
17881
17882 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17883 earlier. If inserted is zero and the coding system doesn't
17884 require flushing, don't call decode_coding_gap.
17885
17886 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17887
178882008-02-01 Kenichi Handa <handa@m17n.org>
17889
17890 The following changes are for using Unicode as an internal
17891 character model, and use UTF-8 format for buffer/string
17892 representation.
17893
17894 * .gdbinit (xchartable): Adjust for the change of char table structure.
17895 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17896
17897 * Makefile.in (obj): Add character.o and chartab.o.
17898 (lisp, shortlisp): Remove utf-8.elc.
17899 (*.o): For many files, change dependency on charset.h to
17900 character.h, and add dependency on character.h.
17901 (character.o, chartab.o): New targets.
17902
17903 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17904 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17905 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17906 of "charset.h".
17907
17908 * dired.c, filelock.c: Include "character.h".
17909
17910 * alloc.c: Include "character.h" instead of "charset.h".
17911 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17912 (syms_of_alloc): Remove defsubr for Smake_char_table.
17913
17914 * buffer.c: Include "character.h" instead of "charset.h", don't
17915 include "coding.h".
17916 (Fset_buffer_multibyte): Adjust for UTF-8.
17917
17918 * buffer.h: EXFUN Fbuffer_live_p.
17919
17920 * callproc.c: Include "character.h" instead of "charset.h".
17921 (Fcall_process): Big change for the new code-conversion APIs.
17922
17923 * casetab.c: Include "character.h" instead of "charset.h".
17924 (set_canon, set_identity, shuffle): Adjust for the new
17925 map_char_table spec.
17926 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17927 accessing the char table structure.
17928
17929 * chartab.c: New file that implements char table.
17930
17931 * category.c: Include "character.h".
17932 (copy_category_entry): New function.
17933 (copy_category_table): Call map_char_table and copy_category_entry.
17934 (Fmake_category_table): Initialize all top-level slots.
17935 (char_category_set): New function.
17936 (modify_lower_category_set): Delete.
17937 (Fmodify_category_entry): Call char_table_ref_and_range.
17938
17939 * category.h (CATEGORY_SET): Just call char_category_set.
17940
17941 * ccl.c: Include "character.h".
17942 (Qccl, Qcclp): New variables.
17943 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17944 it's less than 256.
17945 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17946 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17947 and DST type.
17948 (ccl_driver): Change types of argument, adjust code accordingly.
17949 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17950 ccl_driver.
17951 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17952
17953 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17954 New members src_multibyte, dst_multibyte, consumed, and produced.
17955 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17956 (CODING_SPEC_CCL_PROGRAM): New macro.
17957 (ccl_driver): Update prototype.
17958 (Qccl, Qcclp, Fccl_program_p): Extern them.
17959 (CHECK_CCL_PROGRAM): New macro.
17960
17961 * character.c, character.h, chartab.c: New files.
17962
17963 * charset.c: Mostly re-written. Move character and multibyte sequence
17964 handling codes to character.c.
17965
17966 * charset.h: Mostly re-written. Move character and multibyte sequence
17967 handling codes to character.h.
17968
17969 * coding.c, coding.h: Mostly re-written.
17970
17971 * composite.c: Include "character.h" instead of "charset.h".
17972 (CHAR_WIDTH): Move to character.h.
17973 (HASH_KEY, HASH_VALUE): Delete.
17974
17975 * composite.h (enum composition_method): Change order of enumeration
17976 symbols.
17977
17978 * data.c: Include "character.h" instead of "charset.h".
17979 (Faref): Call CHAR_TABLE_REF for a char table.
17980 (Faset): Call CHAR_TABLE_SET for a char table.
17981
17982 * dispextern.h (free_realized_face, check_face_attribytes)
17983 (generate_ascii_font): Extern them.
17984 (free_realized_multibyte_face): Delete extern.
17985
17986 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17987 table structure.
17988
17989 * editfns.c: Include "character.h" instead of "charset.h".
17990 (Fchar_to_string): Always call CHAR_STRING.
17991
17992 * emacs.c (main): Call init_charset_once, init_charset,
17993 syms_of_chartab, and syms_of_character.
17994
17995 * fileio.c: Include "character.h" instead of "charset.h".
17996 (Finsert_file_contents): Big change for the new code-conversion API.
17997 (choose_write_coding_system, Fwrite_region): Likewise.
17998 (build_annotations_2): Delete.
17999 (e_write): Big change for the new code-conversion API.
18000
18001 * fns.c: Include "character.h" instead of "charset.h".
18002 (copy_sub_char_table): Move to chartab.c.
18003 (Fcopy_sequence): Call copy_char_table for a char table.
18004 (concat): Delete codes calling count_multibyte.
18005 (string_char_to_byte, string_byte_to_char): Adjust for the new
18006 multibyte form.
18007 (internal_equal): Adjust for the change of char table structure.
18008 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18009 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18010 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18011 (char_table_translate, optimize_sub_char_table)
18012 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18013 chartab.c.
18014 (char_table_ref_and_index): Delete.
18015 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18016 (Fmd5): Call preferred_coding_system instead of accessing
18017 Vcoding_category_list. Adjust for the new code-conversion API.
18018 (syms_of_fns): Move defsubr for char table related functions to
18019 chartab.c.
18020
18021 * fontset.c: Mostly re-written.
18022
18023 * fontset.h (struct font_info): Change type of the member encoding_type.
18024 (enum FONT_SPEC_INDEX): New enum.
18025 (fontset_font_pattern, fs_load_font): Update prototype.
18026 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18027
18028 * indent.c: Include "character.h" instead of "charset.h".
18029 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18030
18031 * insdel.c: Include "character.h" instead of "charset.h".
18032 (copy_text): Don't refer to Vnonascii_translation_table.
18033 (insert_from_gap): New function.
18034
18035 * keyboard.c: Include "character.h" instead of "charset.h".
18036 (command_loop_1): Never call direct_output_forward_char before
18037 a non-ASCII character.
18038 (read_char): If Vkeyboard_translate_table is a char table, always
18039 translate a character.
18040
18041 * keymap.c: Include "character.h".
18042 (store_in_keymap): Handle the case that IDX is a cons.
18043 (Fdefine_key): Handle the case that KEY is a cons and the car part
18044 is also a cons (range).
18045 (push_key_description): Adjust for the new character code.
18046 (describe_vector): Call describe_char_table for a char table.
18047 (describe_char_table): New function.
18048
18049 * keymap.h (describe_char_table): Extern it.
18050
18051 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18052 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18053 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18054 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18055 Delete.
18056 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18057 structure.
18058 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18059 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18060 (CHARTAB_SIZE_BITS_3): New macros.
18061 (chartab_size): Extern it.
18062 (struct Lisp_Char_Table): Re-design.
18063 (struct Lisp_Sub_Char_Table): New structure.
18064 (HASH_KEY, HASH_VALUE): Move from fns.c.
18065 (CHARACTERBITS): Define as 22.
18066 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18067 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18068 (GC_SUB_CHAR_TABLE_P): New macro.
18069 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18070 (code_convert_string_norecord): Deleted extern.
18071 (init_character_once, syms_of_character, init_charset)
18072 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18073
18074 * lread.c: Include "character.h".
18075 (read_multibyte): New arg NBYTES.
18076 (read_escape): Change the meaning of returned *BYTEREP.
18077 (to_multibyte): Delete.
18078 (read1): Adjust the handling of char table and string.
18079
18080 * print.c: Include "character.h" instead of "charset.h".
18081 (print_string): Convert 8-bit raw bytes to octal form by
18082 string_escape_byte8.
18083 (print_object): Adjust for the new multibyte form. Print 8-bit
18084 raw bytes always in octal form. Handle sub char table correctly.
18085
18086 * process.c: Include "character.h" instead of "charset.h".
18087 (read_process_output, send_process): Adjust for the new
18088 code-conversion API.
18089
18090 * puresize.h (BASE_PURESIZE): Increase.
18091
18092 * regex.c: Include "character.h" instead of "charset.h".
18093 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18094 (regex_compile): Accept a range whose starting and ending
18095 character have different leading bytes.
18096 (analyse_first): Adjust for the above change.
18097
18098 * search.c: Include "character.h" instead of "charset.h".
18099 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18100 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18101
18102 * syntax.c: Include "character.h" instead of "charset.h".
18103 (syntax_parent_lookup): Delete.
18104 (Fmodify_syntax_entry): Accept a cons as CHAR.
18105 (skip_chars): Adjust for the new multibyte form.
18106 (init_syntax_once): Call char_table_set_range instead of directly
18107 accessing the structure of a char table.
18108
18109 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18110 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18111 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18112 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18113
18114 * term.c: Include "buffer.h" and "character.h".
18115 (encode_terminal_code, write_glyphs): Adjust for the new
18116 code-conversion API.
18117 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18118
18119 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18120
18121 * xdisp.c: Include "character.h".
18122 (get_next_display_element): Adjust for the new multibyte form.
18123 (disp_char_vector): Adjust for the new char table structure.
18124 (decode_mode_spec_coding): Adjust for the new structure of
18125 coding system.
18126 (decode_mode_spec): Adjust for the new code-conversion API.
18127
18128 * xfaces.c: Include "character.h" instead of "charset.h".
18129 (load_face_font): Adjust for the change of choose_face_font and
18130 FS_LOAD_FONT.
18131 (generate_ascii_font): New function.
18132 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18133 (set_font_frame_param): Adjust for the change of choose_face_font.
18134 (free_realized_face): Make it public.
18135 (free_realized_faces_for_fontset): Rename from
18136 free_realized_multibyte_face. Free also faces realized for ASCII.
18137 (choose_face_font): Change arguments. Adjust for the change of
18138 fontset_font_pattern and FS_LOAD_FONT.
18139
18140 * xfns.c: Include "character.h".
18141 (x_encode_text): Adjust for the new code-conversion API.
18142
18143 * xselect.c: Don't include "charset.h".
18144 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18145
18146 * xterm.c: Include "character.h".
18147 (x_encode_char): New argument CHARSET. Change caller.
18148 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18149 Call ENCODE_CHAR instead of SPLIT_CHAR.
18150 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18151 CHAR_WIDTH instead of CHARSET_WIDTH.
18152 (XTread_socket): Adjust for the new code-conversion API.
18153 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18154 (x_load_font): Adjust for the change of struct font.
18155
181562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18157
18158 * xfaces.c (face_at_buffer_position): Remove unused vars.
18159
181602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18161
18162 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18163 Fix overflow checking.
18164
181652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18166
18167 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18168 Cancel previous change.
18169
181702008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18171
18172 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18173 ccl->eight_bit_control. Fix check for buffer overflow.
18174 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18175 (ccl_driver): Initialize extra_bytes to 0.
18176
181772008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18178
18179 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18180 return it ORed with ctrl_modifier.
18181
181822008-01-29 Miles Bader <miles@gnu.org>
18183
18184 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18185
181862008-01-28 Jason Rumney <jasonr@gnu.org>
18187
18188 * w32.c (stat): Don't double check for networked drive.
18189
181902008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18191
18192 * window.c (run_window_configuration_change_hook): New function.
18193 Code extracted from set_window_buffer. Set the selected frame.
18194 (set_window_buffer): Use it.
18195 * window.h (run_window_configuration_change_hook): Declare.
18196 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18197
18198 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18199
182002008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18201
18202 * Makefile.in: Remove references to unused macros.
18203
182042008-01-26 Eli Zaretskii <eliz@gnu.org>
18205
18206 * w32.c (g_b_init_get_sid_sub_authority)
18207 (g_b_init_get_sid_sub_authority_count): New static variables.
18208 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18209 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18210 (init_user_info): Use them to retrieve uid and gid.
18211 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18212 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18213 st_uid and st_gid of the file.
18214
182152008-01-26 Jason Rumney <jasonr@gnu.org>
18216
18217 * w32.c (logon_network_drive): New function.
18218 (stat): Use it.
18219
182202008-01-26 Chong Yidong <cyd@stupidchicken.com>
18221
18222 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18223 invisible text covered with an ellipsis.
18224
182252008-01-25 Richard Stallman <rms@gnu.org>
18226
18227 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18228 jump back to beginning. Move some other initializations after that.
18229 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18230 New variables.
18231 (syms_of_xdisp): Init them.
18232
18233 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18234
18235 * buffer.c (reset_buffer_local_variables):
18236 Implement `permanent-local-hook'.
18237 (Qpermanent_local_hook): New variable.
18238 (syms_of_buffer): Init and staticpro it.
18239
182402008-01-25 Michael Albinus <michael.albinus@gmx.de>
18241
18242 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18243
182442008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18245
18246 * fns.c (Fclrhash): Return TABLE.
18247
182482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18249
18250 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18251 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18252 is set even without positional changes.
18253 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18254
18255 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18256
182572008-01-23 Jason Rumney <jasonr@gnu.org>
18258
18259 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18260
18261 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18262 the unicode range available in MULE by locale-coding-system.
18263 Improve dbcs lead byte detection. Set event timestamp and modifiers
18264 earlier.
18265
182662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18267
18268 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18269 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18270 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18271 when used on child processes.
18272
182732008-01-21 Michael Albinus <michael.albinus@gmx.de>
18274
18275 * dbusbind.c (Fdbus_method_return_internal): Rename from
18276 Fdbus_method_return.
18277 (Fdbus_unregister_object): Move to dbus.el.
18278 (Fdbus_call_method, Fdbus_method_return_internal)
18279 (Fdbus_send_signal): Improve debug messages.
18280
182812008-01-20 Martin Rudalics <rudalics@gmx.at>
18282
18283 * undo.c (undo_inhibit_record_point): New variable.
18284 (syms_of_undo): Initialize it.
18285 (record_point): Don't record point when undo_inhibit_record_point
18286 is set.
18287
182882008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18289
18290 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18291
18292 * xdisp.c (Qauto_hscroll_mode): New var.
18293 (syms_of_xdisp): Initialize it.
18294 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18295 window's buffer.
18296 (hscroll_windows): Don't check automatic_hscrolling_p here.
18297
18298 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18299 vscroll if we're setting window-buffer to the value it already has.
18300
183012008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18302
18303 * m/intel386.h: Remove references to XENIX.
18304
183052008-01-17 Andreas Schwab <schwab@suse.de>
18306
18307 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18308 instead of HAVE_X86_64_LIB64_DIR.
18309 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18310
183112008-01-17 Glenn Morris <rgm@gnu.org>
18312
18313 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18314 to HAVE_X86_64_LIB64_DIR.
18315
183162008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18317
18318 * s/irix3-3.h:
18319 * s/irix4-0.h:
18320 * s/386-ix.h:
18321 * s/domain.h:
18322 * s/hpux9-x11r4.h:
18323 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18324
18325 * sysdep.c: Remove code containing references to symbols defined
18326 by unsupported systems.
18327
183282008-01-16 Glenn Morris <rgm@gnu.org>
18329
18330 * coding.c (select-safe-coding-system-function): Doc fix.
18331
183322008-01-15 Glenn Morris <rgm@gnu.org>
18333
18334 * config.in: Revert 2008-01-13 change: this is a generated file.
18335
183362008-01-13 Tom Tromey <tromey@redhat.com>
18337
18338 * lisp.h: Fix typo.
18339
183402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18341
18342 * m/sequent-ptx.h:
18343 * m/sequent.h:
18344 * s/ptx.h:
18345 * s/ptx4-2.h:
18346 * s/ptx4.h: Remove files for systems no longer supported.
18347
18348 * callproc.c (Fcall_process): Fix previous change.
18349
183502008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18351
18352 * unexsunos4.c: Remove file, system not supported anymore.
18353
18354 * m/mips.h:
18355 * m/intel386.h:
18356 * callproc.c:
18357 * config.in:
18358 * ecrt0.c:
18359 * emacs.c:
18360 * fileio.c:
18361 * frame.c:
18362 * getpagesize.h:
18363 * keyboard.c:
18364 * lread.c:
18365 * process.c:
18366 * puresize.h:
18367 * sysdep.c:
18368 * systty.h:
18369 * syswait.h:
18370 * unexec.c:
18371 * xdisp.c:
18372 * alloc.c: Remove code containing references to symbols defined by
18373 unsupported systems.
18374
183752008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18376
18377 * coding.c (detect_coding_mask): Fix previous change.
18378
183792008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18380
18381 * coding.c (detect_coding_iso2022): New arg
18382 latin_extra_code_state. Allow Latin extra codes only
18383 when *latin_extra_code_state is nonzero.
18384 (detect_coding_mask): If there is a NULL byte, detect the encoding
18385 as UTF-16 or binary. If Latin extra codes exist, detect the
18386 encoding as ISO-2022 only when there's no other proper encoding is
18387 found.
18388
183892008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18390
18391 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18392 #ifdef MAC_OS.
18393
183942008-01-08 Richard Stallman <rms@gnu.org>
18395
18396 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18397
183982008-01-06 Nick Roberts <nickrob@snap.net.nz>
18399
18400 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18401 menu bar in parentheses.
18402
184032008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18404
18405 * m/7300.h:
18406 * m/acorn.h:
18407 * m/alliant-2800.h:
18408 * m/alliant.h:
18409 * m/alliant1.h:
18410 * m/alliant4.h:
18411 * m/altos.h:
18412 * m/amdahl.h:
18413 * m/apollo.h:
18414 * m/att3b.h:
18415 * m/aviion-intel.h:
18416 * m/aviion.h:
18417 * m/celerity.h:
18418 * m/clipper.h:
18419 * m/cnvrgnt.h:
18420 * m/convex.h:
18421 * m/cydra5.h:
18422 * m/delta88k.h:
18423 * m/dpx2.h:
18424 * m/dual.h:
18425 * m/elxsi.h:
18426 * m/f301.h:
18427 * m/gould-np1.h:
18428 * m/gould.h:
18429 * m/i860.h:
18430 * m/ibmps2-aix.h:
18431 * m/ibmrt-aix.h:
18432 * m/ibmrt.h:
18433 * m/irist.h:
18434 * m/is386.h:
18435 * m/isi-ov.h:
18436 * m/mega68.h:
18437 * m/mg1.h:
18438 * m/news-r6.h:
18439 * m/news-risc.h:
18440 * m/news.h:
18441 * m/nh3000.h:
18442 * m/nh4000.h:
18443 * m/ns16000.h:
18444 * m/ns32000.h:
18445 * m/nu.h:
18446 * m/orion.h:
18447 * m/orion105.h:
18448 * m/paragon.h:
18449 * m/pfa50.h:
18450 * m/plexus.h:
18451 * m/pyramid.h:
18452 * m/pyrmips.h:
18453 * m/sh3el.h:
18454 * m/sps7.h:
18455 * m/sr2k.h:
18456 * m/stride.h:
18457 * m/sun1.h:
18458 * m/sun2.h:
18459 * m/sun3-68881.h:
18460 * m/sun3-fpa.h:
18461 * m/sun3-soft.h:
18462 * m/sun3.h:
18463 * m/sun386.h:
18464 * m/symmetry.h:
18465 * m/tad68k.h:
18466 * m/tahoe.h:
18467 * m/targon31.h:
18468 * m/tek4300.h:
18469 * m/tekxd88.h:
18470 * m/tower32.h:
18471 * m/tower32v3.h:
18472 * m/ustation.h:
18473 * m/wicat.h:
18474 * m/xps100.h:
18475 * s/cxux.h:
18476 * s/cxux7.h:
18477 * s/dgux.h:
18478 * s/dgux4.h:
18479 * s/dgux5-4-3.h:
18480 * s/dgux5-4r2.h:
18481 * s/esix.h:
18482 * s/esix5r4.h:
18483 * s/hiuxmpp.h:
18484 * s/hiuxwe2.h:
18485 * s/iris3-5.h:
18486 * s/iris3-6.h:
18487 * s/isc2-2.h:
18488 * s/isc3-0.h:
18489 * s/isc4-0.h:
18490 * s/isc4-1.h:
18491 * s/newsos5.h:
18492 * s/newsos6.h:
18493 * s/osf1.h:
18494 * s/osf5-0.h:
18495 * s/riscix1-1.h:
18496 * s/riscix12.h:
18497 * s/sco4.h:
18498 * s/sco5.h:
18499 * s/sunos4-0.h:
18500 * s/sunos4-1.h:
18501 * s/sunos413.h:
18502 * s/sunos4shr.h:
18503 * s/umax.h:
18504 * s/unipl5-2.h:
18505 * s/xenix.h:
18506 * cxux-crt0.s:
18507 * unexapollo.c:
18508 * unexconvex.c:
18509 * unexenix.c:
18510 * unexsni.c: Remove files for systems no longer supported.
18511
18512 * m/intel386.h: Remove references to unsupported systems.
18513
18514 * w32.c (get_emacs_configuration): Remove reference to i860.
18515
18516 * sysdep.c: Remove dead code.
18517
185182008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18519
18520 * s/rtu.h:
18521 * m/masscomp.h: Remove files. Platform is obsolete.
18522
185232008-01-04 Michael Albinus <michael.albinus@gmx.de>
18524
18525 * dbusbind.c (Fdbus_method_return): New function.
18526 (xd_read_message): Add the serial number to the event.
18527 (Fdbus_register_method): Activate the function.
18528
185292008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18530
18531 * keyboard.c (read_key_sequence): Fix typo.
18532
185332008-01-03 Michael Albinus <michael.albinus@gmx.de>
18534
18535 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18536 (xd_signature, xd_append_arg): Handle element type detection for
18537 empty arrays.
18538 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18539 SDATA () calls; this must be solved more general.
18540 (Fdbus_register_signal): Use SBYTES instead of strlen.
18541
185422008-01-03 Magnus Henoch <magnus@zemdatav>
18543
18544 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18545 unsigned int for byte values (necessary for big-endian platform).
18546 (Fdbus_call_method): Handle the case of no returned arguments.
18547
185482007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18549
18550 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18551
185522007-12-31 Magnus Henoch <mange@freemail.hu>
18553
18554 * dbusbind.c (xd_signature): Signature of variant is just "v".
18555
185562007-12-30 Michael Albinus <michael.albinus@gmx.de>
18557
18558 * dbusbind.c: Fix several errors and compiler warnings.
18559 Reported by Tom Tromey <tromey@redhat.com>.
18560 (XD_ERROR, XD_DEBUG_MESSAGE)
18561 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18562 (xd_append_arg): Part for basic D-Bus types rewritten.
18563 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18564 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18565 appropriate.
18566 (xd_read_message): Return Qnil. Don't signal an error; it is not
18567 useful during event reading.
18568 (Fdbus_register_signal): Signal an error if the check for
18569 FUNCTIONP fails.
18570 (Fdbus_register_method): New function. The implementation is not
18571 complete, the call of the function signals an error therefore.
18572 (Fdbus_unregister_object): New function, renamed from
18573 Fdbus_unregister_signal. The initial check signals an error, if
18574 the object is not well formed.
18575
185762007-12-30 Richard Stallman <rms@gnu.org>
18577
18578 * textprop.c (get_char_property_and_overlay):
18579 Signal error if POSITION is out of range in a buffer.
18580
185812007-12-29 Martin Rudalics <rudalics@gmx.at>
18582
18583 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18584 because the original parameters are in pure storage now.
18585
185862007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18587
18588 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18589
185902007-12-22 Eli Zaretskii <eliz@gnu.org>
18591
18592 * callint.c (syms_of_callint) <command-history>: Add reference to
18593 history-length in the doc string.
18594
185952007-12-17 Jason Rumney <jasonr@gnu.org>
18596
18597 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18598 before passing as wParam.
18599
186002007-12-22 Michael Albinus <michael.albinus@gmx.de>
18601
18602 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18603 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18604 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18605 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18606 as number.
18607 (Fdbus_call_method): Fix docstring.
18608
186092007-12-21 Michael Albinus <michael.albinus@gmx.de>
18610
18611 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18612 New macros.
18613 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18614 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18615 Simplify.
18616 (xd_signature): New function.
18617 (xd_append_arg): Compute also signatures. Major rewrite.
18618 (xd_retrieve_arg): Make debug messages friendly.
18619 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18620 Check for signatures of arguments.
18621
186222007-12-19 Michael Albinus <michael.albinus@gmx.de>
18623
18624 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18625 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18626 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18627 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18628 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18629 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18630 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18631 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18632 (xd_retrieve_value): Remove. Functionality included in ...
18633 (xd_append_arg): New function.
18634 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18635
186362007-12-16 Michael Albinus <michael.albinus@gmx.de>
18637
18638 * dbusbind.c (top): Include <stdio.h>.
18639 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18640 dbus_message_new_method_call and dbus_message_new_signal.
18641 (Fdbus_register_signal): Rename unique_name to uname.
18642 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18643 non-existing unique name. Fix typos in matching rule. Return an
18644 object which is useful in Fdbus_unregister_signal.
18645 (Fdbus_unregister_signal): Reimplementation, in order to remove
18646 only the corresponding entry.
18647 (Vdbus_registered_functions_table): Change the order of entries.
18648 Apply these changes in xd_read_message and Fdbus_register_signal.
18649
186502007-12-16 Andreas Schwab <schwab@suse.de>
18651
18652 * fileio.c (Finsert_file_contents): Fix overflow check to not
18653 depend on undefined integer overflow.
18654
186552007-12-14 Jason Rumney <jasonr@gnu.org>
18656
18657 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18658 for characters above 127.
18659
186602007-12-13 Jason Rumney <jasonr@gnu.org>
18661
18662 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18663 before dereferencing array.
18664 (lookup_vk_code): Remove zero comparison.
18665
186662007-12-14 Michael Albinus <michael.albinus@gmx.de>
18667
18668 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18669 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18670 Use `unsigned int' instead of `uint'.
18671 (xd_read_message, Fdbus_register_signal): Split expressions into
18672 multiple lines before operators "&&" and "||", according to the
18673 GNU Coding Standards.
18674
186752007-12-14 Eli Zaretskii <eliz@gnu.org>
18676
18677 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18678
186792007-12-12 Juri Linkov <juri@jurta.org>
18680
18681 * buffer.c (Frename_buffer): In interactive spec replace
18682 `read-buffer' with `read-string' that uses `buffer-name-history'
18683 as history, and the current buffer's name as default.
18684
186852007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18686
18687 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18688 manipulating the backtrace manually.
18689 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18690 (struct backtrace, backtrace_list): Remove.
18691 (command_loop_1): Remove dead var `no_direct'.
18692
18693 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18694 preserve non-built-in buffer-local variables.
18695 (Fkill_all_local_variables): Don't re-create&re-set permanent
18696 buffer-local variables.
18697
186982007-12-09 Juri Linkov <juri@jurta.org>
18699
18700 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18701 Lisp code that uses `read-buffer' with current buffer as default.
18702
187032007-12-08 Michael Albinus <michael.albinus@gmx.de>
18704
18705 * dbusbind.c (xd_read_message): Generate an event for every
18706 registered handler. There might be several handlers registered
18707 for the same signal.
18708 (Fdbus_register_signal): Don't overwrite a registration for the
18709 same signal. Add a new registration if handlers are different.
18710 (Vdbus_registered_functions_table): Rework doc string.
18711
187122007-12-07 Michael Albinus <michael.albinus@gmx.de>
18713
18714 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18715 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18716 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18717 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18718 Unify argument lists.
18719 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18720 arguments and hash table keys. Use unique name for service.
18721 (Fdbus_unregister_signal): Remove checks.
18722 (Vdbus_registered_functions_table): Fix doc string.
18723
187242007-12-05 Magnus Henoch <mange@freemail.hu>
18725
18726 * process.c (make_process): Initialize pty_flag to 0.
18727
187282007-12-05 Jason Rumney <jasonr@gnu.org>
18729
18730 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18731 specified XBMs.
18732
187332007-12-05 Richard Stallman <rms@gnu.org>
18734
18735 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18736
187372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18738
18739 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18740 New variable.
18741 (mac_try_close_socket) [MAC_OSX]: New function.
18742 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18743 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18744
18745 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18746 Use mac_try_close_socket.
18747
187482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18749
18750 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18751 reloc_base.
18752 (copy_dysymtab): Compute relocation base here.
18753 (rebase_reloc_address) [__ppc64__]: New function.
18754 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18755 changed.
18756
187572007-12-05 Jason Rumney <jasonr@gnu.org>
18758
18759 * w32proc.c (sys_spawnve): Quote args with wildcards.
18760
187612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18762
18763 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18764 __objc_* sections.
18765 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18766
187672007-12-05 Michael Albinus <michael.albinus@gmx.de>
18768
18769 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18770 Move check for Vdbus_registered_functions_table to
18771 xd_read_queued_messages.
18772 (xd_read_queued_messages): Protect xd_read_message calls by
18773 internal_condition_case_1.
18774
187752007-12-04 Michael Albinus <michael.albinus@gmx.de>
18776
18777 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18778 Qdbus_system_bus and Qdbus_session_bus, respectively.
18779 (Vdbus_intern_symbols): Remove.
18780 (Vdbus_registered_functions_table): New hash table.
18781 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18782 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18783 Rewrite in order to manage registered functions by hash table
18784 Vdbus_registered_functions_table.
18785
187862007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18787
18788 * xterm.c: Update URL to Window Manager Specification in comment.
18789
187902007-12-02 Michael Albinus <michael.albinus@gmx.de>
18791
18792 * config.in (HAVE_DBUS): Add.
18793
18794 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18795 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18796 (obj): Add $(DBUS_OBJ).
18797 (LIBES): Add $(DBUS_LIBS).
18798 (dbusbind.o): New target.
18799
18800 * dbusbind.c: New file.
18801
18802 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18803
18804 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18805 (Qdbus_event): New Lisp symbol.
18806 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18807 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18808 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18809
18810 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18811
188122007-12-01 Richard Stallman <rms@gnu.org>
18813
18814 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18815
188162007-11-30 Jason Rumney <jasonr@gnu.org>
18817
18818 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18819 (w32con_reset_terminal_modes): Clear screen buffer.
18820 (w32_face_attributes): Don't use color indexes that are out of range.
18821 Only reverse the default colors.
18822
18823 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18824 WINDOWSNT.
18825
18826 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18827
188282007-11-29 Jason Rumney <jasonr@gnu.org>
18829
18830 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18831 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18832 if the terminal colors are initialized.
18833 (unspecified_fg, unspecified_bg): Remove unused declarations.
18834
188352007-11-29 Andreas Schwab <schwab@suse.de>
18836
18837 * keyboard.c (apply_modifiers): Fix typo.
18838
188392007-11-29 Richard Stallman <rms@gnu.org>
18840
18841 * keymap.c (Fcurrent_local_map): Doc fix.
18842
188432007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18844
18845 * s/gnu-kfreebsd.h: New file.
18846
188472007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18850 Don't cast redundantly.
18851
18852 * keyboard.c (KEY_TO_CHAR): New macro.
18853 (parse_modifiers, apply_modifiers): Accept integer arguments.
18854 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18855 for chars and symbol keys.
18856 After doing such remapping, apply function-key-map again.
18857
188582007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18859
18860 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18861 compiled anymore.
18862
188632007-11-26 Andreas Schwab <schwab@suse.de>
18864
18865 * process.c (list_processes_1): Fix indentation level of the
18866 command column.
18867
188682007-11-23 Andreas Schwab <schwab@suse.de>
18869
18870 * editfns.c (Fformat): Handle %c specially since it requires the
18871 argument to be of type int.
18872
188732007-11-23 Markus Triska <markus.triska@gmx.at>
18874
18875 * emacs.c (main): Call init_editfns before init_process, since
18876 init_process sets Vprocess_connection_type depending on OS release.
18877
188782007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18879
18880 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18881 (find_symbol_value): Use do_symval_forwarding.
18882
18883 * data.c (set_internal): Set the value in the `cons-cell' (for
18884 Buffer_Local_values) not only for frame-local variables.
18885
188862007-11-22 Andreas Schwab <schwab@suse.de>
18887
18888 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18889 values to sprintf.
18890 * keymap.c (Fsingle_key_description): Likewise.
18891 * print.c (print_object): Likewise.
18892
188932007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18894
18895 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18896 file for image is nil.
18897
188982007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18899
18900 * term.c: Include stdarg.h.
18901 (fatal): Implement using varargs.
18902 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18903
189042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18905
18906 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18907 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18908 Update call to buffer_slot_type_mismatch.
18909 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18910 (buffer_slot_type_mismatch): Update.
18911 * buffer.c (buffer_local_types): Remove.
18912 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18913 (defvar_per_buffer): Set the type in the buffer_objfwd.
18914
189152007-11-21 Jason Rumney <jasonr@gnu.org>
18916
18917 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18918 CreateFileMapping returns NULL on failure.
18919
189202007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18921
18922 * search.c (Fset_match_data): Remove the `evaporate' feature.
18923 (unwind_set_match_data): Don't use the `evaporate' feature.
18924
189252007-11-21 Jason Rumney <jasonr@gnu.org>
18926
18927 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18928
18929 * w32console.c (w32con_write_glyphs): Remove unused variables.
18930
189312007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18932
18933 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18934
18935 * s/darwin.h (MULTI_KBOARD): Remove.
18936
18937 * macfns.c (x_create_tip_frame, Fx_create_frame)
18938 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18939
189402007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18941
18942 * buffer.c (Fbuffer_local_value): Remove redundant test.
18943 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18944 than in `current-buffer' to match the comment.
18945 Do the swap using swap_in_global_binding.
18946
18947 * data.c (store_symval_forwarding, set_internal):
18948 * eval.c (specbind): Remove dead code.
18949
18950 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18951 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18952 Since we do not want to see internal Lisp_*fwd objects here.
18953
189542007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18955
18956 * sysdep.c (init_system_name): Use getaddrinfo if available.
18957
18958 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18959 (x_scroll_bar_note_movement): start, end, with, height in struct
18960 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18961
189622007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18963
18964 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18965
189662007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18967
18968 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18969 This undoes Richard's change of 14-Oct-2002.
18970
18971 * alloc.c (allocate_other_vector):
18972 * lisp.h (allocate_other_vector): Remove.
18973
18974 * window.c (struct save_window_data): Move non-lisp data to the end
18975 and make it `int' rather than Lisp_Object.
18976 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18977 Done wrap/unwrap integer values.
18978 (Fset_window_configuration, compare_window_configurations):
18979 Update use of fields to their new types.
18980
18981 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18982 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18983 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18984 (SET_SCROLL_BAR_X_WINDOW): Remove.
18985 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18986 Access the new x_window field directly.
18987 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18988 Don't wrap/unwrap integers into Lisp_Objects.
18989 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18990 (x_scroll_bar_report_motion):
18991 Don't wrap/unwrap integers into Lisp_Objects.
18992 (x_term_init): Use SDATA.
18993 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18994 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18995 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18996 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18997 * xfns.c (x_set_background_color):
18998 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18999 Access the new x_window field directly.
19000
19001 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19002 (allocate_pseudovector): Make non-static.
19003
19004 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19005 (allocate_pseudovector): Declare.
19006 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19007
190082007-11-15 Andreas Schwab <schwab@suse.de>
19009
19010 * editfns.c (Fformat): Correctly format EMACS_INT values.
19011 Also take precision into account when formatting an integer.
19012
19013 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19014
190152007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19016
19017 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19018 (syms_of_keyboard): Defsubr it.
19019
19020 * data.c (swap_in_global_binding): Fix longstanding bug where
19021 store_symval_forwarding was not called with the right second argument,
19022 thus causing objfwd-ing from being dropped.
19023
190242007-11-14 Juanma Barranquero <lekktu@gmail.com>
19025
19026 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19027 (Fx_display_pixel_height, Fx_display_planes)
19028 (Fx_display_color_cells, Fx_server_max_request_size)
19029 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19030 (Fx_display_visual_class, Fx_display_save_under):
19031 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19032 (Fx_display_pixel_height, Fx_display_planes)
19033 (Fx_display_color_cells, Fx_server_max_request_size)
19034 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19035 (Fx_display_mm_height, Fx_display_mm_width)
19036 (Fx_display_backing_store, Fx_display_visual_class)
19037 (Fw32_select_font, Fx_display_save_under):
19038 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19039 (Fx_display_pixel_height, Fx_display_planes)
19040 (Fx_display_color_cells, Fx_server_max_request_size)
19041 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19042 (Fx_display_save_under): Fix typos in docstrings.
19043
190442007-11-14 Juanma Barranquero <lekktu@gmail.com>
19045
19046 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19047 corresponding to deleted entries; they are an implementation detail.
19048 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19049 Remove variables.
19050 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19051 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19052 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19053 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19054 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19055 (Fw32_define_rgb_color, Fw32_load_color_file)
19056 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19057 Fix typos in docstrings.
19058 (Fx_server_version): Reflow docstring.
19059 (Fw32_shell_execute): Doc fixes.
19060
190612007-11-13 Juanma Barranquero <lekktu@gmail.com>
19062
19063 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19064 if w32_parse_hot_key returned nil.
19065
190662007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19067
19068 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19069
190702007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19071
aac0c6e3
MR
19072 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19073
19074 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19075
19076 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19077 Remove W32_SCROLL_BAR_CLICK_EVENT.
19078
19079 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19080 Add MULTIMEDIA_KEY_EVENT.
19081
19082 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19083 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19084 (make_lispy_event) [WINDOWSNT]: Use it to translate
19085 MULTIMEDIA_KEY_EVENT.
19086
19087 * w32term.h (WM_APPCOMMAND): Define if not already.
19088 (GET_APPCOMMAND_LPARAM): Likewise.
19089
19090 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19091 WM_APPCOMMAND.
19092
19093 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19094 (syms_of_w32fns): Export and initialize it.
19095 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19096
190972007-11-09 Chong Yidong <cyd@stupidchicken.com>
19098
19099 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19100 twice.
19101
19102 * xdisp.c (handle_face_prop): Fix last change.
19103
191042007-11-09 Richard Stallman <rms@gnu.org>
19105
19106 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19107 not just for after-strings and before-strings.
19108 Call face_for_overlay_string and pass the overlay to it.
19109 (handle_display_prop): Determine whether property came from an overlay.
19110 Pass OVERLAY arg to handle_single_display_spec.
19111 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19112 (load_overlay_strings): Fill in it->string_overlays.
19113 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19114
19115 * xfaces.c (face_for_overlay_string): Function renamed from
19116 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19117
19118 * dispextern.h (struct it): New elt string_overlays.
19119 New elt from_overlay, also in stack.
19120 Rearrange a few elements.
19121 (face_for_overlay_string): Decl renamed from
19122 face_at_buffer_position_no_overlays, and add argument.
19123
191242007-11-09 Richard Stallman <rms@gnu.org>
19125
19126 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19127 to get the base face for an overlay string.
19128
19129 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19130
19131 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19132
19133 * xdisp.c (handle_stop): Move some code out of loop.
19134
191352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19136
19137 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19138 Fix conversion from Lisp object to ATSUFontID.
19139
191402007-11-09 Jason Rumney <jasonr@gnu.org>
19141
19142 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19143
191442007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19145
19146 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19147 Don't assume regions are aligned to page boundary.
19148 (print_load_command_name): Add LC_UUID if defined.
19149
191502007-11-09 Richard Stallman <rms@gnu.org>
19151
19152 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19153
191542007-11-07 Jason Rumney <jasonr@gnu.org>
19155
19156 * s/windows95.h: Remove.
19157
191582007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19159
19160 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19161 abort with a message on unhandled store_type values.
19162
191632007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19164
19165 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19166 Remove HAVE_X11R5 and HAVE_X11R4.
19167
191682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19169
19170 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19171
191722007-11-01 Johan Bockgård <bojohan@gnu.org>
19173
19174 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19175 Don't set s->stippled_p here, since it has already been set by
19176 x_set_glyph_string_gc from x_draw_glyph_string.
19177
191782007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19179
19180 * sunfns.c: Remove file.
19181
19182 * m/sun386.h:
19183 * m/sun2.h:
19184 * m/sparc.h: Remove Sun windows code.
19185
191862007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19187
19188 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19189 (init_keyboard): Set current_kboard's window-system to nil.
19190 (tty_read_avail_input): Typo.
19191 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19192
191932007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19194
19195 * s/usg5-4.h:
19196 * s/usg5-3.h:
19197 * s/ptx.h:
19198 * m/is386.h:
19199 * m/ibmps2-aix.h:
19200 * Makefile.in: Remove all mentions of X10.
19201
19202 * dispnew.c (syms_of_display): Don't mention version 10.
19203
192042007-10-28 Juanma Barranquero <lekktu@gmail.com>
19205
19206 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19207 ($(BLD)/abbrev.$(O)): Remove.
19208
192092007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19210
19211 Rewrite abbrev.c in Elisp.
19212 * image.c (Qcount): Don't declare as extern.
19213 (syms_of_image): Initialize and staticpro `Qcount'.
19214 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19215 * emacs.c (main): Don't call syms_of_abbrev.
19216 * Makefile.in (obj): Remove abbrev.o.
19217 (abbrev.o): Remove.
19218 * abbrev.c: Remove.
19219
192202007-10-26 Martin Rudalics <rudalics@gmx.at>
19221
19222 * window.c (window_min_size_2): Don't count header-line.
19223
192242007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * frame.h (struct frame): Move all bit fields after the first bit
19227 field to take advantage of the available space. Group all the
19228 chars together to reduce wasted space due to padding.
19229
192302007-10-26 Juanma Barranquero <lekktu@gmail.com>
19231
19232 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19233
19234 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19235 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19236 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19237 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19238 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19239 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19240 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19241 (last_marked, mark_object_loop_halt): Make static.
19242
19243 * frame.c (syms_of_frame) <delete-frame-functions>:
19244 Fix typo in docstring.
19245
192462007-10-25 Juanma Barranquero <lekktu@gmail.com>
19247
19248 * w32.c (init_environment): Fix tiny memory leak.
19249 (w32_get_resource): Remove unused variable `ok'.
19250
192512007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19252
19253 Make `window-system' into a keyboard-local variable (rather than
19254 frame-local as done originally by multi-tty).
19255
19256 * keyboard.h (struct kboard): Add Vwindow_system.
19257 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19258 (mark_kboards): Mark Vwindow_system.
19259
19260 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19261 (init_display): Don't set the obsolete `window-system' frame-param.
19262
19263 * xterm.c (x_term_init):
19264 * w32term.c (w32_create_terminal):
19265 * term.c (init_tty): Set Vwindow_system.
19266 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19267 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19268
19269 * xfns.c (Fx_create_frame, x_create_tip_frame):
19270 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19271 * macfns.c (Fx_create_frame):
19272 Don't set the obsolete `window-system' frame-param.
19273
19274 * frame.h (Qwindow_system): Remove.
19275 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19276 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19277
192782007-10-24 Richard Stallman <rms@gnu.org>
19279
19280 * frame.c (x_figure_window_size): For fullscreen case,
19281 set USPosition | PPosition without clobbering rest of window_prompting.
19282
19283 * keyboard.c (Fcurrent_idle_time): Doc fix.
19284
19285 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19286
192872007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19288
19289 * process.c (unwind_request_sigio): Only define if __ultrix__.
19290
19291 * callproc.c (child_setup): Remove spurious *.
19292
19293 * lisp.h (Fget_text_property): Declare.
19294 (have_menus_p): Declare it here rather than in sys-dep header files.
19295 * macterm.h (have_menus_p):
19296 * msdos.h (have_menus_p):
19297 * xterm.h (have_menus_p): Remove.
19298
19299 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19300 (Fmake_variable_frame_local): Just check the variable's const-ness
19301 rather than checking nil or t.
19302
193032007-10-22 Jason Rumney <jasonr@gnu.org>
19304
19305 * w32fns.c: Include math.h.
19306 (w32_abort): Declaration moved to nt/config.nt.
19307
19308 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19309 (abort): Redefinition moved to nt/config.nt.
19310
19311 * m/windowsnt.h: Remove.
19312
193132007-10-22 Juanma Barranquero <lekktu@gmail.com>
19314
19315 * emacs.c (Fdump_emacs): Fix typo in message.
19316 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19317 <installation-directory>: Reflow docstring.
19318
193192007-10-22 Juri Linkov <juri@jurta.org>
19320
19321 * minibuf.c: Allow minibuffer default to be a list of default values.
19322 With empty input use the first element of this list as returned default.
19323 (string_to_object)
19324 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19325 (read_minibuf): If defalt is cons, set histstring to its car.
19326 (Fread_string): If default_value is cons, set val to its car.
19327 (Fread_buffer): If def is cons, use its car.
19328 (Fcompleting_read): If defalt is cons, set val to its car.
19329
193302007-10-21 Michael Albinus <michael.albinus@gmx.de>
19331
19332 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19333
193342007-10-20 Juanma Barranquero <lekktu@gmail.com>
19335
19336 * doc.c (Fdocumentation): Check for advice in all cases.
19337
193382007-10-19 Chong Yidong <cyd@stupidchicken.com>
19339
19340 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19341
193422007-10-19 Richard Stallman <rms@gnu.org>
19343
19344 * doc.c (Fdocumentation): Check for and handle an advised function.
19345
193462007-10-19 Juanma Barranquero <lekktu@gmail.com>
19347
19348 * process.c (Fset_process_filter): Doc fix.
19349
193502007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19351
19352 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19353 which caused key-translation-map to applied repeatedly (thus breaking
19354 double-mode).
19355
193562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19357
19358 * xselect.c (x_own_selection, x_handle_selection_clear)
19359 (x_clear_frame_selections):
19360 * w32menu.c (list_of_panes, list_of_items):
19361 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19362 * textprop.c (validate_plist, interval_has_all_properties)
19363 (interval_has_some_properties, interval_has_some_properties_list)
19364 (add_properties, text_property_list):
19365 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19366 * minibuf.c (Fassoc_string):
19367 * macselect.c (x_own_selection, x_clear_frame_selections)
19368 (Fx_disown_selection_internal):
19369 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19370 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19371
193722007-10-17 Chong Yidong <cyd@stupidchicken.com>
19373
19374 * process.c: Link to libs for calling res_init() if available.
19375 (Fmake_network_process): Call res_init() before getaddrinfo or
19376 gethostbyname, if possible.
19377
193782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19379
19380 * lread.c (read1): Set pvectype for char_tables.
19381
19382 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19383 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19384 Add type checks.
19385 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19386
19387 * alloc.c (free_misc): Use XMISCTYPE.
19388 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19389
193902007-10-17 Glenn Morris <rgm@gnu.org>
19391
19392 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19393 (syms_of_minibuf): Add Qcompletion_ignore_case.
19394 * dired.c (Qcompletion_ignore_case): Change to external.
19395 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19396 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19397 (Fread_file_name): Use it rather than intern'ing.
19398
19399 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19400 (Fread_coding_system): Ignore case of user input.
19401
194022007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19403
19404 * xdisp.c (handle_display_prop): Ignore display specs after
19405 replacing one when string text is being replaced.
19406 (handle_single_display_spec): Pretend as if characters with display
19407 property haven't been consumed only when buffer text is being replaced.
19408
194092007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19410
19411 * xfns.c (Fx_create_frame, Fx_display_list):
19412 * window.c (window_fixed_size_p, enlarge_window)
19413 (shrink_window_lowest_first):
19414 * macterm.c (init_font_name_table):
19415 * macfns.c (Fx_create_frame, Fx_display_list):
19416 * lread.c (close_load_descs):
19417 * keyboard.c (read_char_x_menu_prompt):
19418 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19419 * coding.c (code_convert_region_unwind): Test the type of an object
19420 rather than just !NILP before extracting data from it.
19421
19422 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19423
19424 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19425 (XMISCANY): New macro.
19426 (XMISCTYPE): Use it.
19427 (struct Lisp_Misc_Any): New type.
19428 (union Lisp_Misc): Use it.
19429 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19430 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19431 (find_symbol_value, set_internal, default_value, Fset_default)
19432 (Fmake_variable_buffer_local, Fmake_local_variable)
19433 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19434 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19435 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19436 * alloc.c (allocate_buffer): Set the size and tag.
19437 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19438 Use XMISCANY.
19439 (die): Follow the GNU convention for error messages.
19440 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19441 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19442 tag any more.
19443 (set_buffer_internal_1):
19444 * frame.c (store_frame_param):
19445 * eval.c (specbind):
19446 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19447
19448 * doc.c (Fsnarf_documentation): Simplify.
19449
194502007-10-14 Juanma Barranquero <lekktu@gmail.com>
19451
19452 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19453 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19454
194552007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19456
19457 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19458
194592007-10-14 Juanma Barranquero <lekktu@gmail.com>
19460
19461 * eval.c (do_autoload): Don't save autoloads.
19462
19463 * data.c (Ffset): Save autoload of the function being set.
19464
194652007-10-07 John Paul Wallington <jpw@pobox.com>
19466
19467 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19468 parameter before setting up faces.
19469
194702007-10-13 Eli Zaretskii <eliz@gnu.org>
19471
19472 * ccl.c (Fregister_code_conversion_map):
19473 * keyboard.c (append_tool_bar_item): Reformat last change.
19474
19475 * lisp.h (eabs): Rename from `abs'. All callers changed.
19476
194772007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19478
19479 * buffer.c (add_overlay_mod_hooklist):
19480 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19481 * fontset.c (make_fontset):
19482 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19483 (append_tool_bar_item):
19484 * macmenu.c (grow_menu_items):
19485 * w32menu.c (grow_menu_items):
19486 * xmenu.c (grow_menu_items): Use larger_vector.
19487
194882007-10-13 Eli Zaretskii <eliz@gnu.org>
19489
19490 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19491 selected frame'' on MSDOS).
19492
194932007-10-12 Martin Rudalics <rudalics@gmx.at>
19494
19495 * frame.c (Qexplicit_name): New variable.
19496 (x_report_frame_params): Report it in parameter alist.
19497 (syms_of_frame): Intern and staticpro it.
19498
194992007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19500
19501 * macfns.c (x_create_tip_frame): Set terminal for frame.
19502
195032007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19504
19505 * frame.c (Qenvironment): Remove.
19506 (syms_of_frame) <Qenvironment>: Don't initialize.
19507 (Fdelete_frame): Don't treat the `environment' param specially.
19508 * frame.h (Qenvironment): Don't declare.
19509 * callproc.c (set_initial_environment): Don't set unused frame param.
19510
19511 * frame.c (Fframe_with_environment): Remove.
19512 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19513
19514 * lisp.h (Fframe_with_environment): Don't declare.
19515
195162007-10-10 Juanma Barranquero <lekktu@gmail.com>
19517
19518 * indent.c (indent_tabs_mode, last_known_column)
19519 (last_known_column_modified): Make static.
19520 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19521
195222007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19523
19524 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19525
195262007-10-09 Jason Rumney <jasonr@gnu.org>
19527
19528 * w32term.c (x_set_window_size): Disable code that attempts to tell
19529 Lisp code about a size change before it actually happens.
19530
195312007-10-09 Richard Stallman <rms@gnu.org>
19532
19533 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19534 return HANDLED_RETURN.
19535
195362007-10-08 Martin Rudalics <rudalics@gmx.at>
19537
19538 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19539 when there's an unread command event.
19540
19541 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19542 window autoselection act appropriately when leaving selected frame.
19543 (syms_of_frame): Initialize focus_follows_mouse.
19544 * frame.h (focus_follows_mouse): Extern it.
19545 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19546 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19547 * msdos.c (dos_rawgetc): Likewise.
19548 * w32term.c (w32_read_socket): Likewise.
19549 * xterm.c (handle_one_xevent): Likewise.
19550 * xdisp.c (syms_of_xdisp): In doc-string of
19551 mouse-autoselect-window mention focus-follows-mouse.
19552
195532007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19554
19555 * macterm.c (mac_load_query_font): Fix missing return value.
19556 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19557 Add BLOCK_INPUT.
19558
195592007-10-08 Richard Stallman <rms@gnu.org>
19560
19561 * xdisp.c (get_window_cursor_type): Implement documented behavior
19562 for cursor-in-non-selected-windows = t.
19563
195642007-10-08 Jason Rumney <jasonr@gnu.org>
19565
19566 * w32.c (w32_get_resource): Always close registry keys.
19567
195682007-10-08 Jason Rumney <jasonr@gnu.org>
19569
19570 * makefile.w32-in (LIBS): Add COMCTL32.
19571
19572 * w32fns.c (globals_of_w32fns): Init common controls.
19573
195742007-10-08 Richard Stallman <rms@gnu.org>
19575
19576 * image.c (our_memory_buffer): Rename from omfib_buffer.
19577
195782007-10-08 Richard Stallman <rms@gnu.org>
19579
19580 * buffer.c (Foverlays_at): Doc fix.
19581
195822007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19583
19584 * fns.c (Fplist_put): Preserve uneven tail data.
19585
195862007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19587
19588 * termhooks.h (enum event_kind): Remove trailing comma.
19589
19590 * frame.h (enum): Remove trailing comma.
19591
195922007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19593
19594 * w32proc.c (delete_child): Don't terminate threads of zombies.
19595
195962007-10-08 Martin Rudalics <rudalics@gmx.at>
19597
19598 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19599
19600 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19601 last-repeatable-command.
19602 (init_kboard): Initialize Vlast_repeatable_command.
19603 (command_loop_1): Set it to real_this_command unless that was
19604 bound to an input event.
19605 (mark_kboards): Mark it.
19606
196072007-10-08 Richard Stallman <rms@gnu.org>
19608
19609 * eval.c (condition-case): Doc fix.
19610
196112007-10-08 Masatake YAMATO <jet@gyve.org>
19612
19613 * xfaces.c (tty_supports_face_attributes_p): Fix code
19614 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19615 was copied and not edited.
19616
196172007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19618
19619 Add new `input-decode-map' keymap and use it for terminal
19620 escape sequences.
19621 * keyboard.h (struct kboard): Add Vinput_decode_map.
19622 Remove Vlocal_key_translation_map.
19623 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19624 (init_kboard): Init input-decode-map.
19625 Replace local-key-translation-map back with key-translation-map.
19626 (syms_of_keyboard): Declare input-decode-map.
19627 Remove local-key-translation-map. Update docstrings.
19628 (mark_kboards): Mark Vinput_decode_map.
19629 Don't mark Vlocal_key_translation_map.
19630 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19631 Replace local-key-translation-map back with key-translation-map.
19632 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19633 Bind in input-decode-map rather than function-key-map.
19634
19635 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19636 This was made redundant by the previous introduction of XSETPVECTYPE.
19637
196382007-10-09 Richard Stallman <rms@gnu.org>
19639
19640 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19641
196422007-09-29 Richard Stallman <rms@gnu.org>
19643
19644 * eval.c (internal_condition_case_2, internal_condition_case_1)
19645 (internal_condition_case): Reenable abort if x_catching_errors ()
19646 to see if that really happens and why.
19647
196482007-10-06 Andreas Schwab <schwab@suse.de>
19649
19650 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19651
196522007-10-04 Juanma Barranquero <lekktu@gmail.com>
19653
19654 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19655
196562007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19657
19658 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19659
196602007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19661
19662 * window.h (struct window):
19663 * window.c (struct save_window_data, struct saved_window):
19664 * termhooks.h (struct terminal):
19665 * process.h (struct Lisp_Process):
19666 * frame.h (struct frame):
19667 * buffer.h (struct buffer):
19668 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19669 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19670 The size field of (pseudo)vectors is now unsigned.
19671 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19672
19673 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19674 Turn `count' into an integer.
19675
19676 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19677 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19678 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19679 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19680 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19681
19682 * alloc.c (allocate_pseudovector): New fun.
19683 (ALLOCATE_PSEUDOVECTOR): New macro.
19684 (allocate_window, allocate_terminal, allocate_frame)
19685 (allocate_process): Use it.
19686 (mark_vectorlike): New function.
19687 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19688 (mark_terminals): Use it.
19689 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19690 (Fmake_byte_code): Use XSETPVECTYPE.
19691
19692 * frame.c (Fframe_parameters): Minor simplification.
19693
19694 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19695
19696 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19697
19698 * buffer.c (Fget_buffer_create, init_buffer_once):
19699 * lread.c (defsubr):
19700 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19701
19702 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19703 defined differently in the m/*.h files.
19704 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19705 (XSETPVECTYPE): New macro.
19706 (XSETPSEUDOVECTOR): Use it.
19707
19708 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19709 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19710
19711 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19712 * lread.c (defvar_per_buffer):
19713 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19714
19715 * window.c (candidate_window_p): Only consider as visible frames that
19716 are on the same terminal.
19717
19718 * m/ibms390x.h (MARKBIT): Remove unused macro.
19719
197202007-10-01 Juanma Barranquero <lekktu@gmail.com>
19721
19722 * lread.c (Fload): Fix typo in docstring.
19723
197242007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19725
19726 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19727 of a non-zero value can't yield zero.
19728
197292007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19730
19731 * term.c (term_clear_mouse_face, term_mouse_highlight)
19732 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19733
19734 * print.c (safe_debug_print): Use XHASH.
19735
19736 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19737 Lisp elements such as tags.
19738 (XHASH): New macro.
19739 (EQ): Use it.
19740 (SREF, SSET, STRING_COPYIN): Use SDATA.
19741 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19742
19743 * alloc.c (mark_terminal): Remove left-over declaration.
19744 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19745 (allocate_vectorlike): Remove type argument. Adjust callers.
19746 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19747 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19748
19749 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19750 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19751 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19752 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19753 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19754 Use them.
19755
19756 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19757 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19758 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19759
197602007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19761
19762 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19763 loaded by default.
19764
197652007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19766
19767 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19768 on this tty.
19769 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19770
19771 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19772 Update all users.
19773 (handle_one_term_event): Use Gpm_DrawPointer.
19774 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19775 Signal errors instead of returning nil. Always return nil.
19776 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19777 Make it a noop if gpm-mouse was not activated.
19778 (syms_of_term): Update names.
19779
197802007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19781
19782 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19783 (init_sys_modes): Check that gpm_tty is the current tty.
19784
19785 * alloc.c (allocate_terminal): Set the vector size to only count the
19786 lisp fields. Initialize those to nil.
19787 (mark_object): Don't treat terminals specially.
19788 (mark_terminal): Remove.
19789 (mark_terminals): Use mark_object instead.
19790
19791 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19792 the GC to the beginning.
19793
19794 * indent.h:
19795 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19796
19797 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19798
197992007-09-25 Jason Rumney <jasonr@gnu.org>
19800
19801 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19802
19803 * w32console.c (create_w32cons_output): Remove.
19804
19805 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19806
19807 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19808 (reset_sys_modes): Use reset_terminal_modes_hook.
19809
198102007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19811
19812 * eval.c (do_autoload): Don't output any message.
19813
198142007-09-24 Juri Linkov <juri@jurta.org>
19815
19816 * emacs.c (standard_args): Change priority of "--no-splash"
19817 from 40 to 3. Add "--no-desktop" with the same priority.
19818
198192007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19820
19821 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19822 and optimize the case where they are all 1.
19823
198242007-09-23 Johannes Weiner <hannes@saeurebad.de>
19825
19826 * lisp.h (abs): Define if not defined.
19827 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19828 Don't define `abs', since it's defined in lisp.h.
19829
198302007-09-22 Eli Zaretskii <eliz@gnu.org>
19831
19832 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19833 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19834 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19835 (init_tty): Use DEV_TTY instead of "/dev/tty".
19836 [WINDOWSNT]: No need to protect from NAME arg being null.
19837
198382007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19839
19840 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19841 up the tty state.
19842
198432007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19844
19845 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19846 (gpm_tty): Change its type.
19847 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19848 (gpm_tty): Change its type and initialize it.
19849 (Fterm_open_connection): Check the frame is indeed a tty.
19850 Use the new gpm_tty.
19851 (Fterm_close_connection): Use the new gpm_tty.
19852 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19853 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19854
198552007-09-21 Juanma Barranquero <lekktu@gmail.com>
19856
19857 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19858 underline_color, to draw strike-through.
19859
198602007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19861
19862 * lisp.h (allocate_terminal): Declare.
19863
19864 * window.c (candidate_window_p): Consider frames that are being placed
19865 by the user as somewhere between visible and iconified.
19866 (window_loop): Prefer windows on the current frame.
19867 (Fselect_window): Move the use of select-frame to the beginning so we
19868 can just delegate all the work (it'll call us back anyway).
19869
19870 * frame.c (Qdisplay_environment_variable):
19871 * frame.h (Qdisplay_environment_variable): Delete.
19872
19873 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19874 of the first arg, since that value may be a union.
19875
19876 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19877 parameter rather than Qdisplay_environment_variable. If all else
19878 fails, look for DISPLAY in initial-environment.
19879
198802007-09-21 Glenn Morris <rgm@gnu.org>
19881
19882 * Makefile.in (emacstool): Remove target.
19883 (lisp, shortlisp): Remove termdev.elc.
19884
198852007-09-21 Markus Triska <markus.triska@gmx.at>
19886
19887 * xterm.c (x_delete_display): Compile session management conditionally.
19888
198892007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19890
19891 * callproc.c (getenv_internal_1): New function.
19892 (getenv_internal): Use it.
19893 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19894
19895 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19896 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19897 (Fset_terminal_parameter): Work with dead terminals as well.
19898 (Fmodify_terminal_parameters): Remove.
19899
19900 * terminal.c (get_terminal): Handle terminals.
19901 Make sure the terminal returned is live.
19902 (create_terminal): Use allocate_terminal.
19903 (mark_terminals): Move to alloc.c.
19904 (delete_terminal): Use terminal->name as liveness status.
19905 NULL out fields after freeing their contents.
19906 Don't deallocate the object.
19907 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19908 rather than an int.
19909 (Fterminal_live_p): Accept non-integer arguments.
19910 (Fterminal_list): Return terminal objects rather than an ints.
19911
19912 * alloc.c (enum mem_type): New member for `terminal' objects.
19913 (allocate_terminal): New function.
19914 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19915 Handle terminals.
19916 (mark_terminal): New fun.
19917 (mark_terminals): Move from terminal.c.
19918
19919 * term.c (get_tty_terminal): Don't treat output_initial specially.
19920 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19921 (delete_tty): Use terminal->name as liveness status.
19922
19923 * termhooks.h (struct terminal): Make it into a pseudovector.
19924 Remove `deleted' replaced by checking `name's nullness.
19925
19926 * print.c (print_object): Handle terminals.
19927
19928 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19929 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19930
19931 * frame.c (make_terminal_frame):
19932 * keyboard.c (tty_read_avail_input):
19933 * w32term.c (x_delete_terminal):
19934 * xfns.c (Fx_create_frame, x_create_tip_frame):
19935 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19936
199372007-09-20 Glenn Morris <rgm@gnu.org>
19938
19939 * process.c (Fmake_network_process): Doc fix.
19940
199412007-09-19 Jason Rumney <jasonr@gnu.org>
19942
19943 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19944
199452007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19946
19947 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19948 Fix a C warning regarding variable constness.
19949
19950 * xterm.c (handle_one_xevent): Fix a C warning.
19951
199522007-09-18 Jason Rumney <jasonr@gnu.org>
19953
19954 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19955
199562007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19957
19958 * gtkutil.c (gdpy_def): New variable.
19959 (xg_initialize): Initialize gdpy_def.
19960 (xg_display_close): If no other display exists, set gdpy_def to a
19961 new connection.
19962
199632007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19964
19965 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19966 when we have no file name for the icon.
19967 (xg_tool_bar_expose_callback): Remove.
19968 (xg_create_tool_bar): Don't connect expose signal to
19969 xg_tool_bar_expose_callback.
19970 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19971
199722007-09-16 Andreas Schwab <schwab@suse.de>
19973
19974 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19975 values instead of zapping them.
19976
199772007-09-14 Glenn Morris <rgm@gnu.org>
19978
19979 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19980 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19981 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19982 scope and rename to omfib_buffer for clarity.
19983 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19984
199852007-09-14 Kenichi Handa <handa@m17n.org>
19986
19987 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19988
199892007-09-13 Jason Rumney <jasonr@gnu.org>
19990
19991 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19992
19993 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19994
19995 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19996 (mac_term_init): Call here instead, passing rif.
19997
199982007-09-13 Glenn Morris <rgm@gnu.org>
19999
20000 * s/hpux.h: No longer define `static' as nothing.
20001
200022007-09-13 Johan Bockgård <bojohan@gnu.org>
20003
20004 * callint.c (Fcall_interactively): Remove unused var `fun'.
20005
200062007-09-12 Romain Francoise <romain@orebokech.com>
20007
20008 * window.c (prefer_window_split_horizontally, display_buffer):
20009 Revert 2007-09-08 change.
20010
200112007-09-12 Glenn Morris <rgm@gnu.org>
20012
20013 * alloca.c: Remove file.
20014 * Makefile.in (alloca): Do not undef.
20015 (allocaobj, alloca.o): Remove.
20016 (otherobj): Remove allocaobj.
20017 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20018 * regex.c (C_ALLOCA): Remove all references and code that was only
20019 used when this was defined.
20020 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20021 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20022 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20023
20024 * Makefile.in (SOURCES, unlock, relock): Delete.
20025
20026 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20027 (menu_grab_callback): All uses changed.
20028
20029 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20030 (x_reply_selection_request): All uses changed.
20031
200322007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20033
20034 * lread.c (load_warn_old_style_backquotes): Change message to look
20035 better when it appears in the middle of byte-compiler messages.
20036
200372007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20038
20039 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20040
20041 * xterm.c (x_create_terminal): Add comment.
20042
20043 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20044
200452007-09-10 Richard Stallman <rms@gnu.org>
20046
20047 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20048
200492007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20050
20051 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20052 (DEFUN): Document `intspec', use it instead of `prompt'.
20053
20054 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20055
20056 * data.c (Finteractive_form): If the interactive specification starts
20057 with a `(', use it as a Lisp form.
20058
20059 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20060 name and file modes.
20061
20062 * callint.c (Fcall_interactively): Comment fixes.
20063
200642007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20065
20066 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20067 and compiled functions.
20068
200692007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20070
20071 * window.c (prefer_window_split_horizontally): New variable.
20072 (display_buffer): Consider splitting window horizontally depending
20073 on prefer_window_split_horizontally.
20074
200752007-09-08 Eli Zaretskii <eliz@gnu.org>
20076
20077 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20078
200792007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20080
20081 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20082
20083 * frame.c (x_set_frame_parameters): Check number is positive before
20084 using XFASTINT.
20085
20086 * window.c (freeze_window_start): Don't presume selected_window holds
20087 a window object.
20088 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20089
200902007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20091
20092 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20093
200942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * window.c (Vsplit_window_preferred_function): New var.
20097 (Fdisplay_buffer): Use it.
20098 (syms_of_window): Export, and initialize it.
20099
201002007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20101
20102 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20103
201042007-09-06 Glenn Morris <rgm@gnu.org>
20105
20106 * gtkutil.c (menu_grab_callback) <cnt>:
20107 * xselect.c (x_reply_selection_request) <cnt>: Move static
20108 variable to file scope.
20109
201102007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20111
20112 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20113 consistent values of selected_frame and selected_window.
20114
201152007-09-04 Jason Rumney <jasonr@gnu.org>
20116
20117 * w32console.c (initialize_w32_display): Zero unused hooks.
20118
201192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20120
20121 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20122 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20123
201242007-09-04 Jason Rumney <jasonr@gnu.org>
20125
20126 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20127 in w32console.c. Set up input. Remove XXX comments that have been
20128 confirmed as correct.
20129
20130 * s/ms-w32.h (MULTI_KBOARD): Define.
20131
20132 * w32console.c (one_and_only_w32cons): Remove.
20133 (initialize_w32_display): Take terminal argument.
20134
20135 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20136 initialize_w32_display.
20137 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20138
20139 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20140
20141 * keyboard.c (discard_mouse_events): Discard it.
20142 (make_lispy_event): Translate it to a lisp event.
20143 (lispy_wheel_names): Add wheel-left and right events.
20144 (syms_of_keyboard): Enlarge wheel_syms.
20145
20146 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20147 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20148
20149 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20150
20151 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20152 from WM_MOUSEHWHEEL.
20153 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20154
20155 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20156 terminal.
20157
20158 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20159 keyboard for the terminal.
20160
201612007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20162
20163 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20164 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20165 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20166 and resume-tty-function to resume-tty-hook.
20167 (Fsuspend_tty, Fresume_tty): Use new names.
20168
201692007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20170
20171 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20172 if it starts with "n:".
20173
201742007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20175
20176 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20177
201782007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20179
20180 * frame.h:
20181 * frame.c (Qterm_environment_variable): Remove.
20182 (syms_of_frame): Don't init and staticpro it.
20183
20184 * callproc.c (getenv_internal): Remove special case for $TERM.
20185
20186 * callproc.c (Vinitial_environment): New variable.
20187 (set_initial_environment): Initialize it.
20188 (syms_of_callproc): Declare it.
20189 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20190 TERM under which a process runs is never related to the TERM in which
20191 Emacs is running.
20192
201932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20194
20195 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20196 * s/darwin.h: ... do it here.
20197
201982007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20199
20200 * lisp.h (set_initial_environment): Rename from set_global_environment.
20201
20202 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20203 removed by mistake on the multi-tty branch.
20204
20205 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20206 (Fmodify_frame_parameters): Return a value.
20207
20208 * image.c (png_load): Comment-out var only used in commented-out code.
20209
20210 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20211 before passing it to mark_object.
20212
20213 * xfaces.c (internal_resolve_face_name): Return a value.
20214 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20215
20216 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20217 (x_icon): Comment-out var only used in commented-out code.
20218
202192007-08-29 Romain Francoise <romain@orebokech.com>
20220
20221 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20222 QUIT hasn't been provided.
20223
202242007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20225
20226 * callproc.c (child_setup, getenv_internal): Use the
20227 display-environment-variable and term-environment-variable frame params.
20228 (set_initial_environment): Initialise Vprocess_environment.
20229
20230 * config.in: Disable multi-keyboard support on a mac.
20231
20232 * frame.c (Qterm_environment_variable)
20233 (Qdisplay_environment_variable): New variables.
20234 (syms_of_frame): Intern and staticpro them.
20235 (Fmake_terminal_frame): Disable output method test.
20236
20237 * frame.h: Declare them here.
20238
20239 * macfns.c (x_set_mouse_color): Get rif from the frame.
20240 (x_set_tool_bar_lines): Don't use updating_frame.
20241 (mac_window): Add 2 new parameters for consistency with other systems.
20242 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20243 frame parameters following what is done in X11 and w32. Don't use
20244 FRAME_MAC_DISPLAY_INFO.
20245 (Fx_open_connection, start_hourglass): Remove window-system check.
20246 (x_create_tip_frame): Get the keyboard from the terminal.
20247
20248 * macmenu.c: Reorder includes.
20249 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20250
20251 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20252 terminal parameter.
20253 (x_clear_frame): Add a frame parameter.
20254 (note_mouse_movement): Get rif from the frame.
20255 (mac_term_init): Initialize the terminal.
20256 (mac_initialize): Make static and move terminal initialization ...
20257 (mac_create_terminal): ... to this new function.
20258
20259 * macterm.h (struct mac_display_info): Add terminal.
20260 (mac_initialize): Delete declaration.
20261
20262 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20263
20264 * sysdep.c: Comment out text after #endif.
20265
20266 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20267 is defined. Better initialize ttys in windows. Use terminal
20268 specific mouse_position_hook.
20269
20270 * termhooks.h (union display_info): Add mac_display_info.
20271
20272 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20273 Set the default minibuffer frame, window_system and the rest of the
20274 frame parameters following what is done in X11.
20275
20276 * w32term.c (w32_initialize): Make static.
20277
20278 * xselect.c (x_handle_selection_clear): Only access
20279 terminal->kboard when MULTI_KBOARD is defined.
20280
20281 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20282 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20283
202842007-08-29 Jason Rumney <jasonr@gnu.org>
20285
20286 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20287 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20288
20289 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20290 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20291
20292 * keyboard.c (restore_kboard_configuration): Only define when
20293 MULTI_KBOARD defined.
20294
20295 * makefile.w32-in: Update dependancies from Makefile.in.
20296 (OBJ1): Add terminal.$(O)
20297
20298 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20299 Don't define function body.
20300 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20301
20302 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20303
20304 * w32.c (request_sigio, unrequest_sigio): Remove.
20305
20306 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20307 (w32con_clear_frame, w32con_clear_end_of_line)
20308 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20309 (w32con_delete_glyphs, w32con_set_terminal_window)
20310 (scroll_line, w32_sys_ring_bell): Add frame arg.
20311 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20312 Add terminal arg.
20313 (PICK_FRAME): Remove.
20314 (w32con_write_glyphs): Use frame specific terminal coding.
20315 (one_and_only_w32cons): New global variable.
20316 (initialize_w32_display): Use it for storing hooks.
20317 (create_w32cons_output): New function.
20318
20319 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20320 arg a frame.
20321
20322 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20323 Set window_system.
20324 (x_set_tool_bar_lines): Don't use updating_frame.
20325 (Fx_create_frame): Set terminal and ref count.
20326 (Fx_open_connection): Remove window-system check.
20327
20328 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20329
20330 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20331 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20332 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20333 Add frame arg.
20334 (x_delete_terminal, w32_create_terminal): New functions.
20335 (w32_term_init): Create a terminal.
20336 (w32_initialize): Move terminal specific initialization to
20337 w32_create_terminal.
20338
20339 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20340 (w32_clear_rect, w32_clear_area): Use background from frame.
20341 (w32_display_info): Add terminal.
20342 (w32_sys_ring_bell, x_delete_display): Declare here.
20343
20344 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20345
20346 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20347
203482007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20349
20350 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20351 Fix get_named_tty calls for the controlling tty.
20352
203532007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20354
194d44e7 20355 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20356
203572007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20358
20359 * term.c (tty_insert_glyphs): Add missing first parameter.
20360
203612007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20362
20363 * buffer.c (Fbuffer_list, Fbury_buffer):
20364 Take frame->buried_buffer_list into account.
20365
20366 * cm.c (current_tty): New variable, for cmputc().
20367 (cmputc): Use it.
20368 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20369 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20370 (cmgoto): Add tty parameter. Pass it on to calccost().
20371 Use emacs_tputs() instead of tputs().
20372
20373 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20374 tputs().
20375 (current_tty): New variable, for cmputc().
20376 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20377
20378 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20379 (internal_condition_case, internal_condition_case_1)
20380 (internal_condition_case_2): Don't abort when x_catching_errors.
20381
20382 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20383 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20384 prevent crashes caused by bogus longjmps in read_char.
20385
20386 * keymap.h (Fset_keymap_parent): Add EXFUN.
20387
20388 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20389 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20390 Remove redundant definition.
20391
20392 * macfns.c (x_set_mouse_color, x_make_gc):
20393 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20394
20395 * w32term.c (x_free_frame_resources):
20396 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20397 (w32_initialize): Use the accessor macros for terminal characteristics.
20398
20399 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20400 Use the accessor macros for terminal characteristics.
20401 * msdos.c (internal_terminal_init): Use the accessor macros for
20402 terminal characteristics.
20403 (ScreenVisualBell, internal_terminal_init):
20404 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20405
20406 * termopts.h (no_redraw_on_reenter): Declare.
20407
20408 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20409 (mark_terminals, mark_ttys): Declare.
20410 (Fgarbage_collect): Call them.
20411 (mark_object): Mark buried_buffer_list.
20412
20413 * prefix-args.c: Include stdlib.h for exit.
20414
20415 * syssignal.h: Add comment.
20416
20417 * indent.c: Include stdio.h.
20418
20419 * window.h (Vinitial_window_system): Declare.
20420 (Vwindow_system): Delete declaration.
20421
20422 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20423
20424 * image.c (lookup_image): Don't initialize `c' until the xasserts
20425 have been run.
20426
20427 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20428 FRAME_FOREGROUND_PIXEL.
20429
20430 * print.c (print_preprocess): Don't lose print_depth levels while
20431 iterating.
20432
20433 * widget.c (update_from_various_frame_slots):
20434 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20435
20436 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20437 frames.
20438 (window_internal_height): Remove bogus make_number call.
20439 (init_window_once): Call make_terminal_frame with two zero parameters.
20440
20441 * fileio.c (Fread_file_name): Update comment.
20442
20443 * callint.c (Fcall_interactively):
20444 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20445 Make sure it is correctly unwound.
20446
20447 * xsmfns.c (x_session_close): New function.
20448
20449 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20450 Delete declarations.
20451
20452 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20453 (x_output): Remove background_pixel and foreground_pixel fields.
20454 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20455 (x_delete_device, x_session_close): Declare.
20456
20457 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20458 (read_filtered_event): Call `read_char' with a local
20459 `wrong_kboard_jmpbuf'.
20460
20461 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20462 Don't call single_kboard_state. Use FRAME_RIF.
20463
20464 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20465 systems.
20466
20467 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20468 (Fframe_with_environment, Fset_input_meta_mode)
20469 (Fset_quit_char): EXFUN.
20470 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20471 (init_sys_modes, reset_sys_modes): Update prototypes.
20472 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20473
20474 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20475 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20476 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20477 Delete declarations.
20478 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20479 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20480 New declarations.
20481
20482 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20483 already does that during init_display(). Call syms_of_keymap
20484 before syms_of_keyboard. Call `syms_of_terminal'.
20485 Call set_initial_environment, not set_process_environment.
20486 (shut_down_emacs): Call reset_all_sys_modes() instead of
20487 reset_sys_modes().
20488
20489 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20490 (internal_resolve_face_name, resolve_face_name_error): New functions.
20491 (resolve_face_name): Protect against loops and errors thrown by Fget.
20492 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20493 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20494
20495 * scroll.c: Replace CURTTY() with local variables throughout the
20496 file (where applicable).
20497 (calculate_scrolling, calculate_direct_scrolling)
20498 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20499 characteristics.
20500
20501 * keymap.c (Vfunction_key_map): Remove.
20502 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20503 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20504 (Vkey_translation_map): Remove.
20505 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20506 (Fdescribe_buffer_bindings)
20507 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20508 Update for terminal-local key-translation-map.
20509
20510 * Makefile.in (callproc.o): Update dependencies.
20511 (lisp, shortlisp): Add termdev.elc.
20512 (obj): Add terminal.o.
20513 (terminal.o): Add dependencies.
20514 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20515 (data.o, fns.o): Add termhooks.h dependency.
20516 (SOME_MACHINE_LISP): Add dnd.elc.
20517 (minibuf.o): Fix typo.
20518 Update dependencies.
20519
20520 * data.c (do_symval_forwarding, store_symval_forwarding)
20521 (find_symbol_value): Use the selected frame's keyboard, not
20522 current_kboard.
20523
20524 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20525 Vwindow_system.
20526
20527 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20528 Fmenu_bar_open.
20529 (syms_of_xmenu): Update defsubr.
20530 (mouse_position_for_popup, Fx_popup_menu)
20531 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20532 (set_frame_menubar, free_frame_menubar)
b97439ce 20533 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20534 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20535 an X frame.
20536
20537 * xselect.c (x_own_selection): Abort if not an X frame.
20538 (some_frame_on_display): Check if it is an X frame.
20539 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20540
20541 * coding.c: Include frame.h and termhooks.h.
20542 (terminal_coding, keyboard_coding): Delete.
20543 (Fset_terminal_coding_system_internal)
20544 (Fset_keyboard_coding_system_internal)
20545 (Fkeyboard_coding_system)
20546 (Fterminal_coding_system): Add a terminal parameter.
20547 Get terminal_coding from the terminal.
20548 (init_coding_once): Don't call setup_coding_system here.
20549
20550 * dispextern.h (set_scroll_region, turn_off_insert)
20551 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20552 (tty_clear_end_of_line, tty_setup_colors)
20553 (delete_tty, updating_frame)
20554 (produce_special_glyphs, produce_glyphs, write_glyphs)
20555 (insert_glyphs): Remove.
20556 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20557 (tty_turn_off_highlight, get_tty_size): Add declaration.
20558 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20559
20560 * frame.h (enum output_method): Add output_initial.
20561 (struct x_output): Delete.
20562 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20563 Access foreground_pixel and background_pixel directly from the frame.
20564 (tty_display): Delete.
20565 (struct frame): Add buried_buffer_list, foreground_pixel,
20566 background_pixel and terminal. Delete kboard.
20567 (union output_data): Add tty.
20568 (FRAME_KBOARD): Get the kboard from the terminal.
20569 (FRAME_INITIAL_P): New macro.
20570 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20571 (Qterm_environment_variable, Qdisplay_environment_variable)
20572 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20573 New declarations.
20574
20575 * termchar.h (tty_output, tty_display_info): New structures.
20576 (tty_list): Declare.
20577 (FRAME_TTY, CURTTY): New macros.
20578 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20579 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20580 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20581 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20582
20583 * callproc.c: Include frame.h and termhooks.h, for terminal
20584 parameters.
20585 (add_env): New function.
20586 (child_setup): Use it.
20587 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20588 (getenv_internal): Fix get_terminal_param call.
20589 (Fgetenv_internal, egetenv): Update doc.
20590 (syms_of_callproc): Initialize Vprocess_environment to nil.
20591 Register and initialize them. Remove obsolete defvars. Update doc
20592 strings.
20593 (child_setup): Handle Vlocal_environment_variables.
20594 (getenv_internal): Add terminal parameter.
20595 Handle Vlocal_environment_variables.
20596 (Fgetenv_internal): Add terminal parameter.
20597 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20598 environment in a frame (not terminal) parameter. Update doc strings.
20599 (set_initial_environment): Rename from set_global_environment.
20600 Store Emacs environment in initial frame parameter.
20601
20602 * xdisp.c (redisplay_internal): Update references to
20603 `previous_terminal_frame'.
20604 (display_mode_line, Fformat_mode_line): Replace calls to
20605 `push_frame_kboard' with `push_kboard'.
20606 (get_glyph_string_clip_rects): Add extra parentheses and
20607 braces to prevent compiler warnings.
20608 (calc_pixel_width_or_height): Add xassert to check that the
20609 frame is alive. Don't call `lookup_image' on a termcap frame.
20610 (message2_nolog, message3_nolog, redisplay_internal)
20611 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20612 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20613 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20614 (Fx_display_pixel_width, Fx_display_pixel_height)
20615 (Fx_display_planes, Fx_display_color_cells)
20616 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20617 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20618 (Fx_display_backing_store, Fx_display_visual_class)
20619 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20620 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20621
20622 * xfns.c (x_set_foreground_color x_set_background_color)
20623 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20624 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20625 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20626 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20627 terminal that is being deleted.
20628 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20629 frame parameter, and make sure it overrides any user-supplied setting.
20630 (Fx_close_connection, Fx_synchronize): Unify argument names with
20631 the rest of the DEFUNs.
20632
20633 * dispnew.c (Fsend_string_to_terminal): Update call to
20634 `get_tty_terminal'.
20635 (Fredraw_frame, Fsend_string_to_terminal)
20636 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20637 FRAME_TERMCAP_P and FRAME_TTY.
20638 (window_change_signal): Don't believe width/height values that are
20639 impossibly small.
20640 (Vinitial_window_system): Rename from Vwindow_system.
20641 (termscript, Wcm, rif): Delete.
20642
20643 * termhooks.h (struct terminal): New struct containing the
20644 previously global text display hooks and new members NAME,
20645 DELETED and PARAM_ALIST.
20646 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20647 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20648 (FRAME_RIF): New macros.
20649 (get_terminal_param, get_device): New declarations.
20650 (termscript): Delete declaration.
20651
20652 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20653 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20654 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20655 FRAME_FOREGROUND_PIXEL.
20656 (x_fully_uncatch_errors): Disable definition.
20657 (x_scroll_bar_expose): Fix reference to foreground pixel.
20658 (XTread_socket): Disable loop on all X displays.
20659 (x_delete_terminal): Don't set terminal->deleted and let
20660 delete_terminal delete the frames on the terminal.
20661 (x_delete_display): Doc update to reflect changes in
20662 delete_terminal.
20663 (x_display_info) <terminal>: Move member earlier in the struct.
20664 (deleting_tty): Remove old variable.
20665 (Fsuspend_tty): Call clear_tty_hooks.
20666 (Fresume_tty, init_tty): Call set_tty_hooks.
20667 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20668 errors on X frames.
20669 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20670 (handle_one_xevent): Initialize `f' to NULL.
20671 (x_delete_terminal, x_create_terminal): New functions.
20672 (XTset_terminal_modes, XTreset_terminal_modes)
20673 (XTread_socket, x_connection_closed, x_term_init)
20674 (x_term_init, x_delete_display): Add terminal parameter.
20675 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20676 X connections.
20677
20678 * frame.c: Include termchar.h.
20679 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20680 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20681 (Qdisplay_environment_variable): New vars.
20682 (Fframep): Deal with output_initial.
20683 (Fframe-live-p): Doc fix.
20684 (Fwindow-system): New function.
20685 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20686 (make_terminal_frame): Don't create frames on a terminal that is
20687 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20688 (store_frame_param): Check for found_for_frame before calling XFRAME.
20689 (Fmake_terminal_frame): Handle NULL tty names correctly.
20690 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20691 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20692 frames to refer to a deleted frame in their 'environment parameter.
20693 (Fframe_with_environment): New function.
20694 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20695 (get_future_frame_param): New function.
20696 (Fmake_terminal_frame): Use it.
20697 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20698
20699 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20700 * sysdep.c (reset_sys_modes): Update for renames.
20701
20702 * keyboard.c (tty_read_avail_input): New function.
20703 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20704 (syms_of_keyboard): Defsubr them.
20705 (Fset_input_meta_mode, Fset_quit_char): New functions.
20706 (Fset_input_mode): Split to above functions.
20707 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20708 parameter. Use it in call to `read_char'.
20709 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20710 Set wrong_kboard_jmpbuf correctly in recursive calls.
20711 Use current_kboard to access Vkeyboard_translate_table.
20712 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20713 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20714 Update longjmp invocations. Remember the original current_kboard,
20715 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20716 changes it. Comment out unnecessary calls to
20717 `record_single_kboard_state' and `any_kboard_state'.
20718 Update recursive calls.
20719 (wrong_kboard_jmpbuf): Remove global variable.
20720 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20721 Handle deleted interrupted_kboards correctly; that is a legal
20722 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20723 and read_char calls. Abort if interrupted_kboard died in read_char.
20724 (any_kboard_state, single_kboard_state)
20725 (push_frame_kboard): Remove function.
20726 (pop_kboard): Switch out of single_kboard mode if the kboard has
20727 been deleted. Remove unused variable. Help debugging by not
20728 changing current_kboard unnecessarily. Set current_kboard to the
20729 kboard of the selected frame when the stored kboard object has
20730 been deleted before pop_kboard.
20731 (temporarily_switch_to_single_kboard): Change first parameter to a
20732 frame pointer. Throw an error when caller wants to change kboards
20733 while in single_kboard mode. Don't push_kboard if we weren't in
20734 single kboard state. Don't pop_kboard if we popped into any
20735 kboard state.
20736 (restore_kboard_configuration): Abort if pop_kboard changed the
20737 kboard in single_kboard mode. Call pop_kboard only after setting
20738 up single_kboard mode.
20739 (Frecursive_edit): Switch to single_kboard mode only in nested
20740 command loops.
20741 (cmd_error, command_loop, command_loop_1, timer_check):
20742 Comment out unnecessary call to `any_kboard_state' and
20743 `record_single_kboard_state'.
20744 (delete_kboard): Exit single_kboard mode if we have just deleted
20745 that kboard. Use FRAME_KBOARD.
20746 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20747 `fatal_error_signal'.
20748 (record_single_kboard_state): Don't push_kboard if we weren't in
20749 single kboard state. Don't pop_kboard if we popped into any
20750 kboard state.
20751 (push_frame_kboard): Rename to push_kboard.
20752 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20753 (read_avail_input): Read input from all terminals.
20754 (mark_kboards): Also mark Vkeyboard_translate_table.
20755 (kbd_buffer_store_event_hold): Simplify condition.
20756 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20757 (Vkeyboard_translate_table): Move to struct kboard.
20758 (init_kboard): Initialize Vkeyboard_translate_table.
20759 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20760 Vkeyboard_translate_table. Update doc strings. Update docs of
20761 local-function-key-map and function-key-map.
20762
20763 * terminal.c: New file.
20764
20765 * term.c: Include errno.h.
20766 (Vring_bell_function, device_list, initial_device)
20767 (next_device_id, ring_bell, update_begin, update_end)
20768 (set_terminal_window, cursor_to, raw_cursor_to)
20769 (clear_to_end, clear_frame, clear_end_of_line)
20770 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20771 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20772 (syms_of_term): Move their initialization to terminal.c.
20773 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20774 (Ftty_display_color_cells)
20775 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20776 (clear_tty_hooks, set_tty_hooks)
20777 (init_tty, maybe_fatal): New functions.
20778 (Ftty_type): Return nil if terminal is not on a tty instead of
20779 throwing an error. Doc update.
20780 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20781 Doc update. Initialize new subrs and variables.
20782 (delete_tty): Use terminal->deleted.
20783 (tty_set_terminal_modes): Rename from set_terminal_modes.
20784 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20785 (set_scroll_region): Rename to `tty_set_scroll_region'.
20786 (turn_on_insert): Rename to `tty_turn_on_insert'.
20787 (turn_off_insert): Rename to `tty_turn_off_insert'.
20788 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20789 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20790 (toggle_highligh): Rename to `tty_toggle_highlight'.
20791 (background_highlight): Rename to `tty_background_highlight'.
20792 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20793 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20794 (tty_set_scroll_region, tty_background_highlight)
20795 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20796 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20797 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20798 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20799 Add static modifier.
20800 (tty_reset_terminal_modes, tty_set_terminal_window)
20801 (tty_set_scroll_region, tty_background_highlight)
20802 (tty_highlight_if_desired, tty_cursor_to)
20803 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20804 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20805 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20806 renames.
20807
208082007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20809
20810 * keyboard.c: Qrtl is new.
20811 (parse_tool_bar_item): Handle :rtl keyword.
20812 (syms_of_keyboard): Intern :rtl keyword.
20813
20814 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20815
20816 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20817 so no Lisp code is executed.
20818 (file_for_image, find_rtl_image): New functions.
20819 (xg_get_image_for_pixmap): Use file_for_image.
20820 (update_frame_tool_bar): If direction is RTL, use RTL image if
20821 defined. Use Gtk stock images if defined.
20822
208232007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20824
20825 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20826 for nonexistent or zero-width glyph in composition glyph.
20827
208282007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20829
20830 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20831
20832 * xdisp.c (Finvisible_p): New function.
20833 (syms_of_xdisp): defsubr it.
20834
208352007-08-24 Juanma Barranquero <lekktu@gmail.com>
20836
20837 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20838 Doc fixes.
20839
208402007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20841
20842 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20843
208442007-08-24 Martin Rudalics <rudalics@gmx.at>
20845
20846 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20847 whether decoding has modified buffer contents.
20848
208492007-08-24 Jason Rumney <jasonr@gnu.org>
20850
20851 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20852 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20853 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20854 (init_svg_functions) [HAVE_NTGUI]: New function.
20855 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20856 (svg_load_image): Use them.
20857 (svg_load_image) [HAVE_NTGUI]: Implement background.
20858
208592007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20860
20861 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20862 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20863 (LIBX): Remove @RSVG_LIBS@.
20864 (LIBES): Add $(RSVG_LIBS).
20865
20866 * image.c (svg_load_image): Blend with specified background if exists.
20867 Use IMAGE_BACKGROUND. Add Mac OS Support.
20868
20869 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20870 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20871 Remove macros.
20872 [MAC_OSX] (socket_callback): Do nothing.
20873 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20874 ReceiveNextEvent.
20875 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20876 socket_callback.
20877 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20878
208792007-08-22 Glenn Morris <rgm@gnu.org>
20880
20881 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20882
208832007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20884
20885 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20886
20887 * image.c: Add support for SVG images. Some additional comments
20888 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20889 (svg_image_p): New function to test for SVG image.
20890 (svg_load): New function to load SVG image.
20891 (svg_load_image): New function, helper for svg_load.
20892 (Qsvg): New Lisp_object.
20893 (svg_keyword_index): New enum.
20894 (svg_format): New static `image_keyword' struct.
20895 (svg_type): New static `image_type' struct.
20896 (librsvg/rsvg.h): Include it.
20897
208982007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20899
20900 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20901
209022007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20903
20904 * lread.c (Qold_style_backquotes): New var.
20905 (syms_of_lread): Init and staticpro it.
20906 (load_warn_old_style_backquotes): New fun.
20907 (Fload): Use them to warn about old style backquotes.
20908 (end_of_file_error, Fload): Remove unused vars.
20909
20910 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20911
20912 * lread.c (Vold_style_backquotes): New var.
20913 (syms_of_lread): Init and export it to Elisp.
20914 (read1): Set it when we find an old-style (back)quote.
20915
209162007-08-22 Jason Rumney <jasonr@gnu.org>
20917
20918 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20919
209202007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20921
20922 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20923
209242007-08-19 Richard Stallman <rms@gnu.org>
20925
20926 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20927
209282007-08-19 Andreas Schwab <schwab@suse.de>
20929
20930 * alloc.c (pure): Round PURESIZE up.
20931
209322007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20933
20934 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20935 active frame.
20936
209372007-08-16 Richard Stallman <rms@gnu.org>
20938
20939 * eval.c (Fcommandp): Add parens to clarify.
20940
20941 * minibuf.c (Fall_completions): Use enum for type of table.
20942
20943 * emacs.c (USAGE2): Improve text.
20944
209452007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20946
20947 * term.c (tty_default_color_capabilities): Declare static
20948 variables in file scope, to avoid HPUX compiler problem.
20949
209502007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20951
20952 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20953 to gtk_toolbar_insert.
20954
209552007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20956
20957 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20958
20959 * insdel.c (reset_var_on_error): New fun.
20960 (signal_before_change, signal_after_change):
20961 Use it to reset (after|before)-change-functions to nil in case of error.
20962 Bind inhibit-modification-hooks to t.
20963 Don't bind (after|before)-change-functions to nil while they run.
20964
209652007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20966
20967 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20968 filling pixmap with stippled background.
20969
209702007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20971
20972 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20973 Don't use invisible frame as parent window for repositioning.
20974
209752007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20976
20977 * print.c (new_backquote_output): Rename from old_backquote_output.
20978 (print): Inverse its logic (according to its name) so as to match the
20979 behavior of new_backquote_flag in lread.c.
20980
209812007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20982
20983 * gmalloc.c (posix_memalign): New function.
20984
20985 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20986 ActivateControl/DeactivateControl here.
20987 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20988 frame-notice-user-settings is non-nil.
20989 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20990 for kEventParamFMFontStyle.
20991 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20992 mac_pass_command_to_system and mac_pass_control_to_system here.
20993 (XTread_socket): Call ActivateControl/DeactivateControl here.
20994 (XTread_socket) [TARGET_API_MAC_CARBON]:
20995 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20996 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20997 for window repositioning.
20998
209992007-08-08 Glenn Morris <rgm@gnu.org>
21000
21001 * Replace `iff' in doc-strings and comments.
21002
210032007-08-07 Chong Yidong <cyd@stupidchicken.com>
21004
21005 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21006
210072007-08-07 Martin Rudalics <rudalics@gmx.at>
21008
21009 * fileio.c (Finsert_file_contents): Run format-decode and
21010 after_insert_file_functions on entire buffer when REPLACE is
21011 non-nil and inhibit modification_hooks and point_motion_hooks.
21012 For consistency, run after_insert_file_functions iff something
21013 got inserted. Move signal_after_change and update_compositions
21014 after code running after_insert_file_functions. Make sure that
21015 undo_list doesn't record intermediate steps of the decoding process.
21016
210172007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21018
21019 * emacs.c (main)
21020 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21021 Call malloc_enable_thread on interactive startup.
21022
21023 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21024 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21025 [USE_PTHREAD]: Conditionalize with it.
21026 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21027 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21028 New functions.
21029
210302007-08-06 Chong Yidong <cyd@stupidchicken.com>
21031
21032 * xdisp.c (redisplay_window): When restoring original buffer
21033 position, make sure it is still valid.
21034
21035 * image.c (png_load): Ignore png-supplied background color.
21036
210372007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21038
21039 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21040 Use kCFAbsoluteTimeIntervalSince1970.
21041
21042 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21043 New variable.
21044 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21045 event loop should be quit.
21046 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21047 Quit dialog event loop if quit_dialog_event_loop is set.
21048
21049 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21050 (Selection): New typedef. Use instead of ScrapRef.
21051 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21052 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21053 (mac_clear_selection): Rename from clear_scrap.
21054 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21055 scrap_has_target_type. All uses changed.
21056 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21057 (mac_selection_has_target_p): New functions.
21058 (mac_put_selection_value): Rename from put_scrap_string.
21059 (mac_get_selection_value): Rename from get_scrap_string.
21060 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21061 (put_scrap_private_timestamp, scrap_has_target_type)
21062 (get_scrap_private_timestamp): Remove functions.
21063 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21064 (x_own_selection, x_get_local_selection):
21065 Use mac_valid_selection_value_p.
21066 (x_own_selection): Don't use put_scrap_private_timestamp.
21067 Record OWNERSHIP-INFO into Vselection_alist instead.
21068 (x_get_local_selection): Don't check type if request is local.
21069 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21070 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21071
210722007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21073
21074 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21075 add comment explaining why.
21076
210772007-08-03 Richard Stallman <rms@gnu.org>
21078
21079 * fileio.c (Fvisited_file_modtime): Use make_time.
21080
210812007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21082
21083 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21084 build.
21085
210862007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21087
21088 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21089
210902007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21091
21092 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21093
210942007-07-30 Richard Stallman <rms@gnu.org>
21095
21096 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21097
210982007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21099
21100 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21101
211022007-07-28 Nick Roberts <nickrob@snap.net.nz>
21103
21104 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21105 remote default-directory.
21106
21107 * buffer.c (mode-line-format): Update doc string.
21108
211092007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21110
21111 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21112 scroll bar gap.
21113 (x_scroll_bar_create): Set bar->fringe_extended_p.
21114 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21115 on frame edge. Check fringe background extension. Don't clear
21116 extended fringe background area.
21117
21118 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21119 (w32_fill_area): Enclose multiple statements with do ... while (0).
21120
21121 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21122 Extend fringe background to scroll bar gap.
21123 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21124 Set bar->fringe_extended_p.
21125 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21126 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21127 background extension. Don't clear extended fringe background area.
21128
21129 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21130 New member fringe_extended_p.
21131
211322007-07-25 Glenn Morris <rgm@gnu.org>
21133
21134 * Relicense all FSF files to GPLv3 or later.
21135
21136 * COPYING: Switch to GPLv3.
21137
211382007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21139
21140 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21141
21142 * data.c (Finteractive_form): Check for the presence of an
21143 `interactive-form' symbol property more thoroughly.
21144
21145 * data.c (Finteractive_form): Use an `interactive-form' property if
21146 present, analogous to the function-documentation property.
21147
211482007-07-24 Jason Rumney <jasonr@gnu.org>
21149
21150 * w32fns.c (x_real_positions): Get real position from OS instead of
21151 calculating it.
21152
211532007-07-23 Jason Rumney <jasonr@gnu.org>
21154
21155 * filelock.c (current_lock_owner): Allow for @ sign in username.
21156
211572007-07-22 Nick Roberts <nickrob@snap.net.nz>
21158
21159 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21160 remote default-directory.
21161
21162 * buffer.c (mode-line-format): Describe above case in doc string.
21163
211642007-07-20 Eli Zaretskii <eliz@gnu.org>
21165
21166 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21167 Define if not defined.
21168
211692007-07-18 Jason Rumney <jasonr@gnu.org>
21170
21171 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21172
211732007-07-18 Richard Stallman <rms@gnu.org>
21174
21175 * data.c (Fsetq_default): Doc fix.
21176
21177 * eval.c (Fsetq): Doc fix.
21178
211792007-07-18 Juanma Barranquero <lekktu@gmail.com>
21180
21181 * coding.c (Ffind_operation_coding_system):
21182 * eval.c (For, Fand): Doc fixes.
21183 Reported by Johan Bockgård.
21184
211852007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21186
21187 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21188
21189 * xterm.h: Declare x_ewmh_activate_frame.
21190
21191 * xterm.c (x_ewmh_activate_frame): New function.
21192 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21193
211942007-07-17 Martin Rudalics <rudalics@gmx.at>
21195
21196 * window.c (Fdisplay_buffer): If largest or LRU window is the
21197 only window, split it even if it is not eligible for splitting.
21198 This restores the original behavior broken by the 2007-07-15
21199 change.
21200
212012007-07-17 Glenn Morris <rgm@gnu.org>
21202
21203 * abbrev.c (abbrev_check_chars): New function.
21204 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21205 Call abbrev_check_chars to check abbrev characters are word
21206 constituents. Doc fix.
21207
212082007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21209
21210 * process.c (Fstart_process, Fmake_network_process)
21211 (read_process_output): Fix up last changes.
21212
212132007-07-16 Eli Zaretskii <eliz@gnu.org>
21214
21215 * makefile.w32-in (clean): Don't delete *~.
21216
212172007-07-16 Andreas Schwab <schwab@suse.de>
21218
21219 * window.c (Fdisplay_buffer): Use NILP.
21220 (Fset_window_scroll_bars): Likewise.
21221
212222007-07-15 Martin Rudalics <rudalics@gmx.at>
21223
21224 * window.c (window_min_size_2): New function.
21225 (window_min_size_1, size_window, Fdisplay_buffer)
21226 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21227 windows without mode- or header-lines when window-min-height is
21228 too small.
21229 (size_window): Reset nodelete_p after testing it, following an
21230 earlier note by Kim F. Storm.
21231 (display_buffer): Do not set split_height_threshold to twice the
21232 value of window_min_height to avoid changing the value of a
21233 customizable variable. Rather explicitly check whether the
21234 height of the window that shall be splitted is at least as large
21235 as split_height_threshold.
21236 (Fwindow_full_width_p): New defun.
21237 (syms_of_window): Defsubr it.
21238
21239 * window.h: Add EXFUN for Fwindow_full_width_p.
21240
212412007-07-14 Jason Rumney <jasonr@gnu.org>
21242
21243 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21244
212452007-07-14 Richard Stallman <rms@gnu.org>
21246
21247 * eval.c (maybe_call_debugger): New function.
21248 (find_handler_clause): Use maybe_call_debugger.
21249 Call it when the handler says `debug'.
21250 Eliminate DEBUGGER_VALUE_PTR.
21251 (Fsignal): Eliminate debugger_value.
21252 (Qdebug): New variable.
21253 (syms_of_eval): Initialize it.
21254
212552007-07-14 Juanma Barranquero <lekktu@gmail.com>
21256
21257 * eval.c (Fprogn):
21258 * keyboard.c (Ftrack_mouse):
21259 * print.c (Fwith_output_to_temp_buffer):
21260 * window.c (Fsave_window_excursion): Doc fix.
21261
212622007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21263
21264 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21265
212662007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21267
21268 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21269 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21270 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21271 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21272 Remove unused encoding_carryover.
21273 * process.c: Adjust all functions accordingly.
21274
212752007-07-12 Richard Stallman <rms@gnu.org>
21276
21277 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21278
212792007-07-11 Jason Rumney <jasonr@gnu.org>
21280
21281 * makefile.w32-in (LIBS): Include OLE32.
21282
21283 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21284 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21285
212862007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21287
21288 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21289 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21290 from a Lisp_Object into a bare pointer.
21291 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21292 Adjust the code correspondingly.
21293
21294 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21295
21296 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21297 (term_show_mouse_face): Remove unused var `j'.
21298 (handle_one_term_event): Remove unused vars `i' and `j'.
21299 Don't cast return value of ttyname since it's not necessary.
21300
213012007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21302
21303 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21304 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21305
21306 * fns.c (map_char_table): Use an array of int for `indices' rather than
21307 an array of Lisp_Objects (which are only ever integers anyway).
21308 (Fmap_char_table): Update caller.
21309 * lisp.h: Update prototype.
21310 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21311 * fontset.c (Ffontset_info):
21312 * casetab.c (set_case_table): Update callers.
21313
21314 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21315
21316 * keymap.c (struct accessible_keymaps_data)
21317 (struct where_is_internal_data): New structures.
21318 (accessible_keymaps_1, where_is_internal_1): Use them to change
21319 interface to adhere to the one used by map_keymap.
21320 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21321 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21322
21323 * keymap.h (map_keymap_function_t): More informative prototype.
21324
213252007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21326
21327 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21328 (looking_at_1): Don't change search_regs and last_thing_searched
21329 if `inhibit-changing-match-data' is non-nil.
21330 (string_match_1, search_buffer, set_search_regs): Likewise.
21331 (syms_of_search): Add Lisp level definition for
21332 `inhibit-changing-match-data' and set it to nil.
21333 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21334 start and end of the match, instead of using values in search_regs.
21335
213362007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21337
21338 * minibuf.c (Fcompleting_read): New value `confirm-only'
21339 for `require-match'.
21340
213412007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21342
21343 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21344 part of the 2007-06-27 change to syms_of_fileio.
21345
213462007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21347
21348 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21349 Check WINDOWP before using XWINDOW. Consolidate return statements.
21350
213512007-06-27 Richard Stallman <rms@gnu.org>
21352
21353 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21354
213552007-06-27 Juanma Barranquero <lekktu@gmail.com>
21356
21357 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21358
213592007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21360
21361 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21362 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21363 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21364 (_free_internal, memalign): Use them.
21365 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21366 Initialize to PTHREAD_MUTEX_INITIALIZER.
21367 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21368 (morecore_nolock): Rename from morecore. All uses changed.
21369 Use only nolock versions of internal allocation functions.
21370 (_malloc_internal_nolock, _realloc_internal_nolock)
21371 (_free_internal_nolock): New functions created from
21372 _malloc_internal, _realloc_internal, and _free_internal.
21373 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21374 Copy hook value to automatic variable before its use.
21375 (memalign): Copy hook value to automatic variable before its use.
21376
213772007-06-26 Kenichi Handa <handa@m17n.org>
21378
21379 * coding.c (Ffind_operation_coding_system): Docstring improved.
21380 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21381
213822007-06-25 David Kastrup <dak@gnu.org>
21383
21384 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21385 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21386 cater for additional parameter.
21387
21388 * keymap.h: Adjust number of parameters to `current-active-maps'.
21389
21390 * doc.c (Fsubstitute_command_keys): Adjust call of
21391 `current-active-maps'.
21392
213932007-06-25 David Kastrup <dak@gnu.org>
21394
21395 * callint.c (Fcall_interactively): Make the parsing of interactive
21396 specs somewhat more readable.
21397
213982007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21399
21400 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21401 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21402 if extended background has already been filled.
21403
214042007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21405
21406 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21407 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21408
21409 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21410 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21411 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21412 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21413 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21414 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21415 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21416 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21417 Run timers during dialog popup.
21418 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21419
214202007-06-21 Jason Rumney <jasonr@gnu.org>
21421
21422 * image.c (convert_mono_to_color_image): Swap fore and background.
21423
214242007-06-20 Jason Rumney <jasonr@gnu.org>
21425
21426 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21427 (w32_free_bdf_font): Unmap memory not handle.
21428
214292007-06-20 Sam Steingold <sds@gnu.org>
21430
21431 * gmalloc.c (__morecore): Fix the declaration to comply with the
21432 definition.
21433
214342007-06-20 Juanma Barranquero <lekktu@gmail.com>
21435
21436 * w32term.c (w32_delete_display): Remove leftover declaration.
21437 (w32_define_cursor, w32_initialize): Make static.
21438
21439 * w32.c (_wsa_errlist): Fix typo in error message.
21440 (init_environment): Ignore any environment variable from the
21441 registry having a null value.
21442
214432007-06-20 Glenn Morris <rgm@gnu.org>
21444
21445 * Makefile.in (LIBGIF): Default to -lgif.
21446
214472007-06-17 Jason Rumney <jasonr@gnu.org>
21448
21449 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21450 unicode strings.
21451
214522007-06-16 Juanma Barranquero <lekktu@gmail.com>
21453
21454 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21455 Fix typo in docstring.
21456
214572007-06-16 Eli Zaretskii <eliz@gnu.org>
21458
21459 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21460 and their keybindings.
21461
214622007-06-15 Chong Yidong <cyd@stupidchicken.com>
21463
21464 * composite.c (update_compositions): Fix last fix.
21465
214662007-06-14 Jason Rumney <jasonr@gnu.org>
21467
21468 * w32.c (get_process_times_fn): New function pointer.
21469 (globals_of_w32): Intialize it if present in kernel32.dll.
21470 (w32_get_internal_run_time): New function.
21471
21472 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21473
214742007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21475
21476 * composite.c (update_compositions): Check the validness of
21477 compositions.
21478
214792007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21480
21481 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21482 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21483
21484 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21485 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21486
21487 * macgui.h (USE_MAC_TOOLBAR): New define.
21488
21489 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21490 Return immediately unless popup is activated.
21491
21492 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21493 background to scroll bar gap.
21494 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21495 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21496 scroll bars on frame edge. Check fringe background extension.
21497 Don't clear extended fringe background area.
21498 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21499 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21500 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21501 [USE_MAC_TOOLBAR]: New macros.
21502 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21503 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21504 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21505 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21506 [USE_MAC_TOOLBAR]: New functions.
21507 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21508 manually if previous repositioning has failed.
21509 (mac_handle_keyboard_event): Use precomputed event kind.
21510 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21511 as tool bar item click. Handle mouse movement over tool bar items.
21512
21513 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21514 toolbar_win_gravity.
21515 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21516 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21517 Add externs.
21518
21519 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21520 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21521
215222007-06-14 Chong Yidong <cyd@stupidchicken.com>
21523
21524 * image.c (search_image_cache): Remove unused variable.
21525
215262007-06-13 Chong Yidong <cyd@stupidchicken.com>
21527
21528 * xfns.c, xmenu.c: Link to xaw3d if available.
21529
215302007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21531
21532 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21533 frame_foreground and frame_background.
21534
21535 * image.c (lookup_image): Save frame foreground and background colors.
21536 (search_image_cache): Check if saved and current frame colors match.
21537
215382007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21539
21540 * regex.c (regex_compile): Remove the `regnum' counter.
21541 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21542
215432007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21544
21545 * term.c: Include intervals.h to declare Fget_text_property.
21546
215472007-06-10 Jason Rumney <jasonr@gnu.org>
21548
21549 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21550
215512007-06-08 Juanma Barranquero <lekktu@gmail.com>
21552
21553 * callint.c (Fcall_interactively):
21554 * editfns.c (Fdelete_and_extract_region):
21555 * fileio.c (Fread_file_name):
21556 * fns.c (Fmapconcat):
21557 * keyboard.c (cmd_error_internal):
21558 * keymap.c (Fkey_description):
21559 * lread.c (openp):
21560 * minibuf.c (read_minibuf):
21561 * search.c (wordify):
21562 * sunfns.c (sel_read):
21563 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21564 * xfns.c (x_default_scroll_bar_color_parameter):
21565 * xmenu.c (menu_help_callback):
21566 * xselect.c (Fx_get_atom_name):
21567 * xterm.c (x_term_init): Use empty_unibyte_string.
21568
215692007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21570
21571 * alloc.c (init_strings): Initialize canonical empty strings.
21572 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21573 canonical empty string when the requested size is 0.
21574
21575 * emacs.c (empty_unibyte_string): Rename from empty_string.
21576 (empty_multibyte_string): New canonical empty string.
21577 (syms_of_emacs): Don't initialize empty_string.
21578
21579 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21580 string, if appropriate.
21581 (empty_unibyte_string, empty_multibyte_string): New externs.
21582 (empty_string): Remove extern.
21583
21584 * lread.c (syms_of_lread): Use empty_unibyte_string.
21585
215862007-06-07 Jason Rumney <jasonr@gnu.org>
21587
21588 * s/ms-w32.h: Don't define HAVE_TZNAME.
21589
21590 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21591
215922007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21593
21594 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21595
21596 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21597 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21598
21599 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21600 Don't call next handler.
21601 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21602 Remove argument. Install handler to application.
21603 (set_frame_menubar): Don't change deep_p.
21604 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21605 FRAME_OUTER_TO_INNER_DIFF_Y.
21606 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21607 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21608 [HAVE_DIALOGS]: New macros.
21609 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21610 Use them.
21611 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21612
21613 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21614 init_service_handler. All callers changed. Return OSStatus value.
21615
21616 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21617 All callers changed so as not to call SetPortWindowPort.
21618 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21619 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21620 mac_draw_string_common.
21621 (mac_draw_image_string_qd): Likewise.
21622 (mac_draw_string_common): Use them. Add INLINE.
21623 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21624 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21625 GetGlobalMouse.
21626 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21627 and FRAME_OUTER_TO_INNER_DIFF_Y.
21628 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21629 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21630 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21631 repositioning window to mac_handle_window_event.
21632 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21633 saving window location to mac_handle_window_event
21634 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21635 (install_menu_target_item_handler): Remove argument in extern.
21636 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21637 Also accept command events.
21638 (do_keystroke): New function created from XTread_socket.
21639 (init_command_handler): Remove functions.
21640 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21641 and save window location by kEventWindowShowing and kEventWindowHiding
21642 handlers here. Don't call next handler for window state change and
21643 focus events.
21644 (mac_handle_application_event, mac_handle_keyboard_event)
21645 [TARGET_API_MAC_CARBON]: New functions.
21646 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21647 kEventWindowShowing and kEventWindowHiding events. Move installation
21648 of mouse, font, text input and menu target item handlers to
21649 install_application_handler.
21650 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21651 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21652 New function.
21653 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21654 Register it.
21655 (XTread_socket) [TARGET_API_MAC_CARBON]:
21656 Consolidate SendEventToEventTarget calls.
21657 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21658 Move application activation handler to mac_handle_application_event.
21659 Move keyboard handler to mac_handle_keyboard_event.
21660 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21661 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21662 init_command_handler. Call install_application_handler.
21663
21664 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21665 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21666
216672007-06-07 Glenn Morris <rgm@gnu.org>
21668
21669 * emacs.c (main): Use `emacs-copyright' in --version output.
21670
216712007-06-06 Chong Yidong <cyd@stupidchicken.com>
21672
21673 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21674
216752007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21676
21677 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21678
21679 * macgui.h: Replace WindowPtr with WindowRef.
21680
21681 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21682 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21683 Replace ControlHandle with ControlRef.
21684 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21685
21686 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21687 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21688 Replace ControlHandle with ControlRef.
21689 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21690 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21691
21692 * macterm.h (struct scroll_bar): Rename member control_handle_low
21693 and control_handle_high to control_ref_low and control_ref_high.
21694 All uses changed.
21695 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21696 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21697 respectively. All uses changed.
21698 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21699 (install_window_handler, remove_window_handler): Replace WindowPtr
21700 with WindowRef in externs.
21701
217022007-06-05 Juanma Barranquero <lekktu@gmail.com>
21703
21704 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21705
217062007-06-03 Nick Roberts <nickrob@snap.net.nz>
21707
21708 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21709
21710 * frame.c (Fmouse_position, Fmouse_pixel_position):
21711 Condition on HAVE_GPM too.
21712
21713 * term.c (term_mouse_highlight): Remove unused variables.
21714 (Fterm_open_connection): Set gpm_zerobased to 1.
21715 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21716 Use zero based co-ordinates.
21717 (handle_one_term_event): Report a drag as mouse movement too.
21718
21719 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21720
217212007-06-03 Chong Yidong <cyd@stupidchicken.com>
21722
21723 * image.c (search_image_cache): New function. Require background
21724 color match if background color is unspecified in the image spec.
21725 (uncache_image, lookup_image): Use it.
21726
217272007-06-01 Juanma Barranquero <lekktu@gmail.com>
21728
21729 * window.c (Fshrink_window): Reflow docstring.
21730
217312007-06-02 Chong Yidong <cyd@stupidchicken.com>
21732
21733 * Version 22.1 released.
21734
217352007-06-01 Richard Stallman <rms@gnu.org>
21736
21737 * xfns.c (x_encode_text): Add GCPRO.
21738
217392007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21740
21741 * xfns.c (x_set_name_internal): Save encoded name before
21742 x_encode_text in case string data is relocated.
21743
217442007-05-31 Richard Stallman <rms@gnu.org>
21745
21746 * buffer.c (syms_of_buffer): Doc fix.
21747
217482007-05-30 Nick Roberts <nickrob@snap.net.nz>
21749
21750 * sysdep.c (init_sys_modes): Add rather than replace with
21751 O_NONBLOCK.
21752
21753 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21754 term_mouse_moveto.
21755
21756 * termhooks.h (term_mouse_moveto): New extern.
21757
21758 * term.c (mouse_face_window): Rename...
21759 (Qmouse_face_window): ...to this.
21760 (term_show_mouse_face, term_clear_mouse_face)
21761 (term_mouse_highlight): Use Qmouse_face_window.
21762 (term_mouse_moveto): New function.
21763 (term_mouse_position): Make it work.
21764 (syms_of_term): Uncomment assignment to mouse_position_hook.
21765 Staticpro Qmouse_face_window.
21766
217672007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21768
21769 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21770 around current_column call.
21771
217722007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21773
21774 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21775 * xdisp.c (next_element_from_buffer):
21776 * window.c (delete_window):
21777 * term.c (term_mouse_highlight):
21778 * msdos.c (getdefdir):
21779 * macterm.c (mac_create_bitmap_from_bitmap_data)
21780 (init_font_name_table):
21781 * fns.c (Fsxhash):
21782 * data.c (Fmake_local_variable):
21783 * ccl.c (ccl_driver): Likewise.
21784
217852007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21786
21787 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21788 Call mac_wakeup_from_rne on window size change.
21789
217902007-05-25 Chong Yidong <cyd@stupidchicken.com>
21791
21792 * image.c (uncache_image): Fix typo.
21793
217942007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21795
21796 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21797
217982007-05-22 Richard Stallman <rms@gnu.org>
21799
21800 * xterm.c (x_connection_closed): Remove NO_RETURN.
21801
218022007-05-22 Martin Rudalics <rudalics@gmx.at>
21803
21804 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21805
218062007-05-21 Chong Yidong <cyd@stupidchicken.com>
21807
21808 * image.c (uncache_image): New function.
21809 (Fimage_refresh): New function.
21810
218112007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21812
21813 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21814
218152007-05-20 Nick Roberts <nickrob@snap.net.nz>
21816
21817 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21818 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21819
218202007-05-20 Nick Roberts <nickrob@snap.net.nz>
21821
21822 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21823 conditional on [HAVE_GPM_H].
21824
218252007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21826
21827 * syntax.c (skip_chars): Update syntax-table only after we checked that
21828 the new location is valid.
21829
218302007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21831
21832 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21833 mac_get_window_bounds.
21834
218352007-05-20 Nick Roberts <nickrob@snap.net.nz>
21836
21837 * Makefile.in (LIBGPM): Allow it to be set from configure.
21838 If set then link Emacs with it.
21839
21840 * config.in: Regenerate.
21841
21842 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21843 New externs.
21844
21845 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21846 Include gpm.h.
21847 (handle_one_term_event, term_gpm): New externs.
21848
21849 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21850 and allow it to be interrupted by SIGIO.
21851
21852 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21853 (wait_reading_process_output): Wait on gpm_fd too.
21854 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21855 (add_gpm_wait_descriptor_called_flag): New variable.
21856 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21857
21858 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21859 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21860 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21861 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21862 (make_lispy_event): Add case GPM_CLICK_EVENT.
21863 (read_avail_input): Handle mouse input.
21864
21865 * term.c (write_glyphs_with_face): New function.
21866 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21867 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21868 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21869 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21870 (last_mouse_x, last_mouse_y): New variables.
21871 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21872 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21873 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21874 (Fterm_close_connection): New functions.
21875 (term_init): Initialise mouse_face_window.
21876
218772007-05-19 Chong Yidong <cyd@stupidchicken.com>
21878
21879 * xdisp.c (redisplay_window): If first window line is a
21880 continuation line, recompute the new window start instead of
21881 recentering.
21882
218832007-05-18 Glenn Morris <rgm@gnu.org>
21884
21885 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21886 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21887
218882007-05-17 Glenn Morris <rgm@gnu.org>
21889
21890 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21891
218922007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21893
21894 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21895 dead key repeat and up events.
21896
218972007-05-14 Chong Yidong <cyd@stupidchicken.com>
21898
21899 * image.c (pbm_load): Check image size for monochrome pbm.
21900
219012007-05-13 Chong Yidong <cyd@stupidchicken.com>
21902
21903 * xterm.c (XTread_socket): Revert last change.
21904
219052007-05-12 Chong Yidong <cyd@stupidchicken.com>
21906
21907 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21908
21909 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21910
219112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21912
21913 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21914 mixup (YAILOM).
21915
219162007-05-07 Andreas Schwab <schwab@suse.de>
21917
21918 * keymap.c (Flookup_key): Fix typo in last change.
21919
219202007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21921
21922 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21923 mapping for unibyte strings.
21924
219252007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21926
21927 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21928 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21929
219302007-04-29 Richard Stallman <rms@gnu.org>
21931
21932 * insdel.c (replace_range): For undo, record insertion first.
21933
219342007-04-29 Andreas Schwab <schwab@suse.de>
21935
21936 * lisp.h (VECSIZE): Use OFFSETOF.
21937
219382007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21939
21940 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21941 disabled lines.
21942
219432007-04-28 Richard Stallman <rms@gnu.org>
21944
21945 * lread.c (read_escape): In a string, \s is always space.
21946
219472007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21948
21949 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21950
21951 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21952 submenu for menu bar items.
21953
21954See ChangeLog.10 for earlier changes.
21955
21956;; Local Variables:
21957;; coding: utf-8
21958;; add-log-time-zone-rule: t
aac0c6e3
MR
21959;; End:
21960
e3eb1dae 21961 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21962
21963 This file is part of GNU Emacs.
21964
21965 GNU Emacs is free software: you can redistribute it and/or modify
21966 it under the terms of the GNU General Public License as published by
21967 the Free Software Foundation, either version 3 of the License, or
21968 (at your option) any later version.
21969
21970 GNU Emacs is distributed in the hope that it will be useful,
21971 but WITHOUT ANY WARRANTY; without even the implied warranty of
21972 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21973 GNU General Public License for more details.
21974
21975 You should have received a copy of the GNU General Public License
21976 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21977
21978;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40