* lisp/calendar/diary-lib.el: Bump custom :version for previous change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7d1b9df3
J
12010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2
3 * doc.c (Fsnarf_documentation): Initialize skip_file before
4 build-files test.
5
2294b255
PG
62010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
7
8 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK): New
9 definitions.
10 (HAVE_TERMIO): Remove.
11
7a84eee5
KH
122010-08-06 Kenichi Handa <handa@m17n.org>
13
14 * charset.c: Include <stdlib.h>
15 (struct charset_sort_data): New struct.
16 (charset_compare): New function.
17 (Fsort_charsets): New funciton.
18 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
19
20 * coding.c (decode_coding_iso_2022): Fix checking of dimension
21 number in CTEXT extended segment.
22
f5f6c0e0
JB
232010-08-01 Juanma Barranquero <lekktu@gmail.com>
24
25 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
26 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
27
b756c005
JB
282010-07-30 Juanma Barranquero <lekktu@gmail.com>
29
30 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
31 (Fhash_table_size): Fix typos in docstrings.
32 (Fmake_hash_table): Doc fix.
33
b4f588fa
JB
342010-07-28 Juanma Barranquero <lekktu@gmail.com>
35
36 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
37 Doc fix (bug#5625).
38
9f8c08a7
KB
392010-07-27 Ken Brown <kbrown@cornell.edu>
40
41 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
42 the MSDOS definition.
43
a2a0d36b
CS
442010-07-25 Christoph Scholtes <cschol2112@gmail.com>
45
46 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
47
a77cfeaf
CS
482010-07-22 Christoph Scholtes <cschol2112@gmail.com>
49
50 * window.c (Fwindow_height): Doc fix (bug#6518).
51
14fb5704
JB
522010-07-21 Juanma Barranquero <lekktu@gmail.com>
53
54 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
55
499322ce
J
562010-07-17 Jan Djärv <jan.h.d@swipnet.se>
57
58 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
59 is related to the menu bar (Bug#6499).
60
b78f9767
J
612010-07-14 Jan Djärv <jan.h.d@swipnet.se>
62
63 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
64
65 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
66
67 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
68 i.e. don't put back ButtonRelease (Bug#6608).
69
70 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
71 instead of Window. Call xg_event_is_for_menubar when
72 USE_GTK (Bug#6499).
73
74 * gtkutil.h (xg_event_is_for_menubar): Declare.
75
76 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
77
1f60c16a
EZ
782010-07-14 Eli Zaretskii <eliz@gnu.org>
79
80 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
81 when it's the same as the old foreground. (Bug#6609)
82
7c33a057
CY
832010-07-10 Chong Yidong <cyd@stupidchicken.com>
84
85 * xfaces.c (realize_face): Garbage the frame if a face is removed
86 (Bug#6593).
87
9d70a3fc
AS
882010-07-05 Andreas Schwab <schwab@linux-m68k.org>
89
90 * keyboard.c: Remove duplicate <setjmp.h>.
91 (read_key_sequence): Remove volatile qualifiers.
92
5a874e95
YM
932010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
94
95 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
96 (struct glyph_row): New members left_fringe_offset and
97 right_fringe_offset.
98
99 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
100 specially.
101 * w32term.c (w32_draw_fringe_bitmap): Likewise.
102 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
103
104 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
105 Take account of bitmap offset.
106 (draw_window_fringes): Take account of window vscroll.
107 (update_window_fringes): Likewise. Extend top-aligned top indicator
108 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
109 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
110 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
111
0682186e
JB
1122010-07-04 Juanma Barranquero <lekktu@gmail.com>
113
114 * w32fns.c (Qtooltip): Declare.
115 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
116
ad3e6f44
J
1172010-07-03 Jan Djärv <jan.h.d@swipnet.se>
118
119 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
120 grab on just Press (Bug#6499).
121
54ee7410
CY
1222010-07-02 Chong Yidong <cyd@stupidchicken.com>
123
124 * frame.c (Qtooltip): New var.
125 (delete_frame): Use it. Fix faulty if statement. Don't update
126 mode line for tooltip frames. Suggested by Martin Rudalics.
127
128 * xfns.c (x_create_tip_frame):
129 * w32fns.c (x_create_tip_frame): Use it.
130
3d8416fc
NA
1312010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
132
133 * xftfont.c (xftfont_open): Check font width one by one also when
134 spacing is dual.
135
136 * ftfont.c (ftfont_open): Ditto.
137
b1feb9b4
AS
1382010-06-26 Andreas Schwab <schwab@linux-m68k.org>
139
140 * alloc.c (Fmake_byte_code): Don't access undefined argument
141 (Bug#6517).
142
c7dd9743
CY
1432010-06-25 Chong Yidong <cyd@stupidchicken.com>
144
145 * xdisp.c (next_element_from_image): Ensure that after-strings are
146 read the next time we hit handle_stop (Bug#1336).
147
5721b4ed
AS
1482010-06-23 Andreas Schwab <schwab@linux-m68k.org>
149
150 * lread.c (read1): Signal error if #s is not followed by paren.
151
277c5f18
CY
1522010-06-19 Chong Yidong <cyd@stupidchicken.com>
153
52ab9bb2
CY
154 * image.c (free_image): Mark frame as garbaged (Bug#6426).
155
277c5f18
CY
156 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
157
6fda6a0c
GM
1582010-06-15 Glenn Morris <rgm@gnu.org>
159
160 * editfns.c (Fbyte_to_string): Pacify compiler.
161
e454a4a3
SM
1622010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
163
164 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
165 Check `object's type before accessing its guts.
166
657d4c0b
AS
1672010-06-08 Andreas Schwab <schwab@linux-m68k.org>
168
169 * minibuf.c (Fall_completions): Add more checks.
170
9b27fd9f
JB
1712010-06-08 Juanma Barranquero <lekktu@gmail.com>
172
173 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
174
0eb7675e
AS
1752010-06-03 Andreas Schwab <schwab@linux-m68k.org>
176
177 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 178 address. (Bug#6346)
0eb7675e 179
78edd3b7
JB
1802010-06-03 Juanma Barranquero <lekktu@gmail.com>
181
182 * ccl.c (Fccl_program_p): Fix typo in docstring.
183
1ab8293c
SM
1842010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
185
186 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
187 of bug#6305).
188
5ca3929b
CY
1892010-05-27 Chong Yidong <cyd@stupidchicken.com>
190
191 * xdisp.c (redisplay_window): After redisplay, check if point is
192 still valid before setting it (Bug#6177).
193
f5b416d2 1942010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
195
196 * s/netbsd.h: If terminfo is found, use it in preference to
197 termcap. (Bug#6190) [Backport from trunk]
198
aeb77d46
CY
1992010-05-20 Kevin Ryde <user42@zip.com.au>
200
201 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
202 (Voverriding_terminal_local_map, Vsystem_key_alist)
203 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
204
c3bb441d
SM
2052010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
206
207 * editfns.c (Fbyte_to_string): New function.
208
754790b6
CY
2092010-05-18 Chong Yidong <cyd@stupidchicken.com>
210
211 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
212 prevent stack overflow if number of arguments is too large
213 (Bug#6214).
214
c8670ded
EZ
2152010-05-11 Eli Zaretskii <eliz@gnu.org>
216
217 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
218
219 * w32fns.c: Include w32.h.
220 (Fw32_shell_execute): Decode the error message before passing it
221 to `error'. (Bug#6126)
222
3ffd4615 2232010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
224
225 * ftfont.c: Fix incorrect parentheses of #if condition for
226 definining M17N_FLT_USE_NEW_FEATURE.
227
61a808e8
CY
2282010-05-07 Chong Yidong <cyd@stupidchicken.com>
229
230 * Version 23.2 released.
231
5dcde606
AS
2322010-04-30 Andreas Schwab <schwab@linux-m68k.org>
233
234 * composite.c (autocmp_chars): Save point as marker before calling
235 auto-composition-function (Bug#5984).
236
237 * lisp.h (restore_point_unwind): Add prototype.
238
239 * fileio.c (restore_point_unwind): Remove static attribute.
240
c4170e32
KH
2412010-04-23 Kenichi Handa <handa@m17n.org>
242
243 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
244 new feature of libotf and m17n-flt.
245 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]: Call
246 OTF_check_features even if no specific feature is given.
247 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
248 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
249 that OUT is NULL. Use OTF_drive_gsub_with_log and
250 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
251 OTF_drive_gpos.
252 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
253 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]: Setup
254 mflt_enable_new_feature and mflt_try_otf.
255
e42cd1a7
JB
2562010-04-19 Juanma Barranquero <lekktu@gmail.com>
257
258 * dired.c (Ffile_attributes): Fix typo in docstring.
259
79353a53
AR
2602010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
261
262 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
263 NSInteger (Bug#5811).
264
658b9b93
YM
2652010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
266
267 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
268 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
269
16009a0e
YM
2702010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
271
272 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
273
f016f225
JD
2742010-04-07 Jan Djärv <jan.h.d@swipnet.se>
275
276 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
277 FRAME_LINE_TO_PIXEL_Y.
278
279 * xterm.c (x_set_window_size_1): Don't add border_width/height to
280 pixelwidth/height.
281
84257d93
CY
2822010-04-05 Chong Yidong <cyd@stupidchicken.com>
283
284 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
285 terminal frames (Bug#5837).
286
95b1abcf
CY
2872010-03-31 Chong Yidong <cyd@stupidchicken.com>
288
289 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
290 * nsterm.h: Fix prototype.
291
4a217bed
EZ
2922010-03-31 Eli Zaretskii <eliz@gnu.org>
293
294 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
295 in this function. (Bug#5703)
296
4f103e04
CY
2972010-03-31 Chong Yidong <cyd@stupidchicken.com>
298
299 * nsterm.h: Fix last change.
300
a6d676d9
CY
3012010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
302
303 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
304
67fee863
JD
3052010-03-30 Jan Djärv <jan.h.d@swipnet.se>
306
307 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
308 invisible (Bug#5766).
309
9ae6e189
CY
3102010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
311
312 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
313 HAVE_NS conditionals.
194d44e7 314 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
315
316 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
317 filename for the title.
318 (ns_set_doc_edited): Do nothing if the selected window is a
319 minibuffer window.
320
321 * nsterm.h: Add prototypes for ns_set_name_as_filename and
322 ns_set_doc_edited.
323
324 * nsterm.m: Remove unneeded prototype.
325
25c72475
GM
3262010-03-28 Glenn Morris <rgm@gnu.org>
327
328 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
329 in the DOC file. (Bug#5336)
330
f79a01db
CY
3312010-03-24 Chong Yidong <cyd@stupidchicken.com>
332
333 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
334
93318cbd
JD
3352010-03-20 Jan Djärv <jan.h.d@swipnet.se>
336
337 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
338
339 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
340
341 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
342
ad13a3ee
YM
3432010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
344
345 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
346 XLoadQueryFont.
347
fbdc1721
KH
3482010-03-16 Kenichi Handa <handa@m17n.org>
349
350 * coding.c (decode_coding_ccl): Fix previous change for the
351 multibyte case.
fb608df3
KH
352 (encode_coding_ccl): Don't setup ccl program here. Fix for the
353 case that the output buffer is fullfilled.
354 (encode_coding): Setup ccl program here.
fbdc1721 355
35cd7cd6
CY
3562010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
357
358 * editfns.c (Fformat): Account for string precision when computing
359 field width (Bug#5710).
360
618db430
SM
3612010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
362
c0335e02
SM
363 Make it possible to C-g in a tight bytecode loop again (bug#5680).
364 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
365 (QUIT): Use it to consolidate code and remove redundancy.
366 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
367
254c06a8
SM
368 * regex.c (regex_compile): Setup gl_state as well.
369
618db430
SM
370 * syntax.c (skip_chars): Setup gl_state (bug#3823).
371 (in_classes): Use CONSP before XCAR/XCDR.
372
233f0c9f
CY
3732010-03-03 Chong Yidong <cyd@stupidchicken.com>
374
375 * keymap.c (Fwhere_is_internal): Use Fequal to compare
376 definitions, so that keyboard macros are correctly handled
377 (Bug#5481).
378
75f80e63
EZ
3792010-03-02 Eli Zaretskii <eliz@gnu.org>
380
381 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
382 text that could be relocated inside the call to emacs_mule_char.
383 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
384 (CODING_DECODE_CHAR): Add a comment describing its purpose.
385
dcfb9bc4
KH
3862010-03-02 Kenichi Handa <handa@m17n.org>
387
fc9a17bc
KH
388 * character.c (parse_str_as_multibyte): Fix handling of the
389 multibyte form of raw-bytes.
390 (str_as_multibyte): Likewise.
391
dcfb9bc4
KH
392 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
393 form of raw-bytes.
394
412c01b6
CY
3952010-02-28 Chong Yidong <cyd@stupidchicken.com>
396
397 * charset.c (load_charset_map_from_file)
398 (load_charset_map_from_vector): Zero out allocated
399 charset_map_entries before using them.
400
df7e1ea0
AS
4012010-02-27 Andreas Schwab <schwab@linux-m68k.org>
402
403 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
404
fe69a722
CY
4052010-02-27 Chong Yidong <cyd@stupidchicken.com>
406
4ed28cf4
CY
407 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
408 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 409
7379cfce
KH
4102010-02-26 Kenichi Handa <handa@m17n.org>
411
f88cc4d6
KH
412 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
413
7379cfce
KH
414 * xdisp.c (reseat_to_string): Fix previous change.
415
cf2fdcfb
CY
4162010-02-26 David Reitter <david.reitter@gmail.com>
417
418 * nsfont.m (nsfont_draw): ns_antialias_text should be a
419 Lisp_Object (Bug#4736).
420
cc6c7c75
KH
4212010-02-25 Kenichi Handa <handa@m17n.org>
422
423 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
424
32e737d7
JD
4252010-02-24 Jan Djärv <jan.h.d@swipnet.se>
426
427 * xterm.c (XTflash): Move declarations before statements.
428
429 * gtkutil.c (xg_get_gdk_display): Remove (unused).
430 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
431 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
432 (xg_create_tool_bar): Remove unused variables.
433 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 434 (xg_create_frame_widgets): Remove variable grav.
32e737d7 435
676cae9f
CY
4362010-02-21 Chong Yidong <cyd@stupidchicken.com>
437
438 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
439
886cc2b8
SM
4402010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
441
442 * term.c (fatal): Add a final \n if needed (bug#5596).
443
ddb2d8e2
CY
4442010-02-18 Chong Yidong <cyd@stupidchicken.com>
445
446 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
447
2a4f8d3d
GM
4482010-02-18 Glenn Morris <rgm@gnu.org>
449
450 * callint.c (Finteractive): Doc fix.
451
ebaf11b6
KH
4522010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
453
886cc2b8
SM
454 * coding.c (record_conversion_result):
455 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
456 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
457 memory allocation error.
458
d0396581
KH
4592010-02-17 Kenichi Handa <handa@m17n.org>
460
886cc2b8
SM
461 * coding.c (decode_coding_ccl): Don't setup ccl program here.
462 Fix for the case that the output buffer is fullfilled.
d0396581
KH
463 (decode_coding): Setup ccl program here. Keep looping when the
464 decoder stopped because the output buffer is
465 fullfilled (bug#5534).
466
467 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
468
98599f74
JD
4692010-02-13 Jan Djärv <jan.h.d@swipnet.se>
470
471e4f04 471 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 472 bug #5571.
886cc2b8 473 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 474 overdrawn.
98599f74 475
182659ae
JD
4762010-02-10 Jan Djärv <jan.h.d@swipnet.se>
477
478 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
479 doing_interact here.
480 (ice_connection_closed): New function.
481 (x_session_check_input, smc_die_CB, ice_io_error_handler)
482 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
483 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
484 returns I/O error.
485 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
486 bug #5512.
487
9be32c4e 4882010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
489
490 * nsfont.m (nsfont_open): The system's value for the font descent
491 is negative, so round it down to avoid clipping.
492
a2f3eb19
CY
4932010-02-06 Chong Yidong <cyd@stupidchicken.com>
494
495 * charset.c (load_charset_map_from_file)
496 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 497 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 498
3088147c
CY
4992010-02-05 Chong Yidong <cyd@stupidchicken.com>
500
501 * charset.c (load_charset_map_from_file): Allocate large
502 charset_map_entries structure on the heap rather than the stack.
503 (Bug#5526).
504
b57d9029
KH
5052010-01-31 Kenichi Handa <handa@m17n.org>
506
507 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 508 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 509
c67d885b
CY
5102010-01-31 Chong Yidong <cyd@stupidchicken.com>
511
512 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
513 <deactivated@gmail.com> (Bug#3605).
514
8fab2362
CY
5152010-01-31 David De La Harpe Golden <david@harpegolden.net>
516
517 * fileio.c (Frename_file): Correctly rename symlinks to
518 directories (Bug#5496).
519
cb2a62f2
CY
5202010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
521
522 * nsterm.m (ns_ring_bell): Handle visible bell like X.
523
944c7a26
AS
5242010-01-30 Andreas Schwab <schwab@linux-m68k.org>
525
526 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
527
c024ac08
CY
5282010-01-29 Chong Yidong <cyd@stupidchicken.com>
529
530 * frame.c (DEFAULT_ROWS): Change default to 35.
531
532 * xfns.c (x_default_font_parameter): Change default XFT font to
533 monospace-10 (Bug#3643).
534
af93af83
EZ
5352010-01-29 Eli Zaretskii <eliz@gnu.org>
536
537 * w32inevt.c (key_event): Remove unnecessary comparison of
538 event->uChar.AsciiChar with 128.
539
ca0eb708
CY
5402010-01-28 Chong Yidong <cyd@stupidchicken.com>
541
b242dbfc
CY
542 * fileio.c (Frename_file): Fix last change (Bug#5487).
543
ca0eb708
CY
544 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
545
546 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
547
45d45af5
JD
5482010-01-28 Jan Djärv <jan.h.d@swipnet.se>
549
550 * xfns.c (Fx_create_frame): Remove window size matching code from
551 2010-01-15.
a73f9c9d 552 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 553
7e233730
JR
5542010-01-27 Jason Rumney <jasonr@gnu.org>
555
556 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 557 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 558
86e893e3
KH
5592010-01-27 Kenichi Handa <handa@m17n.org>
560
561 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 562 pattern string (Bug#4209).
86e893e3 563
8719abec
CY
5642010-01-27 David De La Harpe Golden <david@harpegolden.net>
565
566 * fileio.c (Frename_file): Call copy-directory and
567 delete-directory for directories, in order to handle cross-device
568 renaming (Bug#3353).
569
844794c8
JD
5702010-01-25 Jan Djärv <jan.h.d@swipnet.se>
571
aa3e13b5 572 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 573 sizes 24 and 10. Bug #3643.
844794c8 574
bd4b5750
SM
5752010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
576
8dc1adf6 577 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
578 * keymap.c (shadow_lookup): Add `remap' arg.
579 (describe_map, describe_vector): Update calls to shadow_lookup.
580 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
581 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
582 perform remapping during shadow_lookup check of remapped_sequences.
583
285d07e2
CY
5842010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
585
586 * image.c (png_load): Use png_sig_cmp instead of the obsolete
587 png_check_sig, which has been removed in libpng 1.4.
588
c6d09b8d
CY
5892010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
590
591 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
592 lacks this header file).
593
3d782998
YM
5942010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
595
596 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
597 as in Emacs 22.
598
2aff7c53
YM
5992010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
600
601 * lisp.h (make_pure_string): String pointer arg now points to const.
602
603 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
604 args now point to const.
605
74327f7a
EZ
6062010-01-22 Eli Zaretskii <eliz@gnu.org>
607
608 * lread.c (Fload): Don't treat files without .elc extension as
609 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
610 them. (bug#5303)
611
4d1e6632
KH
6122010-01-20 Kenichi Handa <handa@m17n.org>
613
614 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
615 treat the source as actual byte sequence.
616
1fdede8f
AM
6172010-01-19 Alan Mackenzie <acm@muc.de>
618
619 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 620 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
621 `signal_after_change_p' to `coherent_change_p', and make the
622 invocation of `modify_region' conditional on it.
623
67477f30
JD
6242010-01-19 Jan Djärv <jan.h.d@swipnet.se>
625
626 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
627 for debug purpose.
628 (syms_of_xsettings): Declare xft-settings.
629
244b023e
CY
6302010-01-18 Chong Yidong <cyd@stupidchicken.com>
631
632 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
633
617364fe
CY
6342010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
635
636 * xterm.c (event_handler_gdk): Block input (Bug#5037).
637
4fe22cdf
CY
6382010-01-16 Chong Yidong <cyd@stupidchicken.com>
639
640 * emacs.c (standard_args): Adjust arg priorities to reflect how
641 they are processed in startup.el.
642
e118d2be
AS
6432010-01-16 Andreas Schwab <schwab@linux-m68k.org>
644
645 * Makefile.in (lisp, shortlisp): Update.
646
523ae620
SM
6472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
648
649 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
650 code, link the new kboard into all_kboard before running Lisp code,
651 and protect the new terminal with GCPRO (Bug#5365).
652 (x_term_init): Remove unused var `atom'.
653 (x_delete_display, x_delete_terminal): Remove unused var `i'.
654
f0d13888
JD
6552010-01-15 Jan Djärv <jan.h.d@swipnet.se>
656
657 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
658 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
659 to find out usable size of the desktop. Don't make frames larger than
ac146f82 660 this. Bug #3643.
f0d13888 661
cc320f07
KH
6622010-01-15 Kenichi Handa <handa@m17n.org>
663
664 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
665
7ffdf101
CY
6662010-01-15 Chong Yidong <cyd@stupidchicken.com>
667
668 * nsterm.m (Qnone): Define.
669
670 * nsfns.m (Qnone): Move definition to nsterm.m.
671
d12bd917
KH
6722010-01-14 Kenichi Handa <handa@m17n.org>
673
674 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
675 systems.
676
d9a7c140
KH
6772010-01-14 Kenichi Handa <handa@m17n.org>
678
679 Make auto-composition work on all buffers even if they are
680 fundamental mode.
681
682 * composite.c (Vauto_composition_mode): New variable.
683 (composition_compute_stop_pos): Check Vauto_composition_mode
684 instead of Vauto_composition_function.
685 (composition_adjust_point, Ffind_composition_internal): Likewise.
686 (syms_of_composite): Declare Lisp variable
687 "auto-composition-mode" here.
688
63286bb2
CY
6892010-01-13 Chong Yidong <cyd@stupidchicken.com>
690
691 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
692 during call to vendor-specific-keysyms (Bug#5365).
693
c2623ee7
YM
6942010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
695
696 * keyboard.c (input_available_signal) [SYNC_INPUT]:
697 Call SIGNAL_THREAD_CHECK (Bug#5333).
698
699 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
700 Call SIGNAL_THREAD_CHECK.
701
0b5397c2
SM
7022010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
703
704 Try to fix bug#5314. This is probably not the final word, tho.
705 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
706 recent-auto-save-p as a side-effect.
707 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
708 * buffer.c (Fkill_buffer, reset_buffer):
709 * editfns.c (Fsubst_char_in_region):
710 * fileio.c (Finsert_file_contents, Fdo_auto_save)
711 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
712
dc954cb2
KH
7132010-01-13 Kenichi Handa <handa@m17n.org>
714
715 Display buffer name, etc. in mode line by composing correctly.
716
717 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
718 STRING is not nil.
0b5397c2 719 (display_mode_element): Adjust for the change of
dc954cb2
KH
720 decode_mode_spec and display_line.
721 (decode_mode_spec): Change arg MULTIBYTE to STRING.
722 (display_string): Handle the case that STRING is non-null and
723 LISP_STRING is not nil.
724
0b5397c2
SM
725 * xterm.c (x_draw_composite_glyph_string_foreground):
726 Pay attention to s->face->overstrike.
dc954cb2
KH
727
728 * composite.c (composition_reseat_it): Don't check PT if STRING is
729 non nil.
730
4a00eaca
YM
7312010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
732
733 * keyboard.c (read_char): Don't apply previous change when current
734 buffer is unchanged by command execution.
735
60abb287
JD
7362010-01-12 Jan Djärv <jan.h.d@swipnet.se>
737
738 * keyboard.c (read_char): Return after executing from special map.
739
893db5bc
GM
7402010-01-12 Glenn Morris <rgm@gnu.org>
741
742 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
743 bug-gnu-emacs rather than emacs-pretest-bug.
744
4d03ece0
CY
7452010-01-11 Chong Yidong <cyd@stupidchicken.com>
746
747 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
748 initializing the Lisp variables that depend on them.
749
1df47e38
YM
7502010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
751
752 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
753 Clear areas that will not be updated after change of menu bar lines.
754 Clear the menu bar window's current matrix when the window gets empty.
755
2f1c6384
CY
7562010-01-09 Chong Yidong <cyd@stupidchicken.com>
757
e398c61c
CY
758 * intervals.h, textprop.c (extend_property_ranges): Return value
759 and args changed. Discard properties that begin at or after the
760 new end (Bug#5306).
761
762 * editfns.c (Fformat): Caller changed.
763
e5a29a10
CY
764 * nsterm.m (ns_set_default_prefs): Delete function.
765 (syms_of_nsterm): Initialize ns_command_modifier,
766 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
767 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
768
2f1c6384
CY
769 * xdisp.c (pos_visible_p): Check for invisible text at the correct
770 position (Bug#4040).
771
d427a9fa
EZ
7722010-01-09 Eli Zaretskii <eliz@gnu.org>
773
774 * editfns.c (Ffloat_time): Doc fix.
775
21b9df2f
JD
7762010-01-09 Jan Djärv <jan.h.d@swipnet.se>
777
778 * xfns.c (Fx_create_frame): Don't create frame larger than display
779 by default bug#3643.
780
4b00d3b1
YM
7812010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
782
783 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
784 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
785 windows above internal border.
786
787 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
788 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
789 windows above internal border.
790
791 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
792 tool bar windows specially.
793
794 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
795
796 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
797 specially.
798 (XTflash): Take account of menu bar height.
799
800 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
801 specially.
802
5075d853
JD
8032010-01-08 Jan Djärv <jan.h.d@swipnet.se>
804
ac146f82 805 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
806 also be true before we can return early (bug #5339).
807
474217c8
CY
8082010-01-06 David Reitter <david.reitter@gmail.com>
809
810 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
811 (Fns_display_usable_bounds): Rewrite, computing bounds properly
812 (Bug#3233).
813
c0e6d47d
JD
8142010-01-06 Jan Djärv <jan.h.d@swipnet.se>
815
d0cf45b7
JD
816 * font.c (font_open_entity): Enable chache and call cached_font_ok
817 for the driver if defined.
818 (QCuser_spec): New symbol.
819 (font_spec_from_name): Save name as user-spec.
820 (font_load_for_lface): Keep user-spec instead of name.
821 (font_open_by_name): Save name as user-spec.
822 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 823 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
824
825 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
826 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
827 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
828
829 * font.h (struct font_driver): Add cached_font_ok.
830
c0e6d47d
JD
831 * xterm.c (x_clear_frame): Queue draw for scroll bars.
832
7c583cd8
JD
8332010-01-05 Jan Djärv <jan.h.d@swipnet.se>
834
835 * xterm.c (x_new_font): Move code for setting rows/cols before
836 resizing ...
ac146f82 837 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
838
839 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
840 (xg_frame_resized, xg_frame_set_char_size):
841 Call xg_clear_under_internal_border.
7c583cd8 842 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 843
03f77f0a
CY
8442010-01-05 Chong Yidong <cyd@stupidchicken.com>
845
846 * keyboard.c (read_key_sequence): Catch keyboard switch after
847 making a new tty frame (Bug#5095).
848
2a1ef5be
KH
8492010-01-05 Kenichi Handa <handa@m17n.org>
850
851 * fontset.c (fontset_find_font): Fix getting the frame pointer.
852
e3eb1dae
SM
8532010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
854
855 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
856 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
857 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
858
777013f2
MA
8592010-01-03 Michael Albinus <michael.albinus@gmx.de>
860
861 * dbusbind.c (xd_add_watch): Improve debug message.
862 (xd_remove_watch): Improve debug message. If DATA is the session
863 bus, unset D-Bus session environment.
864 (Fdbus_init_bus): Pass the bus as argument to
865 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 866
8932b1c2
CY
8672010-01-01 Chong Yidong <cyd@stupidchicken.com>
868
87231e2c
CY
869 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
870
4801c5fa
CY
871 * lread.c (syms_of_lread): Make it clearer that these are the
872 names of loaded files (Bug#5068).
873
8932b1c2
CY
874 * eval.c (run_hook_with_args): Handle the case where the global
875 value has the obsolete single-function form (Bug#5026).
876
11e3c684
CY
8772009-12-27 Chong Yidong <cyd@stupidchicken.com>
878
879 * minibuf.c (Fall_completions): Minor optimization.
880
5b28ce35
EZ
8812009-12-26 Eli Zaretskii <eliz@gnu.org>
882
5ce6e4f4
JB
883 * .gdbinit (pgx): Fix display of composite glyphs.
884 Display cmp.from and cmp.to as well.
885 (pitx): Fix last change.
5b28ce35 886
bcffff46
KH
8872009-12-25 Kenichi Handa <handa@m17n.org>
888
889 * composite.h (composition_adjust_point): Update prototype.
890
891 * composite.c (composition_reseat_it): Don't make a composition
892 spanning over point.
893 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
894 composable characters.
895 (composition_adjust_point): New arg NEW_PT. Callers changed.
896
897 * keyboard.c (command_loop_1): Force redisplay if the last point
898 was within a composition.
899 (adjust_point_for_property): Don't adjust point for automatic
900 composition when called after buffer modification.
901
3f670e9a
EZ
9022009-12-19 Eli Zaretskii <eliz@gnu.org>
903
5ce6e4f4
JB
904 * .gdbinit (pitx): Don't use enum names, use their values.
905 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
906 (pgx): Don't use enum names, use their values.
907 (pitmethod): New helper command.
908 (pitx): Use it to display iteration method.
909 (pgrowit): New command.
910
ad903955
EZ
911 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
912
3f670e9a
EZ
913 Update dependencies in Makefile.in.
914
915 * Makefile.in (alloc.o): Depend on termhooks.h.
916 (atimer.o): Depend on blockinput.h.
917 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
918 and frame.h.
919 (callint.o): Depend on systime.h, coding.h, and composite.h.
920 (callproc.o): Depend on buffer.h.
921 (casefiddle.o): Don't depend on charset.h.
922 (casetab.o): Depend on character.h.
923 (ccl.o): Depend on composite.h.
924 (chartab.o): Depend on ccl.h.
925 (cm.o): Depend on dispextern.h.
926 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
927 (coding.o): Don't depend on $(INTERVALS_H).
928 (composite.o): Don't depend on dispextern.h explicitly (it's in
929 $(INTERVALS_H)). Depend on ccl.h.
930 (data.o): Depend on systime.h, coding.h, composite.h,
931 dispextern.h, font.h, and ccl.h.
932 (dired.o): Depend on composite.h.
933 (dispnew.o): Depend on coding.h. Don't depend explicitly on
934 composite.h (it's in $(INTERVALS_H)).
935 (doc.o): Depend on systime.h, coding.h, and composite.h.
936 (editfns.o): Don't depend explicitly on dispextern.h.
937 (emacs.o): Depend on frame.h and coding.h.
938 (eval.o): Depend on coding.h, composite.h, and xterm.h.
939 (fileio.o): Depend on frame.h and commands.h. Don't depend
940 explicitly on dispextern.h.
941 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
942 composite.h.
943 (fns.o): Don't depend on termhooks.h.
944 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
945 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
946 coding.h, $(INTERVALS_H), window.h, xterm.h.
947 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
948 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
949 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
950 fontset.h, ccl.h, and ftfont.h.
951 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
952 (gtkutil.o): Depend on dispextern.h and composite.h.
953 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
954 termhooks.h, and ccl.h.
955 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
956 (intervals.o): Depend on systime.h and coding.h.
957 (keyboard.o): Depend on composite.h and coding.h.
958 (keymap.o): Depend on coding.h and frame.h.
959 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
960 (macros.o): Depend on systime.h, coding.h, and composite.h.
961 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
962 and atimer.h.
963 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
964 dispextern.h explicitly.
0b5397c2
SM
965 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
966 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
967 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
968 (regex.o): Don't depend on charset.h.
969 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
970 (search.o): Don't depend explicitly on composite.h.
971 (sound.o): Depend on atimer.h and systime.h.
972 (syntax.o): Don't depend explicitly on composite.h.
973 (sysdep.o): Depend on coding.h and composite.h.
974 (term.o): Depend on xterm.h and buffer.h.
975 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
976 (textprop.o): Don't depend on dispextern.h explicitly.
977 (undo.o): Depend on dispextern.h.
978 (window.o): Depend on coding.h and termhooks.h. Don't depend on
979 dispextern.h and composite.h explicitly.
980 (xdisp.o): Depend on ccl.h.
981 (xfaces.o): Depend on coding.h and ccl.h.
982 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
983 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
984 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
985 ftfont.h.
986 (xgselect.o): New dependency.
987 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
988 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
989 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
990 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
991 (xsmfns.o): Depend on frame.h and dispextern.h.
992 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
993 sysselect.h.
994
7a6f7fea
AS
9952009-12-19 Andreas Schwab <schwab@linux-m68k.org>
996
997 * font.c (Fclear_font_cache): Pass correct cache argument to
998 font_clear_cache.
999
f4c21026
AS
10002009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1001
1002 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1003 twice.
1004
f7ab0997
CY
10052009-12-15 Chong Yidong <cyd@stupidchicken.com>
1006
1007 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1008 calling file-remote-p. Reported by Jim Meyering.
1009
fa8e045a
MA
10102009-12-15 Michael Albinus <michael.albinus@gmx.de>
1011
1012 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1013 avoid compiler warnings. (Bug #5217)
fa8e045a 1014
a63dba42
KH
10152009-12-14 Kenichi Handa <handa@m17n.org>
1016
1017 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1018 in 8-bit encoding.
1019
5ce6e4f4 10202009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1021
1022 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1023 tooltip windows.
1024
223e5fc6
JD
10252009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1026
36acb2a7
JD
1027 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1028 Xatom_net_window_type.
1029
1030 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1031 Xatom_net_window_type.
1032
b8f00677
JD
1033 * xterm.c (my_log_handler): New function.
1034 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1035 so we can filter out buggy messages. (Bug #5120).
b8f00677 1036
e5f0bc9a
JD
1037 * xterm.c (xg_scroll_callback): Parameter list changed,
1038 use parameter GtkScrollType to determine scroll/line/page.
1039 Only allow dragging if a button < 4 is grabbed (bug #5177).
1040 (xg_end_scroll_callback): New function.
1041 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1042 xg_create_scroll_bar.
1043
1044 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1045 (scroll_end_callback): Remove.
1046 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1047 button-release-event. Replace value-changed event with change-value,
1048 bug #5177,
1049 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1050 bug #5177.
1051
1052 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1053 (xg_create_scroll_bar): Add GCallback end_callback.
1054
223e5fc6
JD
1055 * xftfont.c (QClcdfilter): New variable.
1056 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1057 (syms_of_xftfont): Initialize QClcdfilter.
1058
3c055b77
JD
10592009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1060
1061 * xsettings.c (struct xsettings): Add member seen.
1062 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1063 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1064 (apply_xft_settings): Only update Xft settings with what member seen
1065 indicates as new.
1066
05fe33ff
EZ
10672009-12-12 Eli Zaretskii <eliz@gnu.org>
1068
1069 * dispextern.h (struct text_pos): Use EMACS_INT;
1070 (struct glyph): Use EMACS_INT for charpos.
1071 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1072 region_beg_charpos, region_end_charpos,
1073 redisplay_end_trigger_charpos, and also for
1074 iterator_stack_entry.end_charpos and
1075 iterator_stack_entry.stop_charpos.
1076
e8d7886a
JD
10772009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1078
5ce6e4f4 1079 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1080 (xg_create_scroll_bar): Call scroll_end_callback on button release
1081 event (bug #5177).
1082 (xg_event_is_for_scrollbar): != replaced with ==.
1083
d0db2ec8
KH
10842009-12-12 Kenichi Handa <handa@m17n.org>
1085
1086 * ftfont.c (struct ftfont_info): New member matrix.
1087 (ftfont_open): Setup xftfont_info->matrix.
1088 (MFLTFontFT): New member matrix.
1089 (FLOOR, CEIL, ROUND): New macros.
1090 (ftfont_get_metrics): Handle matrix transformation.
1091 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1092
1093 * xftfont.c (struct xftfont_info): New member matrix.
1094 (xftfont_open): Setup xftfont_info->matrix.
1095
10962009-12-10 Kenichi Handa <handa@m17n.org>
1097
1098 * xdisp.c (append_space_for_newline): Consider face-remapping.
1099
2cc7b62f
AS
11002009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1101
b87dd913
AS
1102 * xsettings.c: Include "keyboard.h".
1103
eba5eb94
AS
1104 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1105
2cc7b62f
AS
1106 Fix implicit function declarations.
1107 * cmds.c: Include "frame.h".
1108 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1109 * frame.h: Move declaration of delete_frame outside of
1110 HAVE_WINDOW_SYSTEM.
1111
a4ef73c8
CY
11122009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1113
1114 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1115
1116 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1117 GTK builds.
1118
944a300c
AS
11192009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1120
1121 * unexelf.c (unexec): Don't search for .data twice.
1122
022eef62
CY
11232009-12-05 Chong Yidong <cyd@stupidchicken.com>
1124
426ac949
CY
1125 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1126 if push failed.
1127 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1128 of push_display_prop (Bug#5000).
1129
022eef62
CY
1130 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1131 value of font_list_entities (Bug#5085).
1132
be95bee9
JB
11332009-12-04 Juanma Barranquero <lekktu@gmail.com>
1134
1135 Fix `string-to-number' to deal consistently with integers and floats.
1136 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1137 trailing characters, not just whitespace.
1138 (read1): Pass new arg 0 to keep old behavior.
1139 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1140 trailing chars, as it is already done for integers. Doc fixes.
1141 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1142
24c2d7ce
EZ
11432009-12-04 Eli Zaretskii <eliz@gnu.org>
1144
0b5397c2
SM
1145 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1146 Delete unused enumeration value.
24c2d7ce 1147
7e694795
EZ
11482009-12-03 Eli Zaretskii <eliz@gnu.org>
1149
1150 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1151
84b31826
SM
11522009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1153
1154 * process.c (Fmake_network_process): Fix up the tests for
1155 "connectionless socket", so they DTRT for seqpacket sockets as well.
1156
f00c449b
SM
11572009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1158
1159 * process.c (Qseqpacket): New symbol.
1160 (HAVE_SEQPACKET): New macro.
1161 (Fmake_network_process): Accept new :type `seqpacket'.
1162 (init_process): Add `seqpacket' feature when applicable.
1163 (syms_of_process): Initialize Qseqpacket.
1164
8096a0ff
YM
11652009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1166
1167 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1168 if entity is Qnil.
1169
3e0de07f
SM
11702009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1171
1172 * print.c (print_preprocess): Preprocess the key_and_value table of
1173 hashtables, even tho they're "hidden" (bug#5082).
1174
abeafb2a
JD
11752009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1176
1177 * frame.c (frame_make_pointer_invisible)
1178 (frame_make_pointer_visible): Declare f before statements.
1179
4bf47195
EZ
11802009-11-28 Eli Zaretskii <eliz@gnu.org>
1181
1182 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1183 omitted dependencies on lisp.h.
1184
c525b3f2
JD
11852009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1186
ece2d4ed
JD
1187 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1188 is NULL.
1189
1190 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1191
1192 * frame.c (frame_make_pointer_invisible)
3e0de07f 1193 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1194 frame.
1195
c525b3f2
JD
1196 * search.c (simple_search): Remove warning by making *p const.
1197
2f00e299
DN
11982009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1199
1200 * xdisp.c (power_letter): Remove duplicate const.
1201
084b049b
JD
12022009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1203
a1fadc6f
JD
1204 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1205
5ce6e4f4 1206 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1207 defaults (bug #5025).
1208
28259cac
SM
12092009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1210
1211 * insdel.c (adjust_markers_for_delete): Move it in the
1212 right direction! (bug#4803)
1213
e8e14166
YM
12142009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1215
1216 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1217
1218 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1219
86677b58
GM
12202009-11-24 Glenn Morris <rgm@gnu.org>
1221
1222 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1223
581e51e8
JD
12242009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1225
cfc86c7a
JD
1226 * Makefile.in: Must create deps for ecrt0.o in its rule.
1227
581e51e8
JD
1228 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1229 because that is what Gtk+ font dialog understands.
1230
1231 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1232 of Fcopy_sequence.
1233 (font_open_by_name): Put name given into QCname for font-object returned.
1234
1235 * frame.c (x_set_font): Save original font name as frame parameter
1236 font-parameter.
1237
1238 * xsettings.c (set_default_xft_settings): New function.
1239 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1240 is found.
1241
8b264ecb
AS
12422009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1243
1244 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1245 searching backwards through multibyte buffer.
1246
872870b2
JD
12472009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1248
1249 * xterm.c: #include xgselect.h.
1250 (x_initialize): Call xgselect_initialize.
1251
1252 * xsettings.c (something_changedCB): C++ comments => C comments.
1253 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1254 does that now.
1255
1256 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1257 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1258 (scroll_bar_button_cb): Remove.
5ce6e4f4 1259 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1260 event.
1261 (xg_create_scroll_bar): Don't bind button-press-event and
1262 button-release-event.
1263
1264 * process.c: Include xgselect.h if defined (USE_GTK) ||
1265 defined (HAVE_GCONF).
1266 (wait_reading_process_output): Call xg_select for the same condition.
1267
1268 * xgselect.c (xg_select): New function to better integrate with
1269 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1270
1271 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1272
1273 * Makefile.in (XOBJ): Add xgselect.o.
1274
62a6e103
AS
12752009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1276
0b5397c2
SM
1277 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1278 Remove ignored second argument. All callers changed.
62a6e103
AS
1279 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1280 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1281 * xdisp.c (string_char_and_length): Likewise.
1282
b0ca0f33
DN
12832009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1284
1285 * xterm.c (x_new_font):
1286 * print.c (print_object):
1287 * cmds.c (Fself_insert_command): Move declarations before statements.
1288
dd5a6279
CY
12892009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1290
1291 * s/cygwin.h: Remove unneeded linker flags.
1292
4a8e097d
JD
12932009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1294
0d1d0d26
JD
1295 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1296
1297 * xsettings.h: Declare xsettings_get_system_font.
1298
1299 * xsettings.c (xsettings_get_system_font): New function.
1300 (init_gconf): No use initiating gconf unless we have Xft also.
1301 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1302 HAVE_GCONF.
1303
4a8e097d
JD
1304 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1305 add a blank entry so it doesn't collapse into nothing.
1306
8ab1650e
SM
13072009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 * lread.c (Funintern): Comment out last change.
1310
82c602f0
RS
13112009-11-19 Richard Stallman <rms@gnu.org>
1312
1313 * lread.c (Funintern): Error if symbol is t or nil.
1314
87e32266
SM
13152009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1316
1317 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1318 representation of Lisp integers.
1319 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1320
1b9ac145
AS
13212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1322
1323 * lisp.h: Remove declaration of Ffont_get_system_font.
1324 * xfns.c: Move include of "xsettings.h".
1325 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1326
dfb3c4c6
JD
13272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1328
87e32266
SM
1329 * xsettings.c (something_changedCB, Ffont_get_system_font):
1330 Check use_system_font.
dfb3c4c6
JD
1331 (syms_of_xsettings): DEFVAR font-use-system-font.
1332
9370c1d8
AS
13332009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1334
25fe851a
AS
1335 * xfns.c (x_default_font_parameter): Remove dead assignment.
1336
9370c1d8
AS
1337 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1338
637fa988
JD
13392009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1340
87e32266 1341 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1342 not have FC_LCD_*. #define them if not there.
a6eb20d8 1343
87e32266 1344 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1345
637fa988
JD
1346 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1347
1348 * xterm.c (handle_one_xevent): Call xft_settings_event for
1349 ClientMessage, PropertyNotify and DestroyNotify.
1350 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1351 Call xsettings_initialize.
1352
1353 * xftfont.c (xftfont_fix_match): New function.
1354 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1355 Call xftfont_fix_match after XftFontMatch.
1356
1357 * xfont.c (xfont_driver): Initialize all members.
1358
87e32266
SM
1359 * xfns.c (x_default_font_parameter):
1360 Try font from Ffont_get_system_font.
637fa988
JD
1361 Do not get font from x_default_parameter if we got one from
1362 Ffont_get_system_font.
87e32266 1363 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1364
1365 * w32font.c (w32font_driver): Initialize all members.
1366
1367 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1368
1369 * lisp.h: Declare syms_of_xsettings.
1370
87e32266
SM
1371 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1372 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1373
1374 * ftfont.c (ftfont_filter_properties): New function.
1375
1376 * frame.c (x_set_font): Remove unused variable lval.
1377
87e32266 1378 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1379
1380 * font.c (font_put_extra): Don't return if val is nil, it means
1381 boolean option is off.
1382 (font_parse_fcname): Collect all extra properties in extra_props
1383 and call filter_properties for all drivers with extra_props and
1384 font as parameter.
87e32266
SM
1385 (font_open_entity): Do not use cache, it does not pick up new
1386 fontconfig settings like hinting.
637fa988
JD
1387 (font_load_for_lface): If spec had a name in it, store it in entity.
1388
a73f9c9d 1389 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1390
1391 * config.in: HAVE_GCONF is new.
1392
1393 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1394 xsettings.o is new.
1395
5a942932
KH
13962009-11-17 Kenichi Handa <handa@m17n.org>
1397
1398 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1399 back to the default font in case that no suitable font is found.
1400
b7c7a4d1
SM
14012009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1402
1403 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1404 Suggested by Chad Brown <yandros@mit.edu>.
1405 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1406
072f1e39
JD
14072009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1410
5d1e70a2
AS
14112009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1412
87e32266 1413 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1414
a53cfbe5
JD
14152009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1416
473a99b7
JD
1417 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1418 has a parent.
1419
a53cfbe5 1420 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1421 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1422
1423 * config.in: Generated (AUTO_DEPEND).
1424
f04bb9b2
MA
14252009-11-13 Michael Albinus <michael.albinus@gmx.de>
1426
b7c7a4d1 1427 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1428 Vdbus_registered_functions_table, because it contains also
1429 properties. Fix docstring.
b7c7a4d1 1430 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1431
8f11f7ec
SM
14322009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1433
1434 * alloc.c (mark_object): Don't reprocess marked strings.
1435 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1436 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1437
8a605fe8
KH
14382009-11-13 Kenichi Handa <handa@m17n.org>
1439
8f11f7ec 1440 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1441 semantics of Vword_combining_categories.
1442 (Vword_combining_categories): Describe the slight change of the
1443 semantics.
1444
241c4680
EZ
14452009-11-13 Eli Zaretskii <eliz@gnu.org>
1446
1447 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1448
1449 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1450
5d58e44c
SM
14512009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1452
1453 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1454
5e13f9d3
JB
14552009-11-12 Juanma Barranquero <lekktu@gmail.com>
1456
1457 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1458
cf54c754
DR
14592009-11-11 David Reitter <david.reitter@gmail.com>
1460
1461 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1462 variables to fix 2009-11-09 change.
1463
a4ada374
DN
14642009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1465
91433552
DN
1466 * process.c (ifflag_def): Make flag_sym constant.
1467 (Fnetwork_interface_info): Use a constant pointer.
1468 (ifflag_table):
1469 * xfns.c (cursor_bits):
1470 * xdisp.c (power_letter):
1471 * termcap.c (speeds, esctab):
1472 * sysdep.c (baud_convert):
1473 * keyboard.c (lispy_accent_codes, modifier_names):
1474 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1475 (jpeg_format, tiff_format, gif_format, svg_format)
1476 (interlace_start, interlace_increment, gs_format):
1477 * gtkutil.c (separator_names):
1478 * fringe.c (swap_nibble):
1479 * fns.c (base64_value_to_char, base64_char_to_value):
1480 * fileio.c (make_temp_name_tbl):
1481 * coding.c (suffixes): Make constant.
1482
f4265f6c
DN
1483 * frame.c (make_initial_frame):
1484 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1485 build_string.
1486 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1487
04420943
DN
1488 * s/freebsd.h:
1489 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1490
0a5d24ae
DN
1491 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1492 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1493
a4ada374
DN
1494 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1495 * xterm.c (syms_of_xterm):
1496 * xfaces.c (syms_of_xfaces):
1497 * xdisp.c (syms_of_xdisp):
1498 * lread.c (syms_of_lread):
1499 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1500 build_string.
91433552 1501
a4ada374
DN
1502 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1503
af98fc7f
SM
15042009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1505
8ab1650e 1506 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1507
e90292a9
JD
15082009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1509
1510 * keyboard.h: Declare timer_check.
1511
1512 * keyboard.c (timer_check_2): New function that does what the old
1513 timer_check did.
1514 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1515 returned, i.e. don't return -1 with timers pending.
1516
1517 * process.c: Remove extern declaration of timer_check.
1518
1519 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1520 even if timer_check returned -1.
1521
af98fc7f
SM
1522 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1523 xg_dialog_data.
e90292a9
JD
1524 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1525 the event loop.
1526 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1527 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1528 Destroy the dialog after xg_dialog_run.
1529
045b83c0
SM
15302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1531
1532 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1533
1fb99a3a
JD
15342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1535
1536 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1537
04e452cb
JB
15382009-11-09 Juanma Barranquero <lekktu@gmail.com>
1539
1540 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1541
ef7417fd
SM
15422009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1543
1544 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1545 w32menu.c, and nsmenu.m.
1546 Simplify the obsolete case where position is nil.
1547 (cleanup_popup_menu): New function, moved from nsmenu.m.
1548 (struct skp): Remove slot `notreal'.
1549 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1550 adjust callers.
1551 (single_menu_item): Adjust call to parse_menu_item.
1552 (syms_of_menu): Defsubr x-popup-menu.
1553 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1554 (keymap_panes): Don't export any more.
1555 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1556 (xmenu_show): Declare.
1557 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1558 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1559 * keyboard.h (parse_menu_item): Update declaration.
1560 * xmenu.c (Fx_popup_menu): Remove.
1561 (syms_of_xmenu): Don't defsubr x-popup-menu.
1562 * w32menu.c (Fx_popup_menu): Remove.
1563 (syms_of_w32menu): Don't defsubr x-popup-menu.
1564 * nsmenu.m (cleanup_popup_menu): Remove.
1565 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1566 moved to menu.c's Fx_popup_menu.
1567 (Fx_popup_menu): Remove.
1568 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1569 menu_items (it's done in menu.c already).
1570
424d6179
SM
15712009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1572
1573 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1574 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1575
c0df13a6 15762009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1577
1578 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1579 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1580 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1581 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1582
2de9f71c
SM
15832009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 Let integers use up 2 tags to give them one extra bit and thus double
1586 their range.
1587 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1588 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1589 New macros.
1590 (enum Lisp_Type): Use them. Give explicit values.
1591 (Lisp_Type_Limit): Remove.
1592 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1593 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1594 Pay attention to USE_2_TAGS_FOR_INTS.
1595 (INTEGERP): Use LISP_INT_TAG_P.
1596 * fns.c (internal_equal): Simplify the default case.
1597 (sxhash): Use case_Lisp_Int.
1598 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1599 any more.
1600 (Ftype_of): Use case_Lisp_Int.
1601 (store_symval_forwarding): Take into account the fact that Ints can
1602 now have more than one tag.
1603 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1604 buffer_slot_type_mismatch):
1605 * xfaces.c (face_attr_equal_p):
1606 * print.c (print_object):
1607 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1608 Use case_Lisp_Int.
1609
323637a2
EZ
16102009-11-06 Eli Zaretskii <eliz@gnu.org>
1611
7ac65b38
EZ
1612 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1613
323637a2
EZ
1614 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1615 warning.
1616
e511451f
JD
16172009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1618
1619 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1620
1621 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1622
1623 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1624 ButtonPressRelease and MotionNotify (bug#4870).
1625
5e2327cf
DN
16262009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1627
5adc433e
DN
1628 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1629
d67b4f80
DN
1630 * xterm.c (syms_of_xterm):
1631 * xselect.c (syms_of_xselect):
1632 * xmenu.c (syms_of_xmenu):
1633 * xfns.c (syms_of_xfns):
1634 * xfaces.c (syms_of_xfaces):
1635 * xdisp.c (syms_of_xdisp):
1636 * window.c (syms_of_window):
1637 * w32fns.c (syms_of_w32fns):
1638 * undo.c (syms_of_undo):
1639 * textprop.c (syms_of_textprop):
1640 * terminal.c (syms_of_terminal):
1641 * syntax.c (syms_of_syntax):
1642 * sound.c (syms_of_sound):
1643 * search.c (syms_of_search):
1644 * print.c (syms_of_print):
1645 * minibuf.c (syms_of_minibuf):
1646 * macros.c (syms_of_macros):
1647 * keymap.c (syms_of_keymap, initial_define_key)
1648 (initial_define_lispy_key):
1649 * keyboard.c (syms_of_keyboard):
1650 * insdel.c (syms_of_insdel):
1651 * image.c (syms_of_image):
1652 * fringe.c (syms_of_fringe):
1653 * frame.c (syms_of_frame):
1654 * fontset.c (syms_of_fontset):
1655 * fns.c (syms_of_fns):
1656 * fns.c (syms_of_fns):
1657 * fileio.c (syms_of_fileio):
1658 * fileio.c (syms_of_fileio):
1659 * eval.c (syms_of_eval):
1660 * doc.c (syms_of_doc):
1661 * dispnew.c (syms_of_display):
1662 * dired.c (syms_of_dired):
1663 * dbusbind.c (syms_of_dbusbind):
1664 * data.c (syms_of_data):
1665 * composite.c (syms_of_composite):
1666 * coding.c (syms_of_coding):
1667 * cmds.c (syms_of_cmds):
1668 * charset.c (define_charset_internal, syms_of_character):
1669 * ccl.c (syms_of_ccl):
1670 * category.c (syms_of_category, init_category_once):
1671 * casetab.c (syms_of_casetab):
1672 * casefiddle.c (syms_of_casefiddle):
1673 * callint.c (syms_of_callint):
1674 * bytecode.c (syms_of_bytecode):
1675 * buffer.c (keys_of_buffer, syms_of_buffer):
1676 * alloc.c (syms_of_alloc):
1677 * process.c (syms_of_process, init_process):
1678 * lread.c (syms_of_lread, init_obarray):
1679 * font.c (build_style_table):
1680 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1681 intern_c_string, calls to make_pure_string with
1682 make_pure_c_string. Use pure_cons instead of Fcons.
1683
5e2327cf
DN
1684 * process.c (socket_options): Make it const.
1685 (set_socket_option, init_process): Use a const pointer.
1686
1687 * lread.c (intern_c_string): New function.
1688 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1689 (defvar_int): Uset it. Make the name const char*.
1690
1691 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1692 (defvar_int): Update prototypes.
1693 (DEFUN, EXFUN): Support for prototypes is now required.
1694 (intern_c_string): New prototype.
1695 (struct Lisp_Subr): Make symbol_name constant.
1696
1697 * font.c (struct table_entry): Remove unused member. Make NAMES
1698 constant.
1699 (weight_table, slant_table, width_table): Make constant.
1700
1701 * emacs.c (struct standard_args): Make name and longname constant.
1702
1703 * character.h (DEFSYM): Use intern_c_string.
1704
a56eaaef
DN
17052009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1706
1707 * alloc.c (make_pure_c_string): New function.
1708
1709 * eval.c (Fautoload): Purecopy all arguments.
1710
f6a07420
KH
17112009-11-05 Kenichi Handa <handa@m17n.org>
1712
1713 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1714 the buffer in case of replace.
1715
5d28d4b1
DN
17162009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1717
1718 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1719
b349d111
SM
17202009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1721
d528b1ce
SM
1722 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1723 when applicable (bug#4851).
1724
b349d111
SM
1725 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1726 (P_): Support for prototypes is now required.
1727
c38eb027
CY
17282009-10-31 Chong Yidong <cyd@stupidchicken.com>
1729
1730 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1731 (Bug#4827).
1732
0405f8d9
EZ
17332009-10-30 Eli Zaretskii <eliz@gnu.org>
1734
d528b1ce 1735 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1736
ca0a881a
DN
17372009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1738
1739 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1740
d528b1ce
SM
1741 * lread.c (Fload): Purecopy the file name when building
1742 Vpreloaded_file_list.
ca0a881a 1743
47e0e0e4
JR
17442009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1745
1746 * w32fns.c (syms_of_w32fns): Change default value of
1747 w32-scroll-lock-modifier to nil. (Bug#2827)
1748
057bce6f
JB
17492009-10-26 Juanma Barranquero <lekktu@gmail.com>
1750
782a943e 1751 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1752
242bc74c
AS
17532009-10-26 Andreas Schwab <schwab@redhat.com>
1754
1755 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1756
522d013a
JB
17572009-10-26 Juanma Barranquero <lekktu@gmail.com>
1758
1759 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1760 For delta < 0, skip check that only makes sense when the mini-window
1761 is going to be enlarged. (Bug#4534)
1762
18060980
CY
17632009-10-25 Chong Yidong <cyd@stupidchicken.com>
1764
1765 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1766 string in menu maps (Bug#4471).
1767
fec8f0fe
CY
17682009-10-24 Chong Yidong <cyd@stupidchicken.com>
1769
1770 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1771 FRAME_NS_VIEW on terminal frames (Bug#4765).
1772
10d66ec0
AS
17732009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1774
1cae01f7
AS
1775 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1776 DBUS_TYPE_UINTnn separately to get proper sign extension.
1777
58a12889
AS
1778 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1779 can properly handle unsigned types.
d528b1ce 1780 (make_uid, make_gid): Remove.
58a12889 1781
987c9327
AS
1782 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1783 types again.
1784
522d013a 1785 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1786 (system_process_attributes): Likewise.
1787
905a9ed3
DN
17882009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1789
1790 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1791
1792 * eval.c (Fautoload): Purecopy the filename. Simplify.
1793
1794 * category.c (Fdefine_category): Purecopy docstring.
1795
a599b3e8
AS
17962009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1797
7b792fc9
AS
1798 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1799
a599b3e8
AS
1800 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1801
b35ac83e
CY
18022009-10-23 Chong Yidong <cyd@stupidchicken.com>
1803
1804 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1805 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1806 (Bug#4775).
1807
e8903e00
SM
18082009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1809
1810 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1811 (init_fileio_once):
1812 * lisp.h (init_fileio_once): Remove.
1813 * emacs.c (main): Don't call init_fileio_once.
1814
8f43cbf3
DN
18152009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1816
1817 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1818
26898943
AS
18192009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1820
1821 * doprnt.c (doprnt): Fix overflow check.
1822
5c646d5a
JD
18232009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1824
3132a7ea
JD
1825 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1826
5c646d5a
JD
1827 * xterm.h (x_wait_for_event): Declare it.
1828
1829 * xterm.c (pending_event_wait): New variable.
1830 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1831 see pending_event_wait.eventtype.
1832 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1833 (x_new_font): Call change_frame_size with new rows/columns before we
1834 try to resize the frame.
5c646d5a 1835 (x_wait_for_event): New function.
d528b1ce
SM
1836 (x_set_window_size_1): Don't change gravity unless change_gravity
1837 is set.
5c646d5a
JD
1838 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1839 don't change frame size, instead wait for the ConfigureNotify.
1840 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1841 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1842 (x_initialize): Initialize pending_event_wait.
1843
1844 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1845 size.
1846
1847 * widget.c (EmacsFrameSetValues): Add comment.
1848 (EmacsFrameSetCharSize): Just call x_set_window_size.
1849
1850 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1851 x_wait_for_event.
d528b1ce 1852 (flush_and_sync): Remove again.
5c646d5a
JD
1853 (xg_get_font_name): Suggest monospace if no previous font is known.
1854
e9c1637d
SM
18552009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1856
1857 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1858 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1859
5a72cccb
YM
18602009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1861
1862 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1863 processing pending events when event is filtered for input method.
ab04798f 1864 (Bug#3681)
5a72cccb 1865
2629aa37
JB
18662009-10-20 Juanma Barranquero <lekktu@gmail.com>
1867
1868 * fns.c: Add #endif accidentally removed in previous change.
1869
c3417a74
DN
18702009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1871
1872 * fns.c: Remove code for unsupported system: MAC_OS.
1873 * image.c: Likewise. Include setjmp.h.
1874
9685cef2
JD
18752009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1876
1877 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1878 pixel -1 (bug #4742).
1879
d7306fe6
DN
18802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1881
019d2c4c
DN
1882 * process.c (create_pty): Remove conditionals for no longer
1883 supported systems: UNIPLUS and RTU.
1884
ee6bacd4
DN
1885 * xterm.c:
1886 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1887
d7306fe6
DN
1888 * alloc.c: Do not define struct catchtag.
1889 * eval.c: Move struct catchtag definition ...
1890 * lisp.h: ... here.
1891
1892 * image.c: Move png.h #include earlier to avoid warnings.
1893
1894 * xterm.c:
1895 * xsmfns.c:
1896 * xselect.c:
1897 * xrdb.c:
1898 * xmenu.c:
1899 * xftfont.c:
1900 * xfont.c:
1901 * xfns.c:
1902 * xfaces.c:
1903 * xdisp.c:
1904 * window.c:
1905 * widget.c:
1906 * w32xfns.c:
1907 * w32uniscribe.c:
1908 * w32term.c:
1909 * w32select.c:
1910 * w32reg.c:
1911 * w32proc.c:
1912 * w32menu.c:
1913 * w32inevt.c:
1914 * w32heap.c:
1915 * w32font.c:
1916 * w32fns.c:
1917 * w32console.c:
1918 * w32.c:
1919 * w16select.c:
1920 * vm-limit.c:
1921 * unexsol.c:
1922 * unexec.c:
1923 * unexcw.c:
1924 * unexaix.c:
1925 * undo.c:
1926 * tparam.c:
1927 * textprop.c:
1928 * terminfo.c:
1929 * terminal.c:
1930 * termcap.c:
1931 * term.c:
1932 * syntax.c:
1933 * sound.c:
1934 * sheap.c:
1935 * search.c:
1936 * scroll.c:
1937 * region-cache.c:
1938 * regex.c:
1939 * ralloc.c:
1940 * process.c:
1941 * print.c:
b024548b
DN
1942 * nsterm.m:
1943 * nsselect.m:
1944 * nsmenu.m:
1945 * nsimage.m:
1946 * nsfont.m:
1947 * nsfns.m:
d7306fe6
DN
1948 * msdos.c:
1949 * minibuf.c:
1950 * menu.c:
1951 * marker.c:
1952 * macros.c:
1953 * keymap.c:
1954 * keyboard.c:
1955 * intervals.c:
1956 * insdel.c:
1957 * indent.c:
1958 * gtkutil.c:
1959 * ftxfont.c:
1960 * ftfont.c:
1961 * fringe.c:
1962 * frame.c:
1963 * fontset.c:
1964 * font.c:
1965 * fns.c:
1966 * floatfns.c:
1967 * filelock.c:
1968 * fileio.c:
1969 * emacs.c:
1970 * editfns.c:
1971 * dosfns.c:
1972 * doprnt.c:
1973 * doc.c:
1974 * dispnew.c:
1975 * dired.c:
1976 * dbusbind.c:
1977 * data.c:
1978 * composite.c:
1979 * coding.c:
1980 * cmds.c:
1981 * cm.c:
1982 * chartab.c:
1983 * charset.c:
1984 * character.c:
1985 * ccl.c:
1986 * category.c:
1987 * casetab.c:
1988 * casefiddle.c:
1989 * callproc.c:
1990 * callint.c:
1991 * bytecode.c:
1992 * buffer.c:
1993 * atimer.c: Include setjmp.h. (Bug#4643)
1994
fd5f21e6
SM
19952009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1996
4c0354d7
SM
1997 Remove leftover table unibyte_to_multibyte_table.
1998 * character.c (unibyte_to_multibyte_table): Remove.
1999 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2000 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2001 * character.h (UNIBYTE_TO_CHAR): New macro.
2002 (MAKE_CHAR_MULTIBYTE): Use it.
2003 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2004 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2005 (message_dolog, set_message_1):
2006 * search.c (Freplace_match):
2007 * editfns.c (Fcompare_buffer_substrings):
2008 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2009 (concat):
2010 * insdel.c (copy_text, count_size_as_multibyte):
2011 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2012 * term.c (produce_glyphs):
2013 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2014 * regex.c (RE_CHAR_TO_MULTIBYTE):
2015 * cmds.c (internal_self_insert):
2016 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2017
fd5f21e6
SM
2018 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2019
4418646e
DN
20202009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2021
2022 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2023
35f5c1d2
JB
20242009-10-16 Juanma Barranquero <lekktu@gmail.com>
2025
2026 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2027
a0cd8f6b
AR
20282009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2029
2030 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2031 still needed under Tiger.
2032
2033 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2034
2035 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2036 __Apple__.
2037
2038 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2039
01a8d3fa
KH
20402009-10-15 Kenichi Handa <handa@m17n.org>
2041
2042 * print.c (print_object): Escape a symbol like "2E10" too.
2043
bf6c75c9 20442009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2045
2046 Cleanups and changes for 64-bit compile under Snow Leopard.
2047 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2048
2049 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2050
c5959062 2051 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2052 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2053 cast argument.
2054 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2055 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2056
2057 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2058
2059 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2060 where appropriate.
2061
2062 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2063 where appropriate.
6e4780c5
JB
2064 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2065 Use stringWithUTF8String.
bf6c75c9
AR
2066 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2067
6e4780c5
JB
2068 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2069 Add formal protocol mention to inheritance.
bf6c75c9
AR
2070 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2071
6e4780c5
JB
2072 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2073 Fix printf format.
bf6c75c9
AR
2074 (ns_query_color): Use CGFloat where appropriate.
2075 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2076 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2077 argument.
2078
3d87f118
AR
2079 * config.in (NS_HAVE_NSINTEGER): Drop.
2080
a95c8102
AR
2081 * dbusbind.c (dbus-method-return-internal)
2082 (dbus-method-error-internal): Use long format in printf, and cast
2083 argument.
2084
2085 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2086 in printf, and cast argument.
2087
6873acca 2088 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2089 cast argument.
2090
9ec6f100
GM
20912009-10-11 Glenn Morris <rgm@gnu.org>
2092
2093 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2094
5be883cd
JD
20952009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2096
2097 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2098 menu bar with a small width so it doesn't enlarge the frame.
2099
d7a39b51
JB
21002009-10-08 Juanma Barranquero <lekktu@gmail.com>
2101
2102 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2103
0c2b6f8e
GM
21042009-10-06 Glenn Morris <rgm@gnu.org>
2105
2106 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2107 SOME_MACHINE_LISP (this enters indirectly via DOC).
2108
e02131a2
EZ
21092009-10-05 Eli Zaretskii <eliz@gnu.org>
2110
2111 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2112
b4744254
EZ
21132009-10-04 Eli Zaretskii <eliz@gnu.org>
2114
2115 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2116 Doc fix.
2117
dbf64827
JB
21182009-10-03 Martin Rudalics <rudalics@gmx.at>
2119
2120 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2121
e9a0aef8
MA
21222009-10-02 Michael Albinus <michael.albinus@gmx.de>
2123
d528b1ce 2124 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2125 used anymore outside fileio.c.
2126
2127 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2128
64eb2b56
JB
21292009-10-01 Juanma Barranquero <lekktu@gmail.com>
2130
2131 * lisp.h (Qdelete_directory_internal):
2132 Declare, instead of Qdelete_directory.
2133
2134 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2135
9d28c33e
SM
21362009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2137
2138 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2139
9d8f3bd9
MA
21402009-10-01 Michael Albinus <michael.albinus@gmx.de>
2141
9d28c33e 2142 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2143 Fdelete_directory. It is not a command anymore. It has no file
2144 name handler.
2145
9694740b
SM
21462009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2147
2148 * xdisp.c (get_next_display_element): Use an enum in last change.
2149
748e162f
KH
21502009-09-28 Kenichi Handa <handa@m17n.org>
2151
9694740b 2152 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2153 unibyte_display_via_language_environment in handling
2154 Vnobreak_char_display.
2155
17efd58d
AR
21562009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2157
2158 * nsterm.h (ns_app_name): New extern variable.
2159
2160 * nsterm.m (ns_app_name): New variable.
2161 (ns_term_init): Set and use it.
2162 (ns_term_shutdown): Use it.
2163
2164 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2165 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2166
2167 * nsfns.m (ns_set_name_iconic, ns_set_name)
2168 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2169 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2170
9694740b
SM
2171 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2172 Remove double-casting in client_data comparison.
31c2d412 2173
3208cb35
YM
21742009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2175
2176 * keyboard.c (make_lispy_event): Remember last wheel direction.
2177 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2178
b7d552d6
GM
21792009-09-26 Glenn Morris <rgm@gnu.org>
2180
2181 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2182 internal.elc. Add term/pc-win.elc.
2183 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2184 term/x-win.elc.
2185 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2186 term/w32-win.elc.
2187 (NS_SUPPORT): New.
2188 (lisp): Add NS_SUPPORT.
2189 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2190
4ff670a8
DR
21912009-09-25 David Reitter <david.reitter@gmail.com>
2192
2193 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2194 on Mac OS X 10.6+ (bug#4513).
2195
feabfb6c
JB
21962009-09-24 Juanma Barranquero <lekktu@gmail.com>
2197
2198 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2199 some parts of Emacs code (like font selection) don't grok them.
2200 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2201
de59072a
AS
22022009-09-24 Andreas Schwab <schwab@redhat.com>
2203
2204 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2205
a489517b
JB
22062009-09-24 Juanma Barranquero <lekktu@gmail.com>
2207
2208 * dired.c (Fdirectory_files): Fix typo in docstring.
2209
0592970c
AR
22102009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2211
2212 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2213 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2214 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2215 under GNUstep.
2216 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2217
2218 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2219 glyph advancement.
2220
48e8a88b
AR
22212009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2222
2223 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2224 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2225
2226 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2227 deleted (bug #4492).
2228
e14f0a78
AR
2229 * nsfont.m (Vns_reg_to_script): New lisp variable.
2230 (syms_of_nsfont): Declare it.
2231 (ns_registry_to_script): New function.
2232 (ns_get_req_script): Call it.
2233 (ns_findfonts): Don't give up on non-unicode registry.
2234
2235 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2236
5b650faa
SM
22372009-09-20 Tom Tromey <tromey@redhat.com>
2238
2239 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2240 batch mode (bug#4228).
2241
a489517b 22422009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2243
2244 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2245 carefully. (Bug #4339)
0bae4e09 2246
fcfe06f3
CY
22472009-09-18 Chong Yidong <cyd@stupidchicken.com>
2248
d798ba87 2249 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2250
31642728
AR
22512009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2252
2253 * emacs.c (inhibit_x_resources): Update doc string for NS.
2254 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2255 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2256
2257 * nsterm.h (ns_no_defaults): Remove.
2258
2259 * nsterm.m (ns_no_defaults): Remove.
2260 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2261 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2262 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2263 don't update the NSWindow itself.
2264 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2265 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2266
2267 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2268 ns_use_qd_smoothing.
2269
2270 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2271 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2272 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2273 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2274
8686ac71
JB
22752009-09-17 Juanma Barranquero <lekktu@gmail.com>
2276
2277 * emacs.c (inhibit_x_resources): New variable.
2278 (main) [HAVE_NS]: Don't process --quick command line option.
2279 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2280
2281 * lisp.h (inhibit_x_resources): Declare it extern.
2282
2283 * w32reg.c (x_get_string_resource):
2284 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2285
e227ba05
EZ
22862009-09-17 Eli Zaretskii <eliz@gnu.org>
2287
362654a6
JB
2288 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2289 Add lisp/term/internal.elc.
e227ba05 2290
742d40e8
SM
22912009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2292
2293 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2294 (bug#4461).
2295
005bd5a2
DN
22962009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2297
2298 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2299
2300 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2301 (OBJECTS_MACHINE): Remove, unused.
2302
f9af9719
SM
23032009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2304
2305 * frame.c (x_get_resource_string): Remove unused.
2306
0307c7d2
JD
23072009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2308
2309 * xterm.c (x_new_font): Call change_frame_size before calling
2310 x_set_window_size, in case frame size won't change.
2311
2312 * frame.c (x_set_font): Remove dead code.
2313
428b13d6
SM
23142009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2315
2316 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2317
5766c380
SM
23182009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2319
2320 * lread.c (Fload): Don't output a message after loading an obsolete
2321 package any more (done in Lisp now).
2322
2fd0161b
CY
23232009-09-12 Chong Yidong <cyd@stupidchicken.com>
2324
2325 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2326
bc5e75b6
SM
23272009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2328
2329 * keymap.c (Fwhere_is_internal): Use nconc2.
2330
c31c985e
AM
23312009-09-11 Alan Mackenzie <acm@muc.de>
2332
2333 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2334 batch mode.
2335
78012bd2
AS
23362009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2337
2338 * xdisp.c (display_mode_element): Detect cycles.
2339
9d889332
SM
23402009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2341
2342 * keymap.c (where_is_internal): Don't erroneously return nil right after
2343 filling the cache.
2344 (where_is_internal_1): Fix up typo.
2345
7ab5d780
GM
23462009-09-11 Glenn Morris <rgm@gnu.org>
2347
2348 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2349 share a common doc-string.
2350
5238a749
SM
23512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2352
66d77eda
SM
2353 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2354 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2355
5238a749
SM
2356 * keymap.c (QCadvertised_binding): New constant.
2357 (syms_of_keymap): Initialize it.
2358 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2359 if applicable.
2360
19f48442
SM
23612009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2362
50d4ba39
SM
2363 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2364 (parse_menu_item): Streamline since bindings are recomputed all the
2365 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2366 more and don't support lmenu's menu-alias any more either.
2367
a88a5372
SM
2368 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2369 (where_is_internal): Strip it down to only traverse the keymaps.
2370 Move the cache handling from Fwhere_is_internal to here.
2371 (Fwhere_is_internal): Move the handling of remapping and the choice of
2372 the best binding from where_is_internal to here.
2373 Unify the cached/noncached paths, so remapping is also handled
2374 correctly when the cache is used, and so the cache can be used to
2375 speed up remap-handling when applicable.
2376 Give preference to non-remapped bindings.
2377 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2378 non-remapped bindings.
2379 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2380 command remapping.
2381
19f48442
SM
2382 * xdisp.c (display_mode_element): Move list length limit from 50 to
2383 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2384
599498c3 23852009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2386
2387 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2388
f9b7b5ac
SM
23892009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2390
a53af587
JB
2391 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2392 (Bug#4334)
2393
f9b7b5ac
SM
2394 * keymap.c (where_is_internal): Filter out shadowed remappings.
2395 Assume that where_is_internal returns unshadowed bindings to simplify
2396 the code and get rid of the gotos. Use ASIZE.
2397
04f4b72d
JD
23982009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2399
4da146f2
JD
2400 * xterm.c (x_focus_changed): If we get a focusout and pointer
2401 is invisible, make it visible.
2402
04f4b72d
JD
2403 * xterm.h: Remove condition for declaration of
2404 x_*_window_to_frame.
2405
7cef7ce3
SM
24062009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2407
2408 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2409 initial terminal as well.
2410
a54fa5b7
JD
24112009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2412
2413 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2414 x_menubar_window_to_frame.
a54fa5b7
JD
2415
2416 * xterm.c: Remove declarations also in xterm.h
2417 (XTmouse_position): Do not return valid positions
2418 for clicks in the menubar and the toolbar for Gtk+.
2419
2420 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2421 if the widget for the event has the same top level as a frame,
2422 return the frame.
2423 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2424 internal windows, bug #4122.
2425 (x_non_menubar_window_to_frame): Remove.
2426
5a021dd0
GM
24272009-09-02 Glenn Morris <rgm@gnu.org>
2428
2429 * buffer.c (default-major-mode): Move most of the doc from here...
2430 (major-mode): ... to here.
2431
548fe2f3
NR
24322009-08-30 Nick Roberts <nickrob@snap.net.nz>
2433
2434 * process.c (wait_reading_process_output): Keep the descriptor
2435 when pty is used by a non-child process, e.g., in I/O buffer of
2436 GDB this allows inferior to be restarted.
2437
e0840eef
EZ
24382009-08-29 Eli Zaretskii <eliz@gnu.org>
2439
2440 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2441 both branches into one.
2442
82e98df4
SM
24432009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2444
2445 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2446 (main): Use enable-multibyte-characters rather than
2447 default-enable-multibyte-characters. Output a warning message when
2448 running a unibyte session.
2449
890617cb
YM
24502009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2451
2452 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2453 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2454 (copy_data_segment): Also copy __program_vars section.
2455 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2456 (dump_it) [LC_DYLD_INFO]: Use it.
2457
2458 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2459
e7adeadc
EZ
24602009-08-28 Eli Zaretskii <eliz@gnu.org>
2461
2462 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2463 $(SRC)/buildobj.h.
2464 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2465 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2466 $(SRC)/buildobj.h.
2467 (clean): Add buildobj.h.
2468
3ed8bbdc
TZ
24692009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2470
2471 * print.c (print_object): Set escapeflag to 1 when printing
2472 hashtable keys and values.
2473
155a6764
SM
24742009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2475
2476 * lread.c (read_integer): Use doubles (and potentially return a float
2477 number) as we do in string-to-number.
2478 (read1): Use strtol to read integers, signal errors on strtol's
2479 overflow and use floats if strtol's output is too large for
2480 Elisp integers.
2481
877610de
EZ
24822009-08-27 Eli Zaretskii <eliz@gnu.org>
2483
2484 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2485 (make-buildobj-SH): Fix last change.
2486 (SRC): Move to before where it's first used.
2487
ef73e7be
KH
24882009-08-27 Kenichi Handa <handa@m17n.org>
2489
550c8289
KH
2490 * process.c (send_process): Use encode_coding_object instead of
2491 encode_coding_string to perform eol-conversion even if the string
2492 is unibyte.
2493
60afa08d
KH
2494 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2495 character.
2496
ef73e7be 2497 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2498 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2499
7b3a82d7
DN
25002009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2501
5654bf63
DN
2502 * callproc.c (Fcall_process): Remove always true #if.
2503
7b3a82d7
DN
2504 * lisp.h: Replace #if 0 code for checking with text pointing to
2505 the --enable-checking configure flag.
2506
2507 * emacs.c (main): Mention the --enable-profiling configure flag
2508 instead of using CFLAGS.
2509
878bde49
KR
25102009-08-26 Ken Raeburn <raeburn@raeburn.org>
2511
2512 * Makefile.in (buildobj.h): New target.
2513 (doc.o): Depend on it.
2514 (temacs${EXEEXT}): Don't generate buildobj.lst.
2515 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2516 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2517 ($(BLD)/doc.$(O)): Depend on it.
2518 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2519 provided by Eli Zaretskii.)
2520 ($(TEMACS)): Don't generate buildobj.lst.
2521 * doc.c: Include buildobj.h.
2522 (buildobj): New static variable.
2523 (Fsnarf_documentation): Use it, instead of opening and reading
2524 buildobj.lst.
2525
1574224c
MA
25262009-08-25 Michael Albinus <michael.albinus@gmx.de>
2527
2528 * dbusbind.c (Fdbus_call_method)
2529 (Fdbus_call_method_asynchronously): Use English numeric format for
2530 timeout values in doc string.
2531
d9da2f45
KH
25322009-08-25 Kenichi Handa <handa@m17n.org>
2533
ef73e7be
KH
2534 * alloc.c (mark_char_table): New function.
2535 (mark_object): Use mark_char_table for a char-table.
2536
d9da2f45
KH
2537 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2538 (CHAR_TABLE_REF): Use it.
2539
c8edcc01
KR
25402009-08-23 Ken Raeburn <raeburn@raeburn.org>
2541
2542 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2543 before invoking the newly build emacs to check for load-path
2544 shadowing.
2545
7763401b
GM
25462009-08-22 Glenn Morris <rgm@gnu.org>
2547
2548 * Makefile.in (bootstrap_exe): New variable.
2549 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2550 Use ${bootstrap_exe}.
2551
729eadda
EZ
25522009-08-22 Eli Zaretskii <eliz@gnu.org>
2553
2554 * coding.h (encode_coding_string): Don't encode unibyte strings.
2555 (Bug#4047)
2556
eb4c6ace
MA
25572009-08-22 Michael Albinus <michael.albinus@gmx.de>
2558
2559 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2560
2561 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2562 intended as hotfix only.
2563 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2564
36e34d1b
AR
25652009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2566
2567 * nsterm.m (ns_get_color): Update documentation properly for last
2568 change, and clean up loose ends in the code left by it. Fix
2569 longstanding bug with 16-bit hex parsing, and add support for
2570 yet another X11 format (rgb:r/g/b) for compatibility.
2571 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2572 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2573
f983eb8a
SM
25742009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2575
2576 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2577
3f56d3c6
MA
25782009-08-20 Michael Albinus <michael.albinus@gmx.de>
2579
2580 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2581 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2582 (xd_initialize, xd_pending_messages): Check, whether
2583 $DBUS_SESSION_BUS_ADDRESS is set.
2584
fb641d68
YM
25852009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2586
2587 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2588
2589 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2590
cf59a374
GM
25912009-08-20 Glenn Morris <rgm@gnu.org>
2592
2593 * emacs.c (system-type): Doc fix.
2594
1373f3be
SM
25952009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2596
2597 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2598 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2599
058ed861
MA
26002009-08-18 Michael Albinus <michael.albinus@gmx.de>
2601
1373f3be
SM
2602 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2603 New functions.
058ed861
MA
2604 (xd_initialize): Revert change from 2009-08-16.
2605
563a866e 26062009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2607
2608 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2609 font-group vector, return nil.
5fc05db0 2610
e42bdf01
CY
26112009-08-17 Chong Yidong <cyd@stupidchicken.com>
2612
2613 * process.c (status_notify): Don't perform redisplay.
2614 (Fdelete_process, list_processes_1, process_send_signal):
2615 Expliticly perform redisplay.
2616 (wait_reading_process_output): Always check process status, but
2617 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2618
4230ab74
KR
26192009-08-17 Ken Raeburn <raeburn@raeburn.org>
2620
1373f3be 2621 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2622 (XFLOAT_INIT): New macro for storing a float value.
2623 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2624 * fns.c (sxhash): Copy out the value of a float in order to
2625 examine its bytes.
2626 * dbusbind.c (xd_append_arg): Likewise.
2627
4230ab74
KR
2628 * emacs.c (main): Don't call syms_of_data twice.
2629
a0645cdd
MA
26302009-08-16 Michael Albinus <michael.albinus@gmx.de>
2631
2632 * dbusbind.c (xd_initialize): Add connection file descriptor to
2633 input_wait_mask, in order to let select() detect, whether a new
2634 message has been arrived.
ca4f31ea 2635 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2636
485db0ba
MA
26372009-08-15 Michael Albinus <michael.albinus@gmx.de>
2638
1373f3be
SM
2639 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2640 New functions.
485db0ba
MA
2641
2642 * lisp.h (xd_pending_messages): Declare.
2643
2644 * keyboard.c (readable_events): Call xd_pending_messages.
2645
b5b98ff4
CY
26462009-08-15 Chong Yidong <cyd@stupidchicken.com>
2647
1373f3be 2648 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2649
f8354c6e
CY
2650 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2651
b5b98ff4
CY
2652 * buffer.c (set_buffer_internal_1)
2653 (swap_out_buffer_local_variables): Check for unbound local
2654 variables (Bug#4138).
2655
8b9fc636
EZ
26562009-08-14 Eli Zaretskii <eliz@gnu.org>
2657
2658 * process.c (create_pty): Fix last change.
2659
ce959360
CY
26602009-08-13 Chong Yidong <cyd@stupidchicken.com>
2661
2662 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2663 (xbm_load_image): Caller changed.
64b807c9 2664 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2665
c7baf7e9
NR
26662009-08-13 Nick Roberts <nickrob@snap.net.nz>
2667
2668 * process.c (create_pty): New function.
2669 (Fstart_process): Use it to allow Emacs to just associate a pty
2670 with the buffer. See associated change in gdb-mi.el.
2671 (list_processes_1): Deal with no program name.
2672 (start_process_unwind): Use pid == -2 to mean no process.
2673
1ac9108a
SM
26742009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2675
2676 * cmds.c (nonundocount): New global variable.
2677 (keys_of_cmds): Initialize it.
2678 (Fself_insert_command): Use it to combine upto 20 sequential chars
2679 into a single undo entry, just like the Qself_insert_command code in
2680 keyboard.c does.
2681 Call frame_make_pointer_invisible, also like the Qself_insert_command
2682 code in keyboard.c does.
2683 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2684 than its own local replacement for it.
2685
e267324c
KR
26862009-08-10 Ken Raeburn <raeburn@raeburn.org>
2687
1ac9108a 2688 * fns.c (concat): Don't re-set string length to its current value.
77437343 2689
1ac9108a
SM
2690 * coding.h (decode_coding_string, encode_coding_string):
2691 Use SBYTES macro.
f0bed503 2692
1ac9108a 2693 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2694 (doprnt): Merge with doprnt1, discarding lispstrings code.
2695 * lisp.h (doprnt_lisp): Don't declare.
2696
416e006d
JL
26972009-08-07 Juri Linkov <juri@jurta.org>
2698
2699 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2700
6f7d5780
DN
27012009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2702
2703 * print.c (syms_of_print): Undo previous change.
2704
f19a0f5b
TZ
27052009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2706
2707 * lread.c (read1, syms_of_lread): Read hashtables back from the
2708 readable format.
2709
2710 * print.c (print_preprocess, print_object): Print hashtables fully
2711 and readably.
2712 (syms_of_print): Provide 'hashtable-print-readable.
2713
b9173dc2
AR
27142009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2715
2716 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2717 no family set.
2718 (nsfont_open): Handle case when entity has no family.
2719
1586503c
AR
27202009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2721
2722 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2723 element, not a list, for match case.
2724
087048cd
KH
27252009-07-28 Kenichi Handa <handa@m17n.org>
2726
2727 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2728 rigidly.
2729
2730 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2731 font_parse_xlfd. Check font properties more rigidly.
2732
780c2506
DN
27332009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2734
31fd7c5c
JB
2735 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2736 bsd-common.h.
780c2506 2737
a8c0cc18
KH
27382009-07-27 Kenichi Handa <handa@m17n.org>
2739
2740 * xfaces.c (face_with_height): Call font_clear_prop.
2741
4fbe2306
CY
27422009-07-26 Chong Yidong <cyd@stupidchicken.com>
2743
111d9af3
CY
2744 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2745
2746 * xterm.c (x_term_init): Use Qx.
2747
4fbe2306
CY
2748 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2749
1ac9108a 2750 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2751 (ns_get_color): Revert 2009-07-16 change.
2752
beb0b7f9
EZ
27532009-07-25 Eli Zaretskii <eliz@gnu.org>
2754
2755 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2756 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2757
2baf5e76
KR
27582009-07-25 Ken Raeburn <raeburn@raeburn.org>
2759
1ac9108a
SM
2760 * coding.h (decode_coding_string, encode_coding_string):
2761 Use SCHARS macro.
8890e5f5 2762
2baf5e76 2763 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2764 (load_depth): Delete.
2baf5e76
KR
2765 (Qload_in_progress): New variable.
2766 (load_unwind): Don't reference load_depth or load_in_progress.
2767 (Fload): Likewise; specbind Qload_in_progress instead.
2768 (init_lread): Don't initialize load_depth.
2769 (syms_of_lread): Initialize and protect Qload_in_progress.
2770
1395c6f5
AR
27712009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2772
2773 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2774
4e2f36cf
AR
27752009-07-23 Yavor Doganov <yavor@gnu.org>
2776
2777 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2778
5dd9a6f7
AR
27792009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2780
2781 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2782 Bugs 3792, 3720, 2402.
2783 (ns_lookup_indexed_color): Check for bad index.
2784 (ns_index_color): Init unused slot to 0.
2785 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2786 Bug 3714, possibly 3082.
5dd9a6f7 2787
c902b920
JR
27882009-07-22 Jason Rumney <jasonr@gnu.org>
2789
1ac9108a
SM
2790 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2791 Position IME window at cursor (Bug#2570).
c902b920
JR
2792 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2793 (globals_of_w32fns): Dynamically load functions required above.
2794
2795 * w32term.c (w32_draw_window_cursor): Send message to reposition
2796 any IME window.
2797
090101cf
CY
27982009-07-21 Chong Yidong <cyd@stupidchicken.com>
2799
2800 * fileio.c: Revert 2009-07-16 changes.
2801 (Vauto_save_include_big_deletions): New variable.
2802 (Fdo_auto_save): Disable auto-save only if
2803 auto-save-include-big-deletions is nil.
2804
e6583e3d
CY
28052009-07-21 Chong Yidong <cyd@stupidchicken.com>
2806
2807 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2808 the overflowed pixels into account (Bug#3879).
2809
ece435a5
KR
28102009-07-21 Ken Raeburn <raeburn@raeburn.org>
2811
2812 * lread.c (load_depth): New variable.
2813 (Fload, load_unwind, init_lread): Set it to the load recursion
2814 depth; set load_in_progress as a simple boolean based on the
2815 current load_depth. (Bug#3892)
2816
40b2d973
AR
28172009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2818
2819 * nsfont.m (ns_has_attribute): Remove.
2820 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2821
10be7e0d
JL
28222009-07-18 Juri Linkov <juri@jurta.org>
2823
2824 * process.c (Fset_process_query_on_exit_flag): Mention killing
2825 a buffer in docstring.
2826
fa055055
KH
28272009-07-17 Kenichi Handa <handa@m17n.org>
2828
2829 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2830
042f7b69
YM
28312009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2832
2833 * nsfns.m (Fns_set_alpha): Remove function.
2834 (syms_of_nsfns): Don't defsubr it.
2835
2836 * nsterm.m (ns_get_color): Remove incompatible color formats.
2837 (ns_color_to_lisp): Generate #rrggbb color format string.
2838
4be941e3
RS
28392009-07-16 Richard Stallman <rms@gnu.org>
2840
2841 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2842 (Fset_buffer_auto_saved): Handle save_length = -2.
2843
4e6b227d
CY
28442009-07-16 Chong Yidong <cyd@stupidchicken.com>
2845
2846 * xterm.c (Qx_gtk_map_stock): New var.
2847
2848 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2849 of calling intern each time.
2850
a1856973
YM
28512009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2852
2853 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2854 does tiling.
2855
2856 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2857
497e54d8
KH
28582009-07-14 Kenichi Handa <handa@m17n.org>
2859
72d36834
KH
2860 * font.c (font_vconcat_entity_vectors): New function.
2861 (struct font_sort_data): New member font_driver_preference.
2862 (font_compare): Check font_driver_preference.
2863 (font_sort_entities): The format of the first argument changed.
2864 (font_delete_unmatched): Likewise.
2865 (font_list_entities): The return type changed.
2866 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2867 (font_find_for_lface): Adjuste for the above changes.
2868 Don't suppress the checking of C even if the repertory supports it.
2869 (Flist_fonts): Adjust for the above changes.
72d36834 2870
1ac9108a
SM
2871 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2872 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2873 Reject a font who has adstyle property that is different from a
2874 langname derived from registry property.
1ac9108a 2875 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2876
b6046155
EZ
28772009-07-13 Eli Zaretskii <eliz@gnu.org>
2878
2879 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2880 local copy of dirfilename.
2881
fb6b6049
KH
28822009-07-13 Kenichi Handa <handa@m17n.org>
2883
e2402a5e
KH
2884 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2885 against max_char.
2886
fb6b6049
KH
2887 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2888 calling XSYMBOL (sym).
2889
65156807
EZ
28902009-07-11 Eli Zaretskii <eliz@gnu.org>
2891
1ac9108a
SM
2892 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2893 New function.
2894 (directory_files_internal) [WINDOWSNT]:
2895 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2896 the filesystem of the directory is fast or slow.
2897
2898 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2899 file name.
2900 (is_slow_fs): New function.
2901 (stat): Use it to determine whether to issue more system calls to
2902 get accurate file attributes, when w32-get-true-file-attributes is
2903 `local'.
2904
e0ab5fcf
JD
29052009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2906
2907 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2908 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2909 parameter font-parameter as default to the font dialog.
2910
784ceded
KH
29112009-07-10 Kenichi Handa <handa@m17n.org>
2912
2913 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2914
fb8edc0b
EZ
29152009-07-09 Eli Zaretskii <eliz@gnu.org>
2916
1ac9108a 2917 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2918
fb8edc0b
EZ
2919 * w32.c (stat): Treat UNC file names as residing on remote
2920 drives. (Bug#3542)
2921
635c75b1
KH
29222009-07-09 Kenichi Handa <handa@m17n.org>
2923
2924 * fontset.c (fontset_find_font): Fix previous change.
2925
c1d5ce94
MA
29262009-07-08 Michael Albinus <michael.albinus@gmx.de>
2927
2928 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2929 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2930 error flag.
2931
edb61b39
KH
29322009-07-08 Kenichi Handa <handa@m17n.org>
2933
374bf7e4
KH
2934 * fontset.c (fontset_find_font): Fix the logic of handling
2935 charset_matched.
2936 (font_for_char): Delete unused var.
2937 (generate_ascii_font_name): Delete it.
2938
edb61b39
KH
2939 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2940
2941 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2942 (encode_coding_sjis): Fix the code range check.
2943
0f3f018c
CY
29442009-07-07 Chong Yidong <cyd@stupidchicken.com>
2945
2946 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2947 (Fexpand_file_name): Copy string data properly (Bug#3772).
2948
fcaf6f3a
JD
29492009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2950
2951 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2952 first MapNotify.
2953
6809ca75
KH
29542009-07-07 Kenichi Handa <handa@m17n.org>
2955
2956 * character.h (unibyte_has_multibyte_table): Delete extern.
2957 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2958
2959 * charset.c (Fset_charset_priority): Update charset_unibyte.
2960 (syms_of_charset): Initialize charset_unibyte.
2961
2962 * character.c (unibyte_has_multibyte_table): Delete it.
2963 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2964 charset_unibyte.
2965 (multibyte_char_to_unibyte_safe): Likewise.
2966 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2967
1ac9108a 2968 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2969 (x_produce_glyphs): Likewise.
2970
2971 * .gdbinit (xcharset): Fix the treating $arg0.
2972
ad9e2d54
EZ
29732009-07-04 Eli Zaretskii <eliz@gnu.org>
2974
2975 Emulation of `getloadavg' on MS-Windows.
2976 * w32.c: Include float.h
2977 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2978 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2979 (get_native_system_info, get_system_times): New functions.
2980 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2981 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2982 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2983 g_b_init_get_system_times, and num_of_processors.
2984
0a3472c7
JR
29852009-07-03 Jason Rumney <jasonr@gnu.org>
2986
2987 * w32term.c (w32_initialize): Use standard types.
2988
80904120
EZ
29892009-07-03 Eli Zaretskii <eliz@gnu.org>
2990
2991 * dired.c (Ffile_attributes): Decode user and group names by the
2992 locale's encoding. (Bug#3443)
2993
6978862d
DN
29942009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2995
f8d23104
DN
2996 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2997 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2998
2999 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3000
3001 * term.c (init_tty): Remove spurious #ifdef.
3002
6978862d
DN
3003 * m/mips.h: Mention this file is also used for netbsd.
3004 * m/pmax.h: Remove file.
3005
e044e4fc
JD
30062009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3007
3008 * xterm.h (struct x_display_info): Add invisible_cursor.
3009 (struct x_output): Add current_cursor.
3010
3011 * xterm.c (XTtoggle_invisible_pointer): New function.
3012 (x_define_frame_cursor): Don't define cursor if invisible or the
3013 same as before. Set current_cursor.
3014 (x_create_terminal): Set toggle_invisible_pointer_hook.
3015
3016 * xfns.c (make_invisible_cursor): New function.
3017 (x_set_mouse_color): Call make_invisible_cursor.
3018 Set current_cursor.
3019 (x_window): Set current_cursor.
3020
3021 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3022
3023 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3024 inserting a character.
3025 (read_avail_input): Call frame_make_pointer_visible.
3026
3027 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3028 (frame_make_pointer_invisible, frame_make_pointer_visible):
3029 New functions.
e044e4fc
JD
3030 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3031
3032 * frame.h: Declare frame_make_pointer_invisible and
3033 frame_make_pointer_visible.
3034 (struct frame): Add pointer_invisible.
3035
574c8efa
JD
30362009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3037
7b507248
JD
3038 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3039 frame isn't visible.
3040 (xg_frame_resized): If width/height is -1, get size of window
3041 from X server.
3042
3043 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3044 for MapNotify.
3045
835bdaa7 3046 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3047 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3048 (flush_and_sync): Reintroduce.
574c8efa 3049
3f1c6666 30502009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3051
31fd7c5c 3052 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3053
3054 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3055 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3056
3057 * frame.h: Declare Qsticky.
3058
cad9ef74
JD
3059 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3060
3061 * nsfns.m (ns_frame_parm_handlers): Ditto.
3062
3063 * frame.c: Declare Qsticky.
3064 (frame_parms): Add sticky.
3065
3066 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3067
3068 * xterm.h: Declare x_set_sticky.
3069
3070 * xterm.c (x_set_sticky): New function.
3071
69b16610
JD
3072 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3073 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3074 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3075
3076 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3077
3078 * frame.c: Qmaximized is new.
3079 (x_set_frame_parameters): Do not handle fullscreen specially.
3080 Only set width and height if explicitly set.
3081 (x_set_fullscreen): Handle Qmaximized.
3082 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3083 (syms_of_frame): Initialize Qmaximized.
3084
1ac9108a
SM
3085 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3086 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3087
3088 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3089 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3090 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3091 set gravity to NorthWestGravity when USE_GTK.
3092 (set_wm_state): New function.
31fd7c5c 3093 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3094 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3095 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3096 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3097 to x_real_positions and x_fullscreen_adjust.
3098
3099 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3100 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3101 flush_and_sync.
3102 (xg_height_changed): New function.
3103 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3104 and gtk_window_set_policy. Set frame gravity after parsing the
3105 geometry string.
3f1c6666
JD
3106 (xg_update_frame_menubar, free_frame_menubar)
3107 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3108 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3109 Remove calls to xg_frame_set_char_size.
3110
fd503d99
KH
31112009-07-01 Kenichi Handa <handa@m17n.org>
3112
3113 * keyboard.c (decode_keyboard_code): New function.
3114 (tty_read_avail_input): Decode the input bytes if necessary.
3115
1ac9108a
SM
3116 * coding.c (setup_coding_system):
3117 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3118 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3119 use Qno_conversion.
3120
24ed93fb
YM
31212009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3122
3123 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3124
99061dfc
CY
31252009-06-30 Chong Yidong <cyd@stupidchicken.com>
3126
1ac9108a 3127 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3128
ff90fbde
JR
31292009-06-30 Jason Rumney <jasonr@gnu.org>
3130
3131 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3132 is already loaded.
3133 Set user model ID if supported (bug#1849).
3134
5f445726
JM
31352009-06-29 Jim Meyering <meyering@redhat.com>
3136
3137 Remove useless if-before-xfree test.
3138 * nsfont.m (nsfont_close): Remove useless test.
3139 * term.c (delete_tty): Likewise.
3140 * w32.c (system_process_attributes): Likewise.
3141 * w32font.c (w32font_close): Likewise.
3142 * xfaces.c (x_free_gc): Likewise.
3143 * xselect.c (buffer): Likewise.
3144
b9607587
AS
31452009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3146
3147 * process.c (send_process): Keep decoded string in a local
3148 variable and protect it from GC. (Bug#3521)
3149
89ba96f4
EZ
31502009-06-28 Eli Zaretskii <eliz@gnu.org>
3151
3152 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3153 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3154
098a1589
CY
31552009-06-28 Chong Yidong <cyd@stupidchicken.com>
3156
485422be
CY
3157 * xdisp.c (start_display, handle_face_prop)
3158 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3159 (redisplay_window, try_window_id, produce_image_glyph):
3160 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3161
098a1589
CY
3162 * xterm.c (x_update_window_begin, x_new_focus_frame)
3163 (x_scroll_bar_handle_click, handle_one_xevent)
3164 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3165 (x_make_frame_visible, x_make_frame_invisible)
3166 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3167 code chunks that are now obsolete.
3168
78c38319
MA
31692009-06-28 Michael Albinus <michael.albinus@gmx.de>
3170
3171 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3172 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3173 for hours, when optimzation is enabled.
3174 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3175 (xd_read_message): Make them static.
3176
4189ed40
CY
31772009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3178
3179 * term.c (turn_on_face): Allow simultaneously bold and dim
3180 terminal faces (Bug#3530).
3181
cd9b5e16
CY
31822009-06-27 Chong Yidong <cyd@stupidchicken.com>
3183
4e23bedb
CY
3184 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3185
cd9b5e16
CY
3186 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3187 truncation glyphs (Bug#3686).
3188
07cc3c35
GM
31892009-06-27 Glenn Morris <rgm@gnu.org>
3190
3191 * m/pmax.h: Restore file, with only netbsd portions.
3192
31fd7c5c 31932009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3194
cd9b5e16 3195 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3196
42d4a64f
KH
31972009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3198
3199 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3200 the arg FORCE_SYMBOL.
3201
930fe55b 32022009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3203
3204 * fontset.c (fontset_find_font): When a usable rfont_def is found
3205 in a fallback font-group, make it the first element of the group.
3206
57ebc3fd
CY
32072009-06-24 Chong Yidong <cyd@stupidchicken.com>
3208
3209 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3210
f084f942
KH
32112009-06-24 Kenichi Handa <handa@m17n.org>
3212
3213 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3214 set for C.
3215 (fontset_font): Record the availability of a font for C both in
3216 the realized fontsets of the current one and the default one.
3217
2f686c87
DN
32182009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3219
3220 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3221 conditional, it is always defined on AIX.
3222
666e158e
MB
32232009-06-23 Miles Bader <miles@gnu.org>
3224
3225 * window.c (Vrecenter_redisplay): New variable.
3226 (syms_of_window): Initialize it.
3227 (Qtty): New extern declaration.
3228 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3229
c6da7cd2
JM
32302009-06-23 Jim Meyering <meyering@redhat.com>
3231
1ac9108a
SM
3232 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3233 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3234 pointer dereferences are guaranteed to be valid.
c6da7cd2 3235
678dca3d
KH
32362009-06-23 Kenichi Handa <handa@m17n.org>
3237
74d75424
KH
3238 * emacs.c (main): Call init_font ().
3239
3240 * font.h (Vfont_log): Extern it.
3241 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3242
3243 * font.c (font_sort_entities, font_list_entities)
3244 (font_matching_entity, font_open_entity)
3245 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3246 (Vfont_log): Delete static.
3247 (font_log_env_checked): Delete this variable.
3248 (font_add_log): Don't check font_log_env_checked.
3249 (font_deferred_log): Check Vfont_log.
3250 (init_font): New function.
3251
678dca3d
KH
3252 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3253
3254 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3255
3256 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3257
3258 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3259
3260 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3261 (face_for_char): Don't call font_deferred_log here.
3262 (font_for_char): Likewise.
3263
8a668709
CY
32642009-06-22 Chong Yidong <cyd@stupidchicken.com>
3265
9a01ee33
CY
3266 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3267 rather than its background_width for drawing the overline and
3268 underline (Bug#489).
3269
3270 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3271 rather than its background_width for drawing the overline and
3272 underline (Bug#489).
ec7c9926
CY
3273 (xg_default_icon_file): New variable.
3274 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3275 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3276
8a668709
CY
3277 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3278 (load_overlay_strings): Remove externs.
3279 (fast_find_position): Function deleted.
3280 (mouse_face_from_buffer_pos): New function, based on
3281 fast_find_position. Correctly handle before-strings,
3282 display-strings, and after-strings (Bug#1220).
3283 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3284
4d4c02d8
CY
32852009-06-21 Chong Yidong <cyd@stupidchicken.com>
3286
1ac9108a 3287 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3288 (move_it_in_display_line_to, move_it_in_display_line_to)
3289 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3290
70243478
CY
32912009-06-21 Chong Yidong <cyd@stupidchicken.com>
3292
3293 * Branch for 23.1.
3294
13087e59
JR
32952009-06-21 Jason Rumney <jasonr@gnu.org>
3296
3297 * w32term.c (keyboard_codepage): New static variable.
3298 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3299 (w32_read_socket) [WM_CHAR]: Use it to decode character
3300 input (bug#3237).
3301 (w32_initialize): Initialize it.
3302 (codepage_for_locale): New function.
3303
4735b74e
KR
33042009-06-20 Ken Raeburn <raeburn@raeburn.org>
3305
3306 * process.c (status_message): Pass Faset index argument as a lisp
3307 object, so as to work with USE_LISP_UNION_TYPE.
3308
0e727afa
YM
33092009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3310
3311 * coding.c (Ffind_coding_systems_region_internal):
3312 Cache checked characters.
3313
cf299835
KH
33142009-06-18 Kenichi Handa <handa@m17n.org>
3315
1ac9108a 3316 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3317
90f20d94
AS
33182009-06-18 Andreas Schwab <aschwab@redhat.com>
3319
3320 * xdisp.c (redisplay_internal): Check that the frame is still
3321 live after redisplay of its windows.
3322 (redisplay_windows): Check that the window is still live.
3323
7f1faf1c
KH
33242009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3325
3326 * coding.c (detect_coding_utf_16): Fix previous change.
3327
cc13543e
KH
33282009-06-16 Kenichi Handa <handa@m17n.org>
3329
3330 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3331 UTF-16 by checking the dispersion of Eth and Oth bytes.
3332
977b85f4
AS
33332009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3334
3335 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3336
66bd43d1
KH
33372009-06-15 Kenichi Handa <handa@m17n.org>
3338
3339 * process.c (status_message): Fix previous change. Be sure to
3340 decode a localized string.
3341
cb5ca9c5
YM
33422009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3343
3344 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3345 add comment explaining why.
3346
ec7709ba 33472009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3348
ec7709ba 3349 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3350
4b7f335c
AR
33512009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3352
3353 * nsfont.m (ns_attribute_value): Remove.
3354 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3355 (ns_has_attribute): Shrink the normal range.
3356 (ns_findfonts): Don't worry about requested spec in determining
3357 need for synthItal.
e41820ee 3358 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3359
73b26103
SZ
33602009-06-14 Seiji Zenitani <zenitani@mac.com>
3361
3362 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3363
5753e4da
KH
33642009-06-11 Kenichi Handa <handa@m17n.org>
3365
3366 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3367 overhang for the static composition case.
3368
3561b671
KH
33692009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3370
5753e4da
KH
3371 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3372 overhang for the automatic composition case.
3373
3561b671
KH
3374 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3375 composition case.
3376
852bbd41
CY
33772009-06-10 Chong Yidong <cyd@stupidchicken.com>
3378
3379 * xdisp.c (get_next_display_element): When handling wrap-prefix
3380 and line-prefix, treat \n as a control character (bug#3502).
3381
9903d1e6
KH
33822009-06-10 Kenichi Handa <handa@m17n.org>
3383
3384 * font.c (font_parse_family_registry): Fix for one-char foundry.
3385 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3386
0bcbaaaa
CY
33872009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3388
3389 * process.c (status_message): Fix handling of multibyte signal
3390 string (Bug#3499).
3391
40aa3f13
JM
33922009-06-09 Jim Meyering <meyering@redhat.com>
3393
1f80c7e2
CY
3394 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3395 color name is missing.
40aa3f13 3396
72d51285
KH
33972009-06-09 Kenichi Handa <handa@m17n.org>
3398
3399 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3400 FROM-CODE and TO-CODE are codepoints of CHARSET.
3401
c1d04d84
AR
34022009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3403
3404 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3405
34062009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3407
3408 Changes to support :script/:lang/:otf in NS font driver.
3409 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3410 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3411 indicate not part of font driver interface, and change callers.
3412 (ns_get_family): Remove pointless null check.
3413 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3414 ns_spec_to_descriptor, ns_descriptor_to_entity.
3415 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3416 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3417 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3418 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3419 (ns_get_req_script, ns_accumulate_script_ranges)
3420 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3421 New functions.
3422 (nsfont_list, nsfont_match): Use ns_findfonts.
3423 (nsfont_open): Use font descriptor instead of traits.
3424 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3425 (dump_glyphstring): Rename to ns_dump_glyphstring.
3426
c7eb9816
AR
3427 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3428
c1d04d84
AR
3429 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3430
3431 * fontset.c (fontset_from_font): Remove NS-specific code.
3432
ec7709ba 34332009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3434
3435 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3436 nonactive windows.
3437
31fd7c5c 34382009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3439
1ac9108a 3440 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3441
68852c13 34422009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3443
3444 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3445
6756cd1d
CY
34462009-06-07 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3449 account for the overflowing of newlines into the last glyph on the
3450 display line (Bug#3482).
3451
28bf482a
DR
34522009-06-05 David Reitter <david.reitter@gmail.com>
3453
ec7709ba
JB
3454 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3455 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3456 Fns_selection_exists_p, Fns_selection_owner_p.
3457
fdb55376
JR
34582009-06-03 Jason Rumney <jasonr@gnu.org>
3459
3460 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3461 available. (Bug#3379)
3462
05129fbe
KH
34632009-05-29 Kenichi Handa <handa@m17n.org>
3464
1ac9108a
SM
3465 * coding.c (get_translation_table):
3466 Check Venable_character_translation.
05129fbe 3467
ec7709ba 34682009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3469
ec7709ba
JB
3470 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3471 (x_make_frame_visible): Move frame to front rather than calling
15891144 3472 ns_raise_frame().
ec7709ba 3473 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3474 isn't key window.
ec7709ba 3475 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3476 drawRect may be called by NSView even if the frame is hidden.
3477
ec7709ba
JB
3478 * nsfns.m (Fx_create_frame): Follow other ports in
3479 determining visibility; default to t. Ensure async_visible is set.
15891144 3480
21f73755
EZ
34812009-05-23 Eli Zaretskii <eliz@gnu.org>
3482
3483 * dired.c (Ffile_attributes): Doc fix.
3484
34001e41
CY
34852009-05-22 Chong Yidong <cyd@stupidchicken.com>
3486
3487 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3488
46306a17
SM
34892009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3490
3491 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3492 and xfont_scratch_props.
3493 (syms_of_xfont): Do it here instead.
3494 (xfont_find_ccl_program): Delete, unused.
3495 (xfont_open): Delete unused var `i'.
3496
ef6e0694
KH
34972009-05-21 Kenichi Handa <handa@m17n.org>
3498
3499 * fontset.c (Qlatin): Don't make it static.
3500
46306a17
SM
3501 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3502 New functions.
ef6e0694
KH
3503 (xfont_scripts_cache, xfont_scratch_props): New variables.
3504 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3505 (xfont_list_pattern): Argument changed. Callers changed.
3506 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3507 (xfont_list): Don't reject a font spec with :script property.
3508 (xfont_has_char): Fix setting of encoding.
3509 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3510 xfont_scratch_props.
3511
35122009-05-19 Kenichi Handa <handa@m17n.org>
3513
46306a17 3514 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3515 Callers changed.
3516
35172009-05-18 Kenichi Handa <handa@m17n.org>
3518
3519 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3520
ac71ced7
SM
35212009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3522
3523 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3524 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3525
1c6d1051
YM
35262009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3527
3528 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3529 (x_delete_terminal): Dissociate resource database from display and
3530 then call XrmDestroyDatabase before closing display.
3531
9b9b779c
AR
35322009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3533
3534 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3535 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3536 whether selected frame is viable before raising it (based on patch
3537 by David Reitter), and improve commentary.
3538 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3539
cccd42d5
KH
35402009-05-15 Kenichi Handa <handa@m17n.org>
3541
3542 * font.c (Ffont_spec): Check arguments.
3543
337fbd17
CY
35442009-05-14 Chong Yidong <cyd@stupidchicken.com>
3545
3546 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3547 weight when testing attributes (Bug#3282).
3548
47a6002f
JD
35492009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3550
3551 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3552 what we expect to get in the next ConfigureNotify event.
3553
9cb363db
YM
3554 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3555 before Xft one (Bug#1696).
3556
b9126609
CY
35572009-05-07 David Reitter <david.reitter@gmail.com>
3558
3559 * nsfns.m (Fx_display_planes): Compute bitplanes using
3560 NSBitsPerPixelFromDepth (Bug#3207).
3561
27a69fd9
CY
35622009-05-10 Chong Yidong <cyd@stupidchicken.com>
3563
3564 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3565
00f37552
TTN
35662009-05-10 Ulrich Mueller <ulm@gentoo.org>
3567
3568 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3569
2d82a920
DR
35702009-05-07 David Reitter <david.reitter@gmail.com>
3571
ec7709ba
JB
3572 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3573 Respect mouse face background.
2d82a920 3574
46b0d52d
DR
35752009-05-07 David Reitter <david.reitter@gmail.com>
3576
ec7709ba
JB
3577 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3578 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3579 in ns_update_begin and ns_update_end.
3580
ce1b23bb
SM
35812009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3582
5996e1b7
SM
3583 * nsfns.m (ns_get_screen): Rewrite.
3584 Don't presume selected-frame is of type `ns'.
3585
ba98e3a0
SM
3586 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3587 all drivers.
3588
ce1b23bb
SM
3589 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3590
bcda200f
YM
35912009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3592
3593 * keyboard.h (add_user_signal): Fix typo in extern.
3594
3595 * lisp.h (add_user_signal): Remove extern.
3596
3597 * unexelf.c (unexec): Consider a section to precede the .bss section
3598 if its addresses overlap that of .bss.
3599 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3600 instead of dumping process.
3601
864660a2
SM
36022009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3603
3604 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3605
50da4e56
SM
36062009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3607
3608 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3609
51520a1a
DN
36102009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3611
3612 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3613 any statements.
3614
409ea3a1
AS
36152009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3616
59c4c60f
AS
3617 * process.c (read_process_output): Make sure the current buffer is
3618 always restored.
3619
409ea3a1
AS
3620 * coding.c (record_conversion_result): Don't modify
3621 Vlast_code_conversion_error for successful result.
3622 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3623
56f00ed2
KH
36242009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3625
3626 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3627 (load_charset_map): Remove unnecessary code.
56f00ed2 3628
4491c9d2
DR
36292009-04-30 David Reitter <david.reitter@gmail.com>
3630
35f5b128 3631 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3632 through f24.
3633
6970f632
CY
36342009-04-30 Chong Yidong <cyd@stupidchicken.com>
3635
3636 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3637
3638 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3639 face_at_buffer_position.
3640 (face_before_or_after_it_pos, get_next_display_element)
3641 (note_mouse_highlight): Update face_at_buffer_position call.
3642
3643 * term.c (term_mouse_highlight):
3644 * msdos.c (IT_note_mouse_highlight):
3645 * fontset.c (Finternal_char_font):
35f5b128 3646 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3647
3648 * dispextern.h (face_at_buffer_position): Update prototype.
3649
0c616f63
KH
36502009-04-30 Kenichi Handa <handa@m17n.org>
3651
35f5b128 3652 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3653
ad3aaf33
AS
36542009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3655
3656 * callproc.c (Fcall_process): Fix GC protection. Make sure
3657 current buffer is always restored.
3658
c3c963a0
YM
36592009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3660
3661 * atimer.c (init_atimer): Also clear stopped_atimers.
3662
3663 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3664
7e3386cb
YM
3665 * process.c (create_process): Clean up merger residues of
3666 2008-07-17 change.
3667
91f68422
CY
36682009-04-29 Ulrich Mueller <ulm@gentoo.org>
3669
3670 * lread.c (Vread_circle): New variable.
3671 (read1): Disable recursive read if Vread_circle is nil.
3672
24b34550
KH
36732009-04-29 Kenichi Handa <handa@m17n.org>
3674
3675 * fontset.h (set_default_ascii_font): Delete extern.
3676
3677 * fontset.c (set_default_ascii_font): Delete this unused function.
3678
3679 * frame.c (x_set_font): When ARG is a font-object, check if the
3680 font-object matches with the ASCII font-spec of the frame's
9c358bda 3681 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3682
77bf07e1
AS
36832009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3684
3685 * fns.c (Flocale_info): Protect vector from GC during decoding.
3686
3687 * process.c (Fstart_process): Protect argv strings from GC during
3688 encoding.
3689
2c55aacf
AS
36902009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3691
3692 * sysdep.c: Include <ctype.h>.
3693
b892d3c9
DR
36942009-04-27 David Reitter <david.reitter@gmail.com>
3695
35f5b128 3696 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3697 Remove commented-out code.
3698
9d0644c4
JB
36992009-04-26 Johan Bockgård <bojohan@gnu.org>
3700
3701 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3702
b7053016
JR
37032009-04-25 Jason Rumney <jasonr@gnu.org>
3704
3705 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3706
4e8231f3
YM
37072009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3708
3709 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3710 Swap bytes in short integer if fringe bitmap width > 8.
3711
493dcf2c
KH
37122009-04-23 Kenichi Handa <handa@m17n.org>
3713
3714 * xfaces.c (Fx_list_fonts): If a font size is specified in
3715 PATTERN, set it in returned scalable fonts.
3716
401e9e57
CY
37172009-04-22 Chong Yidong <cyd@stupidchicken.com>
3718
708e05dc
CY
3719 * keyboard.c (Fset_input_meta_mode): Doc fix.
3720
3721 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3722
1ac9108a 3723 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3724
3725 * coding.c (Fterminal_coding_system): Doc fix.
3726
3727 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3728 (Fx_display_pixel_height, Fx_display_planes)
3729 (Fx_display_color_cells, Fx_server_max_request_size)
3730 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3731 (Fx_display_mm_height, Fx_display_mm_width)
3732 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3733 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3734 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3735 (check_x_display_info): Handle terminal objects instead of
3736 terminal ids.
3737
401e9e57
CY
3738 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3739 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3740 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3741 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3742
df80c7f0
KH
37432009-04-21 Kenichi Handa <handa@m17n.org>
3744
5a8f12af 3745 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3746 (font_score): Check AVGWIDTH too.
908567ef 3747
df80c7f0
KH
3748 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3749 worst case.
1ac9108a
SM
3750 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3751 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3752
705af33f
JR
37532009-04-19 Jason Rumney <jasonr@gnu.org>
3754
3755 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3756 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3757
3758 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3759 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3760 get_phys_cursor_geometry.
3761
b71ac3dd 3762 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3763 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3764 using get_phys_cursor_geometry.
3765
3766 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3767 correctly calculated.
3768
dc2933eb
JD
37692009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3770
1ac9108a
SM
3771 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3772 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3773 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3774 is deprecated.
3775
973e7849
AS
37762009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3777
3778 * font.c (font_put_frame_data): Use xfree instead of free.
3779
314d66f4
JB
37802009-04-17 Juanma Barranquero <lekktu@gmail.com>
3781
3782 * w32font.c (Qja, Qko): Remove declarations.
3783 (syms_of_w32font): Don't DEFSYM them.
3784
cf702558
CY
37852009-04-17 Chong Yidong <cyd@stupidchicken.com>
3786
3787 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3788
3789 * font.h (Qja, Qko): Extern them.
3790
3791 * ftfont.c (Qja, Qko): Remove declarations.
3792
3793 * xfont.c (Qja, Qko): Remove declarations.
3794
b50504f5
KH
37952009-04-17 Kenichi Handa <handa@m17n.org>
3796
bde25748
KH
3797 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3798 string from a vector to handle Latin-1 characters correctly.
3799
b50504f5
KH
3800 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3801 entity even if the cache hits.
3802
f4646fff
AS
38032009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3804
3805 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3806 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3807
e7deaab0
AS
3808 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3809 * lisp.h: Adjust prototypes.
3810
0a0e7d49
CY
38112009-04-16 Chong Yidong <cyd@stupidchicken.com>
3812
3813 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3814 change (Bug#3003).
3815
3c908a57
KH
38162009-04-16 Kenichi Handa <handa@m17n.org>
3817
1ac9108a 3818 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3819
3820 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3821 adstyle.
3822
3823 * ftfont.c (Qja, Qko): Don't make them static.
3824 (enum ftfont_cache_for): New enum.
3825 (fc_charset_table): Undo the previous change.
3826 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3827 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3828 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3829 non-scarable font, try to get AVERAGE_WIDTH.
3830 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3831 Change ft_face_cache from a list of a hash-table. Don't check
3832 `ja' and `ko' adstyle here.
3833 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3834 FTFONT_CACHE_FOR_CHARET.
3835 (ftfont_get_charset): Undo the previous change.
1ac9108a 3836 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3837 (ftfont_close): Likewise.
3838 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3839
3840 * font.c (font_sort_entites): Change the meaning of the arg
3841 BEST-ONLY. Don't optimize for VEC of lenght 1.
3842 (font_select_entity): Just return the value of font_sort_entites.
3843
3844 * xfaces.c (merge_face_vectors): Reflect font properties in
3845 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3846 font_clear_prop if a face attribute doesn't change.
3847
3c908a57
KH
3848 * charset.h (charset_ksc5601): Extern it.
3849
3850 * charset.c (charset_ksc5601): New variable.
3851 (Fdefine_charset_internal): Set charset_ksc5601.
3852 (init_charset_once): Initialize charset_ksc5601 to -1.
3853
d65859c3
DN
38542009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3855
3856 * fileio.c (history_delete_duplicates): Remove unused declaration.
3857
3858 * callint.c (history_delete_duplicates): New declaration.
3859 (Fcall_interactively): Remove command history duplicates when
3860 history_delete_duplicates is true.
3861
3ba010e5
EZ
38622009-04-14 Eli Zaretskii <eliz@gnu.org>
3863
3864 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3865
06f19b91
KH
38662009-04-14 Kenichi Handa <handa@m17n.org>
3867
3868 * font.c (Ffont_info): Fix docstring. Fix the second element of
3869 the returned value (bug#2949).
3870
2cce8bfc
CY
38712009-04-14 Chong Yidong <cyd@stupidchicken.com>
3872
3873 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3874
d156542d
KH
38752009-04-14 Kenichi Handa <handa@m17n.org>
3876
3877 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3878 encoding charset is ascii_compatible.
3879
3880 * charset.c (Fdefine_charset_internal): Make charset
3881 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3882 code_offset is 0, and covers all ASCII characters.
3883
86fa089e
SM
38842009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3885
3886 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3887 (ns_string_to_pasteboard_internal):
3888 * nsmenu.m (process_dialog):
3889 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3890 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3891 * lisp.h (Fx_load_color_file): Declare.
3892
a8a3728b
KH
38932009-04-13 Kenichi Handa <handa@m17n.org>
3894
1ac9108a 3895 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3896 (font_select_entity): Suppress the code to optimize for the same
3897 kind of fonts.
3898 (font_load_for_lface): Get a font that supports at least ASCII
3899 characters.
3900
3901 * ftfont.c (Qja, Qko): New variables.
3902 (fc_charset_table): Delete uniquifier data for iso8859-1.
3903 (ftfont_get_latin1_charset): New function.
3904 (get_adstyle_property): New function.
3905 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3906 bitmap fonts.
3907 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3908 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3909 `ko' or `ja'.
3910 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3911 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3912 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3913 property.
3914 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3915 (syms_of_ftfont): DEFSYM Qja and Qko.
3916
483670b5
KH
39172009-04-09 Kenichi Handa <handa@m17n.org>
3918
12b55765
KH
3919 * charset.c (map_charset_chars): For a charset of `superset'
3920 method, fix calculation of code range.
3921
483670b5
KH
3922 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3923 from the list of extra properties.
3924 (font_clear_prop): Be sure to delete `:name' font property.
3925
57d3b93b
KH
39262009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3927
b4b2c2ca
YM
3928 * dispnew.c (redraw_overlapping_rows): Fix detection of
3929 overlapping for topmost and bottommost rows.
3930
1ac9108a 3931 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3932
472c3609
JR
39332009-04-06 Jason Rumney <jasonr@gnu.org>
3934
3935 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3936
ab193662
KH
39372009-04-06 Kenichi Handa <handa@m17n.org>
3938
3939 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3940
3941 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3942
0c26f026
KH
39432009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3944
3945 * ftfont.c (ftfont_open): Fix checking of the return value of
3946 FT_Load_Char. Fix setting font->underline_thickness.
3947
e173bbce
CY
39482009-04-04 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3951 (Fterminal_parameters, Fterminal_parameter)
3952 (Fset_terminal_parameter): In doc string, refer to terminal
3953 objects rather than terminal ids.
3954
693a2698
EZ
39552009-04-04 Eli Zaretskii <eliz@gnu.org>
3956
3957 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3958 ret_lim_data. (Bug#2867)
3959
d5221487
CY
39602009-04-03 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3963 so they don't get wider than the window, matching 2006-01-23
3964 change to the partner function in xdisp.c (Bug#2800).
3965
223509a3
KH
39662009-04-03 Kenichi Handa <handa@m17n.org>
3967
3968 * print.c (print_object): Make each lowest sub_char_table start a
3969 new line (Bug#2866).
3970
74fcd0b1
KH
39712009-04-02 Kenichi Handa <handa@m17n.org>
3972
3973 * fontset.c (fontset_font): Record no-font when a fontset
3974 explicitly tells not to try another font-specs.
3975
c542407d
SM
39762009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3977
3978 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3979
e3869731
KH
39802009-03-30 Kenichi Handa <handa@m17n.org>
3981
d8d2f142
KH
3982 * fontset.c (fontset_from_font): Specify only registry in a
3983 font-spec for all characters supported by that registry.
3984
e3869731
KH
3985 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3986 even if HAVE_M17N_FLT is not defined.
3987
5da5f805
CY
39882009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3989
3990 * ftfont.c: Conditionalize prototyping and use of
3991 ftfont_variation_glyphs.
3992
ab226c50
SM
39932009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3994
9628fed7
SM
3995 * frame.c (delete_frame): Work around compiler bug.
3996
3997 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3998 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3999 Some more EMACS_INT.
4000 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4001
4002 * xdisp.c (dump_glyph): Fix typo.
4003
ae19ba7c
SM
4004 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4005 (adjust_markers_gap_motion, adjust_markers_for_delete)
4006 (adjust_markers_for_insert, adjust_point)
4007 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4008 (make_gap, copy_text, count_size_as_multibyte, insert)
4009 (insert_and_inherit, insert_before_markers)
4010 (insert_before_markers_and_inherit, insert_1)
4011 (count_combining_before, count_combining_after, insert_1_both)
4012 (insert_from_string, insert_from_string_before_markers)
4013 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4014 (insert_from_buffer_1, adjust_after_replace)
4015 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4016 (replace_range_2, del_range, del_range_1, del_range_byte)
4017 (del_range_both, del_range_2, modify_region)
4018 (prepare_to_modify_buffer, signal_before_change)
4019 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4020 for buffer positions and sizes.
4021 * lisp.h: Adjust prototypes accordingly.
4022
4023 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4024 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4025 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4026
ab226c50
SM
4027 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4028
46dfb8fb
JD
40292009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4030
4031 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4032 lines and columns so we keep the same pixel height and width.
4033
4034 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4035 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4036 (x_handle_net_wm_state): New function to update frame parameter
4037 fullscreen.
4038 (x_term_init): Initialize atoms for _NET_WM_STATE.
4039
4040 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4041
d347e494
SM
40422009-03-27 Kevin Ryde <user42@zip.com.au>
4043
4044 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4045 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4046 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4047 (Fgpm_mouse_stop): Pass that new parameter.
4048 * termhooks.h (close_gpm): Adjust prototype.
4049
84db11d6
SM
40502009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4051
c95a5008
SM
4052 * lisp.h (Fx_focus_frame): Declare.
4053
84db11d6
SM
4054 * callint.c (Fcall_interactively): For '^' just delegate the work to
4055 handle-shift-selection.
4056 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4057
0a1958d6
CY
40582009-03-24 Chong Yidong <cyd@stupidchicken.com>
4059
0bfdff23
CY
4060 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4061
0a1958d6
CY
4062 * data.c (Qinteractive_form): New variable.
4063 (Finteractive_form): Use it.
4064
4065 * eval.c (Fcommandp): Use Qinteractive_form.
4066
58aec0d6
JR
40672009-03-24 Jason Rumney <jasonr@gnu.org>
4068
4069 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4070 Calculate total size precisely. Decode environment variables
4071 before substituting. (Bug#38)
4072
553dd618
KH
40732009-03-24 Kenichi Handa <handa@m17n.org>
4074
4075 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4076 encoding (Bug#2722).
553dd618 4077
c39ea606
JD
40782009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4079
4080 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4081 that gdpy is set.
4082
bc9b2b5e
AM
40832009-03-22 Alan Mackenzie <acm@muc.de>
4084
4085 * callint.c (Finteractive): Clarify the doc string - even
4086 promptless elements need \n separators.
4087
9f995a76
JR
40882009-03-22 Jason Rumney <jasonr@gnu.org>
4089
4090 * w32term.c (syms_of_w32term): Doc fix for
4091 x-use-underline-position-properties.
4092
22749e9a
EZ
40932009-03-21 Eli Zaretskii <eliz@gnu.org>
4094
4095 * w32.c (getpwuid): Change argument type to unsigned.
4096 (struct w32_id): Change type of `rid' member to unsigned.
4097 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4098 argument ID to unsigned. All callers changed.
4099 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4100
e00553bf
EZ
41012009-03-20 Eli Zaretskii <eliz@gnu.org>
4102
4103 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4104 negative, produce a float value.
4105
4106 * dired.c (make_uid, make_gid): New functions.
4107 (Ffile_attributes): Use them to avoid negative UID and GID.
4108
f761d6b6
JB
41092009-03-20 Juanma Barranquero <lekktu@gmail.com>
4110
4111 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4112 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4113 Fix typos in docstrings.
4114
d507f8d7
KH
41152009-03-19 Kenichi Handa <handa@m17n.org>
4116
4117 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4118 changed, use font_load_for_lface to get a new font object.
4119 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4120
4121 * frame.c (x_set_font): Handle the case that ARG is a cons.
4122
c68845e0
GM
41232009-03-19 Glenn Morris <rgm@gnu.org>
4124
4125 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4126
bfa49dd1
CY
41272009-03-19 Chong Yidong <cyd@stupidchicken.com>
4128
4129 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4130
8458d4c1
KH
41312009-03-19 Kenichi Handa <handa@m17n.org>
4132
4133 * charset.c (load_charset_map_from_file): When a mapfile can't be
4134 loaded, signal an error.
4135
78e7d1fe
EZ
41362009-03-18 Eli Zaretskii <eliz@gnu.org>
4137
4138 * dired.c (Ffile_attributes): Make sure UID and GID are always
4139 positive, even if the value is too large for a positive EMACS_INT.
4140 Doc fix.
4141
4142 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4143
5da9fdfa
YM
41442009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4145
4146 * xmenu.c (xdialog_show): Move Fredisplay call ...
4147 (Fx_popup_dialog): ... here.
4148
7519c40d
SM
41492009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4150
4151 * dired.c (file_name_completion): Disable the first optimization just
4152 installed, since it is not implemented correctly.
4153
2cd298e2
SM
41542009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4155
4156 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4157 only if the entry can affect bestmatch.
2cd298e2
SM
4158 Stop the search early, as Ftry_completion already does.
4159
48d37adf
CY
41602009-03-17 Chong Yidong <cyd@stupidchicken.com>
4161
e10c9c93 4162 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4163
9286b16a
CY
41642009-03-15 Chong Yidong <cyd@stupidchicken.com>
4165
4166 * keyboard.c (parse_menu_item): Don't display remappings as menu
4167 equivalent bindings (Bug#788).
4168
f7b146dc
JR
41692009-03-15 Jason Rumney <jasonr@gnu.org>
4170
4171 * w32term.h (WM_EMACS_PAINT): New message.
4172 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4173 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4174 before passing to lisp thread. (Bug#950)
4175
f761d6b6 41762009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4177
d93f9575
CY
4178 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4179 variable as it was never reset.
4180 (ns_term_init): Remove initialization of Lisp-settable defaults
4181 and ns_expand_space.
4182 (-setPanelFromDefaultValues): Remove ns_expand_space.
4183 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4184 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4185 i.e. no additional spacing, similar to Carbon port.
4186
d93f9575
CY
4187 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4188 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4189
305018ec
JD
41902009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4191
4192 * sound.c (alsa_configure): Remove call to deprecated
4193 snd_pcm_sw_params_set_xfer_align.
4194
f761d6b6 41952009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4196
4197 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4198 after clicking in a detached tool bar.
4199 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4200
46e722a9
SM
42012009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4202
348db3dd
SM
4203 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4204 int/Lisp_Object mixup).
46e722a9 4205
a3d16f39
KH
42062009-03-13 Kenichi Handa <handa@m17n.org>
4207
4208 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4209 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4210 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4211 (set_fontset_font): Change ARG to a vector. Handle range_list in
4212 ARG correctly.
4213 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4214 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4215 the above change.
4216 (fontset_from_font): Fix previous change.
fe24f56a 4217 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4218 entry. If FONTSET is the default fontset, don't set the extra
4219 slot of the returning char-table.
4220
b066e6b6
JB
42212009-03-12 Juanma Barranquero <lekktu@gmail.com>
4222
4223 * nsfns.m (Fx_close_connection): Doc fix.
4224 (Fns_do_applescript): Reflow docstring.
4225 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4226 (Fx_display_pixel_width, Fx_display_pixel_height)
4227 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4228 Fix typos in docstrings.
4229 (Fns_set_alpha): Fix typos in error messages.
4230
d472514e 42312009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4232
d472514e 4233 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4234 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4235 were used for such events.
4236
d472514e
JB
4237 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4238 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4239
d472514e 4240 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4241 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4242
fb930676
KH
42432009-03-11 Kenichi Handa <handa@m17n.org>
4244
ff85581a
KH
4245 * font.h (font_open_by_spec): Extern it.
4246
c50b7e98
KH
4247 * font.c (font_open_by_spec): New function.
4248 (font_open_by_name): Use font_open_by_spec.
4249
fb930676
KH
4250 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4251 fontset of the frame.
4252
4253 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4254 modify the default font of frames that use this fontset.
4255 (num_auto_fontsets): New variable.
4256 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4257 name. Be sure to set FONTSET_ASCII to the correct font name.
4258 (update_auto_fontset_alist): New function.
4259
df4e8455
JB
42602009-03-11 Juanma Barranquero <lekktu@gmail.com>
4261
4262 * makefile.w32-in: Update dependencies.
4263
0a375797
AR
42642009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4265
4266 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4267
61313fa3
SM
42682009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4269
4270 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4271
b55103fb
CY
42722009-03-10 Chong Yidong <cyd@stupidchicken.com>
4273
4274 * lread.c (Feval_buffer): Doc fix.
4275
dde2559c
KH
42762009-03-09 Kenichi Handa <handa@m17n.org>
4277
4278 * charset.c (Qfile_name_handler_alist): Extern it.
4279 (load_charset_map_from_file): Temporarily bind
4280 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4281
df4e8455 42822009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4283
47f588bb
GM
4284 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4285 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4286
4ddf94bd
AR
42872009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4288
4c9bdfc2
AR
4289 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4290 (x_set_window_size): Change back to calculated method of setting
4291 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4292 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4293 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4294
fe41ae9e
AR
4295 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4296
4c9bdfc2
AR
4297 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4298 accelerator in parens under GNUstep.
4299
825d0875
KH
43002009-03-06 Kenichi Handa <handa@m17n.org>
4301
4302 These changes are to detect incorrect composition sequence without
f3b3be74 4303 looking ahead the source. (Bug#2370)
825d0875
KH
4304
4305 * coding.h: Include "composite.h".
4306 (enum compisition_state): New enum.
4307 (struct compisition_status): New struct.
4308 (struct iso_2022_spec): New member cmp_status.
4309 (struct emacs_mule_spec): New struct.
4310 (struct coding_system): New members ctext_extended_segment_len and
4311 embedded_utf_8. Change the union member
4312 spec.emacs_mule_full_support to spec.emacs_mule.
4313
4314 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4315 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4316 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4317 (ADD_COMPOSITION_DATA): New arg nbytes.
4318 (emacs_mule_char): New arg cmp_status.
4319 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4320 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4321 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4322 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4323 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4324 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4325 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4326 (EMACS_MULE_COMPOSITION_END): New macro.
4327 (emacs_mule_finish_composition): New function.
4328 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4329 (decode_coding_emacs_mule): Avoid long looking ahead while
4330 handling composition.
4331 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4332 (ENCODE_COMPOSITION_RULE): New macro.
4333 (finish_composition): New function.
4334 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4335 (DECODE_COMPOSITION_START): New implementation.
4336 (DECODE_COMPOSITION_END): Likewise.
4337 (STORE_COMPOSITION_RULE): New macro.
4338 (decode_coding_iso_2022): Avoid long looking ahead while handling
4339 composition, CTEXT extended segment, and embedded UTF-8.
4340 (setup_coding_system): For a coding of type iso-2022, reset
4341 CODING_ISO_EXTSEGMENT_LEN (coding) and
4342 CODING_ISO_EMBEDDED_UTF_8 (coding).
4343 (get_translation): Delete arguments last_block, from_nchars,
4344 to_nchars. Callers changed.
4345 (produce_chars): Don't modify charbuf. Adjusted for the change of
4346 get_translation.
98a326f7 4347 (produce_composition): Adjust for the new annotation sequence.
825d0875 4348 (handle_composition_annotation): Likewise.
98a326f7 4349 (consume_chars): Adjust for the change of get_translation.
825d0875 4350
ccbc4452
AR
43512009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4352
4ddf94bd 4353 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4354
988a7ddb
KH
43552009-03-05 Kenichi Handa <handa@m17n.org>
4356
4357 * font.c (font_select_entity): New function.
4358 (font_find_for_lface): Use font_select_entity to select a font.
4359
4360 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4361 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4362 font with C restriction.
4363
98a326f7 43642009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4365
be1bce46 4366 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4367
10ea2b82
JR
43682009-03-04 Jason Rumney <jasonr@gnu.org>
4369
2c93b248 4370 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4371 characters that have already been read. (Bug#2569)
2c93b248 4372
10ea2b82
JR
4373 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4374 Log an error message if check_image_size failed.
4375 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4376 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4377
71a0c011
EZ
43782009-03-02 Eli Zaretskii <eliz@gnu.org>
4379
4380 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4381 when decoding process output.
4382
2f63bba8
RS
43832009-03-01 Richard M Stallman <rms@gnu.org>
4384
4385 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4386
4387 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4388
0a9564cb
EZ
43892009-02-28 Eli Zaretskii <eliz@gnu.org>
4390
4391 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4392 (decode_coding_emacs_mule, decode_coding_iso_2022)
4393 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4394 (decode_coding_raw_text, decode_coding_charset)
4395 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4396 Honor inhibit-eol-conversion. (Bug #2186)
4397
449148b3
JR
43982009-02-28 Jason Rumney <jasonr@gnu.org>
4399
4400 * coding.c (detect_coding_charset): If not checking latin extra,
4401 fail on characters between 0x80 and 0xA0. (Bug#2354)
4402
a4aee864
EZ
44032009-02-28 Eli Zaretskii <eliz@gnu.org>
4404
4405 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4406 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4407
d88bee5a
GM
44082009-02-27 Glenn Morris <rgm@gnu.org>
4409
4410 * callint.c (Finteractive): Doc fix.
4411
a808f22d
KH
44122009-02-27 Kenichi Handa <handa@m17n.org>
4413
4414 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4415
caf8d60c
CY
44162009-02-27 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * font.c (font_style_to_value): Set value for unknown symbols to
4419 100 instead of 255.
b61137ea
CY
4420 (weight_table, slant_table, width_table): Treat "unspecified" as
4421 the default value.
caf8d60c 4422
1a0de25c
JB
44232009-02-26 Juanma Barranquero <lekktu@gmail.com>
4424
4425 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4426
8fc45744
JB
44272009-02-25 Juanma Barranquero <lekktu@gmail.com>
4428
107bd7d1
JB
4429 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4430 error as soon as a recursive load is detected.
8fc45744 4431
f097e223
AR
44322009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4433
4434 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4435 before caching.
4436
8810a12f
KH
44372009-02-24 Kenichi Handa <handa@m17n.org>
4438
4439 * fontset.c (fontset_find_font): Fix the condition for checking
4440 unavailable font.
4441
2c7d1565
GM
44422009-02-24 Glenn Morris <rgm@gnu.org>
4443
4444 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4445 whitespace that confuses documentation.
4446
a20878b6
MB
44472009-02-23 Miles Bader <miles@gnu.org>
4448
4449 * process.c (Flist_system_processes, Fprocess_attributes)
4450 (syms_of_process): Rename `system-process-attributes' to
4451 `process-attributes'.
4452
b3b58c01
AS
44532009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4454
1b3b981b
AS
4455 * coding.h (struct coding_system): Make safe_charsets a pointer to
4456 unsigned char.
4457 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4458 being 255.
4459 (SAFE_CHARSET_P): Likewise.
4460 (setup_iso_safe_charsets): Properly setup safe_charsets.
4461 (Fdefine_coding_system_internal): Likewise.
4462 (setup_coding_system): Likewise. Remove unneeded casts.
4463 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4464 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4465 unneeded casts.
4466
b3b58c01
AS
4467 * insdel.c (del_range_2): Don't modify gap contents when called
4468 from decode_coding_object. (Bug#1809)
4469
0b6f228c
CY
44702009-02-21 Chong Yidong <cyd@stupidchicken.com>
4471
4472 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4473 Qfont_object.
4474 (Ftype_of): Recognize font objects.
4475
4476 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4477
4478 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4479 moved to data.c.
4480
52f8870b
AR
44812009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4482
4483 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4484 async_iconified. Based on a patch by Christian Lynbech
4485 <christian.lynbech@tieto.com>.
4486 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4487
7087d5e9
GM
44882009-02-20 Glenn Morris <rgm@gnu.org>
4489
4490 * syntax.c (Fskip_chars_forward): Fix doc typo.
4491
41d2ceef
CY
44922009-02-20 Chong Yidong <cyd@stupidchicken.com>
4493
4494 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4495
1a3b7ca6
CY
44962009-02-19 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4499
73cce38d
KH
45002009-02-19 Kenichi Handa <handa@m17n.org>
4501
4502 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4503 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4504
a51092ee
DN
45052009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4506
4507 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4508
c423ecca
KH
45092009-02-18 Kenichi Handa <handa@m17n.org>
4510
4511 * font.c (font_check_otf_features): Fix handling of `nil' element.
4512 (Ffont_spec): Describe :lang and :otf in the docstring.
4513
4c1958f4
AS
45142009-02-16 Andreas Schwab <schwab@suse.de>
4515
4516 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4517 string.
4518
5704f39a
KH
45192009-02-16 Kenichi Handa <handa@m17n.org>
4520
4521 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4522 (Bug#1723)
5704f39a 4523
8f0085aa
CY
45242009-02-14 Chong Yidong <cyd@stupidchicken.com>
4525
a057d86a 4526 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4527
4528 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4529 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4530
aff01dd9
EZ
45312009-02-14 Eli Zaretskii <eliz@gnu.org>
4532
4533 * msdos.c (MAX_SCREEN_BUF): New macro.
4534 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4535 Encode the entire run of glyphs sharing the same face, instead of
4536 doing that one glyph at a time (fixes a bug with displaying
4537 double-size characters).
4538
ba301db3
AR
45392009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4540
4541 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4542
4543 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4544 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4545 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4546
4547 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4548 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4549
51d861de
SM
45502009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4551
ac146f82 4552 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4553 invisible areas.
4554
7fed8996
JR
45552009-02-12 Jason Rumney <jasonr@gnu.org>
4556
631ea4fb
JR
4557 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4558 (add_font_entity_to_list): Call check_face_name even when family
4559 is unspecified.
4560
cb4a3e42
JR
4561 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4562 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4563 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4564
7fed8996 4565 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4566 raster fonts. (Bug#2219)
7fed8996 4567
895416e3
KH
45682009-02-12 Kenichi Handa <handa@m17n.org>
4569
4570 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4571 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4572 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4573 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4574 (find_automatic_composition): While looking forward and backward,
4575 check static composition. Fix where to stop looking forward.
4576 (composition_adjust_point): Fix checking of static composition.
4577 (Fcomposition_get_gstring): Pay attention to
1dacf998 4578 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4579
4580 * lisp.h (fast_looking_at): Extern it.
4581
4582 * search.c (fast_looking_at): New function.
4583
51d861de 4584 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4585 <struct glyph>.u.cmp.to.
4586 (append_composite_glyph): Likewise.
4587
51d861de 4588 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4589 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4590 composition.
51d861de 4591 (append_composite_glyph): Adjust for the change of
895416e3
KH
4592 <strcut glyph>.u.cmp.to.
4593
8510724d
JB
45942009-02-11 Juanma Barranquero <lekktu@gmail.com>
4595
4596 * casetab.c (init_casetab_once):
4597 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4598 * font.c (font_update_lface):
4599 * fontset.c (Fnew_fontset):
4600 * ftfont.c (ftfont_drive_otf):
4601 * xfont.c (xfont_open):
4602 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4603
294fa707
SM
46042009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4605
4606 * fileio.c (Fwrite_region): !NILP -> CONSP.
4607
b5bfebec
AS
46082009-02-10 Andreas Schwab <schwab@suse.de>
4609
4610 * process.c (send_process): Properly relocate pointer into data
adab88bd 4611 when using encoded data. (Bug#2272)
b5bfebec 4612
cb84a2be
KH
46132009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4614
4615 * coding.c (detect_coding_charset): Fix previous change.
4616
89e09428
JR
46172009-02-08 Jason Rumney <jasonr@gnu.org>
4618
4619 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4620 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4621
4470a277
AS
46222009-02-07 Andreas Schwab <schwab@suse.de>
4623
4624 * unexelf.c (unexec): Fix error message.
4625
3175b12a
AR
46262009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4627
4628 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4629 when modal window is active. (Bug #2152)
3175b12a
AR
4630 (applicationShouldTerminate:): Remove now-unneeded while loop
4631 around NSRunAlertPanel.
4632
4633 * nsmenu.m (popupSession): New file-global variable.
4634 (pop_down_menu): End the popupSession before closing dialog.
4635 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4636 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4637 don't query NSApp for events (just sleep instead).
4638
8434d0b8
EZ
46392009-02-07 Eli Zaretskii <eliz@gnu.org>
4640
51d861de
SM
4641 * coding.c (syms_of_coding) <translation-table-for-input>:
4642 Modify doc string to discourage use for character code unification.
8434d0b8 4643
aa82edfd
CY
46442009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4645
4646 * atimer.c (run_timers): Update pending_atimers.
4647
2d283c7c
CY
46482009-02-06 Chong Yidong <cyd@stupidchicken.com>
4649
eb306cab
CY
4650 * image.c (svg_load_image): Fix last change.
4651
2d283c7c
CY
4652 * xfns.c (Fx_create_frame): Signal an error if no font is
4653 found (Bug#2147).
4654
4d8e170e
JB
46552009-02-05 Juanma Barranquero <lekktu@gmail.com>
4656
4657 * character.c (syms_of_character) <script-representative-chars>:
4658 Fix typo in docstring.
4659
c96169a0
AR
46602009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4661
4662 * nsmenu.m (pop_down_menu): New function.
4663 (ns_popup_dialog): Call it on unwind.
4664 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4665 call timer_check() (Bug#2154).
4666 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4667 handling_signal is set.
4668 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4669
31fd7c5c 4670 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4671
4672 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4673
4674 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4675
51d861de
SM
4676 * keyboard.c (poll_for_input_1, handle_async_input):
4677 Set handling_signal under HAVE_NS.
c96169a0 4678
aacd8ba1
GM
46792009-02-04 Glenn Morris <rgm@gnu.org>
4680
4681 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4682
4cb75c4b
KH
46832009-02-04 Kenichi Handa <handa@m17n.org>
4684
4685 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4686
4687 * charset.c (Fchar_charset): New optional arg restriction.
4688
4689 * coding.h (coding_system_charset_list): Extern it.
4690
4691 * coding.c (coding_system_charset_list): New function.
4692
4693 * composite.c: Include coding.h and termhooks.h.
4694 (composition_gstring_p): Fix for the terminal case.
4695 (composition_gstring_width): Likewise.
4696 (fill_gstring_body): Likewise.
4697 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4698 the frame.
4699 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4700 is within a composition.
867d4bb3 4701 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4702
4703 * term.c (encode_terminal_code): Fix handling of composition.
4704 (produce_composite_glyph): For static composition, get pixel_width
4705 from struct composition.
4706
826ba17e
AS
47072009-02-02 Andreas Schwab <schwab@suse.de>
4708
4709 * unexelf.c (unexec): Handle unaligned bss offset.
4710
8ad093db
AR
47112009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4712
4713 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4714 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4715
8ad093db
AR
4716 * keyboard.c (handle_interrupt): Don't call
4717 quit_throw_to_read_char() under NS.
d0a76a6e 4718
8ad093db
AR
4719 * blockinput.h: Remove NS-specific code.
4720
4d18a7a2
DN
47212009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4722
db878925
DN
4723 * dispnew.c (window_change_signal): Don't try to get the size of a
4724 suspended tty frame.
4725 * term.c (Fresume_tty): Resize if the size has changed while the
4726 tty was suspended.
4727
4d18a7a2
DN
4728 * alloc.c (mark_stack): Properly conditionalize previous change.
4729
8984df7c
JB
47302009-01-30 Juanma Barranquero <lekktu@gmail.com>
4731
4732 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4733 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4734 Remove; this code is not used on Windows.
4735
75f4f1ac
EZ
47362009-01-30 Eli Zaretskii <eliz@gnu.org>
4737
4738 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4739 EOLs that also has stray ^M characters.
4740
07a1e794
JB
47412009-01-30 Juanma Barranquero <lekktu@gmail.com>
4742
4743 * atimer.c (run_timers, alarm_signal_handler):
4744 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4745 * w32inevt.c (w32_console_read_socket):
4746 * w32term.c (w32_read_socket):
4747 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4748
a8b11cc9
CY
47492009-01-30 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4752 Initialize it as a relative filename pattern.
4753 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4754 (Fcall_process_region): Simplify temp file creation using
4755 temporary-file-directory.
4756
c279587b
EZ
47572009-01-29 Eli Zaretskii <eliz@gnu.org>
4758
4759 * msdos.c: Rename pending_signals to msdos_pending_signals.
4760 (sig_suspender, sigprocmask): Adjust.
4761
a8fe3242
CY
47622009-01-29 Chong Yidong <cyd@stupidchicken.com>
4763
4764 * keyboard.c (pending_signals): New var.
4765 (poll_for_input, input_available_signal, init_keyboard): Set it.
4766 (process_pending_signals): New function.
4767
4768 * lisp.h (QUIT): Check pending_signals instead of
4769 interrupt_input_pending. Use process_pending_signals.
4770
51d861de 4771 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4772
51d861de 4773 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4774
4775 * sysdep.c (emacs_write): Use process_pending_signals.
4776
4777 * xterm.c (XTread_socket): Update pending_signals.
4778
4779 * w32term.c (w32_read_socket): Update pending_signals.
4780
4781 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4782
6570a1c4
KH
47832009-01-29 Kenichi Handa <handa@m17n.org>
4784
4785 * xftfont.c (xftfont_has_char): New function.
4786 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4787
d72a4afa
AR
47882009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4789
4790 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4791 under GNUstep.
4792 (ns_query_color): New declaration.
4793
4794 * nsterm.m (ns_confirm_quit): New variable.
4795 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4796 (EmacsApp-applicationShouldTerminate:): Use it.
4797 (EmacsPrefsController): Let user set it.
4798 (ns_query_color): New function.
4799 (ns_defined_color): Use it.
4800 (ns_initialize): Drop.
4801 (ns_term_init): Add two lines from ns_initialize(), and set
4802 input_interrupt_mode to nil.
4803
4804 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4805 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4806
9fe78804
KH
48072009-01-28 Kenichi Handa <handa@m17n.org>
4808
4809 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4810 (fontset_get_font_group): Remember that no font-group is specified
4811 for C.
9fe78804 4812
fa57de36
CY
48132009-01-27 Chong Yidong <cyd@stupidchicken.com>
4814
930600e9
CY
4815 * fns.c (concat): Check for string overflow (bug#1787).
4816
fa57de36
CY
4817 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4818 Quadruple undo limits (bug#1501).
4819
7179ce7b
KH
48202009-01-27 Kenichi Handa <handa@m17n.org>
4821
4822 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4823 directly use GT_Get_Char_index.
4824
4825 * xftfont.c (struct xftfont_info): New member `index'.
4826
4827 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4828 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4829
5be8fcc0
CY
48302009-01-26 Kenichi Handa <handa@m17n.org>
4831
4832 * fontset.c (fontset_find_font): Fix handling of non-cons return
4833 value of fontset_get_font_group.
4834 (fontset_font): Revert last change.
4835
19ae3e61
JR
48362009-01-26 Jason Rumney <jasonr@gnu.org>
4837
4838 * w32font.c (w32font_list_internal): Return quickly if registry is
4839 unknown. Simplify final return.
4840 (add_font_entity_to_list): Break complex logic down into more
4841 manageable chunks. Move unknown registry check to
4842 w32font_list_internal.
4843
8612b71a
AR
48442009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4845
4846 Changes to remove Feval calls from GUI under NS.
4847
d8038940
JB
4848 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4849 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4850 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4851
4852 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4853 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4854 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4855 instead of NON_ASCII_KEYSTROKE_EVENT.
4856 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4857 (EmacsApp-applicationShouldTerminate:): Query user.
4858 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4859 instead of Feval.
4860
4861 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4862
4863 * keyboard.c (kbd_buffer_get_event): Check for it.
4864 (keys_of_keyboard): Define lispy keys for
4865 ns-put/unput-working-text.
4866
4867 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4868 versions.
4869 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4870
6288ae55
CY
48712009-01-25 Chong Yidong <cyd@stupidchicken.com>
4872
4873 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4874 setting current_buffer directly. (Bug#2044)
6288ae55 4875
289e7f8f
CY
48762009-01-24 Chong Yidong <cyd@stupidchicken.com>
4877
5ce87308 4878 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4879 any work. (Bug#1952, bug#1990).
5ce87308 4880
64cc3cf6 4881 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4882
b3243e6f
AR
48832009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4884
4885 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4886 (ns_no_defaults): New declaration.
4887 (main): Use it.
e0d2e69a 4888
d900b2af 4889 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4890
d900b2af 4891 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4892
d900b2af
AR
4893 * nsterm.m (ns_no_defaults): New variable.
4894 (ns_initialize): Don't read defaults when ns_no_defaults.
4895 (EmacsView-readSelectionFromPasteboard:)
4896 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4897 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4898 (ns_dumpglyphs_stretch): New function.
4899 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4900 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4901
e0d2e69a
AR
4902 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4903
3ac71f5d
CY
49042009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4905
4906 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4907 call for Sparc64.
4908
3fe53a83
AR
49092009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4910
4911 * nsfns.m:
4912 * nsgui.h:
4913 * nsmenu.m:
4914 * nsselect.m:
4915 * nsterm.h:
4916 * nsterm.m: Remove '23' comments that indicated code added during
4917 update from emacs-20 -> emacs-23.
4918
10f87c6f 49192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4920
4921 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4922 ns_alternate_modifier. (Bug#1217)
a3b53a85 4923
c7cef62d
AR
4924 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4925 Display all shortcuts, including those w/o super modifier.
4926
575fb8bd
AR
4927 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4928
918b848b
CY
49292009-01-22 Chong Yidong <cyd@stupidchicken.com>
4930
4931 * fileio.c (Vwrite_region_post_annotation_function)
4932 (Vwrite_region_annotation_buffers): New vars.
4933 (build_annotations_unwind): Just reset
4934 Vwrite_region_annotation_buffers.
4935 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4936 Call write-region-post-annotation-function.
4937 (build_annotations): Add to Vwrite_region_annotation_buffers if
4938 buffer changes.
4939
a39e2539
AR
49402009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4941
4942 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4943 Tiger.
51d861de
SM
4944 * nsfns.m (ns_do_applescript):
4945 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4946
35ed44db
AR
49472009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4948
4949 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4950
cbe0b5bf
AR
49512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4952
4953 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4954
6049d3a0
AR
4955 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4956
4957 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4958 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4959 handle Ctrl-tab. (Bug#1841)
4960 (ns_get_color): Use unsigned long long for scanned hex string value.
4961 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4962 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4963 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4964 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4965 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4966 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4967 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4968
d3810c21 4969 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4970 DPI. (Bug#1316)
d3810c21
AR
4971 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4972 values in onTiger section.
4c7077c3 4973
e301e634
CY
49742009-01-19 Chong Yidong <cyd@stupidchicken.com>
4975
7f82490b
CY
4976 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4977 Check return value of font_spec_from_name.
64cc3cf6 4978 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4979
4980 * font.c (font_spec_from_name): Return Qnil if font name could not
4981 be parsed.
4982 (font_parse_name): Treat a `?' character as part of an XLFD.
4983
e301e634
CY
4984 * fns.c (Fsubstring): Doc fix.
4985
1c0db158
KH
49862009-01-19 Kenichi Handa <handa@m17n.org>
4987
51d861de 4988 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4989 (ftfont_list): Likewise.
4990
acf20901
JB
49912009-01-18 Juanma Barranquero <lekktu@gmail.com>
4992
fff4e459
JB
4993 * dbusbind.c (Fdbus_register_signal):
4994 * process.c (conv_sockaddr_to_lisp):
4995 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4996
acf20901
JB
4997 * callproc.c (Fgetenv_internal): Doc fix.
4998
e7abcdfb
CY
49992009-01-16 Chong Yidong <cyd@stupidchicken.com>
5000
5001 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5002 it is not even used.
5003
b60861e6
GM
50042009-01-16 Glenn Morris <rgm@gnu.org>
5005
5006 * font.c (Ffont_variation_glyphs): Silence compiler.
5007
8db52afe
JB
50082009-01-15 Juanma Barranquero <lekktu@gmail.com>
5009
5010 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5011 Reported by David Robinow <drobinow@gmail.com>.
5012
4cddb209
KH
50132009-01-15 Kenichi Handa <handa@m17n.org>
5014
51d861de 5015 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5016
f247f67b
JR
50172009-01-14 Jason Rumney <jasonr@gnu.org>
5018
5019 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5020 never a fontset. (Bug#1562)
f247f67b 5021
f56a4450
KH
50222009-01-14 Kenichi Handa <handa@m17n.org>
5023
5024 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5025 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5026
4e99855e
CY
50272009-01-13 Chong Yidong <cyd@stupidchicken.com>
5028
5029 * font.c (font_clear_prop): If clearing the family, clear the font
5030 width index too.
5031
fff4e459 5032 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5033
24f01470
JB
50342009-01-12 Juanma Barranquero <lekktu@gmail.com>
5035
5036 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5037 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5038 functions, use sizeof.
5039
a41240a3
MR
50402009-01-12 Martin Rudalics <rudalics@gmx.at>
5041
5042 * keyboard.c (read_char): Fix case where last_nonmenu_event
5043 returned a bad value with submenus. (Bug#447)
5044
944636b8
CY
50452009-01-12 Chong Yidong <cyd@stupidchicken.com>
5046
5047 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5048 family, clear the font width index too.
5049
0dad7c6f
JR
50502009-01-11 Jason Rumney <jasonr@gnu.org>
5051
5052 * keyboard.c (cmd_error_internal): Exit when errors occur before
5053 frame creation and not in daemon mode. (Bug#1836)
5054
7c2363af
CY
50552009-01-10 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5058 of a display vector, backtrack.
5059 (try_window_reusing_current_matrix): Check glyph type before
5060 referencing charpos member.
5061
97b1b294
EZ
50622009-01-10 Eli Zaretskii <eliz@gnu.org>
5063
5064 Fix Bug #876:
5065
5066 * coding.c (inhibit_null_byte_detection): New variable.
5067 (detect_coding, detect_coding_system): Don't pay attention to null
5068 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5069 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5070 <inhibit-iso-escape-detection>: Doc fix.
5071
4624b6e3
JR
50722009-01-09 Jason Rumney <jasonr@gnu.org>
5073
5074 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5075 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5076 Only report Unicode Plane 2 fonts as unicode-sip.
5077
323b840c
CY
50782009-01-09 Chong Yidong <cyd@stupidchicken.com>
5079
51d861de
SM
5080 * xfaces.c (Fx_font_family_list): Delete function.
5081 Move compatibility version to faces.el.
323b840c 5082
51d861de 5083 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5084
eba7400d
MR
50852009-01-09 Martin Rudalics <rudalics@gmx.at>
5086
5087 * frame.c (x_set_frame_parameters): Remember requested value for
5088 fullscreen before it's reset by the parameter handler.
5089
4b09796d
GM
50902009-01-09 Glenn Morris <rgm@gnu.org>
5091
5092 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5093 (last_command_event): ... and update all users.
4b09796d
GM
5094 (last_input_char): For clarity, rename to...
5095 (last_input_event): ... and update all users.
5096 (last-command-char, last-input-char): Move to subr.el as aliases.
5097 * cmds.c, commands.h: Update for last_command_char rename.
5098
14ccea62
CY
50992009-01-08 Chong Yidong <cyd@stupidchicken.com>
5100
51d861de 5101 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5102
5f004711
JR
51032009-01-08 Jason Rumney <jasonr@gnu.org>
5104
5105 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5106 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5107 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5108 Don't declare.
fff4e459 5109 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5110 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5111
b71f6f73
KH
51122009-01-07 Kenichi Handa <handa@m17n.org>
5113
50b06221 5114 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5115 remember the coding system used for decoding in
50b06221
KH
5116 coding_system (Bug#1039).
5117
b71f6f73 5118 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5119 breaking the loop. (Bug#870)
b71f6f73
KH
5120 (decode_coding_utf_16, decode_coding_emacs_mule)
5121 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5122 (decode_coding_charset): Likewise.
5123
56f668f7
MR
51242009-01-05 Martin Rudalics <rudalics@gmx.at>
5125
5126 * frame.c (x_set_frame_parameters): Make sure height (width) get
5127 applied when fullwidth (fullheight) is set. (Bug#1522)
5128
5da9424d
JB
51292009-01-04 Juanma Barranquero <lekktu@gmail.com>
5130
5131 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5132 (utc_base): Declare as ULONGLONG, not long double.
5133 (convert_time_raw): Delete.
5134 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5135 (initialize_utc_base): New function.
5136 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5137 (convert_from_time_t): Use initialize_utc_base; compute result with
5138 64-bit arithmetic.
5139 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5140
c4605e09
EZ
51412009-01-03 Eli Zaretskii <eliz@gnu.org>
5142
9acef61c 5143 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5144 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5145 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5146 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5147 [!subprocesses]: Define.
5148 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5149 (Flist_system_processes, Fsystem_process_attributes)
5150 [!subprocesses]: Call list_system_processes and
5151 system_process_attributes instead of returning Qnil.
5152
9acef61c
JB
5153 * dosfns.c (system_process_attributes, list_system_processes):
5154 New functions.
c4605e09
EZ
5155
5156 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5157
5158 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5159 Don't use the default (no-op) implementation.
5160
8b7d0a16
JR
51612009-01-03 Jason Rumney <jasonr@gnu.org>
5162
a6d46bc1
JR
5163 * keyboard.c (parse_modifiers_uncached): Wheel events are
5164 clicks (bug#687).
5165
8b7d0a16
JR
5166 * w32term.c (x_query_colors, x_query_color): New functions.
5167
5168 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5169 (svg_load_image): Cast returned pointers from dynamically loaded
5170 functions. Eliminate W32 specific code.
5171
bfe11752
DN
51722009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5173
89e2438a
DN
5174 * nsfns.m (x_set_foreground_color, x_set_background_color)
5175 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5176 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5177 x_ prefix instead of ns_. Update references.
5178 (syms_of_nsfns): Add a FIXME comment.
5179
5180 * nsterm.m (x_set_cursor_type): New prototype.
5181 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5182
bfe11752
DN
5183 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5184 for Solaris instead of incorrectly providing Qutime and Qcutime.
5185
031da700
EZ
51862009-01-02 Eli Zaretskii <eliz@gnu.org>
5187
5188 * w32.c (process_times): Compute sum of utime and stime.
5189 (system_process_attributes): Add Qtime to the alist.
5190
5191 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5192 and add them to the alist.
5193
5194 * process.c (top level) <Qtime, Qctime>: New variables.
5195 (syms_of_process): staticpro them.
5196 (Fsystem_process_attributes): Add their documentation to the doc
5197 string.
5198
5199 * process.h: Declare Qtime and Qctime.
5200
df23bf08
JR
52012009-01-02 Jason Rumney <jasonr@gnu.org>
5202
9acef61c 5203 * image.c (Qgobject): New symbol.
df23bf08
JR
5204 (syms_of_image): Initialize it.
5205 (init_svg_functions): Load some functions from gobject library.
5206
5bbdf7aa
DN
52072009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5208
5209 * frame.c (make_terminal_frame): Remove redundant code and useless
5210 block.
5211
63136da6
AS
52122009-01-01 Andreas Schwab <schwab@suse.de>
5213
5214 * process.c (conv_sockaddr_to_lisp): Add workaround for
5215 getsockname bug on BSD.
5216
9ef69046
CY
52172009-01-01 Chong Yidong <cyd@stupidchicken.com>
5218
d6fafbe0
CY
5219 * xfns.c (x_create_tip_frame): Set border width of the X window.
5220
51d861de 5221 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5222
f9c34147
JR
52232009-01-01 Jason Rumney <jasonr@gnu.org>
5224
9acef61c 5225 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5226 Don't block input, as per earlier xterm.c changes.
5227
f5497e45
AR
52282008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5229
5230 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5231 (ns_appkit_version_int): New function.
5232 (x-server-version): Use ns_appkit_version_int and follow 21+
5233 convention of returning 3 integers.
5234
c19cab20
KH
52352008-12-30 Kenichi Handa <handa@m17n.org>
5236
5237 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5238 (CHAR_SURROGATE_PAIR_P): New macro.
5239
5240 * font.h (struct font_driver): New member get_variation_glyphs.
5241
9acef61c 5242 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5243 (Ffont_variation_glyphs): New function.
5244 (syms_of_font): Defsubr it.
5245
5246 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5247 ftfont_variation_glyphs.
5248 (setup_otf_gstring): New function.
5249 (ftfont_drive_otf): Use it.
5250 (ftfont_shape_by_flt): Handle variation selector.
5251 (ftfont_variation_glyphs): New function.
5252
28cd591f
MR
52532008-12-30 Martin Rudalics <rudalics@gmx.at>
5254
5255 * frame.c (Vemacs_iconified): Remove.
5256
7f714baf
JR
52572008-12-30 Jason Rumney <jasonr@gnu.org>
5258
5259 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5260 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5261
9d2d22ab
CY
52622008-12-30 Chong Yidong <cyd@stupidchicken.com>
5263
5264 * indent.c (Fvertical_motion): Don't advance iterator if we have
5265 reseated to the desired position.
5266
5267 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5268 checking for pos match.
5269
545312c2
KH
52702008-12-30 Kenichi Handa <handa@m17n.org>
5271
1ede3eb6
KH
5272 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5273 just get the low 8-bit of the code.
5274
545312c2
KH
5275 * font.c (font_intern_prop): Validate str as multibyte.
5276
bd7bbf29
DN
52772008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5278
31e0750e
DN
5279 * dispextern.h (struct face): Move lface and hash from the middle
5280 of bitfields.
5281
bd7bbf29
DN
5282 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5283
b5672e7c
DN
52842008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5285
5286 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5287 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5288 instead of intervals.h.
5289
d704470f
AS
52902008-12-26 Andreas Schwab <schwab@suse.de>
5291
5292 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5293 cons.
5294
54b33868
MR
52952008-12-26 Martin Rudalics <rudalics@gmx.at>
5296
5297 * textprop.c (Qminibuffer_prompt): New variable.
5298 (syms_of_textprop): Initialize it.
5299 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5300 in minibuffer-prompt face. (Bug#1662)
5301
40b615d6
JR
53022008-12-25 Jason Rumney <jasonr@gnu.org>
5303
5304 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5305
baae5c2d
JR
53062008-12-24 Jason Rumney <jasonr@gnu.org>
5307
5308 * ralloc.c (r_alloc_reset_variable): New function.
5309
5310 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5311 record of what points where. (Bug#716)
baae5c2d 5312
a9051c88
DN
53132008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5314
5315 * minibuf.c (read_minibuf): Follow the non-interactive case when
5316 running as a daemon, before detaching.
5317
8b146312
AS
53182008-12-22 Andreas Schwab <schwab@suse.de>
5319
5320 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5321 * gtkutil.c (free_widget_value): Use xfree instead of free.
5322
56f2de10
MR
53232008-12-22 Martin Rudalics <rudalics@gmx.at>
5324
5325 * frame.c (delete_frame): New function derived from
5326 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5327 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5328 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5329 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5330 * frame.h: Extern delete_frame.
5331 * window.c (window_loop):
5332 * terminal.c (delete_terminal):
5333 * xterm.c (x_connection_closed):
5334 * xfns.c (Fx_hide_tip):
9acef61c 5335 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5336
1fc200d6
JR
53372008-12-21 Jason Rumney <jasonr@gnu.org>
5338
5339 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5340 when character maps to .notdef character.
5341
5e252df2
SM
53422008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5343
5344 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5345
99b72cc4
JR
53462008-12-20 Jason Rumney <jasonr@gnu.org>
5347
5348 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5349 a graphical frame on Windows. (Bug#1325)
99b72cc4 5350
acc49a52
JD
53512008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5352
5353 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5354
6ea15123
CY
53552008-12-20 Chong Yidong <cyd@stupidchicken.com>
5356
5357 * minibuf.c (Fread_buffer): Doc fix.
5358
b2dab6c8
JR
53592008-12-20 Jason Rumney <jasonr@gnu.org>
5360
54ea0c87 5361 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5362 server name in UNC paths. (Bug#719)
54ea0c87 5363
b2dab6c8 5364 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5365 charbuf. (Bug#1035)
b2dab6c8 5366
6d1921be
DN
53672008-12-19 Daniel Engeler <engeler@gmail.com>
5368
5369 * sysdep.c (serial_configure): Fix typo.
5370
53934c98
DN
53712008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5372
5373 * sysdep.c: Include alloca.h.
f4f634e8
DN
5374 (system_process_attributes): Add implementation for Solaris.
5375
5376 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5377
06e111a6
DN
53782008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5379
5380 Reorganize implementation of Flist_system_processes and
5381 Fsystem_process_attributes. No functional changes.
5382 * process.c: Don't #include pwd.h, grp.h and limits.h.
5383 (Flist_system_processes): Just call list_system_processes.
5384 (Fsystem_process_attributes): Just call system_process_attributes.
5385 (procfs_list_system_processes, time_from_jiffies)
5386 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5387 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5388
5389 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5390 (list_system_processes): Rename from
5391 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5392 Provide a do nothing implementation.
5393 (system_process_attributes): Rename from
5394 procfs_list_system_processes.
5395 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5396 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5397
5398 * w32.c (list_system_processes): Rename from
5399 w32_list_system_processes.
5400 (system_process_attributes): Rename from
5401 w32_system_process_attributes.
5402
5403 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5404
5405 * process.h (w32_list_system_processes)
5406 (w32_system_process_attributes): Remove.
362654a6
JB
5407 (list_system_processes, system_process_attributes):
5408 New prototypes.
06e111a6 5409
6a705b23
KH
54102008-12-19 Kenichi Handa <handa@m17n.org>
5411
5412 * xfont.c (xfont_decode_coding_xlfd): New function.
5413 (xfont_encode_coding_xlfd): New function.
5414 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5415 (xfont_list): Decode and encode XLFD by iso-8859-1.
5416 (xfont_match): Likewise.
5417 (xfont_list_family): Likewise.
5418 (xfont_open): Likewise.
5419
d66c0241 5420 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5421 names are utf-8.
5422
d66c0241 5423 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5424 names are utf-8.
5425
5a130941
JD
54262008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5427
5428 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5429 changed.
bfd20325
JD
5430 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5431 clicked on a detached tool bar button.
5a130941 5432
fd95644b
DN
54332008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5434
5435 * emacs.c (main): Print and error and exit when no data is read
5436 from the pipe.
5437
e6eee6ae
JR
54382008-12-17 Jason Rumney <jasonr@gnu.org>
5439
5440 * w32font.c (w32font_has_char): Always return -1.
5441
a35dd56b
KH
54422008-12-16 Kenichi Handa <handa@m17n.org>
5443
5444 * font.c (font_open_entity): Fix previous change.
5445
0e3635c2
DN
54462008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5447
5448 * process.c: Include <limits.h>.
5449
d4835507 54502008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5451
5452 * font.c (font_update_drivers): Fix mistake in reconstructing the
5453 driver list.
5454
54552008-12-16 Chong Yidong <cyd@stupidchicken.com>
5456
5457 * font.c (font_clear_cache): Fix format of font cache data.
5458
e2cbc401
CY
54592008-12-15 Chong Yidong <cyd@stupidchicken.com>
5460
5461 * xftfont.c (xftfont_open): Free Xft font pattern if
5462 XftFontOpenPattern fails.
5463
5464 * xterm.c (x_free_frame_resources): Remove extraneous call to
5465 free_frame_faces.
5466
b131d535
CY
54672008-12-13 Chong Yidong <cyd@stupidchicken.com>
5468
5469 * xterm.c (x_delete_display): Move xim_close_dpy call to
5470 x_delete_terminal.
5471 (x_delete_terminal): Call xim_close_dpy.
5472
e6df5336
JR
54732008-12-13 Jason Rumney <jasonr@gnu.org>
5474
5475 * w32font.c (intern_font_name): New function.
5476 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5477 (w32font_open_internal, Fx_select_font): Decode font name.
5478 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5479
5480 * w32font.h (intern_font_name): Declare new function.
5481
5482 * w32uniscribe.c (add_opentype_font_name_to_list):
5483 Use intern_font_name.
5484
20d68145
CY
54852008-12-13 Chong Yidong <cyd@stupidchicken.com>
5486
9f2554de
CY
5487 * frame.c (Fdelete_frame): Call free_font_driver_list.
5488
3d9bec9a
CY
5489 * font.c (free_font_driver_list): Implement missing function.
5490
20d68145
CY
5491 * w32term.c (w32_term_init): Don't initialize the image cache
5492 here; it will be done in init_frame_faces.
5493
5494 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5495 (struct x_display_info): Remove unused member null_pixel. New
5496 member xim_callback_data.
5497
5498 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5499 (xim_initialize): Save pointer to callback function data.
5500 (xim_close_dpy): Free callback function data. Call XCloseIM,
5501 reverting 2008-11-04 change by David Smith.
5502 (x_term_init): Don't initialize the image cache here; it will be
5503 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5504 (x_delete_display): Free x_dnd_atoms member.
5505
96f9306b
KH
55062008-12-13 Kenichi Handa <handa@m17n.org>
5507
6dec9044
JB
5508 * font.c (font_rescale_ratio): Moved from xfaces.c.
5509 Argument type changed. Handle a font-spec too.
96f9306b 5510 (font_score): Check Vface_font_rescale_alist.
6dec9044 5511 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5512
5513 * xfaces.c (font_rescale_ratio): Moved to font.c.
5514
8d5b4964
CY
55152008-12-13 Chong Yidong <cyd@stupidchicken.com>
5516
5517 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5518
e6df5336
JR
55192008-12-12 Jason Rumney <jasonr@gnu.org>
5520
5521 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5522 Vwindow_system_version to the real w32 major version.
5523
97c6058a
DN
55242008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5525
5526 * term.c (init_tty): Move setting the terminal name before the
5527 potential user: maybe_fatal.
5528
ec4e88d7
CY
55292008-12-11 Chong Yidong <cyd@stupidchicken.com>
5530
d4835507
JB
5531 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5532 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5533
b4233ec9
JR
55342008-12-11 Jason Rumney <jasonr@gnu.org>
5535
8ec71e23 5536 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5537 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5538
b4233ec9 5539 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5540 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5541
011a0143
JB
55422008-12-11 Juanma Barranquero <lekktu@gmail.com>
5543
5544 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5545
3c309f34
JB
55462008-12-11 Juanma Barranquero <lekktu@gmail.com>
5547
5548 * process.c (Fsystem_process_attributes, syms_of_process):
5549 Fix typo in name of Ssystem_process_attributes.
5550 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5551
fedc6ab5
JB
55522008-12-11 Juanma Barranquero <lekktu@gmail.com>
5553
5554 * syntax.c (Fmodify_syntax_entry): Doc fix.
5555
ba3de0e8
JB
55562008-12-10 Juanma Barranquero <lekktu@gmail.com>
5557
5558 * font.c (Ffont_spec): Move usage to end of docstring.
5559
174f1c74
JR
55602008-12-10 Jason Rumney <jasonr@gnu.org>
5561
5562 * w32font.c (Qcham): New symbol.
5563 (font_supported_scripts): Add cham, and comments for other new
5564 scripts in bitfield from OpenType spec.
9d32f818
JR
5565 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5566 contain characters beyond the bmp.
174f1c74 5567
7b649478
KH
55682008-12-10 Kenichi Handa <handa@m17n.org>
5569
5570 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5571 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5572 Qunicode_sip.
5573
2133e2d1
JB
55742008-12-10 Juanma Barranquero <lekktu@gmail.com>
5575
5576 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5577 (Fcoding_system_put): Use QCdefault_char.
5578 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5579
9af886ee
CY
55802008-12-09 Chong Yidong <cyd@stupidchicken.com>
5581
74d819eb
CY
5582 * xftfont.c (syms_of_xftfont): Fix typo.
5583
4ccfa1c0 5584 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5585
7c19d3ae
DN
55862008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5587
5588 * emacs.c (main): Close daemon_pipe on exec.
5589
567826bb
CY
55902008-12-08 Chong Yidong <cyd@stupidchicken.com>
5591
5592 * termchar.h (struct tty): New members termcap_term_buffer and
5593 termcap_strings_buffer.
5594
5595 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5596 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5597 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5598 All callers changed.
5599 (init_tty): Store termcap data and string buffers in new struct
5600 tty members termcap_term_buffer and termcap_strings_buffer.
5601 (delete_tty): Free them.
4ccfa1c0 5602 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5603
aa96c42b
SZ
56042008-12-07 Seiji Zenitani <zenitani@mac.com>
5605
5606 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5607 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5608
b7e1d896
CY
56092008-12-06 Chong Yidong <cyd@stupidchicken.com>
5610
5611 * coding.c (make_conversion_work_buffer): Disable buffer
5612 modification hooks in the work buffer.
5613
b5ec91a5
EZ
56142008-12-05 Eli Zaretskii <eliz@gnu.org>
5615
5616 * process.c (procfs_system_process_attributes): If `nread' has a
5617 negative value, assign zero to it.
5618
a5d2a52b
CY
56192008-12-05 Chong Yidong <cyd@stupidchicken.com>
5620
68c5540b 5621 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5622
7bf1bb21
KH
56232008-12-05 Kenichi Handa <handa@m17n.org>
5624
5625 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5626 second character is a combining character.
5627
2fdc7d00
EZ
56282008-12-05 Eli Zaretskii <eliz@gnu.org>
5629
5630 * process.c (procfs_system_process_attributes): Don't use cmd,
5631 cmdsize, and q without initializing them first.
5632
bf6bfba8
JR
56332008-12-04 Jason Rumney <jasonr@gnu.org>
5634
5635 * w32font.c (w32font_draw): Initialize orig_clip before getting
5636 it, and delete it when finished.
5637
a3b1a468
DN
56382008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5639
5640 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5641 case when running as a daemon before detaching.
5642
8b8be8eb
JB
56432008-12-03 Juanma Barranquero <lekktu@gmail.com>
5644
805f2638 5645 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5646
b1bde622
KH
56472008-12-03 Kenichi Handa <handa@m17n.org>
5648
e500c47d
KH
5649 * font.c (font_at): Set `multibyte' at first.
5650
ca516334
KH
5651 * coding.c (decode_coding_charset): Check type of an element of
5652 vector VALIDS.
7bf1bb21 5653 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5654
4ccfa1c0 5655 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5656 (font_for_char): Likewise.
5657
1e5ecd37
CY
56582008-12-03 Chong Yidong <cyd@stupidchicken.com>
5659
d5b01609 5660 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5661 (font_update_lface): Handle fonts with corrupted size specs,
5662 i.e. non-int and non-float.
d5b01609 5663
11e3a6e4 5664 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5665 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5666 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5667
ab06788b
CY
5668 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5669
1e5ecd37 5670 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5671 underline_minimum_offset for underline position.
1e5ecd37 5672
63c125ab
DN
56732008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5674
5675 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5676
5677 * character.c (c_string_width): Specify the type for LEN.
5678
3a8406e1
KH
56792008-12-03 Kenichi Handa <handa@m17n.org>
5680
4ccfa1c0 5681 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5682 (decode_coding_utf_8): Likewise.
4ccfa1c0 5683 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5684 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5685
651df7d9
CY
56862008-12-02 Chong Yidong <cyd@stupidchicken.com>
5687
5688 * keyboard.c (make_lispy_position): Only use PT if the selected
5689 window is current.
5690
1f625c6c
AS
56912008-12-02 Andreas Schwab <schwab@suse.de>
5692
f7741ce9
AS
5693 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5694
1f625c6c
AS
5695 * doprnt.c (doprnt1): Fix size of charbuf.
5696
92bc2678
CY
56972008-12-02 Chong Yidong <cyd@stupidchicken.com>
5698
5699 * keyboard.c (timer_check): Revert last change.
5700
93b9e8cc
JB
57012008-12-02 Juanma Barranquero <lekktu@gmail.com>
5702
5703 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5704
fd7a37d5
JB
57052008-12-01 Juanma Barranquero <lekktu@gmail.com>
5706
5707 * makefile.w32-in: Update dependencies.
5708 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5709
c115043b
AS
57102008-12-01 Andreas Schwab <schwab@suse.de>
5711
5712 * font.c (register_font_driver): Use xmalloc.
5713 (font_put_frame_data): Likewise.
5714
f5668d2a
CY
57152008-12-01 Chong Yidong <cyd@stupidchicken.com>
5716
860d96be
CY
5717 * xfaces.c (realize_x_face): Make abort condition clearer.
5718
f5668d2a
CY
5719 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5720
379c17e7
CY
57212008-11-30 Chong Yidong <cyd@stupidchicken.com>
5722
5723 * keyboard.c (timer_check): After a timer runs, ensure that the
5724 selected window's buffer is current.
5725
35f36d65
JB
57262008-11-30 Juanma Barranquero <lekktu@gmail.com>
5727
f952c61c
JB
5728 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5729 It was accidentally restored by the Unicode merge.
5730
35f36d65
JB
5731 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5732
b23077df
JB
57332008-11-29 Juanma Barranquero <lekktu@gmail.com>
5734
5735 * w32proc.c: Include "coding.h".
5736 (Fw32_short_file_name): Encode filename passed to Windows API.
5737 (Fw32_long_file_name): Encode filename passed to Windows API and
5738 decode back the result. (Bug#1433)
5739
b8ebe9dd
KH
57402008-11-29 Kenichi Handa <handa@m17n.org>
5741
8cc53f96
KH
5742 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5743 not before accessing it.
5744
b8ebe9dd
KH
5745 * charset.c (Fdefine_charset_internal): After calculating
5746 min_char, max_char, and fastmap, copy the charset structure again.
5747 (encode_char): Fix the previous change.
5748
59bc82c0
SZ
57492008-11-28 Seiji Zenitani <zenitani@mac.com>
5750
5751 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5752
5753 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5754
5755 * nsterm.m (x_set_frame_alpha): New function.
5756
32247e3d
EZ
57572008-11-27 Eli Zaretskii <eliz@gnu.org>
5758
5759 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5760
b003e5ff
JB
57612008-11-27 Juanma Barranquero <lekktu@gmail.com>
5762
5763 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5764 pointer to check_face_name.
5765
708550f5
KH
57662008-11-27 Kenichi Handa <handa@m17n.org>
5767
5768 * category.h (SET_CATEGORY_SET): Call set_category_set.
5769 (set_category_set): Extern it.
5770
5771 * category.c (hash_get_category_set): New function.
5772 (Fmodify_category_entry): Adjusted for the change of
5773 char_table_ref_and_range. Call hash_get_category_set to get a
5774 category set to store in the table.
5775
5776 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5777 Funify_charset.
5778
2ae37cf0 5779 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5780 (DECODE_CHAR): Check if the decoder vector is ready.
5781 (ENCODE_CHAR): Check if the encoder char-table is ready.
5782 (maybe_unify_char): Extern it.
5783
5784 * charset.c (Vchar_unified_charset_table): Delete it.
5785 (inhibit_load_charset_map): New variable.
5786 (temp_charset_work): New variable.
5787 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5788 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5789 New macros.
5790 (load_charset_map): Meaning of control_flag changed. If
5791 inhibit_load_charset_map is nonzero, setup a table in
5792 temp_charset_work.
5793 (load_charset): New argument control_flag.
5794 (map_charset_for_dump): New function.
5795 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5796 map_charset_for_dump.
5797 (Fdefine_charset_internal): If the charset method is MAP, load
5798 mapping tables by calling load_charset.
5799 (Funify_charset): Don't load a mapping table but directly set
5800 Vchar_unify_table.
5801 (maybe_unify_char): New function.
5802 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5803 Handle the case of inhibit_load_charset_map being nonzero.
5804 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5805 Handle the case of inhibit_load_charset_map being nonzero.
5806 (Fclear_charset_maps): Just free temp_charset_work.
5807 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5808 variable.
5809
5810 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5811 change of char_table_ref_and_range.
5812 (char_table_ref_and_range): Change the meaning of argument FROM
5813 and TO. Now the caller must provide initial values for *FROM
5814 and *TO.
5815
5816 * fontset.c (fontset_add): Adjusted for the change of
5817 char_table_ref_and_range.
5818 (fontset_get_font_group): Likewise.
5819 (Ffontset_info): Likewise.
5820
5821 * keymap.c (describe_vector): Adjusted for the change of
5822 char_table_ref_and_range. For char-table, put boundary between
5823 non-ASCII and 8-bit characters.
5824
5825 * print.c (print_object): For bool-vector, delete unnecessary
5826 check of ASCII_BYTE_P.
5827
9196133b
JR
58282008-11-26 Jason Rumney <jasonr@gnu.org>
5829
5830 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5831 leading in font height. (Bug#879)
9196133b 5832
9f688acf
GM
58332008-11-26 Glenn Morris <rgm@gnu.org>
5834
5835 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5836 redefinition with ifdef. (Bug#1383)
5837
90d19aff
AR
58382008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5839
5840 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5841
4ccfa1c0 58422008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5843
5844 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5845 New EmacsView methods.
5846 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5847 Fixes bug #1048,1357,1414.
5848
58492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5850
5851 Fix bug #1362.
5852 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5853 is not an indexed color.
5854 * nsterm.m (free_indexed_color): Add argument checking.
5855 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5856
e7d5ecb3
CY
58572008-11-24 Chong Yidong <cyd@stupidchicken.com>
5858
5859 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5860 Document confirm-after-completion value for
5861 minibuffer-completion-confirm.
5862
c285743c
JR
58632008-11-24 Jason Rumney <jasonr@gnu.org>
5864
5865 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5866 warning.
5867
b0857706
JR
58682008-11-23 Jason Rumney <jasonr@gnu.org>
5869
5870 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5871 restored before returning.
5872
5873 * w32font.c (check_face_name): New function.
5874 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5875 fonts. (Bug#642)
b0857706 5876
ee50ff07
MR
58772008-11-22 Martin Rudalics <rudalics@gmx.at>
5878
5879 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5880 confirm-nonexistent-file-or-buffer in doc-string.
5881
b8ff72fa
SM
58822008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5883
5884 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5885 Fix copy/paste typo. Add checks.
5886
cee53ed4
KH
58872008-11-21 Kenichi Handa <handa@m17n.org>
5888
5889 * coding.c (detect_coding_iso_2022): Reject invalid composition
5890 sequence.
5891 (DECODE_COMPOSITION_START): If the current source is the last
5892 block, and the current composition doesn't end, regard this
5893 sequence as invalid.
5894 (decode_coding_iso_2022): Handle invalid composition sequence.
5895
f6ef1e65
MR
58962008-11-20 Martin Rudalics <rudalics@gmx.at>
5897
5898 * window.c (coordinates_in_window): Don't return
5899 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5900 line when the window is not the rightmost one. (Bug#1372)
5901
e08b1705
MR
59022008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5903
5904 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5905
ad98e89f
EZ
59062008-11-15 Eli Zaretskii <eliz@gnu.org>
5907
5908 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5909 and bright_bg if noninteractive is non-zero.
5910
fb098a4b
CY
59112008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5912
5913 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5914 x_draw_glyph_string_background.
5915
5916 * w32term.c (x_draw_glyph_string): Likewise.
5917
ce952b6e
CY
59182008-11-15 Chong Yidong <cyd@stupidchicken.com>
5919
5920 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5921 the next glyph string once past the overhang width.
5922
5923 * nsterm.m (ns_draw_glyph_string): Likewise.
5924
5925 * w32term.c (x_draw_glyph_string): Likewise.
5926
26ea7079
CY
59272008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5928
5929 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5930 double file close.
5931
1c33c906
MR
59322008-11-14 Martin Rudalics <rudalics@gmx.at>
5933
5934 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5935 dedicated status of window before attempting to display another
5936 buffer in it.
5937
8fc29035
JB
59382008-11-14 Juanma Barranquero <lekktu@gmail.com>
5939
5940 * msdos.c (Fmsdos_long_file_names):
5941 (syms_of_msdos) <dos-unsupported-char-glyph>:
5942 * dosfns.c (Fint86): Fix typos in docstrings.
5943
55fb4286
EZ
59442008-11-14 Eli Zaretskii <eliz@gnu.org>
5945
5946 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5947
3fda0315
KY
59482008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5949
5950 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5951
7e849c17
CY
59522008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5953
5954 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5955
5956 * frame.h: Negative alpha means "don't touch".
5957
5958 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5959
5960 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5961
b9fd67bd
DN
59622008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5963
5964 * hftctl.c:
5965 * chpdef.h:
5966 * acldef.h: Remove files used only for systems no longer supported.
5967
5968 * Makefile.in: Fix .o alphabetical ordering.
5969 (hftctl.o): Remove dependency, file removed.
5970 (keymap.o, print.o): Depend on charset.h.
5971
d5998e03
KH
59722008-11-10 Kenichi Handa <handa@m17n.org>
5973
2ae37cf0 5974 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5975
be70e183
CY
59762008-11-08 Chong Yidong <cyd@stupidchicken.com>
5977
5978 * dired.c (file_name_completion): If completion_ignore_case is
5979 enabled, ignore case when checking completion-regexp-list.
5980
7cf94eac
EZ
59812008-11-08 Eli Zaretskii <eliz@gnu.org>
5982
5983 * vm-limit.c (get_lim_data): Fix last change.
5984
ee107a89
KH
59852008-11-08 Kenichi Handa <handa@m17n.org>
5986
5987 * character.c (Fget_byte): New function.
5988 (syms_of_character): Defsubr Fget_byte.
5989
5fd15622
CY
59902008-11-07 Chong Yidong <cyd@stupidchicken.com>
5991
5992 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5993 cursor position is valid after scrolling.
5994
13d62fad
JB
59952008-11-06 Juanma Barranquero <lekktu@gmail.com>
5996
5997 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5998
a1dd2936
GM
59992008-11-06 Glenn Morris <rgm@gnu.org>
6000
6001 * xterm.c (handle_one_xevent): Don't let popup menus cause
6002 mouse-autoselect-window related window switching. (Bug#1261)
6003
860cd236
CY
60042008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6005
6006 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6007
653a3150
AS
60082008-11-04 Andreas Schwab <schwab@suse.de>
6009
6010 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6011
870f5cac
CY
60122008-11-03 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * xfns.c (Fx_wm_set_size_hint): New function.
6015
1e02f3cb
MR
60162008-11-03 Martin Rudalics <rudalics@gmx.at>
6017
6018 * textprop.c (Fprevious_single_char_property_change): Return 0
6019 when there's no change in a string. (Bug#1301)
6020
e630dfc6
MR
60212008-11-02 Martin Rudalics <rudalics@gmx.at>
6022
6023 * frame.c (do_switch_frame): New argument NORECORD passed to
6024 Fselect_window.
6025 (Fselect_frame): New argument NORECORD passed to
6026 do_switch_frame.
6027 (Fset_frame_selected_window): New argument NORECORD passed to
6028 Fselect_frame.
6029 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6030 in call of do_switch_frame.
6031 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6032 Handle NORECORD argument in call of Fselect_frame.
6033 * lisp.h (do_switch_frame, Fselect_frame)
6034 (Fset_frame_selected_window): Adjust declarations.
6035 * window.c (select_frame_norecord): New function.
6036 (run_window_configuration_change_hook): Use it and call
6037 Fselect_frame with NORECORD set.
6038 (Fselect_window): Pass NORECORD to Fselect_frame.
6039 (Fset_window_configuration): Handle NORECORD argument in call of
6040 do_switch_frame.
6041 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6042 Fset_frame_selected_window.
6043 * keyboard.c (command_loop_1): Handle NORECORD in call of
6044 Fselect_frame (currently ifdefd).
6045
9020b223
GM
60462008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6047
6048 * emacs.c (USAGE2): Untabify.
6049
793ffee8
SM
60502008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6051
6052 * composite.c (fill_gstring_header): Fix copy/paste typo.
6053
ab6d1131
MR
60542008-10-31 Martin Rudalics <rudalics@gmx.at>
6055
6056 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6057 (Fother_window): Rename argument and rewrite doc-string.
6058 (select_window_norecord): Fix return value. (Bug#1276)
6059
601a9cf1
JB
60602008-10-30 Juanma Barranquero <lekktu@gmail.com>
6061
6062 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6063 new frames overriding foreground for tooltips. Based on similar patch
6064 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6065
813b0652
CY
60662008-10-29 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * emacs.c (Fdaemon_initialized): Initialize nfd.
6069
4414f58f
MR
60702008-10-29 Martin Rudalics <rudalics@gmx.at>
6071
6072 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6073 (Fwindow_text_height): Clarify doc-strings.
6074 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6075 doc-string of window-scroll-functions.
6076
ecdcaa09
RS
60772008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6078
6079 * category.c (syms_of_category): Fix typo in docstring.
6080
23fe745a
JB
60812008-10-28 Juanma Barranquero <lekktu@gmail.com>
6082
6083 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6084 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6085 Fix typos in docstrings.
6086
ff808935
DN
60872008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6088
6089 * emacs.c (daemon_pipe): Make non-static.
6090 (IS_DAEMON): Move definition ...
6091 * lisp.h (IS_DAEMON): ... here.
6092 (daemon_pipe): Declare.
6093 (is_daemon): Remove.
6094 * dispnew.c (init_display): Use IS_DAEMON.
6095
fc012771
SM
60962008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6097
6098 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6099 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6100
6101 * emacs.c (is_daemon): Remove.
6102 (main): Don't set is_daemon.
6103 (IS_DAEMON): New macro.
6104 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6105 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6106 parent exits.
6107 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6108
d8bdbe6f
CY
61092008-10-27 Chong Yidong <cyd@stupidchicken.com>
6110
d1a072bf
CY
6111 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6112 over-sized glyph, draw it with the default glyph width.
6113
e2e325aa
CY
6114 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6115 glyph, draw it with the default glyph width.
6116
6117 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6118 glyph, draw it with the default glyph width.
6119
d8bdbe6f
CY
6120 * xdisp.c (try_scrolling): When computing the distance from the
6121 scroll margin to PT, try moving some distance past the window
6122 bottom before giving up.
6123
7bfac547
MR
61242008-10-27 Martin Rudalics <rudalics@gmx.at>
6125
6126 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6127 (Fset_window_buffer): Explain in doc-string that a window can be
6128 "strongly" dedicated to its buffer.
6129
4ff029f6
DN
61302008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6131
6132 * emacs.c (daemon_name): New variable.
6133 (main): Deal with --daemon=SERVER_NAME.
6134 (Fdaemonp): Return a name if one was passed to --daemon.
6135
5790ef40
DN
61362008-10-26 Romain Francoise <romain@orebokech.com>
6137
f9bd0df9 6138 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6139 (main): Create a pipe before forking, make the parent exit only after
6140 the child has closed its end of the pipe. Move closing the
6141 descriptors ...
6142 (Fdaemon_initialized): ... here. New function.
6143
f5385255
SM
61442008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6145
4d632321
SM
6146 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6147 the previous unoptimized table.
6148
f5385255
SM
6149 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6150 the distinction between non-nil and non-t value of `dedicated'.
6151
6c56a0f3
CY
61522008-10-25 Chong Yidong <cyd@stupidchicken.com>
6153
6154 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6155 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6156
fec89261
MR
61572008-10-25 Martin Rudalics <rudalics@gmx.at>
6158
6159 * window.c (Fget_buffer_window, Fdelete_windows_on)
6160 (Freplace_buffer_in_windows): Make buffer argument optional and
6161 rename to buffer_or_name.
6162
34fcddd0
CY
61632008-10-24 Chong Yidong <cyd@stupidchicken.com>
6164
f5385255
SM
6165 * xdisp.c (handle_single_display_spec, handle_display_prop):
6166 Undo 2005-05-16 change.
34fcddd0
CY
6167 (handle_stop): Pop iterator if it's loaded with an empty string.
6168 (get_overlay_strings_1): Don't save iterator if it's loaded with
6169 an empty string (bug#1201).
6170
064766f2
KH
61712008-10-24 Kenichi Handa <handa@m17n.org>
6172
6173 * ftfont.c (ftfont_otf_features): Fix previous change.
6174 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6175 calling ftfont_otf_features.
6176
f9bd0df9 61772008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6178
6179 * font.c (font_match_p): Fix for the case that a vector of
6180 characters is in script-representative-chars.
6181
1dae9197
MA
61822008-10-24 Michael Albinus <michael.albinus@gmx.de>
6183
6184 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6185 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6186 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6187 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6188 macro. (Bug#1186)
1dae9197 6189
f9bd0df9 61902008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6191
6192 * s/sol2-10.h: New file.
6193
878a4584
JB
61942008-10-23 Juanma Barranquero <lekktu@gmail.com>
6195
6196 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6197 poor beast has survived 9+ years and the jump from xterm.c!).
6198
cd265ca6
MR
61992008-10-23 Martin Rudalics <rudalics@gmx.at>
6200
6201 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6202 Reword doc-string.
f5385255 6203 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6204
472a4dc9
JB
62052008-10-23 Juanma Barranquero <lekktu@gmail.com>
6206
6207 * character.c (syms_of_character) <script-representative-chars>:
6208 <unicode-category-table>: Doc fixes.
6209
159bd5a2
NF
62102008-10-23 Noah Friedman <friedman@splode.com>
6211
6212 * coding.c (make_conversion_work_buffer): Check that
6213 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6214 Fget_buffer_create.
6215
49f9c344
KH
62162008-10-23 Kenichi Handa <handa@m17n.org>
6217
6218 * font.c (font_add_log): Check the values of extra properties.
6219
12bb3111
MR
62202008-10-22 Martin Rudalics <rudalics@gmx.at>
6221
6222 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6223 Reword doc-string.
6224 (Fset_window_parameter): Use NILP.
6225 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6226 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6227
bbeb4e99
JB
62282008-10-22 Juanma Barranquero <lekktu@gmail.com>
6229
6230 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6231
62322008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6233
6234 * nsfns.m (ns_appkit_version): New function.
6235 (x-server-version): Use it.
6236 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6237 (x-server-vendor): Don't check_ns().
6238
6239 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6240
a9b555d3
JB
62412008-10-22 Juanma Barranquero <lekktu@gmail.com>
6242
6243 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6244 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6245
4626499f
KH
62462008-10-22 Kenichi Handa <handa@m17n.org>
6247
e3681952
KH
6248 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6249 scripts.
6250
4626499f
KH
6251 * category.c (word_boundary_p): Check scripts instead of charset.
6252 Handle nil value in word-separating-categories and
6253 word-combining-categories.
6254 (syms_of_category): Fix docstrings of word-separating-categories
6255 and word-combining-categories.
6256
1560f91a
EZ
62572008-10-21 Eli Zaretskii <eliz@gnu.org>
6258
6259 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6260 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6261
f4668441
MR
62622008-10-21 Martin Rudalics <rudalics@gmx.at>
6263
6264 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6265 Rename arg "buffer" to "buffer_or_name".
6266 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6267 it optional.
6268 (no_switch_window): Remove since the return value is not used.
a9b555d3 6269 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6270 Consider window as dedicated when Fwindow_dedicated_p returns a
6271 non-nil value.
6272 * lisp.h: Remove prototype for no_switch_window.
6273
fd75ddb2
JD
62742008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6275
6276 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6277 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6278
07295713
KH
62792008-10-21 Kenichi Handa <handa@m17n.org>
6280
6281 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6282 check Vlatin_extra_code_table.
6283
712adc82
EZ
62842008-10-20 Eli Zaretskii <eliz@gnu.org>
6285
6286 * fileio.c (Fset_file_modes): Doc fix.
6287
f549eb0b
MA
62882008-10-19 Michael Albinus <michael.albinus@gmx.de>
6289
6290 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6291 in arrays.
6292
aac0c6e3
MR
62932008-10-19 Martin Rudalics <rudalics@gmx.at>
6294
6295 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6296 Mention kill-buffer in doc-string.
6297 (Fset_window_buffer): Reinsert tem check removed in last commit.
6298 (Fenlarge_window, Fshrink_window): Have argument names and
6299 doc-string follow Elisp manual more closely.
6300
63012008-10-18 Eli Zaretskii <eliz@gnu.org>
6302
6303 * fileio.c (Fset_file_modes): Doc fix.
6304
63052008-10-18 Martin Rudalics <rudalics@gmx.at>
6306
6307 * window.c (Fwindow_width, Fset_window_start)
6308 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6309 (Fdelete_windows_on, Freplace_buffer_in_windows):
6310 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6311 (Fwindow_dedicated_p): Make window argument optional.
6312 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6313 (Fset_window_buffer): Respect any non-nil dedicated value for
6314 window. Rename "buffer" argument to "buffer_or_name".
6315
63162008-10-18 Ulrich Mueller <ulm@gentoo.org>
6317
6318 * m/sh3.h: New file, machine description for SuperH.
6319
63202008-10-17 Martin Rudalics <rudalics@gmx.at>
6321
6322 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6323
63242008-10-17 Kenichi Handa <handa@m17n.org>
6325
6326 * ftfont.c (ftfont_otf_features): Fix indexing
6327 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6328
63292008-10-16 Magnus Henoch <mange@freemail.hu>
6330
6331 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6332 (Fdbus_call_method_asynchronously): Ditto.
6333 This change makes C-h f display the argument list.
6334
63352008-10-16 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * fileio.c (Fexpand_file_name): Doc fix.
6338
6339 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6340 of :foreground and :background equivalent to unspecified (20.x
6341 compatibility).
6342
63432008-10-15 Eli Zaretskii <eliz@gnu.org>
6344
6345 * buffer.c (syms_of_buffer): Doc fix.
6346
63472008-10-14 Kenichi Handa <handa@m17n.org>
6348
6349 * font.c (font_clear_prop): When clearing font width, clear the
6350 average width field too.
6351
63522008-10-12 Andreas Schwab <schwab@suse.de>
6353
6354 * ftfont.c (ftfont_shape_by_flt): Make static.
6355 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6356
6357 * font.c: Don't include <m17n-flt.h>.
6358
63592008-10-10 Eli Zaretskii <eliz@gnu.org>
6360
6361 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6362
63632008-10-09 Eli Zaretskii <eliz@gnu.org>
6364
6365 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6366 away code.
6367
63682008-10-09 Chong Yidong <cyd@stupidchicken.com>
6369
6370 * dispnew.c (update_text_area): Avoid looping due to large glyph
6371 overhangs (bug#1070).
6372
63732008-10-09 Kenichi Handa <handa@m17n.org>
6374
6375 * fontset.c (face_for_char): If face->fontset is negative, just
6376 return ascii_face.
6377
f5385255
SM
6378 * font.c (font_delete_unmatched): Fix previous change.
6379 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6380
63812008-10-09 Martin Rudalics <rudalics@gmx.at>
6382
6383 * frame.c (Fraise_frame): On text-only terminals select frame in
6384 order to make it visible. (Bug#1061)
6385
63862008-10-08 Chong Yidong <cyd@stupidchicken.com>
6387
6388 * fontset.c (fontset_find_font): Check frame validity.
6389
63902008-10-07 Chong Yidong <cyd@stupidchicken.com>
6391
a9b555d3 6392 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6393 (xg_display_close): Allow Emacs to close all displays (bug#985).
6394
63952008-10-06 Andreas Schwab <schwab@suse.de>
6396
f5385255 6397 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6398
63992008-10-06 Chong Yidong <cyd@stupidchicken.com>
6400
f5385255 6401 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6402
a9b555d3 6403 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6404
6405 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6406 during initialization.
6407
64082008-10-04 Eli Zaretskii <eliz@gnu.org>
6409
6410 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6411 whole thing on MSDOS frames as well as on a TTY.
6412
6413 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6414 well as for TTY.
6415 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6416 well as on a TTY.
6417
6418 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6419 as well as for TTY.
6420
6421 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6422
6423 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6424 MSDOS frames as well.
6425
64262008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6427
6428 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6429 correct arguments.
b71ac3dd 6430 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6431
64322008-10-03 Glenn Morris <rgm@gnu.org>
6433
6434 * emacs.c (USAGE1): Add --daemon.
6435
64362008-10-02 Eli Zaretskii <eliz@gnu.org>
6437
6438 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6439 100, so it's in percents as advertised.
6440
64412008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6442
6443 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6444 (ns_output.current_cursor, ns_output.desired_cursor)
6445 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6446 (FRAME_NEW_CURSOR_COLOR): Remove.
6447
6448 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6449 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6450 enumeration (HOLLOW_BOX_CURSOR, etc.).
6451
6452 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6453 (draw_window_cursor): Simplify code.
f5385255
SM
6454 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6455 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6456 updates manually.
a9b555d3
JB
6457 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6458 Use core Emacs cursor types.
aac0c6e3 6459
b8ff72fa 6460 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6461
64622008-10-02 Martin Rudalics <rudalics@gmx.at>
6463
6464 * process.c (Faccept_process_output): Fix doc-string.
6465
64662008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6467
6468 * gmalloc.c (__sbrk): Also define for uClibc.
6469
6470 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6471 for uClibc.
6472
64732008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6474
6475 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6476 styles.
6477 (nsfont_open): Reenable the cache.
6478
64792008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6480
6481 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6482 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6483
64842008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6485
6486 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6487 a suspended terminal.
6488
64892008-09-30 Michael Albinus <michael.albinus@gmx.de>
6490
6491 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6492
64932008-09-30 Eli Zaretskii <eliz@gnu.org>
6494
6495 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6496
64972008-09-30 Chong Yidong <cyd@stupidchicken.com>
6498
6499 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6500 in a continued line coincides with a line beginning.
6501
65022008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6503
6504 * nsfont.m (nsfont_trait_distance): Fix bug.
6505 (nsfont_list): Return a list rather than a vector (syncs with Handa
6506 changes of 2008-05-14).
6507 (nsfont_open): Improve logging.
6508
65092008-09-29 Andreas Schwab <schwab@suse.de>
6510
6511 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6512
65132008-09-28 Martin Rudalics <rudalics@gmx.at>
6514
6515 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6516 name as char-resolve-modifiers.
6517 Reported by: Markus Triska <markus.triska@gmx.at>
6518
65192008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6520
6521 * dispnew.c (init_display): Return earlier when running as a daemon.
6522
65232008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6524
6525 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6526
65272008-09-27 Eli Zaretskii <eliz@gnu.org>
6528
6529 * composite.c (Fcomposition_get_gstring)
6530 (Fcompose_region_internal, Fcompose_string_internal)
6531 (Ffind_composition_internal): Doc fix.
6532 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6533 (syms_of_composite) <auto-composition-function>: Doc fix.
6534 (syms_of_composite) <composition-function-table>: Doc fix.
6535
65362008-09-25 Chong Yidong <cyd@stupidchicken.com>
6537
6538 * search.c (wordify): New argument for lax word-ends.
6539 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6540
65412008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6542
6543 * lisp.h (is_daemon): Declare.
6544 * dispnew.c (init_display): Do not try to initialize the terminal
6545 when running as a daemon.
6546
65472008-09-22 Chong Yidong <cyd@stupidchicken.com>
6548
6549 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6550 x_display_pixel_height.
6551
65522008-09-22 Martin Rudalics <rudalics@gmx.at>
6553
6554 * undo.c (record_point): Don't call Fundo_boundary for first
6555 change. (Bug#731)
6556
65572008-09-22 Juanma Barranquero <lekktu@gmail.com>
6558
6559 * emacs.c (Fdaemonp): Doc fix.
6560
65612008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6562
6563 * emacs.c (main): Place #ifdef in the proper place.
6564
65652008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6566
6567 * emacs.c (standard_args): Add --daemon.
6568 (main): Disconnect from the terminal when --daemon is passed.
6569 (is_daemon): New variable.
6570 (Fdaemonp): New function.
6571 (syms_of_emacs): Defsubr it.
6572
65732008-09-20 Chong Yidong <cyd@stupidchicken.com>
6574
6575 * xdisp.c (get_next_display_element): Handle string display
6576 correctly when checking for the end of a box run.
6577
65782008-09-20 Glenn Morris <rgm@gnu.org>
6579
6580 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6581 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6582 (Frename_file): Avoid copying to trash if a rename involves
6583 a delete. (Bug#964).
6584
65852008-09-20 Eli Zaretskii <eliz@gnu.org>
6586
6587 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6588 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6589 frames as well as termcap frames.
6590 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6591 get_named_tty.
6592
65932008-09-19 Eli Zaretskii <eliz@gnu.org>
6594
6595 * process.c (procfs_system_process_attributes): Fix cmdline in
6596 case /proc/PID/cmdline is empty.
6597
6598 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6599 x_display_pixel_height.
6600
66012008-09-19 Juanma Barranquero <lekktu@gmail.com>
6602
6603 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6604
6605 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6606 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6607
66082008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6609
6610 * dispextern.h (struct it): Move line_wrap away from the middle of
6611 bitfields. Move voffset in struct iterator_stack_entry after the
6612 bitfields. Move tab_width near after another short.
6613
66142008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6615
6616 * frame.h (struct frame): Move alpha from the middle of bitfields.
6617
6618 * window.h (struct window): Move frozen_window_start_p after the
6619 rest of the bitfields to reduce padding.
6620
66212008-09-18 Chong Yidong <cyd@stupidchicken.com>
6622
6623 * xterm.h (x_display_info): Remove `height' and `width' members.
6624
6625 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6626
6627 * w32term.h (w32_display_info): Remove `height', `width',
6628 `height_in', and `width_in' members.
6629
b8ff72fa
SM
6630 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6631 New functions.
aac0c6e3
MR
6632 (x_calc_absolute_position): Use them.
6633 (x_term_init): Omit removed `height' and `width' members.
6634
b8ff72fa
SM
6635 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6636 New functions.
aac0c6e3
MR
6637 (w32_read_socket, x_calc_absolute_position): Use them.
6638 (w32_initialize_display_info, w32_term_init): Omit removed members
6639 of w32_display_info.
6640
b8ff72fa
SM
6641 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6642 New functions.
6643 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6644
b8ff72fa
SM
6645 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6646 New functions.
aac0c6e3
MR
6647 (x_calc_absolute_position): Use them.
6648 (x_term_init): Omit removed `height' and `width' members.
6649
6650 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6651 (compute_tip_xy):
6652 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6653 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6654 x_display_pixel_width.
6655
66562008-09-18 Kenichi Handa <handa@m17n.org>
6657
6658 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6659 (composition_compute_stop_pos): Fix handling of static composition.
6660 (Fcomposition_get_gstring): Check FROM and TO at first.
6661
66622008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6663
46e722a9 6664 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6665 mixup (YAILOM).
6666
66672008-09-17 Chong Yidong <cyd@stupidchicken.com>
6668
6669 * indent.c (Fvertical_motion): Use position reported by iterator
6670 instead of PT for determining screen motion (bug#943).
6671
66722008-09-17 Romain Francoise <romain@orebokech.com>
6673
6674 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6675
66762008-09-17 Kenichi Handa <handa@m17n.org>
6677
6678 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6679
6680 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6681 if necessary.
6682
66832008-09-16 Kenichi Handa <handa@m17n.org>
6684
6685 * coding.c (make_conversion_work_buffer): Avoid calling
6686 Fget_buffer_create if it is not necessary.
6687
66882008-09-15 Martin Rudalics <rudalics@gmx.at>
6689
6690 * window.c (Fselect_window): Don't update window_select_count and
6691 use_time when norecord is not nil.
6692
66932008-09-14 Kenichi Handa <handa@m17n.org>
6694
6695 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6696 specpdl_ptr.
6697
66982008-09-12 Kenichi Handa <handa@m17n.org>
6699
6700 * indent.c (scan_for_column): Don't handle automatic composition
6701 if the current buffer is not associated with a window.
6702
6703 * composite.c (composition_reseat_it): If the current buffer is
6704 not associated with a window, ignore the automatic composition.
6705 (find_automatic_composition): Likewise.
6706
67072008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6708
6709 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6710 (Fgpm_mouse_stop): Use it.
6711 * termhooks.h (close_gpm): Declare.
6712 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6713 connection if Gpm_GetEvent fails.
6714
6715 * window.c (set_window_buffer): Always preserve current-buffer.
6716
67172008-09-12 Glenn Morris <rgm@gnu.org>
6718
6719 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6720
67212008-09-11 Glenn Morris <rgm@gnu.org>
6722
6723 * charset.c (charset-map-path): Doc fix.
6724
67252008-09-10 Kenichi Handa <handa@m17n.org>
6726
6727 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6728
6729 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6730 compose a grapheme cluster with the preceding base glyph.
6731
6732 * composite.c (composition_compute_stop_pos): Fix previous change.
6733 Reset cmp_it->id to -1 at first.
6734
67352008-09-10 Glenn Morris <rgm@gnu.org>
6736
6737 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6738
67392008-09-09 Chong Yidong <cyd@stupidchicken.com>
6740
6741 * keyboard.c (read_key_sequence): Reapply translation maps when
6742 switching keyboards.
6743
67442008-09-09 Kenichi Handa <handa@m17n.org>
6745
6746 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6747 characters.
6748
6749 * composite.c (FORWARD_CHAR): Fix calculation
6750 of (POSITION).pos_byte.
6751 (composition_compute_stop_pos): Limit the search of composition to
6752 at most 500 characters ahead. If we reach the limit or find a
6753 newline, set cmp_it->ch to -2 and return 0.
6754 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6755
67562008-09-08 Kenichi Handa <handa@m17n.org>
6757
6758 * indent.c (Fvertical_motion): Be sure to set
6759 it_overshoot_expected if it.cmp_it.id is non-negative.
6760
67612008-09-07 Andreas Schwab <schwab@suse.de>
6762
6763 * callproc.c (Fcall_process): Don't hold references to string data
6764 across garbage collection. Move initialisation of new_argv down
6765 to avoid compiler bug.
6766
67672008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6768
6769 * process.c (Fsystem_process_attributes): Doc fix.
6770
67712008-09-07 Chong Yidong <cyd@stupidchicken.com>
6772
6773 * callproc.c (Fcall_process): Canonicalize current directory name.
6774
6775 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6776 iterator advances to the next line if the current line ends in a
6777 continued tab.
6778
67792008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6780
6781 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6782 member to point to cmp_from.
6783
6784 * xdisp.c: Doc fix for references to gidx data member.
6785
67862008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6787
6788 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6789
67902008-09-07 Kenichi Handa <handa@m17n.org>
6791
6792 * composite.c (FORWARD_CHAR): Check STOP after
6793 incrementing (POSITION).pos.
6794
67952008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6796
6797 * process.c (Fsystem_process_attributes): Doc fix.
6798
67992008-09-06 Chong Yidong <cyd@stupidchicken.com>
6800
6801 * keyboard.c (Ftop_level): Doc fix.
6802
68032008-09-06 Eli Zaretskii <eliz@gnu.org>
6804
6805 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6806 minibuffer, don't let lower part of menu invade the echo area.
6807
6808 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6809 "char *q" to access menu text and advance through it. Revert the
6810 change that displayed ">" instead of ASCII character 0x10.
6811
68122008-09-05 Eli Zaretskii <eliz@gnu.org>
6813
6814 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6815 toggle boxes and radio buttons on MS-DOS as well.
6816
68172008-09-05 Kenichi Handa <handa@m17n.org>
6818
6819 * composite.c (autocmp_chars): Check lookback count.
6820 (composition_compute_stop_pos): Set cmp_it->lookback.
6821 (composition_reseat_it): Check lookback count.
6822 (struct position_record): New struct.
6823 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6824 (find_automatic_composition): New function.
6825 (composition_adjust_point): Use find_automatic_composition.
6826
6827 * dispextern.h (struct composition_it): New member lookback.
6828
68292008-09-02 Chong Yidong <cyd@stupidchicken.com>
6830
6831 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6832 if moving by a single line.
6833
68342008-09-02 Andreas Schwab <schwab@suse.de>
6835
6836 * xterm.c (x_delete_display): Fix merge error.
6837
6838 * fileio.c (Fexpand_file_name): Remove unused variables.
6839
68402008-09-02 Eli Zaretskii <eliz@gnu.org>
6841
6842 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6843 storage on all platforms, not just on DOS_NT.
6844
68452008-09-02 Jason Rumney <jasonr@gnu.org>
6846
b8ff72fa
SM
6847 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6848 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6849
68502008-09-01 Chong Yidong <cyd@stupidchicken.com>
6851
6852 * xfaces.c (Finternal_set_alternative_font_family_alist)
6853 (Finternal_set_alternative_font_registry_alist): Properly copy
6854 entire alist structure.
6855
68562008-09-01 Kenichi Handa <handa@m17n.org>
6857
d66c0241 6858 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6859 representative chars of the script is a vector.
d66c0241
JB
6860 (ftfont_list): Handle the case where the representative chars of
6861 the script is a vector.
aac0c6e3
MR
6862
6863 * character.c (syms_of_character): Docstring of
6864 script-representative-chars fixed.
6865
68662008-08-31 Eli Zaretskii <eliz@gnu.org>
6867
6868 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6869 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6870 the menu. Allocate larger buffer for `text', to account for
6871 possible ^C characters.
6872
68732008-08-31 Martin Rudalics <rudalics@gmx.at>
6874
6875 * xdisp.c (prepare_menu_bars): Don't call
6876 Vwindow_size_change_functions with arg Qt.
6877
68782008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6879
6880 * font.h (font_range):
6881 * fileio.c (report_file_error):
46e722a9
SM
6882 * composite.c (composition_update_it): Yet another int/Lisp_Object
6883 mixup (YAILOM).
aac0c6e3
MR
6884
68852008-08-30 Glenn Morris <rgm@gnu.org>
6886
6887 * data.c (Fmake_variable_frame_local): Doc fix.
6888
6889 * frame.c (Fmodify_frame_parameters): Doc fix.
6890
68912008-08-30 Eli Zaretskii <eliz@gnu.org>
6892
6893 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6894 needed by GetTokenInformation.
6895 (w32_system_process_attributes): Check return values of all system
6896 APIs.
6897
6898 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6899 only when the state changes.
6900 (IT_update_begin, IT_update_end): Add termscript trace.
6901
6902 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6903 clipboard is unavailable. Set dst to NULL if it doesn't point to
6904 malloc'ed data.
6905 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6906 passing random values to xfree.
6907
6908 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6909 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6910
69112008-08-29 Jason Rumney <jasonr@gnu.org>
6912
6913 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6914
69152008-08-29 Eli Zaretskii <eliz@gnu.org>
6916
6917 * composite.c (fill_gstring_body): Avoid compiler warnings.
6918
6919 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6920 LGLYPH_SET_CODE to avoid compiler warnings.
6921
2ae37cf0 6922 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6923
6924 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6925
6926 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6927 LGLYPH_SET_CODE.
6928
69292008-08-29 Kenichi Handa <handa@m17n.org>
6930
6931 * fileio.c (report_file_error): Don't downcase the first character
6932 of errstring if it is still unibyte.
6933
69342008-08-29 Kenichi Handa <handa@m17n.org>
6935
6936 These changes are to re-implement the automatic composition so
6937 that it doesn't use text properties.
6938
6939 * Makefile.in (ftfont.o): Depend on composite.h.
6940 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6941
6942 * character.h (Vunicode_category_table): Extern it.
6943
6944 * character.c (Vunicode_category_table): New variable.
6945 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6946
6947 * chartab.c (optimize_sub_char_table): Perform more greedy
6948 optimization.
6949
b8ff72fa
SM
6950 * composite.h (enum composition_method):
6951 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6952 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6953 (Vcomposition_function_table): Extern it.
6954 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6955 (composition_gstring_put_cache, composition_gstring_from_id)
6956 (composition_gstring_p, composition_gstring_width)
6957 (composition_compute_stop_pos, composition_reseat_it)
6958 (composition_update_it, composition_adjust_point): Extern them.
6959 (Fcomposition_get_gstring): EXFUN it.
6960
d66c0241 6961 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6962 (Vcomposition_function_table)
6963 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6964 (gstring_hash_table, gstring_work, gstring_work_headers):
6965 New variables.
aac0c6e3
MR
6966 (gstring_lookup_cache, composition_gstring_put_cache)
6967 (composition_gstring_from_id, composition_gstring_p)
6968 (composition_gstring_width, fill_gstring_header)
6969 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6970 (composition_reseat_it, composition_update_it)
b8ff72fa 6971 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6972 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6973 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 6974 Defsubr composition_get_gstring.
aac0c6e3
MR
6975
6976 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6977 cmp_id.
6978 (struct glyph_string): Delete the member gidx. New members
6979 cmp_id, cmp_from, and cmp_to.
6980 (enum it_method): Delete GET_FROM_COMPOSITION.
6981 (struct composition_it): New struct.
6982 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6983 Delete c, len, cmp_id, cmp_len in u.comp.
6984
6985 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6986 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6987 (enum lglyph_indices): Likewise.
b8ff72fa 6988 (font_range): Adjust extern.
aac0c6e3
MR
6989 (font_fill_lglyph_metrics): Extern it.
6990
6991 * font.c (QCf): New variable.
6992 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6993 (font_prepare_composition): Delete this function.
6994 (font_range): Type and arguments changed.
6995 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6996 (font_fill_lglyph_metrics): New function.
b8ff72fa 6997 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6998 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6999 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7000 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7001
7002 * fontset.h (font_for_char): Extern it.
7003
7004 * fontset.c (font_for_char): New function.
7005
7006 * ftfont.c: Include composite.h.
7007 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7008 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7009
7010 * indent.c: Include composite.h and dispextern.h.
7011 (check_composition): Delete this function.
7012 (scan_for_column): Handle composition by
7013 composition_compute_stop_pos, composition_reseat_it, and
7014 composition_update_it.
7015 (compute_motion): Likewise.
7016 (Fvertical_motion): Fix checking of composition.
7017
7018 * keyboard.c (adjust_point_for_property): Check composition by
7019 composition_adjust_point.
7020
b8ff72fa 7021 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7022 struct glyph_string.
7023
b8ff72fa
SM
7024 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7025 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7026 struct glyph.
7027 (produce_composite_glyph): Likewise.
7028
b8ff72fa
SM
7029 * w32term.c (x_draw_composite_glyph_string_foreground):
7030 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7031 (x_draw_glyph_string): Likewise.
7032
7033 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7034 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7035
7036 * xdisp.c: Include font.h.
7037 (it_props): Delete the entry for Qauto_composed.
7038 (init_iterator): Initialize it->cmp_it.id to -1.
7039 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7040 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7041 (handle_auto_composed_prop): Delete it.
7042 (handle_composition_prop): Handle only static composition.
7043 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7044 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7045 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7046 (pop_it): Likewise.
7047 (get_next_element): Delete next_element_from_composition.
7048 (CHAR_COMPOSED_P): New macro.
7049 (get_next_display_element): For automatic composition, get a face
7050 from the font in the glyph-string.
7051 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7052 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7053 (next_element_from_string): Check if the character at the current
7054 position is composed by CHAR_COMPOSED_P.
7055 (next_element_from_buffer): Likewise.
d66c0241
JB
7056 (next_element_from_composition): Adjust for the change of struct it.
7057 Update it->cmp_it.
b8ff72fa
SM
7058 (dump_glyph): Adjust for the change of struct glyph.
7059 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7060 it and struct glyph. Don't handle automatic composition here.
7061 (fill_gstring_glyph_string): New function.
7062 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7063 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7064 (BUILD_GSTRING_GLYPH_STRING): New macro.
7065 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7066 automatic composition.
b8ff72fa 7067 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7068 struct glyph.
b8ff72fa 7069 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7070
b8ff72fa 7071 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7072 the change of struct glyph_string.
7073 (x_draw_glyph_string): Likewise.
7074
70752008-08-29 Glenn Morris <rgm@gnu.org>
7076
7077 * buffer.c (word-wrap): Doc fix.
7078 * xdisp.c (truncate-partial-width-windows): Doc fix.
7079 Increase default to 50.
7080
70812008-08-29 Chong Yidong <cyd@stupidchicken.com>
7082
7083 * xdisp.c (update_tool_bar_unwind): New function.
7084 (update_tool_bar): Temporarily set selected frame before building
7085 tool-bar items.
7086
70872008-08-28 Michael Albinus <michael.albinus@gmx.de>
7088
7089 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7090 snprintf, respectively.
7091 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7092
70932008-08-28 Chong Yidong <cyd@stupidchicken.com>
7094
7095 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7096 LDFLAGS to GNUstep CC invocation.
7097
70982008-08-27 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * indent.c (Fvertical_motion): Revert last change. Handle the
7101 general case where we are moving forward, and PT spans multiple
7102 screen lines.
7103
7104 * eval.c (find_handler_clause): Temporarily increase
7105 max-lisp-eval-depth while printing the backtrace buffer, to
7106 guarantee that help-mode code can run.
7107
71082008-08-27 Eli Zaretskii <eliz@gnu.org>
7109
7110 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7111 colors under -rv.
7112 (IT_set_frame_parameters): Don't swap foreground and background
7113 colors if `(reverse . t)' is present in the frame properties.
7114 (internal_terminal_init): Call init_frame_faces only for the
7115 initial frame.
7116
71172008-08-27 Andreas Schwab <schwab@suse.de>
7118
7119 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7120
71212008-08-27 Andreas Schwab <schwab@suse.de>
7122
7123 * search.c (search_buffer): Set char_base to zero only at the end.
7124
71252008-08-27 Kenichi Handa <handa@m17n.org>
7126
b8ff72fa 7127 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7128
71292008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7130
7131 * xterm.c (x_term_init): Temporarily hide the partially
7132 initialized terminal while calling vendor-specific-keysyms.
7133
71342008-08-26 Eli Zaretskii <eliz@gnu.org>
7135
7136 * msdos.c (internal_terminal_init): Most initializations done only
7137 once, especially initial_screen_colors[] and termscript open.
7138
71392008-08-26 Chong Yidong <cyd@stupidchicken.com>
7140
7141 * eval.c (Fcondition_case): Doc fix.
7142
7143 * widgetprv.h (EmacsFramePart): Change font member to the new font
7144 struct.
7145
7146 * widget.c: Include character.h and font.h for XSETFONT.
7147 (setup_frame_gcs): Compute X font id from font struct, just once.
7148
71492008-08-26 Eli Zaretskii <eliz@gnu.org>
7150
7151 * term.c (get_named_tty): Fix last change.
7152
71532008-08-26 Chong Yidong <cyd@stupidchicken.com>
7154
7155 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7156 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7157
71582008-08-25 Eli Zaretskii <eliz@gnu.org>
7159
7160 * frame.c (do_switch_frame): Mark previously displayed frame as
7161 obscured for FRAME_MSDOS_P frames as well.
7162
71632008-08-24 Eli Zaretskii <eliz@gnu.org>
7164
7165 * frame.c (make_terminal_frame): Initialize f->terminal,
7166 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7167 Set the top frame to newly created frame.
7168 (Fmake_terminal_frame): Reuse the_only_display_info.
7169
7170 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7171 estimating available memory.
7172
b97439ce 71732008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7174
7175 * nsterm.m (ns_draw_window_cursor): Don't call
7176 NSDisableScreenUpdates and NSEnableScreenUpdates on
7177 non-NS_IMPL_COCOA systems.
7178
71792008-08-23 Andreas Schwab <schwab@suse.de>
7180
7181 * process.c (procfs_system_process_attributes): Fix use of
7182 uninitialized variables.
7183
71842008-08-23 Eli Zaretskii <eliz@gnu.org>
7185
7186 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7187
7188 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7189 calling tty-set-up-initial-frame-faces.
7190
b8ff72fa
SM
7191 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7192 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7193
7194 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7195 addition to output_termcap.
7196
7197 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7198
7199 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7200 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7201 highlight.
7202
7203 * process.c [!subprocesses]: Define QCname.
7204 (syms_of_process): Intern and staticpro it.
7205
7206 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7207 Adjust for changes in encoding/decoding routines.
7208 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7209 encode_coding and decode_coding.
7210
b8ff72fa 7211 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7212
7213 * dosfns.c: Include frame.h before termhooks.h.
7214 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7215 variable termscript.
7216
7217 * s/msdos.h (USER_FULL_NAME): Define.
7218 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7219
7220 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7221 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7222 pw->pw_gecos.
7223
7224 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7225 SELECTED_FRAME as additional (1st) argument.
7226 (tty_read_avail_input): Handle output_msdos_raw in
7227 addition to output_termcap.
7228
7229 * msdos.c: Include frame.h before termhooks.h.
7230 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7231 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7232 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7233 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7234 (IT_set_terminal_modes, IT_reset_terminal_modes)
7235 (IT_set_frame_parameters): Use tty->termscript instead of a global
7236 variable termscript.
7237 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7238 global variable terminal_coding. Don't refer to
7239 Vnonascii_translation_table.
7240 (internal_terminal_init): Set Vwindow_system in current_kboard.
7241 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7242 Announce date and time of session start, if termscript is open.
7243 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7244 term.c:init_tty). Open termscript only of not already open.
7245 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7246 here instead of dos_ttraw. Don't initialize display if this is an
7247 initial tty. Don't set FRAME_FONT.
7248 (Vwindow_system_version): Bump to 23.
7249 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7250 is available, set up mouse_position_hook.
7251 (dos_ttraw, IT_set_terminal_modes): If called with initial
7252 terminal, do nothing.
7253 (IT_set_frame_parameters): Handle the Qtty_type frame
7254 parameter by calling internal_terminal_init.
7255 (dos_set_window_size, show_mouse_face)
7256 (clear_mouse_face, IT_note_mode_line_highlight)
7257 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7258 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7259 (initialize_msdos_display): New function.
7260 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7261 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7262 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7263 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7264 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7265 (request_sigio, unrequest_sigio): Don't define, now defined on
7266 sysdep.c.
7267 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7268
7269 * term.c [MSDOS]: Include msdos.h.
7270 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7271 conditional to DOS_NT. Allow only one call to this function in a
7272 session. Don't allocate a new struct tty_display_info; instead,
7273 reuse the_only_display_info. Call get_tty_size to get screen
7274 dimensions. Call init_baud_rate to set bad_rate.
7275 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7276 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7277 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7278 (get_tty_terminal, get_named_tty, Ftty_type)
7279 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7280 output_termcap.
b8ff72fa
SM
7281 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7282 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7283 only when subprocesses are supported.
aac0c6e3
MR
7284
7285 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7286 f->output_data.x.
7287 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7288 terminal devices.
7289
5582fbc7 7290 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7291 x_output.
7292 (FRAME_FONT): Use output_data.tty.
7293 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7294 (struct x_display_info): Rename from display_info. Update all users in
7295 msdos.c.
aac0c6e3 7296 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7297 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7298 (dos_ttraw): Update prototype.
7299
7300 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7301 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7302
73032008-08-23 Jason Rumney <jasonr@gnu.org>
7304
7305 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7306 (fn_TIFFSetDirectory): New library function used.
7307 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7308 (tiff_load): Use :index to select among multiple images. Set count
7309 property when multiple images exist.
7310 (gif_format): Use :index, not :image.
7311
73122008-08-23 Chong Yidong <cyd@stupidchicken.com>
7313
7314 * xdisp.c (try_scrolling): Check INT_MAX instead of
7315 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7316 to obtain INT_MAX.
7317
73182008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7319
7320 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7321
73222008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7323
7324 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7325 GNUstep library location.
7326
73272008-08-21 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7330 before using it.
7331
7332 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7333
73342008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7335
7336 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7337 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7338 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7339 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7340 (EmacsApp-cursor_blink_handler): Remove declaration.
7341 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7342 match 01 Feb 2008 changes in xterm.c.
7343 (ns_read_socket): Add cast to avoid warning.
7344 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7345 GNUstep.
7346
73472008-08-20 Chong Yidong <cyd@stupidchicken.com>
7348
7349 * xselect.c (x_get_foreign_selection): Return nil if desired
7350 selection could not be obtained, instead of signalling an error.
7351
73522008-08-20 David Reitter <david.reitter@gmail.com>
7353
7354 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7355 * nsterm.m: Remove ns-specific code for cursor blinking.
7356 (ns_draw_window_cursor): Clear cursor properly rather than
7357 redrawing the area. Respect width of bar cursors.
7358 These changes enable the use of generic blink-cursor-mode and
7359 generic cursor types in NS and support smooth cursor movements (do
7360 not blink off after command).
7361 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7362 Nextstep, too.
7363
73642008-08-19 Kenichi Handa <handa@m17n.org>
7365
7366 * font.c (Vfont_log_deferred): New variable.
7367 (font_add_log): Check Vfont_log_deferred.
7368 (font_deferred_log): New function.
7369
7370 * font.h (font_deferred_log): Extern it.
7371
7372 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7373 for sorting.
7374 (face_for_char): Use deferred log.
7375
73762008-08-18 Kenichi Handa <handa@m17n.org>
7377
7378 * fontset.c (face_for_char): Add font log.
7379
7380 * font.c (font_add_log): Add the font properties :script, :lang,
7381 and :otf in the log.
7382
73832008-08-17 Chong Yidong <cyd@stupidchicken.com>
7384
7385 * xdisp.c: Remove dead code.
7386 (handle_invisible_prop, next_overlay_string): Defer call to
7387 setup_for_ellipsis.
7388 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7389
73902008-08-15 Chong Yidong <cyd@stupidchicken.com>
7391
7392 * xfaces.c (lookup_derived_face): Properly handle possible zero
7393 return value of get_lface_attributes.
7394 (merge_faces): Don't tell lookup_derived_face to signal an error
7395 if face is not found.
7396
7397 * dired.c (Fdirectory_files): Doc fix.
7398
7399 * process.c (make_process): Initialize kill_without_query struct
7400 member.
7401
74022008-08-15 Eli Zaretskii <eliz@gnu.org>
7403
7404 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7405 Alternative calculation of totphys for Visual Studio 6.
7406
7407 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7408
7409 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7410 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7411 All users changed.
7412 (stat): Only root directory passed to GetDriveType. Allow RAM
7413 disk as well as local fixed disk when w32-get-true-file-attributes
7414 is set to `local'.
7415 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7416 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7417 (w32_cached_id, w32_add_to_cache): New functions.
7418 (get_name_and_id): Look account names in the cache before calling
7419 lookup_account_sid.
7420 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7421 New initialization flags.
7422 (globals_of_w32): Initialize them to zero.
7423 (w32_system_process_attributes): Use w32_cached_id and
7424 w32_add_to_cache.
7425
74262008-08-14 Lawrence Mitchell <wence@gmx.li>
7427
7428 * lread.c (Fread_char, Fread_char_exclusive): If no character
7429 event is read before timeout is reached, return nil, rather than
7430 converting to a number.
7431
74322008-08-14 Chong Yidong <cyd@stupidchicken.com>
7433
7434 * fns.c (use_dialog_box): Doc fix.
7435
7436 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7437 on OS X.
7438
74392008-08-13 Chong Yidong <cyd@stupidchicken.com>
7440
7441 * frame.c (Qns_parse_geometry): New var.
7442 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7443
74442008-08-11 Chong Yidong <cyd@stupidchicken.com>
7445
7446 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7447 space character in calculating tabs.
7448
74492008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7450
7451 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7452
74532008-08-10 Glenn Morris <rgm@gnu.org>
7454
7455 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7456 silence gcc "limited range of data type" warnings in some
7457 make_fixnum_or_float calls.
7458
74592008-08-09 Eli Zaretskii <eliz@gnu.org>
7460
7461 * w32.c (w32_system_process_attributes): If the process does not
7462 exist, return nil.
7463
7464 * w32.c: Include thelp32.h, psapi.h and coding.h.
7465 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7466 declarations.
7467 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7468 (Process32Next_Proc): New typedefs.
7469 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7470 (g_b_init_process32_next, g_b_init_open_thread_token)
7471 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7472 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7473 (g_b_init_get_process_working_set_size)
7474 (g_b_init_global_memory_status_ex): New static variables.
7475 (globals_of_w32): Initialize them.
7476 (create_toolhelp32_snapshot, process32_first, process32_next)
7477 (open_thread_token, impersonate_self, revert_to_self)
7478 (get_process_memory_info, get_process_working_set_size)
7479 (global_memory_status, global_memory_status_ex): New wrapper
7480 functions.
7481 (w32_list_system_processes, w32_system_process_attributes)
7482 (enable_privilege, restore_privilege, ltime, process_times):
7483 New functions.
7484 (convert_time_raw): New function.
7485 (convert_time): Remove conversion of FILETIME into time in 100
7486 nsec units, call convert_time_raw instead.
7487
7488 * process.h (w32_list_system_processes, w32_system_process_attributes):
7489 Add prototypes.
7490 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7491 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7492 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7493 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7494
7495 * process.c (Fsystem_process_attributes): Doc fix.
7496
74972008-08-08 Chong Yidong <cyd@stupidchicken.com>
7498
7499 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7500 a continued multi-char glyph; if so, advance to the actual glyph.
7501
75022008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7503
7504 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7505
7506 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7507 (.m.o): Use it.
7508 * config.in: Regenerate.
7509
75102008-08-07 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * xdisp.c (redisplay_window): Revert last change.
7513 (try_window): Check bottom scroll margin too.
7514
75152008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7516
7517 * config.in: Regenerate.
7518
7519 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7520 -list-load-path-shadows'.
7521 (nsgui.h): Reduce number of things depending on it.
7522
75232008-08-06 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7526 instead of window-end which does the wrong thing at eob.
7527 (try_cursor_movement): Minor optimization.
7528 (redisplay_window): If scroll margin is defined, don't assume
7529 window doesn't need scrolling.
7530
75312008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7532
7533 * config.in: Regenerate.
7534
7535 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7536 (mostlyclean): Don't delete *.d under NS.
7537
7538 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7539
75402008-08-06 Kenichi Handa <handa@m17n.org>
7541
7542 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7543
75442008-08-06 Andreas Schwab <schwab@suse.de>
7545
7546 * config.in: Regenerate.
7547
75482008-08-05 Chong Yidong <cyd@stupidchicken.com>
7549
7550 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7551 forcing a window start.
7552
7553 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7554 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7555
75562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7557
7558 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7559 argument.
7560
75612008-08-05 Juanma Barranquero <lekktu@gmail.com>
7562
7563 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7564 <scroll-down-aggressively, before-change-functions>:
7565 <after-change-functions>: Reflow docstrings.
7566
75672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7568 Ken Raeburn <raeburn@gnu.org>
7569
7570 Dock menu customization, based on a patch by Ken Raeburn, plus some
7571 other fixes.
7572 * nsmenu.m (dockMenu): New variable.
7573 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7574
7575 * nsterm.h (dockMenu): Declare.
7576
7577 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7578 (ns_term_init): Initialize dockMenu.
7579 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7580 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7581 left.
7582
7583 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7584
75852008-08-04 Chong Yidong <cyd@stupidchicken.com>
7586
7587 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7588
7589 * config.in: Regenerate.
7590
75912008-08-04 Seiji Zenitani <zenitani@mac.com>
7592
7593 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7594
75952008-08-04 Chong Yidong <cyd@stupidchicken.com>
7596
7597 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7598
75992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7600
7601 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7602
7603 * keyboard.h: Comment an #endif.
7604
7605 * lisp.h (have_menus_p): Adjust comment.
7606
7607 * menu.c (find_and_return_menu_selection): Fix comparison with
7608 client_data.
7609
7610 * nsmenu.m (popup_activated_flag): New variable.
7611 (popup_activated): New function.
7612 (menu-or-popup-active-p): New exported lisp definition.
7613 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7614 when popup done.
7615 (ns_popup_dialog): Set popup_activated_flag.
7616
7617 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7618 version for GNUstep (handled by conditional typedef in nsterm.m).
7619 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7620 in rgb.txt).
7621
7622 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7623
7624 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7625
7626 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7627
7628 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7629 shortcircuit if popup_activated like GTK and X toolkit.
7630
7631 * m/inter386.h: Change DARWIN to DARWIN_OS.
7632
7633 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7634 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7635 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7636 comment on NO_SOCK_SIGIO.
7637
76382008-08-03 Chong Yidong <cyd@stupidchicken.com>
7639
7640 * nsterm.m (windowDidResize): Remove stopModal call.
7641
76422008-08-03 Andreas Schwab <schwab@suse.de>
7643
7644 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7645 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7646
76472008-08-02 Chong Yidong <cyd@stupidchicken.com>
7648
7649 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7650 Don't use uninitialized pointer variable when using getrlimit.
7651
76522008-08-02 Jason Rumney <jasonr@gnu.org>
7653
7654 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7655
76562008-08-02 Eli Zaretskii <eliz@gnu.org>
7657
7658 * alloc.c (NSTATICS): Bump to 0x640.
7659
7660 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7661
7662 * lisp.h: Add prototype for directory_files_internal.
7663
7664 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7665 New functions.
7666 (syms_of_process): Defsubr them. Add initializations for various
7667 Q* symbols used in procfs_system_process_attributes.
7668 (procfs_list_system_processes, procfs_system_process_attributes)
7669 [HAVE_PROCFS]: New functions.
7670 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7671 (procfs_get_total_memory): New functions.
7672
76732008-08-01 Juanma Barranquero <lekktu@gmail.com>
7674
7675 * xfaces.c (Fx_load_color_file): Fix previous change;
7676 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7677
76782008-08-01 Michael Albinus <michael.albinus@gmx.de>
7679
7680 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7681
76822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7683
7684 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7685
76862008-08-01 Chong Yidong <cyd@stupidchicken.com>
7687
7688 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7689
7690 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7691 define NSApplicationDelegateReplySuccess.
7692 (EmacsView -converstationIdentifier): Use long instead of
7693 NSInteger for GNUstep, since it doesn't have NSInteger.
7694
7695 * xmenu.c: Revert last change.
7696
7697 * keyboard.h: Fix last change.
7698
76992008-08-01 Juanma Barranquero <lekktu@gmail.com>
7700
7701 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7702 on Windows.
7703
77042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7705
7706 Warning clearing and clean-up in NS port.
7707 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7708 Add prototypes.
7709 * nsgui.h (FACE_DEFAULT): Remove, unused.
7710 (XGCValues): Change colors to unsigned long.
7711 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7712 nsterm.m.
7713 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7714 (ns_list_fonts): Remove, unused.
7715 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7716 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7717 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7718 (nsfont_draw): Compare face colors to 0, not nil.
7719 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7720 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7721 (-addSubmenuWithTitle:): Use NSMenuItem class.
7722 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7723 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7724 (ns_clip_to_row): Make gc arg a BOOL.
7725 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7726 ns_clip_to_row() call.
7727 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7728 used). Cast FRAME_FONT assignments.
7729 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7730 (ns_string_to_lispmod): Change arg to const char.
7731 (ns_term_init): Use NSMenuItem class.
7732 (EmacsApp -openFile:): Move to different section of file.
7733 (EmacsApp -application:openFiles:): Don't return a value, call
7734 -replyToOpenOrPrint:.
7735 (EmacsView -keyDown:): Fix up cast.
7736 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7737 (EmacsView -menuDown:): Cast tag in call to
7738 find_and_call_menu_selection().
7739 (ns_list_fonts): Remove, unused.
7740 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7741 (ns_fontname_to_xlfd): Make static.
7742 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7743 Remove prototypes (now in keyboard.h).
7744 (next_menubar_widget_id): Remove, unused.
7745 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7746 Remove prototypes (now in keyboard.h).
7747 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7748
77492008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7750
7751 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7752 (floatfns.o): Depend on syssignal.h.
7753 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7754
7755 * systty.h: Fix previous change that removed BSD_TERMIOS.
7756 Add comments to #ifdefs.
7757
77582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7759
7760 * w32fns.c (w32-load-color-file): Remove.
7761 (x-open-connection): Use renamed Fx_load_color_file.
7762 * xfaces.c (x-load-color-file): Add.
7763 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7764 Emacs.clr.
7765 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7766
77672008-07-31 Michael Albinus <michael.albinus@gmx.de>
7768
7769 * dbusbind.c (Fdbus_call_method_asynchronously)
7770 (Fdbus_method_error_internal): New defuns.
7771 (xd_read_message): Handle also reply messages.
7772 (Vdbus_registered_functions_table): Extend docstring.
7773
77742008-07-31 Juanma Barranquero <lekktu@gmail.com>
7775
7776 * keyboard.c (gobble_input): Fix previous change.
7777
77782008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7779
7780 * bitmaps/README:
7781 * xfns.c:
7782 * termcap.c:
7783 * term.c:
7784 * syswait.h:
7785 * systty.h:
7786 * systime.h:
7787 * syssignal.h:
7788 * sysdep.c:
7789 * process.h:
7790 * process.c:
7791 * print.c:
7792 * ndir.h:
7793 * lread.c:
7794 * keyboard.c:
7795 * getpagesize.h:
7796 * floatfns.c:
7797 * fileio.c:
7798 * emacs.c:
7799 * doc.c:
7800 * dispnew.c:
7801 * dired.c:
7802 * data.c:
7803 * callproc.c:
7804 * buffer.c:
7805 * README:
7806 * Makefile.in:
7807 * s/template.h:
7808 * s/msdos.h:
7809 * m/vax.h: Remove VMS support.
7810 * s/vms.h:
7811 * vlimit.h:
7812 * uaf.h:
7813 * temacs.opt:
7814 * param.h:
7815 * ioctl.h: Remove file.
7816
78172008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7818
7819 * s/ms-w32.h (MULTI_KBOARD): Remove.
7820 * xterm.c:
7821 * xselect.c:
7822 * xfns.c:
7823 * window.c:
7824 * w32term.c:
7825 * w32fns.c:
7826 * terminal.c:
7827 * termhooks.h:
7828 * term.c:
7829 * sysdep.c:
7830 * keyboard.h:
7831 * keyboard.c:
7832 * frame.h:
7833 * frame.c:
7834 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7835 * config.in: Regenerate.
7836
78372008-07-30 Jason Rumney <jasonr@gnu.org>
7838
7839 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7840
7841 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7842 (w32font_open_internal): Get unicode version of textmetrics.
7843 Don't enable or disable glyph indices here.
7844 (w32font_open): Disable use of glyph indices.
7845
7846 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7847
78482008-07-30 Chong Yidong <cyd@stupidchicken.com>
7849
7850 * minibuf.c (Vread_buffer_function): Doc fix.
7851
78522008-07-30 John Paul Wallington <jpw@pobox.com>
7853
7854 * minibuf.c (read_buffer_completion_ignore_case): New var.
7855 (Fread_buffer): Use it.
7856
78572008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7858
7859 * systty.h (sensemode): Remove empty #if. Remove reference to
7860 BSD_TERMIOS, unused.
7861
7862 * sysdep.c: Remove reference to DGUX.
7863 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7864
7865 * config.in: Regenerate.
7866
78672008-07-30 Jason Rumney <jasonr@gnu.org>
7868
7869 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7870
78712008-07-29 Jason Rumney <jasonr@gnu.org>
7872
7873 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7874 is populated.
7875 (uniscribe_encode_char): Always use uniscribe.
7876 Avoid using context if cache is populated.
7877
78782008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7879
7880 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7881 open menu.
7882
7883 * gtkutil.c (menu_nav_ended): Remove.
7884 (create_menus): Remove signal connect for menu_nav_ended.
7885
78862008-07-28 Chong Yidong <cyd@stupidchicken.com>
7887
7888 * xdisp.c (redisplay_window): Check return value of
7889 compute_window_start_on_continuation_line before forcing a window
7890 start.
7891
78922008-07-28 Jason Rumney <jasonr@gnu.org>
7893
7894 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7895
7896 * w32term.c (w32_enable_unicode_output, cleartype_active):
7897 Remove obsolete display options.
7898 (x_draw_glyph_string_background): Don't use old cleartype_active
7899 workaround.
7900 (w32_initialize): Remove cleartype_active initialization.
7901 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7902
79032008-07-28 Andreas Schwab <schwab@suse.de>
7904
7905 * lisp.h (init_weak_hash_tables, syms_of_font)
7906 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7907 (remove_hash_entry): Don't declare.
7908 * eval.c (maybe_call_debugger): Make static and move before use.
7909 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7910 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7911 * xterm.h (x_set_frame_alpha): Declare.
7912
79132008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7914
7915 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7916 (create_menus): Connect selection-done to menu_nav_ended.
7917
79182008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7919
7920 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7921 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7922 parameter with read of 'alpha' one.
7923 (Qns_frame_parameter): Remove.
5582fbc7 7924 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7925 (next-selection-coding-system, Vselection_coding_system)
7926 (Vnext_selection_coding_system): Drop.
7927
79282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7929
7930 * nsfns.m (do-applescript, do_applescript): Rename to
7931 ns-do-applescript, ns_do_applescript, and move within file.
7932
79332008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7934
7935 Remove support for Mac Carbon.
7936 * mactoolbox.c:
7937 * macterm.h:
7938 * macterm.c:
7939 * macselect.c:
7940 * macmenu.c:
7941 * macgui.h:
7942 * macfns.c:
7943 * mac.c: Remove file.
7944 * s/darwin.h:
7945 * m/intel386.h:
7946 * xfaces.c:
7947 * xdisp.c:
7948 * window.c:
7949 * tparam.c:
7950 * termhooks.h:
7951 * termcap.c:
7952 * term.c:
7953 * syssignal.h:
7954 * sysselect.h:
7955 * sysdep.c:
7956 * process.c:
7957 * lread.c:
7958 * lisp.h:
7959 * keyboard.c:
7960 * image.c:
7961 * fringe.c:
7962 * frame.h:
7963 * frame.c:
7964 * fontset.c:
7965 * font.h:
7966 * font.c:
7967 * fns.c:
7968 * fileio.c:
7969 * emacs.c:
7970 * dispnew.c:
7971 * dispextern.h:
7972 * config.in:
7973 * atimer.c:
2ae37cf0 7974 * Makefile.in: Remove code for Carbon.
aac0c6e3 7975
f0131492 79762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7977
7978 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7979
79802008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7981
7982 * macterm.h (kCGBitmapByteOrder32Host): New define for
7983 non-universal SDKs.
7984
7985 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7986 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7987
7988 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7989 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7990
79912008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7992
7993 * w32inevt.c: Include dispextern.h.
7994
79952008-07-26 Andreas Schwab <schwab@suse.de>
7996
7997 * print.c (print_object): Fix off-by-one in last change.
7998
79992008-07-25 Juanma Barranquero <lekktu@gmail.com>
8000
8001 * term.c (syms_of_term): Don't initialize default_orig_pair,
8002 default_set_foreground and default_set_background on Windows.
8003
80042008-07-25 Jason Rumney <jasonr@gnu.org>
8005
8006 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8007 ScriptItemize. Clean up return value checking. Remove unused
8008 variables.
8009 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8010 shaping engine.
8011
8012 * w32font.c (w32font_has_char): Handle the case where we can't
8013 determine the script for a character.
8014
80152008-07-25 Chong Yidong <cyd@stupidchicken.com>
8016
8017 * term.c (syms_of_term): Initialize default_orig_pair,
8018 default_set_foreground, and default_set_background.
8019
8020 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8021 clash (bug#86).
8022 (getloadavg): Callers changed.
8023
8024 * image.c (svg_load_image): Fix last change.
8025 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8026 image size is valid. Use g_object_unref instead of deprecated
8027 rsvg_handle_free to free rsvg handle.
8028 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8029
80302008-07-25 Jason Rumney <jasonr@gnu.org>
8031
8032 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8033 surrogates before looking up glyph index.
8034 (w32font_text_extents): Encode as surrogates if falling back to
8035 functions that need UTF-16 wide chars.
8036
8037 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8038 BMP as surrogates before looking up glyph index.
8039
80402008-07-25 Chong Yidong <cyd@stupidchicken.com>
8041
8042 * image.c (svg_load_image): Check for failure in return value of
8043 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8044
80452008-07-25 Jason Rumney <jasonr@gnu.org>
8046
8047 * w32font.c (Fx_select_font): Reverse sense of second arg.
8048
80492008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8050
8051 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8052 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8053
8054 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8055 (PURESIZE): Use it.
8056
80572008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8058
8059 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8060 * m/alpha.h (TEXT_END):
8061 * m/ibmrs6000.h (TEXT_END):
8062 * m/macppc.h (TEXT_END):
8063 * s/darwin.h (TEXT_END):
8064 * s/msdos.h (TEXT_END): Remove, unused.
8065 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8066 * s/cygwin.h: Remove comment.
8067
8068 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8069 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8070 * m/intel386.h (DOT_GLOBAL_START):
8071 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8072 (USG): Remove, file not used on USG platforms.
8073
8074 * Makefile.in (HAVE_X11): Remove empty #else.
8075
80762008-07-24 Andreas Schwab <schwab@suse.de>
8077
8078 * fileio.c (Finsert_file_contents): Properly adjust undo list
8079 after format conversion.
8080
80812008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8082
8083 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8084 (menu_nav_ended): Remove.
8085 (create_menus): Remove signal connect for menu_nav_ended.
8086 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8087 create_menus.
8088 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8089
80902008-07-23 Jason Rumney <jasonr@gnu.org>
8091
8092 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8093 with opened font.
8094 (w32font_open): Set font type to gdi.
8095
8096 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8097
80982008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8099
8100 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8101 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8102 defines it.
8103 * unexec.c (ADDR_CORRECT): Define unconditionally.
8104
8105 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8106
8107 * unexec.c: Remove code depending on !COFF and USG, the file is
8108 not used for such systems.
8109
8110 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8111 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8112 (LD_SWITCH_SYSTEM_1): Remove, update users.
8113
8114 * s/darwin.h (DATA_END):
8115 * m/intel386.h (DATA_END):
8116 * m/ibmrs6000.h (DATA_END):
8117 * m/alpha.h (DATA_END): Remove, unused.
8118
8119 * config.in: Regenerate.
8120 * s/ms-w32.h (subprocesses): Define unconditionally.
8121 * s/template.h (subprocesses): Update comment.
8122 * s/vms.h (subprocesses):
8123 * s/usg5-4.h (subprocesses):
8124 * s/hpux10-20.h (subprocesses):
8125 * s/gnu-linux.h (subprocesses):
8126 * s/cygwin.h (subprocesses):
8127 * s/bsd-common.h (subprocesses):
8128 * s/aix4-2.h (subprocesses):
8129 * s/darwin.h (subprocesses): Do not define, defined by default now.
8130
8131 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8132 Remove all references.
8133 (temacs): Add GNUstep specific ld flags.
8134
8135 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8136 similarly to what X does.
8137
81382008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8139
8140 * nsfns.m (x-list-fonts): Remove.
8141 (syms_of_nsfns): Drop the x-list-fonts declaration.
8142 * nsterm.m: Get rid of remaining "//" comments.
8143
81442008-07-22 Chong Yidong <cyd@stupidchicken.com>
8145
8146 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8147
8148 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8149 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8150 (Fns_own_selection_internal, Fx_disown_selection_internal)
8151 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8152
8153 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8154 ... */' style of docstrings. Doc fixes.
8155
81562008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8157
8158 * terminfo.c (UP, BC, PC): Undo previous change.
8159
8160 * nsfns.m: Rename ns prefixed functions/variables to the
8161 corresponding x versions. Update references.
8162
81632008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8164
8165 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8166
81672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8168
8169 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8170 Remove forwarding functions.
8171 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8172 non-static.
8173 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8174 non-static.
8175 (ns_frame_parm_handlers): Use the new names.
8176 (syms_of_nsfns): Move to the end of file.
8177
8178 * nsterm.m (syms_of_nsterm): Move to the end of file.
8179
8180 * dispnew.c (init_display): Remove code for X10.
8181
81822008-07-22 Jason Rumney <jasonr@gnu.org>
8183
8184 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8185 bare drive.
8186
81872008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8188
8189 * nsterm.m (syms_of_nsterm): Remove debugging println.
8190
81912008-07-22 David Reitter <david.reitter@gmail.com>
8192
8193 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8194 Carbon implementation of the same functionality: execute arbitrary
8195 AppleScript code.
8196
81972008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8198
8199 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8200 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8201 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8202 (Fx_display_mm_height, Fx_display_mm_width)
8203 (Fx_display_backing_store, Fx_display_visual_class)
8204 (Fx_display_save_under, Fx_open_connection)
8205 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8206 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8207 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8208 (Fx_display_pixel_width, Fx_display_pixel_height)
8209 (Fx_display_usable_bounds, Fx_display_planes)
8210 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8211 ... */' style of docstrings.
8212
82132008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8214
8215 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8216 on this platform.
8217 (mips):
8218 * m/iris4d.h (mips): Do not define.
8219 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8220
8221 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8222
8223 * image.c:
8224 * nsfns.m:
8225 * nsselect.m:
8226 * nsterm.h:
8227 * nsterm.m: Rename ns prefixed functions/variables to the
8228 corresponding x versions. Update references.
8229
8230 * m/ibms390x.h (NO_REMAP): Do not undefine.
8231
8232 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8233
82342008-07-21 Chong Yidong <cyd@stupidchicken.com>
8235
8236 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8237 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8238 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8239 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8240 (Fns_display_mm_height, Fns_display_mm_width)
8241 (Fns_display_backing_store, Fns_display_visual_class)
8242 (Fns_display_save_under, Fns_open_connection)
8243 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8244 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8245 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8246 (Fns_display_pixel_width, Fns_display_pixel_height)
8247 (Fns_display_usable_bounds, Fx_display_planes)
8248 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8249
82502008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8251
8252 * print.c (print_object): Check print_depth before searching for
8253 circularities.
8254
82552008-07-21 Michael Albinus <michael.albinus@gmx.de>
8256
8257 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8258 only sprintf.
8259
82602008-07-21 Kenichi Handa <handa@m17n.org>
8261
8262 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8263
82642008-07-20 Andreas Schwab <schwab@suse.de>
8265
8266 * syntax.c (find_start_pos, find_start_value)
8267 (find_start_value_byte, find_start_begv, find_defun_start)
8268 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8269
82702008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8271
8272 * s/sol2-3.h: Insert contents of s/sol2.h.
8273 (LD_SWITCH_SYSTEM): Remove redundant definition.
8274 * s/sol2.h: Remove, unused.
8275
82762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8277
8278 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8279
82802008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8281
8282 * Makefile.in (ns_appdir): Fix typo in find command.
8283
82842008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8285
8286 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8287
8288 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8289 added not supported anymore.
8290
8291 * s/usg5-4-2.h (LIBS_SYSTEM):
8292 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8293
8294 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8295 * s/lynxos.h (GETPGRP_NO_ARG):
8296 * s/hpux10-20.h (NO_SIOCTL_H):
8297 * s/gnu.h (GETPGRP_NO_ARG):
8298 * s/gnu-linux.h (NO_SIOCTL_H):
8299 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8300 * s/cygwin.h (GETPGRP_NO_ARG):
8301 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8302 (C_DEBUG_SWITCH): Remove duplicate definition.
8303
8304 * m/ibms390.h: Remove boilerplate comments.
8305
8306 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8307
8308 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8309 (wait_reading_process_output): Remove code for SunOS, platform not
8310 supported anymore. Use SOLARIS2 instead of sun.
8311
83122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8313
8314 * font.c (font_open_by_name): Under NS, default lface height to zero.
8315 (font_open_for_lface): Under NS, set size based on frame fontsize.
8316 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8317 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8318
83192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8320
8321 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8322 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8323 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8324 YES/NO.
8325 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8326 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8327 * Makefile.in (clean): Clear out build destination dir.
8328
83292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8330
8331 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8332 xterm, xselect.
8333 * lisp.h: Remove declaration of hash_remove.
8334 * nsgui.h: Remove redefinitions of hash_remove.
8335 * fns.c (hash_remove): Rename to hash_remove_from_table.
8336
83372008-07-19 Seiji Zenitani <zenitani@mac.com>
8338
8339 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8340 strdup() the family UTF8String before modifying it.
8341
83422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8343
8344 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8345 NS_FACE_BACKGROUND with 0 instead of nil.
8346 * nsfont.m (nsfont_draw): Same.
8347
83482008-07-19 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * nsfns.m (ns_set_background_color): Fix crash.
8351
83522008-07-18 Chong Yidong <cyd@stupidchicken.com>
8353
8354 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8355
83562008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8357
8358 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8359
83602008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8361
8362 * gtkutil.c: Include <config.h> instead of "config.h".
8363
8364 * lisp.h (Foverlay_buffer): Add EXFUN.
8365
8366 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8367 child process to complete child_setup. Undo 2005-09-21 change.
8368
8369 * s/darwin.h: Mention setsid after vfork.
8370
83712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8372
8373 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8374 Depend on macgui.h.
8375
8376 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8377 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8378
8379 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8380 and f19.
8381 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8382
8383 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8384 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8385 Remove enumerators.
8386
8387 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8388 Check if FACE_FROM_ID returns NULL.
8389
83902008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8391
8392 * w32inevt.c (change_frame_size): Remove extern declaration.
8393 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8394 change_frame_size.
8395
83962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8397
8398 * getloadavg.c: Revert last change (2008-07-15).
8399
84002008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8401
8402 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8403 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8404 from configure.
8405
84062008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8407
8408 * s/sol2.h:
8409 * s/sol2-4.h: Reorganize conditionals.
8410
8411 * ecrt0.c: Remove code depending on m68000, not used anymore.
8412
8413 * fns.c (hash_remove): Make static.
8414 * lisp.h (hash_remove): Don't prototype.
8415
8416 * m/ibmrs6000.h:
8417 * m/ibms390x.h:
8418 * m/macppc.h: Remove boilerplate comments.
8419
8420 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8421 Solaris, which does not need them.
8422
8423 * m/vax.h: Remove comments about unsupported systems.
8424
8425 * s/darwin.h: Reorganize ifdefs.
8426
84272008-07-17 Andreas Schwab <schwab@suse.de>
8428
8429 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8430
84312008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8432
8433 Use SDATA. Follow coding convention of placing operators at
8434 beginning of next line rather than end of previous line, and placing
8435 spaces around infix operators.
8436
8437 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8438 in case it was defined already.
8439 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8440 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8441 ns_default.
8442 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8443 Lisp_Objects.
8444 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8445 (ns_defined_color, ns_color_to_lisp): Declare.
8446 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8447 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8448 it's accepted even with USE_LISP_UNION_TYPE.
8449 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8450 (update_frame_tool_bar): Remove apparently obsolete tests for
8451 non-integerness of f->tool_bar_lines.
8452 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8453 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8454 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8455 (nsfont_open): Don't confuse NULL for Qnil.
8456 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8457 * menu.h (find_and_call_menu_selection):
8458 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8459 (find_and_return_menu_selection): Always return something.
8460 * frame.h: Include dispextern.h for Display_Info.
8461 (display_x_get_resource): Declare.
8462
84632008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8464
8465 * syntax.c: Remove stdio.h include accidentally introduced in
8466 Emacs.app commit.
8467 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8468 NS_IMPL_COCOA.
8469 * keyboard.c (handle_async_input, input_available_signal): Remove
8470 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8471
84722008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8473
8474 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8475 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8476 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8477 Use SDATA.
8478
8479 * keymap.c: Remove all NS-specific code.
8480 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8481 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8482 where_is_preferred_modifier, return a different value depending on how
8483 preferred is the binding.
8484 (where_is_internal): Adjust accordingly.
8485 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8486 Adjust to new preferred_sequence_p.
8487 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8488 * keyboard.c (parse_solitary_modifier): Not static any more.
8489 * keyboard.h (parse_solitary_modifier): Declare.
8490
84912008-07-16 Andreas Schwab <schwab@suse.de>
8492
8493 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8494 of easymenu.
8495
84962008-07-16 Chong Yidong <cyd@stupidchicken.com>
8497
8498 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8499 that we don't move off the line.
8500
85012008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8502
8503 * keyboard.c (Qsuper): Remove.
8504 (parse_menu_item): Don't call where_is_internal specially for NS.
8505
85062008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8507
8508 * s/gnu-linux.h: Remove boilerplate comments.
8509
8510 * m/alpha.h (__ELF__): Consolidate conditions.
8511
8512 * m/m68k.h (linux): Use GNU_LINUX instead.
8513 Remove boilerplate comments.
8514
8515 * m/intel386.h: Undo refactoring from previous change.
8516 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8517 too, remove dead code.
8518 (linux): Use GNU_LINUX instead.
8519
85202008-07-16 Jason Rumney <jasonr@gnu.org>
8521
8522 * w32gui.h: Repeat 26 June changes lost by last change.
8523
85242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8525
8526 * systty.h: Remove code for Aix on 386, unsupported platform.
8527
8528 * s/ms-w32.h: Remove boilerplate comments.
8529 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8530
8531 * s/gnu-linux.h (TERM): Remove support.
8532 (HAVE_SYSVIPC): Remove, unused.
8533 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8534 for this system.
8535
8536 * process.c: Remove support for IRIS, unused.
8537 Remove support for TERM, not relevant anymore.
8538
8539 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8540 used with the definition.
8541
8542 * s/aix4-2.h (static): Do not undef.
8543
8544 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8545 only used on Aix.
8546 (HAVE_SYSVIPC): Remove, unused.
8547
8548 * m/hp800.h (CANNOT_DUMP): Do not undef.
8549
8550 * m/alpha.h: Fix comment.
8551
8552 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8553 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8554 used by this configuration.
8555 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8556 * unexec.c: Remove code depending on HPUX and
8557 USG_SHARED_LIBRARIES, not used with this file. Remove code
8558 depending on IRIS, unused. Remove if 0-ed code.
8559
8560 * s/template.h: Remove comments about static.
8561
8562 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8563 Remove if 0-ed code.
8564 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8565 were the same as the default.
8566 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8567 Remove boilerplate comments.
8568 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8569 (HAVE_SYSVIPC): Remove, unused.
8570 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8571
8572 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8573 Remove boilerplate comments.
8574 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8575 Remove boilerplate comments.
8576 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8577 Remove boilerplate comments.
8578 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8579
8580 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8581 USG systems which do not use DATA_SEG_BITS.
8582 Refactor code. Remove boilerplate comments.
8583
8584 * m/ibms390.h:
8585 * m/m68k.h:
8586 * s/bsd-common.h:
8587 * s/cygwin.h:
8588 * s/darwin.h:
8589 * s/freebsd.h:
8590 * s/gnu.h:
8591 * s/msdos.h: Remove boilerplate comments.
8592
8593 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8594 do not use this file.
aac0c6e3
MR
8595 (IRIS_4D): Remove, unused.
8596
8597 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8598 do not use this file.
aac0c6e3
MR
8599 (SIGN_EXTEND_CHAR):
8600 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8601 * unexmips.c: Remove file, unused.
8602
8603 * editfns.c (Fuser_full_name): Replace the only use of
8604 USER_FULL_NAME with its value.
8605 * config.in: Regenerate.
8606
86072008-07-16 David Reitter <david.reitter@gmail.com>
8608
8609 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8610 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8611
86122008-07-16 Glenn Morris <rgm@gnu.org>
8613
8614 * emacs.c (system-type): Doc fix.
8615
86162008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8617
8618 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8619 If the cache doesn't work, let's fix it, rather than work around it.
8620
86212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8622
8623 * Makefile.in: Correct additions for nsfont.o in last commit.
8624 * nsfont.m: New file (forgot last commit).
8625
86262008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8627
8628 * callproc.c (set_initial_environment): Initialize
8629 Vprocess_environment under CANNOT_DUMP (fixes crash when
8630 batch-compiling for bootstrap).
8631
86322008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8633 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8634
8635 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8636 fix crash due to different init order.
8637
86382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8639
8640 Changes and additions for NeXTstep windowing system (Cocoa and
8641 GNUstep) support.
8642
8643 * Makefile.in:
8644 * config.in: Support defines and build commands for NS port.
8645 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8646 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8647 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8648 windowing.
8649 (struct face): Add synth_ital field.
8650 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8651 (init_display): Initialize Vinitial_window_system to "ns" when so
8652 compiled.
8653 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8654 (display_arg): Use under NS.
8655 (main): Under NS, allocate autorelease pool and handle command line
8656 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8657 (standard_args): Add NS-specific args.
8658 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8659 * font.c (DEFAULT_ENCODING): New variable.
8660 (font_find_for_lface): Use it.
8661 (syms_of_font): Load syms_of_nsfont under NS.
8662 * font.h: Declare nsfont_driver when compiled under NS.
8663 * fontset.c: When compiling under NS, include nsterm.h.
8664 (fontset_from_font): Autoconstruct fontset under NS.
8665 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8666 symbol, document and use it.
8667 (do_switch_frame): When for_deletion under Cocoa, add
8668 Fraise_frame(Qnil).
8669 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8670 (x_get_arg): Allow "yes" and "no" as boolean values.
8671 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8672 Qright under Cocoa.
8673 (focus-follows-mouse): Default to 0 under NS.
8674 * frame.h (enum output_method): Add output_ns.
8675 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8676 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8677 (FRAME_WINDOW_P): NS-specific definition.
8678 * fringe.c (max_used_fringe_bitmap): Make public.
8679 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8680 (getloadavg): Use NeXT code under descendant OS's.
8681 * image.c (includes and header section, x_create_bitmap_from_data)
8682 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8683 (image_background_transparent, x_clear_image_1)
8684 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8685 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8686 (x_to_xcolors, x_from_xcolors, x_disable_image)
8687 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8688 other GUIs, including XPM support using code originally written for
8689 Carbon GUI.
8690 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8691 using NS API.
8692 (image_ascent): Use font metrics macros instead of direct struct field
8693 access.
8694 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8695 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8696 Also, handle NS as GTK for menu bar purposes.
8697 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8698 toolkit where they differ.
8699 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8700 use cachelist, still needed under NS.
8701 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8702 (struct widget_value): Define it here for menu.c.
8703 * keymap.c (includes): Include modifier internals.
8704 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8705 NS.
8706 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8707 support for preferring sequences using certain modifiers, specified by
8708 the FIRSTONLY argument.
8709 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8710 under NS GNUstep implementation.
8711 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8712 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8713 * menu.c: Include nsterm.h under NS.
8714 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8715 (free_menubar_widget_tree_value, update_submenu_strings)
8716 (find_and_call_menu_selection): Treat NS as X and NT.
8717 (find_and_return_menu_selection): New function, used for popup menus.
8718 * nsgui.h:
8719 * nsterm.h:
8720 * nsfns.m:
8721 * nsimage.m:
8722 * nsmenu.m:
8723 * nsselect.m:
8724 * nsterm.m: New files.
8725 * process.c (wait_reading_process_output): Under NS, call ns_select()
8726 instead of plain select().
8727 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8728 beginning of buffer.
8729 * sysselect.h (init_process): Rename when compiling under Cocoa to
8730 avoid name conflict.
8731 * termhooks.h (display_info): Add ns_display_info to union.
8732 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8733 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8734 COCOA environment.
8735 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8736 unexec() signature. (Note, this will dump, but the resulting file
8737 crashes; unexosx is used instead; keeping around for reference and
8738 possible aid in getting dump working under GNUstep.)
8739 * w32gui.h (button_type, widget_value): Remove definitions (now in
8740 keyboard.h).
8741 * window.c: Include nsterm.h when compiling under NS.
8742 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8743 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8744 other GUI windowing systems.
8745 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8746 GTK.
8747 (x_consider_frame_title): Under NS, set icon type and frame
8748 modified-state indicator; use ns_set_name_as_filename() when using
8749 formatted title.
8750 (update_window_cursor): Make public when compiling under NS.
8751 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8752 (hourglass_atimer, Vhourglass_delay
8753 * xfaces.c (header section, init_frame_faces, clear_font_table)
8754 (defined_color, unload_color, x_face_list_fonts)
8755 (prepare_face_for_display): Add NS support parallel to other GUIs.
8756 Emulate GCs like other non-X GUIs.
8757 (split_font_name): Don't lowercase font name under NS.
8758 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8759 under NS.
8760 * s/darwin.h: Add support for compilation under NS.
8761
87622008-07-15 Jason Rumney <jasonr@gnu.org>
8763
8764 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8765 (w32_show_hourglass): Rename from show_hourglass.
8766 (w32_hide_hourglass): Rename from hide_hourglass.
8767 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8768 (Vhourglass_delay): Declare extern.
8769 (hourglass_started): Remove.
8770
8771 * xdisp.c (Vhourglass_delay): Remove static.
8772 (hourglass_started, start_hourglass, cancel_hourglass):
8773 Don't include these versions on WINDOWSNT.
8774
87752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8776
8777 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8778 variables (formerly in xfns.c).
8779 (show_hourglass, hide_hourglass): New prototypes (same).
8780 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8781 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8782 in xfns.c).
8783 (syms_of_xdisp): Declare/initialize display-hourglass,
8784 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8785 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8786 formerly in xfns.c.
8787 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8788 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8789 (start_hourglass, cancel_hourglass): Remove.
8790 (show_hourglass, hide_hourglass): Remove prototypes and static
8791 modifiers.
8792 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8793 hourglass_atimer, hourglass_shown_p declaration/initialization.
8794 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8795 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8796 (start_hourglass, cancel_hourglass): Remove.
8797 (show_hourglass, hide_hourglass): Remove prototypes and static
8798 modifiers.
8799 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8800 hourglass_atimer, hourglass_shown_p declaration/initialization.
8801 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8802 (DEFAULT_HOURGLASS_DELAY): Remove.
8803 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8804 hourglass_shown_p declaration/initialization.
8805
88062008-07-14 Jason Rumney <jasonr@gnu.org>
8807
8808 * w32fns.c (w32_get_arg): Remove wrapper function.
8809 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8810 directly.
8811 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8812
88132008-07-14 Kenichi Handa <handa@m17n.org>
8814
8815 * xfont.c (xfont_open): Add workaround for X's bug.
8816
88172008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8818
8819 * fontset.c: Include <stdio.h> unconditionally.
8820
88212008-07-13 Michael Albinus <michael.albinus@gmx.de>
8822
8823 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8824 for filtering.
8825
88262008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8827
8828 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8829
8830 * m/macppc.h:
8831 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8832
8833 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8834 (SPECIAL_EMACS_INT):
8835 * m/ia64.h (SPECIAL_EMACS_INT):
8836 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8837 * s/gnu.h (NLIST_STRUCT):
8838 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8839 * s/gnu-linux.h (LINUX):
8840 * s/msdos.h (HAVE_FACES):
8841 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8842
8843 * systty.h:
8844 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8845 anymore.
8846
88472008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8848
8849 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8850 always defined as int.
8851
8852 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8853 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8854 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8855 * s/freebsd.h (HAVE_WAIT_HEADER):
8856 * s/bsd-common.h (HAVE_UNION_WAIT):
8857 * s/aix4-2.h (HAVE_WAIT_HEADER):
8858 * m/mips.h (HAVE_UNION_WAIT):
8859 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8860 (COFF, static): Do not define, they are undefined later in the file.
8861
8862 * process.c (update_status): Don't use a union.
8863 (status_convert):
8864 (sigchld_handler): Use int instead of WAITTYPE.
8865
88662008-07-12 Chong Yidong <cyd@stupidchicken.com>
8867
8868 * indent.c (Fvertical_motion): Restore hscroll before moving to
8869 goal column.
8870
88712008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8872
8873 * lisp.h: Remove left over code.
8874
88752008-07-11 Andreas Schwab <schwab@suse.de>
8876
8877 * lisp.h: Fix logic in last change.
8878
8879 * menu.h: New file.
8880 * menu.c: Include it.
8881 * xmenu.c: Likewise.
8882 * Makefile.in: Update dependencies.
8883
88842008-07-11 Kenichi Handa <handa@m17n.org>
8885
8886 * fontset.c (fontset_from_font): Cancel the previous change.
8887
88882008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8889
8890 * lisp.h:
8891 * w32heap.c:
8892 * emacs.c:
8893 * alloc.c: Replace all references of NO_UNION_TYPE with
8894 USE_LISP_UNION_TYPE.
8895
8896 * m/xtensa.h (NO_UNION_TYPE):
8897 * m/vax.h (NO_UNION_TYPE):
8898 * m/template.h (NO_UNION_TYPE):
8899 * m/sparc.h (NO_UNION_TYPE):
8900 * m/mips.h (NO_UNION_TYPE):
8901 * m/macppc.h (NO_UNION_TYPE):
8902 * m/m68k.h (NO_UNION_TYPE):
8903 * m/iris4d.h (NO_UNION_TYPE):
8904 * m/intel386.h (NO_UNION_TYPE):
8905 * m/ibms390x.h (NO_UNION_TYPE):
8906 * m/ibms390.h (NO_UNION_TYPE):
8907 * m/ibmrs6000.h (NO_UNION_TYPE):
8908 * m/ia64.h (NO_UNION_TYPE):
8909 * m/hp800.h (NO_UNION_TYPE):
8910 * m/arm.h (NO_UNION_TYPE):
8911 * m/amdx86-64.h (NO_UNION_TYPE):
8912 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8913 defining it the same.
8914
89152008-07-10 Chong Yidong <cyd@stupidchicken.com>
8916
8917 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8918
89192008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8920
8921 * fileio.c:
8922 * sysdep.c
8923 * systty.h:
8924 * m/ibmrs6000.h:
8925 * m/iris4d.h:
8926 * s/aix4-2.h:
8927 * s/freebsd.h:
8928 * s/gnu-linux.h:
8929 * s/hpux10-20.h:
8930 * s/hpux11.h:
8931 * s/netbsd.h:
8932 * s/sol2-3.h:
8933 * s/sol2-4.h:
8934 * s/sol2.h:
8935 * s/usg5-4.h:
8936 * s/vms.h: Remove references to unused variables.
8937
89382008-07-10 Andreas Schwab <schwab@suse.de>
8939
8940 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8941 pattern before matching the generic family.
8942
89432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8944
8945 * unexec.c:
8946 * s/vms.h:
8947 * s/usg5-4-2.h:
8948 * s/sol2-5.h:
8949 * s/freebsd.h:
8950 * s/darwin.h: Remove dead code.
8951
8952 * m/template.h:
8953 * m/sparc.h:
8954 * m/mips.h:
8955 * m/m68k.h:
8956 * m/iris4d.h:
8957 * m/intel386.h:
8958 * m/ibms390x.h:
8959 * m/ibms390.h:
8960 * m/ia64.h:
8961 * m/hp800.h:
8962 * m/arm.h:
8963 * m/amdx86-64.h: Remove dead code and references to unused
8964 and compiler defined symbols.
8965
8966 * unexmips.c:
8967 * unexelf.c: Remove references to desupported systems.
8968
8969 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8970
8971 * m/powermac.h: Remove boilerplate comments.
8972 (NO_REMAP): Remove unused definition.
8973
8974 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8975 define them.
8976
89772008-07-10 Kenichi Handa <handa@m17n.org>
8978
8979 * xfont.c (xfont_open): Log the reason of failure.
8980
89812008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8982
8983 * fontset.c (fontset_get_font_group):
8984 * font.c (font_check_otf): Specify argument types.
8985
89862008-07-09 Kenichi Handa <handa@m17n.org>
8987
8988 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8989 non-ASCII char is found.
8990
8991 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8992 (reorder_font_vector): Change the arg preferred_family to font.
8993 Prefer the spec matching with font.
8994 (fontset_get_font_group): New function.
8995 (fontset_find_font): Change the format of an element of a realized
8996 fontset. Use fontset_get_font_group.
8997 (fontset_font): Try the current fontset, the default fontset, the
8998 fallbacks of the current fontset, and the fallbacks of the default
8999 fontset in this order.
9000 (face_for_char): Delete the shortcut to use the current font.
9001 (fontset_from_font): Don't set fonts for Latin in the fontset.
9002
9003 * font.h (font_make_object, font_match_p): Adjust prototypes.
9004
9005 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9006
9007 * font.c (font_make_object): New arg entity and pixelsize.
9008 (font_check_otf_features, font_check_otf): New functions.
9009 (font_match_p): Check :lang, :script, and :otf properties.
9010
9011 * xfont.c (xfont_open): Adjust it for the change of
9012 font_make_object.
9013 (xfont_text_extents): Fix initial setting of metrics.
9014
9015 * ftfont.c (struct ftfont_info): New member index, delete member
9016 fc_charset_idx. Make the member order compatible with struct
9017 xftfont_info.
9018 (fc_charset_table): Change charset names to registry names.
9019 (ftfont_pattern_entity): Delete the args registry and
9020 fc_charset_idx. Change the value of :font-entity property
9021 to (FONTNAME . INDEX). Always set :registry property to
9022 `iso10646-1'.
9023 (struct ftfont_cache_data): New struct.
9024 (ftfont_lookup_cache): New arg for_face.
9025 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9026 (ftfont_driver): Set the member otf_capability.
9027 (ftfont_get_charset): Adjust it for the change of
9028 fc_charset_table.
9029 (OTF_TAG_SYM): New macro.
9030 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9031 for the change of fc_charset_table.
9032 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9033 ftfont_pattern_entity. Add FC_INDEX to objset.
9034 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9035 and ftfont_pattern_entity.
9036 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9037 font_make_object, struct ftfont_info.
9038 (ftfont_has_char): Use ftfont_get_fc_charset.
9039 (ftfont_otf_features, ftfont_otf_capability): New functions.
9040 (ftfont_shape): Use ftfont_get_otf.
9041 (ftfont_text_extents): Fix initial setting of metrics.
9042
9043 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9044 member order compatible with struct ftfont_info.
9045 (xftfont_open): Add FC_CHARSET to the pattern. Set
9046 xftfont_info->ft_size. Don't unlock the face. Check BDF
9047 properties if appropriate.
9048 (xftfont_close): Unlock the face.
9049 (xftfont_anchor_point, xftfont_shape): Deleted.
9050 (syms_of_xftfont): Don't set members anchor_point and shape of
9051 xftfont_driver.
9052
9053 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9054 font_make_object.
9055
9056 * w32font.c (w32font_open): Adjust it for the change of
9057 font_make_object.
9058 (w32font_open_internal): Don't set properties of font_object here.
9059
90602008-07-08 Chong Yidong <cyd@stupidchicken.com>
9061
9062 * macfns.c (x_create_tip_frame):
9063 * w32fns.c (x_create_tip_frame):
9064 * xfns.c (x_create_tip_frame): Pass parameter argument to
9065 face-set-after-frame-default.
9066
9067 * xfaces.c (Finternal_merge_in_global_face): Save merged
9068 attributes for the default face back into the face vector.
9069
90702008-07-08 Andreas Schwab <schwab@suse.de>
9071
9072 * fontset.h: Declare fontset_from_font. Don't declare
9073 new_fontset_from_font and fontset_from_font_name.
9074 * xterm.c: Include "fontset.h".
9075 * Makefile.in (xterm.o): Update dependencies.
9076
90772008-07-08 Glenn Morris <rgm@gnu.org>
9078
9079 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9080 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9081
90822008-07-07 Chong Yidong <cyd@stupidchicken.com>
9083
9084 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9085 (x_set_frame_parameters): Don't bind it.
9086
90872008-07-07 Juanma Barranquero <lekktu@gmail.com>
9088
9089 * w32fns.c (map_w32_filename): Declare extern.
9090
90912008-07-07 Jason Rumney <jasonr@gnu.org>
9092
9093 * w32term.c (WS_EX_LAYERED): Define if not already.
9094
90952008-07-06 Chong Yidong <cyd@stupidchicken.com>
9096
9097 * xfaces.c (set_font_frame_param): Don't try to set the font
9098 parameter if it is still unspecified in the lface.
9099
91002008-07-05 Chong Yidong <cyd@stupidchicken.com>
9101
9102 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9103 face if it didn't already exist.
9104
9105 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9106
91072008-07-05 Andreas Schwab <schwab@suse.de>
9108
9109 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9110
91112008-07-05 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9114 word-wrapping.
9115 (IT_DISPLAYING_WHITESPACE): New macro.
9116 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9117 when word-wrapping. Simplify word-wrapping logic. Use correct
9118 pixel positions when saving copies of the iterator.
9119 (display_line): Use proper wrap point if the last character on a
9120 line was preceded by whitespace.
9121
91222008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9123
9124 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9125
91262008-07-04 Kenichi Handa <handa@m17n.org>
9127
9128 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9129
9130 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9131
91322008-07-02 Jason Rumney <jasonr@gnu.org>
9133
9134 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9135 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9136
9137 * xdisp.c (next_element_from_display_vector): Move assignment out
9138 of if statement.
9139
91402008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9141
9142 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9143
9144 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9145 (syms_of_fileio): Initialize and export them.
9146 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9147
9148 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9149 (Fsystem_move_file_to_trash): New function.
9150 (syms_of_w32fns): Export it to lisp.
9151
91522008-07-01 Jason Rumney <jasonr@gnu.org>
9153
9154 * w32font.c (w32font_text_extents): Don't count overhang as part
9155 of width.
9156
91572008-06-30 Miles Bader <miles@gnu.org>
9158
9159 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9160 Add `avoid_cursor_p' field.
9161
9162 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9163 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9164 (append_glyph, append_composite_glyph, produce_image_glyph)
9165 (append_stretch_glyph): Initialize avoid_cursor_p.
9166 (get_it_property): Rename from `get_line_height_property'.
9167 (x_produce_glyphs): Use get_it_property.
9168 (handle_line_prefix, push_display_prop): New functions.
9169 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9170 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9171 New variables.
9172 (syms_of_xdisp): Initialize them.
9173
91742008-06-30 Kenichi Handa <handa@m17n.org>
9175
9176 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9177 XftDefaultSubstitute (they are called in XftFontMatch).
9178 (xftfont_open): Fix args to ftfont_font_format.
9179
9180 * ftfont.c (fc_charset_table): New member lang.
9181 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9182 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9183 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9184 (ftfont_open): Fix args to ftfont_font_format.
9185 (ftfont_font_format): New arg filename.
9186
91872008-06-30 Chong Yidong <cyd@stupidchicken.com>
9188
9189 * xfaces.c (Finternal_merge_in_global_face): If default face was
9190 modified, realize it again. Update the font face attribute.
9191
91922008-06-29 Jason Rumney <jasonr@gnu.org>
9193
9194 * w32term.c (x_set_frame_alpha): Fix logic.
9195
91962008-06-29 Kenichi Handa <handa@m17n.org>
9197
9198 * fontset.c (Finternal_char_font): Return font-object instead of
9199 font-name.
9200
9201 * composite.c (get_composition_id): Fix the width calculation for TAB.
9202
92032008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9204
9205 * indent.c (Fvertical_motion): Properly handle float column arg.
9206
92072008-06-28 Jason Rumney <jasonr@gnu.org>
9208
9209 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9210 (pfnSetLayeredWindowAttributes): New function pointer.
9211 (w32_initialize): Initialize it when supported.
9212 (x_set_frame_alpha): New function.
9213
9214 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9215 (w32_frame_parm_handlers): Set alpha handler.
9216
9217 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9218
92192008-06-27 Jason Rumney <jasonr@gnu.org>
9220
9221 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9222 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9223 (w32_to_x_charset, x_to_w32_charset)
9224 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9225 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9226 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9227 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9228 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9229 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9230 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9231 (Qw32_charset_unicode): Remove.
9232 (syms_of_w32fns): Update for above changes.
9233
9234 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9235 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9236 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9237 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9238 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9239 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9240 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9241 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9242 (syms_of_w32font): Update for above changes.
9243
92442008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9245
9246 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9247 removed #if.
9248 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9249
92502008-06-26 Juanma Barranquero <lekktu@gmail.com>
9251 Eli Zaretskii <eliz@gnu.org>
9252
9253 * makefile.w32-in (LOCAL_FLAGS):
9254 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9255
9256 * sysdep.c (_spawnlp, _getpid):
9257 Declare with explicit _cdecl instead of _CRTAPI1.
9258
9259 * editfns.c (Fget_internal_run_time):
9260 Check for WINDOWSNT with #ifdef, not #if.
9261
92622008-06-26 Jason Rumney <jasonr@gnu.org>
9263
9264 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9265
9266 * w32term.c (x_draw_glyph_string_foreground)
9267 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9268 Use FONT_HANDLE macro.
9269 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9270
9271 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9272 (uniscribe_encode_char): Use FONT_HANDLE macro.
9273
9274 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9275 (w32font_text_extents): Use precast w32_font.
9276 (w32font_close): Free cached metrics.
9277 (w32font_open_internal): Allocate space for name on stack.
9278
92792008-06-26 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9282
92832008-06-26 Jason Rumney <jasonr@gnu.org>
9284
9285 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9286 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9287
92882008-06-26 Juanma Barranquero <lekktu@gmail.com>
9289
9290 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9291
92922008-06-26 Jason Rumney <jasonr@gnu.org>
9293
9294 * w32bdf.c, w32bdf.h: Remove obsolete files.
9295
9296 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9297
9298 * w32gui.h: Don't include w32bdf.h.
9299 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9300 Remove obsolete font support.
9301
9302 * w32font.h (struct w32font_info): Remove compat_w32_font.
9303 Add hfont member.
9304 (FONT_COMPAT): Remove obsolete macro.
9305
9306 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9307 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9308 (w32font_open_internal): Remove compat code. Set new hfont member.
9309 (Fx_select_font): Use new hfont member.
9310
9311 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9312 (uniscribe_encode_char): Use new hfont member.
9313
9314 * w32term.c (x_draw_glyph_string_foreground)
9315 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9316 (x_draw_glyph_string): Use metrics in w32font_info.
9317
93182008-06-26 Kenichi Handa <handa@m17n.org>
9319
9320 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9321
93222008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9323
9324 * unexnext.c:
9325 * m/ews4800.h:
9326 * m/hp9000s300.h:
9327 * m/ibm370aix.h:
9328 * m/mips-siemens.h:
9329 * m/ncr386.h:
9330 * m/next.h:
9331 * m/pmax.h:
9332 * m/powerpcle.h:
9333 * m/tandem-s2.h:
9334 * s/386bsd.h:
9335 * s/bsd386.h:
9336 * s/bsd4-1.h:
9337 * s/bsd4-2.h:
9338 * s/bsdos2-1.h:
9339 * s/bsdos2.h:
9340 * s/bsdos3.h:
9341 * s/bsdos4.h:
9342 * s/nextstep.h:
9343 * s/ultrix4-3.h:
9344 * s/usg5-0.h:
9345 * s/usg5-2-2.h:
9346 * s/usg5-2.h:
9347 * s/usg5-4-3.h:
9348 * s/ux4800.h:
9349 * s/uxpds.h:
9350 * s/uxpv.h: Remove support for obsolete systems.
9351 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9352 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9353 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9354 Remove, insert contents in s/aix4-2.h.
9355 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9356 * s/bsd4-3.h: Rename to ...
9357 * s/bsd-common.h: ... this.
9358 * data.c:
9359 * doc.c:
9360 * ecrt0.c:
9361 * emacs.c:
9362 * fileio.c:
9363 * floatfns.c:
9364 * keyboard.c:
9365 * mem-limits.h:
9366 * print.c:
9367 * process.c:
9368 * sysdep.c:
9369 * syssignal.h:
9370 * systty.h:
9371 * syswait.h:
9372 * term.c:
9373 * unexec.c:
9374 * unexelf.c:
9375 * unexhp9k800.c:
9376 * m/hp800.h:
9377 * m/ibmrs6000.h:
9378 * m/mips.h:
9379 * m/vax.h:
9380 * s/darwin.h:
9381 * s/freebsd.h:
9382 * s/gnu.h:
9383 * s/ms-w32.h:
9384 * s/msdos.h:
9385 * s/netbsd.h:
9386 * s/template.h: Remove references to obsolete variables.
9387
9388 * Makefile.in: Add dependencies for all unexec files.
9389 (admindir): Remove unused variable.
9390 (UNEXEC_SRC): Remove references.
9391
93922008-06-25 Chong Yidong <cyd@stupidchicken.com>
9393
9394 * xfns.c (x_default_font_parameter): If Xft is available, first
9395 try Monospace-12 for the default font.
9396
93972008-06-25 Jason Rumney <jasonr@gnu.org>
9398
9399 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9400
94012008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9402
9403 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9404
9405 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9406
94072008-06-25 Juanma Barranquero <lekktu@gmail.com>
9408
9409 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9410 <scroll-conservatively>: Fix typo in docstring.
9411
9412 * xselect.c (Fx_send_client_event): Doc fix.
9413
94142008-06-25 Kenichi Handa <handa@m17n.org>
9415
9416 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9417
9418 * font.c (font_parse_fcname): Remove unused variables.
9419 (font_sort_entites): Delete the arg SPEC. Caller changed.
9420 Fix for the case of ! best_only.
9421 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9422
9423 * lisp.h (Fstring_to_unibyte): EXFUN it.
9424
9425 * character.h (str_to_unibyte): Extern it.
9426
9427 * character.c (str_to_unibyte): New function.
9428
9429 * fns.c (Fstring_to_unibyte): New function.
9430 (syms_of_fns): Defsubr it.
9431
94322008-06-24 Kenichi Handa <handa@m17n.org>
9433
9434 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9435 DPI too.
9436 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9437
94382008-06-24 Andreas Schwab <schwab@suse.de>
9439
9440 * Makefile.in (${lispsource}loaddefs.el): Rename from
9441 ../lisp/loaddefs.el.
9442 (bootstrap-clean): Do what distclean does but don't remove
9443 Makefile.
9444 (distclean): Depend on bootstrap-clean and remove Makefile.
9445
94462008-06-24 Chong Yidong <cyd@stupidchicken.com>
9447
9448 * buffer.h (struct buffer): New member word_wrap.
9449
9450 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9451 word-wrap.
9452 (init_buffer_once): Initialize them.
9453
9454 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9455 line_wrap enum possessing three possible values.
9456
9457 * termopts.h: Replace truncate_partial_width_windows with
9458 Vtruncate_partial_width_windows.
9459
9460 * dispnew.c (direct_output_for_insert): Avoid direct output when
9461 inserting a space with word wrap on.
9462
9463 * indent.c (compute_motion): Obey integer values of
9464 truncate-partial-width-windows.
9465
9466 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9467 replacing truncate_partial_width_windows.
9468 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9469 truncate only if the window width is below that integer.
9470 (start_display, resize_mini_window, produce_stretch_glyph)
9471 (display_string, move_it_in_display_line_to): Use line_wrap.
9472 (back_to_previous_visible_line_start, reseat_1): Reset
9473 string_from_display_prop_p.
9474 (display_line): Extend default face to end of line when wrapping.
9475
94762008-06-24 Kim F. Storm <storm@cua.dk>
9477
9478 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9479 to wrap continued lines at word boundaries.
9480
94812008-06-24 Jason Rumney <jasonr@gnu.org>
9482
9483 * font.c (Ffont_face_attributes): Multiply pixel size before point
9484 conversion to avoid multiplying rounding error.
9485
94862008-06-23 Jason Rumney <jasonr@gnu.org>
9487
9488 * w32term.c (x_draw_glyph_string_background)
9489 (x_draw_glyph_string): Remove old bdf font code.
9490
9491 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9492
94932008-06-22 Kenichi Handa <handa@m17n.org>
9494
9495 * font.c (font_find_for_lface): Try the adstyle specified in
9496 the property of LFACE_FONT of LFACE (if any).
9497
94982008-06-21 Seiji Zenitani <zenitani@mac.com>
9499 Ryo Yoshitake <ryo@shiftmode.net>
9500
9501 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9502
95032008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9504
9505 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9506 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9507 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9508 (witness-emacs): Remove.
9509 (lisp, shortlisp): Move loaddefs.el earlier.
9510 (mostlyclean): Forget about witness-emacs.
9511
95122008-06-22 Glenn Morris <rgm@gnu.org>
9513
9514 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9515 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9516
95172008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9518
9519 * Makefile.in (PRECOMP): Remove.
9520 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9521 (witness-emacs): Run `compile-first'.
9522 (.el.elc): Use the new compile-onefile target.
9523
95242008-06-21 Kenichi Handa <handa@m17n.org>
9525
9526 * xftfont.c (xftfont_open): Handle QCembolden only when
9527 FC_EMBOLDEN is defined.
9528
95292008-06-21 Andreas Schwab <schwab@suse.de>
9530
9531 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9532 (.el.elc): Likewise.
9533
95342008-06-21 Miles Bader <miles@gnu.org>
9535
9536 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9537 build dir, not the lisp source dir.
9538
95392008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9540
9541 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9542 (bootstrapclean): Remove.
9543 (.el.elc): New rule.
9544 (PRECOMP): New var.
9545 (../lisp/subdirs.el): Remove.
9546 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9547 (witness-emacs): New target.
9548 (mostlyclean): Remove witness-emacs as well.
9549 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9550 Add witness-emacs dependency.
9551
95522008-06-20 Chong Yidong <cyd@stupidchicken.com>
9553
9554 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9555 defined by the font.
9556
95572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9558
9559 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9560 (bootstrap-clean): New target that keeps TAGS around.
9561 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9562 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9563
95642008-06-20 Jason Rumney <jasonr@gnu.org>
9565
9566 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9567 Remove obsolete font code.
9568
9569 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9570 to determine language support.
9571
95722008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9573
9574 * sysdep.c (cfsetspeed): New fun extracted from the code.
9575 (cfmakeraw): Move before first use.
9576
95772008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9578
9579 * sysdep.c (cfmakeraw): Provide fallback implementation.
9580 (serial_configure): Provide fallback implementation of cfsetspeed.
9581
95822008-06-20 Kenichi Handa <handa@m17n.org>
9583
9584 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9585 the pattern.
9586
9587 * fontset.c (fontset_from_font): Copy font_spec before changing
9588 the elements.
9589
9590 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9591
95922008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9593
9594 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9595 for explicit `font' parameters.
9596
9597 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9598
95992008-06-19 Kenichi Handa <handa@m17n.org>
9600
9601 * frame.c: Include <ctype.h>.
9602 (x_set_font_backend): Allow spacing characters in the X resource
9603 for FontBackend.
9604
96052008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9606
9607 * w32fns.c, xfns.c (Qfont_param): New var.
9608 (syms_of_w32fns): Initialize it.
9609 (x_default_font_parameter): Record explicit `font' into
9610 `font-parameter'.
9611
96122008-06-18 Kenichi Handa <handa@m17n.org>
9613
9614 * font.c (font_parse_xlfd): Fix previous change.
9615 (font_parse_fcname): Don't use :fc-unknown-spec.
9616 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9617 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9618 (font_add_log): Prepend the driver name to the resulting fonts.
9619
9620 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9621 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9622 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9623
9624 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9625 (QCembolden): New variables.
9626 (syms_of_xftfont): DEFSYM them.
9627 (xftfont_open): Call XftFontMatch. Don't trust the result of
9628 XftTextExtents8 if the pixel_size is less than 5.
9629
96302008-06-18 Andreas Schwab <schwab@suse.de>
9631
9632 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9633 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9634
96352008-06-18 Jason Rumney <jasonr@gnu.org>
9636
9637 * w32font.c (w32font_list, w32font_match): Add logging.
9638
9639 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9640
96412008-06-17 Chong Yidong <cyd@stupidchicken.com>
9642
9643 * font.c (font_parse_fcname): Store divider characters for
9644 unknown-spec list. For known key symbols, intern using correct
9645 symbol name.
9646
96472008-06-17 Kenichi Handa <handa@m17n.org>
9648
9649 * xfaces.c (realize_default_face): If the frame is not on window
9650 system, set the fontset of face to nil.
9651
96522008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9653
9654 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9655
96562008-06-16 Juanma Barranquero <lekktu@gmail.com>
9657
9658 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9659 (build_font_name_from_vector): Delete externs.
9660
9661 * xfaces.c (struct font_name): Don't declare.
9662
96632008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9664
9665 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9666
96672008-06-16 Chong Yidong <cyd@stupidchicken.com>
9668
9669 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9670
96712008-06-16 Juanma Barranquero <lekktu@gmail.com>
9672
9673 * font.c (Ffont_spec): Fix usage in docstring.
9674 (Ffont_face_attributes): Doc fix.
9675
96762008-06-16 Andreas Schwab <schwab@suse.de>
9677
9678 * font.c (Ffont_face_attributes): Fix definition.
9679
96802008-06-16 Jason Rumney <jasonr@gnu.org>
9681
9682 * font.h (font_style_symbolic_from_value): Remove.
9683
9684 * font.c (font_style_symbolic_from_value): Remove.
9685 (font_style_symbolic): Revert to pre 2008-06-13 version.
9686
9687 * w32font.c (w32_to_fc_weight): New function.
9688 (w32font_full_name, logfont_to_fcname): Use it.
9689
96902008-06-16 Kenichi Handa <handa@m17n.org>
9691
9692 * font.c (font_check_object): Delete it.
9693 (font_clear_cache): Check if a font-object is alive.
9694 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9695 font-object to nil.
9696 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9697 (font_at): Don't call font_check_object.
9698 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9699
97002008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9701
9702 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9703
97042008-06-16 Chong Yidong <cyd@stupidchicken.com>
9705
9706 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9707
97082008-06-15 Chong Yidong <cyd@stupidchicken.com>
9709
9710 * font.c (font_parse_fcname): Only one decimal point.
9711 (font_unparse_fcname): Handle data in family and foundry indices
9712 as symbols, not strings.
9713 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9714
9715 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9716
9717 * font.h (font_unparse_gtkname): Add prototype.
9718
97192008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9720
9721 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9722
97232008-06-15 Andreas Schwab <schwab@suse.de>
9724
9725 * font.c (font_update_drivers): Fix crash when no drivers match.
9726
97272008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9728
9729 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9730 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9731
97322008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9735
97362008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9737
9738 * process.c (Fserial_process_configure, Fprocess_send_eof):
9739 Use EQ to compare Lisp_Objects.
9740
97412008-06-13 Jason Rumney <jasonr@gnu.org>
9742
9743 * w32fns.c (Fw32_select_font): Remove old font API function.
9744
9745 * w32font.c (logfont_to_fcname): New function.
9746 (Fx_select_font): New font dialog function compatible with
9747 GTK/fontconfig version.
9748
9749 * font.c (font_style_symbolic_from_value): New function.
9750 (font_style_symbolic): Use it.
9751
9752 * font.h (font_style_symbolic_from_value): Declare new function.
9753
97542008-06-13 Juanma Barranquero <lekktu@gmail.com>
9755
9756 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9757 <font-width-table>: Fix typos in docstrings.
9758
97592008-06-13 Daniel Engeler <engeler@gmail.com>
9760
9761 These changes add serial port access.
9762 * process.c: Add HAVE_SERIAL.
9763 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9764 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9765 (list_processes_1, select_wrapper, Fstop_process)
9766 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9767 (status_notify): Modify to handle serial processes.
9768 [HAVE_SERIAL] (Fserial_process_configure)
9769 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9770 New functions.
9771 * process.h (struct Lisp_Process): Add `type'.
9772 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9773 New functions.
9774 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9775 serial ports.
b71ac3dd 9776 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9777 * w32.h: Add FILE_SERIAL.
9778 (struct _child_process): Add ovl_read, ovl_write.
9779
97802008-06-13 Kenichi Handa <handa@m17n.org>
9781
9782 * dispextern.h (enum lface_attribute_index): New member
9783 LFACE_FOUNDRY_INDEX.
9784
9785 * font.c (font_score): Delete arg alternate_families. Check only
9786 weight, slant, width, and size. Ignore the difference of alias
9787 style symbols.
9788 (font_sort_entites): Adjust for the above change. Reflect the
9789 order of font-driver to scores.
9790 (font_list_entities): Don't check alternate_familes here.
9791 (font_clear_prop): Handle foundry.
9792 (font_update_lface): Don't parse "foundry-family" form here.
9793 Handle FONT_FOUNDRY_INDEX.
9794 (font_find_for_lface): Likewise. Handle alternate families here.
9795 If registry is nil, try iso8859-1 and ascii-0.
9796 (font_open_for_lface): Pay attention to size in ENTITY.
9797 (font_open_by_name): Simplify by calling font_load_for_lface.
9798 (free_font_driver_list): Delete it.
9799 (font_update_drivers): Preserve the order of backends.
9800 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9801 of font_score and font_sort_entites.
9802 (font_update_sort_order): Likewise.
9803
9804 * xfaces.c (LFACE_FOUNDRY): New macro.
9805 (check_lface_attrs): Check foundry.
9806 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9807 (merge_face_vectors): Check foundry.
9808 (merge_face_ref): Likewise.
9809 (Finternal_set_lisp_face_attribute): Likewise.
9810 (x_update_menu_appearance): Likewise.
9811 (Finternal_get_lisp_face_attribute): Likewise.
9812 (lface_hash): Likewise.
9813 (lface_same_font_attributes_p): Likewise.
9814 (x_supports_face_attributes_p): Likewise.
9815 (tty_supports_face_attributes_p): Likewise.
9816 (Finternal_set_alternative_font_family_alist): Intern strings.
9817 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9818 (realize_default_face): Set LFACE_FOUNDRY (lface).
9819
9820 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9821 font-driver at first.
9822
9823 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9824
98252008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9826
9827 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9828
98292008-06-12 Jim Meyering <meyering@redhat.com>
9830
9831 Make unexec_free handle NULL the same way free does.
9832 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9833
98342008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9835
9836 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9837 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9838 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9839 (WEAK_ALIAS): Simplify.
9840 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9841 when searching a unibyte buffer.
9842
98432008-06-12 Chong Yidong <cyd@stupidchicken.com>
9844
9845 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9846
98472008-06-12 Juanma Barranquero <lekktu@gmail.com>
9848
9849 * w32font.c: Include ctype.h.
9850
98512008-06-11 Jason Rumney <jasonr@gnu.org>
9852
9853 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9854 misreported as space.
9855 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9856 as aliases for registry iso10646-1.
9857
98582008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9859
9860 * buffer.c (clone_per_buffer_values): Skip `name'.
9861
98622008-06-11 Chong Yidong <cyd@stupidchicken.com>
9863
9864 * font.c (font_parse_fcname): Fix last change; accept decimal
9865 points in font size.
9866
98672008-06-10 Jason Rumney <jasonr@gnu.org>
9868
9869 * w32uniscribe.c (add_opentype_font_name_to_list):
9870 Skip non unicode fonts.
9871
98722008-06-10 Chong Yidong <cyd@stupidchicken.com>
9873
9874 * xfns.c (Fx_font_dialog): New function.
9875
9876 * gtkutil.c (xg_dialog_response_cb): Rename from
9877 xg_file_response_callback.
9878 (pop_down_dialog): Rename from pop_down_file_dialog.
9879 (xg_get_file_name): Callers changed.
9880 (xg_get_font_name): New function.
9881
9882 * gtkutil.h (xg_get_font_name): Insert prototype.
9883
98842008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9885
9886 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9887 x_underline_minimum_display_offset.
9888 (syms_of_xdisp): Declare it here rather than in xterm.c.
9889 * dispextern.h (underline_minimum_offset): Declare it.
9890 * w32term.c (x_draw_glyph_string): Use it.
9891 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9892 (syms_of_xterm): Don't declare it any more.
9893 (x_draw_glyph_string): Adjust to the new name.
9894
8719abec 98952008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9896
9897 * xterm.c (x_underline_minimum_display_offset): New var.
9898 (x_draw_glyph_string): Use it.
9899 (syms_of_xterm): Declare it.
9900
99012008-06-10 Chong Yidong <cyd@stupidchicken.com>
9902
9903 * font.c (font_parse_fcname): Accept GTK-style font names too.
9904
99052008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9906
9907 * dired.c (file_name_completion): Don't return t if the match is exact
9908 but with different capitalization.
9909 * minibuf.c (Ftry_completion): Simplify.
9910
9911 * window.c (Vwindow_point_insertion_type): New var.
9912 (set_window_buffer): Use it.
9913 (syms_of_window): Init and export it to Lisp.
9914
99152008-06-10 Kenichi Handa <handa@m17n.org>
9916
9917 * font.h (font_intern_prop): Prototype adjusted.
9918
9919 * font.c (font_intern_prop): New arg force_symbol.
9920 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9921 Adjust for the change of font_intern_prop.
9922
9923 * ftfont.c (ftfont_pattern_entity):
9924 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9925 (w32_registry):
9926 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9927 the change of font_intern_prop.
9928
99292008-06-09 Juanma Barranquero <lekktu@gmail.com>
9930
9931 * w32menu.c (digest_single_submenu): Declare extern.
9932
99332008-06-09 Jason Rumney <jasonr@gnu.org>
9934
9935 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9936
9937 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9938 (parse_single_submenu): Remove.
9939 (digest_single_submenu): Remove.
9940 (syms_of_w32menu): Don't initialise variables that have moved
9941 to menu.c.
9942 (set_frame_menubar): Sync with version in xmenu.c.
9943 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9944
9945 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9946 Make static again.
9947
99482008-06-09 Jason Rumney <jasonr@gnu.org>
9949
9950 Changes to w32 files related to the move of common menu code
9951 to menu.c on 2008-06-08 by Chong Yidong.
9952
9953 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9954 defs to w32gui.h.
9955 (single_keymap_panes, push_menu_item, push_menu_pane):
9956 Make globally visible.
9957
9958 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9959 (local_free, malloc_widget_value, free_widget_value)
9960 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9961 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9962 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9963 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9964 (menu_items, menu_items_allocated, menu_items_used)
9965 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9966 (init_menu_items, finish_menu_items, discard_menu_items)
9967 (grow_menu_items, push_submenu_start, push_submenu_end)
9968 (push_left_right_boundary, push_menu_pane, push_menu_item)
9969 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9970 (free_menubar_widget_tree_value, parse_single_submenu)
9971 (update_submenu_strings): Remove functions.
9972 (xmalloc_widget_value): Remove and declare extern.
9973
9974 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9975 (OBJ1): Build it.
9976
9977 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9978 (local_heap, local_alloc, local_free, malloc_widget_value)
9979 (free_widget_value): Define here.
9980
99812008-06-09 Kenichi Handa <handa@m17n.org>
9982
9983 * font.h (Qascii_0): Extern it.
9984
9985 * font.c (Qascii_0): New variable.
9986 (syms_of_font): DEFSYM it.
9987 (font_open_by_name): If the registry "iso8859-1" fails, try also
9988 "ascii-0".
9989
9990 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9991
99922008-06-08 Kenichi Handa <handa@m17n.org>
9993
9994 * .gdbinit (xfont): New command.
9995
99962008-06-08 Andreas Schwab <schwab@suse.de>
9997
9998 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9999 * Makefile.in (menu.o): Update dependencies.
10000
10001 * Makefile.in (obj): Always add menu.o.
10002 * emacs.c (main): Always call syms_of_menu.
10003 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10004
100052008-06-08 Chong Yidong <cyd@stupidchicken.com>
10006
10007 * Makefile.in: Compile menu.c.
10008
10009 * lisp.h: Declare syms_of_menu.
10010
10011 * emacs.c (main): Call syms_of_menu.
10012
10013 * keyboard.h: Relocate platform-independent menu definitions from
10014 xmenu.c.
10015
10016 * menu.c: New file. Relocate platform-independent menu
10017 definitions from xmenu.c. Suggested by Adrian Robert.
10018
10019 * xmenu.c: Remove platform-independent menu definitions.
10020 (menu_items menu_items_inuse, menu_items_allocated)
10021 (menu_items_used, menu_items_n_panes)
10022 (menu_items_submenu_depth): Move to keyboard.h.
10023 (init_menu_items, finish_menu_items, unuse_menu_items)
10024 (discard_menu_items, restore_menu_items, save_menu_items)
10025 (grow_menu_items, push_submenu_start, push_submenu_end)
10026 (push_left_right_boundary, push_menu_pane, push_menu_item)
10027 (keymap_panes, single_keymap_panes, single_menu_item)
10028 (list_of_panes, list_of_items, find_and_call_menu_selection)
10029 (xmalloc_widget_value, free_menubar_widget_value_tree)
10030 (parse_single_submenu, digest_single_submenu)
10031 (update_submenu_strings): Move to menu.c.
10032
100332008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10034
10035 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10036
100372008-06-06 Miles Bader <miles@gnu.org>
10038
10039 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10040 face, not frame default.
10041
100422008-06-05 Martin Rudalics <rudalics@gmx.at>
10043
10044 * window.c (pop_up_windows, pop_up_frames)
10045 (display_buffer_reuse_frames, Vpop_up_frame_function)
10046 (Vdisplay_buffer_function, Veven_window_heights)
10047 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10048 (Vspecial_display_function, Vsame_window_buffer_names)
10049 (Vsame_window_regexps, split_height_threshold)
10050 (Vsplit_window_preferred_function): Move those vars to window.el.
10051 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10052 (Fdisplay_buffer): Move those functions to window.el.
10053 (syms_of_window): Remove corresponding declarations.
10054 (display_buffer): New function.
10055 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10056 * dispnew.c (Flast_nonminibuf_frame): New function.
10057 * buffer.c (Fpop_to_buffer): Move to window.el.
10058
100592008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10060
10061 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10062
100632008-06-05 Kenichi Handa <handa@m17n.org>
10064
10065 * coding.c (detect_coding): Fix previous change.
10066 (detect_coding_system): Likewise.
10067
100682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10069
10070 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10071
10072 * keymap.c (Vminibuffer_local_filename_must_match_map):
10073 Rename from Vminibuffer_local_must_match_filename_map.
10074 (syms_of_keymap):
10075 * minibuf.c (Fcompleting_read): Adjust accordingly.
10076 * commands.h: Rename declaration as well.
10077
100782008-06-05 Kenichi Handa <handa@m17n.org>
10079
10080 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10081 family name.
10082 (Ffont_put): Likewise.
10083
10084 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10085 current font-spec.
10086
10087 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10088 is unspecified.
10089
10090 * xfaces.c (realize_x_face): If the font-related face attributes
10091 are the same as those of default face, realize a new fontset from
10092 default->fontset.
10093 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10094
100952008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10096
10097 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10098 (move_it_in_display_line): New wrapper.
10099
10100 * window.c (window_scroll_pixel_based_preserve_x)
10101 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10102 (window_scroll_pixel_based, window_scroll_line_based):
10103 Use them to preserve column positions.
10104 (syms_of_window): Initialize them.
10105
10106 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10107 (HPOS . VPOS) pair.
10108
10109 * dispextern.h (move_it_in_display_line): Declare.
10110
101112008-06-05 Juanma Barranquero <lekktu@gmail.com>
10112
10113 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10114 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10115 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10116
101172008-06-04 Juanma Barranquero <lekktu@gmail.com>
10118
10119 * window.c (Fset_window_parameter): Doc fix.
10120 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10121
101222008-06-04 Joakim Verona <joakim@verona.se>
10123
10124 * window.h (struct window): Add new member window_parameters.
10125
10126 * window.c (Fwindow_parameters, Fwindow_parameter)
10127 (Fset_window_parameter): New defuns.
10128 (syms_of_window): Defsubr the new defuns.
10129 (make_window): Initialize window_parameters to nil.
10130
101312008-06-04 John Paul Wallington <jpw@pobox.com>
10132
10133 * eval.c (Fdefmacro): Doc fix.
10134
101352008-06-04 Kenichi Handa <handa@m17n.org>
10136
10137 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10138 Be sure to call setup_coding_system when we find a proper coding system.
10139 (detect_coding_system): Fix handling of coding->head_ascii.
10140
101412008-06-03 Andreas Schwab <schwab@suse.de>
10142
10143 * font.c (font_prop_validate_spacing): Fix last change.
10144
101452008-06-03 Kenichi Handa <handa@m17n.org>
10146
10147 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10148 (font_parse_fcname): Fix handling of unknown key.
10149
10150 * xfont.c (xfont_list): Try an alias.
10151
10152 * charset.c (char_charset): Return NULL if the arg charset_list is
10153 specified and C doesn't belong to any of them.
10154
101552008-06-02 Chip Coldwell <coldwell@redhat.com>
10156
10157 * font.c (font_pixel_size): Don't take cdr of an integer.
10158
101592008-06-02 Jim Meyering <meyering@redhat.com>
10160
10161 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10162 * alloc.c (xfree): Return right away for a NULL arg.
10163 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10164 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10165 * mac.c (create_apple_event_from_event_ref): Likewise.
10166 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10167 Likewise.
10168 * doprnt.c (doprnt1): Likewise.
10169 * frame.c (frame): Likewise.
10170 * keyboard.c (wipe_kboard): Likewise.
10171 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10172 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10173 * term.c (tty_default_color_capabilities, maybe_fatal)
10174 (delete_tty): Likewise.
10175 * w16select.c (string): Likewise.
10176 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10177 * w32bdf.c (w32_free_bdf_font): Likewise.
10178 * w32fns.c (w32_unload_font): Likewise.
10179 * w32font.c (w32font_close): Likewise.
10180 * window.c (size_window): Likewise.
10181 * xselect.c (receive_incremental_selection): Likewise.
10182 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10183 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10184 * w32.c (stat): Likewise.
10185
10186 Remove useless if-before-free tests.
10187 * editfns.c (Fset_time_zone_rule): Likewise.
10188 * lread.c (nosuffix): Likewise.
10189 * ralloc.c (get_bloc): Likewise.
10190 * regex.c (reg_free): Likewise.
10191 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10192 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10193 * xsmfns.c (smc_save_yourself_CB): Likewise.
10194
101952008-06-02 Kenichi Handa <handa@m17n.org>
10196
10197 * font.c (font_find_for_lface): Handle float font size.
10198 (font_open_for_lface): Likewise.
10199
10200 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10201 comparing the properties.
10202
102032008-06-01 Jason Rumney <jasonr@gnu.org>
10204
10205 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10206 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10207 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10208 Don't add empty script list.
10209 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10210
102112008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10212
10213 * Makefile.in (dot, dotdot): Remove, update users.
10214 ".." has been used elsewhere in the file for a long time.
10215 (LIBXT_STATIC): Remove conditional based on unused variable.
10216
102172008-06-01 Miles Bader <miles@gnu.org>
10218
10219 * xfaces.c (Vface_remapping_alist): New variable.
10220 (syms_of_xfaces): Initialize it.
10221 (enum named_merge_point_kind): New type.
10222 (struct named_merge_point): Add `named_merge_point_kind' field.
10223 (push_named_merge_point): Make cycle detection respect different
10224 named-merge-point kinds.
10225 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10226 Remove face-name alias resolution.
10227 (lface_from_face_name): New definition using
10228 `lface_from_face_name_no_resolve'.
10229 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10230 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10231 (get_lface_attributes): New definition that layers face-remapping on
10232 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10233 (lookup_basic_face): New function.
10234 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10235 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10236 `get_lface_attributes'.
10237 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10238 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10239 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10240
10241 * xdisp.c (init_iterator): Pass base_face_id through
10242 `lookup_basic_face' when we actually use it as a face-id.
10243 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10244 DEFAULT_FACE_ID.
10245
10246 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10247 lookup the initial face-id.
10248
10249 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10250
102512008-06-01 Juanma Barranquero <lekktu@gmail.com>
10252
10253 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10254 (Fremove_text_properties): Fix typos in docstrings.
10255
102562008-05-31 Kenichi Handa <handa@m17n.org>
10257
10258 * font.c (font_list_entities): Fix the car part of data to be
10259 stored in the cache.
10260
10261 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10262
102632008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10264
10265 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10266 Add a `test' argument so another predicate than `equal' can be used.
10267 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10268 (map_char_table): Remove unused vars `c' and `i'.
10269 * lisp.h (Foptimize_char_table): Adjust declaration.
10270 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10271
102722008-05-30 Kenichi Handa <handa@m17n.org>
10273
10274 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10275 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10276 defined.
10277
102782008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10279
10280 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10281 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10282 frame-local settings for the same variable.
10283
102842008-05-30 Kenichi Handa <handa@m17n.org>
10285
10286 * fontset.c (Ffont_info): Move to font.c.
10287 (syms_of_fontset): Delete defsubr of Sfont_info.
10288
10289 * font.c (font_style_to_value, font_score): Delete casting of the
10290 args to xstcasecmp.
10291 (register_font_driver): Increment num_font_drivers only when
10292 registering the driver globally.
10293 (Ffont_info): Move from fontset.c. Handle a font object too.
10294 (syms_of_font): Defsubr Sfont_info.
10295
102962008-05-29 Kenichi Handa <handa@m17n.org>
10297
10298 * coding.h (enum define_coding_utf8_arg_index): New enum.
10299 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10300 coding_attr_utf_bom.
10301 (enum utf_bom_type): Rename from utf_16_bom_type.
10302 (struct utf_16_spec): Adjust for the above change.
10303 (struct coding_system): Add utf_8_bom in `spec' union.
10304
10305 * coding.c (CODING_UTF_8_BOM): New macro.
10306 (enum coding_category): Delete coding_category_utf_8, add
10307 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10308 coding_category_utf_8_sig.
10309 (CATEGORY_MASK_UTF_8): Delete it.
10310 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10311 (CATEGORY_MASK_UTF_8_SIG): New macros.
10312 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10313 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10314 CATEGORY_MASK_UTF_8_SIG.
10315 (CATEGORY_MASK_UTF_8): New macro.
10316 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10317 (detect_coding_utf_8): Check BOM.
10318 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10319 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10320 (encode_coding_utf_16): Likewise.
10321 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10322 (detect_coding, detect_coding_system): Handle utf-8-auto.
10323 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10324 (syms_of_coding): Fix setting up of Vcoding_category_table.
10325
103262008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10327
10328 * process.c (Faccept_process_output): If `millisec' is non-nil,
10329 `seconds' default to 0.
10330 (wait_reading_process_output): Also return non-nil if we read output
10331 from a non-running process.
10332
103332008-05-29 Jason Rumney <jasonr@gnu.org>
10334
10335 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10336 `raster' specified.
10337 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10338 in the uniscribe backend, but disallow any font that has no
10339 unicode subrange support.
10340
103412008-05-29 Juanma Barranquero <lekktu@gmail.com>
10342
10343 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10344 Fix typos in docstrings.
10345
103462008-05-29 Kenichi Handa <handa@m17n.org>
10347
10348 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10349 (Fx_family_fonts): Set frame correctly.
10350
103512008-05-28 Jason Rumney <jasonr@gnu.org>
10352
10353 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10354
103552008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10356
10357 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10358 calling build_annotations.
10359
103602008-05-28 Juanma Barranquero <lekktu@gmail.com>
10361
10362 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10363 (Fencode_coding_string):
10364 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10365 <latin-extra-code-table>: Fix typos in docstrings.
10366 (syms_of_coding) <coding-system-alist>: Doc fix.
10367 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10368
103692008-05-28 Kenichi Handa <handa@m17n.org>
10370
10371 * fontset.c (Ffont_info): Don't call font_close_object.
10372
10373 * font.c (font_parse_family_registry): Use Ffont_put to validate
10374 foundry and family.
10375 (font_delete_unmatched): Don't check spacing.
10376 (font_list_entities): Add spacing to the spec to list fonts.
10377
10378 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10379 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10380
10381 * coding.c (encode_coding_raw_text): Fix previous change.
10382 (encode_coding_object): When the dst_object is a buffer and is
10383 different from src_object, move gap to PT.
10384
103852008-05-27 Chong Yidong <cyd@stupidchicken.com>
10386
10387 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10388
103892008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10390
10391 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10392 all branches. Compute it differently.
10393
10394 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10395
103962008-05-27 Juanma Barranquero <lekktu@gmail.com>
10397
10398 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10399 into "else if () ... else ...".
10400
104012008-05-27 Jason Rumney <jasonr@gnu.org>
10402
10403 * w32font.c (w32font_open_internal): Determine if glyph indices
10404 are likely to work here.
10405
104062008-05-27 Chong Yidong <cyd@stupidchicken.com>
10407
10408 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10409 draw overlap glyphs with appropriate highlighting.
10410
104112008-05-27 Kenichi Handa <handa@m17n.org>
10412
10413 * xfont.c (xfont_open): Fix calculation of font->average_width.
10414
104152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10416
10417 * casefiddle.c (casify_object): Try to guess better whether the
10418 argument is a byte or a char.
10419
104202008-05-26 Andreas Schwab <schwab@suse.de>
10421
10422 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10423 Always send multiples of format size.
10424
10425 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10426
104272008-05-26 Jason Rumney <jasonr@gnu.org>
10428
10429 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10430 (compute_metrics): Don't set failure if we just cleared the cache.
10431 (w32_weight_table): Remove unused variable.
10432 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10433 backwards compatibility.
10434
104352008-05-25 Kenichi Handa <handa@m17n.org>
10436
10437 * w32term.c (x_draw_glyph_string):
10438 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10439
10440 * xfaces.c: Delete unused function prototypes.
10441 (xstrlwr, font_frame): Delete them.
10442 (clear_face_cache): Delete unused variable.
10443
10444 * xftfont.c (xftfont_open): Delete unused variable.
10445 If underline_thickness is not 1, adjust underline_position.
10446
10447 * ftxfont.c (ftxfont_open): Delete unused variable.
10448
10449 * fontset.c (face_for_char): Optimize for the case of no charset
10450 property.
10451
10452 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10453 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10454 (otf_open, font_otf_capability, generate_otf_features)
10455 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10456 Comment out by surrounding "#if 0" and "#endif" for the moment.
10457 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10458 (syms_of_font): Codes for accessing above commented out.
10459
104602008-05-24 Eli Zaretskii <eliz@gnu.org>
10461
10462 * w32proc.c: Include dispextern.h.
10463
10464 * w32.c: Include dispextern.h.
10465
104662008-05-23 Juanma Barranquero <lekktu@gmail.com>
10467
10468 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10469 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10470 Fix typos in docstrings.
10471
104722008-05-23 Jason Rumney <jasonr@gnu.org>
10473
10474 * xsmfns.c: Remove includes that are already included by config.h.
10475
104762008-05-23 Kenichi Handa <handa@m17n.org>
10477
10478 * charset.c (Qemacs, charset_emacs): New variables.
10479 (char_charset): Fix for non-Unicode characters.
10480 (syms_of_charset): Define charset_emacs.
10481
10482 * w32term.c (x_draw_glyph_string): Be sure to update
10483 s->underline_thickness and s->underline_position. Be sure to draw
10484 underline within the current line area.
10485
10486 * xterm.c (x_draw_glyph_string): Be sure to update
10487 s->underline_thickness and s->underline_position. Be sure to draw
10488 underline within the current line area.
10489
10490 * fontset.c: Delete unused variables and add casting for char *
10491 throughout the file.
10492 (fontset_font): Try the fallback fonts of the current fontset
10493 before consulting the default fontset.
10494
10495 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10496
10497 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10498
104992008-05-22 Jason Rumney <jasonr@gnu.org>
10500
10501 * font.c: Don't include strings.h.
10502
10503 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10504
10505 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10506 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10507 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10508 to call xstrcasecmp.
10509
10510 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10511
10512 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10513
10514 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10515
10516 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10517
105182008-05-22 Kenichi Handa <handa@m17n.org>
10519
10520 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10521
10522 * font.c (font_prop_validate_style): Adjust for the format
10523 change of font_style_table.
10524
10525 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10526 two args.
10527
10528 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10529 two args.
10530
105312008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10532
10533 * minibuf.c (keys_of_minibuf): Delete.
10534 * lisp.h (keys_of_minibuf): Delete.
10535 * emacs.c (main): Don't call keys_of_minibuf.
10536
105372008-05-22 Kenichi Handa <handa@m17n.org>
10538
10539 * ftfont.c (ftfont_resolve_generic_family): Rename from
10540 ftfont_list_generic_family. Return a single family for each
10541 generic family.
10542 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10543 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10544 Call font_add_log.
10545 (ftfont_match): Call font_add_log.
10546
10547 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10548 (FONT_DEBUG): Define it.
10549 (font_add_log): Extern it.
10550 (font_assert): Rename from xassert.
10551
10552 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10553 (xfont_list_family): Call font_add_log.
10554 (xfont_match): Likewise.
10555 (memq_no_quit): Delete.
10556
10557 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10558 call of Ffont_xlfd_name.
10559
10560 * xfaces.c (struct table_entry, slant_table, weight_table)
10561 (swidth_table): Move to font.c.
10562
10563 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10564 xassert are changed to font_assert. Delete many unused variables.
10565 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10566 New variables.
10567 (struct table_entry): Move from xfaces.c and modified.
10568 (weight_table, slant_table, width_table): Move from xfaces.c and
10569 contents adjusted for the change of struct table_entry.
10570 (font_style_to_value, font_style_symbolic): Adjust for the
10571 format change of font_style_table.
10572 (font_parse_family_registry): Don't overwrite existing foundry and
10573 family of font_spec.
10574 (font_score): Fix calculation of diff for sizes.
10575 (font_sort_entites): Call font_add_log.
10576 (font_delete_unmatched): Return a newly created list.
10577 (font_list_entities): Fix previous change. Call font_add_log.
10578 (font_matching_entity, font_open_entity, font_close_entity):
10579 Call font_add_log.
10580 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10581 (Finternal_set_font_style_table): Delete.
10582 (BUILD_STYLE_TABLE): New macro.
10583 (build_style_table): New function.
10584 (Vfont_log, font_log_env_checked): New variables.
10585 (font_add_log): New function.
10586 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10587 Declare Lisp variables "font-weight-table", "font-slant-table",
10588 "font-width-table", and "font-log". Initialize font_style_table.
10589
105902008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10591
10592 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10593
105942008-05-21 Seiji Zenitani <zenitani@mac.com>
10595 Ryo Yoshitake <ryo@shiftmode.net>
10596
10597 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10598 (Vframe_alpha_lower_limit): New variable.
10599 (x_set_alpha): New function.
10600
10601 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10602
10603 * xfns.c (x-create-frame, Qalpha):
10604 Initialize the frame parameter `alpha'.
10605 * xterm.c (OPAQUE, OPACITY): New.
10606 (x_set_frame_alpha): New function.
10607 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10608
10609 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10610 * w32fns.c (w32_frame_parm_handlers): Likewise.
10611
106122008-05-20 Jason Rumney <jasonr@gnu.org>
10613
10614 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10615 truetype fonts to opentype list.
10616
106172008-05-20 Juanma Barranquero <lekktu@gmail.com>
10618
10619 * fontset.c (Ffontset_info): Doc fix.
10620 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10621 <ignore-relative-composition>: Fix typos in docstrings.
10622
10623 * font.c (syms-of-font) <font-encoding-alist>:
10624 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10625 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10626 (Ffont_otf_alternates): Doc fixes.
10627
106282008-05-20 Kenichi Handa <handa@m17n.org>
10629
10630 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10631 font.h through out the file.
10632 (FONT_DRIVERS): Rename from FONTOBJ.
10633 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10634 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10635
10636 * emacs.c (main): Call syms_of_font unconditionally.
10637
10638 * font.h (find_font_encoding): Extern it.
10639
10640 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10641 fontset.c.
194d44e7 10642 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10643 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10644 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10645 only when HAVE_WINDOW_SYSTEM is defined.
10646 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10647 when HAVE_WINDOW_SYSTEM is defined.
10648
10649 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10650 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10651
10652 * xfaces.c: Include font.h unconditionally.
10653 (merge_face_ref, merge_face_vectors)
10654 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10655
106562008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10657
10658 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10659 indirect_variable.
10660 * eval.c (lisp_indirect_variable): New fun.
10661 (Fuser_variable_p): Use it.
10662
106632008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10664
10665 * lisp.h (indirect_variable):
10666 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10667 Use Lisp_Symbol pointers rather than Lisp_Object.
10668 Adjust callers.
10669 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10670 To this end, change calling-convention.
10671
10672 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10673 if some non-hidden buffers are selected by string&pred.
10674
106752008-05-19 Chong Yidong <cyd@stupidchicken.com>
10676
10677 * process.c (wait_reading_process_output): Always check status
10678 when in batch mode.
10679
106802008-05-19 Kenichi Handa <handa@m17n.org>
10681
10682 * font.c (font_list_entities): Fix handling of cache.
10683 (font_matching_entity): Likewise.
10684
10685 * ftfont.c (cs_iso8859_1): Delete.
10686 (ft_face_cache): New variable.
10687 (struct ftfont_info): New member fc_charset_idx.
10688 (ftfont_build_basic_charsets): Delete.
10689 (fc_charset_table): New variable.
10690 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10691 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10692 Callers changed.
10693 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10694 (ftfont_spec_pattern): New argument fc_charset_idx.
10695 Check registry more rigidly. Change callers.
10696 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10697 change of :font-entity property of the font.
10698
10699 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10700 property of the font.
10701
107022008-05-18 Juanma Barranquero <lekktu@gmail.com>
10703
10704 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10705 (Funencodable_char_position, Fcheck_coding_systems_region)
10706 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10707 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10708 (Ffind_operation_coding_system, Fset_coding_system_priority)
10709 (Fcoding_system_eol_type): Doc fixes.
10710
107112008-05-17 Glenn Morris <rgm@gnu.org>
10712
10713 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10714
107152008-05-16 Eli Zaretskii <eliz@gnu.org>
10716
10717 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10718 and st_gid.
10719
10720 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10721 HAVE_WINDOW_SYSTEM is not defined.
10722
10723 * xfaces.c (merge_face_ref, merge_face_vectors)
10724 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10725 HAVE_WINDOW_SYSTEM is defined.
10726 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10727
107282008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10729
10730 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10731
107322008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10733
10734 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10735
107362008-05-15 Kenichi Handa <handa@m17n.org>
10737
10738 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10739 preference.
10740
107412008-05-15 Glenn Morris <rgm@gnu.org>
10742
10743 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10744
107452008-05-15 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10748 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10749
10750 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10751
107522008-05-15 Kenichi Handa <handa@m17n.org>
10753
10754 * ftfont.c (ftfont_list): Downcase family name to check generic
10755 families.
10756
10757 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10758 font-spec for QCfont value.
10759
10760 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10761 buffer. Check the return value of it.
10762
107632008-05-14 Jason Rumney <jasonr@gnu.org>
10764
10765 * w32term.c (w32_get_glyph_overhangs): Remove.
10766 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10767
107682008-05-14 Kenichi Handa <handa@m17n.org>
10769
10770 * font.c (font_prop_validate): Make nil a valid value.
10771 (font_clear_cache): Check if the cached vector of entities is nil
10772 or not.
10773
107742008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10775
10776 * emacs.c (main_thread): Conditionalize on
10777 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10778 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10779
10780 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10781 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10782 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10783
107842008-05-14 Kenichi Handa <handa@m17n.org>
10785
10786 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10787 has no corresponding coding system.
10788
107892008-05-14 Jason Rumney <jasonr@gnu.org>
10790
10791 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10792
10793 * w32font.h (w32font_open_internal): Update declaration.
10794
10795 * w32font.c (w32font_open_internal): Change last argument from
10796 w32font_info struct to font object. Fill in font object from
10797 font_entity. Get Outline metrics if possible. Use them to
10798 calculate underline position and thickness. Use xlfd name as name
10799 property. Don't set codepage.
10800 (w32font_open): Pass font_object to w32font_open_internal. Don't
10801 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10802 (w32font_draw): Use s->font.
10803 (clear_cached_metrics): Don't clear non-existent blocks.
10804
10805 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10806 font was not found.
10807 (x_draw_glyph_string): Use underline position and thickness from font.
10808
10809 * w32uniscribe.c (uniscribe_open): Pass font_object to
10810 w32font_open_internal.
10811
108122008-05-14 Kenichi Handa <handa@m17n.org>
10813
10814 These changes are to delete all legacy font-handling codes, and
10815 make Emacs use only font-backends.
10816
10817 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10818 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10819
10820 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10821
10822 * charset.h (Vcharset_non_preferred_head)
10823 (Vcurrent_iso639_language): Extern them.
10824
10825 * charset.c (Vcharset_non_preferred_head): New variable.
10826 (Vcurrent_iso639_language): New variable.
10827 (syms_of_charset): Declare it as a Lisp variable.
10828 (char_charset): Don't check non preferred charsets. As a last
10829 resort, return charset_unicode.
10830 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10831
10832 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10833 conditionals. Don't check enable_font_backend. Delete all codes
10834 used only when USE_FONT_BACKEND is not defined.
10835
10836 * dispextern.h (struct glyph_string): Change type of `font' to
10837 `struct font *'.
10838 (struct glyph_string): New member underline_position and
10839 underline_thickness.
10840 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10841 (struct face): Change type of `font' to `struct font *'. Remove
10842 members `font_name', `font_info_id'.
10843 (per_char_metric, encode_char): Delete externs.
10844 (calc_pixel_width_or_height): Adjust the prototype.
10845
10846 * emacs.c (enable_font_backend): Delete extern.
10847 (main): Don't set enable_font_backend. Don't check the command
10848 line argument "-disable-font-backend".
10849
10850 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10851 (enum font_property_index): New members FONT_DPI_INDEX,
10852 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10853 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10854 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10855 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10856 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10857 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10858 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10859 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10860 (struct font_spec, struct font_entity): New structs.
10861 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10862 (struct font): Many members from old "struct font_info" moved to
10863 here. Members font and entity deleted.
10864 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10865 the new font-related objects.
10866 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10867 (CHECK_FONT_GET_OBJECT): Likewise.
10868 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10869 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10870 (struct font_driver): New members case_sensitive anc check. Type
10871 of the member list and open changed.
10872 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10873 (font_symbolic_width, font_find_object, font_get_spec)
10874 (font_set_lface_from_name): Delete extern.
10875 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10876
10877 * font.c: Include <strings.h>.
10878 (enable_font_backend): Delete it.
10879 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10880 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10881 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10882 (null_string): Delete it.
10883 (null_vector): Make it static.
10884 (font_family_alist): Delete it.
10885 (Qnormal): Extern it.
10886 (QCextra, QClanguage): Delete it.
10887 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10888 (font_make_spec, font_make_entity, font_make_object)
10889 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10890 the string. Callers changed.
10891 (font_pixel_size): Adjusted for the format change of font-related
10892 objects.
10893 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10894 (font_style_to_value, font_style_symbolic): New function.
10895 (build_font_family_alist): Delete it.
10896 (font_registry_charsets): Use Fassoc_string instead of
10897 assq_no_quit.
10898 (font_prop_validate_symbol): Don't return null_string.
10899 (font_prop_validate_style): Adjusted for the change of
10900 style-related values in a font vector.
10901 (font_property_table): Delete entries for QClanguage and
10902 QCantialias, add entries for QCavgwidth.
10903 (get_font_prop_index): Delete the 2nd argument FROM.
10904 (font_prop_validate): Arguments changed.
10905 (font_put_extra): Adjusted for the change of font-related objects.
10906 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10907 (font_parse_fcname, font_unparse_fcname)
10908 (font_prepare_composition): Likewise.
10909 (font_parse_family_registry): Renamed from font_merge_old_spec.
10910 (otf_open): Delete the 1st arg entity.
10911 (font_otf_capability): Adjusted for the above change.
10912 (font_score): New arg alternate_families. Adjusted for the change
10913 of font-related objects.
10914 (font_sort_entites): New arg best_only.
10915 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10916 Delete them.
10917 (font_match_p): Check alternate families.
10918 (font_find_object): Delete it.
10919 (font_check_object): New function.
10920 (font_clear_cache): Adjusted for the change of font-related objects.
10921 (font_delete_unmatched): New arg.
10922 (font_list_entities): Call font_driver->list with a spec that
10923 doesn't specify style-related properties.
10924 (font_matching_entity): Arguments changed. Caller changed.
10925 (font_open_entity): Adjusted for the change of font-related objects.
10926 (font_close_object, font_has_char, font_encode_char)
10927 (font_get_name, font_get_spec): Likewise.
10928 (font_spec_from_name, font_clear_prop, font_update_lface):
10929 New functions.
10930 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10931 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10932 (font_at): Adjusted for the change of font-related objects.
10933 (font_range): New function.
10934 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10935 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10936 (Fcopy_font_spec, Fmerge_font_spec): New function.
10937 (Ffont_family_list): Renamed from list-families.
10938 (Finternal_set_font_style_table): Arguments changed.
10939 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10940 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10941 change of font-related objects.
10942 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10943
10944 * fontset.h (struct font_info): Delete it. Most members go to
10945 struct font.
10946 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10947 (enum FONT_SPEC_INDEX): Delete it.
10948 (font_info, list_fonts_func, load_font_func, query_font_func)
10949 (set_frame_fontset_func, find_ccl_program_func)
10950 (get_font_repertory_func, new_fontset_from_font_name): Delete
10951 externs.
10952 (fontset_from_font_name): Extern it.
10953 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10954 (FONT_INFO_FROM_FACE): Deleted.
10955 (face_for_font): Adjust prototype.
10956
10957 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10958 conditionals. Don't check enable_font_backend. Delete all codes
10959 used only when USE_FONT_BACKEND is not defined.
10960 (get_font_info_func, list_font_func, load_font_func)
10961 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10962 (get_font_repertory_func): Delete them.
10963 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10964 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10965 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10966 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10967 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10968 (fontset_compare_rfontdef): New function.
10969 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10970 rfont-defs by qsort. Adjusted for the change of font-group vector.
10971 (load_font_get_repertory): Deleted.
10972 (fontset_find_font): Use new macros to ref/set elements of
10973 font-def and rfont-def.
10974 (fontset_font): Fix the timing of remembering that no font for C.
10975 (free_face_fontset): Do nothing if the face has no fontset.
10976 (face_suitable_for_char_p): Use new macros to ref/set elements of
10977 rfont-def.
10978 (face_for_char): Likewise. Call face_for_char with font_object.
10979 (fs_load_font): Delete. Delete #pragma surrounding it.
10980 (fs_query_fontset): Use strcasecmp instead of strcmp.
10981 (generate_ascii_font_name): Adjusted for the format change of
10982 font-spec.
10983 (Fset_fontset_font): Likewise. Use new macros to set elements of
10984 font-def.
10985 (Fnew_fontset): Use font_unparse_xlfd to generate
10986 FONTSET_ASCII (fontset).
10987 (new_fontset_from_font_name): Deleted.
10988 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10989 a fontset is already created for the font. FIx updating of
10990 Vfontset_alias_alist.
10991 (fontset_ascii_font): Deleted.
10992 (Ffont_info): Adjusted for the format change of font-spec.
10993 (Finternal_char_font): Likewise.
10994 (Ffontset_info): Likewise.
10995 (syms_of_fontset): Don't check load_font_func.
10996
10997 * fns.c (internal_equal): Handle PREV_FONT.
10998
10999 * frame.h: Delete USE_FONT_BACKEND conditional.
11000
11001 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11002 conditionals. Don't check enable_font_backend. Delete all codes
11003 used only when USE_FONT_BACKEND is not defined.
11004 (x_set_font): Call x_new_font, not x_new_fontset2.
11005 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11006 already set for the frame.
11007
11008 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11009 a font-entity by font_make_entity. Use font_intern_prop instead
11010 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11011 font property. If a font is scalable, set avgwidth property to 0.
11012 Set font-entity property by font_put_extra.
11013 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11014 (ffont_driver): Adjusted for the change of struct font_driver.
11015 (ftfont_spec_pattern): New function.
11016 (ftfont_list): Return a list, not vector.
11017 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11018 (ftfont_list_family): Don't downcase names.
11019 (ftfont_free_entity): Deleted.
11020 (ftfont_open): Return a font-object. Adjusted for the change of
11021 struct font. Get underline_thickness and underline_position from
11022 font property. Don't update dpyinfo->smallest_font_height and
11023 dpyinfo->smallest_char_width.
11024 (ftfont_close): Don't free `struct font'.
11025 (ftfont_has_char): Adjusted for the format change of font-entity.
11026 (ftfont_encode_char, ftfont_text_extents): Likewise.
11027
11028 * ftxfont.c (ftxfont_list): Return a list, not vector.
11029 (ftxfont_open): Return a font-object. Adjusted for the change of
11030 struct font. Get underline_thickness and underline_position from
11031 font property. Don't update dpyinfo->smallest_font_height and
11032 dpyinfo->smallest_char_width.
11033 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11034 (ftxfont_draw): Adjusted for the change of struct font.
11035
11036 * image.c (image_ascent): Don't include "charset.h". Include
11037 "character.h" and "font.h".
11038
11039 * lisp.h (enum pvec_type): New member PREV_FONT.
11040 (Fassoc_string): EXFUN it.
11041
11042 * print.c: Include font.h.
11043 (print_object): Handle font-related objects.
11044
11045 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11046 conditionals. Don't check enable_font_backend. Delete all codes
11047 used only when USE_FONT_BACKEND is not defined.
11048 (handle_auto_composed_prop): Do nothing if it->f is not on a
11049 window system. Check how many following characters can be
11050 displayed by the same font.
11051 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11052 'struct font *'.
11053 (get_char_face_and_encoding): Assign the whole encoding task to
11054 the `encode-char' method of a font driver.
11055 (fill_composite_glyph_string): Adjusted for the change of `struct
11056 face' and `struct glyph_string'.
11057 (fill_glyph_string): Likewise.
11058 (get_per_char_metric): Arguments changed.
11059 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11060 and `struct glyph_string'.
11061 (produce_stretch_glyph, calc_line_height_property)
11062 (x_produce_glyphs): Likewise.
11063
11064 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11065 conditionals. Don't check enable_font_backend. Delete all codes
11066 used only when USE_FONT_BACKEND is not defined. Use
11067 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11068 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11069 (Qp): Extern them.
11070 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11071 Deleted.
11072 (struct font_name): Deleted.
11073 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11074 (compare_fonts_by_sort_order): New function.
11075 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11076 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11077 Deleted.
11078 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11079 compare_fonts_by_sort_order.
11080 (Fx_font_family_list): Call Ffont_family_list.
11081 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11082 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11083 (face_symbolic_slant, face_symbolic_swidth)
11084 (split_font_name_into_vector, build_font_name_from_vector)
11085 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11086 (font_rescale_ratio, split_font_name, build_font_name)
11087 (free_font_names, sort_fonts, x_face_list_fonts)
11088 (face_font_available_p, sorted_font_list, cmp_font_names)
11089 (font_list_1, concat_font_list, font_list, remove_duplicates):
11090 Deleted.
11091 (Fx_list_fonts): Use Ffont_list.
11092 (LFACE_AVGWIDTH): Deleted.
11093 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11094 by FONTP.
11095 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11096 (set_lface_from_font_name): Delete it.
11097 (set_lface_from_font): Renamed from
11098 set_lface_from_font_and_fontset. Caller changed. Don't set
11099 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11100 for face.
11101 (merge_face_vectors): Copy font-spec if necessary.
11102 Clear properties of the font-spec if necessary.
11103 (merge_face_ref): Clear properties of the font-spec if necessary.
11104 (Finternal_set_lisp_face_attribute): Likewise.
11105 (set_font_frame_param): Use font_load_for_lface to load a
11106 font-object, and call Fmodify_frame_parameters with it.
11107 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11108 font name by Ffont_xlfd_name.
11109 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11110 QCslant, and QCwidth.
11111 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11112 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11113 Compare fonts by EQ.
11114 (lookup_non_ascii_face): Deleted.
11115 (face_for_font): The 2nd argument changed.
11116 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11117 Check atomic font properties by case insensitive.
11118 (realize_non_ascii_face): Set face->overstrike correctly.
11119 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11120 (dump_realized_face): Get font name from
11121 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11122
11123 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11124 conditionals. Don't check enable_font_backend. Delete all codes
11125 used only when USE_FONT_BACKEND is not defined.
11126 (xic_create_xfontset): Original code deleted and renamed from
11127 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11128 (x_make_gc): Don't set GCFont in GCs.
11129 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11130 opened by "fixed".
11131 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11132 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11133 get_font_repertory_func.
11134
11135 * xfont.c: Include <stdlib.h> and "ccl.h".
11136 (struct xfont_info): New structure.
11137 (xfont_query_font): Deleted.
11138 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11139 moved from xterm.c.
11140 (xfont_driver): Adjusted for the change of struct font_driver.
11141 (compare_font_names): New function.
11142 (xfont_list_pattern): Sort font names case insensitively. Make
11143 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11144 (xfont_list): Return a list, not vector.
11145 (xfont_match): If the font doesn't have QCname property, generate
11146 a name from the other font properties.
11147 (xfont_open): Return a font-object. Adjusted for the change of
11148 struct font. Get underline_thickness and underline_position from
11149 font property. Don't update dpyinfo->smallest_font_height and
11150 dpyinfo->smallest_char_width.
11151 (xfont_close): Don't free struct font.
11152 (xfont_prepare_face): Adjusted for the change of struct font.
11153 (xfont_done_face): Deleted.
11154 (xfont_has_char): Adjusted for the change of struct font.
11155 (xfont_encode_char, xfont_draw): Likewise.
11156 (xfont_check): New function.
11157
11158 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11159 callback function.
11160 (xftfont_match): Adjusted for the format change of font-entity.
11161 (xftfont_open): Adjusted for the format change of font-entity and
11162 font-object. Adjusted for the change of struct font. Return a
11163 font-object. Don't update dpyinfo->smallest_font_height and
11164 dpyinfo->smallest_char_width.
11165 (xftfont_close): Block input while calling XftFontClose.
11166 (xftfont_prepare_face): Don't block input while calling
11167 xftfont_get_colors. Adjusted for the change of struct font.
11168 (xftfont_shape): Return value of error case fixed.
11169
11170 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11171
11172 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11173 conditionals.
11174 (FONT_WIDTH): Return (f)->max_width.
11175 (struct x_display_info): Delete member `font'.
11176 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11177 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11178 (struct x_output): Change type of `font' to `struct font *'.
11179
11180 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11181 conditionals. Don't check enable_font_backend. Delete all codes
11182 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11183 (x_per_char_metric, x_encode_char): Deleted.
11184 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11185 (x_compute_glyph_string_overhangs): Adjusted for the change of
11186 `struct face'.
11187 (x_draw_glyph_string_foreground)
11188 (x_draw_composite_glyph_string_foreground): Likewise.
11189 (x_draw_glyph_string): Likewise. Use font->underline_position and
11190 font->underline_thickness.
11191 (x_new_font): Renamed from x_new_fontset2.
11192 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11193 (x_check_font): Call `check' method of a font driver.
11194 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11195 (x_query_font, x_get_font_repertory): Deleted.
11196 (x_find_ccl_program): Renamed and moved to xfont.c.
11197 (x_redisplay_interface): Adjusted for the change of `struct
11198 redisplay_interface'.
11199
11200 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11201 conditionals. Don't check enable_font_backend. Delete all codes
11202 used only when USE_FONT_BACKEND is not defined. Surround non-used
11203 code by "#ifdef OLD_FONT" and "endif".
11204 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11205
11206 * w32font.h (struct w32font_info): New member.
11207 (FONT_COMPAT): New macro.
11208 (w32font_open_internal): Prototype adjusted.
11209
11210 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11211 OLD_FONT" and "endif".
11212
11213 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11214 conditionals. Don't check enable_font_backend. Delete all codes
11215 used only when USE_FONT_BACKEND is not defined.
11216 (w32font_open): Return a font-object. Make a font-object by
11217 font_make_object. Adjusted for the change of struct w32font_info.
11218 (w32font_close): Don't free struct font. Adjusted for the change
11219 of struct w32font_info.
11220 (w32font_encode_char, w32font_text_extents, w32font_draw):
11221 Adjusted for the change of struct w32font_info.
11222 (w32font_draw): Likewise.
11223 (w32font_list_internal): Return a list, not vector.
11224 (w32font_open_internal): Change the 4th arg to font-object.
11225 Adjusted for the change of struct w32font_info and font-object format.
11226 (add_font_name_to_list): Don't downcase names.
11227 (w32_enumfont_pattern_entity): Make a font-entity by
11228 font_make_entity. Adjusted for the format change of font-entity.
11229 Use FONT_SET_STYLE to set a style-related font property. If a
11230 font is scalable, set avgwidth property to 0. Set font-entity
11231 property by font_put_extra.
11232 (font_matches_spec): Adjusted for the format change of font-entity.
11233 (w32_weight_table, w32_decode_weight): New variables.
11234 (w32_encode_weight): New function.
11235 (fill_in_logfont): Adjusted for the format change of font-spec.
11236 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11237 weight value.
11238 (w32font_driver): Adjusted for the change of struct font_driver.
11239
11240 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11241 conditionals. Don't check enable_font_backend. Surround non-used
11242 code by "#ifdef OLD_FONT" and "endif".
11243 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11244 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11245
11246 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11247 conditionals. Don't check enable_font_backend. Delete all codes
11248 used only when USE_FONT_BACKEND is not defined. Surround non-used
11249 code by "#ifdef OLD_FONT" and "endif".
11250
11251 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11252 (uniscribe_open): Return value changed to font-object.
11253 Adjusted for the format change of font-object.
11254 (uniscribe_otf_capability): Adjusted for the change of struct font.
11255 (add_opentype_font_name_to_list): Don't downcase names.
11256 (uniscribe_font_driver): Adjusted for the change of struct
11257 font_driver.
11258
112592008-05-13 Chong Yidong <cyd@stupidchicken.com>
11260
11261 * dispnew.c (update_frame_1): Check if tty output is still valid
11262 before flushing it.
11263
112642008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11265
11266 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11267 to Gtk+ menus.
11268
112692008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * dired.c (file_name_completion): Tweak the code so as to always do it
11272 in a single pass. Tighten the scope of some variables.
11273
11274 * dired.c (Qdefault_directory): New var.
11275 (file_name_completion): Use it instead of Fexpand_file_name.
11276 (syms_of_dired): Initialize it.
11277
112782008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11279
11280 * fileio.c (double_dollars): Remove dead code.
11281
112822008-05-10 Eli Zaretskii <eliz@gnu.org>
11283
11284 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11285 Mention w32-get-true-file-attributes in doc string.
11286
11287 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11288
112892008-05-09 Glenn Morris <rgm@gnu.org>
11290
11291 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11292 2008-04-23.
11293
112942008-05-09 Eli Zaretskii <eliz@gnu.org>
11295
11296 Support for reporting owner and group of each file on MS-Windows:
11297 * dired.c (stat_uname, stat_gname): New functions, with special
11298 implementation for w32.
11299 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11300
11301 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11302 (dflt_group_name): New static variable.
11303 (dflt_group): Rename from the_group.
11304 (init_user_info): Init dflt_group fields. Get user's group name
11305 from LookupAccountSid.
11306 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11307 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11308 New initialization states.
11309 (globals_of_w32): Initialize them to zero. Initialize the default
11310 group name to "None".
11311 (GetFileSecurity_Name): New global var, the name of the function
11312 to call for GetFileSecurity.
11313 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11314 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11315 (get_file_security, get_security_descriptor_owner)
11316 (get_security_descriptor_group, is_valid_sid)
11317 (get_file_security_desc, get_rid, get_name_and_id)
11318 (get_file_owner_and_group): New functions.
11319 (stat): Use get_file_security_desc and get_file_owner_and_group to
11320 report the owner and primary group of each file. Don't ignore the
11321 high 32 bits of file's size, now that st_size is 64-bit wide.
11322 Fix test when to get true file attributes.
11323 (init_user_info): Use get_rid instead of equivalent inline code.
11324 (fstat): Don't ignore the high 32 bits of file's size.
11325
113262008-05-09 Chong Yidong <cyd@stupidchicken.com>
11327
11328 * image.c (png_load): Use correct bit-depth for setting background
11329 color.
11330
113312008-05-08 Eli Zaretskii <eliz@gnu.org>
11332
11333 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11334 epa-hook.elc.
11335
113362008-05-08 Juanma Barranquero <lekktu@gmail.com>
11337
11338 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11339
113402008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11341
11342 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11343 because the original parameters are in pure storage now.
11344 (mac_window): Remove unused params. Update callers.
11345
113462008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * lread.c (substitute_object_recurse): Use lower-level primitives.
11349 Don't signal errors when traversing sub-char-tables.
11350 Don't loop over all the possible characters when traversing char-tables.
11351
11352 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11353 just like we do in print.c.
11354
113552008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11356
11357 * minibuf.c (Ftry_completion): Remove code left over from when we used
11358 scmp instead of Fcompare_strings.
11359
113602008-05-04 Juanma Barranquero <lekktu@gmail.com>
11361
11362 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11363
113642008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11365
11366 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11367 Create bitmap context in native byte order.
11368
11369 * macterm.c (XDrawLine)
11370 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11371 context in native byte order.
11372
113732008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11374
11375 * config.in: Regenerate.
11376
11377 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11378 New definitions for Image I/O support.
11379 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11380 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11381 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11382 (mac_data_provider_release_data, image_load_image_io)
11383 [USE_MAC_IMAGE_IO]: New functions.
11384 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11385 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11386 (init_image_func_pointer) [MAC_OSX]: Remove function.
11387 (image_load_quartz2d) [MAC_OSX]: Check availability of
11388 CGImageCreateWithPNGDataProvider at compile time.
11389 Use lowercase `false' for boolean constant.
11390 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11391 Use image_load_image_io.
11392 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11393 Don't check MyCGImageCreateWithPNGDataProvider.
11394 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11395 Don't call init_image_func_pointer.
11396
11397 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11398
11399 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11400 Make variable non-static.
11401 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11402 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11403
11404 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11405 (RED_FROM_ULONG): Mask off higher bits.
11406 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11407
11408 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11409 Include AvailabilityMacros.h.
11410 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11411 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11412
114132008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11414
11415 * chartab.c (Fset_char_table_range): If range is t, really set all
11416 chars to that value.
11417
114182008-05-03 Eli Zaretskii <eliz@gnu.org>
11419
11420 * dired.c (Ffile_attributes): Don't allow the device number become
11421 negative.
11422
114232008-05-02 Daiki Ueno <ueno@unixuser.org>
11424
11425 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11426
114272008-05-02 Juri Linkov <juri@jurta.org>
11428
11429 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11430 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11431 DEFAULT argument as a list of default values in docstrings.
11432
114332008-05-01 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11436
114372008-05-01 Martin Rudalics <rudalics@gmx.at>
11438
11439 * dispnew.c (change_frame_size_1): Preserve small windows when
11440 shrinking frames by calling set_window_height|width with third
11441 arg 2.
11442
11443 * window.h (struct window): Replace field too_small_ok by field
11444 resize_proportionally.
11445
11446 * window.c (make_window): Initialize resize_proportionally.
11447 (enlarge_window): Temporarily set resize_proportionally to make
11448 sure that shrink_windows does scale the window proportionally.
11449 (shrink_windows): When window has resize_proportionally set try
11450 to shrink it proportionally by stealing from other windows.
11451 (struct saved_window, Fset_window_configuration)
11452 (compare_window_configurations): Handle resize_proportionally.
11453 (WINDOW_TOTAL_SIZE): New macro.
11454 (window_min_size, shrink_windows, size_window): Use it.
11455 (check_min_window_sizes): Remove. Invalid values of
11456 window-min-height|width are handled by window_min_size_2 now.
11457 (size_window, Fsplit_window, enlarge_window)
11458 (adjust_window_trailing_edge, grow_mini_window): Don't call
11459 check_min_window_sizes.
11460 (window_min_size_2, window_min_size_1, window_min_size):
11461 New argument safe_p for retrieving "safe" minimum sizes.
11462 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11463 (adjust_window_trailing_edge, grow_mini_window):
11464 Adjust arguments of window_min_size... functions.
11465 (shrink_windows): Argument min_size removed. New argument
11466 safe_p allows shrinking windows to their safe minimum sizes.
11467 Calculate minimum size and decide whether a window shall be
11468 deleted for each window individually.
11469 (size_window): When nodelete_p equals 2, tell shrink_windows to
11470 delete windows only if their new minimum size is no more safe.
11471 (shrink_window_lowest_first): Call window_min_size_1 to make
11472 sure to preserve modeline of bottom-most window when resizing
11473 the minibuffer.
11474 (Fset_window_configuration, Fcurrent_window_configuration)
11475 (compare_window_configurations): Do not handle
11476 window-min-height|width any more.
11477 (syms_of_window): Clarify window-min-height|width doc-strings.
11478
114792008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11480
11481 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11482 some more. Copy some of the code from Ftry_completions.
11483 Remove special case code that dates back to initial revision when the
11484 slash was only added when necessary and that can't trigger nowadays.
11485
114862008-04-27 Kenichi Handa <handa@m17n.org>
11487
11488 * font.c (font_prop_validate): Signal `error' instead of `font'.
11489
114902008-04-29 Jason Rumney <jasonr@gnu.org>
11491
11492 * w32fns.c (Fw32_battery_status): New defun.
11493 (syms_of_w32fns): Defsubr it.
11494
114952008-04-28 Andreas Schwab <schwab@suse.de>
11496
11497 * dired.c (file_name_completion): Fix another mixing of encoded
11498 and decoded names.
11499
115002008-04-28 Juanma Barranquero <lekktu@gmail.com>
11501
11502 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11503
115042008-04-27 Juanma Barranquero <lekktu@gmail.com>
11505
11506 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11507
115082008-04-27 Andreas Schwab <schwab@suse.de>
11509
11510 * dired.c (file_name_completion): Fix inappropriate mixing of
11511 encoded and decoded names.
11512
11513 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11514
11515 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11516
115172008-04-26 Eli Zaretskii <eliz@gnu.org>
11518
11519 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11520 2008-03-31, it's not needed anymore with `struct stat' definition
11521 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11522 for the same reasons.
11523
115242008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11525
11526 * m/sparc.h: Additional redefinitions for GNU/Linux.
11527
115282008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11529
11530 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11531 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11532 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11533 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11534 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11535 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11536 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11537 Likewise.
11538
11539 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11540 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11541 (mac_ax_number_of_characters): Add externs.
11542 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11543 [USE_MAC_TSM]: Likewise.
11544 (mac_handle_text_input_event) [MAC_OSX]:
11545 Handle kEventTextInputOffsetToPos for no active input area case.
11546 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11547 (mac_handle_document_access_event)
11548 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11549 (install_application_handler) [MAC_OSX]: Register handlers for
11550 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11551 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11552 Register mac_handle_document_access_event.
11553
11554 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11555 Make functions non-static.
11556
115572008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11558
11559 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11560 (read_file_name_completion_ignore_case, insert_default_directory)
11561 (Qdefault_directory): Move to minibuffer.el.
11562 (Fread_file_name): Call the new `read-file-name' instead.
11563
115642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11565
11566 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11567 Make function non-static.
11568 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11569 Remove function.
11570 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11571 Move to mactoolbox.c.
11572 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11573
11574 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11575 (mac_rect_make): New macro.
11576
11577 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11578 instead of float.
11579 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11580 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11581 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11582 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11583 CGRectMake.
11584 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11585 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11586 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11587 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11588 instead of WindowRef in argument type.
11589 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11590 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11591 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11592 instead of DISPLAY. All uses changed.
11593 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11594 (x_calc_absolute_position): Simplify so as not to use
11595 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11596
11597 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11598 instead of WindowRef in argument type.
11599 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11600 [TARGET_API_MAC_CARBON]: Remove externs.
11601 (create_apple_event, mac_event_parameters_to_lisp)
11602 [TARGET_API_MAC_CARBON]: Add externs.
11603
11604 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11605 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11606 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11607 is clicked.
11608 (x_activate_menubar): Remove extern for saved_menu_event_location.
11609 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11610 Move from mac.c.
11611
116122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11613
11614 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11615 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11616
116172008-04-23 Jason Rumney <jasonr@gnu.org>
11618
11619 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11620 attributes only for local files.
11621
11622 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11623 default to Qlocal.
11624
116252008-04-22 Juri Linkov <juri@jurta.org>
11626
11627 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11628 read-buffer-to-switch instead of using the letter "B".
11629
116302008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11631
11632 * fileio.c (Qdefault_directory): New variable.
11633 (Fread_file_name): Use it to pass `dir' to the completion functions.
11634
116352008-04-20 Chong Yidong <cyd@stupidchicken.com>
11636
11637 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11638
116392008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11640
11641 * keyboard.c (Vpre_help_message): Remove.
11642 (show_help_echo): Remove default C code.
11643
11644 * dired.c (directory_files_internal, file_name_completion):
11645 Only call ENCODE_FILE if the string is indeed decoded.
11646
116472008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * Makefile.in (TOOLKIT_DEFINES): Remove.
11650 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11651
116522008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11653
11654 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11655 (mactoolbox.o): New target.
11656
11657 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11658 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11659
11660 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11661 Use mac_set_frame_window_background instead of XSetWindowBackground.
11662 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11663 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11664 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11665 instead of SetWindowTitleWithCFString.
11666 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11667 Move function to mactoolbox.c.
11668 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11669 Use mac_set_window_modified instead of SetWindowModified.
11670 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11671 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11672 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11673 FrontNonFloatingWindow. Use mac_activate_window instead of
11674 ActivateWindow. Use mac_active_non_floating_window instead of
11675 ActiveNonFloatingWindow.
11676 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11677 Use mac_show_hourglass and mac_hide_hourglass.
11678 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11679 instead of GetGlobalMouse.
11680 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11681 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11682 Use mac_bring_window_to_front instead of BringToFront.
11683 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11684 mactoolbox.c.
11685 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11686 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11687 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11688 mactoolbox.c.
11689
11690 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11691 (XtPointer): Move typedef from macmenu.c.
11692 (enum button_type): Move enum from macmenu.c.
11693 (widget_value): Move typedef from macmenu.c.
11694 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11695 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11696 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11697 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11698 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11699 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11700 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11701 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11702 (Selection): Move typedef from macselect.c.
11703 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11704 macterm.c.
11705 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11706 (mac_is_window_collapsed, mac_bring_window_to_front)
11707 (mac_send_window_behind, mac_hide_window, mac_show_window)
11708 (mac_collapse_window, mac_front_non_floating_window)
11709 (mac_active_non_floating_window, mac_activate_window)
11710 (mac_move_window_structure, mac_move_window, mac_size_window)
11711 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11712
11713 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11714 (enum mac_menu_kind): Move enum to mactoolbox.c.
11715 (min_menu_id): Move variable to mactoolbox.c.
11716 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11717 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11718 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11719 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11720 [TARGET_API_MAC_CARBON]: Likewise.
11721 (XtPointer): Move typedef to macgui.h.
11722 (enum button_type): Move enum to macgui.h.
11723 (widget_value): Move typedef to macgui.h.
11724 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11725 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11726 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11727 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11728 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11729 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11730 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11731 (popup_activated_flag): Make variable non-static.
11732 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11733 (add_menu_item, fill_menu, dispose_menus):
11734 Move functions to mactoolbox.c.
11735 (restore_show_help_function, menu_target_item_handler)
11736 (install_menu_target_item_handler, mac_handle_dialog_event)
11737 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11738 [TARGET_API_MAC_CARBON]: Likewise.
11739 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11740 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11741 (find_and_call_menu_selection, name_is_separator): Make function
11742 non-static.
11743 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11744 to mactoolbox.c.
11745 (set_frame_menubar): Don't call install_menu_quit_handler.
11746 (menu_item_selection): New variable.
11747 (mac_menu_show): Use create_and_show_popup_menu.
11748 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11749 selection but set variable menu_item_selection. All uses changed.
11750 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11751 Call install_menu_quit_handler. Move to mactoolbox.c.
11752
11753 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11754 (Selection): Move typedef to macgui.h.
11755 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11756 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11757 Make variables non-static.
11758 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11759 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11760 Make functions non-static.
11761 (Vmac_service_selection) [MAC_OSX]: Likewise.
11762 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11763 (mac_valid_selection_target_p, mac_clear_selection)
11764 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11765 (mac_put_selection_value, mac_selection_has_target_p)
11766 (mac_get_selection_value, mac_get_selection_target_list)
11767 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11768 Move functions to mactoolbox.c.
11769 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11770 Likewise.
11771 (copy_scrap_flavor_data, mac_handle_service_event)
11772 (install_service_handler) [MAC_OSX]: Likewise.
11773 (syms_of_macselect) <Vmac_dnd_known_types>:
11774 Use mac_dnd_default_known_types.
11775
11776 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11777 Move to mactoolbox.c.
11778 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11779 (Fx_selection_owner_p): Add EXFUN.
11780 (install_window_handler, remove_window_handler, XSetWindowBackground):
11781 Remove externs.
11782 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11783 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11784 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11785 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11786 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11787 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11788 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11789 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11790 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11791 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11792 (mac_valid_selection_target_p, mac_clear_selection)
11793 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11794 (mac_put_selection_value, mac_selection_has_target_p)
11795 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11796 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11797 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11798 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11799 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11800 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11801 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11802 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11803 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11804
11805 * mactoolbox.c: New file.
11806
118072008-04-18 Jason Rumney <jasonr@gnu.org>
11808
11809 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11810
118112008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11812
11813 * character.c (Fmultibyte_char_to_unibyte):
11814 Return latin1 chars unchanged.
11815
11816 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11817 relocated if it points to `name'.
11818
118192008-04-17 Kenichi Handa <handa@m17n.org>
11820
11821 * data.c (Faset): Allow setting a multibyte character in an
11822 ASCII-only unibyte string.
11823
11824 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11825
118262008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11827
11828 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11829 done in config.h.
11830
118312008-04-16 Juanma Barranquero <lekktu@gmail.com>
11832
11833 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11834 (Fchar_direction): Add usage in the docstring.
11835
118362008-04-15 Chong Yidong <cyd@stupidchicken.com>
11837
11838 * keyboard.c (read_key_sequence): Remove always-true checks.
11839
118402008-04-14 Jason Rumney <jasonr@gnu.org>
11841
11842 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11843 compatibility struct, for better underline positioning.
11844
118452008-04-13 David Hansen <david.hansen@gmx.net>
11846
11847 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11848 string.
11849
118502008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11851
11852 * m/hp800.h (XUINT, XSET): Remove.
11853
118542008-04-12 Juanma Barranquero <lekktu@gmail.com>
11855
11856 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11857 previous change.
11858
118592008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11860
11861 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11862 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11863
118642008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11865
11866 * keymap.h (map_keymap_canonical): Declare.
11867 * xmenu.c (single_keymap_panes): Use it.
11868
118692008-04-11 Glenn Morris <rgm@gnu.org>
11870
11871 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11872 set the target's value to that of the alias.
11873
118742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * term.c (set_tty_color_mode): Left over typo.
11877
118782008-04-10 Michael Albinus <michael.albinus@gmx.de>
11879
11880 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11881 only after check for file name handler functions. Signal, when
11882 native functionality is not supported.
11883 (syms_of_fileio): Declare it unconditionally.
11884
118852008-04-10 Jason Rumney <jasonr@gnu.org>
11886
11887 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11888 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11889
11890 * w32.c (logon_network_drive): Also logon to remote drives that
11891 are mapped to drive letters.
11892
118932008-04-10 Glenn Morris <rgm@gnu.org>
11894
11895 * xdisp.c (truncate-partial-width-windows): Doc fix.
11896
118972008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11900 Move functions to minibuffer.el.
11901 (syms_of_fileio): Don't declare them.
11902
119032008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11904
11905 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11906 (syms_of_minibuf): Remove its initialization.
11907
11908 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11909
119102008-04-09 Juanma Barranquero <lekktu@gmail.com>
11911
11912 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11913
119142008-04-09 Jason Rumney <jasonr@gnu.org>
11915
11916 * makefile.w32-in (distclean): Delete makefile too.
11917 (maintainer-clean): New target.
11918
11919 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11920
11921 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11922 for new font backend and composite cases.
11923
119242008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11925
11926 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11927 Most of the code moved to run_timers.
11928 (do_pending_atimers): Call run_timers.
11929 (run_timers): New function.
11930
11931 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11932 run atimers.
11933
11934 * process.c (wait_reading_process_output): The same as above.
11935
119362008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11937
11938 * minibuf.c (last_exact_completion): Remove variable.
11939 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11940 (complete_and_exit_1, complete_and_exit_2)
11941 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11942 (Fdisplay_completion_list, display_completion_list_1)
11943 (Fminibuffer_completion_help, Fself_insert_and_exit)
11944 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11945 minibuffer.el.
11946 (syms_of_minibuf): Remove corresponding initializations.
11947
11948 * keyboard.c (Qdeactivate_mark): New var.
11949 (command_loop_1): Use it to call `deactivate-mark'.
11950 (syms_of_keyboard): Initialize it.
11951
11952 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11953 to another frame.
11954 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11955 Don't call set_tty_color_mode.
11956 (store_frame_param): Reset previous_frame rather than call
11957 set_tty_color_mode.
11958 * term.c (set_tty_color_mode): Rewrite.
11959 * dispextern.h (set_tty_color_mode): New type.
11960 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11961
119622008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11963
11964 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11965 for generic chars, which do not exist any more in emacs-unicode.
11966
119672008-04-08 Michael Albinus <michael.albinus@gmx.de>
11968
11969 * coding.c (detect_coding_emacs_mule)
11970 (Ffind_operation_coding_system): Fix typo.
11971
119722008-04-08 Jason Rumney <jasonr@gnu.org>
11973
11974 * w32uniscribe.c (SNAME): Extract only symbol name.
11975
11976 * w32font.h (struct w32_metric_cache): New struct.
11977 (w32font_info): Use it.
11978 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11979 (CACHE_BLOCKSIZE): New constants.
11980
11981 * w32font.c (Qja, Qko, Qzh): New symbols.
11982 (syms_of_w32font): Initialise them.
11983 (font_matches_spec): Use them to filter by language.
11984 (recompute_cached_metrics): Remove function.
11985 (compute_metrics, clear_cached_metrics): New functions.
11986 (w32font_encode_char): Use them to manage metric cache.
11987 (w32font_text_extents): Cache metrics for all glyphs on demand.
11988 Delay converting glyph indices to WORD until needed.
11989 (w32font_open_internal): Initialize metric cache to empty.
11990 (registry_to_w32_charset): Charset should always be a symbol.
11991 (fill_in_logfont, list_all_matching_fonts): Family should
11992 always be a symbol.
11993
119942008-04-06 Jason Rumney <jasonr@gnu.org>
11995
11996 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11997 Give up if glyph indices not supported. Use uniscribe obtained
11998 ABC widths for individual metrics. Map glyph clusters back to
11999 characters using fClusterStart flag. Return number of glyphs
12000 produced, not chars processed.
12001 (uniscribe_shape): Map char at FROM to current glyph.
12002
120032008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12004
12005 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12006 Use SetMenuItemHierarchicalMenu.
12007
120082008-04-05 Jason Rumney <jasonr@gnu.org>
12009
12010 * image.c (pbm_load): Allow color values up to 65535.
12011 Throw an error if max_color_idx is outside the supported range.
12012 Report an error when image size is invalid.
12013 Read two bytes at a time when raw images have max_color_idx above 255.
12014
120152008-04-05 Eli Zaretskii <eliz@gnu.org>
12016
12017 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12018 cFileName a file name that includes `?' characters, use the 8+3
12019 alias in cAlternateFileName instead.
12020
120212008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12022
12023 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12024 append "CCL: Quitted" when the CCL program is quitted.
12025 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12026
12027 * ccl.h (struct ccl_program): New member quit_silently.
12028
120292008-04-05 Chong Yidong <cyd@stupidchicken.com>
12030
12031 * search.c (compile_pattern_1): Treat non-nil and non-string of
12032 search-spaces-regexp as nil.
12033
12034 * minibuf.c (Fassoc_string): Tweak docstring.
12035
120362008-04-05 Eli Zaretskii <eliz@gnu.org>
12037
12038 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12039 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12040 2008-03-14 to force inode be positive.
12041
12042 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12043 _S_* ones, since we now use our own sys/stat.h.
12044 (stat, fstat): Don't mangle the inode number.
12045 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12046
120472008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12048
12049 * frame.h (struct frame): Give one more bit to `visible' since we use
12050 values larger than 1 to indicate obscured frames on ttys.
12051
12052 * keymap.c (Qkeymap_canonicalize): New var.
12053 (Fmap_keymap_internal): New fun.
12054 (describe_map): Use keymap-canonicalize.
12055
12056 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12057 (Fundo_boundary): Set them.
12058 (syms_of_undo): Initialize them.
12059 (record_point): Use them instead of last_point_position*.
12060 (last_undo_buffer): Change type.
12061
120622008-04-04 Jason Rumney <jasonr@gnu.org>
12063
12064 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12065 (recompute_cached_metrics): Don't set ascent and descent per char.
12066
12067 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12068 (uniscribe_check_otf): Add GC protection before consing.
12069 Rearrange loop for counting features.
12070
120712008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12074 buffer with byte-size of source buffer.
12075
120762008-04-03 Chong Yidong <cyd@stupidchicken.com>
12077
12078 * callint.c (Fcall_interactively): Handle temporary region even
12079 when shift-select-mode is off.
12080
120812008-04-03 Jason Rumney <jasonr@gnu.org>
12082
12083 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12084
120852008-04-03 Kenichi Handa <handa@m17n.org>
12086
12087 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12088 (CATEGORY_MASK_UTF_16): Likewise.
12089 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12090 binary file.
12091 (detect_coding): Add null-byte detection for a binary file.
12092 (detect_coding_system): Likewise.
12093
120942008-04-03 Jason Rumney <jasonr@gnu.org>
12095
12096 * w32uniscribe.c: New file.
12097
12098 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12099
12100 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12101
12102 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12103 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12104 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12105 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12106 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12107 (Qphonetic): New symbols.
12108 (syms_of_w32font): Initialize them.
12109 (font_supported_scripts): Use them.
12110 (w32font_list_family): List all charsets.
12111 (w32font_text_extents, recompute_cached_metrics): Fix metric
12112 calculations.
12113 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12114 Give opentype fonts their own format.
12115 (font_matches_spec): New arguments backend and logfont.
12116 Handle :otf spec for uniscribe backend.
12117 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12118 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12119
12120 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12121 font backend.
12122 (globals_of_w32fns): Initialize uniscribe font backend.
12123
12124 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12125 dependencies.
12126 (w32uniscribe.$(O)): New file to build.
12127 (FONT_OBJ): Include w32uniscribe.$(O).
12128 (LIBS): Add uniscribe libraries.
12129
12130 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12131
121322008-04-02 Chong Yidong <cyd@stupidchicken.com>
12133
12134 * callint.c (Vshift_select_mode): New var.
12135 (Finteractive): Document new ^ spec.
12136 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12137 is present.
12138
12139 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12140 (command_loop_1): Avoid running the direct display versions of
12141 forward-char and backward-char if shift-selection may occur.
12142 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12143 shift-translation takes place.
12144
12145 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12146 avoid clobbering by define-minor-mode.
12147
12148 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12149 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12150
12151 * syntax.c (Fforward_word): Add ^ interactive spec.
12152
12153 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12154 (Fscroll_right): Add ^ interactive spec.
12155
121562008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12159
12160 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12161
12162 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12163
121642008-03-31 Juri Linkov <juri@jurta.org>
12165
12166 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12167
121682008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12169
12170 * gtkutil.c (xg_set_geometry): Fix indentation.
12171 (xg_resize_outer_widget): Remove.
12172 (x_wm_size_hint_off): Fix indentation.
12173 (xg_frame_set_char_size): Call flush_and_sync after
12174 gtk_window_resize.
12175 (x_wm_set_size_hint): Pass NULL as geometry window to
12176 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12177 Add menu bar and tool bar height to base height.
12178 (xg_update_frame_menubar, free_frame_menubar)
12179 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12180 (update_frame_tool_bar, free_frame_tool_bar):
12181 Change xg_resize_outer_widget to xg_frame_set_char_size.
12182
121832008-03-30 Michael Albinus <michael.albinus@gmx.de>
12184
12185 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12186 (Fdbus_call_method): New parameter TIMEOUT.
12187 (dbus-send-signal): Optimize UNGCPRO call.
12188
121892008-03-29 Juri Linkov <juri@jurta.org>
12190
12191 * window.c (Fdisplay_buffer): Move call to
12192 Vsplit_window_preferred_function out of conditions that check
12193 if window is eligible for vertical splitting.
12194 When Vsplit_window_preferred_function is non-nil, call it and use
12195 its non-nil return value as window. Otherwise, continue doing
12196 vertical splitting using Fsplit_window with arg horflag=nil.
12197 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12198 default value from `split-window' to nil.
12199
122002008-03-29 Juri Linkov <juri@jurta.org>
12201
12202 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12203 for interactive code letters 'b' and 'B'.
12204
122052008-03-29 Eli Zaretskii <eliz@gnu.org>
12206
12207 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12208 multibyte string.
12209
122102008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12211
12212 * keyboard.c (pending_funcalls): New var.
12213 (timer_check): Run it.
12214 (syms_of_keyboard): Initialize it.
12215 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12216 (Vdelete_terminal_functions): New vars.
12217 (syms_of_terminal): Initialize them.
12218 (Fdelete_terminal): Run delete-terminal-functions.
12219 * xdisp.c (safe_eval): Rewrite.
12220 (safe_call2): New fun.
12221 * frame.c (Qdelete_frame_functions): New var.
12222 (syms_of_frame): Initialize it.
12223 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12224 * lisp.h (safe_call2, pending_funcalls): Declare.
12225
122262008-03-28 Andreas Schwab <schwab@suse.de>
12227
12228 * indent.c (Fmove_to_column): Move declaration before statements.
12229
122302008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12233 (struct frame): Use bit fields for boolean vars.
12234
12235 * process.c (server_accept_connection): Simplify naming.
12236 (emacs_get_tty_pgrp): Use SDATA.
12237
12238 * coding.c (decode_coding_object): Fix last change.
12239
122402008-03-27 Jason Rumney <jasonr@gnu.org>
12241
12242 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12243
122442008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12245
12246 * charset.c (Fdefine_charset_internal): Change the way of
12247 registering charsets in Vcharset_order_list.
12248 (syms_of_charset): Make the charset `eight-bit' supplementary.
12249
122502008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12251
12252 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12253 operations, to avoid having the difference between pointers
12254 overflow.
12255
122562008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12257
12258 * indent.c (check_display_width): New fun.
12259 (scan_for_column): Use it.
12260
12261 * data.c (syms_of_data): Mark most-positive-fixnum and
12262 most-negative-fixnum as constants.
12263
12264 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12265
12266 * indent.c (scan_for_column): Extract from current_column_1.
12267 Merge with the same code from Fmove_to_column.
12268 (current_column_1, Fmove_to_column): Use it.
12269
122702008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12271
12272 * keymap.c (map_keymap_internal): New fun.
12273 (map_keymap): Use it.
12274 (Fmap_keymap_internal): New fun.
12275 (Fmap_keymap): Remove left-out test from before make_save_value.
12276
12277 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12278
12279 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12280 Use XCAR/XCDR.
12281
12282 * process.h (struct Lisp_Process): Remove filter_multibyte.
12283 * process.c (QCfilter_multibyte): Remove.
12284 (setup_process_coding_systems): Don't use filter_multibyte.
12285 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12286 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12287 (Fset_process_filter_multibyte): Change the coding-system to
12288 approximate the previous behavior.
12289 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12290 coding-system.
12291
12292 * coding.c (decode_coding_object): When not decoding into a buffer,
12293 obey the coding system's preference of (uni|multi)byte.
12294
122952008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12296
12297 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12298 every char is changed and has a different byte-length.
12299 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12300 Fix int -> EMACS_INT.
12301
123022008-03-23 David Hansen <david.hansen@gmx.net>
12303
12304 * dbusbind.c (xd_read_message): Remove extra copying of message
12305 strings. Check for NULL `interface' or `member'.
12306
123072008-03-22 Eli Zaretskii <eliz@gnu.org>
12308
12309 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12310 cFileName a file name that includes `?' characters, use the 8+3
12311 alias in cAlternateFileName instead.
12312
123132008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12314
12315 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12316
123172008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12318
12319 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12320 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12321 work on current_buffer only instead (that was already the case
12322 for some of the code anyway).
12323 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12324 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12325 (SET_PT, SET_PT_BOTH): Adjust.
12326 * intervals.h (set_point, temp_set_point, set_point_both)
12327 (temp_set_point_both): Remove redundant declarations.
12328
123292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12330
12331 * fileio.c (Finsert_file_contents):
12332 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12333 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12334 when buffer != current_buffer anyway.
12335
123362008-03-20 Andreas Schwab <schwab@suse.de>
12337
12338 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12339 as default.
12340
123412008-03-19 Jason Rumney <jasonr@gnu.org>
12342
12343 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12344 (syms_of_w32fns): Initialize them.
12345 (HOURGLASS_ID): New constant.
12346 (x_window_to_frame): Don't check hourglass_window.
12347 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12348 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12349 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12350 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12351 Only change the cursor if hourglass is not active.
12352 (Fx_create_frame): Initialize frame's current_cursor.
12353 (hourglass_atimer): Remove.
12354 (hourglass_started): New function.
12355 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12356 (show_hourglass): Adapt to w32, changing argument to frame.
12357
12358 * w32term.h (struct w32_output): Remove hourglass_window.
12359 Add current_cursor.
12360
12361 * eval.c (call_debugger, Fsignal):
12362 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12363 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12364 (Fexecute_extended_command, cancel_hourglass_unwind):
12365 * minibuf.c (read_minibuf):
12366 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12367
123682008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12369
12370 * window.c (run_funs): New fun.
12371 (run_window_configuration_change_hook): Use it to run the buffer-local
12372 and the global part of the hook.
12373
12374 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12375 (unwind_format_mode_line): Restore selected window.
12376 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12377
123782008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12379
12380 * editfns.c (Fchar_equal): Check they are valid characters.
12381
12382 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12383
123842008-03-17 Andreas Schwab <schwab@suse.de>
12385
12386 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12387 against a charset.
12388
12389 * lisp.h (Fbuffer_list): Declare.
12390
123912008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12392
aac0c6e3
MR
12393 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12394 handlebox_widget is != 0.
12395
123962008-03-16 Juri Linkov <juri@jurta.org>
12397
12398 * callint.c (Fcall_interactively): For interactive code letters
12399 'b' and 'B' put the buffer list into the list of default "future"
12400 values of the minibuffer.
12401
124022008-03-16 Andreas Schwab <schwab@suse.de>
12403
12404 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12405 modifiers.
12406
12407 * regex.c (re_match_2_internal): Correct matching of a charset
12408 against latin-1 characters.
12409
124102008-03-16 Kenichi Handa <handa@m17n.org>
12411
12412 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12413 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12414 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12415 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12416 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12417 CHAR_STRING_ADVANCE.
12418 (produce_chars): Fix for the case that the source and the
12419 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12420 instead of CHAR_STRING_ADVANCE.
12421 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12422 STRING_CHAR_ADVANCE.
12423
124242008-03-15 Andreas Schwab <schwab@suse.de>
12425
12426 * regex.c (re_match_2_internal): Correct matching of eight bit
12427 characters in unibyte strings.
12428
124292008-03-15 Martin Rudalics <rudalics@gmx.at>
12430
12431 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12432 at end of range when it coincides with the end of the buffer.
12433
124342008-03-14 Eli Zaretskii <eliz@gnu.org>
12435
12436 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12437
12438 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12439
124402008-03-14 Jason Rumney <jasonr@gnu.org>
12441
12442 * editfns.c (initial_tz): New variable.
12443 (syms_of_editfns): Initialize it.
12444 (Fset_time_zone_rule): Set it when first called.
12445 Use it when TZSTRING is nil.
12446
12447 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12448 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12449 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12450 (globals_of_w32fns): Initialize them.
12451 (compute_tip_xy): Use them to position tooltips.
12452
124532008-03-14 Glenn Morris <rgm@gnu.org>
12454
12455 * emacs.c (main): Revert previous change.
12456 (standard_args): Revert -internal-script back to -scriptload,
12457 and remove the long-option form.
12458
124592008-03-13 Glenn Morris <rgm@gnu.org>
12460
12461 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12462 Remove option -enable-font-backend.
12463
124642008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12465
12466 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12467
124682008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12469
12470 * xterm.c (x_connection_closed): For GTK: If this is the last
12471 terminal just exit without closing the display.
12472
124732008-03-11 Jason Rumney <jasonr@gnu.org>
12474
12475 * w32font.c (w32font_full_name): Use floor to round.
12476
f0131492 124772008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12478
12479 * sound.c (alsa_configure): Declare vol at beginning of block.
12480
12481 * fontset.c (Ffontset_info): Remove extra semicolon.
12482
124832008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12484
12485 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12486 size of resulting string.
12487
124882008-03-10 Jason Rumney <jasonr@gnu.org>
12489
12490 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12491
124922008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12493
12494 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12495 Don't pretend as if characters with display property haven't been
12496 consumed for string-replacing-string case.
12497
124982008-03-08 Kim F. Storm <storm@cua.dk>
12499
12500 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12501 (get_next_display_element, next_element_from_string)
12502 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12503
125042008-03-08 Andreas Schwab <schwab@suse.de>
12505
12506 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12507
125082008-03-06 Jason Rumney <jasonr@gnu.org>
12509
12510 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12511 when charset not specified. Only translate ANSI to unicode when
12512 font_type is truetype.
12513 (w32font_coverage_ok): New function.
12514 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12515
125162008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12517
12518 * lread.c (Fread_char): Resolve modifiers.
12519 (Fread_char_exclusive): Likewise.
12520
12521 * character.c (char_resolve_modifier_mask): New function.
12522 (char_string): Use char_resolve_modifier_mask.
12523 (Fchar_resolve_modifiers): New function.
12524 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12525 function.
12526
125272008-03-04 Jason Rumney <jasonr@gnu.org>
12528
12529 * makefile.w32-in: Always include w32font.c in the build.
12530 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12531
125322008-03-04 Andreas Schwab <schwab@suse.de>
12533
12534 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12535 (versionclean): Likewise.
12536
125372008-03-04 Juanma Barranquero <lekktu@gmail.com>
12538
12539 * .cvsignore: Add oo.
12540
125412008-03-03 Andreas Schwab <schwab@suse.de>
12542
12543 * coding.c (decode_coding_object): Inhibit gap shrinking while
12544 decoding in place.
12545
125462008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12547
12548 * w32term.c: Remove unused include "gnu.h".
12549 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12550
12551 * gnu.h: Rename to ...
12552 * emacs-icon.h: ... this.
12553 * xterm.c: Use emacs-icon.h instead of gnu.h.
12554 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12555
125562008-03-03 Juanma Barranquero <lekktu@gmail.com>
12557
12558 * w32font.c: Include math.h.
12559
125602008-03-03 Jason Rumney <jasonr@gnu.org>
12561
12562 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12563 Compute options separately.
12564 (w32font_open_internal): Set glyph_idx before caching metrics.
12565
12566 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12567 Define if system headers don't.
12568 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12569 (w32font_encode_char): Don't declare here.
12570
12571 * w32font.c (Quniscribe, QCformat): New symbols.
12572 (syms_of_w32font): Define them.
12573 (w32font_has_char): Indicate uncertainty.
12574 (w32font_encode_char): Encode as glyph point. Make static.
12575 (recompute_cached_metrics): New function.
12576 (w32font_open_internal): Use it. Set font to use glyph points
12577 initially. Set format based on type of font.
12578 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12579 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12580 on it. Set format based on information available here.
12581 (add_font_entity_to_list): Identify backend based on opentype_only.
12582
125832008-03-02 Andreas Schwab <schwab@suse.de>
12584
12585 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12586
12587 * coding.c (decode_coding_big5, produce_chars):
12588 Fix typos in last change.
12589
125902008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12591
12592 * gnu.h: New icon.
12593
125942008-03-02 Kenichi Handa <handa@m17n.org>
12595
12596 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12597 `dos', don't decode '\r' if that is the last in the source.
12598 (decode_coding_utf_16, decode_coding_emacs_mule)
12599 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12600 (decode_coding_raw_text, decode_coding_charset): Likewise.
12601 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12602
126032008-03-01 Jason Rumney <jasonr@gnu.org>
12604
12605 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12606
126072008-03-01 Kim F. Storm <storm@cua.dk>
12608
12609 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12610
126112008-03-01 Jason Rumney <jasonr@gnu.org>
12612
12613 * w32font.c (w32font_full_name): New function.
12614 (w32font_open_internal): Use it.
12615
126162008-03-01 Kim F. Storm <storm@cua.dk>
12617
12618 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12619
126202008-03-01 Jason Rumney <jasonr@gnu.org>
12621
12622 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12623
126242008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12625
12626 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12627 xg_frame_resized when the event is for the edit widget.
12628
12629 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12630
12631 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12632 set_char_size.
12633 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12634 operations on widgets here. Just set frame size if needed.
12635 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12636 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12637 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12638 the whole frame.
12639 (xg_create_tool_bar): Move attachment of the tool bar to
12640 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12641 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12642
126432008-03-01 Jason Rumney <jasonr@gnu.org>
12644
12645 * w32fns.c (w32_msg_pump): Disable debug code.
12646
126472008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12648
12649 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12650
126512008-02-29 Chong Yidong <cyd@stupidchicken.com>
12652
12653 * xdisp.c (next_overlay_string): Don't set
12654 overlay_strings_at_end_processed_p if we're currently reading from
12655 a display string.
12656
126572008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12658
12659 * xdisp.c (get_overlay_strings_1): Fix typo.
12660
126612008-02-29 Chong Yidong <cyd@stupidchicken.com>
12662
12663 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12664
126652008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12666
12667 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12668
12669 * xdisp.c (display_mode_element): Cancel the previous change.
12670 (decode_mode_spec): Likewise.
12671 (handle_auto_composed_prop): Don't make composition if it->string
12672 is a string.
12673
126742008-02-27 Kim F. Storm <storm@cua.dk>
12675
12676 * lisp.h (GLYPH): Change type from int to struct with separate char
12677 and face_id members.
12678 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12679 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12680 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12681 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12682 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12683 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12684 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12685 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12686 handle new Lisp glyph code encoding, either an integer or a cons.
12687
12688 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12689 (GLYPH_ALIAS): Delete.
12690 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12691 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12692 (GLYPH_FROM_CHAR): Replace macro by ...
12693 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12694
12695 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12696 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12697 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12698 (GLYPH_INVALID_P): New macro.
12699 (spec_glyph_lookup_face): Update prototype.
12700
12701 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12702 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12703 new glyph code encoding.
12704 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12705 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12706
12707 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12708 Adapt to new glyph type and new glyph code encoding.
12709
12710 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12711
12712 * indent.c (current_column, current_column_1, Fmove_to_column)
12713 (compute_motion): Adapt to new glyph code encoding.
12714
12715 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12716
127172008-02-27 Chong Yidong <cyd@stupidchicken.com>
12718
12719 * process.c (wait_reading_process_output): Check for window
12720 changes caused by timers.
12721 Suggested by Johan Bockgård.
12722
127232008-02-27 Glenn Morris <rgm@gnu.org>
12724
12725 * emacs.c (USAGE1): Add `--disable-font-backend'.
12726
127272008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12730 is made to the buffer.
12731
127322008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12733
12734 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12735 (face_at_string_position):
12736 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12737 (face_at_string_position):
12738 * xdisp.c (display_string, next_overlay_change):
12739 * buffer.h (overlays_at):
12740 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12741 Update callers.
12742
127432008-02-26 Chong Yidong <cyd@stupidchicken.com>
12744
12745 * editfns.c (Fformat): Doc fix.
12746
127472008-02-26 Juanma Barranquero <lekktu@gmail.com>
12748
12749 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12750 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12751 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12752
127532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12754
12755 * buffer.c (Fbuffer_swap_text): New function.
12756 (syms_of_buffer): Defsubr it.
12757
127582008-02-25 Chong Yidong <cyd@stupidchicken.com>
12759
12760 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12761
127622008-02-25 Jason Rumney <jasonr@gnu.org>
12763
12764 * w32font.c (w32font_draw): Draw one character at a time when padding.
12765
127662008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12767
12768 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12769 Handle a nil arg. Use run_window_configuration_change_hook.
12770 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12771 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12772 Use run_window_configuration_change_hook.
12773
127742008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12775
12776 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12777 1-pixel width.
12778
127792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12780
12781 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12782 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12783 if the glyph in the font is zero pixel with.
12784
12785 * dispextern.h (struct glyph_string): New member padding_p.
12786
12787 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12788
12789 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12790
12791 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12792
12793 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12794
12795 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12796
127972008-02-25 Jason Rumney <jasonr@gnu.org>
12798
12799 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12800
128012008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12802
12803 Allow fine-grained image-cache flushing.
12804 * dispextern.h (struct image): Add `dependencies' field.
12805 (clear_image_caches): Change arg to Lisp_Object.
12806 * image.c (make_image): Initialize `dependencies' field.
12807 (clear_image_cache): Change arg to allow fine-grained flushing.
12808 Perform the flush even if image-cache-eviction-delay is nil.
12809 (clear_image_caches): Change arg to Lisp_Object.
12810 (Fclear_image_cache): Expand meaning of the argument.
12811 (mark_image): Mark `dependencies' field.
12812 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12813 (lface_hash): Use XHASH rather than XFASTINT.
12814 (face_at_buffer_position): Fix int -> EMACS_INT position.
12815 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12816 (select_frame_for_redisplay): Remove code duplication.
12817 (redisplay_internal): Adapt arg to call to clear_image_caches.
12818
128192008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12820
12821 * s/vms4-0.h:
12822 * s/vms4-2.h:
12823 * s/vms4-4.h:
12824 * s/vms5-5.h: Remove, unused.
12825
12826 * s/irix5-2.h:
12827 * s/irix6-0.h:
12828 * s/riscos5.h:
12829 * s/mach-bsd4-3.h:
12830 * m/mips4.h: Remove files for obsolete systems.
12831
12832 * Makefile.in:
12833 * filelock.c:
12834 * unexmips.c:
12835 * m/hp9000s300.h:
12836 * m/iris4d.h:
12837 * s/aix3-1.h:
12838 * s/hpux.h:
12839 * s/msdos.h:
12840 * s/usg5-0.h:
12841 * s/usg5-2-2.h:
12842 * s/usg5-2.h:
12843 * s/usg5-3.h: Remove references to obsolete variables.
12844
12845 * s/irix5-0.h: Remove, move all the contents ...
12846 * s/irix6-5.h: ... here. Simplify.
12847 * config.in: Regenerate.
12848
128492008-02-24 Jason Rumney <jasonr@gnu.org>
12850
12851 * w32term.c (x_draw_glyph_string_background): Clear the background
12852 manually when cleartype is in use.
12853 (x_draw_glyph_string_foreground): Draw text transparently when
12854 cleartype is in use.
12855
12856 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12857 a font into it unless we have to.
12858
128592008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12860
12861 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12862 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12863
aac0c6e3
MR
128642008-02-18 Jason Rumney <jasonr@gnu.org>
12865
12866 * w32fns.c (Fw32_shell_execute): Encode parameters.
12867
128682008-02-09 Eli Zaretskii <eliz@gnu.org>
12869
12870 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12871
128722008-02-05 Juanma Barranquero <lekktu@gmail.com>
12873
12874 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12875
128762008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12877
12878 * xterm.c (x_set_offset): Don't change the gravity if
12879 CHANGE_GRAVITY is -1.
12880
128812008-02-23 Chong Yidong <cyd@stupidchicken.com>
12882
12883 * fileio.c (auto_save_error_occurred): New var.
12884 (auto_save_error): Set it.
12885 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12886 error occurred.
12887
128882008-02-23 Eli Zaretskii <eliz@gnu.org>
12889
12890 * w32.c (globals_of_w32): Add initializations for
12891 g_b_init_get_sid_sub_authority and
12892 g_b_init_get_sid_sub_authority_count.
12893
128942008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12895
12896 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12897 (font_parse_xlfd): Use them for sanity check.
12898 (Finternal_set_font_style_table): Make sure the table is bijective.
12899
12900 Consolidate the image_cache to the terminal struct.
12901 * termhooks.h (P_): Remove redundant def.
12902 (struct terminal): New field `image_cache'.
12903 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12904 of FRAME_X_IMAGE_CACHE.
12905 * xterm.h (struct x_display_info): Remove image_cache field.
12906 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12907 * w32term.h (struct w32_display_info): Remove image_cache field.
12908 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12909 * macterm.h (struct mac_display_info): Remove image_cache field.
12910 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12911 * xterm.c (x_term_init):
12912 * w32term.c (w32_term_init):
12913 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12914 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12915 Remove declarations.
12916 (clear_image_caches, mark_image_cache): New declarations.
12917 * xfaces.c (clear_face_cache):
12918 * xdisp.c (redisplay_internal): Use clear_image_caches.
12919 * image.c (clear_image_cache): Don't check that a frame is on
12920 a window-system before checking if it shares the same cache.
12921 (clear_image_caches): New function.
12922 (Fclear_image_cache): Use it.
12923 (mark_image): Move from allo.c.
12924 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12925 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12926 (mark_object): Don't call mark_image_cache for frames.
12927 (mark_terminals): Call mark_image_cache.
12928
12929 * lisp.h (Fdelete_terminal): Declare.
12930
12931 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12932 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12933 wrong_type_argument.
12934
129352008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12936
12937 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12938 malayalam.el, and tamil.el. Add sinhala.el.
12939
129402008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12941
12942 * xterm.c (x_connection_closed): Consolidate identical tests.
12943 (x_delete_terminal): Don't crash if called via x_connection_closed.
12944
129452008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12946
12947 * xdisp.c (decode_mode_spec): New arg string.
12948 (display_mode_element): Adjust for the above change.
12949
129502008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12951
12952 * callint.c (Fcall_interactively): Use AREF.
12953
129542008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12955
12956 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12957
129582008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12959
12960 * xfns.c (Fx_show_tip): Set string to " " if empty.
12961
129622008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12963
12964 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12965 with Qt.
12966
129672008-02-17 Kenichi Handa <handa@m17n.org>
12968
12969 * ftfont.c (ftfont_shape): Return Lispy number.
12970
12971 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12972 for GCs.
12973 (Finternal_set_font_selection_order): Call font_update_sort_order
12974 only when enable_font_backend is set.
12975 (realize_x_face): Set face->font_info to that of default face only
12976 when enable_font_backend is set.
12977
12978 * xdisp.c (handle_composition_prop): Set it->c to the fist
12979 character of the composed region.
12980 (fill_composite_glyph_string): Set base_face->font_info to
12981 s->font_info. Get a face for ascii from base_face->ascii_face.
12982 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12983 with a face already decided.
12984 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12985 non-negative.
12986 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12987 call font_prepare_composition unconditionally.
12988
12989 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12990
12991 * xterm.h (struct x_display_info): New member font.
12992
12993 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12994 (x_set_mouse_face_gc, x_new_font): Likewise.
12995 (x_term_init): Setup display_info->font.
12996 (x_delete_terminal): Free display_info->font.
12997
12998 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12999
13000 * ftxfont.c (ftxfont_default_fid): Delete it.
13001 (ftxfont_open): Set xfont->fid to 0.
13002 (ftxfont_end_for_frame): Clear data specific to the frame and the
13003 font-driver.
13004
13005 * xftfont.c (xftfont_default_fid): Delete it.
13006 (xftfont_open): Set xfont->fid to 0.
13007
13008 * fontset.c (FONTSET_OBJLIST): New macro.
13009 (fontset_find_font): Update font-object list of the fontset.
13010 (free_realized_fontset): New function.
13011 (free_face_fontset): Call free_realized_fontset.
13012 (Ffont_info): Call font_close_object only when enable_font_backend
13013 is set.
13014
13015 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13016 [HAVE_NTGUI]: Include w32term.h.
13017 [MAC_OS]: Include macterm.ch.
13018 (font_otf_ValueRecord): Use make_number.
13019 (font_finish_cache): Fix handling of reference count.
13020 (font_clear_cache): Update num_fonts.
13021 (font_open_entity): Update smallest_char_width and
13022 smallest_font_height of the frame.
13023 (font_close_object): Update num_fonts.
13024 (Fclear_font_cache): Fix finding the target cache data.
13025
130262008-02-16 Glenn Morris <rgm@gnu.org>
13027
13028 * fontset.c (Finternal_char_font): Fix compilation warning.
13029
130302008-02-16 Eli Zaretskii <eliz@gnu.org>
13031
13032 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13033 instead of char arrays. Enlarge the size of array passed to
13034 get_token_information.
13035
13036 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13037 warnings.
13038
130392008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13040
13041 * .gdbinit: Don't set `args', it breaks gdb --args.
13042
130432008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13044
13045 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13046 within a narrowed buffer.
13047
130482008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13049
13050 * coding.c (decode_coding_object, encode_coding_object):
13051 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13052
130532008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13054
13055 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13056 hardcoding 1.
13057 (detect_coding_system):
13058 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13059 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13060 * insdel.c (insert_from_gap):
13061 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13062 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13063 (string_to_multibyte):
13064 * character.c (chars_in_text, multibyte_chars_in_text):
13065 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13066
13067 * character.h (FETCH_STRING_CHAR_ADVANCE)
13068 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13069 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13070 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13071
13072 * casefiddle.c (casify_region): Only call after-change and composition
13073 functions on the part of the region that was changed.
13074
13075 * keyboard.c (read_avail_input):
13076 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13077
130782008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13079
13080 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13081 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13082
130832008-02-11 Juanma Barranquero <lekktu@gmail.com>
13084
13085 * w32menu.c (push_submenu_start, push_submenu_end)
13086 (push_left_right_boundary, push_menu_pane, push_menu_item):
13087 * keyboard.c (read_key_sequence): Don't pass args with side effects
13088 to AREF, it fails when compiling with -DENABLE_CHECKING.
13089
130902008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13091
13092 * Makefile.in (${lispsource}international/charprop.el):
13093 Delete this target.
13094
13095 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13096 emacs-unicode-2.
13097
130982008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13099
13100 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13101
131022008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13103
13104 * frame.c (Qnoelisp): New symbol.
13105 (syms_of_frame): Initialize it.
13106 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13107 harmless Elisp code, from a strong `force' from x_connection_closed.
13108 * frame.h (Qnoelisp): Declare.
13109 * xterm.c (x_connection_closed): Pass `noelisp'.
13110
13111 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13112 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13113 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13114 rather than `int' for the type of `type'.
13115
131162008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13117
13118 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13119
13120 * Makefile.in (GNUC): Remove support for gcc-1.x.
13121
131222008-02-10 Richard Stallman <rms@gnu.org>
13123
13124 * lisp.h (ASET): Use AREF, not ASLOT.
13125
131262008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13127
13128 * lisp.h (ASET): Check bounds.
13129
131302008-02-10 Glenn Morris <rgm@gnu.org>
13131
13132 * buffer.c (mode-name): Doc fix.
13133
131342008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13135
13136 * Makefile.in:
13137 * emacs.c:
13138 * gmalloc.c:
13139 * keyboard.c:
13140 * lisp.h:
13141 * m/ibm370aix.h:
13142 * process.c:
13143 * regex.c:
13144 * s/hpux.h:
13145 * sysdep.c:
13146 * sysselect.h:
13147 * systty.h:
13148 * unexec.c:
13149 * w32term.c:
13150 * xsmfns.c:
13151 * xterm.c: Remove code that deals with obsolete variables.
13152
13153 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13154
13155 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13156 nothing else needs it anymore.
13157
131582008-02-09 Eli Zaretskii <eliz@gnu.org>
13159
13160 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13161 instead of unibyte_char_to_multibyte.
13162
131632008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13164
13165 * s/gnu-linux.h: Remove commented out code.
13166
13167 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13168
13169 * Makefile.in: Update what RMS says about using autoconf.
13170 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13171 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13172 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13173 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13174
131752008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * keymap.c (Fkey_description): Move side effect outside of macro call.
13178
13179 * xfaces.c (Finternal_make_lisp_face):
13180 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13181
13182 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13183 (syms_of_fontset): Use ASET.
13184
13185 * fns.c (concat): Move side effect outside of macro call.
13186 (hash_clear): Use ASET.
13187
131882008-02-08 Richard Stallman <rms@gnu.org>
13189
13190 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13191 If FORCE, and frame has a surrogate minibuffer for another frame,
13192 delete the other frame first.
13193
131942008-02-07 Timo Savola <timo.savola@iki.fi>
13195
13196 * xterm.c (x_detect_focus_change): Handle embed client message.
13197 (handle_one_xevent): Ditto.
13198 (handle_one_xevent): If embedded and we get a button press/release,
13199 request focus.
13200 (xembed_set_info, xembed_send_message): New functions.
13201 (x_make_frame_visible): Call xembed_set_info if embedded.
13202 (x_make_frame_invisible): Call xembed_set_info if embedded.
13203 (x_term_init): Initialize Xatom_XEMBED.
13204 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13205 (x_iconify_frame): Ditto.
13206
13207 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13208 (enum xembed_info, enum xembed_message, enum xembed_focus)
13209 (enum xembed_modifier, enum xembed_accelerator): New.
13210 (xembed_set_info, xembed_send_message): Declare.
13211 (FRAME_X_EMBEDDED_P): New.
13212
13213 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13214 gtk_plug_new.
13215
13216 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13217 window ID of a frame.
13218 (x_window): Reparent frame if embedded.
13219 (Fx_create_frame): Don't set border width if embedded.
13220
13221 * emacs.c (USAGE3): Add --parent-id.
13222 (standard_args): Ditto.
13223
132242008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13225
13226 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13227
132282008-02-07 Jim Meyering <meyering@redhat.com>
13229
13230 Use "do...while (0)", not "if (1)...else" in macro definitions.
13231 The latter provokes a warning from gcc about the empty else, when
13232 followed by ";". Also, without that trailing semicolon, it would
13233 silently swallow up any following statement.
13234 * syntax.h (SETUP_SYNTAX_TABLE)
13235 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13236 * buffer.h (DECODE_POSITION): Likewise.
13237 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13238 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13239 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13240 (FETCH_CHAR_ADVANCE): Likewise.
13241 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13242
132432008-02-07 Jim Meyering <meyering@redhat.com>
13244
13245 * lread.c [lint]: Don't include <sys/inode.h>.
13246
132472008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13248
13249 * xselect.c (x_handle_dnd_message):
13250 * xmenu.c (digest_single_submenu, xmenu_show):
13251 * xdisp.c (with_echo_area_buffer_unwind_data)
13252 (format_mode_line_unwind_data, unwind_format_mode_line)
13253 (display_menu_bar):
13254 * eval.c (Ffetch_bytecode):
13255 * doc.c (store_function_docstring):
13256 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13257 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13258 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13259
132602008-02-07 Kenichi Handa <handa@m17n.org>
13261
13262 * ftxfont.c (ftxfont_open): Don't set
13263 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13264
13265 * ftfont.c (ftfont_open): Fix previous change.
13266
132672008-02-06 Jason Rumney <jasonr@gnu.org>
13268
13269 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13270 Use cached metrics for ASCII characters.
13271 (w32font_open_internal): Don't set font's owning_frame.
13272 Cache metrics for ASCII characters.
13273
13274 * w32font.h (struct w32font_info): Add ascii_metrics.
13275 Remove owning_frame.
13276
132772008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13278
13279 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13280 to negative value.
13281
13282 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13283
13284 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13285
13286 * charset.c (syms_of_charset): Set QCtest and Qeq.
13287
132882008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13289
13290 * process.c (Fstart_process):
13291 * callproc.c (Fcall_process): Handle the case where
13292 Funhandled_file_name_directory returns nil.
13293
13294 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13295 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13296 * font.c (check_gstring): Use them and AREF to access the vector before
13297 we know it's really a gstring.
13298 (Ffont_shape_text): Fix typo.
46e722a9 13299 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13300
13301 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13302 Declare.
13303
13304 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13305
133062008-02-05 Jason Rumney <jasonr@gnu.org>
13307
13308 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13309 Set smallest_font_height and smallest_char_width in display info.
13310
133112008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13312
13313 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13314
133152008-02-05 Miles Bader <miles@gnu.org>
13316
13317 * xfaces.c (get_lface_attributes, merge_named_face)
13318 (lookup_named_face, lookup_derived_face, realize_named_face):
13319 Revert 2008-02-01 change by cyd@stupidchicken.com.
13320
133212008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13322
13323 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13324 fallback fonts.
13325 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13326
133272008-02-04 Jason Rumney <jasonr@gnu.org>
13328
13329 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13330 set full_name.
13331 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13332
133332008-02-03 Jason Rumney <jasonr@gnu.org>
13334
13335 * makefile.w32-in (OBJ1): Include font.o here.
13336 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13337
133382008-02-02 Jason Rumney <jasonr@gnu.org>
13339
13340 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13341
133422008-02-01 Jason Rumney <jasonr@gnu.org>
13343
13344 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13345
13346 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13347
133482008-02-01 Andreas Schwab <schwab@suse.de>
13349
13350 * Makefile.in (shortlisp, lisp): Update for rename of
13351 ../lisp/language/myanmar.el.
13352
133532008-02-01 Chong Yidong <cyd@stupidchicken.com>
13354
13355 * xfaces.c (get_lface_attributes): Delete function.
13356 (merge_named_face, lookup_named_face, lookup_derived_face)
13357 (realize_named_face): Call lface_from_face_name directly, and use
13358 the fact that merge_face_vectors does not alter its FROM argument.
13359
133602008-02-01 Jason Rumney <jasonr@gnu.org>
13361
13362 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13363 input in the default locale. Handle non-Unicode multibyte input.
13364
133652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13366
13367 * fontset.c (reorder_font_vector): Exclude nil elements from the
13368 font group. Don't try multiple fonts.
13369 (fontset_font): Adjust for the above change.
13370 (Finternal_char_font): Return nil if the found font doesn't
13371 contain the character ch.
13372
13373 * Makefile.in (lisp, shortlisp): Add cham.el.
13374
133752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13376
13377 * font.h (FONTP): Make it return 1 also for a font-object.
13378
13379 * .gdbinit (xfontset): New function.
13380
13381 * font.c (font_find_for_lface): Check if the character C is
13382 supported or not only for the first font.
13383
13384 * fontset.c (reorder_font_vector): Fix typo.
13385 (fontset_find_font): Don't add a font-spec specifying a script.
13386 Use 0 (not Qt) for the indication of empty font-group. Change the
13387 format of RFONT-DEF. Return Qt if no font in the font-group
13388 support the character.
13389 (fontset_font): Adjust for the above change. If no font was
13390 found the character, remember that.
13391 (face_for_char): Adjust for the change of RFONT-DEF.
13392 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13393 no font for the target.
13394 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13395
133962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13397
13398 * font.c (font_load_for_face): Handle the case that the font in
13399 face->lface is a string.
13400
134012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13402
13403 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13404
134052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13406
13407 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13408 Fix previous change. If the frame is not on a window system,
13409 signal an error.
13410
134112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13412
13413 * coding.c (decode_coding_object, encode_coding_object): Adjust
13414 marker positions after conversion.
13415
13416 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13417
134182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13419
13420 * font.c (font_find_for_lface): Fix the handling of the return
13421 value of font_has_char.
13422 (Ffont_shape_text): Fix previous change.
13423
13424 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13425 (fontset_ref_and_range): Delete it.
13426 (fontset_find_font): Call char_table_ref_and_range instead of
13427 FONTSET_REF_AND_RANGE.
13428 (make_fontset): Don't setup font groups of Latin here.
13429 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13430 (new_fontset_from_font): Make the specified font the default for
13431 all Latin characters.
13432
134332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13434
13435 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13436 is on a window system before accessing the fontset of the frame.
13437
134382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13439
13440 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13441
13442 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13443 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13444
13445 * font.c (Ffont_shape_text): If the font driver doesn't have a
13446 shaper function, make zero-width glyphs to have at least one-pixel
13447 width. Fix setting of `to' field of glyphs.
13448
134492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13450
13451 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13452 glyphs.
13453
13454 * font.h (struct font_driver): Improve docstring of member `shape'.
13455
134562008-02-01 Kenichi Handa <handa@m17n.org>
13457
13458 * composite.c (syms_of_composite): Fix docstring of
13459 auto-composition-function.
13460
13461 * font.h (LGLYPH_SIZE): New macro.
13462
13463 * font.c (Ffont_fill_gstring): Stop filling when a character not
13464 supported by the font is found.
13465 (Ffont_shape_text): When a shape callback function returns nil,
13466 try at most two more times with larger gstring.
13467 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13468
13469 * xdisp.c (handle_auto_composed_prop): Change the argument to
13470 auto-composition-function.
13471
13472 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13473 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13474 Lispy glyph and store it in the lgstring.
13475
13476 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13477
13478 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13479
134802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13481
13482 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13483
13484 * fontset.c (Vfont_encoding_charset_alist): New variable.
13485 (syms_of_fontset): DEFVAR it.
13486 (reorder_font_vector, fontset_find_font): Optimize for the case of
13487 no need of reordering.
13488 (face_for_char): Map the charset property by
13489 Vfont_encoding_charset_alist.
13490
134912008-02-01 Jason Rumney <jasonr@gnu.org>
13492
13493 * w32font.c (logfonts_match): Don't check adstyle here.
13494 (font_matches_spec): Check here against physical font instead.
13495 (add_font_entity_to_list): Avoid some substitutions.
13496
13497 * font.c (font_parse_fcname): Default weight and slant to normal.
13498 (font_score): Prefer normal fonts if weight or slant unspecified.
13499 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13500 match freetype scores.
13501
135022008-02-01 Jason Rumney <jasonr@gnu.org>
13503
13504 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13505 font, as it may have been deleted.
13506 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13507 most common hyphenless variation.
13508 (logfonts_match): Check generic family.
13509 (font_matches_spec): Don't check generic family here.
13510 (fill_in_logfont): Set generic family based on adstyle.
13511
13512 * w32font.h (w32font_get_cache): Update declaration.
13513
135142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13515
13516 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13517
13518 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13519 If none of the new drivers are available, call font_update_drivers
13520 with the old drivers.
13521
13522 * w32font.c (w32font_get_cache): Adjust the argument type.
13523
13524 * xfont.c (xfont_get_cache): Adjust the argument type.
13525
13526 * font.h (struct font_driver): Change argument type of get_cache.
13527
13528 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13529
13530 * font.c (Ffont_get): Fix arguments to Fassoc.
13531 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13532 (font_clear_cache): New function.
13533 (font_list_entities, font_matching_entity): Use font_get_cache.
13534 (font_update_drivers): Call font_clear_cache when finishing a driver.
13535
13536 * fontset.c (fontset_find_font): Fix previous change.
13537
135382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13539
13540 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13541 dpyinfo->font_table.
13542 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13543 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13544
13545 * font.c (font_at): Handle the case that the arg C is negative.
13546 Handle the unibyte case.
13547 (Ffont_at): Call font_at with the arg C -1.
13548
13549 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13550 the position here, and call font_at with the arg C -1.
13551 Don't check the range of the existing composition at the point.
13552
135532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13554
13555 * fontset.c (fontset_add): New args charset_id and family.
13556 Change caller.
13557 (load_font_get_repertory, fontset_find_font): Assume that
13558 font_spec is always a font-spec object.
13559 (Fset_fontset_font): Always store a font-spec object in a fontset.
13560
13561 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13562 instead of get_property_and_range.
13563
135642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13565
13566 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13567 (xftfont_open): Don't keep locking face.
13568 (xftfont_close): Don't unlock face.
13569 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13570
13571 * fontset.c (fontset_find_font): Don't prefer a font of
13572 supplementary charset.
13573
135742008-02-01 Kenichi Handa <handa@m17n.org>
13575
13576 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13577 script, langsys_tag to langsys, new member script.
13578 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13579 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13580 listing to the script specified in that property. Fix arg to
13581 OTF_check_features.
13582
135832008-02-01 Jason Rumney <jasonr@gnu.org>
13584
13585 * w32font.h: New file.
13586
13587 * w32font.c: Include it.
13588 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13589 (w32font_open): Set owning_frame.
13590 (w32font_text_extents): Use owning_frame.
13591 (struct font_callback_data): Add opentype_only field.
13592 (add_font_entity_to_list): Use it to filter fonts.
13593 Don't check against full name.
13594 (w32font_list_internal): New function.
13595 (w32font_list): Use it.
13596 (w32font_match_internal): New function.
13597 (w32font_match): Use it.
13598 (w32font_open_internal): New function.
13599 (w32font_open): Use it.
13600 (w32font_get_cache, w32font_close, w32font_has_char)
13601 (w32font_encode_char, w32font_text_extents, w32font_draw):
13602 Make non-static.
13603
13604 * makefile.w32-in (w32font.o): Depend on w32font.h.
13605
136062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13607
13608 * charset.c (Fdefine_charset_internal): Record a supplementary
13609 charset at the tail of Vcharset_order_list.
13610
13611 * font.c (Ffont_shape_text): Fix the return value.
13612
13613 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13614
13615 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13616
136172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13618
13619 * ftfont.c (struct OpenTypeSpec): New struct.
13620 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13621 (ftfont_get_open_type_spec): New function.
13622 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13623
13624 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13625
136262008-02-01 Jason Rumney <jasonr@gnu.org>
13627
13628 * w32font.c (add_font_entity_to_list): Compare only the beginning
13629 of full name.
13630
136312008-02-01 Kenichi Handa <handa@m17n.org>
13632
13633 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13634 Never return HANDLED_RECOMPUTE_PROPS.
13635
136362008-02-01 Kenichi Handa <handa@m17n.org>
13637
13638 * font.c (font_gstring_produce): Delete it.
13639
13640 * composite.h (COMPOSITION_METHOD):
13641 Handle COMPOSITION_WITH_GLYPH_STRING.
13642
136432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13644
13645 * xfont.c (Qx): Delete.
13646 (syms_of_xfont): Don't initialize Qx.
13647
13648 * composite.h (enum composition_method):
13649 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13650
136512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13652
13653 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13654 (choose_face_font): Accept new form of font-spec.
13655
13656 * frame.h (font_driver_list): Declare it unconditionally.
13657 (struct frame): Define members font_driver_list and font_data_list
13658 unconditionally.
13659
13660 * fontset.c: Include "font.h" unconditionally.
13661 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13662 (Fset_fontset_font): Accept a font-spec object.
13663
13664 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13665 PIXEL_SIZE part a wild card.
13666
13667 * dispextern.h (struct glyph_string): Define members clip and
13668 num_clips unconditionally.
13669 (struct face): Define members font_info and extra unconditionally.
13670
13671 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13672 ftfont_info only when HAVE_LIBOTF is defined.
13673
136742008-02-01 Andreas Schwab <schwab@suse.de>
13675
13676 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13677 and end.
13678
136792008-02-01 Jason Rumney <jasonr@gnu.org>
13680
13681 * w32font.c (w32font_driver): Add new fields.
13682
136832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13684
13685 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13686 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13687 (LIBES): Add @M17N_FLT_CFLAGS@.
13688
13689 * composite.c (compose_text): Don't treat the new style
13690 composition specially.
13691
13692 * emacs.c (main): Call syms_of_font unconditionally.
13693
13694 * font.h (FONT_ENTITY_NOT_LOADABLE)
13695 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13696 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13697 (struct font_driver): New member shape.
13698 (font_registry_charsets): Extern it.
13699 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13700 (font_otf_capability, font_drive_otf): Delete their externs.
13701
13702 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13703 (font_charset_alist, font_registry_charsets): Move from xfont.c
13704 and rename.
13705 (font_prop_validate_otf): New function.
13706 (font_property_table): Register it for QCotf.
13707 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13708 (font_drive_otf): Delete.
13709 (font_prepare_composition): New arg F. Adjust for the change of
13710 lispy gstring.
13711 (font_find_for_lface): New arg C.
13712 (font_load_for_face): Adjust for the change of font_find_for_lface.
13713 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13714 lispy gstring.
13715 (Ffont_shape_text): New function.
13716 (Fopen_font): If the font size is not given, use 12-pixel.
13717 (Ffont_at): New arg STRING.
13718 (syms_of_font): Initalize font_charset_alist.
13719 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13720 conditionally.
13721
13722 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13723 fonts of the same font-spec. Change the format of RFONT-DEF.
13724 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13725 Adjust for the change of RFONT-DEF.
13726 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13727
13728 * ftfont.h: New file.
13729
13730 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13731 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13732 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13733 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13734 font_otf_capability and font_drive_otf, set ftfont_shape.
13735 (ftfont_list): Adjust for the change of :otf property value.
13736 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13737 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13738 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13739 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13740 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13741 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13742
13743 * w32term.c (x_draw_composite_glyph_string_foreground):
13744 Adjust for the change of lispy gstring.
13745
13746 * xdisp.c (handle_composition_prop): Adjust for the change of
13747 lispy gstring. Call a function for auto-composition with the
13748 third arg it->window.
13749 (fill_composite_glyph_string): Adjust for the change of lispy string.
13750 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13751
13752 * xfaces.c (set_font_frame_param): Adjust for the change of
13753 font_find_for_lface.
13754
13755 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13756 (xfont_registry_charsets): Likewise. Change caller.
13757 (syms_of_xfont): Don't handle x_font_charset_alist.
13758
13759 * xftfont.c: Include "ftfont.h".
13760 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13761 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13762 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13763 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13764 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13765 Set xftfont_driver.shape to xftfont_shape.
13766
13767 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13768 the change of lispy gstring.
13769
137702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13771
13772 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13773
137742008-02-01 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32font.c (w32font_draw): Fill background manually.
13777
137782008-02-01 Jason Rumney <jasonr@gnu.org>
13779
13780 * font.c (Qfontp): Remove unused symbol.
13781 (QCantialias): New symbol.
13782 (syms_of_font): Define it.
13783 (font_property_table): Set a validator for QCantialias.
13784
13785 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13786 Define if not already.
13787 (QCfamily): Share with xfaces.c.
13788 (Qstandard, Qsubpixel, Qnatural): New symbols.
13789 (syms_of_w32font): Define them. Don't define QCfamily here.
13790 (w32_antialias_type, lispy_antialias_type): New functions.
13791 (w32_enumfont_pattern_entity): New arg requested_font.
13792 Set antialias parameter if non-default was requested.
13793 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13794
137952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13796
13797 * lread.c (read1): Undo the previous change.
13798
137992008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13800
13801 * frame.c (Fdelete_frame): Call font_update_drivers only when
13802 USE_FONT_BACKEND is defined.
13803
138042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13805
13806 * font.h (struct font_bitmap): New member bits_per_pixel.
13807 (struct font_driver): New members start_for_frame and end_for_frame.
13808 (struct font_data_list): New struct.
13809 (font_put_frame_data, font_get_frame_data): Extern them.
13810
13811 * frame.h (struct frame): New member font_data_list.
13812
13813 * font.c (font_update_drivers): Call driver->start_for_frame and
13814 driver->end_for_frame at proper timings.
13815 (font_put_frame_data, font_get_frame_data): New functions.
13816 (Ffont_spec): Add usage in the docstring.
13817
13818 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13819 (Fdelete_frame): Call font_update_drivers.
13820
13821 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13822 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13823 (xftfont_get_xft_draw): New function.
13824 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13825 (xftfont_end_for_frame): New function.
13826 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13827
13828 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13829 Change argument. Cache GCs in the per-frame data.
13830 (struct ftxfont_frame_data): New struct.
13831 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13832 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13833 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13834 (ftxfont_end_for_frame): New function.
13835 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13836
13837 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13838
138392008-02-01 Kenichi Handa <handa@m17n.org>
13840
13841 * xselect.c (Vselection_coding_system)
13842 (Vnext_selection_coding_system): Delete them.
13843 (syms_of_xselect): Don't declare selection-coding-system and
13844 next-selection-coding-system. They are declared in select.el.
13845
138462008-02-01 Jason Rumney <jasonr@gnu.org>
13847
13848 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13849
13850 * w32fns.c: Include imm.h.
13851 (get_composition_string_fn, get_ime_context_fn): New optional
13852 system functions.
13853 (globals_of_w32fns): Load them from imm32.dll.
13854 (ignore_ime_char): New flag.
13855 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13856 WM_IME_ENDCOMPOSITION messages.
13857
13858 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13859 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13860
138612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13862
13863 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13864 (READCHAR_REPORT_MULTIBYTE): New macro.
13865 (readchar): New 2nd arg MULTIBYTE.
13866 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13867 Make symbol's name multibyte according to the multibyteness of the
13868 source.
13869
138702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13871
13872 * xfaces.c (face_for_overlay_string): Call lookup_face with
13873 correct arguments (fix of synching with the trunk).
13874
138752008-02-01 Kenichi Handa <handa@m17n.org>
13876
13877 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13878 (font_prop_validate_non_neg, font_prop_validate_spacing):
13879 Delete argument prop_index.
13880 (font_property_table): Change arguments to validater. Change Callers.
13881 (font_lispy_object): Delete.
13882 (font_at): Use font_find_object instead fo font_lispy_object.
13883
138842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13885
13886 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13887 and file names.
13888
138892008-02-01 Jason Rumney <jasonr@gnu.org>
13890
13891 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13892 (font_matches_spec): Remove debug output.
13893 (add_font_entity_to_list): Avoid using substituted fonts.
13894
138952008-02-01 Jason Rumney <jasonr@gnu.org>
13896
13897 * doc.c (Fsnarf_documentation):
13898 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13899
139002008-02-01 Miles Bader <miles@gnu.org>
13901
13902 * dispextern.h (struct glyph_row): Only define "clip" field if
13903 HAVE_WINDOW_SYSTEM is defined.
13904
139052008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13906
13907 Fix up multi-tty merge.
13908
13909 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13910 and indentation.
13911
13912 * xfaces.c (free_realized_face, clear_face_gcs):
13913 Include font_done_for_face in the input_blocked section, just in case.
13914
13915 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13916 (get_char_face_and_encoding): Undo last change and remove the *other*
13917 duplicate definition (i.e. keep the one that's better scoped and that
13918 includes code for the font-backend).
13919
13920 * terminal.c (create_terminal): Default keyboard_coding to
13921 `no-conversion' and terminal_coding to `undecided'.
13922
13923 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13924
13925 * fontset.c (free_realized_fontsets): Check that the table entry does
13926 contain a fontset before trying to compare it to `base'.
13927
13928 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13929 syms_of_charset, and syms_of_coding earlier because init_window_once
13930 now needs Vcoding_system_hash_table to be setup.
13931
13932 * coding.h (default_buffer_file_coding): Remove.
13933
13934 * coding.c (default_buffer_file_coding): Remove.
13935 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13936 than ->symbol, and use the terminal-local coding system.
13937 (syms_of_coding): Don't setup the coding-systems that are not
13938 terminal-local.
13939 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13940
13941 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13942 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13943
13944 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13945 in chartab.c and were re-added here by mistake.
13946 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13947
13948 * doc.c (Fsnarf_documentation):
13949 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13950 src to etc.
13951
13952 * ChangeLog.10: Add mistakenly removed entry.
13953
139542008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13955
13956 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13957
139582008-02-01 Miles Bader <miles@gnu.org>
13959
13960 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13961 Add extra args to FACE_FOR_CHAR.
13962
139632008-02-01 Kenichi Handa <handa@m17n.org>
13964
13965 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13966 in sequence.
13967
13968 * chartab.c (map_sub_char_table, map_char_table): If the range
13969 contains just one character, call the function with that character
13970 even if the depth is not 3.
13971
139722008-02-01 Jason Rumney <jasonr@gnu.org>
13973
13974 * w32font.c (w32font_text_extents): Calculate metrics for the
13975 whole string.
13976
139772008-02-01 Jason Rumney <jasonr@gnu.org>
13978
13979 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13980
139812008-02-01 Jason Rumney <jasonr@gnu.org>
13982
13983 * w32term.c (x_set_glyph_string_clipping): Use
13984 get_glyph_string_clip_rects.
13985 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13986 Adjust for the change of struct glyph_string.
13987
13988 * w32font.c (w32font_draw): Do clipping here.
13989
139902008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * xftfont.c (xftfont_draw): Adjust for the change of struct
13993 glyph_string.
13994
13995 * xterm.c (x_set_glyph_string_clipping): Use
13996 get_glyph_string_clip_rects.
13997 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13998 Adjust for the change of struct glyph_string.
13999
14000 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14001 the resulting clip(s}.
14002 (expose_overlaps): Add arg r. Change callers. Set it to
14003 row->clip temporarily.
14004 (expose_window): Redraw rows overlapping the exposed area.
14005
14006 * dispextern.h (struct glyph_row): New member clip.
14007 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14008 clip_height, new member clip, and num_clips.
14009
140102008-02-01 Kenichi Handa <handa@m17n.org>
14011
14012 * data.c (Fchar_or_string_p): Fix docstring.
14013
140142008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14017 create a temporary XftDraw object.
14018
140192008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * font.c (Ffontp): Fix docstring.
14022
14023 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14024 strong evidence of ISO-2022.
14025
140262008-02-01 Kenichi Handa <handa@m17n.org>
14027
14028 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14029 SYNTAX_ENTRY_FOLLOW_PARENT.
14030
140312008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14032
14033 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14034 its type.
14035 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14036 Update to the new type of weak_hash_tables and next_weak.
14037
14038 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14039 a plain C pointer to Lisp_Hash_Table.
14040
14041 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14042 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14043 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14044 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14045 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14046 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14047 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14048 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14049 (GC_EQ): Remove since they've been identical to their non-GC_
14050 alter-egos ever since the markbit was eradicated.
14051
14052 * alloc.c:
14053 * buffer.c:
14054 * buffer.h:
14055 * data.c:
14056 * fileio.c:
14057 * filelock.c:
14058 * fns.c:
14059 * frame.h:
14060 * lisp.h:
14061 * macterm.c:
14062 * print.c:
14063 * process.c:
14064 * w32fns.c:
14065 * w32menu.c:
14066 * w32term.c:
14067 * xfns.c:
14068 * xmenu.c:
14069 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14070
140712008-02-01 Kenichi Handa <handa@m17n.org>
14072
14073 * chartab.c (map_sub_char_table): Make it work for the top-level
14074 char-table. Fix handling of parent char-table.
14075 (map_char_table): Adjust for the above change.
14076
140772008-02-01 Jason Rumney <jasonr@gnu.org>
14078
14079 * w32font.c (Qgdi): Rename from Qw32.
14080
140812008-02-01 Jason Rumney <jasonr@gnu.org>
14082
14083 * w32bdf.c (get_quoted_string): Make function static.
14084
140852008-02-01 Kenichi Handa <handa@m17n.org>
14086
14087 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14088 bigger ascent and descent than those of the font, use them as
14089 font's ascent and descent.
14090
140912008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * Makefile.in (${lispsource}international/charprop.el): Move this
14094 target within "#ifdef HAVE_UNIDATA" and "#endif".
14095
140962008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14099 (shortlisp): Add ../lisp/language/tai-viet.el.
14100
141012008-02-01 Ulrich Mueller <ulm@gentoo.org>
14102
14103 * Makefile.in (${lispsource}international/charprop.el): Depend on
14104 temacs${EXEEXT}.
14105
141062008-02-01 Jason Rumney <jasonr@gnu.org>
14107
14108 * w32font.c (w32font_close): Delete the GDI font object.
14109
14110 * w32menu.c: Include character.h.
14111
14112 * w32proc.c: Likewise.
14113
14114 * w32select.c: Likewise.
14115
14116 * makefile.w32-in (w32proc.o): Depend on character.h.
14117
141182008-02-01 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14121
14122 * w32menu.c (syms_of_w32menu): Likewise.
14123
14124 * w32proc.c (syms_of_ntproc): Likewise.
14125
14126 * w32select.c (syms_of_w32select): Likewise.
14127
14128 * w32term.c (syms_of_w32term): Likewise.
14129
141302008-02-01 Jason Rumney <jasonr@gnu.org>
14131
14132 * w32font.c (w32font_draw): Delete brush after using it.
14133
141342008-02-01 Jason Rumney <jasonr@gnu.org>
14135
14136 * w32font.c (w32font_open): Don't set font_idx.
14137 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14138 to font settings.
14139 (w32font_draw): Fill background explicitly.
14140
141412008-02-01 Jason Rumney <jasonr@gnu.org>
14142
14143 * w32term.c (w32_initialize): Don't call w32font_initialize.
14144
14145 * w32font.c (w32font_info): Remove subranges.
14146 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14147 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14148 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14149 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14150 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14151 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14152 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14153 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14154 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14155 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14156 New symbols.
14157 (font_callback_data): New struct.
14158 (w32font_list, w32font_match): Use it.
14159 (w32font_open): Don't populate subranges.
14160 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14161 (w32font_encode_char): Always return unicode code-point as-is.
14162 (w32font_text_extents): Supply a transformation matrix to
14163 GetGlyphOutline. Never look up by glyph index. Avoid looping
14164 twice. Use unicode version of GetTexExtentPoint32 instead of
14165 glyph index version.
14166 (set_fonts_frame): Remove.
14167 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14168 set frame parameter. Use backward compatible fake foundries.
14169 Save generic family in extra slot under QCfamily. Make width slot
14170 constant. Save QCspacing value. Save list of scripts instead of
14171 binary subranges.
14172 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14173 (add_font_entity_to_list): Use font_callback_data struct. Filter
14174 unwanted fonts.
14175 (add_one_font_entity_to_list): Use font_callback_data struct.
14176 (w32_registry): Default to iso10646_1.
14177 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14178 string font registries. Don't fill in font name if it is a generic
14179 family name, fill family instead. Use spacing, family and script
14180 extra info to fill pitch, family and charset fields.
14181 (list_all_matching_fonts): Use font_callback_data struct.
14182 (unicode_range_for_char): Remove.
14183 (font_supported_scripts): New function.
14184 (w32font_initialize): Remove.
14185 (syms_of_w32font): Update which symbols are defined.
14186
141872008-02-01 Jason Rumney <jasonr@gnu.org>
14188
14189 * font.c (font_pixel_size): Reverse assq_no_quit args.
14190
14191 * w32term.h (FONT_WIDTH): Report max width, not average.
14192 (FONT_MAX_WIDTH): Remove.
14193 (FONT_AVG_WIDTH): New macro.
14194
14195 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14196 redefinition of FONT_WIDTH.
14197
14198 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14199 (w32_cache_char_metrics): Use FONT_WIDTH.
14200
14201 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14202
142032008-02-01 Jason Rumney <jasonr@gnu.org>
14204
14205 * w32font.c (w32font_open): Make lfHeight negative.
14206
14207 * w32fns.c (x_default_font_parameter): Use new style font name.
14208 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14209
142102008-02-01 Jason Rumney <jasonr@gnu.org>
14211
14212 * w32font.c (QCsubranges): New symbol.
14213 (w32font_open, w32font_has_char): Get subranges from subproperty
14214 of extra.
14215 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14216 (syms_of_w32font): Define :subranges symbol.
14217
14218 * font.c (font_put_extra): Expose externally.
14219
14220 * font.h (font_put_extra): Move declaration from font.c.
14221
14222 * font.c (Ffont_get): Use font driver to determine otf capability.
14223 (adjust_anchor): Check if driver defines anchor_point before using.
14224
14225 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14226 (w32font_draw): Use options.
14227 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14228 Fix detection of truetype fonts.
14229 (registry_to_w32_charset): Handle charsets other than iso8859-1
14230 expressed as lisp symbols.
14231 (w32_registry): Express charset as lisp symbol.
14232 (fill_in_logfont): Reverse pixel and point height logic.
14233 Don't set width here. Set quality to default.
14234
14235 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14236 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14237
14238 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14239 Remove redundant loop and allocation.
14240
14241 * makefile.w32-in (font.o, w32font.o): New objects.
14242 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14243 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14244
14245 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14246 STORE_XCHARB a valid l-value.
14247
14248 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14249 calculations for non-Truetype fonts.
14250 (x_draw_glyph_string): Sync with xterm.c.
14251 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14252 Remove redundant code.
14253 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14254
14255 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14256 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14257
14258 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14259 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14260
14261 * w32font.c: New file for w32 font backend.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * term.c: Don't include "buffer.h" twice.
14266
142672008-02-01 Kenichi Handa <handa@m17n.org>
14268
14269 * character.c (Funibyte_string): New function.
14270 (syms_of_character): Defsubr it.
14271
142722008-02-01 Jason Rumney <jasonr@gnu.org>
14273
14274 * w32term.c [USE_FONT_BACKEND]:
14275 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14276 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14277 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14278 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14279 (x_free_frame_resources): Sync with xterm.c.
14280
142812008-02-01 Andreas Schwab <schwab@suse.de>
14282
14283 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14284 char-table size.
14285
142862008-02-01 Kenichi Handa <handa@m17n.org>
14287
14288 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14289
142902008-02-01 Kenichi Handa <handa@m17n.org>
14291
14292 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14293 font_otf_gpos, add font_drive_otf.
14294
14295 * fontset.c (fontset_find_font): Pay attention to font size
14296 specified for a font.
14297 (reorder_font_vector): Check contents of font_def.
14298
14299 * font.c (struct otf_list): Delete it.
14300 (otf_list): Make it a lisp variable.
14301 (otf_open): Use lispy otf_list.
14302 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14303 (check_otf_features): New function.
14304 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14305 New functions.
14306 (font_drive_otf): New function merging font_otf_gsub and
14307 font_otf_gpos.
14308 (font_open_for_lface): New arg spec. Change argument order.
14309 (font_load_for_face): Adjust for the change of font_open_for_lface.
14310 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14311 Ffont_otf_gpos.
14312 (syms_of_font): Staticpro otf_list. Delete defsubr of
14313 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14314
14315 * xfaces.c (set_font_frame_param): Adjust for the change of
14316 font_open_for_lface.
14317
14318 * font.h (font_open_for_lface): Adjust prototype.
14319 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14320 member otf_drive.
14321 (font_otf_gsub, font_otf_gpos): Delete externs.
14322 (font_drive_otf): Extern it.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * font.c (font_at): If the window W is not on a window system,
14327 return Qnil.
14328
14329 * coding.c (produce_chars, encode_coding): Don't call
14330 insert_from_gap if no characters to produce.
14331
143322008-02-01 Kenichi Handa <handa@m17n.org>
14333
14334 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14335 Fclear_face_cache.
14336
14337 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14338
143392008-02-01 Miles Bader <miles@gnu.org>
14340
14341 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14342 Parse "--disable-font-backend" option.
14343 (standard_args): Add "--disable-font-backend" option.
14344
143452008-02-01 Kenichi Handa <handa@m17n.org>
14346
14347 * fontset.c (fontset_find_font): New function.
14348 (fontset_font): Use fontset_find_font.
14349 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14350 Register the specified font for all Latin characters.
14351 (new_fontset_from_font): Register the specified font for all Latin
14352 characters.
14353 (dump_fontset): For a realized fontset, include the base fontset
14354 name in the returned vector.
14355
143562008-02-01 Kenichi Handa <handa@m17n.org>
14357
14358 * character.h (CHAR_STRING): Cast C to unsigned on calling
14359 char_string.
14360
14361 * character.c (char_string): Type of arg C changed to unsigned.
14362 Signal an error if C is an invalid character code.
14363
14364 * editfns.c (general_insert_function, Fchar_to_string):
14365 Use CHARACTERP, not INTEGERP.
14366
143672008-02-01 Kenichi Handa <handa@m17n.org>
14368
14369 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14370 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14371
14372 * regex.c (analyse_first): Fix for multibyte characters in "case
14373 charset:" and "case categoryspec:".
14374
143752008-02-01 Andreas Schwab <schwab@suse.de>
14376
14377 * Makefile.in (LIBES): Move standard libraries to the end.
14378
143792008-02-01 Kenichi Handa <handa@m17n.org>
14380
14381 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14382 nonzero, don't shrink the buffer nextb.
14383
14384 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14385
14386 * coding.c (coding_alloc_by_making_gap): New arg offset.
14387 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14388 offset.
14389 (decode_coding_iso_2022): Update coding->safe_charsets.
14390 (decode_coding_gap): Temporarily set
14391 current_buffer->text->inhibit_shrinking to 1.
14392
143932008-02-01 Kenichi Handa <handa@m17n.org>
14394
14395 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14396 indexing into elements of s->cmp and s->char2b.
14397
143982008-02-01 Juanma Barranquero <lekktu@gmail.com>
14399
14400 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14401
144022008-02-01 Kenichi Handa <handa@m17n.org>
14403
14404 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14405 target_multibyte instead of multibyte.
14406 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14407 (bcmp_translate): Change the argument name from multibyte to
14408 target_multibyte.
14409
144102008-02-01 Kenichi Handa <handa@m17n.org>
14411
14412 These changes are to compile a regexp into a pattern that can be
14413 used both for multibyte and unibyte targets.
14414
14415 * Makefile.in (search.o): Depend on charset.h.
14416
14417 * character.c (multibyte_char_to_unibyte_safe): New function.
14418
14419 * search.c: Include "charset.h".
14420 (compile_pattern_1): Delete argument multibyte. Don't set
14421 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14422 (compile_pattern): Don't compare cp->buf.target_multibyte.
14423 Compare cp->buf.charset_unibyte.
14424 (compile_pattern): Set cp->buf.target_multibyte.
14425
14426 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14427
14428 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14429
14430 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14431 multibyte. Change callers.
14432 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14433 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14434 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14435 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14436 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14437 (regex_compile): Make the compiled pattern usable both for
14438 multibyte and unibyte targets.
14439 (analyse_first): Make the fastmap usable both for multibyte and
14440 unibyte targets.
14441 (TRANSLATE_VIA_MULTIBYTE): Delete.
14442 (re_match_2_internal): Pay attention to the case that the
14443 multibyteness of bufp and target may be different.
14444
144452008-02-01 Kenichi Handa <handa@m17n.org>
14446
14447 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14448 empty box occupy at least one column width.
14449
144502008-02-01 Miles Bader <miles@gnu.org>
14451
14452 * Makefile.in: Remove redundant HAVE_XFT clause.
14453
144542008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14457
144582008-02-01 Kenichi Handa <handa@m17n.org>
14459
14460 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14461 being nil.
14462
144632008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * search.c (simple_search): Fix previous change.
14474
144752008-02-01 Kenichi Handa <handa@m17n.org>
14476
14477 * xftfont.c (ftfont_font_format): Extern declaration.
14478
14479 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14480
14481 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14482 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14483
14484 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14485 (ftfont_font_format): Fix previous change.
14486
14487 * font.h (Ffont_xlfd_name): EXFUN it.
14488
14489 * font.c (font_parse_xlfd): Fix the array size of `f'.
14490 (register_font_driver): Use EQ to compare driver->type.
14491
14492 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14493 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14494 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14495
144962008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14499 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14500
145012008-02-01 Kenichi Handa <handa@m17n.org>
14502
14503 * xfont.c (xfont_open): Set font->format.
14504
14505 * xftfont.c (xftfont_open): Set font->format.
14506
14507 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14508 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14509 (ftfont_open): Set font->format.
14510 (ftfont_font_format): New function.
14511
14512 * font.h (struct font): New member format.
14513
14514 * font.c (Qopentype): New variable.
14515 (syms_of_font): Defsym it.
14516 (Fquery_font): Change the format of the last element of the return
14517 value.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14522 last resort.
14523
145242008-02-01 Kenichi Handa <handa@m17n.org>
14525
14526 * coding.c (detect_coding_charset): Fix detection of multi-byte
14527 charset.
14528
145292008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14530
14531 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14532
145332008-02-01 Kenichi Handa <handa@m17n.org>
14534
14535 * xdisp.c (get_next_display_element): Set it->face_id for the
14536 first component of a composition.
14537 (x_produce_glyphs): Check if the font is changed or not for composition.
14538
145392008-02-01 Kenichi Handa <handa@m17n.org>
14540
14541 * fontset.c (Qlatin): New variable.
14542 (syms_of_fontset): Define it as a lisp symbol.
14543 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14544
145452008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * font.c (font_unparse_fcname): Pay attention to the case that
14548 some of font property is a null string.
14549
145502008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * term.c: Include "composite.h".
14553 (encode_terminal_code): Output all components of composition.
14554 Check the size of encode_terminal_src.
14555 (produce_glyphs): For composition, call produce_composite_glyph.
14556 (append_composite_glyph, produce_composite_glyph): New functions.
14557
14558 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14559 is not found, get font_info from the current ascii face.
14560
145612008-02-01 Kenichi Handa <handa@m17n.org>
14562
14563 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14564 buffer-file-name to Qnil before calling insert_from_buffer.
14565
14566 * font.c (font_unparse_fcname): Pay attention to the case that
14567 foundry is a null string.
14568
145692008-02-01 Kenichi Handa <handa@m17n.org>
14570
14571 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14572
14573 * font.c (Qunicode_sip): New variable.
14574 (syms_of_font): Declare it as a Lisp symbol.
14575
14576 * font.h (Qunicode_sip): Extern it.
14577
145782008-02-01 Kenichi Handa <handa@m17n.org>
14579
14580 * composite.c (get_composition_id): Pay attention to TAB component.
14581
14582 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14583 TAB. Adjust for the change of s->char2b which always points to
14584 the first element of allocated memory.
14585
14586 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14587
14588 * xdisp.c (handle_composition_prop): Set it->c to the first
14589 non-TAB component.
14590 (fill_composite_glyph_string): Change argument.
14591 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14592 (x_produce_glyphs): Fix handling of left/right padding.
14593
145942008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 * coding.c (detect_coding_system): Fix for handling off
14597 inhibit_iso_escape_detection. Fix for the case that no coding
14598 system is defined for a specific coding category.
14599
146002008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * font.c (font_matching_entity): Delete unused local var.
14603
14604 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14605 opening a font.
14606
14607 * fileio.c (Finsert_file_contents): On recovering a file, assume
14608 Unix-like eol.
14609 (choose_write_coding_system): On auto-saving a file, force
14610 Unix-like eol.
14611
14612 * coding.c (setup_coding_system): Fix setting of
14613 coding->common_flags based on eol_type.
14614 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14615 inherit from it.
14616
146172008-02-01 Kenichi Handa <handa@m17n.org>
14618
14619 * alloc.c (NSTATICS): Increas to 0x600.
14620
146212008-02-01 Kenichi Handa <handa@m17n.org>
14622
14623 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14624 (ftfont_list): Don't check :name property.
14625 (ftfont_match): New function.
14626 (ftfont_pattern_entity): If the pattern doesn't contain
14627 FC_SPACING, don't assume FC_MONO.
14628
14629 * font.h (struct font_driver): New member `match'.
14630 (font_update_drivers): Adjust prototype.
14631
14632 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14633 property of FONT.
14634 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14635 them unconditionally.
14636 (font_matching_entity): New function.
14637 (font_open_by_name): Try font_matching_entity if exact match is
14638 not found.
14639 (font_update_drivers): Delete the arg FONT. Return a list of
14640 actually used backends. Don't free faces, font caches here.
14641 Don't store data in frame parameters. Don't call x_set_font.
14642 (Ffont_spec): Store :name property as is.
14643 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14644 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14645 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14646 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14647 Call font->driver->otf_gsub instead of font_otf_gsub.
14648
14649 * frame.c (x_set_font_backend): Do more works that were done in
14650 font_update_drivers before.
14651
14652 * xfont.c (xfont_match): New function.
14653 (xfont_driver): Set xfont_driver.match to xfont_match.
14654 (xfont_draw): Set font in GC if necessary.
14655
14656 * ftxfont.c (ftxfont_match): New function.
14657 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14658
14659 * xftfont.c (xftfont_match): New function.
14660 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14661
146622008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * font.h (struct font): New member scalable.
14665 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14666 (font_otf_gsub): Adjust prototype.
14667
14668 * font.c (font_otf_capability): Fix handling of the default langsys.
14669 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14670 Check the contents of SPEC.
14671 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14672 (check_gstring): New function.
14673 (REPLACEMENT_CHARACTER): New macro.
14674 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14675 glyph codes of GSTRING.
14676 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14677 (font_prepare_composition): Set cmp->glyph_len.
14678 (font_open_entity): Set font->scalable.
14679 (Ffont_get): Handle :otf property.
14680 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14681 functions.
14682 (Fquery_font): Use font->font.full_name.
14683 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14684 Sfont_otf_alternates.
14685
14686 * ftfont.c (ftfont_open): Set font->font.full_name and
14687 font->font.name properly. Fix calculation of font->font.height
14688 and font->min_width.
14689
14690 * ftxfont.c (ftxfont_create_gcs): New function.
14691 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14692 (ftxfont_draw_backgrond): Fix filling region.
14693 (ftxfont_default_fid): New function.
14694 (ftxfont_open): Set xfont->fid to the return value of
14695 ftxfont_default_fid.
14696 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14697 (ftxfont_done_face): Free only GCs that are created by
14698 ftxfont_create_gcs.
14699 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14700
14701 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14702 Clip to src->width, etc (not src->clip_XXX).
14703
14704 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14705 FontBackend frame parameter.
14706
147072008-02-01 Kenichi Handa <handa@m17n.org>
14708
14709 * font.h (struct font_driver_list): New member `on'.
14710 (Fclear_font_cache): EXFUN it.
14711 (font_update_drivers): Extern it.
14712
14713 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14714 (font_list_entities): Check driver_list->on.
14715 (register_font_driver): Initalize `on' member to 0.
14716 (font_update_drivers): New function.
14717 (Fclear_font_cache): Check driver_list->on.
14718
14719 * frame.h (Qfont_backend): Extern it.
14720 (x_set_font_backend): Extern it.
14721
14722 * frame.c (Qfont_backend): New variable.
14723 (frame_parms): New element for font-backend.
14724 (x_set_font_backend): New function.
14725
14726 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14727 FontBackend frame parameter.
14728 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14729 x_set_font_backend.
14730
14731 * xfont.c (xfont_list): Don't try listing by :name property if the
14732 name is not for XLFD.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14737 (LGLYPH_SET_TO): New macros.
14738 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14739 element of G is vector or not.
14740 (font_at): Extern it.
14741
14742 * font.c: Include window.h.
14743 (font_lispy_object): New function.
14744 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14745 end of valid glyph.
14746 (font_close_object): Fix getting (struct font *).
14747 (font_at): New function.
14748 (Ffont_get): If FONT is a font-object, get entity from it.
14749 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14750 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14751 range check.
14752 (Ffont_at): New function.
14753 (syms_of_font): Defsubr Sfont_at.
14754
14755 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14756 before the entry for Qcomposition.
14757 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14758 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14759 the font in gstring.
14760 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14761 LGLYPH_FORM (g) to detect the end of valid glyph.
14762 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14763 we are composing with gstring.
14764
14765 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14766 Check if adjustment is vector or not.
14767
14768 * Makefile.in (font.o): Make it depends on window.h.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14773 adjustment is vector or not.
14774
147752008-02-01 Miles Bader <miles@gnu.org>
14776
14777 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14782 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14783 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14784
14785 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14786 (DEVICE_DELTA): Fix typo.
14787 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14788 LGLYPH format.
14789
14790 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14791 the change of LGLYPH format.
14792
147932008-02-01 Kenichi Handa <handa@m17n.org>
14794
14795 * ftfont.c (ftfont_list): Fix typo.
14796 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14797
147982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14799
14800 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14801
14802 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14803 xftface_info is non-NULL.
14804
148052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14806
14807 * ftfont.c (ftfont_list): Move misplaced #endif.
14808
148092008-02-01 Kenichi Handa <handa@m17n.org>
14810
14811 * ftfont.c (ftfont_list): Pay attention to the case that
14812 FC_CAPABILITY is not defined.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * xftfont.c (xftfont_open): Set charset related members to -1.
14817
14818 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14819 QCname.
14820 (ftfont_open): Set charset related members to -1.
14821
14822 * fontset.c (Votf_script_alist): New variable.
14823 (syms_of_fontset): Initialize it.
14824 (fontset_font): Delete unused variable.
14825
14826 * fontset.h (Votf_script_alist): Extern it.
14827
14828 * font.c (font_find_for_lface): Optimize code.
14829
14830 * font.h (font_close_object, font_merge_old_spec): Extern them.
14831
148322008-02-01 Kenichi Handa <handa@m17n.org>
14833
14834 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14835 (syms_of_font): Initialize them.
14836 (font_pixel_size): Allow float value in dpi.
14837 (font_prop_validate_type): Delete.
14838 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14839 Change caller.
14840 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14841 (font_prop_validate_extra): Delete.
14842 (font_prop_validate_spacing): New function.
14843 (font_property_table): Add elements for all known properties.
14844 (get_font_prop_index): Rename from check_font_prop_name. New
14845 argument FROM. Change caller.
14846 (font_prop_validate): Validate all known properties.
14847 (font_put_extra): Delete argument force. Change caller.
14848 (font_expand_wildcards): Make it static. Fix the way of shrinking
14849 the possible range.
14850 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14851 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14852 Change caller.
14853 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14854 (font_parse_fcname): Delete argument merge. Fix parsing of point
14855 size. Don't validate properties values here. Change caller.
14856 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14857 (font_open_by_name): Delete unused variable.
14858 (Ffont_spec): Likewise. Validate property values.
14859 (Ffont_match_p): New function.
14860
14861 * font.h (QCscalable): Extern it.
14862 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14863
14864 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14865
14866 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14867 (xfont_list_pattern): New function.
14868 (xfont_list): Use xfont_list_pattern.
14869
148702008-02-01 Kenichi Handa <handa@m17n.org>
14871
14872 * font.h (Flist_fonts): EXFUN it.
14873
148742008-02-01 Jason Rumney <jasonr@gnu.org>
14875
14876 * w32term.c (w32_initialize): Add back smoothing_type and
14877 smoothing_enabled definitions.
14878
148792008-02-01 Kenichi Handa <handa@m17n.org>
14880
14881 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14882 s->face->font on determining underline position.
14883
148842008-02-01 Kenichi Handa <handa@m17n.org>
14885
14886 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14887 (font_has_char): Accept font-object too.
14888 (font_find_for_lface): Try at first with a size specified in face.
14889
148902008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14893 font_open_by_name.
14894
148952008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * font.h (QCspacing, QCdpi): Extern them.
14898 (enum font_spacing): New enum.
14899 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14900
14901 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14902 (QCspacing, QCdpi): New variables.
14903 (syms_of_font): Initialize them.
14904 (font_pixel_size): New function.
14905 (font_put_extra): New function.
14906 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14907 in FONT_EXTRA.
14908 (font_parse_fcname): Handle enumerated values (e.g. bold).
14909 Fix handling font size. Add QCname property that contains only
14910 unknown properties.
14911 (font_score): Change argument. Change caller. Pay attention to
14912 FONT_PIXEL_SIZE_QUANTUM.
14913 (font_sort_entites, font_list_entities, font_find_for_lface)
14914 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14915 (Ffont_spec): Add QCname property that contains only unknown properties.
14916
14917 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14918 include weight in listing pattern, instead check weight of each
14919 listed font. Don't include scalable in pattern. Pay attention to
14920 FONT_PIXEL_SIZE_QUANTUM.
14921
149222008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * font.c (font_parse_fcname): Fix parsing of point-size.
14925 (font_unparse_fcname): Produce symbolic names for style properties.
14926 (font_list_entities): Handle float size correctly.
14927 (font_open_by_name): Prefer `normal' property values if the name
14928 doesn't specify them.
14929
14930 * fontset.c (Finternal_char_font): Use font_get_name, not
14931 Ffont_xlfd_name.
14932
14933 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14934 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14935 pattern. Don't force scalable.
14936
14937 * xftfont.c (xftfont_open): For generating a name, start from
14938 96-byte buffer.
14939
149402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14941
14942 * frame.h (x_new_fontset2): Fix prototype.
14943
149442008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * font.h (struct font_driver): Delete member parse_name.
14947 (font_match_p, font_get_spec, font_parse_fcname)
14948 (font_unparse_fcname): Extern them.
14949 (font_get_name): Adjust prototype.
14950
14951 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14952 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14953 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14954 unnecessary checks for weight, slant, and swidth.
14955 (font_parse_fcname): New function.
14956 (font_unparse_fcname): New function.
14957 (font_parse_name): New function.
14958 (font_match_p): New function.
14959 (font_get_name): Change return value to Lisp string.
14960 (font_get_spec): New function.
14961 (Qunspecified, Qignore_defface): Don't extern them.
14962 (font_find_for_lface): Assume that LFACE is fully specified.
14963 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14964 object, use it for FACE.
14965 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14966 driver->parse_name.
14967 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14968
14969 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14970 prototype.
14971
14972 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14973 argument F. Don't call Fnew_fontset. Instead, directly call
14974 make_fontset.
14975
14976 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14977
14978 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14979 of x_new_fontset2.
14980
14981 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14982 (Qsans__serif): New variables.
14983 (ftfont_generic_family_list): New variable.
14984 (syms_of_ftfont): Initialize the above variables.
14985 (ftfont_pattern_entity): Delete argument NAME.
14986 (ftfont_list_generic_family): New function.
14987 (ftfont_parse_name): Delete this function.
14988 (ftfont_list): Try generic family only when FcFontList found no font.
14989 (ftfont_list_family): Fix args to FcObjectSetBuild.
14990
14991 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14992 object in attrs[LFACE_FONT_INDEX].
14993 (set_lface_from_font_name): Cancel all changes for font-backend.
14994 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14995 function.
14996 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14997 font object in QCfont attribute.
14998 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14999 (realize_default_face) [USE_FONT_BACKEND]: Call
15000 set_lface_from_font_and_fontset.
15001
15002 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15003 "fixed", and signal error here if no suitable font was found.
15004
15005 * xfont.c (xfont_parse_name): Delete this function.
15006
15007 * xftfont.c (xftfont_open): Change coding style of error
15008 handling. Generate fontconfig's fontname pattern.
15009
15010 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15011 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15012
15013 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15014 Both args FONTSET and FONT_OBJECT must be existing ones.
15015
150162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15017
15018 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15019
150202008-02-01 Kenichi Handa <handa@m17n.org>
15021
15022 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15023
15024 * font.h (struct font): Fix typo.
15025
15026 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15027 XLFD_XXX_INDEX.
15028 (enum xlfd_field_mask): New enum.
15029 (intern_font_field): Changed argument. Change caller. If digits
15030 are followed by non-digits, return a symbol.
15031 (font_expand_wildcards): New function.
15032 (font_parse_xlfd): Fix wildcard handling.
15033 (Ffont_spec): If :name is specified, reflect the info in the other
15034 properties.
15035
15036 * ftfont.c (ftfont_pattern_entity): Fix typo.
15037 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15038 locale.
15039
150402008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15043
15044 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15045 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15046 registry doesn't specify encoding part.
15047 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15048 (font_open_by_name): At first try parsing the name.
15049 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15050 as Lisp symbols.
15051
15052 * fontset.c (reorder_font_vector): Pay attention to the case that
15053 the 3rd element of font_def is nil.
15054 (fontset_font): For the default fontset, append one more fontset
15055 elements for a script-based font specification. Don't add script
15056 attribute on finding a font.
15057 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15058 font name.
15059 (fontset_ascii_font): If a font can't be opened, return nil.
15060
15061 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15062 (ftfont_pattern_entity): New function.
15063 (ftfont_get_cache): Assume that freetype_font_cache is already
15064 initialized.
15065 (ftfont_list): Handle the case that a file is specified in font
15066 name. Use ftfont_pattern_entity to generate entities.
15067 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15068 (syms_of_ftfont): Initialize freetype_font_cache.
15069
15070 * xftfont.c (xftfont_open): Make the font name fontconfig's
15071 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15072 (xftfont_close): Free font->font.name if not NULL.
15073
15074 * xfont.c (xfont_list): If script is specified for a font, return
15075 null_vector.
15076 (xfont_list_family): Declare argument type.
15077
15078 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15079 name, set LFACE_FONT (lface) to nil.
15080
15081 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15082 return Qnil.
15083
150842008-02-01 Kenichi Handa <handa@m17n.org>
15085
15086 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15087 (standard_args): Add "-enable-font-backend".
15088
150892008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15092 (struct xftdraw_list, xftdraw_list): Delete them.
15093 (register_xftdraw, check_xftdraw): Delete them.
15094 (xftfont_prepare_face): Don't call register_xftdraw.
15095 (xftfont_done_face): Don't call check_xftdraw.
15096 (xftfont_draw): Get background color only when with_background is
15097 nonzero.
15098
15099 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15100
151012008-02-01 Kenichi Handa <handa@m17n.org>
15102
15103 These changes are for the new font handling codes.
15104
15105 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15106 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15107 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15108 (FONTSRC, FONTOBJ): New variables.
15109 (obj): Add $(FONTOBJ).
15110 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15111 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15112 @LIBOTF_LIBS@.
15113 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15114 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15115
15116 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15117
15118 * character.h (Vscript_representative_chars): Extern it.
15119
15120 * character.c (Vscript_representative_chars): New variable.
15121 (syms_of_character): Declare it as a Lisp variable.
15122
15123 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15124 enable_font_backend is nonzero, accept the composition method
15125 COMPOSITION_WITH_GLYPH_STRING.
15126
15127 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15128 enumeration COMPOSITION_WITH_GLYPH_STRING.
15129
15130 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15131 members clip_x, clip_y, clip_width, and clip_height.
15132 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15133
15134 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15135 --enable-font-backend. Call syms_of_font.
15136
15137 * fns.c (assoc_no_quit): New function.
15138
15139 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15140 (face_for_font, new_fontset_from_font)
15141 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15142
15143 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15144 (fontset_font, fontset_ascii, face_for_char)
15145 (make_fontset_for_ascii_face, Ffont_info)
15146 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15147 is nonzero, use font-backend mechanism.
15148 (find_font_encoding): Make it non-static.
15149 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15150 New functions.
15151
15152 * frame.h (struct frame): New members resx and resy.
15153 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15154 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15155
15156 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15157 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15158
15159 * lisp.h (assoc_no_quit): Extern it.
15160
15161 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15162 Through out the file, use FONT_INFO_FROM_FACE instead of
15163 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15164 rif->per_char_metric.
15165 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15166 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15167 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15168 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15169 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15170 nonzero, use font-backend mechanism.
15171 (get_per_char_metric): New function.
15172
15173 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15174 (set_lface_from_font_name)
15175 (set_font_frame_param, free_realized_face)
15176 (prepare_face_for_display, clear_face_gcs)
15177 (Finternal_set_font_selection_order, realize_x_face)
15178 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15179 font-backend mechanism.
15180 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15181 (load_face_font) [USE_FONT_BACKEND]: Abort.
15182 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15183 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15184
15185 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15186 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15187 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15188 nonzero, register all available font drivers. Call
15189 x_default_font_parameter for deciding a font.
15190 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15191
15192 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15193 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15194 (x_set_glyph_string_clipping_exactly)
15195 (x_compute_glyph_string_overhangs)
15196 (x_draw_glyph_string_foreground)
15197 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15198 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15199 enable_font_backend is nonzero, use font-backend mechanism.
15200 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15201
152022008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15205 system_eol_type.
15206 (syms_of_coding): Initialize system_eol_type.
15207
15208 * process.c (Fset_process_coding_system): Inherit system's eol
15209 format if necessary.
15210
152112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15212
15213 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * coding.c (decode_eol): Pay attention to buffer relocation in
15218 del_range_2.
15219 (decode_coding): Call decode_eol before restoring undo_list.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * charset.c (Fdefine_charset_internal): Fix setting of
15224 emacs_mule_bytes.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * keyboard.c (read_char): Check if C is a character or not before
15229 looking up Vkeyboard_translate_table.
15230
152312008-02-01 Kenichi Handa <handa@m17n.org>
15232
15233 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15234 condition to terminate the loop.
15235
152362008-02-01 Kenichi Handa <handa@m17n.org>
15237
15238 * coding.c (produce_composition): Compare charbuf[i] instead of
15239 args[i] against 0.
15240 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15241
152422008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15245 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15246 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15247 detect_coding.
15248 (emacs_mule_char): Handle old style (Emacs 20) component character
15249 of a composition.
15250 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15251 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15252 composition rule.
15253 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15254
152552008-02-01 Kenichi Handa <handa@m17n.org>
15256
15257 * coding.c (encode_coding_ccl): Allocate destination dynamically
15258 when necessary.
15259
152602008-02-01 Kenichi Handa <handa@m17n.org>
15261
15262 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15263 the loop. When quitted, show a proper error message.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15268 src->clip_head and src->clip_tail temporarily instead of src->hl.
15269
15270 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15271 character sequence.
15272 (Fccl_execute_on_string): Use ASET, not XSET.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * coding.c (decode_coding): Fix the condition of terminating the
15281 decoding loop.
15282
152832008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * data.c (Faset): On setting a character bigger than 255 in a
15286 unibyte string, signal an error instead of make the string multibyte.
15287
152882008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15291 made by a mapping table.
15292
152932008-02-01 Kenichi Handa <handa@m17n.org>
15294
15295 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15296 not.
15297 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15298 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15299
15300 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15301 s->face is NULL or not.
15302
153032008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15306 (x_draw_glyph_string): Fix drawing of right_overhang and
15307 left_overhang around/on cursor.
15308
15309 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15310
153112008-02-01 Kenichi Handa <handa@m17n.org>
15312
15313 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15314
153152008-02-01 Kenichi Handa <handa@m17n.org>
15316
15317 * coding.c (Fdefine_coding_system_internal)
15318 (Fdefine_coding_system_alias): Avoid a duplicated element in
15319 Vcoding_system_alist.
15320
153212008-02-01 Kenichi Handa <handa@m17n.org>
15322
15323 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15324
15325 * coding.c (Qcoding_system_define_form): New variable.
15326 (syms_of_coding): Intern and staticpro it.
15327 (Fcoding_system_p): Check Qcoding_system_define_form.
15328 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15329
15330 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15331 Fcoding_system_p.
15332 (CHECK_CODING_SYSTEM): If ID is not available, call
15333 Fcheck_coding_system.
15334 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15335 Try also Fcheck_coding_system.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * coding.c (code_conversion_restore): GCPRO arg.
15340
153412008-02-01 Kenichi Handa <handa@m17n.org>
15342
15343 * character.c (lisp_string_width): Check multibyteness of STRING.
15344
153452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15346
15347 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15348 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15349 (decode_mac_font_name): Use decode_coding_c_string instead of
15350 decode_coding.
15351 (x_load_font): Initialize fontp->fontset to -1. Set
15352 fontp->encoding_type.
15353
153542008-02-01 Kenichi Handa <handa@m17n.org>
15355
15356 * search.c (search_buffer): Give up BM search on case-fold-search
15357 if one of a target character has a case-equivalence of different
15358 byte length even if that target charcter is an ASCII.
15359 (simple_search): Fix calculation of byte length of matched text.
15360 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15361
153622008-02-01 Kenichi Handa <handa@m17n.org>
15363
15364 * coding.c (decode_coding): Fix handling of invalid bytes.
15365
153662008-02-01 Kenichi Handa <handa@m17n.org>
15367
15368 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15369 Unicode characters.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * coding.c (encode_coding_object): If a pre-write-conversion
15374 function makes a new buffer, kill it.
15375
153762008-02-01 Kenichi Handa <handa@m17n.org>
15377
15378 * coding.c (QCascii_compatible_p): New variable.
15379 (syms_of_coding): Initialize it.
15380 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15381 calling string_char.
15382 (record_conversion_result): Add `default:' case.
15383 (coding_charset_list): Delete unused variable `coding_type'.
15384 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15385 property in the plist of the coding system.
15386 (Fcoding_system_put): Check QCascii_compatible_p.
15387
153882008-02-01 Miles Bader <miles@gnu.org>
15389
15390 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15391 removed calculation of frame `f', as it's now used.
15392
153932008-02-01 Kenichi Handa <handa@m17n.org>
15394
15395 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15396 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15397 (UNIDATA): New variable.
15398 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15399 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15400 $(RUN_TEMACS) unconditionally.
15401
154022008-02-01 Kenichi Handa <handa@m17n.org>
15403
15404 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15405 (admindir): New variable.
15406 ($(lispsource)international/charprop.el): New target.
15407
154082008-02-01 Miles Bader <miles@gnu.org>
15409
15410 * character.c (chars-in-region): Remove obsolete function.
15411 (syms_of_character): Remove its initialization.
15412
154132008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15414
15415 * w32select.c (validate_coding_system)
15416 (setup_windows_coding_system): New functions.
15417 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15418 setup_windows_coding_system.
15419 (setup_config, Fw32_get_clipboard_data): Use
15420 validate_coding_system.
15421 (Fx_selection_exists): Move call to setup_config to a place
15422 where signals are allowed.
15423
15424 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15425 (Fcheck_coding_system): Add declarations.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15430
154312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15432
15433 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15434 string as the second argument for x_new_fontset.
15435
154362008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15439 (encode_coding_object): Use safe_call instead of call2.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15444
15445 * Makefile.in (lisp): Include charprop.el.
15446
154472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15448
15449 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15450 Not sure if it's unnecessary.
15451
154522008-02-01 Steven Tamm <steventamm@mac.com>
15453
15454 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15455 some possibly unnecessary fontset checking code that crashed
15456 when creating a new frame.
15457
154582008-02-01 Kenichi Handa <handa@m17n.org>
15459
15460 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15461 lookup_face.
15462
15463 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15464
15465 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15470 (coding_charset_list): New function.
15471
15472 * coding.h (coding_charset_list): Extern it.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15477 concatenation of family and registry.
15478
154792008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * character.h (BYTE8_STRING): Fix typo.
15482
15483 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15484 string to multibyte (sync to HEAD).
15485
15486 * casefiddle.c (casify_region): Handle changes in byte-length
15487 using replace_range_2 (sync to HEAD).
15488
154892008-02-01 Andreas Schwab <schwab@suse.de>
15490
15491 * chartab.c (map_char_table): GCPRO table and arg.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15496 already at limit.
15497
154982008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15501 instead of fast_c_string_match_ignore_case.
15502 (find_font_encoding): Change argument to Lisp_Object. Use
15503 fast_string_match_ignore_case instead of
15504 fast_c_string_match_ignore_case. Change caller.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * xdisp.c (get_next_display_element): In unibyte case, decide to
15509 display in octal form by checking a character by
15510 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15511
15512 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15513
15514 * character.c (unibyte_has_multibyte_table): New variable.
15515
15516 * character.h (unibyte_has_multibyte_table): Extern it.
15517 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * coding.c (encode_coding_iso_2022): Fix handling of charset
15522 annotation.
15523
155242008-02-01 Kenichi Handa <handa@m17n.org>
15525
15526 * coding.c (setup_coding_system): If coding_system is nil, use
15527 Qundecided.
15528 (Fterminal_coding_system): Return nil if terminal coding system is
15529 `undecided'.
15530 (syms_of_coding): Define coding-system `undecided' here. Setup
15531 terminal_coding as `undecided'.
15532
155332008-02-01 Kenichi Handa <handa@m17n.org>
15534
15535 * xdisp.c (message_dolog, set_message_1): Call
15536 unibyte_char_to_multibyte with arg type int.
15537
15538 * lread.c (read1): Fix reading of a char-table.
15539
15540 * print.c (print_object): Include sub char-table in circularities
15541 detection.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15546 Append the found sequences in car of ARGS instead of prepending.
15547
155482008-02-01 Kenichi Handa <handa@m17n.org>
15549
15550 * fileio.c (report_file_error): Make a unibyte string from
15551 strerror (errorno).
15552 (Fsubstitute_in_file_name): Fix the arg to
15553 unibyte_char_to_multibyte. It is evaluated twice.
15554
155552008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15558
155592008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15562 BOM is not found.
15563 (detect_coding, detect_coding_system): Optimization for ISO-2022
15564 when no 8-bit data is found.
15565
155662008-02-01 Jason Rumney <jasonr@gnu.org>
15567
15568 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15569
155702008-02-01 Kenichi Handa <handa@m17n.org>
15571
15572 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15573 CHARS.
15574
155752008-02-01 Steven Tamm <steventamm@mac.com>
15576
15577 * macterm.c (mac_encode_char): Add charset argument and update
15578 to use encoding_type.
15579 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15580 switch to pure fontset.
15581 (decode_mac_font_name): Temporarily remove decoding.
15582 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15583 (x_load_font): Temporarily remove encoding.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * xfaces.c (Fface_font): If frame is not on a window system,
15588 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15589 refer to face->font.
15590 (split_font_name_into_vector, build_font_name_from_vector)
15591 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15592 when HAVE_WINDOW_SYSTEM is defined.
15593
155942008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15597 (x_produce_glyphs): Fix setting of members of cmp in case
15598 cmp->glyph_len is zero.
15599
15600 * fontset.c (Fset_fontset_font): Fix docstring.
15601 (Ffontset_info): Make it backward compatible. New arg ALL.
15602
156032008-02-01 Kim F. Storm <storm@cua.dk>
15604
15605 * process.c (read_process_output): Grow decoding_buf when needed;
15606 this could cause a crash in allocate_string and compact_small_strings.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15611
156122008-02-01 Kenichi Handa <handa@m17n.org>
15613
15614 * coding.c (setup_coding_system): Set coding->common_flags
15615 correctly for raw-text.
15616 (consume_chars): On encoding unibyte text by raw-text, don't check
15617 multibyte form.
15618 (encode_coding): On encoding by raw-text, never use translation tables.
15619
15620 * fileio.c (e_write): Short cut for the case of no encoding.
15621
156222008-02-01 Kenichi Handa <handa@m17n.org>
15623
15624 * coding.c (detect_coding, detect_coding_system): Delete unused
15625 variables.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15630 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15631
156322008-02-01 Kenichi Handa <handa@m17n.org>
15633
15634 * coding.c (Ffind_coding_systems_region_internal): Include
15635 raw-text and no-conversion in the result.
15636
156372008-02-01 Kenichi Handa <handa@m17n.org>
15638
15639 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15640 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15641 FONT_DEF.
15642 (font_def_arg, add_arg, from_arg, to_arg): New args.
15643 (set_fontset_font): Change argument.
15644 (Fset_fontset_font): Fix for the case that TARGET is a script
15645 name and charset name.
15646 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15647
156482008-02-01 Kenichi Handa <handa@m17n.org>
15649
15650 * fontset.c (fontset_font): Rename from fontset_face. Change return
15651 value.
15652 (face_suitable_for_char_p, face_for_char): Adjust for the change
15653 of fontset_font.
15654 (make_fontset_for_ascii_face): Fix setting of the fontset element
15655 for ASCII.
15656 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15657 to get a font name.
15658 (Ffontset_info): Adjust for the change of fontset_font.
15659
15660 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15661
15662 * character.h (LEADING_CODE_LATIN_1_MIN)
15663 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15664
156652008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * editfns.c (check_translation): New function.
15668 (Ftranslate_region_internal): Handle M:N mapping.
15669
156702008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15673
156742008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15677 goto invalid_code.
15678 (decode_coding_iso_2022): Fix handling of invalid designation.
15679
15680 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15681 after calling code_conversion_save.
15682
156832008-02-01 Kenichi Handa <handa@m17n.org>
15684
15685 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15686
15687 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15688
15689 * fontset.c: Include "intervals.h".
15690 (fontset_face): Fix comparing of Lisp_Objects.
15691 (free_face_fontset, new_fontset_from_font_name): Fix
15692 Lisp_Object/int mixup.
15693
15694 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15695
15696 * coding.c: Add many prototypes for static functions.
15697 (get_translation_table): Allow max_lookup to be NULL.
15698 (decode_coding, Ffind_coding_systems_region_internal)
15699 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15700 get_translation_table with max_lookup NULL.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * coding.c (get_translation_table): Declare it as Lisp_Object.
15705 (LOOKUP_TRANSLATION_TABLE): New macro.
15706 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15707 instead of CHAR_TABLE_REF.
15708
157092008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15712 annotation data format.
15713 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15714 Change arguments FROM and TO to single argument NCHARS. Change caller.
15715 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15716 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15717 (decode_coding_ccl, decode_coding_charset): Pay attention to
15718 coding->charbuf_used.
15719 (get_translation): New function.
15720 (produce_chars): New arguments translation_table and last_block.
15721 Translate characters here. Return number of carryover chars.
15722 Change caller.
15723 (produce_composition): New argument pos. Change caller.
15724 Adjust for the change of annotation data format.
15725 (produce_charset, produce_annotation): Likewise.
15726 (decode_coding, encode_coding): Don't call translate_chars.
15727 (consume_chars): New arg translation_table. Change caller.
15728 (translate_chars): Delete.
15729 (syms_of_coding): Make translation-table's number of extra slots 2.
15730
157312008-02-01 Kenichi Handa <handa@m17n.org>
15732
15733 * search.c (simple_search): Fix setting this_pos_byte in backward
15734 search.
15735
15736 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15737 byte sequence.
15738 (detect_coding_ccl): Fix setting of the variable valids.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15743
15744 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15745
15746 * editfns.c (Ftranslate_region_internal): Rename from
15747 Ftranslate_region. Accept a char-table in TABLE.
15748 (syms_of_editfns): Defsubr Stranslate_region_internal.
15749
15750 * xfaces.c (set_lface_from_font_name): If a font is specified for
15751 a frame, generate a fontset from the font.
15752 (build_scalable_font_name): If the scalable font is requested for
15753 a specific size, don't change that size.
15754 (try_font_list): Try a scalable font also in the case that a
15755 pattern string is specified.
15756
157572008-02-01 Kenichi Handa <handa@m17n.org>
15758
15759 * xfaces.c (Fface_font): New optional arg CHARACTER.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 * charset.h (CHARSET_OFFSET): New macro.
15764
157652008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15768
15769 * fontset.c (fontset_face): Handle the case that repertory is a
15770 char-table.
15771 (find_font_encoding): Return nil for unknown encoding.
15772 (Fset_fontset_font): Ignore a font of unknown encoding.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * keymap.c (describe_vector): Handle default value of a char table.
15777
15778 * fontset.c (fontset_face): Handle fallback fonts correctly.
15779 (Ffontset_info): Return infomation about fallback fonts.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * fontset.c (FONTSET_DEFAULT): New macro.
15784 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15785 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15786 the case that it is nil.
15787 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15788 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15789
15790 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15791 subset or superset.
15792
157932008-02-01 Kenichi Handa <handa@m17n.org>
15794
15795 * emacs.c (main): Call init_charset after syms_of_XXX.
15796
15797 * charset.c (Vcharset_map_directory): Delete.
15798 (Vcharset_map_path): New variable.
15799 (load_charset_map_from_file): Use Vcharset_map_path instead.
15800 (init_charset): Initialize Vcharset_map_path.
15801 (syms_of_charset): Delete declaration of "charset-map-directory",
15802 add declaration of "charset-map-path".
15803
158042008-02-01 Kenichi Handa <handa@m17n.org>
15805
15806 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15807 ASCII only string.
15808
15809 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15810
15811 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15812 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15813
158142008-02-01 Kenichi Handa <handa@m17n.org>
15815
15816 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15817
15818 * coding.c (QCmnemonic, QCdefalut_char)
15819 (QCdecode_translation_table, QCencode_translation_table)
15820 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15821 (get_translation_table): Return a list of translation tables if
15822 necessary.
15823 (decode_coding): Call get_translation_table with ENCODEP 0.
15824 (char_encodable_p): If translation_table is non-nil, always call
15825 translate_char.
15826 (Fdefine_coding_system_internal): Accept list of translation
15827 tables as :encode-translation-table and :decode-translation-table.
15828 (Fcoding_system_put): New function.
15829 (syms_of_coding): Declare new symbols. Defsubr
15830 Scoding_system_put.
15831 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15832 typically JISX0212.
15833
15834 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15835 when the charset is superset type.
15836
15837 * character.c (translate_char): Accept list of translation tables.
15838
158392008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15842 (CODING_ATTR_TRANS_TBL): New macro.
15843
15844 * coding.c (get_translation_table): New function.
15845 (translate_chars): Fix the bug of skipping annotation data.
15846 (decode_coding, encode_coding): Utilize get_translation_table.
15847 (char_encodable_p, Funencodable_char_position): Translate char if
15848 necessary.
15849 (Ffind_coding_systems_region_internal)
15850 (Fcheck_coding_systems_region): Setup translation table for encode
15851 in a coding system attribute vector in advance.
15852 (Fdefine_coding_system_internal): Allow a symbol as translation
15853 table. For shift-jis type coding system, allow 4th charset.
15854
158552008-02-01 Kenichi Handa <handa@m17n.org>
15856
15857 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15858
15859 * xdisp.c (get_next_display_element): Pass -1 as POS to
15860 FACE_FOR_CHAR if displaying a C-string.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * composite.c (get_composition_id): Handle xoff and yoff in a
15865 composition rule.
15866
15867 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15868 (struct composition): New member lbearing and rbearing.
15869
15870 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15871 (x_get_glyph_overhangs): Handle a composition glyph.
15872 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15873
15874 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15875 composition glyph.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * print.c: Include charset.h.
15880 (Vprint_charset_text_property): New variable.
15881 (Qdefault): Extern it.
15882 (PRINT_STRING_NON_CHARSET_FOUND)
15883 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15884 (print_check_string_result): New variable.
15885 (print_check_string_charset_prop): New function.
15886 (print_prune_charset_plist): New variable.
15887 (print_prune_string_charset): New function.
15888 (print_object): Call print_prune_string_charset if
15889 Vprint_charset_text_property is not t.
15890 (print_interval): Print nothing if interval->plist is nil.
15891 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15892 variable. Init and staticpro print_prune_charset_plist.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * fontset.c (new_fontset_from_font_name): Use the specified font
15897 for all characters in the new fontset.
15898
15899 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15900 OBJECT args.
15901
15902 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15903 OBJECT args for composition too.
15904
15905 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15906 OBJECT args.
15907
159082008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15911
15912 * fontset.c (reorder_font_vector): Adjust for the change of
15913 FONT_DEF format.
15914 (fontset_face): New arg id. Change caller.
15915 (face_for_char): New args pos and object.
15916 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15917 (fs_query_fontset): Check NAME by Fassoc too.
15918 (Fset_fontset_font): Allow non-XLFD font name.
15919 (Ffontset_info): Adjust for the change of FONT_DEF format.
15920
15921 * fontset.h (face_for_char): Adjust prototype.
15922
15923 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15924 (append_space, extend_face_to_end_of_line)
15925 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15926 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15927
15928 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15929 POS and OBJECT args.
15930
15931 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15932 POS and OBJECT args.
15933
159342008-02-01 Jason Rumney <jasonr@gnu.org>
15935
15936 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15937 of GlobalAlloc'ed memory.
15938
159392008-02-01 Kenichi Handa <handa@m17n.org>
15940
15941 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15942
15943 * charset.h (charset_table_used): Delete extern.
15944
15945 * charset.c (charset_table_used): Make it static.
15946 (map_charset_chars): Fix args to c_function with.
15947
15948 * chartab.c (map_sub_char_table_for_charset): Fix args to
15949 c_function with.
15950
15951 * coding.h (enum coding_result_code): Delete
15952 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15953
15954 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15955 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15956 (Vlast_code_conversion_error): New variables.
15957 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15958 (ONE_MORE_BYTE): Record error if any instead of signaling an
15959 error. If non-ASCII multibyte char is found, return the negative
15960 value of the code. All callers changed to check it.
15961 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15962 (record_conversion_result): New function. Change all codes setting
15963 coding->result to call this function.
15964 (detect_coding_utf_8, decode_coding_utf_8)
15965 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15966 Don't use the local variable incomplete.
15967 (emacs_mule_char): Change the second arg to `const'.
15968 (decode_coding): Fix of flushing out unprocessed data.
15969 (make_conversion_work_buffer): Fix making of a work buffer.
15970 (decode_coding_object): Return coding->dst_object.
15971
15972 * fontset.c (set_fontset_font): Fix args.
15973
15974 * lisp.h (CHARACTERBITS): Define as 22.
15975
15976 * process.c (send_process): Be sure to set coding->src_multibyte.
15977
15978 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * xdisp.c (handle_auto_composed_prop): Give limit to
15983 Fnext_single_char_property_change.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * composite.c (syms_of_composite): Don't make the composition hash
15988 table weak.
15989
15990 * fontset.c (Fset_fontset_font): Fix docstring.
15991
15992 * lisp.h (detect_coding_system): Adjust prototype.
15993
15994 * fileio.c (kill_workbuf_unwind): Delete this function.
15995 (Finsert_file_contents): Adjust the call of detect_coding_system.
15996 Get conversion_buffer by code_conversion_save. Use the macro
15997 CODING_MAY_REQUIRE_DECODING. After decoding, update
15998 coding_system.
15999
16000 * coding.h (make_conversion_work_buffer): Delete extern.
16001 (code_conversion_save): Extern it.
16002
16003 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16004 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16005 (decode_coding_utf_8): Don't do eol converion.
16006 (detect_coding_utf_16): Check coding->src_chars, not
16007 coding->src_bytes. Add heuristics for those that have no signature.
16008 (decode_coding_emacs_mule, decode_coding_iso_2022)
16009 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16010 Don't do eol converion.
16011 (adjust_coding_eol_type): Return a new coding system.
16012 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16013 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16014 each change.
16015 (decode_coding): Pay attention to undo_list. Do eol conversion for
16016 all types of coding-systems (if necessary).
16017 (Vcode_conversion_work_buf_list): Delete it.
16018 (Vcode_conversion_reused_workbuf): Rename from
16019 Vcode_conversion_reused_work_buf.
16020 (Vcode_conversion_workbuf_name): New variable.
16021 (reused_workbuf_in_use): New variable.
16022 (make_conversion_work_buffer): Delete the arg DEPTH.
16023 (code_conversion_restore): Change argument to cons.
16024 (code_conversion_save): Delete the argument BUFFER. Change callers.
16025 (detect_coding_system): New argument src_chars. Change callers.
16026 Fix for utf-16 detection.
16027 (init_coding_once): Don't use ISO_carriage_return.
16028 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16029 reused_workbuf_in_use.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * keymap.c (store_in_keymap): Pay attention to the case that idx
16034 is a cons specifying a character range.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16039 HANDLED_RECOMPUTE_PROPS.
16040
16041 * coding.c (Fdefine_coding_system_internal): Fix checking of
16042 ascii compatibility.
16043
160442008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * charset.c (find_charsets_in_text): Delete unused locale variable.
16047 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16048
16049 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16050 Resync charset_list to Vemacs_mule_charset_list.
16051
16052 * keymap.c (store_in_keymap): Pay attention to the case that idx
16053 is a cons specifying a character range.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * composite.c (update_compositions): Bind inhibit-read-only, etc
16058 to t before calling remove-list-of-text-properties.
16059
16060 * print.c (print_object): Always print ASCII chars as is.
16061
160622008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16065
16066 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16067 is a char table.
16068
160692008-02-01 Kenichi Handa <handa@m17n.org>
16070
16071 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16072
160732008-02-01 Kenichi Handa <handa@m17n.org>
16074
16075 * xfaces.c (set_lface_from_font_name): Fix for the case that
16076 FONTNAME is not fontset name.
16077
160782008-02-01 Kenichi Handa <handa@m17n.org>
16079
16080 * fns.c (base64_encode_1): Fix previous change.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * fontset.c (set_fontset_font): New function.
16085 (Fset_fontset_font): If a font is specified for a charset, use
16086 map_charset_chars to store the font spec in a fontset.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * fontset.c (fontset_face): Create a fallback fontset on demand.
16091 (make_fontset): Don't create a fallback fontset here.
16092 (free_face_fontset): Free a fallback fontset (if any) too.
16093 (n_auto_fontsets): Delete this variable.
16094 (auto_fontset_alist): New variable.
16095 (new_fontset_from_font_name): Check auto_fontset_alist.
16096 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16097 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16098 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16099 Defsubr Sfontset_list_all.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16104
161052008-02-01 Kenichi Handa <handa@m17n.org>
16106
16107 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * editfns.c (Fgoto_char): Fix docstring.
16112
161132008-02-01 Kenichi Handa <handa@m17n.org>
16114
16115 * insdel.c (insert_from_gap): Adjust intervals correctly.
16116
161172008-02-01 Jason Rumney <jasonr@gnu.org>
16118
16119 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16120 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16121 (w32_initialize): Try to load it.
16122 (x_get_font_repertory): Use it if available.
16123 (w32_encode_char): Add shortcut for unicode output.
16124
16125 * w32fns.c (w32_load_system_font): Default charset to -1.
16126 (x_to_w32_charset): Match all fonts for unicode.
16127 (w32_to_x_charset): New parameter matching. Don't return partial
16128 or wildcard charsets.
16129 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16130 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16131 (w32_to_x_font): Match charset to real charset.
16132 (enum_font_cb2): Always list unicode versions.
16133
16134 * makefile.w32-in (temacs): Increase EMHEAP.
16135
161362008-02-01 Jason Rumney <jasonr@gnu.org>
16137
16138 * w32term.c (w32_encode_char): New charset parameter.
16139 font_info.encoding becomes encoding_type.
16140 (x_get_font_repertory): New function. Warning: stub only!
16141 (x_new_font): Return quickly if font already set.
16142 (x_new_fontset): fontsetname parameter is Lisp_Object.
16143 Use new fs_query_fontset. Try new_fontset_from_font_name.
16144 Use fontset_name for return value.
16145
16146 * w32term.h: Declare x_get_font_repertory.
16147
16148 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16149 place of find_charset_in_text. Use encode_coding_object in place
16150 of encode_coding.
16151 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16152 decode_coding.
16153
16154 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16155 of x_new_fontset.
16156 (w32_load_system_font): Initialize charset as unicode.
16157 font_info.encoding becomes encoding_type.
16158 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16159 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16160 (syms_of_w32fns): Set get_font_repertory_func.
16161
16162 * w32console.c: Include character.h. Use terminal_encode_buffer
16163 from term.c.
16164 (write_glyphs): Use new version of encode_terminal_code. Use
16165 encode_coding_object in place of encode_coding.
16166
16167 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16168 encoding becomes encoding_type.
16169
16170 * term.c (terminal_encode_buffer): Make externally visible.
16171
16172 * makefile.w32-in: Add character.h dependancies.
16173 (character.o, chartab.o): New targets.
16174
161752008-02-01 Kenichi Handa <handa@m17n.org>
16176
16177 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16178 CODING_ID_EOL_TYPE.
16179
161802008-02-01 Andreas Schwab <schwab@suse.de>
16181
16182 * coding.c (produce_chars): Revert last change.
16183
161842008-02-01 Kenichi Handa <handa@m17n.org>
16185
16186 * charset.h (charset_unicode): Extern it.
16187
16188 * charset.c (string_xstring_p): Check by (C >= 0x100).
16189 (find_charsets_in_text): Change format of the arc CHARSETS. New
16190 arg MULTIBYTE.
16191 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16192 change of find_charsets_in_text.
16193 (Fsplit_char): Fix doc. Never return unknown.
16194
16195 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16196
16197 * coding.c (Fdefine_coding_system_alias): Update
16198 Vcoding_system_list.
16199
16200 * fontset.c (load_font_get_repertory): Pay attention to the case
16201 that ENCODING of a font is specified by a char-table.
16202
16203 * xterm.c (x_get_font_repertory): Handle the case that the
16204 encoding of font is other than Unicode.
16205
162062008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16209 if a character is encodable by the terminal coding system. If
16210 not, produces proper number of `?'s. Update
16211 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16212 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16217 variables.
16218 (encode_terminal_code): Change argument. Encode multiple
16219 characters at once. Store the result of encoding in
16220 terminal_encode_buffer.
16221 (write_glyphs, insert_glyphs): Adjust for the change of
16222 encode_terminal_code.
16223 (term_init): Initialize terminal_encode_buffer and
16224 terminal_encode_buf_size.
16225
16226 * coding.c (consume_chars): If coding->src_object is nil, don't
16227 check annotation.
16228
162292008-02-01 Kenichi Handa <handa@m17n.org>
16230
16231 * character.c (char_string): Use ASCII_CHAR_P instead of
16232 SINGLE_BYTE_CHAR_P.
16233
162342008-02-01 Kenichi Handa <handa@m17n.org>
16235
16236 * xdisp.c (handle_auto_composed_prop): Check if the last
16237 characters of auto-composed region is newly composed with the
16238 following characters.
16239 (handle_composition_prop): Fix checking of point being inside
16240 composition.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * fns.c (concat): Don't change multibyteness of the result by
16245 concatenating an 8-bit character.
16246
16247 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16248 multibyteness of the result when newelt is an 8-bit character.
16249
162502008-02-01 Dave Love <fx@gnu.org>
16251
16252 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16253 EMACS_INT.
16254
16255 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16256
16257 * xfaces.c (face_numeric_value): Declare dim size_t.
16258 (Finternal_lisp_face_equal_p): Remove unused f.
16259
16260 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16261 (MATRIX_ROW): Remove unused vars.
16262 (draw_glyphs, x_insert_glyphs, fast_find_position)
16263 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16264 byte/char counts.
16265
16266 * regex.c (regex_compile): Remove unused var.
16267
16268 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16269
16270 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16271 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16272
16273 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16274
16275 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16276
16277 * fileio.c (Fwrite_region): Remove unused var.
16278
16279 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16280 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16281
16282 * composite.c (Fremove_list_of_text_properties): Declare.
16283
16284 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16285 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16286 (coding_inherit_eol_type): Remove unused attrs.
16287 (detect_coding): Cast arg of detect_eol.
16288
16289 * charset.c (syms_of_charset): Remove unused var p.
16290 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16291 byte/char counts.
16292
16293 * casetab.c (set_case_table): Remove unused var.
16294
16295 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16296 unused vars.
16297
162982008-02-01 Dave Love <fx@gnu.org>
16299
16300 * xterm.c (x_bitmap_mask): Declare.
16301
163022008-02-01 Dave Love <fx@gnu.org>
16303
16304 * xterm.c (x_term_init): Fix type error.
16305
16306 * lisp.h: Add Funibyte_char_to_multibyte.
16307
16308 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16309 (Fset_coding_system_priority): Doc fix.
16310
16311 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16312
16313 * indent.c (check_composition): Make start and end EMACS_INT.
16314
16315 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16316
16317 * xdisp.c (handle_composition_prop, check_point_in_composition):
16318 Make buffer positions EMACS_INT.
16319
16320 * composite.c (find_composition, run_composition_function)
16321 (update_compositions, Ffind_composition_internal): Make buffer
16322 positions EMACS_INT.
16323
16324 * composite.h (find_composition, update_compositions): Make
16325 position args EMACS_INT.
16326
16327 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16328
16329 * intervals.c (get_property_and_range):
16330 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16331
16332 * unexalpha.c: Don't include varargs.h.
16333
163342008-02-01 Dave Love <fx@gnu.org>
16335
16336 * coding.h (ENCODE_UTF_8): New.
16337
16338 * Makefile.in (gtkutil.o): Depend on coding.h.
16339
16340 * coding.c (Fset_coding_system_priority): Doc fix.
16341
163422008-02-01 Kenichi Handa <handa@m17n.org>
16343
16344 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16345 the case of auto saving.
16346
163472008-02-01 Andreas Schwab <schwab@suse.de>
16348
16349 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16350 `range' from GC.
16351
163522008-02-01 Kenichi Handa <handa@m17n.org>
16353
16354 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * fileio.c (choose_write_coding_system): Return a decided coding system.
16359 (Fwrite_region): Set Vlast_coding_system_used to the return value
16360 of choose_write_coding_system.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * charset.c (Fset_charset_priority): Pay attention to duplicated
16365 arguments.
16366
16367 * coding.c (QCcategory): New variable.
16368 (syms_of_coding): Defsym it. Set all elements of
16369 Vcoding_category_table and their symbol values.
16370 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16371 coding-category-XXX, and coding-category-list.
16372 (Fdefine_coding_system_internal): Add category in the plist.
16373
163742008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * callproc.c (Fcall_process): Handle carryover correctly.
16377
16378 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16379 (raw_text_coding_system): Check NILP (coding_system).
16380 (coding_inherit_eol_type): Check NILP (coding_system) and
16381 NILP (parent).
16382 (consume_chars): Fix for the case of raw-text.
16383
16384 * process.c (read_process_output): Handle carryover correctly.
16385
163862008-02-01 Dave Love <fx@gnu.org>
16387
16388 * regex.c (re_search_2): Fix last change.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16393 target_multibyte. Even in a unibyte case, return a converted
16394 multibyte char.
16395 (GET_CHAR_AFTER): New macro.
16396 (PATFETCH): Translate via multibyte char.
16397 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16398 (SETUP_MULTIBYTE_RANGE): New macro.
16399 (regex_compile): Setup compiled code so that its multibyteness
16400 matches that of a target. Fix the handling of "[X-YZ]" using
16401 SETUP_MULTIBYTE_RANGE.
16402 (analyse_first) <charset>: For filling fastmap for all multibyte
16403 characters, don't check by BASE_LEADING_CODE_P.
16404 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16405 the same as RE_MULTIBYTE_P (bufp) now.
16406 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16407 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16408 (TRANSLATE_VIA_MULTIBYTE): New macro.
16409 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16410 It is the same as RE_MULTIBYTE_P (bufp) now.
16411 <exactn>: Translate via multibyte.
16412 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16413 translate it.
16414 <charset, charset_not>: Fetch a character by
16415 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16416 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16417 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16418 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16419 by GET_CHAR_AFTER.
16420 (bcmp_translate): Likewise.
16421
16422 * search.c (compile_pattern): Check the member target_multibyte,
16423 not the member multibyte of buf.
16424
16425 * lread.c (read1): While reading a string, set force_singlebyte
16426 and force_multibyte correctly.
16427
16428 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16429 up of unibyte_to_multibyte_table.
16430
164312008-02-01 Kenichi Handa <handa@m17n.org>
16432
16433 * coding.c (setup_coding_system): If coding has
16434 post-read-conversion or pre-write-conversion, set
16435 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16436 respectively.
16437 (decode_coding_gap): Run post-read-conversion if any.
16438
16439 * fileio.c (Finsert_file_contents): Even if we read into a
16440 unibyte buffer, check if we must decode the result or not.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (make_conversion_work_buffer): Change the work buffer
16445 name to the same one as that of Emacs 21.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * coding.h (make_conversion_work_buffer): Adjust prototype.
16450 (code_conversion_restore): Don't extern it.
16451
16452 * coding.c (detected_mask): Delete unused variable.
16453 (decode_coding_iso_2022): Pay attention to the byte sequence of
16454 CTEXT extended segment, and retain those bytes as is.
16455 (decode_coding_ccl): Delete unused variable `valids'.
16456 (setup_coding_system): Delete unused variable `category'.
16457 (consume_chars): Delete unused variable `category'. Make it work
16458 for non-multibyte case.
16459 (make_conversion_work_buffer): Change argument.
16460 (saved_coding): Delete unused variable.
16461 (code_conversion_restore): Don't check saved_coding->destination.
16462 (code_conversion_save): New function.
16463 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16464 instead of record_unwind_protect.
16465 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16466 (detect_coding_system): Delete unused variable `mask'.
16467 (Fdefine_coding_system_internal): Delete unused variable id.
16468
16469 * fileio.c (kill_workbuf_unwind): New function.
16470 (Finsert_file_contents): On replacing, call
16471 make_conversion_work_buffer with correct args, and call
16472 record_unwind_protect with the first arg kill_workbuf_unwind.
16473
16474 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16475
164762008-02-01 Kenichi Handa <handa@m17n.org>
16477
16478 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16479 (fontset_add): Fix for the case that TO is less than TO1.
16480 (Ffontset_info): Don't use fallback fontset on checking the
16481 default fontset.
16482 (dump_fontset): New function for debugging.
16483
16484 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16485 coding_type is Qcharset.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16490 (map_char_table): Don't inherit the value from the parent on
16491 initializing VAL. Adjust for the above change.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * coding.c (Qsignature, Qendian): Delete these variables.
16496 (syms_of_coding): Don't initialize them.
16497 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16498 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16499 detect_info->found.
16500 (decode_coding_utf_16): Don't detect BOM here.
16501 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16502 is NOT utf_16_without_bom.
16503 (setup_coding_system): For a coding system of type utf-16, check
16504 if the attribute :endian is Qbig or not (not nil or not), and set
16505 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16506 (detect_coding): If coding type is utf-16 and BOM detection is
16507 required, detect it.
16508 (Fdefine_coding_system_internal): For a coding system of type
16509 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * coding.c (coding_set_source): Fix for the case that the current
16514 buffer is different from coding->src_object.
16515 (decode_coding_object): Don't use the conversion work buffer if
16516 DST_OBJECT is a buffer.
16517
165182008-02-01 Dave Love <fx@gnu.org>
16519
16520 * lread.c (read_emacs_mule_char) [len==2]: Index
16521 emacs_mule_charset correctly.
16522
165232008-02-01 Dave Love <fx@gnu.org>
16524
16525 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16526 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16527 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16528 treated specially.)
16529 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16530 (detected_mask): Remove Big5 bits.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 The following changes are to make the font rescaling facility
16535 compatible with Emacs 21.
16536
16537 * xfaces.c (Vface_font_rescale_alist): Rename from
16538 Vface_resizing_fonts.
16539 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16540 (font_rescale_ratio): Rename from font_resizing_ratio.
16541 (split_font_name): Set font->rescale_ratio.
16542 (better_font_p): Pay attention to font->rescale_ratio.
16543 (build_scalable_font_name): Likewise. Change RESX, and RESY
16544 fields.
16545 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16550 (Qutf_16_le): Remove these variables.
16551 (syms_of_coding): Don't DEFSYM them.
16552 (decode_coding_utf_16): Fix handling of BOM.
16553 (encode_coding_utf_16): Fix handling of BOM.
16554
165552008-02-01 Kenichi Handa <handa@m17n.org>
16556
16557 * fileio.c (Finsert_file_contents): On replacing, before decoding
16558 the file into the work buffer, set point of the work buffer to the end.
16559
165602008-02-01 Dave Love <fx@gnu.org>
16561
16562 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16563
165642008-02-01 Dave Love <fx@gnu.org>
16565
16566 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16567 and fix C types.
16568
165692008-02-01 Kenichi Handa <handa@m17n.org>
16570
16571 * xdisp.c (SKIP_GLYPHS): New macro.
16572 (set_cursor_from_row): Pay attention to string display properties.
16573
16574 * category.c (copy_category_entry): Fix for the case that RANGE
16575 is an integer.
16576
16577 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16578
16579 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16580
165812008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 * charset.c (Fcharset_id_internal): New function.
16584 (syms_of_charset): Defsubr it.
16585
16586 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16587 with the last arg charset_list acquired from coding.
16588 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16589 the attribute coding_attr_ccl_valids.
16590
16591 * coding.h (enum define_coding_ccl_arg_index): Set the first
16592 member coding_arg_ccl_decoder to coding_arg_max.
16593
16594 * ccl.h (ccl_driver): Adjust prototype.
16595
16596 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16597 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16598 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16599 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16600 last arg Qnil.
16601
166022008-02-01 Kenichi Handa <handa@m17n.org>
16603
16604 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16605 call encode_char.
16606
16607 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16608
166092008-02-01 Dave Love <fx@gnu.org>
16610
16611 * composite.c (syms_of_composite): Make composition_hash_table weak.
16612
166132008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16616 (font_name_registry): Don't extern them.
16617 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16618
16619 * fontset.h (Qfontset): Don't extern it.
16620 (new_fontset_from_font_name): Extern it.
16621
16622 * fontset.c: Give 8 extra slots to fontset objects.
16623 (Qfontset_info): New variable.
16624 (syms_of_fontset): Defsym it.
16625 (FONTSET_FALLBACK): New macro.
16626 (fontset_face): Try also the default fontset.
16627 (make_fontset): Realize a fallback fontset from the default fontset.
16628 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16629 using split_font_name_into_vector and build_font_name_from_vector.
16630 (Fset_fontset_font): Access the elements of font_spec by enum
16631 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16632 name by using split_font_name_into_vector.
16633 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16634 generate a proper font name from the fontset name. Update
16635 Vfontset_alias_alist.
16636 (n_auto_fontsets): New variable.
16637 (new_fontset_from_font_name): New function.
16638 (Ffont_info): Store the information about fonts generated from the
16639 default fontset in the first extra slot of the returned char-table.
16640
16641 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16642 (font_name_registry): Delete function.
16643 (split_font_name_into_vector): New function.
16644 (build_font_name_from_vector): New function.
16645 (font_list): The argument REGISTRY is now a list of registry names.
16646 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16647 specifies an explicit font name, return the name as is. Make a
16648 list of registy names.
16649
16650 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16651 of x_new_fontset.
16652 (Fx_create_frame): Don't call x_new_fontset here. Just use
16653 x_list_fonts to check the existence of fonts.
16654
16655 * xterm.h (x_new_fontset): Adjust prototype.
16656
16657 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16658 string. Use new_fontset_from_font_name to create a fontset from a
16659 font name.
16660
166612008-02-01 Kenichi Handa <handa@m17n.org>
16662
16663 * syntax.c (Vfind_word_boundary_function_table): New name for
16664 Vnext_word_boundary_function_table.
16665 (find-word-boundary-function-table): New name for
16666 next-word-boundary-function-table.
16667
166682008-02-01 Dave Love <fx@gnu.org>
16669
16670 * Makefile.in: Fix some dependencies.
16671
16672 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16673 set it to nil before returning.
16674
16675 * composite.c (update_compositions): Fix type error.
16676
16677 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * xterm.c (x_new_font): Optimize for the case that the font is
16682 already set for the frame.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * chartab.c (char_table_ascii): Check if the char table contents
16687 is sub-char-table or not.
16688 (char_table_set, char_table_set_range): Fix argument to
16689 char_table_ascii.
16690
16691 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16692 (detect_coding_utf_8, detect_coding_utf_16)
16693 (detect_coding_emacs_mule, detect_coding_iso_2022)
16694 (detect_coding_sjis, detect_coding_big5)
16695 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16696 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16697 sequence is valid in this coding system. Change callers.
16698 (MAX_ANNOTATION_LENGTH): New macro.
16699 (ADD_ANNOTATION_DATA): New macro.
16700 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16701 ADD_ANNOTATION_DATA. Change the format of annotation data.
16702 (ADD_CHARSET_DATA): New macro.
16703 (emacs_mule_char): New argument ID. Change callers.
16704 (decode_coding_emacs_mule, decode_coding_iso_2022)
16705 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16706 Produce charset annotation data in coding->charbuf.
16707 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16708 to charset annotation data in coding->charbuf.
16709 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16710 coding->common_flags if the coding system is iso-2022 based and
16711 uses designation.
16712 (produce_composition): Adjust for the new annotation data format.
16713 (produce_charset): New function.
16714 (produce_annotation): Handle charset annotation.
16715 (handle_composition_annotation, handle_charset_annotation): New
16716 functions.
16717 (consume_chars): Handle charset annotation. Utilize the above two
16718 functions.
16719 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16720 buffer, get the deleted text as a string and set
16721 coding->src_object to that string.
16722 (detect_coding, detect_coding_system): Use the new struct
16723 coding_detection_info.
16724
16725 * coding.h (struct coding_detection_info): New structure.
16726 (struct coding_system): Adjust prototype of the member `detector'.
16727 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16728
167292008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16732
167332008-02-01 Dave Love <fx@gnu.org>
16734
16735 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16736 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16737 to new local and nullify apropos_accumulate before returning.
16738 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16739
167402008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16743 correctly.
e3eea1fc 16744
aac0c6e3
MR
167452008-02-01 Dave Love <fx@gnu.org>
16746
16747 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 The following changes are to make character composition happen
16752 automatically on displaying.
16753
16754 * Makefile.in (lisp, shortlisp): Add composite.elc.
16755
16756 * composite.h (Qauto_composed, Vauto_composition_function)
16757 (Qauto_composition_function): Extern them.
16758
16759 * composite.c (Vcomposition_function_table)
16760 (Qcomposition_function_table): Delete variables.
16761 (Qauto_composed, Vauto_composition_function)
16762 (Qauto_composition_function): New variables.
16763 (run_composition_function): Don't call
16764 compose-chars-after-function.
16765 (update_compositions): Clear `auto-composed' text property.
16766 (compose_chars_in_text): Delete this function.
16767 (syms_of_composite): Staticpro Qauto_composed and
16768 Qauto_composition_function. Declare Vauto_composition_function as
16769 a Lisp variable.
16770
16771 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16772
16773 * xdisp.c (it_props): Add an entry for Qauto_composed.
16774 (handle_auto_composed_prop): New function.
16775
16776 * xselect.c (selection_data_to_lisp_data): Don't call
16777 compose_chars_in_text.
16778
167792008-02-01 Dave Love <fx@gnu.org>
16780
16781 * keyboard.c (read_char): Modify checking around use of
16782 Vkeyboard_translate_table.
16783
16784 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16785 and fix C types.
16786
167872008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16790 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16791 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16792 the case that the last byte is '\r' correctly.
16793 (decode_coding): Flush out the unprocessed data correctly.
16794 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16795
167962008-02-01 Dave Love <fx@gnu.org>
16797
16798 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16799 Add XK_ISO... case.
16800 (xaw_scroll_callback): Revert last change.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16805
168062008-02-01 Kenichi Handa <handa@m17n.org>
16807
16808 * xfaces.c (Vface_resizing_fonts): New variable.
16809 (struct font_name): New member `resizing_ratio'.
16810 (font_resizing_ratio): New function.
16811 (split_font_name): Set font->resizing_ratio.
16812 (better_font_p): Pay attention to font->resizing_ratio.
16813 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16814 RESX, and RESY fields.
16815 (try_alternative_families): Try scalable fonts if
16816 Vscalable_fonts_allowed is not Qt.
16817 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16818
168192008-02-01 Dave Love <fx@gnu.org>
16820
16821 * xterm.c (xaw_scroll_callback): Cast correctly.
16822
168232008-02-01 Dave Love <fx@gnu.org>
16824
16825 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16826 (lispy_kana_keys): Comment out.
16827 (make_lispy_event) [XK_kana_A]: Comment out.
16828
16829 * xterm.c (xaw_scroll_callback): Cast call_data.
16830 (XTread_socket): Deal with ASCII keysyms.
16831 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16832
168332008-02-01 Dave Love <fx@gnu.org>
16834
16835 * xterm.c (Vx_keysym_table): New.
16836 (syms_of_xterm): Initialize it.
16837 (XTread_socket): Use it.
16838 From head: Eliminate incorrect optimization that tried to avoid
16839 decoding the output of X*LookupString.
16840 (x_get_font_repertory): Delete charset declaration.
16841
168422008-02-01 Kenichi Handa <handa@m17n.org>
16843
16844 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16845 return 0.
16846 (Fdefine_coding_system_internal): Setup
16847 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16848
168492008-02-01 Dave Love <fx@gnu.org>
16850
16851 * coding.c (Fcheck_coding_system): Doc fix.
16852
16853 * editfns.c (Finsert_byte): Return a proper value.
16854
168552008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 * coding.c (decode_coding): Fix args to translate_chars. Pay
16858 attention to Vstandard_translation_table_for_decode.
16859 (encode_coding): Fix args to translate_chars. Pay attention to
16860 Vstandard_translation_table_for_encode.
16861
16862 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16863 SINGLE_BYTE_CHAR_P.
16864
16865 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16866 not by SINGLE_BYTE_CHAR_P.
16867
16868 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16869 SINGLE_BYTE_CHAR_P.
16870
16871 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16872 SINGLE_BYTE_CHAR_P.
16873
16874 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16875 by SINGLE_BYTE_CHAR_P.
16876
16877 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16878 SINGLE_BYTE_CHAR_P.
16879
168802008-02-01 Dave Love <fx@gnu.org>
16881
16882 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16883
168842008-02-01 Dave Love <fx@gnu.org>
16885
16886 * fns.c (Flanginfo): Fix typo.
16887
16888 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16889
168902008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16893 (detect_coding_emacs_mule, detect_coding_iso_2022)
16894 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16895 incomplete byte sequence. Don't update *mask when correctly detected.
16896 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16897 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16898 (detect_coding, detect_coding_system): Adjust for the changes above.
16899
169002008-02-01 Kenichi Handa <handa@m17n.org>
16901
16902 * character.c (char_string): Rename from
16903 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16904 (string_char): Rename from string_char.
16905
16906 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16907 if C is greater than MAX_3_BYTE_CHAR.
16908 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16909 string_char instead of string_char_with_unification.
16910
169112008-02-01 Dave Love <fx@gnu.org>
16912
16913 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * keymap.c (push_key_description): Pay attention to force_multibyte.
16918
16919 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16920
169212008-02-01 Dave Love <fx@gnu.org>
16922
16923 * charset.c (define_charset_internal): Rename `supprementary'.
16924
16925 * Makefile.in (lisp, shortlisp): Remove latin-N.
16926
169272008-02-01 Dave Love <fx@gnu.org>
16928
16929 * xfns.c (x_window, x_window): Use use_xim.
16930
16931 * xterm.c (use_xim): Initialize.
16932 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16933 (x_term_init): Maybe set use_xim.
16934
16935 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16936
169372008-02-01 Kenichi Handa <handa@m17n.org>
16938
16939 * search.c (search_buffer): Fix case-fold-search of multibyte
16940 characters.
16941 (boyer_moore): Rename the last argument to char_high_bits.
16942
169432008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * xdisp.c (display_string): Fix for the case of zero width glyph.
16946
16947 * xfns.c (x_set_font): Change the error message of the case that
16948 x_new_fontset returns Qt.
16949
16950 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16951 (Finternal_set_lisp_face_attribute): Use signal_error for the
16952 error of invalid fontset.
16953
16954 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16955 fontset, return Qt.
16956
169572008-02-01 Dave Love <fx@gnu.org>
16958
16959 * unexelf.c (unexec): Make .got handling not SGI-specific.
16960
16961 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16962
16963 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16964
16965 * keyboard.c (read_key_sequence): Fix type error.
16966
16967 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16968 type error.
16969
16970 * fontset.c (fontset_add): Return Lisp_Object.
16971
169722008-02-01 Dave Love <fx@gnu.org>
16973
16974 * charset.h (charset_ordered_list_tick): Declare extern.
16975
169762008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 The following changes (and some of 2008-02-01 changes of mine) are
16979 for handling syntax, category, and case conversion for unibyte
16980 characters by converting them to multibyte on the fly. With these
16981 changes, we don't have to setup syntax and case tables for unibyte
16982 characters in each language environment.
16983
16984 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16985 multibyte if necessary.
16986
16987 * bytecode.c (Fbyte_code): Likewise.
16988
16989 * character.h (LEADING_CODE_LATIN_1_MIN)
16990 (LEADING_CODE_LATIN_1_MAX): New macros.
16991 (unibyte_to_multibyte_table): Extern it.
16992 (unibyte_char_to_multibyte): New macro.
16993 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16994 (CHAR_LEADING_CODE): New macro.
16995 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16996
16997 * character.c (unibyte_to_multibyte_table): New variable.
16998 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16999 (multibyte_char_to_unibyte): If C is an eight-bit character,
17000 convert it to the corresponding byte value.
17001
17002 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17003 not 1, signals an error. Update the elements of
17004 unibyte_to_multibyte_table.
17005 (init_charset_once): Initialize unibyte_to_multibyte_table.
17006 (syms_of_charset): Define the charset `iso-8859-1'.
17007
17008 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17009 as is without converting it to unibyte. In a unibyte buffer,
17010 convert C to multibyte before checking the syntax.
17011
17012 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17013
17014 * minibuf.c (Fminibuffer_complete_word): Use the macro
17015 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17016
17017 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17018
17019 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17020 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17021 that is zero, convert an eight-bit char to multibyte.
17022 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17023 non-emacs case.
17024 (PATFETCH): Convert an eight-bit char to multibyte.
17025 (HANDLE_UNIBYTE_RANGE): New macro.
17026 (regex_compile): Setup the compiled pattern for multibyte chars
17027 even if the given regex string is unibyte. Use PATFETCH_RAW
17028 instead of PATFETCH in many places. To handle `charset'
17029 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17030 only for ASCII chars.
17031 (analyse_first) <exactn>: Simplify because the compiled pattern
17032 is multibyte.
17033 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17034 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17035 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17036 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17037 multibyte always 1.
17038 (re_search_2): In emacs, set the locale variable multibyte to 1,
17039 otherwise to 0. New local variable target_multibyte. Check it
17040 to decide the multibyteness of STR1 and STR2. If
17041 target_multibyte is zero, convert unibyte chars to multibyte
17042 before translating and checking fastmap.
17043 (TARGET_CHAR_AND_LENGTH): New macro.
17044 (re_match_2_internal): In emacs, set the locale variable multibyte
17045 to 1, otherwise to 0. New local variable target_multibyte. Check
17046 it to decide the multibyteness of STR1 and STR2. Use
17047 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17048 <charset, charset_not>: If multibyte is nonzero, check fastmap
17049 only for ASCII chars. Call bcmp_translate with
17050 target_multibyte, not with multibyte.
17051 <begline>: Declare the local variable C as `unsigned'.
17052 (bcmp_translate): Change the last arg name to target_multibyte.
17053
17054 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17055 the regexp pattern and the matching target. Set cp->buf.multibyte
17056 to the multibyteness of the regexp pattern. Set
17057 cp->but.target_multibyte to the multibyteness of the matching target.
17058 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17059 FETCH_STRING_CHAR_ADVANCE.
17060 (Freplace_match): Convert unibyte chars to multibyte.
17061
17062 * syntax.c (char_quoted, back_comment, scan_words)
17063 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17064 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17065 unibyte chars to multibyte.
17066 (skip_chars): Delete the arg syntaxp, and move the code for
17067 handling syntaxes to skip_syntaxes. Change callers.
17068 Fix the case that the multibyteness of STRING and the current
17069 buffer doesn't match.
17070 (skip_syntaxes): New function.
17071 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17072 SINGLE_BYTE_CHAR_P.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * xfaces.c (QCfontset): New variable.
17077 (LFACE_FONTSET): New macro.
17078 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17079 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17080 (Finternal_set_lisp_face_attribute)
17081 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17082 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17083 check also LFACE_FONTSET_INDEX.
17084 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17085 attrs[LFACE_FONT_INDEX].
17086 (syms_of_xfaces): Intern and staticpro QCfontset.
17087
17088 * dispextern.h (enum lface_attribute_index): New member
17089 LFACE_FONTSET_INDEX.
17090
17091 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17092
170932008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * coding.c (coding_set_destination): Fix coding->destination for
17096 the case converting a region.
17097 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17098 (encode_coding_object): Fix coding->dst_pos and
17099 coding->dst_pos_byte for the case converting a region.
17100
17101 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17102
17103 * character.h (BYTE8_STRING): New macro.
17104
17105 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17110 characters by octal form.
17111
17112 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17113
17114 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17115 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17116 _fetch_multibyte_char_len.
17117 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17118
17119 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17120
17121 * casefiddle.c (casify_object): Simplify. Handle the case that
17122 the case conversion change the byte length.
17123 (casify_region): Likewise.
17124
17125 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17126
17127 * character.c (_fetch_multibyte_char_len): Delete this variable.
17128 (syms_of_character): Setup Vprintable_chars.
17129
17130 * editfns.c (Fchar_equal): Fix for the unibyte case.
17131 (Finsert_byte): New function.
17132 (syms_of_editfns): Defsubr it.
17133
17134 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17135 of direct code 0x3ffff.
17136
17137 * search.c (Freplace_match): Fix for the unibyte case.
17138
171392008-02-01 Kenichi Handa <handa@m17n.org>
17140
17141 * lread.c (safe_to_load_p): Fix the logic.
17142
17143 * syntax.c (scan_words): Don't treat characters belonging to
17144 different scripts as constituting a word.
17145
17146 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17147
17148 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17149
17150 * emacs.c (main): In the case of --unibyte, instead of aborting on
17151 finding non-empty buffer, make it unibyte.
17152
171532008-02-01 Kenichi Handa <handa@m17n.org>
17154
17155 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17156 to create a fontset.
17157
171582008-02-01 Dave Love <fx@gnu.org>
17159
17160 * character.c (Funibyte_char_to_multibyte): Doc fix.
17161
17162 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17163
171642008-02-01 Kenichi Handa <handa@m17n.org>
17165
17166 * fontset.c (fontset_add): Make the type `int'.
17167 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17168
17169 * character.c (unibyte_char_to_multibyte)
17170 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17171 charset_unibyte, not charset_primary.
17172
17173 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17174
17175 * charset.c (charset_unibyte): Rename from charset_primary.
17176 (Funibyte_charset): Rename from Fprimary_charset.
17177 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17178 (syms_of_charset): Adjust for the above changes.
17179
17180 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17181 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17182 it->multibyte_p is zero.
17183
17184 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17185 Delete extern.
17186
171872008-02-01 Kenichi Handa <handa@m17n.org>
17188
17189 * coding.c (Fdefine_coding_system_internal): Fix category setting
17190 for a coding system of type iso-2022.
17191
171922008-02-01 Kenichi Handa <handa@m17n.org>
17193
17194 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17195
171962008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * syntax.c (Vnext_word_boundary_function_table): New variable.
17199 (next-word-boundary-function-table): Declare it as a Lisp variable
17200 in syms_of_syntax.
17201 (scan_words): Call functions in Vnext_word_boundary_function_table
17202 if any.
17203
17204 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17205
17206 * fontset.c (fs_load_font): If fontp->charset is not negative,
17207 return fontp without setting its members.
17208
172092008-02-01 Dave Love <fx@gnu.org>
17210
17211 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17212
17213 * m/sparc.h (HAVE_ALLOCA): Delete.
17214
17215 * s/irix6-5.h: Don't include strings.h.
17216 (bcopy, bzero, bcmp): Don't undef.
17217
17218 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17219
17220 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17221 (TIOCSIGSEND): Don't test IRIX6.
17222 (bcopy, bzero, bcmp): Define conditionally.
17223
172242008-02-01 Kenichi Handa <handa@m17n.org>
17225
17226 * buffer.c (Qas, Qmake, Qto): New variables.
17227 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17228 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17229
17230 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17231 we are inserting a process output into a multibyte buffer.
17232
17233 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17234 multibyte_char_to_unibyte.
17235
17236 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17237 by the primary charset, make it eight-bit char.
17238 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17239
17240 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17241 (charset_8_bit__control, charset_8_bit_graphic)
17242 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17243 (define_charset_internal): New function.
17244 (syms_of_charset): Call define_charset_internal for pre-defined
17245 charsets.
17246
17247 * charset.h (charset_8_bit): Extern it.
17248
17249 * coding.c (make_conversion_work_buffer): Adjust for the change
17250 of Fset_buffer_multibyte.
17251 (encode_coding_raw_text): Increment p0 in the loop.
17252
17253 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17254
17255 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17256 for the change of Fset_buffer_multibyte.
17257
17258 * fns.c (Fstring_to_multibyte): New function.
17259 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17260
172612008-02-01 Dave Love <fx@gnu.org>
17262
17263 * xfns.c (x_put_x_image): Declare args.
17264
17265 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17266 (try_font_list): Declare an arg.
17267
17268 * xdisp.c (message2_nolog, set_message): Declare an arg.
17269
17270 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17271
17272 * syntax.c (scan_sexps_forward): Declare an arg.
17273
17274 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17275 Declare an arg.
17276
17277 * lisp.h (Fnew_fontset): Declare.
17278
17279 * keymap.c (push_key_description): Call CHARACTERP correctly.
17280
17281 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17282 (face_for_char): Delete unused vars.
17283 (Fset_fontset_font): Doc fix. Delete unused vars.
17284
17285 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17286
17287 * composite.c (update_compositions): Declare arg.
17288
17289 * cm.c (calccost, cmgoto): Declare args.
17290
17291 * charset.c: Remove `emacs' conditional. Doc fixes.
17292 (map_char_table_for_charset): Declare.
17293
17294 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17295
17296 * ccl.c: Remove `emacs' conditional.
17297
172982008-02-01 Kenichi Handa <handa@m17n.org>
17299
17300 The following changes are to allow specifying multiple font
17301 patterns for a character range (specified by script or charset).
17302
17303 * Makefile.in (abbrev.o): Depend on syntax.h.
17304 (xfaces.o): Depend on charset.h.
17305
17306 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17307 SINGLE_BYTE_CHAR_P.
17308
17309 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17310
17311 * character.h (Vchar_script_table): Extern it.
17312
17313 * character.c (Vscript_alist): Delete.
17314 (Vchar_script_table, Qchar_script_table): New variable.
17315 (syms_of_character): Declare Vchar_script_table as a lisp variable
17316 and initialize it.
17317
17318 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17319 have property char-table-extra-slots, make no extra slot.
17320
17321 * dispextern.h (struct face): Delete member `charset'.
17322 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17323 SINGLE_BYTE_CHAR_P.
17324 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17325 Add prototypes.
17326 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17327 (generate_ascii_font_name): Rename from generate_ascii_font.
17328
17329 * fontset.h (get_font_repertory_func): New prototype.
17330 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17331 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17332
17333 * fontset.c (Qprepend, Qappend): New variables.
17334 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17335 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17336 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17337 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17338 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17339 (load_font_get_repertory): New functions.
17340 (fontset_set): Delete.
17341 (fontset_face): New arg FACE. Return face ID, not face.
17342 Complete re-write to handle new fontset structure. Change caller.
17343 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17344 (face_for_char): Don't call lookup_face.
17345 (make_fontset_for_ascii_face): New arg FACE.
17346 (fs_load_font): New arg CHARSET_ID. Don't check
17347 Vfont_encoding_alist here.
17348 (find_font_encoding): New function.
17349 (list_fontsets): Use STRINGP, not ! NILP.
17350 (accumulate_script_ranges): New function.
17351 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17352 re-written to handle new fontset structure.
17353 (Ffontset_font): Return a copy of element.
17354 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17355 docstring of font-encoding-alist.
17356
17357 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17358 (Fset_fotset_font): Fix arguments to 5.
17359
17360 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17361
17362 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17363 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17364 (highlight_trailing_whitespace): Adjust for the change of
17365 lookup_named_face.
17366
17367 * xfaces.c: Include charset.h.
17368 (load_face_font): Delete argument C. Change caller.
17369 (generate_ascii_font_name): Rename from generate_ascii_font.
17370 (font_name_registry): New function.
17371 (cache_face): Store ascii faces before non-ascii faces in buckets.
17372 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17373 Lookup only ascii faces.
17374 (lookup_non_ascii_face): New function.
17375 (lookup_named_face): Delete argument C. Change caller.
17376 (lookup_derived_face): Delete argument C. Change caller.
17377 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17378 a string, just call font_list with it.
17379 (choose_face_font): Delete arguments FACE and C. New arg
17380 FONT_SPEC. Change caller.
17381 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17382 Change caller.
17383 (realize_non_ascii_face): New function.
17384 (realize_x_face): Call load_face_font here.
17385 (realize_tty_face): Delete argument C. Change caller.
17386 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17387 get a face ID.
17388 (dump_realized_face): Don't print charset of FACE.
17389
17390 * xfns.c (x_set_font): Always call x_new_fontset and
17391 store_frame_parameter.
17392 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17393 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17394
17395 * xterm.h (x_get_font_repertory): Extern it.
17396
17397 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17398 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17399 it->multibyte_p is zero.
17400 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17401 (x_new_fontset): If FONTSETNAME doesn't match any existing
17402 fontsets, create a new one.
17403 (x_get_font_repertory): New function.
17404
174052008-02-01 Kenichi Handa <handa@m17n.org>
17406
17407 * coding.c (Ffind_coding_systems_region_internal): Detect an
17408 ASCII only string correctly.
17409
17410 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17411 version is 0.
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * lread.c: Include "coding.h".
17416 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17417 (load_each_byte, unread_char): New variables.
17418 (readchar_backlog): Delete.
17419 (readchar): Return a character unless load_each_byte is nonzero.
17420 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17421 cons. If unread_char is not -1, simply return it.
17422 (unreadchar): Handle the case that readcharfun is
17423 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17424 (read_multibyte): Delete.
17425 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17426 (read_emacs_mule_char): New functions.
17427 (Fload): Even if the file doesn't have the extension ".elc", if
17428 safe_to_load_p returns a positive version number, assume that the
17429 file contains bytecompiled code. If the version is less than 22,
17430 load the file while decoding multibyte sequences by emacs-mule.
17431 (readevalloop): Don't use readchar_backlog.
17432 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17433 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17434 (read_escape): Delete the arg BYTEREP.
17435 (read1): Set load_each_byte to 1 temporarily while handling
17436 #@NUMBER. Don't call read_multibyte.
17437 (read_vector): Call Fread with a cons. If readcharfun is
17438 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17439 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17440 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17441 and Qload_force_doc_strings.
17442
174432008-02-01 Kenichi Handa <handa@m17n.org>
17444
17445 * xdisp.c (face_before_or_after_it_pos): Call
17446 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17447
174482008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * character.h (TRAILING_CODE_P): New macro.
17451 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17452 (string_char_with_unification): Fix prototype.
17453 (Vscript_alist): Extern it.
17454
17455 * character.c (Vscript_alist): New variable.
17456 (string_char_with_unification, str_as_unibyte)
17457 (string_escape_byte8): Add `const' to local variables.
17458 (syms_of_character): Declare script-alist as a Lisp variable.
17459
17460 * charset.h (Vcharset_ordered_list): Extern it.
17461 (charset_ordered_list_tick): Extern it.
17462 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17463 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17464 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17465 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17466 (Funify_charset): Adjust for the change of Funify_charset.
17467
17468 * charset.c (charset_ordered_list_tick): New variable.
17469 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17470 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17471 deunify intead of unify a charset.
17472 (string_xstring_p): Add `const' to local variables.
17473 (find_charsets_in_text): Add `const' to arguments and local variables.
17474 (encode_char): Adjust for the change of Funify_charset. Fix
17475 detecting of invalid code.
17476 (Fset_charset_priority): Increment charset_ordered_list_tick.
17477 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17478 and TO_CODE.
17479
17480 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17481 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17482 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17483 (decode_coding_ccl, consume_chars)
17484 (Ffind_coding_systems_region_internal)
17485 (Fcheck_coding_systems_region): Add `const' to local variables.
17486
17487 * print.c (print_object): Use octal form for printing the
17488 contents of a bool vector.
17489
174902008-02-01 Dave Love <fx@gnu.org>
17491
17492 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17493 <version == 20>: Refuse to load.
17494
174952008-02-01 Dave Love <fx@gnu.org>
17496
17497 * fns.c: Move coding.h.
17498 (Qcodeset, Qdays, Qmonths): New.
17499 (concat): Use CHARACTERP instead of INTEGERP.
17500 (Flocale_codeset): Delete.
17501 (Flanginfo): New function.
17502 (syms_of_fns): Change accordingly.
17503
17504 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17505
175062008-02-01 Dave Love <fx@gnu.org>
17507
17508 * casetab.c (init_casetab_once, init_casetab_once): Fix
17509 CHAR_TABLE_SET call.
17510
17511 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17512
17513 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17514
17515 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17516 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17517 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17518
17519 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17520
17521 * coding.c (ENCODE_DESIGNATION, decode_eol)
17522 (make_conversion_work_buffer, code_conversion_restore)
17523 (Fdefine_coding_system_internal): Convert Lisp types.
17524 (code_conversion_restore): Use EQ, not ==.
17525 (Fencode_coding_string): Fix code_convert_string call.
17526
17527 * coding.h (code_convert_region): Fix prototype.
17528
17529 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17530
17531 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17532 (Ffontset_info): Convert Lisp types.
17533
17534 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17535
17536 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17537
17538 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17539
17540 * chartab.c: Include "...h", not <...h> in some cases.
17541
17542 * callproc.c (Fcall_process): Remove unused variables.
17543
175442008-02-01 Dave Love <fx@gnu.org>
17545
17546 * coding.c (Fset_coding_system_priority): Allow null arg list.
17547
175482008-02-01 Dave Love <fx@gnu.org>
17549
17550 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17551 (Fself_insert_and_exit): Use CHARACTERP.
17552
17553 * callproc.c (Fcall_process): Remove unused vars.
17554
17555 * xterm.c (XTread_socket): Add extra dead keysyms.
17556
17557 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17558
17559 * dispextern.h: Remove prototypes for redraw_frame,
17560 redraw_garbaged_frames.
17561
17562 * cmds.c (Fself_insert_command): Use CHARACTERP.
17563
17564 * chartab.c (make_sub_char_table): Remove unused var.
17565 (Fset_char_table_default, Fmap_char_table): Doc fix.
17566
17567 * keymap.c (access_keymap): Remove generic char code.
17568 (push_key_description): Use CHARACTERP.
17569
175702008-02-01 Dave Love <fx@gnu.org>
17571
17572 * charset.c: Doc fixes.
17573 (Funify_charset): Extra checking.
17574
175752008-02-01 Dave Love <fx@gnu.org>
17576
17577 * lread.c: Remove some unused variables.
17578 (safe_to_load_p): If safe, return the magic number version byte.
17579 (Fload): Maybe use load-with-code-conversion.
17580
175812008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 * category.c (Fmodify_category_entry): Don't modify the contents
17584 of category_set for characters out of the range. Avoid
17585 unnecessary modification.
17586
17587 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17588 Vchar_unify_table. The default value of the table is now nil.
17589
17590 * character.c (syms_of_character): Setup Vchar_width_table for
17591 eight-bit-control and raw-byte chars.
17592
17593 * charset.h (enum define_charset_arg_index): Delete
17594 charset_arg_parents and add charset_arg_subset and
17595 charset_arg_superset.
17596 (enum charset_attr_index): Delete charset_parents and add
17597 charset_subset and charset_superset.
17598 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17599 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17600 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17601 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17602 (CHARSET_SUPERSET): New macros.
17603 (charset_work): Extern it.
17604 (ENCODE_CHAR): Use charset_work.
17605 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17606 (map_charset_chars): Extern it.
17607
17608 * charset.c (load_charset_map): Set the default value of encoder
17609 and deunifier char-tables to nil.
17610 (map_charset_chars): Change argument. Change callers. Use
17611 map_char_table_for_charset instead of map_char_table.
17612 (Fmap_charset_chars): New optional args from_code and to_code.
17613 (Fdefine_charset_internal): Adjust for the change of
17614 `define-charset' (:parents -> :subset or :superset).
17615 (charset_work): New variable.
17616 (encode_char, syms_of_charset): Adjust for the change of
17617 Fdefine_charset_internal.
17618 (Ffind_charset_string): Setup the vector `charsets' correctly.
17619
17620 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17621 the previous change.
17622 (char_table_ref_and_range): Adjust for the above change.
17623 (map_sub_char_table_for_charset): New function.
17624 (map_char_table_for_charset): New function.
17625
17626 * keymap.c (describe_vector): Handle a char-table directly here.
17627 (describe_char_table): Delete.
17628
17629 * lisp.h (map_charset_chars): Delete.
17630
176312008-02-01 Dave Love <fx@gnu.org>
17632
17633 * fns.c (count_combining): Comment out (unused).
17634 (Flocale_codeset): New.
17635 (syms_of_fns): Defsubr it.
17636
17637 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17638 (size_t): Remove.
17639
176402008-02-01 Dave Love <fx@gnu.org>
17641
17642 * Makefile.in (chartab.o): Depend on charset.h.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * character.c (syms_of_character): Set the default value of
17647 Vprintable_chars to Qnil.
17648
176492008-02-01 Dave Love <fx@gnu.org>
17650
17651 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * charset.c (load_charset_map): Handle the case that from < to
17656 correctly.
17657
17658 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17659 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17660 Pay attention to raw-8-bit chars.
17661
176622008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17665 It is not bytecompiled now.
17666
17667 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17668 (charset_jisx0208): New variables.
17669 (Fdefine_charset_internal): Setup them if appropriate.
17670 (init_charset_once): Initialize them to -1.
17671
17672 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17673 (charset_jisx0208): Extern them.
17674
17675 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17676 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17677 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17678 (setup_iso_safe_charsets): Fix arguments to Fassq.
17679 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17680 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17681 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17682 (encode_coding_iso_2022): Change the 1st arg to
17683 ENCODE_ISO_CHARACTER to a variable.
17684
176852008-02-01 Kenichi Handa <handa@m17n.org>
17686
17687 * charset.h (enum define_charset_arg_index): New enums
17688 charset_arg_min_code and charset_arg_max_code.
17689 (struct charset): New member char_index_offset.
17690
17691 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17692 Take charset->char_index_offset into account.
17693 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17694 args[charset_arg_max_code]. Setup charset.char_index_offset.
17695 (syms_of_charset): Fix args to Fdefine_charset_internal.
17696
176972008-02-01 Dave Love <fx@gnu.org>
17698
17699 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17700
177012008-02-01 Dave Love <fx@gnu.org>
17702
17703 * coding.c: Doc fixes.
17704 (Fcoding_system_aliases): Fix return value.
17705 (Qmac): Remove (duplicated) definition.
17706
177072008-02-01 Dave Love <fx@gnu.org>
17708
362654a6
JB
17709 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17710 New functions.
aac0c6e3
MR
17711
17712 * character.c (Fstring): Doc fix.
17713
17714 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17715
362654a6 17716 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17717 (font-encoding-alist): Doc fix.
17718
177192008-02-01 Dave Love <fx@gnu.org>
17720
17721 * term.c (costs_set): Declare static, non-initialized for pcc.
17722 (encode_terminal_code): Remove unused var.
17723
17724 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17725 for K&R.
17726
17727 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17728
17729 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17730 (suffixes): Move out of make_subsidiaries for K&R.
17731
17732 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17733
17734 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17735
177362008-02-01 Dave Love <fx@gnu.org>
17737
17738 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17739
17740 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17741
177422008-02-01 Yong Lu <lyongu@asia-infonet.com>
17743
17744 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17745
17746 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17751 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * coding.c (decode_coding_charset): Adjust for the change of
17756 Fdefine_coding_system_internal.
17757 (Fdefine_coding_system_internal): For a coding system of
17758 `charset' type, store a list of charset IDs in
17759 `charset_attr_charset_valids' element of coding attributes.
17760
177612008-02-01 Kenichi Handa <handa@m17n.org>
17762
17763 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17764 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17765 caller. Handle 2-byte and 3-byte charsets correctly.
17766 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17767 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17768 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17769 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17770 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17771 sequence.
17772 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17773 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17774 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17775 and alt&rule composition.
17776 (decode_coding_iso_2022): Handle composition correctly.
17777 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17778
17779 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17780 re-defining a charset. If the charset has :emacs-mule-id, setup
17781 emacs_mule_bytes.
17782 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17783
177842008-02-01 Kenichi Handa <handa@m17n.org>
17785
17786 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17787 (encode_coding_big5, encode_coding_charset): If coding requires safe
17788 encoding, produce a character specified by
17789 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17790
177912008-02-01 Dave Love <fx@gnu.org>
17792
17793 * xterm.c (XSetIMValues): Declare.
17794
17795 * process.c: Conditionally include sys/wait.h, pty.h.
17796
17797 * print.c (print_object): Fix print format for 64-bit systems.
17798
17799 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17800
17801 * buffer.c (emacs_strerror): Declare.
17802
17803 * fontset.c (Fclear_face_cache): Declare.
17804 (accumulate_font_info): Comment-out (unused).
17805 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17806 variables.
17807
17808 * character.h (string_escape_byte8): Declare.
17809
17810 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17811 unused vars.
17812 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17813 (Fmap_charset_chars): Doc fix.
17814
17815 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17816 (Fset_coding_system_priority, Fset_coding_system_priority)
17817 (Fdefine_coding_system_internal): Doc fix.
17818
178192008-02-01 Dave Love <fx@gnu.org>
17820
17821 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * character.c (string_escape_byte8): Make multibyte string with
17826 correct size.
17827
17828 * charset.c (Fmake_char): Delete unnecessary code.
17829
178302008-02-01 Kenichi Handa <handa@m17n.org>
17831
17832 * xfns.c (x_encode_text): Allocate coding.destination here, and
17833 call encode_coding_object with dst_object Qnil.
17834
17835 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17836 multibyte form correctly.
17837
17838 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17839 against Vfont_encoding_alist.
17840
17841 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17842 handling of charset list.
17843 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17844 (decode_coding_object): Move point to coding->dst_pos before
17845 calling post-read-conversion function.
17846 (encode_coding_object): Give correct arguments to
17847 pre-write-conversion. Ignore the return value of
17848 pre-write-conversion function. Pay attention to the case that
17849 pre-write-conversion changes the current buffer. If dst_object is
17850 Qt, even if coding->src_bytes is zero, allocate at least one byte
17851 to coding->destination.
17852
17853 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17854
17855 * charset.c (Fmake_char): Make it more backward compatible.
17856 (Fmap_charset_chars): Fix docstring.
17857
178582008-02-01 Dave Love <fx@gnu.org>
17859
17860 * coding.c: Doc fixes.
17861 (Fdefine_coding_system_alias): Use names, not symbols, in
17862 coding-system-alist.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17867 of calling free_realized_face.
17868
178692008-02-01 Yong Lu <lyongu@asia-infonet.com>
17870
17871 * charset.c (read_hex): Don't treat SPC as a comment starter.
17872 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17873 (Fdecode_char): Fix typo.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * charset.h (struct charset): New member `code_space_mask'.
17878
17879 * coding.c (coding_set_source): Delete the local variable beg_byte.
17880 (encode_coding_charset, Fdefine_coding_system_internal):
17881 Delete the local variable charset.
17882 (Fdefine_coding_system_internal): Setup
17883 attrs[coding_attr_charset_valids] correctly.
17884
17885 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17886 member to check if CODE is valid or not.
17887 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17888 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17889 is within the range of charset->min_code and carset->max_code.
17890
178912008-02-01 Dave Love <fx@gnu.org>
17892
17893 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17894
17895 * dispextern.h (generate_ascii_font): Fix return type.
17896
17897 * xfaces.c (generate_ascii_font): Fix arg declaration.
17898
17899 * coding.c (coding_inherit_eol_type)
17900 (Fset_terminal_coding_system_internal)
17901 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17902
179032008-02-01 Kenichi Handa <handa@m17n.org>
17904
17905 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17906 multiple charsets correctly.
17907
179082008-02-01 Kenichi Handa <handa@m17n.org>
17909
17910 * search.c (boyer_moore): Fix handling of multibyte character
17911 translation.
17912
17913 * xdisp.c (display_mode_element): When the variable `elt' is
17914 changed, update `this' and `lisp_string'.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17919
17920 * callproc.c (Fcall_process): Be sure to give the current buffer
17921 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17922
17923 * charset.c (struct charset_map_entries): New struct.
17924 (load_charset_map): Rename from parse_charset_map. New args
17925 entries and n_entries. Change caller.
17926 (load_charset_map_from_file): Rename from load_charset_map.
17927 Change caller. New arg control_flag. Call load_charset_map at
17928 the tail.
17929 (load_charset_map_from_vector): New function.
17930 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17931 (encode_char): If the charset is compact, change a character index
17932 to a code point.
17933
17934 * coding.c (coding_alloc_by_making_gap): Check the case that the
17935 source and destination are the same correctly.
17936 (decode_coding_raw_text): Set coding->consumed_char and
17937 coding->consumed to 0.
17938 (produce_chars): If coding->chars_at_source is nonzero, update
17939 coding->consumed_char and coding->consumed before calling
17940 alloc_destination.
17941 (Fdefine_coding_system_alias): Register ALIAS in
17942 Vcoding_system_alist.
17943 (syms_of_coding): Define `no-conversion' coding system at the tail.
17944
17945 * fileio.c (Finsert_file_contents): Set coding_system instead of
17946 val. If the current buffer is multibyte, always call
17947 decode_coding_gap.
17948
17949 * xfaces.c (try_font_list): Give higher priority to fontset's
17950 family than face's family.
17951
179522008-02-01 Kenichi Handa <handa@m17n.org>
17953
17954 * callproc.c (Fcall_process): Be sure to give the current buffer
17955 to decode_coding_c_string.
17956
17957 * xfaces.c (try_font_list): Give a family specified in a fontset
17958 higher priority than a family specified in a face.
17959
179602008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17963 Fix arguments to insert_from_buffer.
17964
17965 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17966
179672008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17970 (decode_coding_gap): Set coding->dst_multibyte correctly.
17971
179722008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17975 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17976 (encode_coding_utf_16): Substitute coding->default_char for
17977 non-Unicode characters.
17978 (decode_coding): Don't call record_insert here.
17979 (setup_coding_system): Initialize `surrogate' of
17980 coding->spec.utf_16 to 0.
17981 (EMIT_ONE_BYTE): Fix for multibyte case.
17982
17983 * insdel.c (insert_from_gap): Call record_insert.
17984
179852008-02-01 Kenichi Handa <handa@m17n.org>
17986
17987 * casefiddle.c (casify_region): Fix multibyte case.
17988
17989 * character.c (c_string_width): Add return type `int'.
17990 (char_string_with_unification): Delete arg ADVANCED.
17991
17992 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17993 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17994 (CHAR_STRING_ADVANCE): Make it do-while statement.
17995
17996 * chartab.c (sub_char_table_set_range): Optimize for the case
17997 DEPTH == 3. Add workaround code for a GCC optimization bug.
17998
17999 * charset.c (parse_charset_map): Remove an unused variable.
18000
18001 * coding.c: Delete unused variables.
18002
18003 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18004 earlier. If inserted is zero and the coding system doesn't
18005 require flushing, don't call decode_coding_gap.
18006
18007 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18008
180092008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 The following changes are for using Unicode as an internal
18012 character model, and use UTF-8 format for buffer/string
18013 representation.
18014
18015 * .gdbinit (xchartable): Adjust for the change of char table structure.
18016 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18017
18018 * Makefile.in (obj): Add character.o and chartab.o.
18019 (lisp, shortlisp): Remove utf-8.elc.
18020 (*.o): For many files, change dependency on charset.h to
18021 character.h, and add dependency on character.h.
18022 (character.o, chartab.o): New targets.
18023
18024 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18025 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18026 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18027 of "charset.h".
18028
18029 * dired.c, filelock.c: Include "character.h".
18030
18031 * alloc.c: Include "character.h" instead of "charset.h".
18032 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18033 (syms_of_alloc): Remove defsubr for Smake_char_table.
18034
18035 * buffer.c: Include "character.h" instead of "charset.h", don't
18036 include "coding.h".
18037 (Fset_buffer_multibyte): Adjust for UTF-8.
18038
18039 * buffer.h: EXFUN Fbuffer_live_p.
18040
18041 * callproc.c: Include "character.h" instead of "charset.h".
18042 (Fcall_process): Big change for the new code-conversion APIs.
18043
18044 * casetab.c: Include "character.h" instead of "charset.h".
18045 (set_canon, set_identity, shuffle): Adjust for the new
18046 map_char_table spec.
18047 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18048 accessing the char table structure.
18049
18050 * chartab.c: New file that implements char table.
18051
18052 * category.c: Include "character.h".
18053 (copy_category_entry): New function.
18054 (copy_category_table): Call map_char_table and copy_category_entry.
18055 (Fmake_category_table): Initialize all top-level slots.
18056 (char_category_set): New function.
18057 (modify_lower_category_set): Delete.
18058 (Fmodify_category_entry): Call char_table_ref_and_range.
18059
18060 * category.h (CATEGORY_SET): Just call char_category_set.
18061
18062 * ccl.c: Include "character.h".
18063 (Qccl, Qcclp): New variables.
18064 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18065 it's less than 256.
18066 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18067 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18068 and DST type.
18069 (ccl_driver): Change types of argument, adjust code accordingly.
18070 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18071 ccl_driver.
18072 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18073
18074 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18075 New members src_multibyte, dst_multibyte, consumed, and produced.
18076 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18077 (CODING_SPEC_CCL_PROGRAM): New macro.
18078 (ccl_driver): Update prototype.
18079 (Qccl, Qcclp, Fccl_program_p): Extern them.
18080 (CHECK_CCL_PROGRAM): New macro.
18081
18082 * character.c, character.h, chartab.c: New files.
18083
18084 * charset.c: Mostly re-written. Move character and multibyte sequence
18085 handling codes to character.c.
18086
18087 * charset.h: Mostly re-written. Move character and multibyte sequence
18088 handling codes to character.h.
18089
18090 * coding.c, coding.h: Mostly re-written.
18091
18092 * composite.c: Include "character.h" instead of "charset.h".
18093 (CHAR_WIDTH): Move to character.h.
18094 (HASH_KEY, HASH_VALUE): Delete.
18095
18096 * composite.h (enum composition_method): Change order of enumeration
18097 symbols.
18098
18099 * data.c: Include "character.h" instead of "charset.h".
18100 (Faref): Call CHAR_TABLE_REF for a char table.
18101 (Faset): Call CHAR_TABLE_SET for a char table.
18102
18103 * dispextern.h (free_realized_face, check_face_attribytes)
18104 (generate_ascii_font): Extern them.
18105 (free_realized_multibyte_face): Delete extern.
18106
18107 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18108 table structure.
18109
18110 * editfns.c: Include "character.h" instead of "charset.h".
18111 (Fchar_to_string): Always call CHAR_STRING.
18112
18113 * emacs.c (main): Call init_charset_once, init_charset,
18114 syms_of_chartab, and syms_of_character.
18115
18116 * fileio.c: Include "character.h" instead of "charset.h".
18117 (Finsert_file_contents): Big change for the new code-conversion API.
18118 (choose_write_coding_system, Fwrite_region): Likewise.
18119 (build_annotations_2): Delete.
18120 (e_write): Big change for the new code-conversion API.
18121
18122 * fns.c: Include "character.h" instead of "charset.h".
18123 (copy_sub_char_table): Move to chartab.c.
18124 (Fcopy_sequence): Call copy_char_table for a char table.
18125 (concat): Delete codes calling count_multibyte.
18126 (string_char_to_byte, string_byte_to_char): Adjust for the new
18127 multibyte form.
18128 (internal_equal): Adjust for the change of char table structure.
18129 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18130 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18131 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18132 (char_table_translate, optimize_sub_char_table)
18133 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18134 chartab.c.
18135 (char_table_ref_and_index): Delete.
18136 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18137 (Fmd5): Call preferred_coding_system instead of accessing
18138 Vcoding_category_list. Adjust for the new code-conversion API.
18139 (syms_of_fns): Move defsubr for char table related functions to
18140 chartab.c.
18141
18142 * fontset.c: Mostly re-written.
18143
18144 * fontset.h (struct font_info): Change type of the member encoding_type.
18145 (enum FONT_SPEC_INDEX): New enum.
18146 (fontset_font_pattern, fs_load_font): Update prototype.
18147 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18148
18149 * indent.c: Include "character.h" instead of "charset.h".
18150 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18151
18152 * insdel.c: Include "character.h" instead of "charset.h".
18153 (copy_text): Don't refer to Vnonascii_translation_table.
18154 (insert_from_gap): New function.
18155
18156 * keyboard.c: Include "character.h" instead of "charset.h".
18157 (command_loop_1): Never call direct_output_forward_char before
18158 a non-ASCII character.
18159 (read_char): If Vkeyboard_translate_table is a char table, always
18160 translate a character.
18161
18162 * keymap.c: Include "character.h".
18163 (store_in_keymap): Handle the case that IDX is a cons.
18164 (Fdefine_key): Handle the case that KEY is a cons and the car part
18165 is also a cons (range).
18166 (push_key_description): Adjust for the new character code.
18167 (describe_vector): Call describe_char_table for a char table.
18168 (describe_char_table): New function.
18169
18170 * keymap.h (describe_char_table): Extern it.
18171
18172 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18173 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18174 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18175 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18176 Delete.
18177 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18178 structure.
18179 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18180 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18181 (CHARTAB_SIZE_BITS_3): New macros.
18182 (chartab_size): Extern it.
18183 (struct Lisp_Char_Table): Re-design.
18184 (struct Lisp_Sub_Char_Table): New structure.
18185 (HASH_KEY, HASH_VALUE): Move from fns.c.
18186 (CHARACTERBITS): Define as 22.
18187 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18188 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18189 (GC_SUB_CHAR_TABLE_P): New macro.
18190 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18191 (code_convert_string_norecord): Deleted extern.
18192 (init_character_once, syms_of_character, init_charset)
18193 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18194
18195 * lread.c: Include "character.h".
18196 (read_multibyte): New arg NBYTES.
18197 (read_escape): Change the meaning of returned *BYTEREP.
18198 (to_multibyte): Delete.
18199 (read1): Adjust the handling of char table and string.
18200
18201 * print.c: Include "character.h" instead of "charset.h".
18202 (print_string): Convert 8-bit raw bytes to octal form by
18203 string_escape_byte8.
18204 (print_object): Adjust for the new multibyte form. Print 8-bit
18205 raw bytes always in octal form. Handle sub char table correctly.
18206
18207 * process.c: Include "character.h" instead of "charset.h".
18208 (read_process_output, send_process): Adjust for the new
18209 code-conversion API.
18210
18211 * puresize.h (BASE_PURESIZE): Increase.
18212
18213 * regex.c: Include "character.h" instead of "charset.h".
18214 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18215 (regex_compile): Accept a range whose starting and ending
18216 character have different leading bytes.
18217 (analyse_first): Adjust for the above change.
18218
18219 * search.c: Include "character.h" instead of "charset.h".
18220 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18221 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18222
18223 * syntax.c: Include "character.h" instead of "charset.h".
18224 (syntax_parent_lookup): Delete.
18225 (Fmodify_syntax_entry): Accept a cons as CHAR.
18226 (skip_chars): Adjust for the new multibyte form.
18227 (init_syntax_once): Call char_table_set_range instead of directly
18228 accessing the structure of a char table.
18229
18230 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18231 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18232 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18233 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18234
18235 * term.c: Include "buffer.h" and "character.h".
18236 (encode_terminal_code, write_glyphs): Adjust for the new
18237 code-conversion API.
18238 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18239
18240 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18241
18242 * xdisp.c: Include "character.h".
18243 (get_next_display_element): Adjust for the new multibyte form.
18244 (disp_char_vector): Adjust for the new char table structure.
18245 (decode_mode_spec_coding): Adjust for the new structure of
18246 coding system.
18247 (decode_mode_spec): Adjust for the new code-conversion API.
18248
18249 * xfaces.c: Include "character.h" instead of "charset.h".
18250 (load_face_font): Adjust for the change of choose_face_font and
18251 FS_LOAD_FONT.
18252 (generate_ascii_font): New function.
18253 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18254 (set_font_frame_param): Adjust for the change of choose_face_font.
18255 (free_realized_face): Make it public.
18256 (free_realized_faces_for_fontset): Rename from
18257 free_realized_multibyte_face. Free also faces realized for ASCII.
18258 (choose_face_font): Change arguments. Adjust for the change of
18259 fontset_font_pattern and FS_LOAD_FONT.
18260
18261 * xfns.c: Include "character.h".
18262 (x_encode_text): Adjust for the new code-conversion API.
18263
18264 * xselect.c: Don't include "charset.h".
18265 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18266
18267 * xterm.c: Include "character.h".
18268 (x_encode_char): New argument CHARSET. Change caller.
18269 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18270 Call ENCODE_CHAR instead of SPLIT_CHAR.
18271 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18272 CHAR_WIDTH instead of CHARSET_WIDTH.
18273 (XTread_socket): Adjust for the new code-conversion API.
18274 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18275 (x_load_font): Adjust for the change of struct font.
18276
182772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18278
18279 * xfaces.c (face_at_buffer_position): Remove unused vars.
18280
182812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18282
18283 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18284 Fix overflow checking.
18285
182862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18287
18288 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18289 Cancel previous change.
18290
182912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18292
18293 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18294 ccl->eight_bit_control. Fix check for buffer overflow.
18295 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18296 (ccl_driver): Initialize extra_bytes to 0.
18297
182982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18299
18300 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18301 return it ORed with ctrl_modifier.
18302
183032008-01-29 Miles Bader <miles@gnu.org>
18304
18305 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18306
183072008-01-28 Jason Rumney <jasonr@gnu.org>
18308
18309 * w32.c (stat): Don't double check for networked drive.
18310
183112008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18312
18313 * window.c (run_window_configuration_change_hook): New function.
18314 Code extracted from set_window_buffer. Set the selected frame.
18315 (set_window_buffer): Use it.
18316 * window.h (run_window_configuration_change_hook): Declare.
18317 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18318
18319 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18320
183212008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18322
18323 * Makefile.in: Remove references to unused macros.
18324
183252008-01-26 Eli Zaretskii <eliz@gnu.org>
18326
18327 * w32.c (g_b_init_get_sid_sub_authority)
18328 (g_b_init_get_sid_sub_authority_count): New static variables.
18329 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18330 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18331 (init_user_info): Use them to retrieve uid and gid.
18332 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18333 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18334 st_uid and st_gid of the file.
18335
183362008-01-26 Jason Rumney <jasonr@gnu.org>
18337
18338 * w32.c (logon_network_drive): New function.
18339 (stat): Use it.
18340
183412008-01-26 Chong Yidong <cyd@stupidchicken.com>
18342
18343 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18344 invisible text covered with an ellipsis.
18345
183462008-01-25 Richard Stallman <rms@gnu.org>
18347
18348 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18349 jump back to beginning. Move some other initializations after that.
18350 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18351 New variables.
18352 (syms_of_xdisp): Init them.
18353
18354 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18355
18356 * buffer.c (reset_buffer_local_variables):
18357 Implement `permanent-local-hook'.
18358 (Qpermanent_local_hook): New variable.
18359 (syms_of_buffer): Init and staticpro it.
18360
183612008-01-25 Michael Albinus <michael.albinus@gmx.de>
18362
18363 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18364
183652008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18366
18367 * fns.c (Fclrhash): Return TABLE.
18368
183692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18370
18371 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18372 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18373 is set even without positional changes.
18374 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18375
18376 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18377
183782008-01-23 Jason Rumney <jasonr@gnu.org>
18379
18380 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18381
18382 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18383 the unicode range available in MULE by locale-coding-system.
18384 Improve dbcs lead byte detection. Set event timestamp and modifiers
18385 earlier.
18386
183872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18388
18389 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18390 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18391 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18392 when used on child processes.
18393
183942008-01-21 Michael Albinus <michael.albinus@gmx.de>
18395
18396 * dbusbind.c (Fdbus_method_return_internal): Rename from
18397 Fdbus_method_return.
18398 (Fdbus_unregister_object): Move to dbus.el.
18399 (Fdbus_call_method, Fdbus_method_return_internal)
18400 (Fdbus_send_signal): Improve debug messages.
18401
184022008-01-20 Martin Rudalics <rudalics@gmx.at>
18403
18404 * undo.c (undo_inhibit_record_point): New variable.
18405 (syms_of_undo): Initialize it.
18406 (record_point): Don't record point when undo_inhibit_record_point
18407 is set.
18408
184092008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18410
18411 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18412
18413 * xdisp.c (Qauto_hscroll_mode): New var.
18414 (syms_of_xdisp): Initialize it.
18415 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18416 window's buffer.
18417 (hscroll_windows): Don't check automatic_hscrolling_p here.
18418
18419 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18420 vscroll if we're setting window-buffer to the value it already has.
18421
184222008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18423
18424 * m/intel386.h: Remove references to XENIX.
18425
184262008-01-17 Andreas Schwab <schwab@suse.de>
18427
18428 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18429 instead of HAVE_X86_64_LIB64_DIR.
18430 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18431
184322008-01-17 Glenn Morris <rgm@gnu.org>
18433
18434 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18435 to HAVE_X86_64_LIB64_DIR.
18436
184372008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18438
18439 * s/irix3-3.h:
18440 * s/irix4-0.h:
18441 * s/386-ix.h:
18442 * s/domain.h:
18443 * s/hpux9-x11r4.h:
18444 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18445
18446 * sysdep.c: Remove code containing references to symbols defined
18447 by unsupported systems.
18448
184492008-01-16 Glenn Morris <rgm@gnu.org>
18450
18451 * coding.c (select-safe-coding-system-function): Doc fix.
18452
184532008-01-15 Glenn Morris <rgm@gnu.org>
18454
18455 * config.in: Revert 2008-01-13 change: this is a generated file.
18456
184572008-01-13 Tom Tromey <tromey@redhat.com>
18458
18459 * lisp.h: Fix typo.
18460
184612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18462
18463 * m/sequent-ptx.h:
18464 * m/sequent.h:
18465 * s/ptx.h:
18466 * s/ptx4-2.h:
18467 * s/ptx4.h: Remove files for systems no longer supported.
18468
18469 * callproc.c (Fcall_process): Fix previous change.
18470
184712008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18472
18473 * unexsunos4.c: Remove file, system not supported anymore.
18474
18475 * m/mips.h:
18476 * m/intel386.h:
18477 * callproc.c:
18478 * config.in:
18479 * ecrt0.c:
18480 * emacs.c:
18481 * fileio.c:
18482 * frame.c:
18483 * getpagesize.h:
18484 * keyboard.c:
18485 * lread.c:
18486 * process.c:
18487 * puresize.h:
18488 * sysdep.c:
18489 * systty.h:
18490 * syswait.h:
18491 * unexec.c:
18492 * xdisp.c:
18493 * alloc.c: Remove code containing references to symbols defined by
18494 unsupported systems.
18495
184962008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18497
18498 * coding.c (detect_coding_mask): Fix previous change.
18499
185002008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18501
18502 * coding.c (detect_coding_iso2022): New arg
18503 latin_extra_code_state. Allow Latin extra codes only
18504 when *latin_extra_code_state is nonzero.
18505 (detect_coding_mask): If there is a NULL byte, detect the encoding
18506 as UTF-16 or binary. If Latin extra codes exist, detect the
18507 encoding as ISO-2022 only when there's no other proper encoding is
18508 found.
18509
185102008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18511
18512 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18513 #ifdef MAC_OS.
18514
185152008-01-08 Richard Stallman <rms@gnu.org>
18516
18517 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18518
185192008-01-06 Nick Roberts <nickrob@snap.net.nz>
18520
18521 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18522 menu bar in parentheses.
18523
185242008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18525
18526 * m/7300.h:
18527 * m/acorn.h:
18528 * m/alliant-2800.h:
18529 * m/alliant.h:
18530 * m/alliant1.h:
18531 * m/alliant4.h:
18532 * m/altos.h:
18533 * m/amdahl.h:
18534 * m/apollo.h:
18535 * m/att3b.h:
18536 * m/aviion-intel.h:
18537 * m/aviion.h:
18538 * m/celerity.h:
18539 * m/clipper.h:
18540 * m/cnvrgnt.h:
18541 * m/convex.h:
18542 * m/cydra5.h:
18543 * m/delta88k.h:
18544 * m/dpx2.h:
18545 * m/dual.h:
18546 * m/elxsi.h:
18547 * m/f301.h:
18548 * m/gould-np1.h:
18549 * m/gould.h:
18550 * m/i860.h:
18551 * m/ibmps2-aix.h:
18552 * m/ibmrt-aix.h:
18553 * m/ibmrt.h:
18554 * m/irist.h:
18555 * m/is386.h:
18556 * m/isi-ov.h:
18557 * m/mega68.h:
18558 * m/mg1.h:
18559 * m/news-r6.h:
18560 * m/news-risc.h:
18561 * m/news.h:
18562 * m/nh3000.h:
18563 * m/nh4000.h:
18564 * m/ns16000.h:
18565 * m/ns32000.h:
18566 * m/nu.h:
18567 * m/orion.h:
18568 * m/orion105.h:
18569 * m/paragon.h:
18570 * m/pfa50.h:
18571 * m/plexus.h:
18572 * m/pyramid.h:
18573 * m/pyrmips.h:
18574 * m/sh3el.h:
18575 * m/sps7.h:
18576 * m/sr2k.h:
18577 * m/stride.h:
18578 * m/sun1.h:
18579 * m/sun2.h:
18580 * m/sun3-68881.h:
18581 * m/sun3-fpa.h:
18582 * m/sun3-soft.h:
18583 * m/sun3.h:
18584 * m/sun386.h:
18585 * m/symmetry.h:
18586 * m/tad68k.h:
18587 * m/tahoe.h:
18588 * m/targon31.h:
18589 * m/tek4300.h:
18590 * m/tekxd88.h:
18591 * m/tower32.h:
18592 * m/tower32v3.h:
18593 * m/ustation.h:
18594 * m/wicat.h:
18595 * m/xps100.h:
18596 * s/cxux.h:
18597 * s/cxux7.h:
18598 * s/dgux.h:
18599 * s/dgux4.h:
18600 * s/dgux5-4-3.h:
18601 * s/dgux5-4r2.h:
18602 * s/esix.h:
18603 * s/esix5r4.h:
18604 * s/hiuxmpp.h:
18605 * s/hiuxwe2.h:
18606 * s/iris3-5.h:
18607 * s/iris3-6.h:
18608 * s/isc2-2.h:
18609 * s/isc3-0.h:
18610 * s/isc4-0.h:
18611 * s/isc4-1.h:
18612 * s/newsos5.h:
18613 * s/newsos6.h:
18614 * s/osf1.h:
18615 * s/osf5-0.h:
18616 * s/riscix1-1.h:
18617 * s/riscix12.h:
18618 * s/sco4.h:
18619 * s/sco5.h:
18620 * s/sunos4-0.h:
18621 * s/sunos4-1.h:
18622 * s/sunos413.h:
18623 * s/sunos4shr.h:
18624 * s/umax.h:
18625 * s/unipl5-2.h:
18626 * s/xenix.h:
18627 * cxux-crt0.s:
18628 * unexapollo.c:
18629 * unexconvex.c:
18630 * unexenix.c:
18631 * unexsni.c: Remove files for systems no longer supported.
18632
18633 * m/intel386.h: Remove references to unsupported systems.
18634
18635 * w32.c (get_emacs_configuration): Remove reference to i860.
18636
18637 * sysdep.c: Remove dead code.
18638
186392008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18640
18641 * s/rtu.h:
18642 * m/masscomp.h: Remove files. Platform is obsolete.
18643
186442008-01-04 Michael Albinus <michael.albinus@gmx.de>
18645
18646 * dbusbind.c (Fdbus_method_return): New function.
18647 (xd_read_message): Add the serial number to the event.
18648 (Fdbus_register_method): Activate the function.
18649
186502008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18651
18652 * keyboard.c (read_key_sequence): Fix typo.
18653
186542008-01-03 Michael Albinus <michael.albinus@gmx.de>
18655
18656 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18657 (xd_signature, xd_append_arg): Handle element type detection for
18658 empty arrays.
18659 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18660 SDATA () calls; this must be solved more general.
18661 (Fdbus_register_signal): Use SBYTES instead of strlen.
18662
186632008-01-03 Magnus Henoch <magnus@zemdatav>
18664
18665 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18666 unsigned int for byte values (necessary for big-endian platform).
18667 (Fdbus_call_method): Handle the case of no returned arguments.
18668
186692007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18670
18671 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18672
186732007-12-31 Magnus Henoch <mange@freemail.hu>
18674
18675 * dbusbind.c (xd_signature): Signature of variant is just "v".
18676
186772007-12-30 Michael Albinus <michael.albinus@gmx.de>
18678
18679 * dbusbind.c: Fix several errors and compiler warnings.
18680 Reported by Tom Tromey <tromey@redhat.com>.
18681 (XD_ERROR, XD_DEBUG_MESSAGE)
18682 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18683 (xd_append_arg): Part for basic D-Bus types rewritten.
18684 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18685 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18686 appropriate.
18687 (xd_read_message): Return Qnil. Don't signal an error; it is not
18688 useful during event reading.
18689 (Fdbus_register_signal): Signal an error if the check for
18690 FUNCTIONP fails.
18691 (Fdbus_register_method): New function. The implementation is not
18692 complete, the call of the function signals an error therefore.
18693 (Fdbus_unregister_object): New function, renamed from
18694 Fdbus_unregister_signal. The initial check signals an error, if
18695 the object is not well formed.
18696
186972007-12-30 Richard Stallman <rms@gnu.org>
18698
18699 * textprop.c (get_char_property_and_overlay):
18700 Signal error if POSITION is out of range in a buffer.
18701
187022007-12-29 Martin Rudalics <rudalics@gmx.at>
18703
18704 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18705 because the original parameters are in pure storage now.
18706
187072007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18708
18709 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18710
187112007-12-22 Eli Zaretskii <eliz@gnu.org>
18712
18713 * callint.c (syms_of_callint) <command-history>: Add reference to
18714 history-length in the doc string.
18715
187162007-12-17 Jason Rumney <jasonr@gnu.org>
18717
18718 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18719 before passing as wParam.
18720
187212007-12-22 Michael Albinus <michael.albinus@gmx.de>
18722
18723 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18724 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18725 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18726 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18727 as number.
18728 (Fdbus_call_method): Fix docstring.
18729
187302007-12-21 Michael Albinus <michael.albinus@gmx.de>
18731
18732 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18733 New macros.
18734 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18735 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18736 Simplify.
18737 (xd_signature): New function.
18738 (xd_append_arg): Compute also signatures. Major rewrite.
18739 (xd_retrieve_arg): Make debug messages friendly.
18740 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18741 Check for signatures of arguments.
18742
187432007-12-19 Michael Albinus <michael.albinus@gmx.de>
18744
18745 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18746 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18747 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18748 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18749 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18750 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18751 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18752 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18753 (xd_retrieve_value): Remove. Functionality included in ...
18754 (xd_append_arg): New function.
18755 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18756
187572007-12-16 Michael Albinus <michael.albinus@gmx.de>
18758
18759 * dbusbind.c (top): Include <stdio.h>.
18760 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18761 dbus_message_new_method_call and dbus_message_new_signal.
18762 (Fdbus_register_signal): Rename unique_name to uname.
18763 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18764 non-existing unique name. Fix typos in matching rule. Return an
18765 object which is useful in Fdbus_unregister_signal.
18766 (Fdbus_unregister_signal): Reimplementation, in order to remove
18767 only the corresponding entry.
18768 (Vdbus_registered_functions_table): Change the order of entries.
18769 Apply these changes in xd_read_message and Fdbus_register_signal.
18770
187712007-12-16 Andreas Schwab <schwab@suse.de>
18772
18773 * fileio.c (Finsert_file_contents): Fix overflow check to not
18774 depend on undefined integer overflow.
18775
187762007-12-14 Jason Rumney <jasonr@gnu.org>
18777
18778 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18779 for characters above 127.
18780
187812007-12-13 Jason Rumney <jasonr@gnu.org>
18782
18783 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18784 before dereferencing array.
18785 (lookup_vk_code): Remove zero comparison.
18786
187872007-12-14 Michael Albinus <michael.albinus@gmx.de>
18788
18789 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18790 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18791 Use `unsigned int' instead of `uint'.
18792 (xd_read_message, Fdbus_register_signal): Split expressions into
18793 multiple lines before operators "&&" and "||", according to the
18794 GNU Coding Standards.
18795
187962007-12-14 Eli Zaretskii <eliz@gnu.org>
18797
18798 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18799
188002007-12-12 Juri Linkov <juri@jurta.org>
18801
18802 * buffer.c (Frename_buffer): In interactive spec replace
18803 `read-buffer' with `read-string' that uses `buffer-name-history'
18804 as history, and the current buffer's name as default.
18805
188062007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18807
18808 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18809 manipulating the backtrace manually.
18810 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18811 (struct backtrace, backtrace_list): Remove.
18812 (command_loop_1): Remove dead var `no_direct'.
18813
18814 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18815 preserve non-built-in buffer-local variables.
18816 (Fkill_all_local_variables): Don't re-create&re-set permanent
18817 buffer-local variables.
18818
188192007-12-09 Juri Linkov <juri@jurta.org>
18820
18821 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18822 Lisp code that uses `read-buffer' with current buffer as default.
18823
188242007-12-08 Michael Albinus <michael.albinus@gmx.de>
18825
18826 * dbusbind.c (xd_read_message): Generate an event for every
18827 registered handler. There might be several handlers registered
18828 for the same signal.
18829 (Fdbus_register_signal): Don't overwrite a registration for the
18830 same signal. Add a new registration if handlers are different.
18831 (Vdbus_registered_functions_table): Rework doc string.
18832
188332007-12-07 Michael Albinus <michael.albinus@gmx.de>
18834
18835 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18836 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18837 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18838 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18839 Unify argument lists.
18840 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18841 arguments and hash table keys. Use unique name for service.
18842 (Fdbus_unregister_signal): Remove checks.
18843 (Vdbus_registered_functions_table): Fix doc string.
18844
188452007-12-05 Magnus Henoch <mange@freemail.hu>
18846
18847 * process.c (make_process): Initialize pty_flag to 0.
18848
188492007-12-05 Jason Rumney <jasonr@gnu.org>
18850
18851 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18852 specified XBMs.
18853
188542007-12-05 Richard Stallman <rms@gnu.org>
18855
18856 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18857
188582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18859
18860 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18861 New variable.
18862 (mac_try_close_socket) [MAC_OSX]: New function.
18863 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18864 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18865
18866 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18867 Use mac_try_close_socket.
18868
188692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18870
18871 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18872 reloc_base.
18873 (copy_dysymtab): Compute relocation base here.
18874 (rebase_reloc_address) [__ppc64__]: New function.
18875 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18876 changed.
18877
188782007-12-05 Jason Rumney <jasonr@gnu.org>
18879
18880 * w32proc.c (sys_spawnve): Quote args with wildcards.
18881
188822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18883
18884 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18885 __objc_* sections.
18886 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18887
188882007-12-05 Michael Albinus <michael.albinus@gmx.de>
18889
18890 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18891 Move check for Vdbus_registered_functions_table to
18892 xd_read_queued_messages.
18893 (xd_read_queued_messages): Protect xd_read_message calls by
18894 internal_condition_case_1.
18895
188962007-12-04 Michael Albinus <michael.albinus@gmx.de>
18897
18898 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18899 Qdbus_system_bus and Qdbus_session_bus, respectively.
18900 (Vdbus_intern_symbols): Remove.
18901 (Vdbus_registered_functions_table): New hash table.
18902 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18903 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18904 Rewrite in order to manage registered functions by hash table
18905 Vdbus_registered_functions_table.
18906
189072007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18908
18909 * xterm.c: Update URL to Window Manager Specification in comment.
18910
189112007-12-02 Michael Albinus <michael.albinus@gmx.de>
18912
18913 * config.in (HAVE_DBUS): Add.
18914
18915 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18916 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18917 (obj): Add $(DBUS_OBJ).
18918 (LIBES): Add $(DBUS_LIBS).
18919 (dbusbind.o): New target.
18920
18921 * dbusbind.c: New file.
18922
18923 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18924
18925 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18926 (Qdbus_event): New Lisp symbol.
18927 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18928 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18929 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18930
18931 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18932
189332007-12-01 Richard Stallman <rms@gnu.org>
18934
18935 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18936
189372007-11-30 Jason Rumney <jasonr@gnu.org>
18938
18939 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18940 (w32con_reset_terminal_modes): Clear screen buffer.
18941 (w32_face_attributes): Don't use color indexes that are out of range.
18942 Only reverse the default colors.
18943
18944 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18945 WINDOWSNT.
18946
18947 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18948
189492007-11-29 Jason Rumney <jasonr@gnu.org>
18950
18951 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18952 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18953 if the terminal colors are initialized.
18954 (unspecified_fg, unspecified_bg): Remove unused declarations.
18955
189562007-11-29 Andreas Schwab <schwab@suse.de>
18957
18958 * keyboard.c (apply_modifiers): Fix typo.
18959
189602007-11-29 Richard Stallman <rms@gnu.org>
18961
18962 * keymap.c (Fcurrent_local_map): Doc fix.
18963
189642007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18965
18966 * s/gnu-kfreebsd.h: New file.
18967
189682007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18969
18970 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18971 Don't cast redundantly.
18972
18973 * keyboard.c (KEY_TO_CHAR): New macro.
18974 (parse_modifiers, apply_modifiers): Accept integer arguments.
18975 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18976 for chars and symbol keys.
18977 After doing such remapping, apply function-key-map again.
18978
189792007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18980
18981 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18982 compiled anymore.
18983
189842007-11-26 Andreas Schwab <schwab@suse.de>
18985
18986 * process.c (list_processes_1): Fix indentation level of the
18987 command column.
18988
189892007-11-23 Andreas Schwab <schwab@suse.de>
18990
18991 * editfns.c (Fformat): Handle %c specially since it requires the
18992 argument to be of type int.
18993
189942007-11-23 Markus Triska <markus.triska@gmx.at>
18995
18996 * emacs.c (main): Call init_editfns before init_process, since
18997 init_process sets Vprocess_connection_type depending on OS release.
18998
189992007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19000
19001 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19002 (find_symbol_value): Use do_symval_forwarding.
19003
19004 * data.c (set_internal): Set the value in the `cons-cell' (for
19005 Buffer_Local_values) not only for frame-local variables.
19006
190072007-11-22 Andreas Schwab <schwab@suse.de>
19008
19009 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19010 values to sprintf.
19011 * keymap.c (Fsingle_key_description): Likewise.
19012 * print.c (print_object): Likewise.
19013
190142007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19015
19016 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19017 file for image is nil.
19018
190192007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19020
19021 * term.c: Include stdarg.h.
19022 (fatal): Implement using varargs.
19023 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19024
190252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19026
19027 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19028 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19029 Update call to buffer_slot_type_mismatch.
19030 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19031 (buffer_slot_type_mismatch): Update.
19032 * buffer.c (buffer_local_types): Remove.
19033 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19034 (defvar_per_buffer): Set the type in the buffer_objfwd.
19035
190362007-11-21 Jason Rumney <jasonr@gnu.org>
19037
19038 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19039 CreateFileMapping returns NULL on failure.
19040
190412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19042
19043 * search.c (Fset_match_data): Remove the `evaporate' feature.
19044 (unwind_set_match_data): Don't use the `evaporate' feature.
19045
190462007-11-21 Jason Rumney <jasonr@gnu.org>
19047
19048 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19049
19050 * w32console.c (w32con_write_glyphs): Remove unused variables.
19051
190522007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19053
19054 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19055
19056 * s/darwin.h (MULTI_KBOARD): Remove.
19057
19058 * macfns.c (x_create_tip_frame, Fx_create_frame)
19059 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19060
190612007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19062
19063 * buffer.c (Fbuffer_local_value): Remove redundant test.
19064 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19065 than in `current-buffer' to match the comment.
19066 Do the swap using swap_in_global_binding.
19067
19068 * data.c (store_symval_forwarding, set_internal):
19069 * eval.c (specbind): Remove dead code.
19070
19071 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19072 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19073 Since we do not want to see internal Lisp_*fwd objects here.
19074
190752007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19076
19077 * sysdep.c (init_system_name): Use getaddrinfo if available.
19078
19079 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19080 (x_scroll_bar_note_movement): start, end, with, height in struct
19081 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19082
190832007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19084
19085 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19086
190872007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19088
19089 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19090 This undoes Richard's change of 14-Oct-2002.
19091
19092 * alloc.c (allocate_other_vector):
19093 * lisp.h (allocate_other_vector): Remove.
19094
19095 * window.c (struct save_window_data): Move non-lisp data to the end
19096 and make it `int' rather than Lisp_Object.
19097 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19098 Done wrap/unwrap integer values.
19099 (Fset_window_configuration, compare_window_configurations):
19100 Update use of fields to their new types.
19101
19102 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19103 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19104 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19105 (SET_SCROLL_BAR_X_WINDOW): Remove.
19106 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19107 Access the new x_window field directly.
19108 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19109 Don't wrap/unwrap integers into Lisp_Objects.
19110 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19111 (x_scroll_bar_report_motion):
19112 Don't wrap/unwrap integers into Lisp_Objects.
19113 (x_term_init): Use SDATA.
19114 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19115 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19116 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19117 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19118 * xfns.c (x_set_background_color):
19119 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19120 Access the new x_window field directly.
19121
19122 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19123 (allocate_pseudovector): Make non-static.
19124
19125 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19126 (allocate_pseudovector): Declare.
19127 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19128
191292007-11-15 Andreas Schwab <schwab@suse.de>
19130
19131 * editfns.c (Fformat): Correctly format EMACS_INT values.
19132 Also take precision into account when formatting an integer.
19133
19134 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19135
191362007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19137
19138 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19139 (syms_of_keyboard): Defsubr it.
19140
19141 * data.c (swap_in_global_binding): Fix longstanding bug where
19142 store_symval_forwarding was not called with the right second argument,
19143 thus causing objfwd-ing from being dropped.
19144
191452007-11-14 Juanma Barranquero <lekktu@gmail.com>
19146
19147 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19148 (Fx_display_pixel_height, Fx_display_planes)
19149 (Fx_display_color_cells, Fx_server_max_request_size)
19150 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19151 (Fx_display_visual_class, Fx_display_save_under):
19152 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19153 (Fx_display_pixel_height, Fx_display_planes)
19154 (Fx_display_color_cells, Fx_server_max_request_size)
19155 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19156 (Fx_display_mm_height, Fx_display_mm_width)
19157 (Fx_display_backing_store, Fx_display_visual_class)
19158 (Fw32_select_font, Fx_display_save_under):
19159 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19160 (Fx_display_pixel_height, Fx_display_planes)
19161 (Fx_display_color_cells, Fx_server_max_request_size)
19162 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19163 (Fx_display_save_under): Fix typos in docstrings.
19164
191652007-11-14 Juanma Barranquero <lekktu@gmail.com>
19166
19167 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19168 corresponding to deleted entries; they are an implementation detail.
19169 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19170 Remove variables.
19171 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19172 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19173 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19174 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19175 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19176 (Fw32_define_rgb_color, Fw32_load_color_file)
19177 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19178 Fix typos in docstrings.
19179 (Fx_server_version): Reflow docstring.
19180 (Fw32_shell_execute): Doc fixes.
19181
191822007-11-13 Juanma Barranquero <lekktu@gmail.com>
19183
19184 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19185 if w32_parse_hot_key returned nil.
19186
191872007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19188
19189 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19190
191912007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19192
aac0c6e3
MR
19193 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19194
19195 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19196
19197 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19198 Remove W32_SCROLL_BAR_CLICK_EVENT.
19199
19200 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19201 Add MULTIMEDIA_KEY_EVENT.
19202
19203 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19204 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19205 (make_lispy_event) [WINDOWSNT]: Use it to translate
19206 MULTIMEDIA_KEY_EVENT.
19207
19208 * w32term.h (WM_APPCOMMAND): Define if not already.
19209 (GET_APPCOMMAND_LPARAM): Likewise.
19210
19211 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19212 WM_APPCOMMAND.
19213
19214 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19215 (syms_of_w32fns): Export and initialize it.
19216 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19217
192182007-11-09 Chong Yidong <cyd@stupidchicken.com>
19219
19220 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19221 twice.
19222
19223 * xdisp.c (handle_face_prop): Fix last change.
19224
192252007-11-09 Richard Stallman <rms@gnu.org>
19226
19227 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19228 not just for after-strings and before-strings.
19229 Call face_for_overlay_string and pass the overlay to it.
19230 (handle_display_prop): Determine whether property came from an overlay.
19231 Pass OVERLAY arg to handle_single_display_spec.
19232 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19233 (load_overlay_strings): Fill in it->string_overlays.
19234 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19235
19236 * xfaces.c (face_for_overlay_string): Function renamed from
19237 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19238
19239 * dispextern.h (struct it): New elt string_overlays.
19240 New elt from_overlay, also in stack.
19241 Rearrange a few elements.
19242 (face_for_overlay_string): Decl renamed from
19243 face_at_buffer_position_no_overlays, and add argument.
19244
192452007-11-09 Richard Stallman <rms@gnu.org>
19246
19247 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19248 to get the base face for an overlay string.
19249
19250 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19251
19252 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19253
19254 * xdisp.c (handle_stop): Move some code out of loop.
19255
192562007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19257
19258 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19259 Fix conversion from Lisp object to ATSUFontID.
19260
192612007-11-09 Jason Rumney <jasonr@gnu.org>
19262
19263 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19264
192652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19266
19267 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19268 Don't assume regions are aligned to page boundary.
19269 (print_load_command_name): Add LC_UUID if defined.
19270
192712007-11-09 Richard Stallman <rms@gnu.org>
19272
19273 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19274
192752007-11-07 Jason Rumney <jasonr@gnu.org>
19276
19277 * s/windows95.h: Remove.
19278
192792007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19280
19281 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19282 abort with a message on unhandled store_type values.
19283
192842007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19285
19286 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19287 Remove HAVE_X11R5 and HAVE_X11R4.
19288
192892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19290
19291 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19292
192932007-11-01 Johan Bockgård <bojohan@gnu.org>
19294
19295 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19296 Don't set s->stippled_p here, since it has already been set by
19297 x_set_glyph_string_gc from x_draw_glyph_string.
19298
192992007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19300
19301 * sunfns.c: Remove file.
19302
19303 * m/sun386.h:
19304 * m/sun2.h:
19305 * m/sparc.h: Remove Sun windows code.
19306
193072007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19308
19309 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19310 (init_keyboard): Set current_kboard's window-system to nil.
19311 (tty_read_avail_input): Typo.
19312 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19313
193142007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19315
19316 * s/usg5-4.h:
19317 * s/usg5-3.h:
19318 * s/ptx.h:
19319 * m/is386.h:
19320 * m/ibmps2-aix.h:
19321 * Makefile.in: Remove all mentions of X10.
19322
19323 * dispnew.c (syms_of_display): Don't mention version 10.
19324
193252007-10-28 Juanma Barranquero <lekktu@gmail.com>
19326
19327 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19328 ($(BLD)/abbrev.$(O)): Remove.
19329
193302007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19331
19332 Rewrite abbrev.c in Elisp.
19333 * image.c (Qcount): Don't declare as extern.
19334 (syms_of_image): Initialize and staticpro `Qcount'.
19335 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19336 * emacs.c (main): Don't call syms_of_abbrev.
19337 * Makefile.in (obj): Remove abbrev.o.
19338 (abbrev.o): Remove.
19339 * abbrev.c: Remove.
19340
193412007-10-26 Martin Rudalics <rudalics@gmx.at>
19342
19343 * window.c (window_min_size_2): Don't count header-line.
19344
193452007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19346
19347 * frame.h (struct frame): Move all bit fields after the first bit
19348 field to take advantage of the available space. Group all the
19349 chars together to reduce wasted space due to padding.
19350
193512007-10-26 Juanma Barranquero <lekktu@gmail.com>
19352
19353 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19354
19355 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19356 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19357 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19358 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19359 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19360 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19361 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19362 (last_marked, mark_object_loop_halt): Make static.
19363
19364 * frame.c (syms_of_frame) <delete-frame-functions>:
19365 Fix typo in docstring.
19366
193672007-10-25 Juanma Barranquero <lekktu@gmail.com>
19368
19369 * w32.c (init_environment): Fix tiny memory leak.
19370 (w32_get_resource): Remove unused variable `ok'.
19371
193722007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19373
19374 Make `window-system' into a keyboard-local variable (rather than
19375 frame-local as done originally by multi-tty).
19376
19377 * keyboard.h (struct kboard): Add Vwindow_system.
19378 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19379 (mark_kboards): Mark Vwindow_system.
19380
19381 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19382 (init_display): Don't set the obsolete `window-system' frame-param.
19383
19384 * xterm.c (x_term_init):
19385 * w32term.c (w32_create_terminal):
19386 * term.c (init_tty): Set Vwindow_system.
19387 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19388 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19389
19390 * xfns.c (Fx_create_frame, x_create_tip_frame):
19391 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19392 * macfns.c (Fx_create_frame):
19393 Don't set the obsolete `window-system' frame-param.
19394
19395 * frame.h (Qwindow_system): Remove.
19396 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19397 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19398
193992007-10-24 Richard Stallman <rms@gnu.org>
19400
19401 * frame.c (x_figure_window_size): For fullscreen case,
19402 set USPosition | PPosition without clobbering rest of window_prompting.
19403
19404 * keyboard.c (Fcurrent_idle_time): Doc fix.
19405
19406 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19407
194082007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19409
19410 * process.c (unwind_request_sigio): Only define if __ultrix__.
19411
19412 * callproc.c (child_setup): Remove spurious *.
19413
19414 * lisp.h (Fget_text_property): Declare.
19415 (have_menus_p): Declare it here rather than in sys-dep header files.
19416 * macterm.h (have_menus_p):
19417 * msdos.h (have_menus_p):
19418 * xterm.h (have_menus_p): Remove.
19419
19420 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19421 (Fmake_variable_frame_local): Just check the variable's const-ness
19422 rather than checking nil or t.
19423
194242007-10-22 Jason Rumney <jasonr@gnu.org>
19425
19426 * w32fns.c: Include math.h.
19427 (w32_abort): Declaration moved to nt/config.nt.
19428
19429 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19430 (abort): Redefinition moved to nt/config.nt.
19431
19432 * m/windowsnt.h: Remove.
19433
194342007-10-22 Juanma Barranquero <lekktu@gmail.com>
19435
19436 * emacs.c (Fdump_emacs): Fix typo in message.
19437 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19438 <installation-directory>: Reflow docstring.
19439
194402007-10-22 Juri Linkov <juri@jurta.org>
19441
19442 * minibuf.c: Allow minibuffer default to be a list of default values.
19443 With empty input use the first element of this list as returned default.
19444 (string_to_object)
19445 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19446 (read_minibuf): If defalt is cons, set histstring to its car.
19447 (Fread_string): If default_value is cons, set val to its car.
19448 (Fread_buffer): If def is cons, use its car.
19449 (Fcompleting_read): If defalt is cons, set val to its car.
19450
194512007-10-21 Michael Albinus <michael.albinus@gmx.de>
19452
19453 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19454
194552007-10-20 Juanma Barranquero <lekktu@gmail.com>
19456
19457 * doc.c (Fdocumentation): Check for advice in all cases.
19458
194592007-10-19 Chong Yidong <cyd@stupidchicken.com>
19460
19461 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19462
194632007-10-19 Richard Stallman <rms@gnu.org>
19464
19465 * doc.c (Fdocumentation): Check for and handle an advised function.
19466
194672007-10-19 Juanma Barranquero <lekktu@gmail.com>
19468
19469 * process.c (Fset_process_filter): Doc fix.
19470
194712007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19472
19473 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19474 which caused key-translation-map to applied repeatedly (thus breaking
19475 double-mode).
19476
194772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19478
19479 * xselect.c (x_own_selection, x_handle_selection_clear)
19480 (x_clear_frame_selections):
19481 * w32menu.c (list_of_panes, list_of_items):
19482 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19483 * textprop.c (validate_plist, interval_has_all_properties)
19484 (interval_has_some_properties, interval_has_some_properties_list)
19485 (add_properties, text_property_list):
19486 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19487 * minibuf.c (Fassoc_string):
19488 * macselect.c (x_own_selection, x_clear_frame_selections)
19489 (Fx_disown_selection_internal):
19490 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19491 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19492
194932007-10-17 Chong Yidong <cyd@stupidchicken.com>
19494
19495 * process.c: Link to libs for calling res_init() if available.
19496 (Fmake_network_process): Call res_init() before getaddrinfo or
19497 gethostbyname, if possible.
19498
194992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19500
19501 * lread.c (read1): Set pvectype for char_tables.
19502
19503 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19504 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19505 Add type checks.
19506 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19507
19508 * alloc.c (free_misc): Use XMISCTYPE.
19509 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19510
195112007-10-17 Glenn Morris <rgm@gnu.org>
19512
19513 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19514 (syms_of_minibuf): Add Qcompletion_ignore_case.
19515 * dired.c (Qcompletion_ignore_case): Change to external.
19516 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19517 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19518 (Fread_file_name): Use it rather than intern'ing.
19519
19520 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19521 (Fread_coding_system): Ignore case of user input.
19522
195232007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19524
19525 * xdisp.c (handle_display_prop): Ignore display specs after
19526 replacing one when string text is being replaced.
19527 (handle_single_display_spec): Pretend as if characters with display
19528 property haven't been consumed only when buffer text is being replaced.
19529
195302007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19531
19532 * xfns.c (Fx_create_frame, Fx_display_list):
19533 * window.c (window_fixed_size_p, enlarge_window)
19534 (shrink_window_lowest_first):
19535 * macterm.c (init_font_name_table):
19536 * macfns.c (Fx_create_frame, Fx_display_list):
19537 * lread.c (close_load_descs):
19538 * keyboard.c (read_char_x_menu_prompt):
19539 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19540 * coding.c (code_convert_region_unwind): Test the type of an object
19541 rather than just !NILP before extracting data from it.
19542
19543 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19544
19545 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19546 (XMISCANY): New macro.
19547 (XMISCTYPE): Use it.
19548 (struct Lisp_Misc_Any): New type.
19549 (union Lisp_Misc): Use it.
19550 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19551 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19552 (find_symbol_value, set_internal, default_value, Fset_default)
19553 (Fmake_variable_buffer_local, Fmake_local_variable)
19554 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19555 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19556 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19557 * alloc.c (allocate_buffer): Set the size and tag.
19558 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19559 Use XMISCANY.
19560 (die): Follow the GNU convention for error messages.
19561 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19562 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19563 tag any more.
19564 (set_buffer_internal_1):
19565 * frame.c (store_frame_param):
19566 * eval.c (specbind):
19567 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19568
19569 * doc.c (Fsnarf_documentation): Simplify.
19570
195712007-10-14 Juanma Barranquero <lekktu@gmail.com>
19572
19573 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19574 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19575
195762007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19577
19578 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19579
195802007-10-14 Juanma Barranquero <lekktu@gmail.com>
19581
19582 * eval.c (do_autoload): Don't save autoloads.
19583
19584 * data.c (Ffset): Save autoload of the function being set.
19585
195862007-10-07 John Paul Wallington <jpw@pobox.com>
19587
19588 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19589 parameter before setting up faces.
19590
195912007-10-13 Eli Zaretskii <eliz@gnu.org>
19592
19593 * ccl.c (Fregister_code_conversion_map):
19594 * keyboard.c (append_tool_bar_item): Reformat last change.
19595
19596 * lisp.h (eabs): Rename from `abs'. All callers changed.
19597
195982007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19599
19600 * buffer.c (add_overlay_mod_hooklist):
19601 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19602 * fontset.c (make_fontset):
19603 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19604 (append_tool_bar_item):
19605 * macmenu.c (grow_menu_items):
19606 * w32menu.c (grow_menu_items):
19607 * xmenu.c (grow_menu_items): Use larger_vector.
19608
196092007-10-13 Eli Zaretskii <eliz@gnu.org>
19610
19611 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19612 selected frame'' on MSDOS).
19613
196142007-10-12 Martin Rudalics <rudalics@gmx.at>
19615
19616 * frame.c (Qexplicit_name): New variable.
19617 (x_report_frame_params): Report it in parameter alist.
19618 (syms_of_frame): Intern and staticpro it.
19619
196202007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19621
19622 * macfns.c (x_create_tip_frame): Set terminal for frame.
19623
196242007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19625
19626 * frame.c (Qenvironment): Remove.
19627 (syms_of_frame) <Qenvironment>: Don't initialize.
19628 (Fdelete_frame): Don't treat the `environment' param specially.
19629 * frame.h (Qenvironment): Don't declare.
19630 * callproc.c (set_initial_environment): Don't set unused frame param.
19631
19632 * frame.c (Fframe_with_environment): Remove.
19633 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19634
19635 * lisp.h (Fframe_with_environment): Don't declare.
19636
196372007-10-10 Juanma Barranquero <lekktu@gmail.com>
19638
19639 * indent.c (indent_tabs_mode, last_known_column)
19640 (last_known_column_modified): Make static.
19641 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19642
196432007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19644
19645 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19646
196472007-10-09 Jason Rumney <jasonr@gnu.org>
19648
19649 * w32term.c (x_set_window_size): Disable code that attempts to tell
19650 Lisp code about a size change before it actually happens.
19651
196522007-10-09 Richard Stallman <rms@gnu.org>
19653
19654 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19655 return HANDLED_RETURN.
19656
196572007-10-08 Martin Rudalics <rudalics@gmx.at>
19658
19659 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19660 when there's an unread command event.
19661
19662 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19663 window autoselection act appropriately when leaving selected frame.
19664 (syms_of_frame): Initialize focus_follows_mouse.
19665 * frame.h (focus_follows_mouse): Extern it.
19666 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19667 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19668 * msdos.c (dos_rawgetc): Likewise.
19669 * w32term.c (w32_read_socket): Likewise.
19670 * xterm.c (handle_one_xevent): Likewise.
19671 * xdisp.c (syms_of_xdisp): In doc-string of
19672 mouse-autoselect-window mention focus-follows-mouse.
19673
196742007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19675
19676 * macterm.c (mac_load_query_font): Fix missing return value.
19677 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19678 Add BLOCK_INPUT.
19679
196802007-10-08 Richard Stallman <rms@gnu.org>
19681
19682 * xdisp.c (get_window_cursor_type): Implement documented behavior
19683 for cursor-in-non-selected-windows = t.
19684
196852007-10-08 Jason Rumney <jasonr@gnu.org>
19686
19687 * w32.c (w32_get_resource): Always close registry keys.
19688
196892007-10-08 Jason Rumney <jasonr@gnu.org>
19690
19691 * makefile.w32-in (LIBS): Add COMCTL32.
19692
19693 * w32fns.c (globals_of_w32fns): Init common controls.
19694
196952007-10-08 Richard Stallman <rms@gnu.org>
19696
19697 * image.c (our_memory_buffer): Rename from omfib_buffer.
19698
196992007-10-08 Richard Stallman <rms@gnu.org>
19700
19701 * buffer.c (Foverlays_at): Doc fix.
19702
197032007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * fns.c (Fplist_put): Preserve uneven tail data.
19706
197072007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19708
19709 * termhooks.h (enum event_kind): Remove trailing comma.
19710
19711 * frame.h (enum): Remove trailing comma.
19712
197132007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19714
19715 * w32proc.c (delete_child): Don't terminate threads of zombies.
19716
197172007-10-08 Martin Rudalics <rudalics@gmx.at>
19718
19719 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19720
19721 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19722 last-repeatable-command.
19723 (init_kboard): Initialize Vlast_repeatable_command.
19724 (command_loop_1): Set it to real_this_command unless that was
19725 bound to an input event.
19726 (mark_kboards): Mark it.
19727
197282007-10-08 Richard Stallman <rms@gnu.org>
19729
19730 * eval.c (condition-case): Doc fix.
19731
197322007-10-08 Masatake YAMATO <jet@gyve.org>
19733
19734 * xfaces.c (tty_supports_face_attributes_p): Fix code
19735 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19736 was copied and not edited.
19737
197382007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19739
19740 Add new `input-decode-map' keymap and use it for terminal
19741 escape sequences.
19742 * keyboard.h (struct kboard): Add Vinput_decode_map.
19743 Remove Vlocal_key_translation_map.
19744 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19745 (init_kboard): Init input-decode-map.
19746 Replace local-key-translation-map back with key-translation-map.
19747 (syms_of_keyboard): Declare input-decode-map.
19748 Remove local-key-translation-map. Update docstrings.
19749 (mark_kboards): Mark Vinput_decode_map.
19750 Don't mark Vlocal_key_translation_map.
19751 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19752 Replace local-key-translation-map back with key-translation-map.
19753 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19754 Bind in input-decode-map rather than function-key-map.
19755
19756 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19757 This was made redundant by the previous introduction of XSETPVECTYPE.
19758
197592007-10-09 Richard Stallman <rms@gnu.org>
19760
19761 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19762
197632007-09-29 Richard Stallman <rms@gnu.org>
19764
19765 * eval.c (internal_condition_case_2, internal_condition_case_1)
19766 (internal_condition_case): Reenable abort if x_catching_errors ()
19767 to see if that really happens and why.
19768
197692007-10-06 Andreas Schwab <schwab@suse.de>
19770
19771 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19772
197732007-10-04 Juanma Barranquero <lekktu@gmail.com>
19774
19775 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19776
197772007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19778
19779 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19780
197812007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19782
19783 * window.h (struct window):
19784 * window.c (struct save_window_data, struct saved_window):
19785 * termhooks.h (struct terminal):
19786 * process.h (struct Lisp_Process):
19787 * frame.h (struct frame):
19788 * buffer.h (struct buffer):
19789 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19790 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19791 The size field of (pseudo)vectors is now unsigned.
19792 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19793
19794 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19795 Turn `count' into an integer.
19796
19797 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19798 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19799 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19800 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19801 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19802
19803 * alloc.c (allocate_pseudovector): New fun.
19804 (ALLOCATE_PSEUDOVECTOR): New macro.
19805 (allocate_window, allocate_terminal, allocate_frame)
19806 (allocate_process): Use it.
19807 (mark_vectorlike): New function.
19808 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19809 (mark_terminals): Use it.
19810 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19811 (Fmake_byte_code): Use XSETPVECTYPE.
19812
19813 * frame.c (Fframe_parameters): Minor simplification.
19814
19815 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19816
19817 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19818
19819 * buffer.c (Fget_buffer_create, init_buffer_once):
19820 * lread.c (defsubr):
19821 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19822
19823 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19824 defined differently in the m/*.h files.
19825 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19826 (XSETPVECTYPE): New macro.
19827 (XSETPSEUDOVECTOR): Use it.
19828
19829 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19830 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19831
19832 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19833 * lread.c (defvar_per_buffer):
19834 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19835
19836 * window.c (candidate_window_p): Only consider as visible frames that
19837 are on the same terminal.
19838
19839 * m/ibms390x.h (MARKBIT): Remove unused macro.
19840
198412007-10-01 Juanma Barranquero <lekktu@gmail.com>
19842
19843 * lread.c (Fload): Fix typo in docstring.
19844
198452007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19846
19847 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19848 of a non-zero value can't yield zero.
19849
198502007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19851
19852 * term.c (term_clear_mouse_face, term_mouse_highlight)
19853 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19854
19855 * print.c (safe_debug_print): Use XHASH.
19856
19857 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19858 Lisp elements such as tags.
19859 (XHASH): New macro.
19860 (EQ): Use it.
19861 (SREF, SSET, STRING_COPYIN): Use SDATA.
19862 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19863
19864 * alloc.c (mark_terminal): Remove left-over declaration.
19865 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19866 (allocate_vectorlike): Remove type argument. Adjust callers.
19867 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19868 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19869
19870 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19871 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19872 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19873 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19874 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19875 Use them.
19876
19877 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19878 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19879 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19880
198812007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19882
19883 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19884 loaded by default.
19885
198862007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19887
19888 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19889 on this tty.
19890 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19891
19892 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19893 Update all users.
19894 (handle_one_term_event): Use Gpm_DrawPointer.
19895 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19896 Signal errors instead of returning nil. Always return nil.
19897 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19898 Make it a noop if gpm-mouse was not activated.
19899 (syms_of_term): Update names.
19900
199012007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19902
19903 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19904 (init_sys_modes): Check that gpm_tty is the current tty.
19905
19906 * alloc.c (allocate_terminal): Set the vector size to only count the
19907 lisp fields. Initialize those to nil.
19908 (mark_object): Don't treat terminals specially.
19909 (mark_terminal): Remove.
19910 (mark_terminals): Use mark_object instead.
19911
19912 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19913 the GC to the beginning.
19914
19915 * indent.h:
19916 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19917
19918 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19919
199202007-09-25 Jason Rumney <jasonr@gnu.org>
19921
19922 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19923
19924 * w32console.c (create_w32cons_output): Remove.
19925
19926 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19927
19928 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19929 (reset_sys_modes): Use reset_terminal_modes_hook.
19930
199312007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19932
19933 * eval.c (do_autoload): Don't output any message.
19934
199352007-09-24 Juri Linkov <juri@jurta.org>
19936
19937 * emacs.c (standard_args): Change priority of "--no-splash"
19938 from 40 to 3. Add "--no-desktop" with the same priority.
19939
199402007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19941
19942 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19943 and optimize the case where they are all 1.
19944
199452007-09-23 Johannes Weiner <hannes@saeurebad.de>
19946
19947 * lisp.h (abs): Define if not defined.
19948 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19949 Don't define `abs', since it's defined in lisp.h.
19950
199512007-09-22 Eli Zaretskii <eliz@gnu.org>
19952
19953 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19954 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19955 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19956 (init_tty): Use DEV_TTY instead of "/dev/tty".
19957 [WINDOWSNT]: No need to protect from NAME arg being null.
19958
199592007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19960
19961 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19962 up the tty state.
19963
199642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19965
19966 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19967 (gpm_tty): Change its type.
19968 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19969 (gpm_tty): Change its type and initialize it.
19970 (Fterm_open_connection): Check the frame is indeed a tty.
19971 Use the new gpm_tty.
19972 (Fterm_close_connection): Use the new gpm_tty.
19973 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19974 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19975
199762007-09-21 Juanma Barranquero <lekktu@gmail.com>
19977
19978 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19979 underline_color, to draw strike-through.
19980
199812007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19982
19983 * lisp.h (allocate_terminal): Declare.
19984
19985 * window.c (candidate_window_p): Consider frames that are being placed
19986 by the user as somewhere between visible and iconified.
19987 (window_loop): Prefer windows on the current frame.
19988 (Fselect_window): Move the use of select-frame to the beginning so we
19989 can just delegate all the work (it'll call us back anyway).
19990
19991 * frame.c (Qdisplay_environment_variable):
19992 * frame.h (Qdisplay_environment_variable): Delete.
19993
19994 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19995 of the first arg, since that value may be a union.
19996
19997 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19998 parameter rather than Qdisplay_environment_variable. If all else
19999 fails, look for DISPLAY in initial-environment.
20000
200012007-09-21 Glenn Morris <rgm@gnu.org>
20002
20003 * Makefile.in (emacstool): Remove target.
20004 (lisp, shortlisp): Remove termdev.elc.
20005
200062007-09-21 Markus Triska <markus.triska@gmx.at>
20007
20008 * xterm.c (x_delete_display): Compile session management conditionally.
20009
200102007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20011
20012 * callproc.c (getenv_internal_1): New function.
20013 (getenv_internal): Use it.
20014 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20015
20016 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20017 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20018 (Fset_terminal_parameter): Work with dead terminals as well.
20019 (Fmodify_terminal_parameters): Remove.
20020
20021 * terminal.c (get_terminal): Handle terminals.
20022 Make sure the terminal returned is live.
20023 (create_terminal): Use allocate_terminal.
20024 (mark_terminals): Move to alloc.c.
20025 (delete_terminal): Use terminal->name as liveness status.
20026 NULL out fields after freeing their contents.
20027 Don't deallocate the object.
20028 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20029 rather than an int.
20030 (Fterminal_live_p): Accept non-integer arguments.
20031 (Fterminal_list): Return terminal objects rather than an ints.
20032
20033 * alloc.c (enum mem_type): New member for `terminal' objects.
20034 (allocate_terminal): New function.
20035 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20036 Handle terminals.
20037 (mark_terminal): New fun.
20038 (mark_terminals): Move from terminal.c.
20039
20040 * term.c (get_tty_terminal): Don't treat output_initial specially.
20041 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20042 (delete_tty): Use terminal->name as liveness status.
20043
20044 * termhooks.h (struct terminal): Make it into a pseudovector.
20045 Remove `deleted' replaced by checking `name's nullness.
20046
20047 * print.c (print_object): Handle terminals.
20048
20049 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20050 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20051
20052 * frame.c (make_terminal_frame):
20053 * keyboard.c (tty_read_avail_input):
20054 * w32term.c (x_delete_terminal):
20055 * xfns.c (Fx_create_frame, x_create_tip_frame):
20056 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20057
200582007-09-20 Glenn Morris <rgm@gnu.org>
20059
20060 * process.c (Fmake_network_process): Doc fix.
20061
200622007-09-19 Jason Rumney <jasonr@gnu.org>
20063
20064 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20065
200662007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20067
20068 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20069 Fix a C warning regarding variable constness.
20070
20071 * xterm.c (handle_one_xevent): Fix a C warning.
20072
200732007-09-18 Jason Rumney <jasonr@gnu.org>
20074
20075 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20076
200772007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20078
20079 * gtkutil.c (gdpy_def): New variable.
20080 (xg_initialize): Initialize gdpy_def.
20081 (xg_display_close): If no other display exists, set gdpy_def to a
20082 new connection.
20083
200842007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20085
20086 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20087 when we have no file name for the icon.
20088 (xg_tool_bar_expose_callback): Remove.
20089 (xg_create_tool_bar): Don't connect expose signal to
20090 xg_tool_bar_expose_callback.
20091 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20092
200932007-09-16 Andreas Schwab <schwab@suse.de>
20094
20095 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20096 values instead of zapping them.
20097
200982007-09-14 Glenn Morris <rgm@gnu.org>
20099
20100 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20101 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20102 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20103 scope and rename to omfib_buffer for clarity.
20104 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20105
201062007-09-14 Kenichi Handa <handa@m17n.org>
20107
20108 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20109
201102007-09-13 Jason Rumney <jasonr@gnu.org>
20111
20112 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20113
20114 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20115
20116 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20117 (mac_term_init): Call here instead, passing rif.
20118
201192007-09-13 Glenn Morris <rgm@gnu.org>
20120
20121 * s/hpux.h: No longer define `static' as nothing.
20122
201232007-09-13 Johan Bockgård <bojohan@gnu.org>
20124
20125 * callint.c (Fcall_interactively): Remove unused var `fun'.
20126
201272007-09-12 Romain Francoise <romain@orebokech.com>
20128
20129 * window.c (prefer_window_split_horizontally, display_buffer):
20130 Revert 2007-09-08 change.
20131
201322007-09-12 Glenn Morris <rgm@gnu.org>
20133
20134 * alloca.c: Remove file.
20135 * Makefile.in (alloca): Do not undef.
20136 (allocaobj, alloca.o): Remove.
20137 (otherobj): Remove allocaobj.
20138 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20139 * regex.c (C_ALLOCA): Remove all references and code that was only
20140 used when this was defined.
20141 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20142 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20143 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20144
20145 * Makefile.in (SOURCES, unlock, relock): Delete.
20146
20147 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20148 (menu_grab_callback): All uses changed.
20149
20150 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20151 (x_reply_selection_request): All uses changed.
20152
201532007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20154
20155 * lread.c (load_warn_old_style_backquotes): Change message to look
20156 better when it appears in the middle of byte-compiler messages.
20157
201582007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20159
20160 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20161
20162 * xterm.c (x_create_terminal): Add comment.
20163
20164 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20165
201662007-09-10 Richard Stallman <rms@gnu.org>
20167
20168 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20169
201702007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20171
20172 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20173 (DEFUN): Document `intspec', use it instead of `prompt'.
20174
20175 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20176
20177 * data.c (Finteractive_form): If the interactive specification starts
20178 with a `(', use it as a Lisp form.
20179
20180 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20181 name and file modes.
20182
20183 * callint.c (Fcall_interactively): Comment fixes.
20184
201852007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20186
20187 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20188 and compiled functions.
20189
201902007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20191
20192 * window.c (prefer_window_split_horizontally): New variable.
20193 (display_buffer): Consider splitting window horizontally depending
20194 on prefer_window_split_horizontally.
20195
201962007-09-08 Eli Zaretskii <eliz@gnu.org>
20197
20198 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20199
202002007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20201
20202 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20203
20204 * frame.c (x_set_frame_parameters): Check number is positive before
20205 using XFASTINT.
20206
20207 * window.c (freeze_window_start): Don't presume selected_window holds
20208 a window object.
20209 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20210
202112007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20212
20213 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20214
202152007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20216
20217 * window.c (Vsplit_window_preferred_function): New var.
20218 (Fdisplay_buffer): Use it.
20219 (syms_of_window): Export, and initialize it.
20220
202212007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20222
20223 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20224
202252007-09-06 Glenn Morris <rgm@gnu.org>
20226
20227 * gtkutil.c (menu_grab_callback) <cnt>:
20228 * xselect.c (x_reply_selection_request) <cnt>: Move static
20229 variable to file scope.
20230
202312007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20232
20233 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20234 consistent values of selected_frame and selected_window.
20235
202362007-09-04 Jason Rumney <jasonr@gnu.org>
20237
20238 * w32console.c (initialize_w32_display): Zero unused hooks.
20239
202402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20241
20242 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20243 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20244
202452007-09-04 Jason Rumney <jasonr@gnu.org>
20246
20247 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20248 in w32console.c. Set up input. Remove XXX comments that have been
20249 confirmed as correct.
20250
20251 * s/ms-w32.h (MULTI_KBOARD): Define.
20252
20253 * w32console.c (one_and_only_w32cons): Remove.
20254 (initialize_w32_display): Take terminal argument.
20255
20256 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20257 initialize_w32_display.
20258 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20259
20260 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20261
20262 * keyboard.c (discard_mouse_events): Discard it.
20263 (make_lispy_event): Translate it to a lisp event.
20264 (lispy_wheel_names): Add wheel-left and right events.
20265 (syms_of_keyboard): Enlarge wheel_syms.
20266
20267 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20268 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20269
20270 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20271
20272 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20273 from WM_MOUSEHWHEEL.
20274 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20275
20276 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20277 terminal.
20278
20279 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20280 keyboard for the terminal.
20281
202822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20283
20284 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20285 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20286 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20287 and resume-tty-function to resume-tty-hook.
20288 (Fsuspend_tty, Fresume_tty): Use new names.
20289
202902007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20291
20292 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20293 if it starts with "n:".
20294
202952007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20296
20297 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20298
202992007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20300
20301 * frame.h:
20302 * frame.c (Qterm_environment_variable): Remove.
20303 (syms_of_frame): Don't init and staticpro it.
20304
20305 * callproc.c (getenv_internal): Remove special case for $TERM.
20306
20307 * callproc.c (Vinitial_environment): New variable.
20308 (set_initial_environment): Initialize it.
20309 (syms_of_callproc): Declare it.
20310 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20311 TERM under which a process runs is never related to the TERM in which
20312 Emacs is running.
20313
203142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20315
20316 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20317 * s/darwin.h: ... do it here.
20318
203192007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20320
20321 * lisp.h (set_initial_environment): Rename from set_global_environment.
20322
20323 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20324 removed by mistake on the multi-tty branch.
20325
20326 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20327 (Fmodify_frame_parameters): Return a value.
20328
20329 * image.c (png_load): Comment-out var only used in commented-out code.
20330
20331 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20332 before passing it to mark_object.
20333
20334 * xfaces.c (internal_resolve_face_name): Return a value.
20335 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20336
20337 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20338 (x_icon): Comment-out var only used in commented-out code.
20339
203402007-08-29 Romain Francoise <romain@orebokech.com>
20341
20342 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20343 QUIT hasn't been provided.
20344
203452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20346
20347 * callproc.c (child_setup, getenv_internal): Use the
20348 display-environment-variable and term-environment-variable frame params.
20349 (set_initial_environment): Initialise Vprocess_environment.
20350
20351 * config.in: Disable multi-keyboard support on a mac.
20352
20353 * frame.c (Qterm_environment_variable)
20354 (Qdisplay_environment_variable): New variables.
20355 (syms_of_frame): Intern and staticpro them.
20356 (Fmake_terminal_frame): Disable output method test.
20357
20358 * frame.h: Declare them here.
20359
20360 * macfns.c (x_set_mouse_color): Get rif from the frame.
20361 (x_set_tool_bar_lines): Don't use updating_frame.
20362 (mac_window): Add 2 new parameters for consistency with other systems.
20363 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20364 frame parameters following what is done in X11 and w32. Don't use
20365 FRAME_MAC_DISPLAY_INFO.
20366 (Fx_open_connection, start_hourglass): Remove window-system check.
20367 (x_create_tip_frame): Get the keyboard from the terminal.
20368
20369 * macmenu.c: Reorder includes.
20370 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20371
20372 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20373 terminal parameter.
20374 (x_clear_frame): Add a frame parameter.
20375 (note_mouse_movement): Get rif from the frame.
20376 (mac_term_init): Initialize the terminal.
20377 (mac_initialize): Make static and move terminal initialization ...
20378 (mac_create_terminal): ... to this new function.
20379
20380 * macterm.h (struct mac_display_info): Add terminal.
20381 (mac_initialize): Delete declaration.
20382
20383 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20384
20385 * sysdep.c: Comment out text after #endif.
20386
20387 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20388 is defined. Better initialize ttys in windows. Use terminal
20389 specific mouse_position_hook.
20390
20391 * termhooks.h (union display_info): Add mac_display_info.
20392
20393 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20394 Set the default minibuffer frame, window_system and the rest of the
20395 frame parameters following what is done in X11.
20396
20397 * w32term.c (w32_initialize): Make static.
20398
20399 * xselect.c (x_handle_selection_clear): Only access
20400 terminal->kboard when MULTI_KBOARD is defined.
20401
20402 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20403 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20404
204052007-08-29 Jason Rumney <jasonr@gnu.org>
20406
20407 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20408 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20409
20410 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20411 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20412
20413 * keyboard.c (restore_kboard_configuration): Only define when
20414 MULTI_KBOARD defined.
20415
20416 * makefile.w32-in: Update dependancies from Makefile.in.
20417 (OBJ1): Add terminal.$(O)
20418
20419 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20420 Don't define function body.
20421 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20422
20423 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20424
20425 * w32.c (request_sigio, unrequest_sigio): Remove.
20426
20427 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20428 (w32con_clear_frame, w32con_clear_end_of_line)
20429 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20430 (w32con_delete_glyphs, w32con_set_terminal_window)
20431 (scroll_line, w32_sys_ring_bell): Add frame arg.
20432 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20433 Add terminal arg.
20434 (PICK_FRAME): Remove.
20435 (w32con_write_glyphs): Use frame specific terminal coding.
20436 (one_and_only_w32cons): New global variable.
20437 (initialize_w32_display): Use it for storing hooks.
20438 (create_w32cons_output): New function.
20439
20440 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20441 arg a frame.
20442
20443 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20444 Set window_system.
20445 (x_set_tool_bar_lines): Don't use updating_frame.
20446 (Fx_create_frame): Set terminal and ref count.
20447 (Fx_open_connection): Remove window-system check.
20448
20449 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20450
20451 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20452 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20453 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20454 Add frame arg.
20455 (x_delete_terminal, w32_create_terminal): New functions.
20456 (w32_term_init): Create a terminal.
20457 (w32_initialize): Move terminal specific initialization to
20458 w32_create_terminal.
20459
20460 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20461 (w32_clear_rect, w32_clear_area): Use background from frame.
20462 (w32_display_info): Add terminal.
20463 (w32_sys_ring_bell, x_delete_display): Declare here.
20464
20465 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20466
20467 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20468
204692007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20470
20471 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20472 Fix get_named_tty calls for the controlling tty.
20473
204742007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20475
194d44e7 20476 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20477
204782007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20479
20480 * term.c (tty_insert_glyphs): Add missing first parameter.
20481
204822007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20483
20484 * buffer.c (Fbuffer_list, Fbury_buffer):
20485 Take frame->buried_buffer_list into account.
20486
20487 * cm.c (current_tty): New variable, for cmputc().
20488 (cmputc): Use it.
20489 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20490 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20491 (cmgoto): Add tty parameter. Pass it on to calccost().
20492 Use emacs_tputs() instead of tputs().
20493
20494 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20495 tputs().
20496 (current_tty): New variable, for cmputc().
20497 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20498
20499 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20500 (internal_condition_case, internal_condition_case_1)
20501 (internal_condition_case_2): Don't abort when x_catching_errors.
20502
20503 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20504 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20505 prevent crashes caused by bogus longjmps in read_char.
20506
20507 * keymap.h (Fset_keymap_parent): Add EXFUN.
20508
20509 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20510 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20511 Remove redundant definition.
20512
20513 * macfns.c (x_set_mouse_color, x_make_gc):
20514 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20515
20516 * w32term.c (x_free_frame_resources):
20517 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20518 (w32_initialize): Use the accessor macros for terminal characteristics.
20519
20520 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20521 Use the accessor macros for terminal characteristics.
20522 * msdos.c (internal_terminal_init): Use the accessor macros for
20523 terminal characteristics.
20524 (ScreenVisualBell, internal_terminal_init):
20525 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20526
20527 * termopts.h (no_redraw_on_reenter): Declare.
20528
20529 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20530 (mark_terminals, mark_ttys): Declare.
20531 (Fgarbage_collect): Call them.
20532 (mark_object): Mark buried_buffer_list.
20533
20534 * prefix-args.c: Include stdlib.h for exit.
20535
20536 * syssignal.h: Add comment.
20537
20538 * indent.c: Include stdio.h.
20539
20540 * window.h (Vinitial_window_system): Declare.
20541 (Vwindow_system): Delete declaration.
20542
20543 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20544
20545 * image.c (lookup_image): Don't initialize `c' until the xasserts
20546 have been run.
20547
20548 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20549 FRAME_FOREGROUND_PIXEL.
20550
20551 * print.c (print_preprocess): Don't lose print_depth levels while
20552 iterating.
20553
20554 * widget.c (update_from_various_frame_slots):
20555 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20556
20557 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20558 frames.
20559 (window_internal_height): Remove bogus make_number call.
20560 (init_window_once): Call make_terminal_frame with two zero parameters.
20561
20562 * fileio.c (Fread_file_name): Update comment.
20563
20564 * callint.c (Fcall_interactively):
20565 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20566 Make sure it is correctly unwound.
20567
20568 * xsmfns.c (x_session_close): New function.
20569
20570 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20571 Delete declarations.
20572
20573 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20574 (x_output): Remove background_pixel and foreground_pixel fields.
20575 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20576 (x_delete_device, x_session_close): Declare.
20577
20578 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20579 (read_filtered_event): Call `read_char' with a local
20580 `wrong_kboard_jmpbuf'.
20581
20582 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20583 Don't call single_kboard_state. Use FRAME_RIF.
20584
20585 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20586 systems.
20587
20588 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20589 (Fframe_with_environment, Fset_input_meta_mode)
20590 (Fset_quit_char): EXFUN.
20591 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20592 (init_sys_modes, reset_sys_modes): Update prototypes.
20593 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20594
20595 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20596 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20597 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20598 Delete declarations.
20599 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20600 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20601 New declarations.
20602
20603 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20604 already does that during init_display(). Call syms_of_keymap
20605 before syms_of_keyboard. Call `syms_of_terminal'.
20606 Call set_initial_environment, not set_process_environment.
20607 (shut_down_emacs): Call reset_all_sys_modes() instead of
20608 reset_sys_modes().
20609
20610 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20611 (internal_resolve_face_name, resolve_face_name_error): New functions.
20612 (resolve_face_name): Protect against loops and errors thrown by Fget.
20613 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20614 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20615
20616 * scroll.c: Replace CURTTY() with local variables throughout the
20617 file (where applicable).
20618 (calculate_scrolling, calculate_direct_scrolling)
20619 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20620 characteristics.
20621
20622 * keymap.c (Vfunction_key_map): Remove.
20623 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20624 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20625 (Vkey_translation_map): Remove.
20626 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20627 (Fdescribe_buffer_bindings)
20628 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20629 Update for terminal-local key-translation-map.
20630
20631 * Makefile.in (callproc.o): Update dependencies.
20632 (lisp, shortlisp): Add termdev.elc.
20633 (obj): Add terminal.o.
20634 (terminal.o): Add dependencies.
20635 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20636 (data.o, fns.o): Add termhooks.h dependency.
20637 (SOME_MACHINE_LISP): Add dnd.elc.
20638 (minibuf.o): Fix typo.
20639 Update dependencies.
20640
20641 * data.c (do_symval_forwarding, store_symval_forwarding)
20642 (find_symbol_value): Use the selected frame's keyboard, not
20643 current_kboard.
20644
20645 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20646 Vwindow_system.
20647
20648 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20649 Fmenu_bar_open.
20650 (syms_of_xmenu): Update defsubr.
20651 (mouse_position_for_popup, Fx_popup_menu)
20652 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20653 (set_frame_menubar, free_frame_menubar)
b97439ce 20654 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20655 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20656 an X frame.
20657
20658 * xselect.c (x_own_selection): Abort if not an X frame.
20659 (some_frame_on_display): Check if it is an X frame.
20660 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20661
20662 * coding.c: Include frame.h and termhooks.h.
20663 (terminal_coding, keyboard_coding): Delete.
20664 (Fset_terminal_coding_system_internal)
20665 (Fset_keyboard_coding_system_internal)
20666 (Fkeyboard_coding_system)
20667 (Fterminal_coding_system): Add a terminal parameter.
20668 Get terminal_coding from the terminal.
20669 (init_coding_once): Don't call setup_coding_system here.
20670
20671 * dispextern.h (set_scroll_region, turn_off_insert)
20672 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20673 (tty_clear_end_of_line, tty_setup_colors)
20674 (delete_tty, updating_frame)
20675 (produce_special_glyphs, produce_glyphs, write_glyphs)
20676 (insert_glyphs): Remove.
20677 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20678 (tty_turn_off_highlight, get_tty_size): Add declaration.
20679 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20680
20681 * frame.h (enum output_method): Add output_initial.
20682 (struct x_output): Delete.
20683 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20684 Access foreground_pixel and background_pixel directly from the frame.
20685 (tty_display): Delete.
20686 (struct frame): Add buried_buffer_list, foreground_pixel,
20687 background_pixel and terminal. Delete kboard.
20688 (union output_data): Add tty.
20689 (FRAME_KBOARD): Get the kboard from the terminal.
20690 (FRAME_INITIAL_P): New macro.
20691 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20692 (Qterm_environment_variable, Qdisplay_environment_variable)
20693 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20694 New declarations.
20695
20696 * termchar.h (tty_output, tty_display_info): New structures.
20697 (tty_list): Declare.
20698 (FRAME_TTY, CURTTY): New macros.
20699 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20700 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20701 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20702 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20703
20704 * callproc.c: Include frame.h and termhooks.h, for terminal
20705 parameters.
20706 (add_env): New function.
20707 (child_setup): Use it.
20708 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20709 (getenv_internal): Fix get_terminal_param call.
20710 (Fgetenv_internal, egetenv): Update doc.
20711 (syms_of_callproc): Initialize Vprocess_environment to nil.
20712 Register and initialize them. Remove obsolete defvars. Update doc
20713 strings.
20714 (child_setup): Handle Vlocal_environment_variables.
20715 (getenv_internal): Add terminal parameter.
20716 Handle Vlocal_environment_variables.
20717 (Fgetenv_internal): Add terminal parameter.
20718 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20719 environment in a frame (not terminal) parameter. Update doc strings.
20720 (set_initial_environment): Rename from set_global_environment.
20721 Store Emacs environment in initial frame parameter.
20722
20723 * xdisp.c (redisplay_internal): Update references to
20724 `previous_terminal_frame'.
20725 (display_mode_line, Fformat_mode_line): Replace calls to
20726 `push_frame_kboard' with `push_kboard'.
20727 (get_glyph_string_clip_rects): Add extra parentheses and
20728 braces to prevent compiler warnings.
20729 (calc_pixel_width_or_height): Add xassert to check that the
20730 frame is alive. Don't call `lookup_image' on a termcap frame.
20731 (message2_nolog, message3_nolog, redisplay_internal)
20732 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20733 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20734 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20735 (Fx_display_pixel_width, Fx_display_pixel_height)
20736 (Fx_display_planes, Fx_display_color_cells)
20737 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20738 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20739 (Fx_display_backing_store, Fx_display_visual_class)
20740 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20741 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20742
20743 * xfns.c (x_set_foreground_color x_set_background_color)
20744 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20745 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20746 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20747 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20748 terminal that is being deleted.
20749 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20750 frame parameter, and make sure it overrides any user-supplied setting.
20751 (Fx_close_connection, Fx_synchronize): Unify argument names with
20752 the rest of the DEFUNs.
20753
20754 * dispnew.c (Fsend_string_to_terminal): Update call to
20755 `get_tty_terminal'.
20756 (Fredraw_frame, Fsend_string_to_terminal)
20757 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20758 FRAME_TERMCAP_P and FRAME_TTY.
20759 (window_change_signal): Don't believe width/height values that are
20760 impossibly small.
20761 (Vinitial_window_system): Rename from Vwindow_system.
20762 (termscript, Wcm, rif): Delete.
20763
20764 * termhooks.h (struct terminal): New struct containing the
20765 previously global text display hooks and new members NAME,
20766 DELETED and PARAM_ALIST.
20767 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20768 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20769 (FRAME_RIF): New macros.
20770 (get_terminal_param, get_device): New declarations.
20771 (termscript): Delete declaration.
20772
20773 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20774 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20775 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20776 FRAME_FOREGROUND_PIXEL.
20777 (x_fully_uncatch_errors): Disable definition.
20778 (x_scroll_bar_expose): Fix reference to foreground pixel.
20779 (XTread_socket): Disable loop on all X displays.
20780 (x_delete_terminal): Don't set terminal->deleted and let
20781 delete_terminal delete the frames on the terminal.
20782 (x_delete_display): Doc update to reflect changes in
20783 delete_terminal.
20784 (x_display_info) <terminal>: Move member earlier in the struct.
20785 (deleting_tty): Remove old variable.
20786 (Fsuspend_tty): Call clear_tty_hooks.
20787 (Fresume_tty, init_tty): Call set_tty_hooks.
20788 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20789 errors on X frames.
20790 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20791 (handle_one_xevent): Initialize `f' to NULL.
20792 (x_delete_terminal, x_create_terminal): New functions.
20793 (XTset_terminal_modes, XTreset_terminal_modes)
20794 (XTread_socket, x_connection_closed, x_term_init)
20795 (x_term_init, x_delete_display): Add terminal parameter.
20796 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20797 X connections.
20798
20799 * frame.c: Include termchar.h.
20800 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20801 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20802 (Qdisplay_environment_variable): New vars.
20803 (Fframep): Deal with output_initial.
20804 (Fframe-live-p): Doc fix.
20805 (Fwindow-system): New function.
20806 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20807 (make_terminal_frame): Don't create frames on a terminal that is
20808 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20809 (store_frame_param): Check for found_for_frame before calling XFRAME.
20810 (Fmake_terminal_frame): Handle NULL tty names correctly.
20811 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20812 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20813 frames to refer to a deleted frame in their 'environment parameter.
20814 (Fframe_with_environment): New function.
20815 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20816 (get_future_frame_param): New function.
20817 (Fmake_terminal_frame): Use it.
20818 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20819
20820 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20821 * sysdep.c (reset_sys_modes): Update for renames.
20822
20823 * keyboard.c (tty_read_avail_input): New function.
20824 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20825 (syms_of_keyboard): Defsubr them.
20826 (Fset_input_meta_mode, Fset_quit_char): New functions.
20827 (Fset_input_mode): Split to above functions.
20828 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20829 parameter. Use it in call to `read_char'.
20830 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20831 Set wrong_kboard_jmpbuf correctly in recursive calls.
20832 Use current_kboard to access Vkeyboard_translate_table.
20833 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20834 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20835 Update longjmp invocations. Remember the original current_kboard,
20836 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20837 changes it. Comment out unnecessary calls to
20838 `record_single_kboard_state' and `any_kboard_state'.
20839 Update recursive calls.
20840 (wrong_kboard_jmpbuf): Remove global variable.
20841 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20842 Handle deleted interrupted_kboards correctly; that is a legal
20843 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20844 and read_char calls. Abort if interrupted_kboard died in read_char.
20845 (any_kboard_state, single_kboard_state)
20846 (push_frame_kboard): Remove function.
20847 (pop_kboard): Switch out of single_kboard mode if the kboard has
20848 been deleted. Remove unused variable. Help debugging by not
20849 changing current_kboard unnecessarily. Set current_kboard to the
20850 kboard of the selected frame when the stored kboard object has
20851 been deleted before pop_kboard.
20852 (temporarily_switch_to_single_kboard): Change first parameter to a
20853 frame pointer. Throw an error when caller wants to change kboards
20854 while in single_kboard mode. Don't push_kboard if we weren't in
20855 single kboard state. Don't pop_kboard if we popped into any
20856 kboard state.
20857 (restore_kboard_configuration): Abort if pop_kboard changed the
20858 kboard in single_kboard mode. Call pop_kboard only after setting
20859 up single_kboard mode.
20860 (Frecursive_edit): Switch to single_kboard mode only in nested
20861 command loops.
20862 (cmd_error, command_loop, command_loop_1, timer_check):
20863 Comment out unnecessary call to `any_kboard_state' and
20864 `record_single_kboard_state'.
20865 (delete_kboard): Exit single_kboard mode if we have just deleted
20866 that kboard. Use FRAME_KBOARD.
20867 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20868 `fatal_error_signal'.
20869 (record_single_kboard_state): Don't push_kboard if we weren't in
20870 single kboard state. Don't pop_kboard if we popped into any
20871 kboard state.
20872 (push_frame_kboard): Rename to push_kboard.
20873 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20874 (read_avail_input): Read input from all terminals.
20875 (mark_kboards): Also mark Vkeyboard_translate_table.
20876 (kbd_buffer_store_event_hold): Simplify condition.
20877 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20878 (Vkeyboard_translate_table): Move to struct kboard.
20879 (init_kboard): Initialize Vkeyboard_translate_table.
20880 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20881 Vkeyboard_translate_table. Update doc strings. Update docs of
20882 local-function-key-map and function-key-map.
20883
20884 * terminal.c: New file.
20885
20886 * term.c: Include errno.h.
20887 (Vring_bell_function, device_list, initial_device)
20888 (next_device_id, ring_bell, update_begin, update_end)
20889 (set_terminal_window, cursor_to, raw_cursor_to)
20890 (clear_to_end, clear_frame, clear_end_of_line)
20891 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20892 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20893 (syms_of_term): Move their initialization to terminal.c.
20894 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20895 (Ftty_display_color_cells)
20896 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20897 (clear_tty_hooks, set_tty_hooks)
20898 (init_tty, maybe_fatal): New functions.
20899 (Ftty_type): Return nil if terminal is not on a tty instead of
20900 throwing an error. Doc update.
20901 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20902 Doc update. Initialize new subrs and variables.
20903 (delete_tty): Use terminal->deleted.
20904 (tty_set_terminal_modes): Rename from set_terminal_modes.
20905 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20906 (set_scroll_region): Rename to `tty_set_scroll_region'.
20907 (turn_on_insert): Rename to `tty_turn_on_insert'.
20908 (turn_off_insert): Rename to `tty_turn_off_insert'.
20909 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20910 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20911 (toggle_highligh): Rename to `tty_toggle_highlight'.
20912 (background_highlight): Rename to `tty_background_highlight'.
20913 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20914 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20915 (tty_set_scroll_region, tty_background_highlight)
20916 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20917 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20918 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20919 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20920 Add static modifier.
20921 (tty_reset_terminal_modes, tty_set_terminal_window)
20922 (tty_set_scroll_region, tty_background_highlight)
20923 (tty_highlight_if_desired, tty_cursor_to)
20924 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20925 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20926 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20927 renames.
20928
209292007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20930
20931 * keyboard.c: Qrtl is new.
20932 (parse_tool_bar_item): Handle :rtl keyword.
20933 (syms_of_keyboard): Intern :rtl keyword.
20934
20935 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20936
20937 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20938 so no Lisp code is executed.
20939 (file_for_image, find_rtl_image): New functions.
20940 (xg_get_image_for_pixmap): Use file_for_image.
20941 (update_frame_tool_bar): If direction is RTL, use RTL image if
20942 defined. Use Gtk stock images if defined.
20943
209442007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20945
20946 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20947 for nonexistent or zero-width glyph in composition glyph.
20948
209492007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20950
20951 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20952
20953 * xdisp.c (Finvisible_p): New function.
20954 (syms_of_xdisp): defsubr it.
20955
209562007-08-24 Juanma Barranquero <lekktu@gmail.com>
20957
20958 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20959 Doc fixes.
20960
209612007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20962
20963 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20964
209652007-08-24 Martin Rudalics <rudalics@gmx.at>
20966
20967 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20968 whether decoding has modified buffer contents.
20969
209702007-08-24 Jason Rumney <jasonr@gnu.org>
20971
20972 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20973 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20974 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20975 (init_svg_functions) [HAVE_NTGUI]: New function.
20976 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20977 (svg_load_image): Use them.
20978 (svg_load_image) [HAVE_NTGUI]: Implement background.
20979
209802007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20981
20982 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20983 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20984 (LIBX): Remove @RSVG_LIBS@.
20985 (LIBES): Add $(RSVG_LIBS).
20986
20987 * image.c (svg_load_image): Blend with specified background if exists.
20988 Use IMAGE_BACKGROUND. Add Mac OS Support.
20989
20990 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20991 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20992 Remove macros.
20993 [MAC_OSX] (socket_callback): Do nothing.
20994 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20995 ReceiveNextEvent.
20996 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20997 socket_callback.
20998 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20999
210002007-08-22 Glenn Morris <rgm@gnu.org>
21001
21002 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21003
210042007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21005
21006 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21007
21008 * image.c: Add support for SVG images. Some additional comments
21009 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21010 (svg_image_p): New function to test for SVG image.
21011 (svg_load): New function to load SVG image.
21012 (svg_load_image): New function, helper for svg_load.
21013 (Qsvg): New Lisp_object.
21014 (svg_keyword_index): New enum.
21015 (svg_format): New static `image_keyword' struct.
21016 (svg_type): New static `image_type' struct.
21017 (librsvg/rsvg.h): Include it.
21018
210192007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21020
21021 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21022
210232007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21024
21025 * lread.c (Qold_style_backquotes): New var.
21026 (syms_of_lread): Init and staticpro it.
21027 (load_warn_old_style_backquotes): New fun.
21028 (Fload): Use them to warn about old style backquotes.
21029 (end_of_file_error, Fload): Remove unused vars.
21030
21031 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21032
21033 * lread.c (Vold_style_backquotes): New var.
21034 (syms_of_lread): Init and export it to Elisp.
21035 (read1): Set it when we find an old-style (back)quote.
21036
210372007-08-22 Jason Rumney <jasonr@gnu.org>
21038
21039 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21040
210412007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21042
21043 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21044
210452007-08-19 Richard Stallman <rms@gnu.org>
21046
21047 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21048
210492007-08-19 Andreas Schwab <schwab@suse.de>
21050
21051 * alloc.c (pure): Round PURESIZE up.
21052
210532007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21054
21055 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21056 active frame.
21057
210582007-08-16 Richard Stallman <rms@gnu.org>
21059
21060 * eval.c (Fcommandp): Add parens to clarify.
21061
21062 * minibuf.c (Fall_completions): Use enum for type of table.
21063
21064 * emacs.c (USAGE2): Improve text.
21065
210662007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21067
21068 * term.c (tty_default_color_capabilities): Declare static
21069 variables in file scope, to avoid HPUX compiler problem.
21070
210712007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21072
21073 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21074 to gtk_toolbar_insert.
21075
210762007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21077
21078 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21079
21080 * insdel.c (reset_var_on_error): New fun.
21081 (signal_before_change, signal_after_change):
21082 Use it to reset (after|before)-change-functions to nil in case of error.
21083 Bind inhibit-modification-hooks to t.
21084 Don't bind (after|before)-change-functions to nil while they run.
21085
210862007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21087
21088 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21089 filling pixmap with stippled background.
21090
210912007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21092
21093 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21094 Don't use invisible frame as parent window for repositioning.
21095
210962007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21097
21098 * print.c (new_backquote_output): Rename from old_backquote_output.
21099 (print): Inverse its logic (according to its name) so as to match the
21100 behavior of new_backquote_flag in lread.c.
21101
211022007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21103
21104 * gmalloc.c (posix_memalign): New function.
21105
21106 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21107 ActivateControl/DeactivateControl here.
21108 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21109 frame-notice-user-settings is non-nil.
21110 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21111 for kEventParamFMFontStyle.
21112 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21113 mac_pass_command_to_system and mac_pass_control_to_system here.
21114 (XTread_socket): Call ActivateControl/DeactivateControl here.
21115 (XTread_socket) [TARGET_API_MAC_CARBON]:
21116 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21117 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21118 for window repositioning.
21119
211202007-08-08 Glenn Morris <rgm@gnu.org>
21121
21122 * Replace `iff' in doc-strings and comments.
21123
211242007-08-07 Chong Yidong <cyd@stupidchicken.com>
21125
21126 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21127
211282007-08-07 Martin Rudalics <rudalics@gmx.at>
21129
21130 * fileio.c (Finsert_file_contents): Run format-decode and
21131 after_insert_file_functions on entire buffer when REPLACE is
21132 non-nil and inhibit modification_hooks and point_motion_hooks.
21133 For consistency, run after_insert_file_functions iff something
21134 got inserted. Move signal_after_change and update_compositions
21135 after code running after_insert_file_functions. Make sure that
21136 undo_list doesn't record intermediate steps of the decoding process.
21137
211382007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21139
21140 * emacs.c (main)
21141 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21142 Call malloc_enable_thread on interactive startup.
21143
21144 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21145 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21146 [USE_PTHREAD]: Conditionalize with it.
21147 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21148 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21149 New functions.
21150
211512007-08-06 Chong Yidong <cyd@stupidchicken.com>
21152
21153 * xdisp.c (redisplay_window): When restoring original buffer
21154 position, make sure it is still valid.
21155
21156 * image.c (png_load): Ignore png-supplied background color.
21157
211582007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21159
21160 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21161 Use kCFAbsoluteTimeIntervalSince1970.
21162
21163 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21164 New variable.
21165 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21166 event loop should be quit.
21167 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21168 Quit dialog event loop if quit_dialog_event_loop is set.
21169
21170 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21171 (Selection): New typedef. Use instead of ScrapRef.
21172 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21173 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21174 (mac_clear_selection): Rename from clear_scrap.
21175 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21176 scrap_has_target_type. All uses changed.
21177 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21178 (mac_selection_has_target_p): New functions.
21179 (mac_put_selection_value): Rename from put_scrap_string.
21180 (mac_get_selection_value): Rename from get_scrap_string.
21181 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21182 (put_scrap_private_timestamp, scrap_has_target_type)
21183 (get_scrap_private_timestamp): Remove functions.
21184 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21185 (x_own_selection, x_get_local_selection):
21186 Use mac_valid_selection_value_p.
21187 (x_own_selection): Don't use put_scrap_private_timestamp.
21188 Record OWNERSHIP-INFO into Vselection_alist instead.
21189 (x_get_local_selection): Don't check type if request is local.
21190 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21191 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21192
211932007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21194
21195 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21196 add comment explaining why.
21197
211982007-08-03 Richard Stallman <rms@gnu.org>
21199
21200 * fileio.c (Fvisited_file_modtime): Use make_time.
21201
212022007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21203
21204 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21205 build.
21206
212072007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21208
21209 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21210
212112007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21212
21213 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21214
212152007-07-30 Richard Stallman <rms@gnu.org>
21216
21217 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21218
212192007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21220
21221 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21222
212232007-07-28 Nick Roberts <nickrob@snap.net.nz>
21224
21225 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21226 remote default-directory.
21227
21228 * buffer.c (mode-line-format): Update doc string.
21229
212302007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21231
21232 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21233 scroll bar gap.
21234 (x_scroll_bar_create): Set bar->fringe_extended_p.
21235 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21236 on frame edge. Check fringe background extension. Don't clear
21237 extended fringe background area.
21238
21239 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21240 (w32_fill_area): Enclose multiple statements with do ... while (0).
21241
21242 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21243 Extend fringe background to scroll bar gap.
21244 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21245 Set bar->fringe_extended_p.
21246 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21247 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21248 background extension. Don't clear extended fringe background area.
21249
21250 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21251 New member fringe_extended_p.
21252
212532007-07-25 Glenn Morris <rgm@gnu.org>
21254
21255 * Relicense all FSF files to GPLv3 or later.
21256
21257 * COPYING: Switch to GPLv3.
21258
212592007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21260
21261 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21262
21263 * data.c (Finteractive_form): Check for the presence of an
21264 `interactive-form' symbol property more thoroughly.
21265
21266 * data.c (Finteractive_form): Use an `interactive-form' property if
21267 present, analogous to the function-documentation property.
21268
212692007-07-24 Jason Rumney <jasonr@gnu.org>
21270
21271 * w32fns.c (x_real_positions): Get real position from OS instead of
21272 calculating it.
21273
212742007-07-23 Jason Rumney <jasonr@gnu.org>
21275
21276 * filelock.c (current_lock_owner): Allow for @ sign in username.
21277
212782007-07-22 Nick Roberts <nickrob@snap.net.nz>
21279
21280 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21281 remote default-directory.
21282
21283 * buffer.c (mode-line-format): Describe above case in doc string.
21284
212852007-07-20 Eli Zaretskii <eliz@gnu.org>
21286
21287 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21288 Define if not defined.
21289
212902007-07-18 Jason Rumney <jasonr@gnu.org>
21291
21292 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21293
212942007-07-18 Richard Stallman <rms@gnu.org>
21295
21296 * data.c (Fsetq_default): Doc fix.
21297
21298 * eval.c (Fsetq): Doc fix.
21299
213002007-07-18 Juanma Barranquero <lekktu@gmail.com>
21301
21302 * coding.c (Ffind_operation_coding_system):
21303 * eval.c (For, Fand): Doc fixes.
21304 Reported by Johan Bockgård.
21305
213062007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21307
21308 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21309
21310 * xterm.h: Declare x_ewmh_activate_frame.
21311
21312 * xterm.c (x_ewmh_activate_frame): New function.
21313 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21314
213152007-07-17 Martin Rudalics <rudalics@gmx.at>
21316
21317 * window.c (Fdisplay_buffer): If largest or LRU window is the
21318 only window, split it even if it is not eligible for splitting.
21319 This restores the original behavior broken by the 2007-07-15
21320 change.
21321
213222007-07-17 Glenn Morris <rgm@gnu.org>
21323
21324 * abbrev.c (abbrev_check_chars): New function.
21325 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21326 Call abbrev_check_chars to check abbrev characters are word
21327 constituents. Doc fix.
21328
213292007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21330
21331 * process.c (Fstart_process, Fmake_network_process)
21332 (read_process_output): Fix up last changes.
21333
213342007-07-16 Eli Zaretskii <eliz@gnu.org>
21335
21336 * makefile.w32-in (clean): Don't delete *~.
21337
213382007-07-16 Andreas Schwab <schwab@suse.de>
21339
21340 * window.c (Fdisplay_buffer): Use NILP.
21341 (Fset_window_scroll_bars): Likewise.
21342
213432007-07-15 Martin Rudalics <rudalics@gmx.at>
21344
21345 * window.c (window_min_size_2): New function.
21346 (window_min_size_1, size_window, Fdisplay_buffer)
21347 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21348 windows without mode- or header-lines when window-min-height is
21349 too small.
21350 (size_window): Reset nodelete_p after testing it, following an
21351 earlier note by Kim F. Storm.
21352 (display_buffer): Do not set split_height_threshold to twice the
21353 value of window_min_height to avoid changing the value of a
21354 customizable variable. Rather explicitly check whether the
21355 height of the window that shall be splitted is at least as large
21356 as split_height_threshold.
21357 (Fwindow_full_width_p): New defun.
21358 (syms_of_window): Defsubr it.
21359
21360 * window.h: Add EXFUN for Fwindow_full_width_p.
21361
213622007-07-14 Jason Rumney <jasonr@gnu.org>
21363
21364 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21365
213662007-07-14 Richard Stallman <rms@gnu.org>
21367
21368 * eval.c (maybe_call_debugger): New function.
21369 (find_handler_clause): Use maybe_call_debugger.
21370 Call it when the handler says `debug'.
21371 Eliminate DEBUGGER_VALUE_PTR.
21372 (Fsignal): Eliminate debugger_value.
21373 (Qdebug): New variable.
21374 (syms_of_eval): Initialize it.
21375
213762007-07-14 Juanma Barranquero <lekktu@gmail.com>
21377
21378 * eval.c (Fprogn):
21379 * keyboard.c (Ftrack_mouse):
21380 * print.c (Fwith_output_to_temp_buffer):
21381 * window.c (Fsave_window_excursion): Doc fix.
21382
213832007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21384
21385 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21386
213872007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21388
21389 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21390 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21391 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21392 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21393 Remove unused encoding_carryover.
21394 * process.c: Adjust all functions accordingly.
21395
213962007-07-12 Richard Stallman <rms@gnu.org>
21397
21398 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21399
214002007-07-11 Jason Rumney <jasonr@gnu.org>
21401
21402 * makefile.w32-in (LIBS): Include OLE32.
21403
21404 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21405 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21406
214072007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21408
21409 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21410 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21411 from a Lisp_Object into a bare pointer.
21412 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21413 Adjust the code correspondingly.
21414
21415 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21416
21417 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21418 (term_show_mouse_face): Remove unused var `j'.
21419 (handle_one_term_event): Remove unused vars `i' and `j'.
21420 Don't cast return value of ttyname since it's not necessary.
21421
214222007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21423
21424 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21425 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21426
21427 * fns.c (map_char_table): Use an array of int for `indices' rather than
21428 an array of Lisp_Objects (which are only ever integers anyway).
21429 (Fmap_char_table): Update caller.
21430 * lisp.h: Update prototype.
21431 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21432 * fontset.c (Ffontset_info):
21433 * casetab.c (set_case_table): Update callers.
21434
21435 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21436
21437 * keymap.c (struct accessible_keymaps_data)
21438 (struct where_is_internal_data): New structures.
21439 (accessible_keymaps_1, where_is_internal_1): Use them to change
21440 interface to adhere to the one used by map_keymap.
21441 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21442 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21443
21444 * keymap.h (map_keymap_function_t): More informative prototype.
21445
214462007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21447
21448 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21449 (looking_at_1): Don't change search_regs and last_thing_searched
21450 if `inhibit-changing-match-data' is non-nil.
21451 (string_match_1, search_buffer, set_search_regs): Likewise.
21452 (syms_of_search): Add Lisp level definition for
21453 `inhibit-changing-match-data' and set it to nil.
21454 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21455 start and end of the match, instead of using values in search_regs.
21456
214572007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21458
21459 * minibuf.c (Fcompleting_read): New value `confirm-only'
21460 for `require-match'.
21461
214622007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21463
21464 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21465 part of the 2007-06-27 change to syms_of_fileio.
21466
214672007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21468
21469 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21470 Check WINDOWP before using XWINDOW. Consolidate return statements.
21471
214722007-06-27 Richard Stallman <rms@gnu.org>
21473
21474 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21475
214762007-06-27 Juanma Barranquero <lekktu@gmail.com>
21477
21478 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21479
214802007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21481
21482 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21483 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21484 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21485 (_free_internal, memalign): Use them.
21486 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21487 Initialize to PTHREAD_MUTEX_INITIALIZER.
21488 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21489 (morecore_nolock): Rename from morecore. All uses changed.
21490 Use only nolock versions of internal allocation functions.
21491 (_malloc_internal_nolock, _realloc_internal_nolock)
21492 (_free_internal_nolock): New functions created from
21493 _malloc_internal, _realloc_internal, and _free_internal.
21494 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21495 Copy hook value to automatic variable before its use.
21496 (memalign): Copy hook value to automatic variable before its use.
21497
214982007-06-26 Kenichi Handa <handa@m17n.org>
21499
21500 * coding.c (Ffind_operation_coding_system): Docstring improved.
21501 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21502
215032007-06-25 David Kastrup <dak@gnu.org>
21504
21505 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21506 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21507 cater for additional parameter.
21508
21509 * keymap.h: Adjust number of parameters to `current-active-maps'.
21510
21511 * doc.c (Fsubstitute_command_keys): Adjust call of
21512 `current-active-maps'.
21513
215142007-06-25 David Kastrup <dak@gnu.org>
21515
21516 * callint.c (Fcall_interactively): Make the parsing of interactive
21517 specs somewhat more readable.
21518
215192007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21520
21521 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21522 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21523 if extended background has already been filled.
21524
215252007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21526
21527 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21528 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21529
21530 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21531 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21532 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21533 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21534 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21535 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21536 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21537 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21538 Run timers during dialog popup.
21539 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21540
215412007-06-21 Jason Rumney <jasonr@gnu.org>
21542
21543 * image.c (convert_mono_to_color_image): Swap fore and background.
21544
215452007-06-20 Jason Rumney <jasonr@gnu.org>
21546
21547 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21548 (w32_free_bdf_font): Unmap memory not handle.
21549
215502007-06-20 Sam Steingold <sds@gnu.org>
21551
21552 * gmalloc.c (__morecore): Fix the declaration to comply with the
21553 definition.
21554
215552007-06-20 Juanma Barranquero <lekktu@gmail.com>
21556
21557 * w32term.c (w32_delete_display): Remove leftover declaration.
21558 (w32_define_cursor, w32_initialize): Make static.
21559
21560 * w32.c (_wsa_errlist): Fix typo in error message.
21561 (init_environment): Ignore any environment variable from the
21562 registry having a null value.
21563
215642007-06-20 Glenn Morris <rgm@gnu.org>
21565
21566 * Makefile.in (LIBGIF): Default to -lgif.
21567
215682007-06-17 Jason Rumney <jasonr@gnu.org>
21569
21570 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21571 unicode strings.
21572
215732007-06-16 Juanma Barranquero <lekktu@gmail.com>
21574
21575 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21576 Fix typo in docstring.
21577
215782007-06-16 Eli Zaretskii <eliz@gnu.org>
21579
21580 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21581 and their keybindings.
21582
215832007-06-15 Chong Yidong <cyd@stupidchicken.com>
21584
21585 * composite.c (update_compositions): Fix last fix.
21586
215872007-06-14 Jason Rumney <jasonr@gnu.org>
21588
21589 * w32.c (get_process_times_fn): New function pointer.
21590 (globals_of_w32): Intialize it if present in kernel32.dll.
21591 (w32_get_internal_run_time): New function.
21592
21593 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21594
215952007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21596
21597 * composite.c (update_compositions): Check the validness of
21598 compositions.
21599
216002007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21601
21602 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21603 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21604
21605 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21606 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21607
21608 * macgui.h (USE_MAC_TOOLBAR): New define.
21609
21610 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21611 Return immediately unless popup is activated.
21612
21613 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21614 background to scroll bar gap.
21615 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21616 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21617 scroll bars on frame edge. Check fringe background extension.
21618 Don't clear extended fringe background area.
21619 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21620 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21621 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21622 [USE_MAC_TOOLBAR]: New macros.
21623 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21624 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21625 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21626 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21627 [USE_MAC_TOOLBAR]: New functions.
21628 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21629 manually if previous repositioning has failed.
21630 (mac_handle_keyboard_event): Use precomputed event kind.
21631 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21632 as tool bar item click. Handle mouse movement over tool bar items.
21633
21634 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21635 toolbar_win_gravity.
21636 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21637 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21638 Add externs.
21639
21640 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21641 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21642
216432007-06-14 Chong Yidong <cyd@stupidchicken.com>
21644
21645 * image.c (search_image_cache): Remove unused variable.
21646
216472007-06-13 Chong Yidong <cyd@stupidchicken.com>
21648
21649 * xfns.c, xmenu.c: Link to xaw3d if available.
21650
216512007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21652
21653 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21654 frame_foreground and frame_background.
21655
21656 * image.c (lookup_image): Save frame foreground and background colors.
21657 (search_image_cache): Check if saved and current frame colors match.
21658
216592007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21660
21661 * regex.c (regex_compile): Remove the `regnum' counter.
21662 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21663
216642007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21665
21666 * term.c: Include intervals.h to declare Fget_text_property.
21667
216682007-06-10 Jason Rumney <jasonr@gnu.org>
21669
21670 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21671
216722007-06-08 Juanma Barranquero <lekktu@gmail.com>
21673
21674 * callint.c (Fcall_interactively):
21675 * editfns.c (Fdelete_and_extract_region):
21676 * fileio.c (Fread_file_name):
21677 * fns.c (Fmapconcat):
21678 * keyboard.c (cmd_error_internal):
21679 * keymap.c (Fkey_description):
21680 * lread.c (openp):
21681 * minibuf.c (read_minibuf):
21682 * search.c (wordify):
21683 * sunfns.c (sel_read):
21684 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21685 * xfns.c (x_default_scroll_bar_color_parameter):
21686 * xmenu.c (menu_help_callback):
21687 * xselect.c (Fx_get_atom_name):
21688 * xterm.c (x_term_init): Use empty_unibyte_string.
21689
216902007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21691
21692 * alloc.c (init_strings): Initialize canonical empty strings.
21693 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21694 canonical empty string when the requested size is 0.
21695
21696 * emacs.c (empty_unibyte_string): Rename from empty_string.
21697 (empty_multibyte_string): New canonical empty string.
21698 (syms_of_emacs): Don't initialize empty_string.
21699
21700 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21701 string, if appropriate.
21702 (empty_unibyte_string, empty_multibyte_string): New externs.
21703 (empty_string): Remove extern.
21704
21705 * lread.c (syms_of_lread): Use empty_unibyte_string.
21706
217072007-06-07 Jason Rumney <jasonr@gnu.org>
21708
21709 * s/ms-w32.h: Don't define HAVE_TZNAME.
21710
21711 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21712
217132007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21714
21715 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21716
21717 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21718 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21719
21720 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21721 Don't call next handler.
21722 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21723 Remove argument. Install handler to application.
21724 (set_frame_menubar): Don't change deep_p.
21725 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21726 FRAME_OUTER_TO_INNER_DIFF_Y.
21727 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21728 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21729 [HAVE_DIALOGS]: New macros.
21730 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21731 Use them.
21732 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21733
21734 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21735 init_service_handler. All callers changed. Return OSStatus value.
21736
21737 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21738 All callers changed so as not to call SetPortWindowPort.
21739 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21740 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21741 mac_draw_string_common.
21742 (mac_draw_image_string_qd): Likewise.
21743 (mac_draw_string_common): Use them. Add INLINE.
21744 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21745 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21746 GetGlobalMouse.
21747 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21748 and FRAME_OUTER_TO_INNER_DIFF_Y.
21749 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21750 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21751 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21752 repositioning window to mac_handle_window_event.
21753 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21754 saving window location to mac_handle_window_event
21755 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21756 (install_menu_target_item_handler): Remove argument in extern.
21757 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21758 Also accept command events.
21759 (do_keystroke): New function created from XTread_socket.
21760 (init_command_handler): Remove functions.
21761 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21762 and save window location by kEventWindowShowing and kEventWindowHiding
21763 handlers here. Don't call next handler for window state change and
21764 focus events.
21765 (mac_handle_application_event, mac_handle_keyboard_event)
21766 [TARGET_API_MAC_CARBON]: New functions.
21767 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21768 kEventWindowShowing and kEventWindowHiding events. Move installation
21769 of mouse, font, text input and menu target item handlers to
21770 install_application_handler.
21771 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21772 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21773 New function.
21774 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21775 Register it.
21776 (XTread_socket) [TARGET_API_MAC_CARBON]:
21777 Consolidate SendEventToEventTarget calls.
21778 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21779 Move application activation handler to mac_handle_application_event.
21780 Move keyboard handler to mac_handle_keyboard_event.
21781 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21782 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21783 init_command_handler. Call install_application_handler.
21784
21785 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21786 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21787
217882007-06-07 Glenn Morris <rgm@gnu.org>
21789
21790 * emacs.c (main): Use `emacs-copyright' in --version output.
21791
217922007-06-06 Chong Yidong <cyd@stupidchicken.com>
21793
21794 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21795
217962007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21797
21798 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21799
21800 * macgui.h: Replace WindowPtr with WindowRef.
21801
21802 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21803 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21804 Replace ControlHandle with ControlRef.
21805 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21806
21807 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21808 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21809 Replace ControlHandle with ControlRef.
21810 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21811 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21812
21813 * macterm.h (struct scroll_bar): Rename member control_handle_low
21814 and control_handle_high to control_ref_low and control_ref_high.
21815 All uses changed.
21816 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21817 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21818 respectively. All uses changed.
21819 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21820 (install_window_handler, remove_window_handler): Replace WindowPtr
21821 with WindowRef in externs.
21822
218232007-06-05 Juanma Barranquero <lekktu@gmail.com>
21824
21825 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21826
218272007-06-03 Nick Roberts <nickrob@snap.net.nz>
21828
21829 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21830
21831 * frame.c (Fmouse_position, Fmouse_pixel_position):
21832 Condition on HAVE_GPM too.
21833
21834 * term.c (term_mouse_highlight): Remove unused variables.
21835 (Fterm_open_connection): Set gpm_zerobased to 1.
21836 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21837 Use zero based co-ordinates.
21838 (handle_one_term_event): Report a drag as mouse movement too.
21839
21840 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21841
218422007-06-03 Chong Yidong <cyd@stupidchicken.com>
21843
21844 * image.c (search_image_cache): New function. Require background
21845 color match if background color is unspecified in the image spec.
21846 (uncache_image, lookup_image): Use it.
21847
218482007-06-01 Juanma Barranquero <lekktu@gmail.com>
21849
21850 * window.c (Fshrink_window): Reflow docstring.
21851
218522007-06-02 Chong Yidong <cyd@stupidchicken.com>
21853
21854 * Version 22.1 released.
21855
218562007-06-01 Richard Stallman <rms@gnu.org>
21857
21858 * xfns.c (x_encode_text): Add GCPRO.
21859
218602007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21861
21862 * xfns.c (x_set_name_internal): Save encoded name before
21863 x_encode_text in case string data is relocated.
21864
218652007-05-31 Richard Stallman <rms@gnu.org>
21866
21867 * buffer.c (syms_of_buffer): Doc fix.
21868
218692007-05-30 Nick Roberts <nickrob@snap.net.nz>
21870
21871 * sysdep.c (init_sys_modes): Add rather than replace with
21872 O_NONBLOCK.
21873
21874 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21875 term_mouse_moveto.
21876
21877 * termhooks.h (term_mouse_moveto): New extern.
21878
21879 * term.c (mouse_face_window): Rename...
21880 (Qmouse_face_window): ...to this.
21881 (term_show_mouse_face, term_clear_mouse_face)
21882 (term_mouse_highlight): Use Qmouse_face_window.
21883 (term_mouse_moveto): New function.
21884 (term_mouse_position): Make it work.
21885 (syms_of_term): Uncomment assignment to mouse_position_hook.
21886 Staticpro Qmouse_face_window.
21887
218882007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21889
21890 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21891 around current_column call.
21892
218932007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21894
21895 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21896 * xdisp.c (next_element_from_buffer):
21897 * window.c (delete_window):
21898 * term.c (term_mouse_highlight):
21899 * msdos.c (getdefdir):
21900 * macterm.c (mac_create_bitmap_from_bitmap_data)
21901 (init_font_name_table):
21902 * fns.c (Fsxhash):
21903 * data.c (Fmake_local_variable):
21904 * ccl.c (ccl_driver): Likewise.
21905
219062007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21907
21908 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21909 Call mac_wakeup_from_rne on window size change.
21910
219112007-05-25 Chong Yidong <cyd@stupidchicken.com>
21912
21913 * image.c (uncache_image): Fix typo.
21914
219152007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21916
21917 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21918
219192007-05-22 Richard Stallman <rms@gnu.org>
21920
21921 * xterm.c (x_connection_closed): Remove NO_RETURN.
21922
219232007-05-22 Martin Rudalics <rudalics@gmx.at>
21924
21925 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21926
219272007-05-21 Chong Yidong <cyd@stupidchicken.com>
21928
21929 * image.c (uncache_image): New function.
21930 (Fimage_refresh): New function.
21931
219322007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21933
21934 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21935
219362007-05-20 Nick Roberts <nickrob@snap.net.nz>
21937
21938 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21939 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21940
219412007-05-20 Nick Roberts <nickrob@snap.net.nz>
21942
21943 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21944 conditional on [HAVE_GPM_H].
21945
219462007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21947
21948 * syntax.c (skip_chars): Update syntax-table only after we checked that
21949 the new location is valid.
21950
219512007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21952
21953 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21954 mac_get_window_bounds.
21955
219562007-05-20 Nick Roberts <nickrob@snap.net.nz>
21957
21958 * Makefile.in (LIBGPM): Allow it to be set from configure.
21959 If set then link Emacs with it.
21960
21961 * config.in: Regenerate.
21962
21963 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21964 New externs.
21965
21966 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21967 Include gpm.h.
21968 (handle_one_term_event, term_gpm): New externs.
21969
21970 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21971 and allow it to be interrupted by SIGIO.
21972
21973 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21974 (wait_reading_process_output): Wait on gpm_fd too.
21975 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21976 (add_gpm_wait_descriptor_called_flag): New variable.
21977 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21978
21979 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21980 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21981 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21982 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21983 (make_lispy_event): Add case GPM_CLICK_EVENT.
21984 (read_avail_input): Handle mouse input.
21985
21986 * term.c (write_glyphs_with_face): New function.
21987 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21988 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21989 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21990 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21991 (last_mouse_x, last_mouse_y): New variables.
21992 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21993 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21994 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21995 (Fterm_close_connection): New functions.
21996 (term_init): Initialise mouse_face_window.
21997
219982007-05-19 Chong Yidong <cyd@stupidchicken.com>
21999
22000 * xdisp.c (redisplay_window): If first window line is a
22001 continuation line, recompute the new window start instead of
22002 recentering.
22003
220042007-05-18 Glenn Morris <rgm@gnu.org>
22005
22006 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22007 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22008
220092007-05-17 Glenn Morris <rgm@gnu.org>
22010
22011 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22012
220132007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22014
22015 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22016 dead key repeat and up events.
22017
220182007-05-14 Chong Yidong <cyd@stupidchicken.com>
22019
22020 * image.c (pbm_load): Check image size for monochrome pbm.
22021
220222007-05-13 Chong Yidong <cyd@stupidchicken.com>
22023
22024 * xterm.c (XTread_socket): Revert last change.
22025
220262007-05-12 Chong Yidong <cyd@stupidchicken.com>
22027
22028 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22029
22030 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22031
220322007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22033
22034 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22035 mixup (YAILOM).
22036
220372007-05-07 Andreas Schwab <schwab@suse.de>
22038
22039 * keymap.c (Flookup_key): Fix typo in last change.
22040
220412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22042
22043 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22044 mapping for unibyte strings.
22045
220462007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22047
22048 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22049 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22050
220512007-04-29 Richard Stallman <rms@gnu.org>
22052
22053 * insdel.c (replace_range): For undo, record insertion first.
22054
220552007-04-29 Andreas Schwab <schwab@suse.de>
22056
22057 * lisp.h (VECSIZE): Use OFFSETOF.
22058
220592007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22060
22061 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22062 disabled lines.
22063
220642007-04-28 Richard Stallman <rms@gnu.org>
22065
22066 * lread.c (read_escape): In a string, \s is always space.
22067
220682007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22069
22070 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22071
22072 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22073 submenu for menu bar items.
22074
22075See ChangeLog.10 for earlier changes.
22076
22077;; Local Variables:
22078;; coding: utf-8
22079;; add-log-time-zone-rule: t
aac0c6e3
MR
22080;; End:
22081
e3eb1dae 22082 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22083
22084 This file is part of GNU Emacs.
22085
22086 GNU Emacs is free software: you can redistribute it and/or modify
22087 it under the terms of the GNU General Public License as published by
22088 the Free Software Foundation, either version 3 of the License, or
22089 (at your option) any later version.
22090
22091 GNU Emacs is distributed in the hope that it will be useful,
22092 but WITHOUT ANY WARRANTY; without even the implied warranty of
22093 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22094 GNU General Public License for more details.
22095
22096 You should have received a copy of the GNU General Public License
22097 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22098
22099;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40