* vc-bzr.el (vc-bzr-log-view-mode): Fix last fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
472c3609
JR
12009-04-06 Jason Rumney <jasonr@gnu.org>
2
3 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4
ab193662
KH
52009-04-06 Kenichi Handa <handa@m17n.org>
6
7 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8
9 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10
0c26f026
KH
112009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12
13 * ftfont.c (ftfont_open): Fix checking of the return value of
14 FT_Load_Char. Fix setting font->underline_thickness.
15
e173bbce
CY
162009-04-04 Chong Yidong <cyd@stupidchicken.com>
17
18 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
19 (Fterminal_parameters, Fterminal_parameter)
20 (Fset_terminal_parameter): In doc string, refer to terminal
21 objects rather than terminal ids.
22
693a2698
EZ
232009-04-04 Eli Zaretskii <eliz@gnu.org>
24
25 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
26 ret_lim_data. (Bug#2867)
27
d5221487
CY
282009-04-03 Chong Yidong <cyd@stupidchicken.com>
29
30 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
31 so they don't get wider than the window, matching 2006-01-23
32 change to the partner function in xdisp.c (Bug#2800).
33
223509a3
KH
342009-04-03 Kenichi Handa <handa@m17n.org>
35
36 * print.c (print_object): Make each lowest sub_char_table start a
37 new line (Bug#2866).
38
74fcd0b1
KH
392009-04-02 Kenichi Handa <handa@m17n.org>
40
41 * fontset.c (fontset_font): Record no-font when a fontset
42 explicitly tells not to try another font-specs.
43
c542407d
SM
442009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
45
46 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
47
e3869731
KH
482009-03-30 Kenichi Handa <handa@m17n.org>
49
d8d2f142
KH
50 * fontset.c (fontset_from_font): Specify only registry in a
51 font-spec for all characters supported by that registry.
52
e3869731
KH
53 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
54 even if HAVE_M17N_FLT is not defined.
55
5da5f805
CY
562009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
57
58 * ftfont.c: Conditionalize prototyping and use of
59 ftfont_variation_glyphs.
60
ab226c50
SM
612009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
62
9628fed7
SM
63 * frame.c (delete_frame): Work around compiler bug.
64
65 * editfns.c (general_insert_function): Adjust to insdel.c changes.
66 * insdel.c (prepare_to_modify_buffer, signal_before_change):
67 Some more EMACS_INT.
68 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
69
70 * xdisp.c (dump_glyph): Fix typo.
71
ae19ba7c
SM
72 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
73 (adjust_markers_gap_motion, adjust_markers_for_delete)
74 (adjust_markers_for_insert, adjust_point)
75 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
76 (make_gap, copy_text, count_size_as_multibyte, insert)
77 (insert_and_inherit, insert_before_markers)
78 (insert_before_markers_and_inherit, insert_1)
79 (count_combining_before, count_combining_after, insert_1_both)
80 (insert_from_string, insert_from_string_before_markers)
81 (insert_from_string_1, insert_from_gap, insert_from_buffer)
82 (insert_from_buffer_1, adjust_after_replace)
83 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
84 (replace_range_2, del_range, del_range_1, del_range_byte)
85 (del_range_both, del_range_2, modify_region)
86 (prepare_to_modify_buffer, signal_before_change)
87 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
88 for buffer positions and sizes.
89 * lisp.h: Adjust prototypes accordingly.
90
91 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
92 (non_regular_inserted, non_regular_nbytes, read_non_regular)
93 (Finsert_file_contents): Use EMACS_INT for buffer positions.
94
ab226c50
SM
95 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
96
46dfb8fb
JD
972009-03-27 Jan Djärv <jan.h.d@swipnet.se>
98
99 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
100 lines and columns so we keep the same pixel height and width.
101
102 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
103 the property _NET_WM_STATE has changed.
46dfb8fb
JD
104 (x_handle_net_wm_state): New function to update frame parameter
105 fullscreen.
106 (x_term_init): Initialize atoms for _NET_WM_STATE.
107
108 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
109
d347e494
SM
1102009-03-27 Kevin Ryde <user42@zip.com.au>
111
112 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
113 Gpm_GetEvent as an error that justifies closing the filedescriptor.
114 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
115 (Fgpm_mouse_stop): Pass that new parameter.
116 * termhooks.h (close_gpm): Adjust prototype.
117
84db11d6
SM
1182009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
119
c95a5008
SM
120 * lisp.h (Fx_focus_frame): Declare.
121
84db11d6
SM
122 * callint.c (Fcall_interactively): For '^' just delegate the work to
123 handle-shift-selection.
124 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
125
0a1958d6
CY
1262009-03-24 Chong Yidong <cyd@stupidchicken.com>
127
0bfdff23
CY
128 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
129
0a1958d6
CY
130 * data.c (Qinteractive_form): New variable.
131 (Finteractive_form): Use it.
132
133 * eval.c (Fcommandp): Use Qinteractive_form.
134
58aec0d6
JR
1352009-03-24 Jason Rumney <jasonr@gnu.org>
136
137 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
138 Calculate total size precisely. Decode environment variables
139 before substituting. (Bug#38)
140
553dd618
KH
1412009-03-24 Kenichi Handa <handa@m17n.org>
142
143 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 144 encoding (Bug#2722).
553dd618 145
c39ea606
JD
1462009-03-23 Jan Djärv <jan.h.d@swipnet.se>
147
148 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
149 that gdpy is set.
150
bc9b2b5e
AM
1512009-03-22 Alan Mackenzie <acm@muc.de>
152
153 * callint.c (Finteractive): Clarify the doc string - even
154 promptless elements need \n separators.
155
9f995a76
JR
1562009-03-22 Jason Rumney <jasonr@gnu.org>
157
158 * w32term.c (syms_of_w32term): Doc fix for
159 x-use-underline-position-properties.
160
22749e9a
EZ
1612009-03-21 Eli Zaretskii <eliz@gnu.org>
162
163 * w32.c (getpwuid): Change argument type to unsigned.
164 (struct w32_id): Change type of `rid' member to unsigned.
165 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
166 argument ID to unsigned. All callers changed.
167 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
168
e00553bf
EZ
1692009-03-20 Eli Zaretskii <eliz@gnu.org>
170
171 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
172 negative, produce a float value.
173
174 * dired.c (make_uid, make_gid): New functions.
175 (Ffile_attributes): Use them to avoid negative UID and GID.
176
f761d6b6
JB
1772009-03-20 Juanma Barranquero <lekktu@gmail.com>
178
179 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
180 (syms_of_keyboard) <command-hook-internal, input-method-function>:
181 Fix typos in docstrings.
182
d507f8d7
KH
1832009-03-19 Kenichi Handa <handa@m17n.org>
184
185 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
186 changed, use font_load_for_lface to get a new font object.
187 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
188
189 * frame.c (x_set_font): Handle the case that ARG is a cons.
190
c68845e0
GM
1912009-03-19 Glenn Morris <rgm@gnu.org>
192
193 * fileio.c (Fsubstitute_in_file_name): Doc fix.
194
bfa49dd1
CY
1952009-03-19 Chong Yidong <cyd@stupidchicken.com>
196
197 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
198
8458d4c1
KH
1992009-03-19 Kenichi Handa <handa@m17n.org>
200
201 * charset.c (load_charset_map_from_file): When a mapfile can't be
202 loaded, signal an error.
203
78e7d1fe
EZ
2042009-03-18 Eli Zaretskii <eliz@gnu.org>
205
206 * dired.c (Ffile_attributes): Make sure UID and GID are always
207 positive, even if the value is too large for a positive EMACS_INT.
208 Doc fix.
209
210 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
211
5da9fdfa
YM
2122009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
213
214 * xmenu.c (xdialog_show): Move Fredisplay call ...
215 (Fx_popup_dialog): ... here.
216
7519c40d
SM
2172009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
218
219 * dired.c (file_name_completion): Disable the first optimization just
220 installed, since it is not implemented correctly.
221
2cd298e2
SM
2222009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
223
224 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 225 only if the entry can affect bestmatch.
2cd298e2
SM
226 Stop the search early, as Ftry_completion already does.
227
48d37adf
CY
2282009-03-17 Chong Yidong <cyd@stupidchicken.com>
229
e10c9c93 230 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 231
9286b16a
CY
2322009-03-15 Chong Yidong <cyd@stupidchicken.com>
233
234 * keyboard.c (parse_menu_item): Don't display remappings as menu
235 equivalent bindings (Bug#788).
236
f7b146dc
JR
2372009-03-15 Jason Rumney <jasonr@gnu.org>
238
239 * w32term.h (WM_EMACS_PAINT): New message.
240 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
241 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
242 before passing to lisp thread. (Bug#950)
243
f761d6b6 2442009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 245
d93f9575
CY
246 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
247 variable as it was never reset.
248 (ns_term_init): Remove initialization of Lisp-settable defaults
249 and ns_expand_space.
250 (-setPanelFromDefaultValues): Remove ns_expand_space.
251 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
252 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
253 i.e. no additional spacing, similar to Carbon port.
254
d93f9575
CY
255 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
256 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 257
305018ec
JD
2582009-03-14 Jan Djärv <jan.h.d@swipnet.se>
259
260 * sound.c (alsa_configure): Remove call to deprecated
261 snd_pcm_sw_params_set_xfer_align.
262
f761d6b6 2632009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
264
265 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
266 after clicking in a detached tool bar.
267 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
268
46e722a9
SM
2692009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
270
348db3dd
SM
271 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
272 int/Lisp_Object mixup).
46e722a9 273
a3d16f39
KH
2742009-03-13 Kenichi Handa <handa@m17n.org>
275
276 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 277 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
278 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
279 (set_fontset_font): Change ARG to a vector. Handle range_list in
280 ARG correctly.
281 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 282 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
283 the above change.
284 (fontset_from_font): Fix previous change.
fe24f56a 285 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
286 entry. If FONTSET is the default fontset, don't set the extra
287 slot of the returning char-table.
288
b066e6b6
JB
2892009-03-12 Juanma Barranquero <lekktu@gmail.com>
290
291 * nsfns.m (Fx_close_connection): Doc fix.
292 (Fns_do_applescript): Reflow docstring.
293 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
294 (Fx_display_pixel_width, Fx_display_pixel_height)
295 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
296 Fix typos in docstrings.
297 (Fns_set_alpha): Fix typos in error messages.
298
d472514e 2992009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 300
d472514e 301 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
302 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
303 were used for such events.
304
d472514e
JB
305 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
306 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 307
d472514e 308 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
309 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
310
fb930676
KH
3112009-03-11 Kenichi Handa <handa@m17n.org>
312
ff85581a
KH
313 * font.h (font_open_by_spec): Extern it.
314
c50b7e98
KH
315 * font.c (font_open_by_spec): New function.
316 (font_open_by_name): Use font_open_by_spec.
317
fb930676
KH
318 * frame.c (x_set_font): When ARG is a font-object, don't alter the
319 fontset of the frame.
320
321 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
322 modify the default font of frames that use this fontset.
323 (num_auto_fontsets): New variable.
324 (fontset_from_font): Use num_auto_fontsets to decide a fontset
325 name. Be sure to set FONTSET_ASCII to the correct font name.
326 (update_auto_fontset_alist): New function.
327
df4e8455
JB
3282009-03-11 Juanma Barranquero <lekktu@gmail.com>
329
330 * makefile.w32-in: Update dependencies.
331
0a375797
AR
3322009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
333
334 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
335
61313fa3
SM
3362009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
337
338 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
339
b55103fb
CY
3402009-03-10 Chong Yidong <cyd@stupidchicken.com>
341
342 * lread.c (Feval_buffer): Doc fix.
343
dde2559c
KH
3442009-03-09 Kenichi Handa <handa@m17n.org>
345
346 * charset.c (Qfile_name_handler_alist): Extern it.
347 (load_charset_map_from_file): Temporarily bind
348 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
349
df4e8455 3502009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 351
47f588bb
GM
352 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
353 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 354
4ddf94bd
AR
3552009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
356
4c9bdfc2
AR
357 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
358 (x_set_window_size): Change back to calculated method of setting
359 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
360 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
361 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
362
fe41ae9e
AR
363 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
364
4c9bdfc2
AR
365 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
366 accelerator in parens under GNUstep.
367
825d0875
KH
3682009-03-06 Kenichi Handa <handa@m17n.org>
369
370 These changes are to detect incorrect composition sequence without
f3b3be74 371 looking ahead the source. (Bug#2370)
825d0875
KH
372
373 * coding.h: Include "composite.h".
374 (enum compisition_state): New enum.
375 (struct compisition_status): New struct.
376 (struct iso_2022_spec): New member cmp_status.
377 (struct emacs_mule_spec): New struct.
378 (struct coding_system): New members ctext_extended_segment_len and
379 embedded_utf_8. Change the union member
380 spec.emacs_mule_full_support to spec.emacs_mule.
381
382 * coding.c (CODING_ISO_CMP_STATUS): New macro.
383 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
384 (MAX_ANNOTATION_LENGTH): Defined to 5.
385 (ADD_COMPOSITION_DATA): New arg nbytes.
386 (emacs_mule_char): New arg cmp_status.
387 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
388 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
389 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
390 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
391 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
392 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
393 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
394 (EMACS_MULE_COMPOSITION_END): New macro.
395 (emacs_mule_finish_composition): New function.
396 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
397 (decode_coding_emacs_mule): Avoid long looking ahead while
398 handling composition.
399 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
400 (ENCODE_COMPOSITION_RULE): New macro.
401 (finish_composition): New function.
402 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
403 (DECODE_COMPOSITION_START): New implementation.
404 (DECODE_COMPOSITION_END): Likewise.
405 (STORE_COMPOSITION_RULE): New macro.
406 (decode_coding_iso_2022): Avoid long looking ahead while handling
407 composition, CTEXT extended segment, and embedded UTF-8.
408 (setup_coding_system): For a coding of type iso-2022, reset
409 CODING_ISO_EXTSEGMENT_LEN (coding) and
410 CODING_ISO_EMBEDDED_UTF_8 (coding).
411 (get_translation): Delete arguments last_block, from_nchars,
412 to_nchars. Callers changed.
413 (produce_chars): Don't modify charbuf. Adjusted for the change of
414 get_translation.
415 (produce_composition): Adjusted for the new annotation sequence.
416 (handle_composition_annotation): Likewise.
417 (consume_chars): Adjusted for the change of get_translation.
418
ccbc4452
AR
4192009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
420
4ddf94bd 421 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 422
988a7ddb
KH
4232009-03-05 Kenichi Handa <handa@m17n.org>
424
425 * font.c (font_select_entity): New function.
426 (font_find_for_lface): Use font_select_entity to select a font.
427
428 * fontset.c (fontset_find_font): If a font found without
429 restricting of the characters C doen't support C, try to find a
430 font with C restriction.
431
be1bce46 4322009-03-04 Nikolaj Schumacher <me@nschum.de> (tiny change)
2f462d73 433
be1bce46 434 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 435
10ea2b82
JR
4362009-03-04 Jason Rumney <jasonr@gnu.org>
437
2c93b248 438 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 439 characters that have already been read. (Bug#2569)
2c93b248 440
10ea2b82
JR
441 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
442 Log an error message if check_image_size failed.
443 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 444 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 445
71a0c011
EZ
4462009-03-02 Eli Zaretskii <eliz@gnu.org>
447
448 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
449 when decoding process output.
450
2f63bba8
RS
4512009-03-01 Richard M Stallman <rms@gnu.org>
452
453 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
454
455 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
456
0a9564cb
EZ
4572009-02-28 Eli Zaretskii <eliz@gnu.org>
458
459 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
460 (decode_coding_emacs_mule, decode_coding_iso_2022)
461 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
462 (decode_coding_raw_text, decode_coding_charset)
463 (setup_coding_system, decode_eol, decode_coding, consume_chars):
464 Honor inhibit-eol-conversion. (Bug #2186)
465
449148b3
JR
4662009-02-28 Jason Rumney <jasonr@gnu.org>
467
468 * coding.c (detect_coding_charset): If not checking latin extra,
469 fail on characters between 0x80 and 0xA0. (Bug#2354)
470
a4aee864
EZ
4712009-02-28 Eli Zaretskii <eliz@gnu.org>
472
473 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 474 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 475
d88bee5a
GM
4762009-02-27 Glenn Morris <rgm@gnu.org>
477
478 * callint.c (Finteractive): Doc fix.
479
a808f22d
KH
4802009-02-27 Kenichi Handa <handa@m17n.org>
481
482 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
483
caf8d60c
CY
4842009-02-27 Chong Yidong <cyd@stupidchicken.com>
485
486 * font.c (font_style_to_value): Set value for unknown symbols to
487 100 instead of 255.
b61137ea
CY
488 (weight_table, slant_table, width_table): Treat "unspecified" as
489 the default value.
caf8d60c 490
1a0de25c
JB
4912009-02-26 Juanma Barranquero <lekktu@gmail.com>
492
493 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
494
8fc45744
JB
4952009-02-25 Juanma Barranquero <lekktu@gmail.com>
496
107bd7d1
JB
497 * lread.c (Fload): Stop checking Vloads_in_progress and signal
498 error as soon as a recursive load is detected.
8fc45744 499
f097e223
AR
5002009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
501
502 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
503 before caching.
504
8810a12f
KH
5052009-02-24 Kenichi Handa <handa@m17n.org>
506
507 * fontset.c (fontset_find_font): Fix the condition for checking
508 unavailable font.
509
2c7d1565
GM
5102009-02-24 Glenn Morris <rgm@gnu.org>
511
512 * xfaces.c (Finternal_set_font_selection_order): Remove leading
513 whitespace that confuses documentation.
514
a20878b6
MB
5152009-02-23 Miles Bader <miles@gnu.org>
516
517 * process.c (Flist_system_processes, Fprocess_attributes)
518 (syms_of_process): Rename `system-process-attributes' to
519 `process-attributes'.
520
b3b58c01
AS
5212009-02-22 Andreas Schwab <schwab@linux-m68k.org>
522
1b3b981b
AS
523 * coding.h (struct coding_system): Make safe_charsets a pointer to
524 unsigned char.
525 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
526 being 255.
527 (SAFE_CHARSET_P): Likewise.
528 (setup_iso_safe_charsets): Properly setup safe_charsets.
529 (Fdefine_coding_system_internal): Likewise.
530 (setup_coding_system): Likewise. Remove unneeded casts.
531 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
532 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
533 unneeded casts.
534
b3b58c01
AS
535 * insdel.c (del_range_2): Don't modify gap contents when called
536 from decode_coding_object. (Bug#1809)
537
0b6f228c
CY
5382009-02-21 Chong Yidong <cyd@stupidchicken.com>
539
540 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
541 Qfont_object.
542 (Ftype_of): Recognize font objects.
543
544 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
545
546 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
547 moved to data.c.
548
52f8870b
AR
5492009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
550
551 * nsterm.m (x_make_frame_invisible): Unset async_visible,
552 async_iconified. Based on a patch by Christian Lynbech
553 <christian.lynbech@tieto.com>.
554 (EmacsView-windowDidMiniaturize:): Unset async_visible.
555
7087d5e9
GM
5562009-02-20 Glenn Morris <rgm@gnu.org>
557
558 * syntax.c (Fskip_chars_forward): Fix doc typo.
559
41d2ceef
CY
5602009-02-20 Chong Yidong <cyd@stupidchicken.com>
561
562 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
563
1a3b7ca6
CY
5642009-02-19 Chong Yidong <cyd@stupidchicken.com>
565
566 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
567
73cce38d
KH
5682009-02-19 Kenichi Handa <handa@m17n.org>
569
570 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 571 Don't overflow coding->carryover. (Bug#2370)
73cce38d 572
a51092ee
DN
5732009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
574
575 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
576
c423ecca
KH
5772009-02-18 Kenichi Handa <handa@m17n.org>
578
579 * font.c (font_check_otf_features): Fix handling of `nil' element.
580 (Ffont_spec): Describe :lang and :otf in the docstring.
581
4c1958f4
AS
5822009-02-16 Andreas Schwab <schwab@suse.de>
583
584 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
585 string.
586
5704f39a
KH
5872009-02-16 Kenichi Handa <handa@m17n.org>
588
589 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 590 (Bug#1723)
5704f39a 591
8f0085aa
CY
5922009-02-14 Chong Yidong <cyd@stupidchicken.com>
593
a057d86a 594 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
595
596 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
597 (handle_line_prefix): Suppress wrapping of wrap prefixes.
598
aff01dd9
EZ
5992009-02-14 Eli Zaretskii <eliz@gnu.org>
600
601 * msdos.c (MAX_SCREEN_BUF): New macro.
602 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
603 Encode the entire run of glyphs sharing the same face, instead of
604 doing that one glyph at a time (fixes a bug with displaying
605 double-size characters).
606
ba301db3
AR
6072009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
608
609 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
610
611 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
612 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 613 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
614
615 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 616 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 617
51d861de
SM
6182009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
619
620 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
621 invisible areas.
622
7fed8996
JR
6232009-02-12 Jason Rumney <jasonr@gnu.org>
624
631ea4fb
JR
625 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
626 (add_font_entity_to_list): Call check_face_name even when family
627 is unspecified.
628
cb4a3e42
JR
629 * w32term.c (x_display_pixel_height, x_display_pixel_width):
630 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 631 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 632
7fed8996 633 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 634 raster fonts. (Bug#2219)
7fed8996 635
895416e3
KH
6362009-02-12 Kenichi Handa <handa@m17n.org>
637
638 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
639 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
640 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 641 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
642 (find_automatic_composition): While looking forward and backward,
643 check static composition. Fix where to stop looking forward.
644 (composition_adjust_point): Fix checking of static composition.
645 (Fcomposition_get_gstring): Pay attention to
1dacf998 646 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
647
648 * lisp.h (fast_looking_at): Extern it.
649
650 * search.c (fast_looking_at): New function.
651
51d861de 652 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
653 <struct glyph>.u.cmp.to.
654 (append_composite_glyph): Likewise.
655
51d861de 656 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
657 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
658 composition.
51d861de 659 (append_composite_glyph): Adjust for the change of
895416e3
KH
660 <strcut glyph>.u.cmp.to.
661
8510724d
JB
6622009-02-11 Juanma Barranquero <lekktu@gmail.com>
663
664 * casetab.c (init_casetab_once):
665 * coding.c (ALLOC_CONVERSION_WORK_AREA):
666 * font.c (font_update_lface):
667 * fontset.c (Fnew_fontset):
668 * ftfont.c (ftfont_drive_otf):
669 * xfont.c (xfont_open):
670 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
671
294fa707
SM
6722009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
673
674 * fileio.c (Fwrite_region): !NILP -> CONSP.
675
b5bfebec
AS
6762009-02-10 Andreas Schwab <schwab@suse.de>
677
678 * process.c (send_process): Properly relocate pointer into data
adab88bd 679 when using encoded data. (Bug#2272)
b5bfebec 680
cb84a2be
KH
6812009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
682
683 * coding.c (detect_coding_charset): Fix previous change.
684
89e09428
JR
6852009-02-08 Jason Rumney <jasonr@gnu.org>
686
687 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 688 disappeared while hourglass was displayed. (Bug #2193)
89e09428 689
4470a277
AS
6902009-02-07 Andreas Schwab <schwab@suse.de>
691
692 * unexelf.c (unexec): Fix error message.
693
3175b12a
AR
6942009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
695
696 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 697 when modal window is active. (Bug #2152)
3175b12a
AR
698 (applicationShouldTerminate:): Remove now-unneeded while loop
699 around NSRunAlertPanel.
700
701 * nsmenu.m (popupSession): New file-global variable.
702 (pop_down_menu): End the popupSession before closing dialog.
703 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
704 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
705 don't query NSApp for events (just sleep instead).
706
8434d0b8
EZ
7072009-02-07 Eli Zaretskii <eliz@gnu.org>
708
51d861de
SM
709 * coding.c (syms_of_coding) <translation-table-for-input>:
710 Modify doc string to discourage use for character code unification.
8434d0b8 711
aa82edfd
CY
7122009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
713
714 * atimer.c (run_timers): Update pending_atimers.
715
2d283c7c
CY
7162009-02-06 Chong Yidong <cyd@stupidchicken.com>
717
eb306cab
CY
718 * image.c (svg_load_image): Fix last change.
719
2d283c7c
CY
720 * xfns.c (Fx_create_frame): Signal an error if no font is
721 found (Bug#2147).
722
4d8e170e
JB
7232009-02-05 Juanma Barranquero <lekktu@gmail.com>
724
725 * character.c (syms_of_character) <script-representative-chars>:
726 Fix typo in docstring.
727
c96169a0
AR
7282009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
729
730 * nsmenu.m (pop_down_menu): New function.
731 (ns_popup_dialog): Call it on unwind.
732 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
733 call timer_check() (Bug#2154).
734 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
735 handling_signal is set.
736 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
737
738 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
739
740 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
741
742 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
743
51d861de
SM
744 * keyboard.c (poll_for_input_1, handle_async_input):
745 Set handling_signal under HAVE_NS.
c96169a0 746
aacd8ba1
GM
7472009-02-04 Glenn Morris <rgm@gnu.org>
748
749 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
750
4cb75c4b
KH
7512009-02-04 Kenichi Handa <handa@m17n.org>
752
753 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
754
755 * charset.c (Fchar_charset): New optional arg restriction.
756
757 * coding.h (coding_system_charset_list): Extern it.
758
759 * coding.c (coding_system_charset_list): New function.
760
761 * composite.c: Include coding.h and termhooks.h.
762 (composition_gstring_p): Fix for the terminal case.
763 (composition_gstring_width): Likewise.
764 (fill_gstring_body): Likewise.
765 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
766 the frame.
767 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
768 is within a composition.
867d4bb3 769 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
770
771 * term.c (encode_terminal_code): Fix handling of composition.
772 (produce_composite_glyph): For static composition, get pixel_width
773 from struct composition.
774
826ba17e
AS
7752009-02-02 Andreas Schwab <schwab@suse.de>
776
777 * unexelf.c (unexec): Handle unaligned bss offset.
778
8ad093db
AR
7792009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
780
781 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
782 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 783
8ad093db
AR
784 * keyboard.c (handle_interrupt): Don't call
785 quit_throw_to_read_char() under NS.
d0a76a6e 786
8ad093db
AR
787 * blockinput.h: Remove NS-specific code.
788
4d18a7a2
DN
7892009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
790
db878925
DN
791 * dispnew.c (window_change_signal): Don't try to get the size of a
792 suspended tty frame.
793 * term.c (Fresume_tty): Resize if the size has changed while the
794 tty was suspended.
795
4d18a7a2
DN
796 * alloc.c (mark_stack): Properly conditionalize previous change.
797
8984df7c
JB
7982009-01-30 Juanma Barranquero <lekktu@gmail.com>
799
800 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
801 * w32term.c (w32_read_socket) [SYNC_INPUT]:
802 Remove; this code is not used on Windows.
803
75f4f1ac
EZ
8042009-01-30 Eli Zaretskii <eliz@gnu.org>
805
806 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
807 EOLs that also has stray ^M characters.
808
07a1e794
JB
8092009-01-30 Juanma Barranquero <lekktu@gmail.com>
810
811 * atimer.c (run_timers, alarm_signal_handler):
812 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
813 * w32inevt.c (w32_console_read_socket):
814 * w32term.c (w32_read_socket):
815 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
816
a8b11cc9
CY
8172009-01-30 Chong Yidong <cyd@stupidchicken.com>
818
819 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
820 Initialize it as a relative filename pattern.
821 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
822 (Fcall_process_region): Simplify temp file creation using
823 temporary-file-directory.
824
c279587b
EZ
8252009-01-29 Eli Zaretskii <eliz@gnu.org>
826
827 * msdos.c: Rename pending_signals to msdos_pending_signals.
828 (sig_suspender, sigprocmask): Adjust.
829
a8fe3242
CY
8302009-01-29 Chong Yidong <cyd@stupidchicken.com>
831
832 * keyboard.c (pending_signals): New var.
833 (poll_for_input, input_available_signal, init_keyboard): Set it.
834 (process_pending_signals): New function.
835
836 * lisp.h (QUIT): Check pending_signals instead of
837 interrupt_input_pending. Use process_pending_signals.
838
51d861de 839 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 840
51d861de 841 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
842
843 * sysdep.c (emacs_write): Use process_pending_signals.
844
845 * xterm.c (XTread_socket): Update pending_signals.
846
847 * w32term.c (w32_read_socket): Update pending_signals.
848
849 * w32inevt.c (w32_console_read_socket): Update pending_signals.
850
6570a1c4
KH
8512009-01-29 Kenichi Handa <handa@m17n.org>
852
853 * xftfont.c (xftfont_has_char): New function.
854 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
855
d72a4afa
AR
8562009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
857
858 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
859 under GNUstep.
860 (ns_query_color): New declaration.
861
862 * nsterm.m (ns_confirm_quit): New variable.
863 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
864 (EmacsApp-applicationShouldTerminate:): Use it.
865 (EmacsPrefsController): Let user set it.
866 (ns_query_color): New function.
867 (ns_defined_color): Use it.
868 (ns_initialize): Drop.
869 (ns_term_init): Add two lines from ns_initialize(), and set
870 input_interrupt_mode to nil.
871
872 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 873 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 874
9fe78804
KH
8752009-01-28 Kenichi Handa <handa@m17n.org>
876
877 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
878 (fontset_get_font_group): Remember that no font-group is specified
879 for C.
9fe78804 880
fa57de36
CY
8812009-01-27 Chong Yidong <cyd@stupidchicken.com>
882
930600e9
CY
883 * fns.c (concat): Check for string overflow (bug#1787).
884
fa57de36
CY
885 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
886 Quadruple undo limits (bug#1501).
887
7179ce7b
KH
8882009-01-27 Kenichi Handa <handa@m17n.org>
889
890 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
891 directly use GT_Get_Char_index.
892
893 * xftfont.c (struct xftfont_info): New member `index'.
894
895 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 896 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 897
5be8fcc0
CY
8982009-01-26 Kenichi Handa <handa@m17n.org>
899
900 * fontset.c (fontset_find_font): Fix handling of non-cons return
901 value of fontset_get_font_group.
902 (fontset_font): Revert last change.
903
19ae3e61
JR
9042009-01-26 Jason Rumney <jasonr@gnu.org>
905
906 * w32font.c (w32font_list_internal): Return quickly if registry is
907 unknown. Simplify final return.
908 (add_font_entity_to_list): Break complex logic down into more
909 manageable chunks. Move unknown registry check to
910 w32font_list_internal.
911
8612b71a
AR
9122009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
913
914 Changes to remove Feval calls from GUI under NS.
915
d8038940
JB
916 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
917 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
918 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
919
920 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
921 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
922 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
923 instead of NON_ASCII_KEYSTROKE_EVENT.
924 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
925 (EmacsApp-applicationShouldTerminate:): Query user.
926 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
927 instead of Feval.
928
929 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
930
931 * keyboard.c (kbd_buffer_get_event): Check for it.
932 (keys_of_keyboard): Define lispy keys for
933 ns-put/unput-working-text.
934
935 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
936 versions.
937 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
938
6288ae55
CY
9392009-01-25 Chong Yidong <cyd@stupidchicken.com>
940
941 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 942 setting current_buffer directly. (Bug#2044)
6288ae55 943
289e7f8f
CY
9442009-01-24 Chong Yidong <cyd@stupidchicken.com>
945
5ce87308 946 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 947 any work. (Bug#1952, bug#1990).
5ce87308 948
64cc3cf6 949 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 950
b3243e6f
AR
9512009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
952
953 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
954 (ns_no_defaults): New declaration.
955 (main): Use it.
e0d2e69a 956
d900b2af 957 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 958
d900b2af 959 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 960
d900b2af
AR
961 * nsterm.m (ns_no_defaults): New variable.
962 (ns_initialize): Don't read defaults when ns_no_defaults.
963 (EmacsView-readSelectionFromPasteboard:)
964 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 965 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
966 (ns_dumpglyphs_stretch): New function.
967 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 968 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 969
e0d2e69a
AR
970 * nsimage.m (setPixmapData:): Set to ignore image DPI.
971
3ac71f5d
CY
9722009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
973
974 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
975 call for Sparc64.
976
3fe53a83
AR
9772009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
978
979 * nsfns.m:
980 * nsgui.h:
981 * nsmenu.m:
982 * nsselect.m:
983 * nsterm.h:
984 * nsterm.m: Remove '23' comments that indicated code added during
985 update from emacs-20 -> emacs-23.
986
10f87c6f 9872009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
988
989 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 990 ns_alternate_modifier. (Bug#1217)
a3b53a85 991
c7cef62d
AR
992 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
993 Display all shortcuts, including those w/o super modifier.
994
575fb8bd
AR
995 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
996
918b848b
CY
9972009-01-22 Chong Yidong <cyd@stupidchicken.com>
998
999 * fileio.c (Vwrite_region_post_annotation_function)
1000 (Vwrite_region_annotation_buffers): New vars.
1001 (build_annotations_unwind): Just reset
1002 Vwrite_region_annotation_buffers.
1003 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1004 Call write-region-post-annotation-function.
1005 (build_annotations): Add to Vwrite_region_annotation_buffers if
1006 buffer changes.
1007
a39e2539
AR
10082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1009
1010 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1011 Tiger.
51d861de
SM
1012 * nsfns.m (ns_do_applescript):
1013 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1014
35ed44db
AR
10152009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1016
1017 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1018
cbe0b5bf
AR
10192009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1020
1021 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1022
6049d3a0
AR
1023 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1024
1025 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1026 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1027 handle Ctrl-tab. (Bug#1841)
1028 (ns_get_color): Use unsigned long long for scanned hex string value.
1029 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1030 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6049d3a0 1031 (EmacsPrefsController-setPanelFromDefaultValues) New function.
3a88a825 1032 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1033 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1034 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1035 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1036
d3810c21 1037 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1038 DPI. (Bug#1316)
d3810c21
AR
1039 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1040 values in onTiger section.
4c7077c3 1041
e301e634
CY
10422009-01-19 Chong Yidong <cyd@stupidchicken.com>
1043
7f82490b
CY
1044 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1045 Check return value of font_spec_from_name.
64cc3cf6 1046 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1047
1048 * font.c (font_spec_from_name): Return Qnil if font name could not
1049 be parsed.
1050 (font_parse_name): Treat a `?' character as part of an XLFD.
1051
e301e634
CY
1052 * fns.c (Fsubstring): Doc fix.
1053
1c0db158
KH
10542009-01-19 Kenichi Handa <handa@m17n.org>
1055
51d861de 1056 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1057 (ftfont_list): Likewise.
1058
acf20901
JB
10592009-01-18 Juanma Barranquero <lekktu@gmail.com>
1060
fff4e459
JB
1061 * dbusbind.c (Fdbus_register_signal):
1062 * process.c (conv_sockaddr_to_lisp):
1063 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1064
acf20901
JB
1065 * callproc.c (Fgetenv_internal): Doc fix.
1066
e7abcdfb
CY
10672009-01-16 Chong Yidong <cyd@stupidchicken.com>
1068
1069 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1070 it is not even used.
1071
b60861e6
GM
10722009-01-16 Glenn Morris <rgm@gnu.org>
1073
1074 * font.c (Ffont_variation_glyphs): Silence compiler.
1075
8db52afe
JB
10762009-01-15 Juanma Barranquero <lekktu@gmail.com>
1077
1078 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1079 Reported by David Robinow <drobinow@gmail.com>.
1080
4cddb209
KH
10812009-01-15 Kenichi Handa <handa@m17n.org>
1082
51d861de 1083 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1084
f247f67b
JR
10852009-01-14 Jason Rumney <jasonr@gnu.org>
1086
1087 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1088 never a fontset. (Bug#1562)
f247f67b 1089
f56a4450
KH
10902009-01-14 Kenichi Handa <handa@m17n.org>
1091
1092 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1093 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1094
4e99855e
CY
10952009-01-13 Chong Yidong <cyd@stupidchicken.com>
1096
1097 * font.c (font_clear_prop): If clearing the family, clear the font
1098 width index too.
1099
fff4e459 1100 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1101
24f01470
JB
11022009-01-12 Juanma Barranquero <lekktu@gmail.com>
1103
1104 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1105 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1106 functions, use sizeof.
1107
a41240a3
MR
11082009-01-12 Martin Rudalics <rudalics@gmx.at>
1109
1110 * keyboard.c (read_char): Fix case where last_nonmenu_event
1111 returned a bad value with submenus. (Bug#447)
1112
944636b8
CY
11132009-01-12 Chong Yidong <cyd@stupidchicken.com>
1114
1115 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1116 family, clear the font width index too.
1117
0dad7c6f
JR
11182009-01-11 Jason Rumney <jasonr@gnu.org>
1119
1120 * keyboard.c (cmd_error_internal): Exit when errors occur before
1121 frame creation and not in daemon mode. (Bug#1836)
1122
7c2363af
CY
11232009-01-10 Chong Yidong <cyd@stupidchicken.com>
1124
1125 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1126 of a display vector, backtrack.
1127 (try_window_reusing_current_matrix): Check glyph type before
1128 referencing charpos member.
1129
97b1b294
EZ
11302009-01-10 Eli Zaretskii <eliz@gnu.org>
1131
1132 Fix Bug #876:
1133
1134 * coding.c (inhibit_null_byte_detection): New variable.
1135 (detect_coding, detect_coding_system): Don't pay attention to null
1136 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1137 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1138 <inhibit-iso-escape-detection>: Doc fix.
1139
4624b6e3
JR
11402009-01-09 Jason Rumney <jasonr@gnu.org>
1141
1142 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1143 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1144 Only report Unicode Plane 2 fonts as unicode-sip.
1145
323b840c
CY
11462009-01-09 Chong Yidong <cyd@stupidchicken.com>
1147
51d861de
SM
1148 * xfaces.c (Fx_font_family_list): Delete function.
1149 Move compatibility version to faces.el.
323b840c 1150
51d861de 1151 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1152
eba7400d
MR
11532009-01-09 Martin Rudalics <rudalics@gmx.at>
1154
1155 * frame.c (x_set_frame_parameters): Remember requested value for
1156 fullscreen before it's reset by the parameter handler.
1157
4b09796d
GM
11582009-01-09 Glenn Morris <rgm@gnu.org>
1159
1160 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1161 (last_command_event): ... and update all users.
4b09796d
GM
1162 (last_input_char): For clarity, rename to...
1163 (last_input_event): ... and update all users.
1164 (last-command-char, last-input-char): Move to subr.el as aliases.
1165 * cmds.c, commands.h: Update for last_command_char rename.
1166
14ccea62
CY
11672009-01-08 Chong Yidong <cyd@stupidchicken.com>
1168
51d861de 1169 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1170
5f004711
JR
11712009-01-08 Jason Rumney <jasonr@gnu.org>
1172
1173 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1174 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1175 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1176 Don't declare.
fff4e459 1177 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1178 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1179
b71f6f73
KH
11802009-01-07 Kenichi Handa <handa@m17n.org>
1181
50b06221 1182 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1183 remember the coding system used for decoding in
50b06221
KH
1184 coding_system (Bug#1039).
1185
b71f6f73 1186 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1187 breaking the loop. (Bug#870)
b71f6f73
KH
1188 (decode_coding_utf_16, decode_coding_emacs_mule)
1189 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1190 (decode_coding_charset): Likewise.
1191
56f668f7
MR
11922009-01-05 Martin Rudalics <rudalics@gmx.at>
1193
1194 * frame.c (x_set_frame_parameters): Make sure height (width) get
1195 applied when fullwidth (fullheight) is set. (Bug#1522)
1196
5da9424d
JB
11972009-01-04 Juanma Barranquero <lekktu@gmail.com>
1198
1199 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1200 (utc_base): Declare as ULONGLONG, not long double.
1201 (convert_time_raw): Delete.
1202 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1203 (initialize_utc_base): New function.
1204 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1205 (convert_from_time_t): Use initialize_utc_base; compute result with
1206 64-bit arithmetic.
1207 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1208
c4605e09
EZ
12092009-01-03 Eli Zaretskii <eliz@gnu.org>
1210
9acef61c 1211 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1212 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1213 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1214 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1215 [!subprocesses]: Define.
1216 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1217 (Flist_system_processes, Fsystem_process_attributes)
1218 [!subprocesses]: Call list_system_processes and
1219 system_process_attributes instead of returning Qnil.
1220
9acef61c
JB
1221 * dosfns.c (system_process_attributes, list_system_processes):
1222 New functions.
c4605e09
EZ
1223
1224 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1225
1226 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1227 Don't use the default (no-op) implementation.
1228
8b7d0a16
JR
12292009-01-03 Jason Rumney <jasonr@gnu.org>
1230
a6d46bc1
JR
1231 * keyboard.c (parse_modifiers_uncached): Wheel events are
1232 clicks (bug#687).
1233
8b7d0a16
JR
1234 * w32term.c (x_query_colors, x_query_color): New functions.
1235
1236 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1237 (svg_load_image): Cast returned pointers from dynamically loaded
1238 functions. Eliminate W32 specific code.
1239
bfe11752
DN
12402009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1241
89e2438a
DN
1242 * nsfns.m (x_set_foreground_color, x_set_background_color)
1243 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1244 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1245 x_ prefix instead of ns_. Update references.
1246 (syms_of_nsfns): Add a FIXME comment.
1247
1248 * nsterm.m (x_set_cursor_type): New prototype.
1249 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1250
bfe11752
DN
1251 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1252 for Solaris instead of incorrectly providing Qutime and Qcutime.
1253
031da700
EZ
12542009-01-02 Eli Zaretskii <eliz@gnu.org>
1255
1256 * w32.c (process_times): Compute sum of utime and stime.
1257 (system_process_attributes): Add Qtime to the alist.
1258
1259 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1260 and add them to the alist.
1261
1262 * process.c (top level) <Qtime, Qctime>: New variables.
1263 (syms_of_process): staticpro them.
1264 (Fsystem_process_attributes): Add their documentation to the doc
1265 string.
1266
1267 * process.h: Declare Qtime and Qctime.
1268
df23bf08
JR
12692009-01-02 Jason Rumney <jasonr@gnu.org>
1270
9acef61c 1271 * image.c (Qgobject): New symbol.
df23bf08
JR
1272 (syms_of_image): Initialize it.
1273 (init_svg_functions): Load some functions from gobject library.
1274
5bbdf7aa
DN
12752009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1276
1277 * frame.c (make_terminal_frame): Remove redundant code and useless
1278 block.
1279
63136da6
AS
12802009-01-01 Andreas Schwab <schwab@suse.de>
1281
1282 * process.c (conv_sockaddr_to_lisp): Add workaround for
1283 getsockname bug on BSD.
1284
9ef69046
CY
12852009-01-01 Chong Yidong <cyd@stupidchicken.com>
1286
d6fafbe0
CY
1287 * xfns.c (x_create_tip_frame): Set border width of the X window.
1288
51d861de 1289 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1290
f9c34147
JR
12912009-01-01 Jason Rumney <jasonr@gnu.org>
1292
9acef61c 1293 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1294 Don't block input, as per earlier xterm.c changes.
1295
f5497e45
AR
12962008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1297
1298 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1299 (ns_appkit_version_int): New function.
1300 (x-server-version): Use ns_appkit_version_int and follow 21+
1301 convention of returning 3 integers.
1302
c19cab20
KH
13032008-12-30 Kenichi Handa <handa@m17n.org>
1304
1305 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1306 (CHAR_SURROGATE_PAIR_P): New macro.
1307
1308 * font.h (struct font_driver): New member get_variation_glyphs.
1309
9acef61c 1310 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1311 (Ffont_variation_glyphs): New function.
1312 (syms_of_font): Defsubr it.
1313
1314 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1315 ftfont_variation_glyphs.
1316 (setup_otf_gstring): New function.
1317 (ftfont_drive_otf): Use it.
1318 (ftfont_shape_by_flt): Handle variation selector.
1319 (ftfont_variation_glyphs): New function.
1320
28cd591f
MR
13212008-12-30 Martin Rudalics <rudalics@gmx.at>
1322
1323 * frame.c (Vemacs_iconified): Remove.
1324
7f714baf
JR
13252008-12-30 Jason Rumney <jasonr@gnu.org>
1326
1327 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1328 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1329
9d2d22ab
CY
13302008-12-30 Chong Yidong <cyd@stupidchicken.com>
1331
1332 * indent.c (Fvertical_motion): Don't advance iterator if we have
1333 reseated to the desired position.
1334
1335 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1336 checking for pos match.
1337
545312c2
KH
13382008-12-30 Kenichi Handa <handa@m17n.org>
1339
1ede3eb6
KH
1340 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1341 just get the low 8-bit of the code.
1342
545312c2
KH
1343 * font.c (font_intern_prop): Validate str as multibyte.
1344
bd7bbf29
DN
13452008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1346
31e0750e
DN
1347 * dispextern.h (struct face): Move lface and hash from the middle
1348 of bitfields.
1349
bd7bbf29
DN
1350 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1351
b5672e7c
DN
13522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1353
1354 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1355 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1356 instead of intervals.h.
1357
d704470f
AS
13582008-12-26 Andreas Schwab <schwab@suse.de>
1359
1360 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1361 cons.
1362
54b33868
MR
13632008-12-26 Martin Rudalics <rudalics@gmx.at>
1364
1365 * textprop.c (Qminibuffer_prompt): New variable.
1366 (syms_of_textprop): Initialize it.
1367 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1368 in minibuffer-prompt face. (Bug#1662)
1369
40b615d6
JR
13702008-12-25 Jason Rumney <jasonr@gnu.org>
1371
1372 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1373
baae5c2d
JR
13742008-12-24 Jason Rumney <jasonr@gnu.org>
1375
1376 * ralloc.c (r_alloc_reset_variable): New function.
1377
1378 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1379 record of what points where. (Bug#716)
baae5c2d 1380
a9051c88
DN
13812008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1382
1383 * minibuf.c (read_minibuf): Follow the non-interactive case when
1384 running as a daemon, before detaching.
1385
8b146312
AS
13862008-12-22 Andreas Schwab <schwab@suse.de>
1387
1388 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1389 * gtkutil.c (free_widget_value): Use xfree instead of free.
1390
56f2de10
MR
13912008-12-22 Martin Rudalics <rudalics@gmx.at>
1392
1393 * frame.c (delete_frame): New function derived from
1394 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1395 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1396 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1397 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1398 * frame.h: Extern delete_frame.
1399 * window.c (window_loop):
1400 * terminal.c (delete_terminal):
1401 * xterm.c (x_connection_closed):
1402 * xfns.c (Fx_hide_tip):
9acef61c 1403 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1404
1fc200d6
JR
14052008-12-21 Jason Rumney <jasonr@gnu.org>
1406
1407 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1408 when character maps to .notdef character.
1409
5e252df2
SM
14102008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1411
1412 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1413
99b72cc4
JR
14142008-12-20 Jason Rumney <jasonr@gnu.org>
1415
1416 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1417 a graphical frame on Windows. (Bug#1325)
99b72cc4 1418
acc49a52
JD
14192008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1420
1421 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1422
6ea15123
CY
14232008-12-20 Chong Yidong <cyd@stupidchicken.com>
1424
1425 * minibuf.c (Fread_buffer): Doc fix.
1426
b2dab6c8
JR
14272008-12-20 Jason Rumney <jasonr@gnu.org>
1428
54ea0c87 1429 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1430 server name in UNC paths. (Bug#719)
54ea0c87 1431
b2dab6c8 1432 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1433 charbuf. (Bug#1035)
b2dab6c8 1434
6d1921be
DN
14352008-12-19 Daniel Engeler <engeler@gmail.com>
1436
1437 * sysdep.c (serial_configure): Fix typo.
1438
53934c98
DN
14392008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1440
1441 * sysdep.c: Include alloca.h.
f4f634e8
DN
1442 (system_process_attributes): Add implementation for Solaris.
1443
1444 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1445
06e111a6
DN
14462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1447
1448 Reorganize implementation of Flist_system_processes and
1449 Fsystem_process_attributes. No functional changes.
1450 * process.c: Don't #include pwd.h, grp.h and limits.h.
1451 (Flist_system_processes): Just call list_system_processes.
1452 (Fsystem_process_attributes): Just call system_process_attributes.
1453 (procfs_list_system_processes, time_from_jiffies)
1454 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1455 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1456
1457 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1458 (list_system_processes): Rename from
1459 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1460 Provide a do nothing implementation.
1461 (system_process_attributes): Rename from
1462 procfs_list_system_processes.
1463 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1464 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1465
1466 * w32.c (list_system_processes): Rename from
1467 w32_list_system_processes.
1468 (system_process_attributes): Rename from
1469 w32_system_process_attributes.
1470
1471 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1472
1473 * process.h (w32_list_system_processes)
1474 (w32_system_process_attributes): Remove.
1475 (list_system_processes, system_process_attributes): New
1476 prototypes.
1477
6a705b23
KH
14782008-12-19 Kenichi Handa <handa@m17n.org>
1479
1480 * xfont.c (xfont_decode_coding_xlfd): New function.
1481 (xfont_encode_coding_xlfd): New function.
1482 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1483 (xfont_list): Decode and encode XLFD by iso-8859-1.
1484 (xfont_match): Likewise.
1485 (xfont_list_family): Likewise.
1486 (xfont_open): Likewise.
1487
d66c0241 1488 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1489 names are utf-8.
1490
d66c0241 1491 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1492 names are utf-8.
1493
5a130941
JD
14942008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1495
1496 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1497 changed.
bfd20325
JD
1498 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1499 clicked on a detached tool bar button.
5a130941 1500
fd95644b
DN
15012008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1502
1503 * emacs.c (main): Print and error and exit when no data is read
1504 from the pipe.
1505
e6eee6ae
JR
15062008-12-17 Jason Rumney <jasonr@gnu.org>
1507
1508 * w32font.c (w32font_has_char): Always return -1.
1509
a35dd56b
KH
15102008-12-16 Kenichi Handa <handa@m17n.org>
1511
1512 * font.c (font_open_entity): Fix previous change.
1513
0e3635c2
DN
15142008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1515
1516 * process.c: Include <limits.h>.
1517
d4835507 15182008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1519
1520 * font.c (font_update_drivers): Fix mistake in reconstructing the
1521 driver list.
1522
15232008-12-16 Chong Yidong <cyd@stupidchicken.com>
1524
1525 * font.c (font_clear_cache): Fix format of font cache data.
1526
e2cbc401
CY
15272008-12-15 Chong Yidong <cyd@stupidchicken.com>
1528
1529 * xftfont.c (xftfont_open): Free Xft font pattern if
1530 XftFontOpenPattern fails.
1531
1532 * xterm.c (x_free_frame_resources): Remove extraneous call to
1533 free_frame_faces.
1534
b131d535
CY
15352008-12-13 Chong Yidong <cyd@stupidchicken.com>
1536
1537 * xterm.c (x_delete_display): Move xim_close_dpy call to
1538 x_delete_terminal.
1539 (x_delete_terminal): Call xim_close_dpy.
1540
e6df5336
JR
15412008-12-13 Jason Rumney <jasonr@gnu.org>
1542
1543 * w32font.c (intern_font_name): New function.
1544 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1545 (w32font_open_internal, Fx_select_font): Decode font name.
1546 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1547
1548 * w32font.h (intern_font_name): Declare new function.
1549
1550 * w32uniscribe.c (add_opentype_font_name_to_list):
1551 Use intern_font_name.
1552
20d68145
CY
15532008-12-13 Chong Yidong <cyd@stupidchicken.com>
1554
9f2554de
CY
1555 * frame.c (Fdelete_frame): Call free_font_driver_list.
1556
3d9bec9a
CY
1557 * font.c (free_font_driver_list): Implement missing function.
1558
20d68145
CY
1559 * w32term.c (w32_term_init): Don't initialize the image cache
1560 here; it will be done in init_frame_faces.
1561
1562 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1563 (struct x_display_info): Remove unused member null_pixel. New
1564 member xim_callback_data.
1565
1566 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1567 (xim_initialize): Save pointer to callback function data.
1568 (xim_close_dpy): Free callback function data. Call XCloseIM,
1569 reverting 2008-11-04 change by David Smith.
1570 (x_term_init): Don't initialize the image cache here; it will be
1571 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1572 (x_delete_display): Free x_dnd_atoms member.
1573
96f9306b
KH
15742008-12-13 Kenichi Handa <handa@m17n.org>
1575
6dec9044
JB
1576 * font.c (font_rescale_ratio): Moved from xfaces.c.
1577 Argument type changed. Handle a font-spec too.
96f9306b 1578 (font_score): Check Vface_font_rescale_alist.
6dec9044 1579 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1580
1581 * xfaces.c (font_rescale_ratio): Moved to font.c.
1582
8d5b4964
CY
15832008-12-13 Chong Yidong <cyd@stupidchicken.com>
1584
1585 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1586
e6df5336
JR
15872008-12-12 Jason Rumney <jasonr@gnu.org>
1588
1589 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1590 Vwindow_system_version to the real w32 major version.
1591
97c6058a
DN
15922008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1593
1594 * term.c (init_tty): Move setting the terminal name before the
1595 potential user: maybe_fatal.
1596
ec4e88d7
CY
15972008-12-11 Chong Yidong <cyd@stupidchicken.com>
1598
d4835507
JB
1599 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1600 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1601
b4233ec9
JR
16022008-12-11 Jason Rumney <jasonr@gnu.org>
1603
8ec71e23 1604 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1605 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1606
b4233ec9 1607 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1608 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1609
011a0143
JB
16102008-12-11 Juanma Barranquero <lekktu@gmail.com>
1611
1612 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1613
3c309f34
JB
16142008-12-11 Juanma Barranquero <lekktu@gmail.com>
1615
1616 * process.c (Fsystem_process_attributes, syms_of_process):
1617 Fix typo in name of Ssystem_process_attributes.
1618 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1619
fedc6ab5
JB
16202008-12-11 Juanma Barranquero <lekktu@gmail.com>
1621
1622 * syntax.c (Fmodify_syntax_entry): Doc fix.
1623
ba3de0e8
JB
16242008-12-10 Juanma Barranquero <lekktu@gmail.com>
1625
1626 * font.c (Ffont_spec): Move usage to end of docstring.
1627
174f1c74
JR
16282008-12-10 Jason Rumney <jasonr@gnu.org>
1629
1630 * w32font.c (Qcham): New symbol.
1631 (font_supported_scripts): Add cham, and comments for other new
1632 scripts in bitfield from OpenType spec.
9d32f818
JR
1633 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1634 contain characters beyond the bmp.
174f1c74 1635
7b649478
KH
16362008-12-10 Kenichi Handa <handa@m17n.org>
1637
1638 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1639 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1640 Qunicode_sip.
1641
2133e2d1
JB
16422008-12-10 Juanma Barranquero <lekktu@gmail.com>
1643
1644 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1645 (Fcoding_system_put): Use QCdefault_char.
1646 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1647
9af886ee
CY
16482008-12-09 Chong Yidong <cyd@stupidchicken.com>
1649
74d819eb
CY
1650 * xftfont.c (syms_of_xftfont): Fix typo.
1651
4ccfa1c0 1652 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1653
7c19d3ae
DN
16542008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1655
1656 * emacs.c (main): Close daemon_pipe on exec.
1657
567826bb
CY
16582008-12-08 Chong Yidong <cyd@stupidchicken.com>
1659
1660 * termchar.h (struct tty): New members termcap_term_buffer and
1661 termcap_strings_buffer.
1662
1663 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1664 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1665 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1666 All callers changed.
1667 (init_tty): Store termcap data and string buffers in new struct
1668 tty members termcap_term_buffer and termcap_strings_buffer.
1669 (delete_tty): Free them.
4ccfa1c0 1670 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1671
aa96c42b
SZ
16722008-12-07 Seiji Zenitani <zenitani@mac.com>
1673
1674 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1675 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1676
b7e1d896
CY
16772008-12-06 Chong Yidong <cyd@stupidchicken.com>
1678
1679 * coding.c (make_conversion_work_buffer): Disable buffer
1680 modification hooks in the work buffer.
1681
b5ec91a5
EZ
16822008-12-05 Eli Zaretskii <eliz@gnu.org>
1683
1684 * process.c (procfs_system_process_attributes): If `nread' has a
1685 negative value, assign zero to it.
1686
a5d2a52b
CY
16872008-12-05 Chong Yidong <cyd@stupidchicken.com>
1688
68c5540b 1689 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1690
7bf1bb21
KH
16912008-12-05 Kenichi Handa <handa@m17n.org>
1692
1693 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1694 second character is a combining character.
1695
2fdc7d00
EZ
16962008-12-05 Eli Zaretskii <eliz@gnu.org>
1697
1698 * process.c (procfs_system_process_attributes): Don't use cmd,
1699 cmdsize, and q without initializing them first.
1700
bf6bfba8
JR
17012008-12-04 Jason Rumney <jasonr@gnu.org>
1702
1703 * w32font.c (w32font_draw): Initialize orig_clip before getting
1704 it, and delete it when finished.
1705
a3b1a468
DN
17062008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1707
1708 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1709 case when running as a daemon before detaching.
1710
8b8be8eb
JB
17112008-12-03 Juanma Barranquero <lekktu@gmail.com>
1712
805f2638 1713 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1714
b1bde622
KH
17152008-12-03 Kenichi Handa <handa@m17n.org>
1716
e500c47d
KH
1717 * font.c (font_at): Set `multibyte' at first.
1718
ca516334
KH
1719 * coding.c (decode_coding_charset): Check type of an element of
1720 vector VALIDS.
7bf1bb21 1721 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1722
4ccfa1c0 1723 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1724 (font_for_char): Likewise.
1725
1e5ecd37
CY
17262008-12-03 Chong Yidong <cyd@stupidchicken.com>
1727
d5b01609 1728 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
1729 (font_update_lface): Handle fonts with corrupted size specs,
1730 i.e. non-int and non-float.
d5b01609 1731
11e3a6e4 1732 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 1733 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 1734 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 1735
ab06788b
CY
1736 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
1737
1e5ecd37 1738 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 1739 underline_minimum_offset for underline position.
1e5ecd37 1740
63c125ab
DN
17412008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
1742
1743 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
1744
1745 * character.c (c_string_width): Specify the type for LEN.
1746
3a8406e1
KH
17472008-12-03 Kenichi Handa <handa@m17n.org>
1748
4ccfa1c0 1749 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 1750 (decode_coding_utf_8): Likewise.
4ccfa1c0 1751 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 1752 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 1753
651df7d9
CY
17542008-12-02 Chong Yidong <cyd@stupidchicken.com>
1755
1756 * keyboard.c (make_lispy_position): Only use PT if the selected
1757 window is current.
1758
1f625c6c
AS
17592008-12-02 Andreas Schwab <schwab@suse.de>
1760
f7741ce9
AS
1761 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
1762
1f625c6c
AS
1763 * doprnt.c (doprnt1): Fix size of charbuf.
1764
92bc2678
CY
17652008-12-02 Chong Yidong <cyd@stupidchicken.com>
1766
1767 * keyboard.c (timer_check): Revert last change.
1768
93b9e8cc
JB
17692008-12-02 Juanma Barranquero <lekktu@gmail.com>
1770
1771 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
1772
fd7a37d5
JB
17732008-12-01 Juanma Barranquero <lekktu@gmail.com>
1774
1775 * makefile.w32-in: Update dependencies.
1776 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
1777
c115043b
AS
17782008-12-01 Andreas Schwab <schwab@suse.de>
1779
1780 * font.c (register_font_driver): Use xmalloc.
1781 (font_put_frame_data): Likewise.
1782
f5668d2a
CY
17832008-12-01 Chong Yidong <cyd@stupidchicken.com>
1784
860d96be
CY
1785 * xfaces.c (realize_x_face): Make abort condition clearer.
1786
f5668d2a
CY
1787 * gtkutil.c (update_frame_tool_bar): Initialize variable.
1788
379c17e7
CY
17892008-11-30 Chong Yidong <cyd@stupidchicken.com>
1790
1791 * keyboard.c (timer_check): After a timer runs, ensure that the
1792 selected window's buffer is current.
1793
35f36d65
JB
17942008-11-30 Juanma Barranquero <lekktu@gmail.com>
1795
f952c61c
JB
1796 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
1797 It was accidentally restored by the Unicode merge.
1798
35f36d65
JB
1799 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
1800
b23077df
JB
18012008-11-29 Juanma Barranquero <lekktu@gmail.com>
1802
1803 * w32proc.c: Include "coding.h".
1804 (Fw32_short_file_name): Encode filename passed to Windows API.
1805 (Fw32_long_file_name): Encode filename passed to Windows API and
1806 decode back the result. (Bug#1433)
1807
b8ebe9dd
KH
18082008-11-29 Kenichi Handa <handa@m17n.org>
1809
8cc53f96
KH
1810 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
1811 not before accessing it.
1812
b8ebe9dd
KH
1813 * charset.c (Fdefine_charset_internal): After calculating
1814 min_char, max_char, and fastmap, copy the charset structure again.
1815 (encode_char): Fix the previous change.
1816
59bc82c0
SZ
18172008-11-28 Seiji Zenitani <zenitani@mac.com>
1818
1819 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
1820
1821 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
1822
1823 * nsterm.m (x_set_frame_alpha): New function.
1824
32247e3d
EZ
18252008-11-27 Eli Zaretskii <eliz@gnu.org>
1826
1827 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
1828
b003e5ff
JB
18292008-11-27 Juanma Barranquero <lekktu@gmail.com>
1830
1831 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
1832 pointer to check_face_name.
1833
708550f5
KH
18342008-11-27 Kenichi Handa <handa@m17n.org>
1835
1836 * category.h (SET_CATEGORY_SET): Call set_category_set.
1837 (set_category_set): Extern it.
1838
1839 * category.c (hash_get_category_set): New function.
1840 (Fmodify_category_entry): Adjusted for the change of
1841 char_table_ref_and_range. Call hash_get_category_set to get a
1842 category set to store in the table.
1843
1844 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
1845 Funify_charset.
1846
2ae37cf0 1847 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
1848 (DECODE_CHAR): Check if the decoder vector is ready.
1849 (ENCODE_CHAR): Check if the encoder char-table is ready.
1850 (maybe_unify_char): Extern it.
1851
1852 * charset.c (Vchar_unified_charset_table): Delete it.
1853 (inhibit_load_charset_map): New variable.
1854 (temp_charset_work): New variable.
1855 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
1856 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
1857 New macros.
1858 (load_charset_map): Meaning of control_flag changed. If
1859 inhibit_load_charset_map is nonzero, setup a table in
1860 temp_charset_work.
1861 (load_charset): New argument control_flag.
1862 (map_charset_for_dump): New function.
1863 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
1864 map_charset_for_dump.
1865 (Fdefine_charset_internal): If the charset method is MAP, load
1866 mapping tables by calling load_charset.
1867 (Funify_charset): Don't load a mapping table but directly set
1868 Vchar_unify_table.
1869 (maybe_unify_char): New function.
1870 (decode_char): Don't handle the deleted method MAP_DEFERRED.
1871 Handle the case of inhibit_load_charset_map being nonzero.
1872 (encode_char): Don't handle the deleted method MAP_DEFERRED.
1873 Handle the case of inhibit_load_charset_map being nonzero.
1874 (Fclear_charset_maps): Just free temp_charset_work.
1875 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
1876 variable.
1877
1878 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
1879 change of char_table_ref_and_range.
1880 (char_table_ref_and_range): Change the meaning of argument FROM
1881 and TO. Now the caller must provide initial values for *FROM
1882 and *TO.
1883
1884 * fontset.c (fontset_add): Adjusted for the change of
1885 char_table_ref_and_range.
1886 (fontset_get_font_group): Likewise.
1887 (Ffontset_info): Likewise.
1888
1889 * keymap.c (describe_vector): Adjusted for the change of
1890 char_table_ref_and_range. For char-table, put boundary between
1891 non-ASCII and 8-bit characters.
1892
1893 * print.c (print_object): For bool-vector, delete unnecessary
1894 check of ASCII_BYTE_P.
1895
9196133b
JR
18962008-11-26 Jason Rumney <jasonr@gnu.org>
1897
1898 * w32font.c (w32font_open_internal): Don't include external
9acef61c 1899 leading in font height. (Bug#879)
9196133b 1900
9f688acf
GM
19012008-11-26 Glenn Morris <rgm@gnu.org>
1902
1903 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
1904 redefinition with ifdef. (Bug#1383)
1905
90d19aff
AR
19062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1907
1908 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
1909
4ccfa1c0 19102008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
1911
1912 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
1913 New EmacsView methods.
1914 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
1915 Fixes bug #1048,1357,1414.
1916
19172008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1918
1919 Fix bug #1362.
1920 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
1921 is not an indexed color.
1922 * nsterm.m (free_indexed_color): Add argument checking.
1923 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
1924
e7d5ecb3
CY
19252008-11-24 Chong Yidong <cyd@stupidchicken.com>
1926
1927 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
1928 Document confirm-after-completion value for
1929 minibuffer-completion-confirm.
1930
c285743c
JR
19312008-11-24 Jason Rumney <jasonr@gnu.org>
1932
1933 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
1934 warning.
1935
b0857706
JR
19362008-11-23 Jason Rumney <jasonr@gnu.org>
1937
1938 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
1939 restored before returning.
1940
1941 * w32font.c (check_face_name): New function.
1942 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 1943 fonts. (Bug#642)
b0857706 1944
ee50ff07
MR
19452008-11-22 Martin Rudalics <rudalics@gmx.at>
1946
1947 * buffer.c (Fswitch_to_buffer): Reword and mention new option
1948 confirm-nonexistent-file-or-buffer in doc-string.
1949
b8ff72fa
SM
19502008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
1951
1952 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
1953 Fix copy/paste typo. Add checks.
1954
cee53ed4
KH
19552008-11-21 Kenichi Handa <handa@m17n.org>
1956
1957 * coding.c (detect_coding_iso_2022): Reject invalid composition
1958 sequence.
1959 (DECODE_COMPOSITION_START): If the current source is the last
1960 block, and the current composition doesn't end, regard this
1961 sequence as invalid.
1962 (decode_coding_iso_2022): Handle invalid composition sequence.
1963
f6ef1e65
MR
19642008-11-20 Martin Rudalics <rudalics@gmx.at>
1965
1966 * window.c (coordinates_in_window): Don't return
1967 ON_VERTICAL_BORDER for the rightmost position of a mode/header
1968 line when the window is not the rightmost one. (Bug#1372)
1969
e08b1705
MR
19702008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
1971
1972 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
1973
ad98e89f
EZ
19742008-11-15 Eli Zaretskii <eliz@gnu.org>
1975
1976 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
1977 and bright_bg if noninteractive is non-zero.
1978
fb098a4b
CY
19792008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1980
1981 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
1982 x_draw_glyph_string_background.
1983
1984 * w32term.c (x_draw_glyph_string): Likewise.
1985
ce952b6e
CY
19862008-11-15 Chong Yidong <cyd@stupidchicken.com>
1987
1988 * xterm.c (x_draw_glyph_string): Stop drawing the background of
1989 the next glyph string once past the overhang width.
1990
1991 * nsterm.m (ns_draw_glyph_string): Likewise.
1992
1993 * w32term.c (x_draw_glyph_string): Likewise.
1994
26ea7079
CY
19952008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
1996
1997 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
1998 double file close.
1999
1c33c906
MR
20002008-11-14 Martin Rudalics <rudalics@gmx.at>
2001
2002 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2003 dedicated status of window before attempting to display another
2004 buffer in it.
2005
8fc29035
JB
20062008-11-14 Juanma Barranquero <lekktu@gmail.com>
2007
2008 * msdos.c (Fmsdos_long_file_names):
2009 (syms_of_msdos) <dos-unsupported-char-glyph>:
2010 * dosfns.c (Fint86): Fix typos in docstrings.
2011
55fb4286
EZ
20122008-11-14 Eli Zaretskii <eliz@gnu.org>
2013
2014 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2015
3fda0315
KY
20162008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2017
2018 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2019
7e849c17
CY
20202008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2021
2022 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2023
2024 * frame.h: Negative alpha means "don't touch".
2025
2026 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2027
2028 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2029
b9fd67bd
DN
20302008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2031
2032 * hftctl.c:
2033 * chpdef.h:
2034 * acldef.h: Remove files used only for systems no longer supported.
2035
2036 * Makefile.in: Fix .o alphabetical ordering.
2037 (hftctl.o): Remove dependency, file removed.
2038 (keymap.o, print.o): Depend on charset.h.
2039
d5998e03
KH
20402008-11-10 Kenichi Handa <handa@m17n.org>
2041
2ae37cf0 2042 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2043
be70e183
CY
20442008-11-08 Chong Yidong <cyd@stupidchicken.com>
2045
2046 * dired.c (file_name_completion): If completion_ignore_case is
2047 enabled, ignore case when checking completion-regexp-list.
2048
7cf94eac
EZ
20492008-11-08 Eli Zaretskii <eliz@gnu.org>
2050
2051 * vm-limit.c (get_lim_data): Fix last change.
2052
ee107a89
KH
20532008-11-08 Kenichi Handa <handa@m17n.org>
2054
2055 * character.c (Fget_byte): New function.
2056 (syms_of_character): Defsubr Fget_byte.
2057
5fd15622
CY
20582008-11-07 Chong Yidong <cyd@stupidchicken.com>
2059
2060 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2061 cursor position is valid after scrolling.
2062
13d62fad
JB
20632008-11-06 Juanma Barranquero <lekktu@gmail.com>
2064
2065 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2066
a1dd2936
GM
20672008-11-06 Glenn Morris <rgm@gnu.org>
2068
2069 * xterm.c (handle_one_xevent): Don't let popup menus cause
2070 mouse-autoselect-window related window switching. (Bug#1261)
2071
860cd236
CY
20722008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2073
2074 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2075
653a3150
AS
20762008-11-04 Andreas Schwab <schwab@suse.de>
2077
2078 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2079
870f5cac
CY
20802008-11-03 Chong Yidong <cyd@stupidchicken.com>
2081
2082 * xfns.c (Fx_wm_set_size_hint): New function.
2083
1e02f3cb
MR
20842008-11-03 Martin Rudalics <rudalics@gmx.at>
2085
2086 * textprop.c (Fprevious_single_char_property_change): Return 0
2087 when there's no change in a string. (Bug#1301)
2088
e630dfc6
MR
20892008-11-02 Martin Rudalics <rudalics@gmx.at>
2090
2091 * frame.c (do_switch_frame): New argument NORECORD passed to
2092 Fselect_window.
2093 (Fselect_frame): New argument NORECORD passed to
2094 do_switch_frame.
2095 (Fset_frame_selected_window): New argument NORECORD passed to
2096 Fselect_frame.
2097 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2098 in call of do_switch_frame.
2099 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2100 Handle NORECORD argument in call of Fselect_frame.
2101 * lisp.h (do_switch_frame, Fselect_frame)
2102 (Fset_frame_selected_window): Adjust declarations.
2103 * window.c (select_frame_norecord): New function.
2104 (run_window_configuration_change_hook): Use it and call
2105 Fselect_frame with NORECORD set.
2106 (Fselect_window): Pass NORECORD to Fselect_frame.
2107 (Fset_window_configuration): Handle NORECORD argument in call of
2108 do_switch_frame.
2109 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2110 Fset_frame_selected_window.
2111 * keyboard.c (command_loop_1): Handle NORECORD in call of
2112 Fselect_frame (currently ifdefd).
2113
9020b223
GM
21142008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2115
2116 * emacs.c (USAGE2): Untabify.
2117
793ffee8
SM
21182008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2119
2120 * composite.c (fill_gstring_header): Fix copy/paste typo.
2121
ab6d1131
MR
21222008-10-31 Martin Rudalics <rudalics@gmx.at>
2123
2124 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2125 (Fother_window): Rename argument and rewrite doc-string.
2126 (select_window_norecord): Fix return value. (Bug#1276)
2127
601a9cf1
JB
21282008-10-30 Juanma Barranquero <lekktu@gmail.com>
2129
2130 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2131 new frames overriding foreground for tooltips. Based on similar patch
2132 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2133
813b0652
CY
21342008-10-29 Chong Yidong <cyd@stupidchicken.com>
2135
2136 * emacs.c (Fdaemon_initialized): Initialize nfd.
2137
4414f58f
MR
21382008-10-29 Martin Rudalics <rudalics@gmx.at>
2139
2140 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2141 (Fwindow_text_height): Clarify doc-strings.
2142 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2143 doc-string of window-scroll-functions.
2144
ecdcaa09
RS
21452008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2146
2147 * category.c (syms_of_category): Fix typo in docstring.
2148
23fe745a
JB
21492008-10-28 Juanma Barranquero <lekktu@gmail.com>
2150
2151 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2152 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2153 Fix typos in docstrings.
2154
ff808935
DN
21552008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2156
2157 * emacs.c (daemon_pipe): Make non-static.
2158 (IS_DAEMON): Move definition ...
2159 * lisp.h (IS_DAEMON): ... here.
2160 (daemon_pipe): Declare.
2161 (is_daemon): Remove.
2162 * dispnew.c (init_display): Use IS_DAEMON.
2163
fc012771
SM
21642008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2165
2166 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2167 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2168
2169 * emacs.c (is_daemon): Remove.
2170 (main): Don't set is_daemon.
2171 (IS_DAEMON): New macro.
2172 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2173 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2174 parent exits.
2175 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2176
d8bdbe6f
CY
21772008-10-27 Chong Yidong <cyd@stupidchicken.com>
2178
d1a072bf
CY
2179 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2180 over-sized glyph, draw it with the default glyph width.
2181
e2e325aa
CY
2182 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2183 glyph, draw it with the default glyph width.
2184
2185 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2186 glyph, draw it with the default glyph width.
2187
d8bdbe6f
CY
2188 * xdisp.c (try_scrolling): When computing the distance from the
2189 scroll margin to PT, try moving some distance past the window
2190 bottom before giving up.
2191
7bfac547
MR
21922008-10-27 Martin Rudalics <rudalics@gmx.at>
2193
2194 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2195 (Fset_window_buffer): Explain in doc-string that a window can be
2196 "strongly" dedicated to its buffer.
2197
4ff029f6
DN
21982008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2199
2200 * emacs.c (daemon_name): New variable.
2201 (main): Deal with --daemon=SERVER_NAME.
2202 (Fdaemonp): Return a name if one was passed to --daemon.
2203
5790ef40
DN
22042008-10-26 Romain Francoise <romain@orebokech.com>
2205
f9bd0df9 2206 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2207 (main): Create a pipe before forking, make the parent exit only after
2208 the child has closed its end of the pipe. Move closing the
2209 descriptors ...
2210 (Fdaemon_initialized): ... here. New function.
2211
f5385255
SM
22122008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2213
4d632321
SM
2214 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2215 the previous unoptimized table.
2216
f5385255
SM
2217 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2218 the distinction between non-nil and non-t value of `dedicated'.
2219
6c56a0f3
CY
22202008-10-25 Chong Yidong <cyd@stupidchicken.com>
2221
2222 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2223 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2224
fec89261
MR
22252008-10-25 Martin Rudalics <rudalics@gmx.at>
2226
2227 * window.c (Fget_buffer_window, Fdelete_windows_on)
2228 (Freplace_buffer_in_windows): Make buffer argument optional and
2229 rename to buffer_or_name.
2230
34fcddd0
CY
22312008-10-24 Chong Yidong <cyd@stupidchicken.com>
2232
f5385255
SM
2233 * xdisp.c (handle_single_display_spec, handle_display_prop):
2234 Undo 2005-05-16 change.
34fcddd0
CY
2235 (handle_stop): Pop iterator if it's loaded with an empty string.
2236 (get_overlay_strings_1): Don't save iterator if it's loaded with
2237 an empty string (bug#1201).
2238
064766f2
KH
22392008-10-24 Kenichi Handa <handa@m17n.org>
2240
2241 * ftfont.c (ftfont_otf_features): Fix previous change.
2242 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2243 calling ftfont_otf_features.
2244
f9bd0df9 22452008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2246
2247 * font.c (font_match_p): Fix for the case that a vector of
2248 characters is in script-representative-chars.
2249
1dae9197
MA
22502008-10-24 Michael Albinus <michael.albinus@gmx.de>
2251
2252 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2253 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2254 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2255 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2256 macro. (Bug#1186).
2257
f9bd0df9 22582008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2259
2260 * s/sol2-10.h: New file.
2261
878a4584
JB
22622008-10-23 Juanma Barranquero <lekktu@gmail.com>
2263
2264 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2265 poor beast has survived 9+ years and the jump from xterm.c!).
2266
cd265ca6
MR
22672008-10-23 Martin Rudalics <rudalics@gmx.at>
2268
2269 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2270 Reword doc-string.
f5385255 2271 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2272
472a4dc9
JB
22732008-10-23 Juanma Barranquero <lekktu@gmail.com>
2274
2275 * character.c (syms_of_character) <script-representative-chars>:
2276 <unicode-category-table>: Doc fixes.
2277
159bd5a2
NF
22782008-10-23 Noah Friedman <friedman@splode.com>
2279
2280 * coding.c (make_conversion_work_buffer): Check that
2281 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2282 Fget_buffer_create.
2283
49f9c344
KH
22842008-10-23 Kenichi Handa <handa@m17n.org>
2285
2286 * font.c (font_add_log): Check the values of extra properties.
2287
12bb3111
MR
22882008-10-22 Martin Rudalics <rudalics@gmx.at>
2289
2290 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2291 Reword doc-string.
2292 (Fset_window_parameter): Use NILP.
2293 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2294 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2295
bbeb4e99
JB
22962008-10-22 Juanma Barranquero <lekktu@gmail.com>
2297
2298 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2299
23002008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2301
2302 * nsfns.m (ns_appkit_version): New function.
2303 (x-server-version): Use it.
2304 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2305 (x-server-vendor): Don't check_ns().
2306
2307 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2308
a9b555d3
JB
23092008-10-22 Juanma Barranquero <lekktu@gmail.com>
2310
2311 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2312 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2313
4626499f
KH
23142008-10-22 Kenichi Handa <handa@m17n.org>
2315
e3681952
KH
2316 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2317 scripts.
2318
4626499f
KH
2319 * category.c (word_boundary_p): Check scripts instead of charset.
2320 Handle nil value in word-separating-categories and
2321 word-combining-categories.
2322 (syms_of_category): Fix docstrings of word-separating-categories
2323 and word-combining-categories.
2324
1560f91a
EZ
23252008-10-21 Eli Zaretskii <eliz@gnu.org>
2326
2327 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2328 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2329
f4668441
MR
23302008-10-21 Martin Rudalics <rudalics@gmx.at>
2331
2332 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2333 Rename arg "buffer" to "buffer_or_name".
2334 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2335 it optional.
2336 (no_switch_window): Remove since the return value is not used.
a9b555d3 2337 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2338 Consider window as dedicated when Fwindow_dedicated_p returns a
2339 non-nil value.
2340 * lisp.h: Remove prototype for no_switch_window.
2341
fd75ddb2
JD
23422008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2343
2344 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2345 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2346
07295713
KH
23472008-10-21 Kenichi Handa <handa@m17n.org>
2348
2349 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2350 check Vlatin_extra_code_table.
2351
712adc82
EZ
23522008-10-20 Eli Zaretskii <eliz@gnu.org>
2353
2354 * fileio.c (Fset_file_modes): Doc fix.
2355
f549eb0b
MA
23562008-10-19 Michael Albinus <michael.albinus@gmx.de>
2357
2358 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2359 in arrays.
2360
aac0c6e3
MR
23612008-10-19 Martin Rudalics <rudalics@gmx.at>
2362
2363 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2364 Mention kill-buffer in doc-string.
2365 (Fset_window_buffer): Reinsert tem check removed in last commit.
2366 (Fenlarge_window, Fshrink_window): Have argument names and
2367 doc-string follow Elisp manual more closely.
2368
23692008-10-18 Eli Zaretskii <eliz@gnu.org>
2370
2371 * fileio.c (Fset_file_modes): Doc fix.
2372
23732008-10-18 Martin Rudalics <rudalics@gmx.at>
2374
2375 * window.c (Fwindow_width, Fset_window_start)
2376 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2377 (Fdelete_windows_on, Freplace_buffer_in_windows):
2378 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2379 (Fwindow_dedicated_p): Make window argument optional.
2380 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2381 (Fset_window_buffer): Respect any non-nil dedicated value for
2382 window. Rename "buffer" argument to "buffer_or_name".
2383
23842008-10-18 Ulrich Mueller <ulm@gentoo.org>
2385
2386 * m/sh3.h: New file, machine description for SuperH.
2387
23882008-10-17 Martin Rudalics <rudalics@gmx.at>
2389
2390 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2391
23922008-10-17 Kenichi Handa <handa@m17n.org>
2393
2394 * ftfont.c (ftfont_otf_features): Fix indexing
2395 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2396
23972008-10-16 Magnus Henoch <mange@freemail.hu>
2398
2399 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2400 (Fdbus_call_method_asynchronously): Ditto.
2401 This change makes C-h f display the argument list.
2402
24032008-10-16 Chong Yidong <cyd@stupidchicken.com>
2404
2405 * fileio.c (Fexpand_file_name): Doc fix.
2406
2407 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2408 of :foreground and :background equivalent to unspecified (20.x
2409 compatibility).
2410
24112008-10-15 Eli Zaretskii <eliz@gnu.org>
2412
2413 * buffer.c (syms_of_buffer): Doc fix.
2414
24152008-10-14 Kenichi Handa <handa@m17n.org>
2416
2417 * font.c (font_clear_prop): When clearing font width, clear the
2418 average width field too.
2419
24202008-10-12 Andreas Schwab <schwab@suse.de>
2421
2422 * ftfont.c (ftfont_shape_by_flt): Make static.
2423 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2424
2425 * font.c: Don't include <m17n-flt.h>.
2426
24272008-10-10 Eli Zaretskii <eliz@gnu.org>
2428
2429 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2430
24312008-10-09 Eli Zaretskii <eliz@gnu.org>
2432
2433 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2434 away code.
2435
24362008-10-09 Chong Yidong <cyd@stupidchicken.com>
2437
2438 * dispnew.c (update_text_area): Avoid looping due to large glyph
2439 overhangs (bug#1070).
2440
24412008-10-09 Kenichi Handa <handa@m17n.org>
2442
2443 * fontset.c (face_for_char): If face->fontset is negative, just
2444 return ascii_face.
2445
f5385255
SM
2446 * font.c (font_delete_unmatched): Fix previous change.
2447 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2448
24492008-10-09 Martin Rudalics <rudalics@gmx.at>
2450
2451 * frame.c (Fraise_frame): On text-only terminals select frame in
2452 order to make it visible. (Bug#1061)
2453
24542008-10-08 Chong Yidong <cyd@stupidchicken.com>
2455
2456 * fontset.c (fontset_find_font): Check frame validity.
2457
24582008-10-07 Chong Yidong <cyd@stupidchicken.com>
2459
a9b555d3 2460 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2461 (xg_display_close): Allow Emacs to close all displays (bug#985).
2462
24632008-10-06 Andreas Schwab <schwab@suse.de>
2464
f5385255 2465 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2466
24672008-10-06 Chong Yidong <cyd@stupidchicken.com>
2468
f5385255 2469 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2470
a9b555d3 2471 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2472
2473 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2474 during initialization.
2475
24762008-10-04 Eli Zaretskii <eliz@gnu.org>
2477
2478 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2479 whole thing on MSDOS frames as well as on a TTY.
2480
2481 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2482 well as for TTY.
2483 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2484 well as on a TTY.
2485
2486 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2487 as well as for TTY.
2488
2489 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2490
2491 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2492 MSDOS frames as well.
2493
24942008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2495
2496 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2497 correct arguments.
2498 * menu.c (find_and_return_menu_selection) Add cast.
2499
25002008-10-03 Glenn Morris <rgm@gnu.org>
2501
2502 * emacs.c (USAGE1): Add --daemon.
2503
25042008-10-02 Eli Zaretskii <eliz@gnu.org>
2505
2506 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2507 100, so it's in percents as advertised.
2508
25092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2510
2511 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2512 (ns_output.current_cursor, ns_output.desired_cursor)
2513 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2514 (FRAME_NEW_CURSOR_COLOR): Remove.
2515
2516 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2517 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2518 enumeration (HOLLOW_BOX_CURSOR, etc.).
2519
2520 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2521 (draw_window_cursor): Simplify code.
f5385255
SM
2522 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2523 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2524 updates manually.
a9b555d3
JB
2525 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2526 Use core Emacs cursor types.
aac0c6e3 2527
b8ff72fa 2528 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2529
25302008-10-02 Martin Rudalics <rudalics@gmx.at>
2531
2532 * process.c (Faccept_process_output): Fix doc-string.
2533
25342008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2535
2536 * gmalloc.c (__sbrk): Also define for uClibc.
2537
2538 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2539 for uClibc.
2540
25412008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2542
2543 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2544 styles.
2545 (nsfont_open): Reenable the cache.
2546
25472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2548
2549 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2550 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2551
25522008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2553
2554 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2555 a suspended terminal.
2556
25572008-09-30 Michael Albinus <michael.albinus@gmx.de>
2558
2559 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2560
25612008-09-30 Eli Zaretskii <eliz@gnu.org>
2562
2563 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2564
25652008-09-30 Chong Yidong <cyd@stupidchicken.com>
2566
2567 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2568 in a continued line coincides with a line beginning.
2569
25702008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2571
2572 * nsfont.m (nsfont_trait_distance): Fix bug.
2573 (nsfont_list): Return a list rather than a vector (syncs with Handa
2574 changes of 2008-05-14).
2575 (nsfont_open): Improve logging.
2576
25772008-09-29 Andreas Schwab <schwab@suse.de>
2578
2579 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2580
25812008-09-28 Martin Rudalics <rudalics@gmx.at>
2582
2583 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2584 name as char-resolve-modifiers.
2585 Reported by: Markus Triska <markus.triska@gmx.at>
2586
25872008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2588
2589 * dispnew.c (init_display): Return earlier when running as a daemon.
2590
25912008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2592
2593 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2594
25952008-09-27 Eli Zaretskii <eliz@gnu.org>
2596
2597 * composite.c (Fcomposition_get_gstring)
2598 (Fcompose_region_internal, Fcompose_string_internal)
2599 (Ffind_composition_internal): Doc fix.
2600 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2601 (syms_of_composite) <auto-composition-function>: Doc fix.
2602 (syms_of_composite) <composition-function-table>: Doc fix.
2603
26042008-09-25 Chong Yidong <cyd@stupidchicken.com>
2605
2606 * search.c (wordify): New argument for lax word-ends.
2607 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2608
26092008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2610
2611 * lisp.h (is_daemon): Declare.
2612 * dispnew.c (init_display): Do not try to initialize the terminal
2613 when running as a daemon.
2614
26152008-09-22 Chong Yidong <cyd@stupidchicken.com>
2616
2617 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2618 x_display_pixel_height.
2619
26202008-09-22 Martin Rudalics <rudalics@gmx.at>
2621
2622 * undo.c (record_point): Don't call Fundo_boundary for first
2623 change. (Bug#731)
2624
26252008-09-22 Juanma Barranquero <lekktu@gmail.com>
2626
2627 * emacs.c (Fdaemonp): Doc fix.
2628
26292008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2630
2631 * emacs.c (main): Place #ifdef in the proper place.
2632
26332008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2634
2635 * emacs.c (standard_args): Add --daemon.
2636 (main): Disconnect from the terminal when --daemon is passed.
2637 (is_daemon): New variable.
2638 (Fdaemonp): New function.
2639 (syms_of_emacs): Defsubr it.
2640
26412008-09-20 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * xdisp.c (get_next_display_element): Handle string display
2644 correctly when checking for the end of a box run.
2645
26462008-09-20 Glenn Morris <rgm@gnu.org>
2647
2648 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2649 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2650 (Frename_file): Avoid copying to trash if a rename involves
2651 a delete. (Bug#964).
2652
26532008-09-20 Eli Zaretskii <eliz@gnu.org>
2654
2655 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2656 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2657 frames as well as termcap frames.
2658 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2659 get_named_tty.
2660
26612008-09-19 Eli Zaretskii <eliz@gnu.org>
2662
2663 * process.c (procfs_system_process_attributes): Fix cmdline in
2664 case /proc/PID/cmdline is empty.
2665
2666 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2667 x_display_pixel_height.
2668
26692008-09-19 Juanma Barranquero <lekktu@gmail.com>
2670
2671 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2672
2673 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2674 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2675
26762008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2677
2678 * dispextern.h (struct it): Move line_wrap away from the middle of
2679 bitfields. Move voffset in struct iterator_stack_entry after the
2680 bitfields. Move tab_width near after another short.
2681
26822008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2683
2684 * frame.h (struct frame): Move alpha from the middle of bitfields.
2685
2686 * window.h (struct window): Move frozen_window_start_p after the
2687 rest of the bitfields to reduce padding.
2688
26892008-09-18 Chong Yidong <cyd@stupidchicken.com>
2690
2691 * xterm.h (x_display_info): Remove `height' and `width' members.
2692
2693 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2694
2695 * w32term.h (w32_display_info): Remove `height', `width',
2696 `height_in', and `width_in' members.
2697
b8ff72fa
SM
2698 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2699 New functions.
aac0c6e3
MR
2700 (x_calc_absolute_position): Use them.
2701 (x_term_init): Omit removed `height' and `width' members.
2702
b8ff72fa
SM
2703 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2704 New functions.
aac0c6e3
MR
2705 (w32_read_socket, x_calc_absolute_position): Use them.
2706 (w32_initialize_display_info, w32_term_init): Omit removed members
2707 of w32_display_info.
2708
b8ff72fa
SM
2709 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2710 New functions.
2711 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2712
b8ff72fa
SM
2713 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2714 New functions.
aac0c6e3
MR
2715 (x_calc_absolute_position): Use them.
2716 (x_term_init): Omit removed `height' and `width' members.
2717
2718 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2719 (compute_tip_xy):
2720 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2721 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2722 x_display_pixel_width.
2723
27242008-09-18 Kenichi Handa <handa@m17n.org>
2725
2726 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2727 (composition_compute_stop_pos): Fix handling of static composition.
2728 (Fcomposition_get_gstring): Check FROM and TO at first.
2729
27302008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2731
46e722a9 2732 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
2733 mixup (YAILOM).
2734
27352008-09-17 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * indent.c (Fvertical_motion): Use position reported by iterator
2738 instead of PT for determining screen motion (bug#943).
2739
27402008-09-17 Romain Francoise <romain@orebokech.com>
2741
2742 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
2743
27442008-09-17 Kenichi Handa <handa@m17n.org>
2745
2746 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
2747
2748 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
2749 if necessary.
2750
27512008-09-16 Kenichi Handa <handa@m17n.org>
2752
2753 * coding.c (make_conversion_work_buffer): Avoid calling
2754 Fget_buffer_create if it is not necessary.
2755
27562008-09-15 Martin Rudalics <rudalics@gmx.at>
2757
2758 * window.c (Fselect_window): Don't update window_select_count and
2759 use_time when norecord is not nil.
2760
27612008-09-14 Kenichi Handa <handa@m17n.org>
2762
2763 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
2764 specpdl_ptr.
2765
27662008-09-12 Kenichi Handa <handa@m17n.org>
2767
2768 * indent.c (scan_for_column): Don't handle automatic composition
2769 if the current buffer is not associated with a window.
2770
2771 * composite.c (composition_reseat_it): If the current buffer is
2772 not associated with a window, ignore the automatic composition.
2773 (find_automatic_composition): Likewise.
2774
27752008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
2778 (Fgpm_mouse_stop): Use it.
2779 * termhooks.h (close_gpm): Declare.
2780 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
2781 connection if Gpm_GetEvent fails.
2782
2783 * window.c (set_window_buffer): Always preserve current-buffer.
2784
27852008-09-12 Glenn Morris <rgm@gnu.org>
2786
2787 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
2788
27892008-09-11 Glenn Morris <rgm@gnu.org>
2790
2791 * charset.c (charset-map-path): Doc fix.
2792
27932008-09-10 Kenichi Handa <handa@m17n.org>
2794
2795 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
2796
2797 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
2798 compose a grapheme cluster with the preceding base glyph.
2799
2800 * composite.c (composition_compute_stop_pos): Fix previous change.
2801 Reset cmp_it->id to -1 at first.
2802
28032008-09-10 Glenn Morris <rgm@gnu.org>
2804
2805 * Makefile.in (character.o, chartab.o): Fix config.h typo.
2806
28072008-09-09 Chong Yidong <cyd@stupidchicken.com>
2808
2809 * keyboard.c (read_key_sequence): Reapply translation maps when
2810 switching keyboards.
2811
28122008-09-09 Kenichi Handa <handa@m17n.org>
2813
2814 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
2815 characters.
2816
2817 * composite.c (FORWARD_CHAR): Fix calculation
2818 of (POSITION).pos_byte.
2819 (composition_compute_stop_pos): Limit the search of composition to
2820 at most 500 characters ahead. If we reach the limit or find a
2821 newline, set cmp_it->ch to -2 and return 0.
2822 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
2823
28242008-09-08 Kenichi Handa <handa@m17n.org>
2825
2826 * indent.c (Fvertical_motion): Be sure to set
2827 it_overshoot_expected if it.cmp_it.id is non-negative.
2828
28292008-09-07 Andreas Schwab <schwab@suse.de>
2830
2831 * callproc.c (Fcall_process): Don't hold references to string data
2832 across garbage collection. Move initialisation of new_argv down
2833 to avoid compiler bug.
2834
28352008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2836
2837 * process.c (Fsystem_process_attributes): Doc fix.
2838
28392008-09-07 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * callproc.c (Fcall_process): Canonicalize current directory name.
2842
2843 * xdisp.c (move_it_to): When moving by vpos, ensure that the
2844 iterator advances to the next line if the current line ends in a
2845 continued tab.
2846
28472008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
2848
2849 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
2850 member to point to cmp_from.
2851
2852 * xdisp.c: Doc fix for references to gidx data member.
2853
28542008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2855
2856 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
2857
28582008-09-07 Kenichi Handa <handa@m17n.org>
2859
2860 * composite.c (FORWARD_CHAR): Check STOP after
2861 incrementing (POSITION).pos.
2862
28632008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2864
2865 * process.c (Fsystem_process_attributes): Doc fix.
2866
28672008-09-06 Chong Yidong <cyd@stupidchicken.com>
2868
2869 * keyboard.c (Ftop_level): Doc fix.
2870
28712008-09-06 Eli Zaretskii <eliz@gnu.org>
2872
2873 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
2874 minibuffer, don't let lower part of menu invade the echo area.
2875
2876 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
2877 "char *q" to access menu text and advance through it. Revert the
2878 change that displayed ">" instead of ASCII character 0x10.
2879
28802008-09-05 Eli Zaretskii <eliz@gnu.org>
2881
2882 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
2883 toggle boxes and radio buttons on MS-DOS as well.
2884
28852008-09-05 Kenichi Handa <handa@m17n.org>
2886
2887 * composite.c (autocmp_chars): Check lookback count.
2888 (composition_compute_stop_pos): Set cmp_it->lookback.
2889 (composition_reseat_it): Check lookback count.
2890 (struct position_record): New struct.
2891 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
2892 (find_automatic_composition): New function.
2893 (composition_adjust_point): Use find_automatic_composition.
2894
2895 * dispextern.h (struct composition_it): New member lookback.
2896
28972008-09-02 Chong Yidong <cyd@stupidchicken.com>
2898
2899 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
2900 if moving by a single line.
2901
29022008-09-02 Andreas Schwab <schwab@suse.de>
2903
2904 * xterm.c (x_delete_display): Fix merge error.
2905
2906 * fileio.c (Fexpand_file_name): Remove unused variables.
2907
29082008-09-02 Eli Zaretskii <eliz@gnu.org>
2909
2910 * fileio.c (Fexpand_file_name): Copy argument `name' into local
2911 storage on all platforms, not just on DOS_NT.
2912
29132008-09-02 Jason Rumney <jasonr@gnu.org>
2914
b8ff72fa
SM
2915 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
2916 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
2917
29182008-09-01 Chong Yidong <cyd@stupidchicken.com>
2919
2920 * xfaces.c (Finternal_set_alternative_font_family_alist)
2921 (Finternal_set_alternative_font_registry_alist): Properly copy
2922 entire alist structure.
2923
29242008-09-01 Kenichi Handa <handa@m17n.org>
2925
d66c0241 2926 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 2927 representative chars of the script is a vector.
d66c0241
JB
2928 (ftfont_list): Handle the case where the representative chars of
2929 the script is a vector.
aac0c6e3
MR
2930
2931 * character.c (syms_of_character): Docstring of
2932 script-representative-chars fixed.
2933
29342008-08-31 Eli Zaretskii <eliz@gnu.org>
2935
2936 * msdos.c (BUILD_CHAR_GLYPH): New macro.
2937 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
2938 the menu. Allocate larger buffer for `text', to account for
2939 possible ^C characters.
2940
29412008-08-31 Martin Rudalics <rudalics@gmx.at>
2942
2943 * xdisp.c (prepare_menu_bars): Don't call
2944 Vwindow_size_change_functions with arg Qt.
2945
29462008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2947
2948 * font.h (font_range):
2949 * fileio.c (report_file_error):
46e722a9
SM
2950 * composite.c (composition_update_it): Yet another int/Lisp_Object
2951 mixup (YAILOM).
aac0c6e3
MR
2952
29532008-08-30 Glenn Morris <rgm@gnu.org>
2954
2955 * data.c (Fmake_variable_frame_local): Doc fix.
2956
2957 * frame.c (Fmodify_frame_parameters): Doc fix.
2958
29592008-08-30 Eli Zaretskii <eliz@gnu.org>
2960
2961 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
2962 needed by GetTokenInformation.
2963 (w32_system_process_attributes): Check return values of all system
2964 APIs.
2965
2966 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
2967 only when the state changes.
2968 (IT_update_begin, IT_update_end): Add termscript trace.
2969
2970 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
2971 clipboard is unavailable. Set dst to NULL if it doesn't point to
2972 malloc'ed data.
2973 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
2974 passing random values to xfree.
2975
2976 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 2977 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
2978
29792008-08-29 Jason Rumney <jasonr@gnu.org>
2980
2981 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
2982
29832008-08-29 Eli Zaretskii <eliz@gnu.org>
2984
2985 * composite.c (fill_gstring_body): Avoid compiler warnings.
2986
2987 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
2988 LGLYPH_SET_CODE to avoid compiler warnings.
2989
2ae37cf0 2990 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
2991
2992 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
2993
2994 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
2995 LGLYPH_SET_CODE.
2996
29972008-08-29 Kenichi Handa <handa@m17n.org>
2998
2999 * fileio.c (report_file_error): Don't downcase the first character
3000 of errstring if it is still unibyte.
3001
30022008-08-29 Kenichi Handa <handa@m17n.org>
3003
3004 These changes are to re-implement the automatic composition so
3005 that it doesn't use text properties.
3006
3007 * Makefile.in (ftfont.o): Depend on composite.h.
3008 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3009
3010 * character.h (Vunicode_category_table): Extern it.
3011
3012 * character.c (Vunicode_category_table): New variable.
3013 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3014
3015 * chartab.c (optimize_sub_char_table): Perform more greedy
3016 optimization.
3017
b8ff72fa
SM
3018 * composite.h (enum composition_method):
3019 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3020 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3021 (Vcomposition_function_table): Extern it.
3022 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3023 (composition_gstring_put_cache, composition_gstring_from_id)
3024 (composition_gstring_p, composition_gstring_width)
3025 (composition_compute_stop_pos, composition_reseat_it)
3026 (composition_update_it, composition_adjust_point): Extern them.
3027 (Fcomposition_get_gstring): EXFUN it.
3028
d66c0241 3029 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3030 (Vcomposition_function_table)
3031 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3032 (gstring_hash_table, gstring_work, gstring_work_headers):
3033 New variables.
aac0c6e3
MR
3034 (gstring_lookup_cache, composition_gstring_put_cache)
3035 (composition_gstring_from_id, composition_gstring_p)
3036 (composition_gstring_width, fill_gstring_header)
3037 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3038 (composition_reseat_it, composition_update_it)
b8ff72fa 3039 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3040 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3041 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3042 Defsubr compostion_get_gstring.
3043
3044 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3045 cmp_id.
3046 (struct glyph_string): Delete the member gidx. New members
3047 cmp_id, cmp_from, and cmp_to.
3048 (enum it_method): Delete GET_FROM_COMPOSITION.
3049 (struct composition_it): New struct.
3050 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3051 Delete c, len, cmp_id, cmp_len in u.comp.
3052
3053 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3054 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3055 (enum lglyph_indices): Likewise.
b8ff72fa 3056 (font_range): Adjust extern.
aac0c6e3
MR
3057 (font_fill_lglyph_metrics): Extern it.
3058
3059 * font.c (QCf): New variable.
3060 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3061 (font_prepare_composition): Delete this function.
3062 (font_range): Type and arguments changed.
3063 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3064 (font_fill_lglyph_metrics): New function.
b8ff72fa 3065 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3066 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3067 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3068 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3069
3070 * fontset.h (font_for_char): Extern it.
3071
3072 * fontset.c (font_for_char): New function.
3073
3074 * ftfont.c: Include composite.h.
3075 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3076 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3077
3078 * indent.c: Include composite.h and dispextern.h.
3079 (check_composition): Delete this function.
3080 (scan_for_column): Handle composition by
3081 composition_compute_stop_pos, composition_reseat_it, and
3082 composition_update_it.
3083 (compute_motion): Likewise.
3084 (Fvertical_motion): Fix checking of composition.
3085
3086 * keyboard.c (adjust_point_for_property): Check composition by
3087 composition_adjust_point.
3088
b8ff72fa 3089 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3090 struct glyph_string.
3091
b8ff72fa
SM
3092 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3093 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3094 struct glyph.
3095 (produce_composite_glyph): Likewise.
3096
b8ff72fa
SM
3097 * w32term.c (x_draw_composite_glyph_string_foreground):
3098 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3099 (x_draw_glyph_string): Likewise.
3100
3101 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3102 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3103
3104 * xdisp.c: Include font.h.
3105 (it_props): Delete the entry for Qauto_composed.
3106 (init_iterator): Initialize it->cmp_it.id to -1.
3107 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3108 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3109 (handle_auto_composed_prop): Delete it.
3110 (handle_composition_prop): Handle only static composition.
3111 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3112 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3113 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3114 (pop_it): Likewise.
3115 (get_next_element): Delete next_element_from_composition.
3116 (CHAR_COMPOSED_P): New macro.
3117 (get_next_display_element): For automatic composition, get a face
3118 from the font in the glyph-string.
3119 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3120 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3121 (next_element_from_string): Check if the character at the current
3122 position is composed by CHAR_COMPOSED_P.
3123 (next_element_from_buffer): Likewise.
d66c0241
JB
3124 (next_element_from_composition): Adjust for the change of struct it.
3125 Update it->cmp_it.
b8ff72fa
SM
3126 (dump_glyph): Adjust for the change of struct glyph.
3127 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3128 it and struct glyph. Don't handle automatic composition here.
3129 (fill_gstring_glyph_string): New function.
3130 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3131 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3132 (BUILD_GSTRING_GLYPH_STRING): New macro.
3133 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3134 automatic composition.
b8ff72fa 3135 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3136 struct glyph.
b8ff72fa 3137 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3138
b8ff72fa 3139 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3140 the change of struct glyph_string.
3141 (x_draw_glyph_string): Likewise.
3142
31432008-08-29 Glenn Morris <rgm@gnu.org>
3144
3145 * buffer.c (word-wrap): Doc fix.
3146 * xdisp.c (truncate-partial-width-windows): Doc fix.
3147 Increase default to 50.
3148
31492008-08-29 Chong Yidong <cyd@stupidchicken.com>
3150
3151 * xdisp.c (update_tool_bar_unwind): New function.
3152 (update_tool_bar): Temporarily set selected frame before building
3153 tool-bar items.
3154
31552008-08-28 Michael Albinus <michael.albinus@gmx.de>
3156
3157 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3158 snprintf, respectively.
3159 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3160
31612008-08-28 Chong Yidong <cyd@stupidchicken.com>
3162
3163 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3164 LDFLAGS to GNUstep CC invocation.
3165
31662008-08-27 Chong Yidong <cyd@stupidchicken.com>
3167
3168 * indent.c (Fvertical_motion): Revert last change. Handle the
3169 general case where we are moving forward, and PT spans multiple
3170 screen lines.
3171
3172 * eval.c (find_handler_clause): Temporarily increase
3173 max-lisp-eval-depth while printing the backtrace buffer, to
3174 guarantee that help-mode code can run.
3175
31762008-08-27 Eli Zaretskii <eliz@gnu.org>
3177
3178 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3179 colors under -rv.
3180 (IT_set_frame_parameters): Don't swap foreground and background
3181 colors if `(reverse . t)' is present in the frame properties.
3182 (internal_terminal_init): Call init_frame_faces only for the
3183 initial frame.
3184
31852008-08-27 Andreas Schwab <schwab@suse.de>
3186
3187 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3188
31892008-08-27 Andreas Schwab <schwab@suse.de>
3190
3191 * search.c (search_buffer): Set char_base to zero only at the end.
3192
31932008-08-27 Kenichi Handa <handa@m17n.org>
3194
b8ff72fa 3195 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3196
31972008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3198
3199 * xterm.c (x_term_init): Temporarily hide the partially
3200 initialized terminal while calling vendor-specific-keysyms.
3201
32022008-08-26 Eli Zaretskii <eliz@gnu.org>
3203
3204 * msdos.c (internal_terminal_init): Most initializations done only
3205 once, especially initial_screen_colors[] and termscript open.
3206
32072008-08-26 Chong Yidong <cyd@stupidchicken.com>
3208
3209 * eval.c (Fcondition_case): Doc fix.
3210
3211 * widgetprv.h (EmacsFramePart): Change font member to the new font
3212 struct.
3213
3214 * widget.c: Include character.h and font.h for XSETFONT.
3215 (setup_frame_gcs): Compute X font id from font struct, just once.
3216
32172008-08-26 Eli Zaretskii <eliz@gnu.org>
3218
3219 * term.c (get_named_tty): Fix last change.
3220
32212008-08-26 Chong Yidong <cyd@stupidchicken.com>
3222
3223 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3224 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3225
32262008-08-25 Eli Zaretskii <eliz@gnu.org>
3227
3228 * frame.c (do_switch_frame): Mark previously displayed frame as
3229 obscured for FRAME_MSDOS_P frames as well.
3230
32312008-08-24 Eli Zaretskii <eliz@gnu.org>
3232
3233 * frame.c (make_terminal_frame): Initialize f->terminal,
3234 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3235 Set the top frame to newly created frame.
3236 (Fmake_terminal_frame): Reuse the_only_display_info.
3237
3238 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3239 estimating available memory.
3240
b97439ce 32412008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3242
3243 * nsterm.m (ns_draw_window_cursor): Don't call
3244 NSDisableScreenUpdates and NSEnableScreenUpdates on
3245 non-NS_IMPL_COCOA systems.
3246
32472008-08-23 Andreas Schwab <schwab@suse.de>
3248
3249 * process.c (procfs_system_process_attributes): Fix use of
3250 uninitialized variables.
3251
32522008-08-23 Eli Zaretskii <eliz@gnu.org>
3253
3254 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3255
3256 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3257 calling tty-set-up-initial-frame-faces.
3258
b8ff72fa
SM
3259 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3260 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3261
3262 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3263 addition to output_termcap.
3264
3265 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3266
3267 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3268 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3269 highlight.
3270
3271 * process.c [!subprocesses]: Define QCname.
3272 (syms_of_process): Intern and staticpro it.
3273
3274 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3275 Adjust for changes in encoding/decoding routines.
3276 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3277 encode_coding and decode_coding.
3278
b8ff72fa 3279 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3280
3281 * dosfns.c: Include frame.h before termhooks.h.
3282 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3283 variable termscript.
3284
3285 * s/msdos.h (USER_FULL_NAME): Define.
3286 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3287
3288 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3289 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3290 pw->pw_gecos.
3291
3292 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3293 SELECTED_FRAME as additional (1st) argument.
3294 (tty_read_avail_input): Handle output_msdos_raw in
3295 addition to output_termcap.
3296
3297 * msdos.c: Include frame.h before termhooks.h.
3298 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3299 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3300 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3301 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3302 (IT_set_terminal_modes, IT_reset_terminal_modes)
3303 (IT_set_frame_parameters): Use tty->termscript instead of a global
3304 variable termscript.
3305 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3306 global variable terminal_coding. Don't refer to
3307 Vnonascii_translation_table.
3308 (internal_terminal_init): Set Vwindow_system in current_kboard.
3309 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3310 Announce date and time of session start, if termscript is open.
3311 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3312 term.c:init_tty). Open termscript only of not already open.
3313 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3314 here instead of dos_ttraw. Don't initialize display if this is an
3315 initial tty. Don't set FRAME_FONT.
3316 (Vwindow_system_version): Bump to 23.
3317 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3318 is available, set up mouse_position_hook.
3319 (dos_ttraw, IT_set_terminal_modes): If called with initial
3320 terminal, do nothing.
3321 (IT_set_frame_parameters): Handle the Qtty_type frame
3322 parameter by calling internal_terminal_init.
3323 (dos_set_window_size, show_mouse_face)
3324 (clear_mouse_face, IT_note_mode_line_highlight)
3325 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3326 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3327 (initialize_msdos_display): New function.
3328 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3329 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3330 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3331 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3332 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3333 (request_sigio, unrequest_sigio): Don't define, now defined on
3334 sysdep.c.
3335 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3336
3337 * term.c [MSDOS]: Include msdos.h.
3338 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3339 conditional to DOS_NT. Allow only one call to this function in a
3340 session. Don't allocate a new struct tty_display_info; instead,
3341 reuse the_only_display_info. Call get_tty_size to get screen
3342 dimensions. Call init_baud_rate to set bad_rate.
3343 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3344 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3345 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3346 (get_tty_terminal, get_named_tty, Ftty_type)
3347 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3348 output_termcap.
b8ff72fa
SM
3349 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3350 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3351 only when subprocesses are supported.
aac0c6e3
MR
3352
3353 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3354 f->output_data.x.
3355 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3356 terminal devices.
3357
5582fbc7 3358 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3359 x_output.
3360 (FRAME_FONT): Use output_data.tty.
3361 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3362 (struct x_display_info): Rename from display_info. Update all users in
3363 msdos.c.
aac0c6e3 3364 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3365 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3366 (dos_ttraw): Update prototype.
3367
3368 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3369 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3370
33712008-08-23 Jason Rumney <jasonr@gnu.org>
3372
3373 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3374 (fn_TIFFSetDirectory): New library function used.
3375 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3376 (tiff_load): Use :index to select among multiple images. Set count
3377 property when multiple images exist.
3378 (gif_format): Use :index, not :image.
3379
33802008-08-23 Chong Yidong <cyd@stupidchicken.com>
3381
3382 * xdisp.c (try_scrolling): Check INT_MAX instead of
3383 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3384 to obtain INT_MAX.
3385
33862008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3387
3388 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3389
33902008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3391
3392 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3393 GNUstep library location.
3394
33952008-08-21 Chong Yidong <cyd@stupidchicken.com>
3396
3397 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3398 before using it.
3399
3400 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3401
34022008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3403
3404 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3405 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3406 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3407 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3408 (EmacsApp-cursor_blink_handler): Remove declaration.
3409 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3410 match 01 Feb 2008 changes in xterm.c.
3411 (ns_read_socket): Add cast to avoid warning.
3412 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3413 GNUstep.
3414
34152008-08-20 Chong Yidong <cyd@stupidchicken.com>
3416
3417 * xselect.c (x_get_foreign_selection): Return nil if desired
3418 selection could not be obtained, instead of signalling an error.
3419
34202008-08-20 David Reitter <david.reitter@gmail.com>
3421
3422 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3423 * nsterm.m: Remove ns-specific code for cursor blinking.
3424 (ns_draw_window_cursor): Clear cursor properly rather than
3425 redrawing the area. Respect width of bar cursors.
3426 These changes enable the use of generic blink-cursor-mode and
3427 generic cursor types in NS and support smooth cursor movements (do
3428 not blink off after command).
3429 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3430 Nextstep, too.
3431
34322008-08-19 Kenichi Handa <handa@m17n.org>
3433
3434 * font.c (Vfont_log_deferred): New variable.
3435 (font_add_log): Check Vfont_log_deferred.
3436 (font_deferred_log): New function.
3437
3438 * font.h (font_deferred_log): Extern it.
3439
3440 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3441 for sorting.
3442 (face_for_char): Use deferred log.
3443
34442008-08-18 Kenichi Handa <handa@m17n.org>
3445
3446 * fontset.c (face_for_char): Add font log.
3447
3448 * font.c (font_add_log): Add the font properties :script, :lang,
3449 and :otf in the log.
3450
34512008-08-17 Chong Yidong <cyd@stupidchicken.com>
3452
3453 * xdisp.c: Remove dead code.
3454 (handle_invisible_prop, next_overlay_string): Defer call to
3455 setup_for_ellipsis.
3456 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3457
34582008-08-15 Chong Yidong <cyd@stupidchicken.com>
3459
3460 * xfaces.c (lookup_derived_face): Properly handle possible zero
3461 return value of get_lface_attributes.
3462 (merge_faces): Don't tell lookup_derived_face to signal an error
3463 if face is not found.
3464
3465 * dired.c (Fdirectory_files): Doc fix.
3466
3467 * process.c (make_process): Initialize kill_without_query struct
3468 member.
3469
34702008-08-15 Eli Zaretskii <eliz@gnu.org>
3471
3472 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3473 Alternative calculation of totphys for Visual Studio 6.
3474
3475 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3476
3477 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3478 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3479 All users changed.
3480 (stat): Only root directory passed to GetDriveType. Allow RAM
3481 disk as well as local fixed disk when w32-get-true-file-attributes
3482 is set to `local'.
3483 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3484 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3485 (w32_cached_id, w32_add_to_cache): New functions.
3486 (get_name_and_id): Look account names in the cache before calling
3487 lookup_account_sid.
3488 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3489 New initialization flags.
3490 (globals_of_w32): Initialize them to zero.
3491 (w32_system_process_attributes): Use w32_cached_id and
3492 w32_add_to_cache.
3493
34942008-08-14 Lawrence Mitchell <wence@gmx.li>
3495
3496 * lread.c (Fread_char, Fread_char_exclusive): If no character
3497 event is read before timeout is reached, return nil, rather than
3498 converting to a number.
3499
35002008-08-14 Chong Yidong <cyd@stupidchicken.com>
3501
3502 * fns.c (use_dialog_box): Doc fix.
3503
3504 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3505 on OS X.
3506
35072008-08-13 Chong Yidong <cyd@stupidchicken.com>
3508
3509 * frame.c (Qns_parse_geometry): New var.
3510 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3511
35122008-08-11 Chong Yidong <cyd@stupidchicken.com>
3513
3514 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3515 space character in calculating tabs.
3516
35172008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3518
3519 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3520
35212008-08-10 Glenn Morris <rgm@gnu.org>
3522
3523 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3524 silence gcc "limited range of data type" warnings in some
3525 make_fixnum_or_float calls.
3526
35272008-08-09 Eli Zaretskii <eliz@gnu.org>
3528
3529 * w32.c (w32_system_process_attributes): If the process does not
3530 exist, return nil.
3531
3532 * w32.c: Include thelp32.h, psapi.h and coding.h.
3533 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3534 declarations.
3535 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3536 (Process32Next_Proc): New typedefs.
3537 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3538 (g_b_init_process32_next, g_b_init_open_thread_token)
3539 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3540 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3541 (g_b_init_get_process_working_set_size)
3542 (g_b_init_global_memory_status_ex): New static variables.
3543 (globals_of_w32): Initialize them.
3544 (create_toolhelp32_snapshot, process32_first, process32_next)
3545 (open_thread_token, impersonate_self, revert_to_self)
3546 (get_process_memory_info, get_process_working_set_size)
3547 (global_memory_status, global_memory_status_ex): New wrapper
3548 functions.
3549 (w32_list_system_processes, w32_system_process_attributes)
3550 (enable_privilege, restore_privilege, ltime, process_times):
3551 New functions.
3552 (convert_time_raw): New function.
3553 (convert_time): Remove conversion of FILETIME into time in 100
3554 nsec units, call convert_time_raw instead.
3555
3556 * process.h (w32_list_system_processes, w32_system_process_attributes):
3557 Add prototypes.
3558 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3559 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3560 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3561 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3562
3563 * process.c (Fsystem_process_attributes): Doc fix.
3564
35652008-08-08 Chong Yidong <cyd@stupidchicken.com>
3566
3567 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3568 a continued multi-char glyph; if so, advance to the actual glyph.
3569
35702008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3571
3572 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3573
3574 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3575 (.m.o): Use it.
3576 * config.in: Regenerate.
3577
35782008-08-07 Chong Yidong <cyd@stupidchicken.com>
3579
3580 * xdisp.c (redisplay_window): Revert last change.
3581 (try_window): Check bottom scroll margin too.
3582
35832008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3584
3585 * config.in: Regenerate.
3586
3587 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3588 -list-load-path-shadows'.
3589 (nsgui.h): Reduce number of things depending on it.
3590
35912008-08-06 Chong Yidong <cyd@stupidchicken.com>
3592
3593 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3594 instead of window-end which does the wrong thing at eob.
3595 (try_cursor_movement): Minor optimization.
3596 (redisplay_window): If scroll margin is defined, don't assume
3597 window doesn't need scrolling.
3598
35992008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3600
3601 * config.in: Regenerate.
3602
3603 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3604 (mostlyclean): Don't delete *.d under NS.
3605
3606 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3607
36082008-08-06 Kenichi Handa <handa@m17n.org>
3609
3610 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3611
36122008-08-06 Andreas Schwab <schwab@suse.de>
3613
3614 * config.in: Regenerate.
3615
36162008-08-05 Chong Yidong <cyd@stupidchicken.com>
3617
3618 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3619 forcing a window start.
3620
3621 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3622 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3623
36242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3625
3626 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3627 argument.
3628
36292008-08-05 Juanma Barranquero <lekktu@gmail.com>
3630
3631 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3632 <scroll-down-aggressively, before-change-functions>:
3633 <after-change-functions>: Reflow docstrings.
3634
36352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3636 Ken Raeburn <raeburn@gnu.org>
3637
3638 Dock menu customization, based on a patch by Ken Raeburn, plus some
3639 other fixes.
3640 * nsmenu.m (dockMenu): New variable.
3641 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3642
3643 * nsterm.h (dockMenu): Declare.
3644
3645 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3646 (ns_term_init): Initialize dockMenu.
3647 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3648 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3649 left.
3650
3651 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3652
36532008-08-04 Chong Yidong <cyd@stupidchicken.com>
3654
3655 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3656
3657 * config.in: Regenerate.
3658
36592008-08-04 Seiji Zenitani <zenitani@mac.com>
3660
3661 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3662
36632008-08-04 Chong Yidong <cyd@stupidchicken.com>
3664
3665 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3666
36672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3668
3669 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3670
3671 * keyboard.h: Comment an #endif.
3672
3673 * lisp.h (have_menus_p): Adjust comment.
3674
3675 * menu.c (find_and_return_menu_selection): Fix comparison with
3676 client_data.
3677
3678 * nsmenu.m (popup_activated_flag): New variable.
3679 (popup_activated): New function.
3680 (menu-or-popup-active-p): New exported lisp definition.
3681 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3682 when popup done.
3683 (ns_popup_dialog): Set popup_activated_flag.
3684
3685 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3686 version for GNUstep (handled by conditional typedef in nsterm.m).
3687 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3688 in rgb.txt).
3689
3690 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3691
3692 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3693
3694 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3695
3696 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3697 shortcircuit if popup_activated like GTK and X toolkit.
3698
3699 * m/inter386.h: Change DARWIN to DARWIN_OS.
3700
3701 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3702 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3703 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3704 comment on NO_SOCK_SIGIO.
3705
37062008-08-03 Chong Yidong <cyd@stupidchicken.com>
3707
3708 * nsterm.m (windowDidResize): Remove stopModal call.
3709
37102008-08-03 Andreas Schwab <schwab@suse.de>
3711
3712 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3713 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3714
37152008-08-02 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3718 Don't use uninitialized pointer variable when using getrlimit.
3719
37202008-08-02 Jason Rumney <jasonr@gnu.org>
3721
3722 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3723
37242008-08-02 Eli Zaretskii <eliz@gnu.org>
3725
3726 * alloc.c (NSTATICS): Bump to 0x640.
3727
3728 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
3729
3730 * lisp.h: Add prototype for directory_files_internal.
3731
3732 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
3733 New functions.
3734 (syms_of_process): Defsubr them. Add initializations for various
3735 Q* symbols used in procfs_system_process_attributes.
3736 (procfs_list_system_processes, procfs_system_process_attributes)
3737 [HAVE_PROCFS]: New functions.
3738 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
3739 (procfs_get_total_memory): New functions.
3740
37412008-08-01 Juanma Barranquero <lekktu@gmail.com>
3742
3743 * xfaces.c (Fx_load_color_file): Fix previous change;
3744 it is #ifdef WINDOWSNT, not WINDOWS_NT.
3745
37462008-08-01 Michael Albinus <michael.albinus@gmx.de>
3747
3748 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
3749
37502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3751
3752 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
3753
37542008-08-01 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
3757
3758 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
3759 define NSApplicationDelegateReplySuccess.
3760 (EmacsView -converstationIdentifier): Use long instead of
3761 NSInteger for GNUstep, since it doesn't have NSInteger.
3762
3763 * xmenu.c: Revert last change.
3764
3765 * keyboard.h: Fix last change.
3766
37672008-08-01 Juanma Barranquero <lekktu@gmail.com>
3768
3769 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
3770 on Windows.
3771
37722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3773
3774 Warning clearing and clean-up in NS port.
3775 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3776 Add prototypes.
3777 * nsgui.h (FACE_DEFAULT): Remove, unused.
3778 (XGCValues): Change colors to unsigned long.
3779 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
3780 nsterm.m.
3781 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
3782 (ns_list_fonts): Remove, unused.
3783 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
3784 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
3785 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
3786 (nsfont_draw): Compare face colors to 0, not nil.
3787 * nsmenu.m (struct widget_value): Drop unneeded declaration.
3788 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
3789 (-addSubmenuWithTitle:): Use NSMenuItem class.
3790 (ns_popup_menu): Use NO, not NULL, for enabled setting.
3791 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
3792 (ns_clip_to_row): Make gc arg a BOOL.
3793 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
3794 ns_clip_to_row() call.
3795 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
3796 used). Cast FRAME_FONT assignments.
3797 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
3798 (ns_string_to_lispmod): Change arg to const char.
3799 (ns_term_init): Use NSMenuItem class.
3800 (EmacsApp -openFile:): Move to different section of file.
3801 (EmacsApp -application:openFiles:): Don't return a value, call
3802 -replyToOpenOrPrint:.
3803 (EmacsView -keyDown:): Fix up cast.
3804 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
3805 (EmacsView -menuDown:): Cast tag in call to
3806 find_and_call_menu_selection().
3807 (ns_list_fonts): Remove, unused.
3808 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
3809 (ns_fontname_to_xlfd): Make static.
3810 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
3811 Remove prototypes (now in keyboard.h).
3812 (next_menubar_widget_id): Remove, unused.
3813 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
3814 Remove prototypes (now in keyboard.h).
3815 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
3816
38172008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
3818
3819 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
3820 (floatfns.o): Depend on syssignal.h.
3821 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
3822
3823 * systty.h: Fix previous change that removed BSD_TERMIOS.
3824 Add comments to #ifdefs.
3825
38262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3827
3828 * w32fns.c (w32-load-color-file): Remove.
3829 (x-open-connection): Use renamed Fx_load_color_file.
3830 * xfaces.c (x-load-color-file): Add.
3831 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
3832 Emacs.clr.
3833 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
3834
38352008-07-31 Michael Albinus <michael.albinus@gmx.de>
3836
3837 * dbusbind.c (Fdbus_call_method_asynchronously)
3838 (Fdbus_method_error_internal): New defuns.
3839 (xd_read_message): Handle also reply messages.
3840 (Vdbus_registered_functions_table): Extend docstring.
3841
38422008-07-31 Juanma Barranquero <lekktu@gmail.com>
3843
3844 * keyboard.c (gobble_input): Fix previous change.
3845
38462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3847
3848 * bitmaps/README:
3849 * xfns.c:
3850 * termcap.c:
3851 * term.c:
3852 * syswait.h:
3853 * systty.h:
3854 * systime.h:
3855 * syssignal.h:
3856 * sysdep.c:
3857 * process.h:
3858 * process.c:
3859 * print.c:
3860 * ndir.h:
3861 * lread.c:
3862 * keyboard.c:
3863 * getpagesize.h:
3864 * floatfns.c:
3865 * fileio.c:
3866 * emacs.c:
3867 * doc.c:
3868 * dispnew.c:
3869 * dired.c:
3870 * data.c:
3871 * callproc.c:
3872 * buffer.c:
3873 * README:
3874 * Makefile.in:
3875 * s/template.h:
3876 * s/msdos.h:
3877 * m/vax.h: Remove VMS support.
3878 * s/vms.h:
3879 * vlimit.h:
3880 * uaf.h:
3881 * temacs.opt:
3882 * param.h:
3883 * ioctl.h: Remove file.
3884
38852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3886
3887 * s/ms-w32.h (MULTI_KBOARD): Remove.
3888 * xterm.c:
3889 * xselect.c:
3890 * xfns.c:
3891 * window.c:
3892 * w32term.c:
3893 * w32fns.c:
3894 * terminal.c:
3895 * termhooks.h:
3896 * term.c:
3897 * sysdep.c:
3898 * keyboard.h:
3899 * keyboard.c:
3900 * frame.h:
3901 * frame.c:
3902 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
3903 * config.in: Regenerate.
3904
39052008-07-30 Jason Rumney <jasonr@gnu.org>
3906
3907 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
3908
3909 * w32font.c (w32font_encode_char): Leave as unicode if in range.
3910 (w32font_open_internal): Get unicode version of textmetrics.
3911 Don't enable or disable glyph indices here.
3912 (w32font_open): Disable use of glyph indices.
3913
3914 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
3915
39162008-07-30 Chong Yidong <cyd@stupidchicken.com>
3917
3918 * minibuf.c (Vread_buffer_function): Doc fix.
3919
39202008-07-30 John Paul Wallington <jpw@pobox.com>
3921
3922 * minibuf.c (read_buffer_completion_ignore_case): New var.
3923 (Fread_buffer): Use it.
3924
39252008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3926
3927 * systty.h (sensemode): Remove empty #if. Remove reference to
3928 BSD_TERMIOS, unused.
3929
3930 * sysdep.c: Remove reference to DGUX.
3931 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
3932
3933 * config.in: Regenerate.
3934
39352008-07-30 Jason Rumney <jasonr@gnu.org>
3936
3937 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
3938
39392008-07-29 Jason Rumney <jasonr@gnu.org>
3940
3941 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
3942 is populated.
3943 (uniscribe_encode_char): Always use uniscribe.
3944 Avoid using context if cache is populated.
3945
39462008-07-29 Jan Djärv <jan.h.d@swipnet.se>
3947
3948 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
3949 open menu.
3950
3951 * gtkutil.c (menu_nav_ended): Remove.
3952 (create_menus): Remove signal connect for menu_nav_ended.
3953
39542008-07-28 Chong Yidong <cyd@stupidchicken.com>
3955
3956 * xdisp.c (redisplay_window): Check return value of
3957 compute_window_start_on_continuation_line before forcing a window
3958 start.
3959
39602008-07-28 Jason Rumney <jasonr@gnu.org>
3961
3962 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
3963
3964 * w32term.c (w32_enable_unicode_output, cleartype_active):
3965 Remove obsolete display options.
3966 (x_draw_glyph_string_background): Don't use old cleartype_active
3967 workaround.
3968 (w32_initialize): Remove cleartype_active initialization.
3969 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
3970
39712008-07-28 Andreas Schwab <schwab@suse.de>
3972
3973 * lisp.h (init_weak_hash_tables, syms_of_font)
3974 (xd_read_queued_messages, syms_of_dbusbind): Declare.
3975 (remove_hash_entry): Don't declare.
3976 * eval.c (maybe_call_debugger): Make static and move before use.
3977 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
3978 * xdisp.c: Include "gtkutil.h" if USE_GTK.
3979 * xterm.h (x_set_frame_alpha): Declare.
3980
39812008-07-28 Jan Djärv <jan.h.d@swipnet.se>
3982
3983 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
3984 (create_menus): Connect selection-done to menu_nav_ended.
3985
39862008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3987
3988 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
3989 Set Vx_resource_name to a fallback. Replace read of 'buffered'
3990 parameter with read of 'alpha' one.
3991 (Qns_frame_parameter): Remove.
5582fbc7 3992 * nsselect.m (selection-coding-system)
aac0c6e3
MR
3993 (next-selection-coding-system, Vselection_coding_system)
3994 (Vnext_selection_coding_system): Drop.
3995
39962008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3997
3998 * nsfns.m (do-applescript, do_applescript): Rename to
3999 ns-do-applescript, ns_do_applescript, and move within file.
4000
40012008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4002
4003 Remove support for Mac Carbon.
4004 * mactoolbox.c:
4005 * macterm.h:
4006 * macterm.c:
4007 * macselect.c:
4008 * macmenu.c:
4009 * macgui.h:
4010 * macfns.c:
4011 * mac.c: Remove file.
4012 * s/darwin.h:
4013 * m/intel386.h:
4014 * xfaces.c:
4015 * xdisp.c:
4016 * window.c:
4017 * tparam.c:
4018 * termhooks.h:
4019 * termcap.c:
4020 * term.c:
4021 * syssignal.h:
4022 * sysselect.h:
4023 * sysdep.c:
4024 * process.c:
4025 * lread.c:
4026 * lisp.h:
4027 * keyboard.c:
4028 * image.c:
4029 * fringe.c:
4030 * frame.h:
4031 * frame.c:
4032 * fontset.c:
4033 * font.h:
4034 * font.c:
4035 * fns.c:
4036 * fileio.c:
4037 * emacs.c:
4038 * dispnew.c:
4039 * dispextern.h:
4040 * config.in:
4041 * atimer.c:
2ae37cf0 4042 * Makefile.in: Remove code for Carbon.
aac0c6e3 4043
f0131492 40442008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4045
4046 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4047
40482008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4049
4050 * macterm.h (kCGBitmapByteOrder32Host): New define for
4051 non-universal SDKs.
4052
4053 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4054 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4055
4056 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4057 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4058
40592008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4060
4061 * w32inevt.c: Include dispextern.h.
4062
40632008-07-26 Andreas Schwab <schwab@suse.de>
4064
4065 * print.c (print_object): Fix off-by-one in last change.
4066
40672008-07-25 Juanma Barranquero <lekktu@gmail.com>
4068
4069 * term.c (syms_of_term): Don't initialize default_orig_pair,
4070 default_set_foreground and default_set_background on Windows.
4071
40722008-07-25 Jason Rumney <jasonr@gnu.org>
4073
4074 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4075 ScriptItemize. Clean up return value checking. Remove unused
4076 variables.
4077 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4078 shaping engine.
4079
4080 * w32font.c (w32font_has_char): Handle the case where we can't
4081 determine the script for a character.
4082
40832008-07-25 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * term.c (syms_of_term): Initialize default_orig_pair,
4086 default_set_foreground, and default_set_background.
4087
4088 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4089 clash (bug#86).
4090 (getloadavg): Callers changed.
4091
4092 * image.c (svg_load_image): Fix last change.
4093 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4094 image size is valid. Use g_object_unref instead of deprecated
4095 rsvg_handle_free to free rsvg handle.
4096 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4097
40982008-07-25 Jason Rumney <jasonr@gnu.org>
4099
4100 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4101 surrogates before looking up glyph index.
4102 (w32font_text_extents): Encode as surrogates if falling back to
4103 functions that need UTF-16 wide chars.
4104
4105 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4106 BMP as surrogates before looking up glyph index.
4107
41082008-07-25 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * image.c (svg_load_image): Check for failure in return value of
4111 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4112
41132008-07-25 Jason Rumney <jasonr@gnu.org>
4114
4115 * w32font.c (Fx_select_font): Reverse sense of second arg.
4116
41172008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4118
4119 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4120 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4121
4122 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4123 (PURESIZE): Use it.
4124
41252008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4126
4127 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4128 * m/alpha.h (TEXT_END):
4129 * m/ibmrs6000.h (TEXT_END):
4130 * m/macppc.h (TEXT_END):
4131 * s/darwin.h (TEXT_END):
4132 * s/msdos.h (TEXT_END): Remove, unused.
4133 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4134 * s/cygwin.h: Remove comment.
4135
4136 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4137 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4138 * m/intel386.h (DOT_GLOBAL_START):
4139 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4140 (USG): Remove, file not used on USG platforms.
4141
4142 * Makefile.in (HAVE_X11): Remove empty #else.
4143
41442008-07-24 Andreas Schwab <schwab@suse.de>
4145
4146 * fileio.c (Finsert_file_contents): Properly adjust undo list
4147 after format conversion.
4148
41492008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4150
4151 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4152 (menu_nav_ended): Remove.
4153 (create_menus): Remove signal connect for menu_nav_ended.
4154 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4155 create_menus.
4156 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4157
41582008-07-23 Jason Rumney <jasonr@gnu.org>
4159
4160 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4161 with opened font.
4162 (w32font_open): Set font type to gdi.
4163
4164 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4165
41662008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4167
4168 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4169 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4170 defines it.
4171 * unexec.c (ADDR_CORRECT): Define unconditionally.
4172
4173 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4174
4175 * unexec.c: Remove code depending on !COFF and USG, the file is
4176 not used for such systems.
4177
4178 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4179 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4180 (LD_SWITCH_SYSTEM_1): Remove, update users.
4181
4182 * s/darwin.h (DATA_END):
4183 * m/intel386.h (DATA_END):
4184 * m/ibmrs6000.h (DATA_END):
4185 * m/alpha.h (DATA_END): Remove, unused.
4186
4187 * config.in: Regenerate.
4188 * s/ms-w32.h (subprocesses): Define unconditionally.
4189 * s/template.h (subprocesses): Update comment.
4190 * s/vms.h (subprocesses):
4191 * s/usg5-4.h (subprocesses):
4192 * s/hpux10-20.h (subprocesses):
4193 * s/gnu-linux.h (subprocesses):
4194 * s/cygwin.h (subprocesses):
4195 * s/bsd-common.h (subprocesses):
4196 * s/aix4-2.h (subprocesses):
4197 * s/darwin.h (subprocesses): Do not define, defined by default now.
4198
4199 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4200 Remove all references.
4201 (temacs): Add GNUstep specific ld flags.
4202
4203 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4204 similarly to what X does.
4205
42062008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4207
4208 * nsfns.m (x-list-fonts): Remove.
4209 (syms_of_nsfns): Drop the x-list-fonts declaration.
4210 * nsterm.m: Get rid of remaining "//" comments.
4211
42122008-07-22 Chong Yidong <cyd@stupidchicken.com>
4213
4214 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4215
4216 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4217 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4218 (Fns_own_selection_internal, Fx_disown_selection_internal)
4219 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4220
4221 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4222 ... */' style of docstrings. Doc fixes.
4223
42242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4225
4226 * terminfo.c (UP, BC, PC): Undo previous change.
4227
4228 * nsfns.m: Rename ns prefixed functions/variables to the
4229 corresponding x versions. Update references.
4230
42312008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4232
4233 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4234
42352008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4236
4237 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4238 Remove forwarding functions.
4239 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4240 non-static.
4241 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4242 non-static.
4243 (ns_frame_parm_handlers): Use the new names.
4244 (syms_of_nsfns): Move to the end of file.
4245
4246 * nsterm.m (syms_of_nsterm): Move to the end of file.
4247
4248 * dispnew.c (init_display): Remove code for X10.
4249
42502008-07-22 Jason Rumney <jasonr@gnu.org>
4251
4252 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4253 bare drive.
4254
42552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4256
4257 * nsterm.m (syms_of_nsterm): Remove debugging println.
4258
42592008-07-22 David Reitter <david.reitter@gmail.com>
4260
4261 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4262 Carbon implementation of the same functionality: execute arbitrary
4263 AppleScript code.
4264
42652008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4266
4267 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4268 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4269 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4270 (Fx_display_mm_height, Fx_display_mm_width)
4271 (Fx_display_backing_store, Fx_display_visual_class)
4272 (Fx_display_save_under, Fx_open_connection)
4273 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4274 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4275 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4276 (Fx_display_pixel_width, Fx_display_pixel_height)
4277 (Fx_display_usable_bounds, Fx_display_planes)
4278 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4279 ... */' style of docstrings.
4280
42812008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4282
4283 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4284 on this platform.
4285 (mips):
4286 * m/iris4d.h (mips): Do not define.
4287 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4288
4289 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4290
4291 * image.c:
4292 * nsfns.m:
4293 * nsselect.m:
4294 * nsterm.h:
4295 * nsterm.m: Rename ns prefixed functions/variables to the
4296 corresponding x versions. Update references.
4297
4298 * m/ibms390x.h (NO_REMAP): Do not undefine.
4299
4300 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4301
43022008-07-21 Chong Yidong <cyd@stupidchicken.com>
4303
4304 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4305 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4306 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4307 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4308 (Fns_display_mm_height, Fns_display_mm_width)
4309 (Fns_display_backing_store, Fns_display_visual_class)
4310 (Fns_display_save_under, Fns_open_connection)
4311 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4312 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4313 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4314 (Fns_display_pixel_width, Fns_display_pixel_height)
4315 (Fns_display_usable_bounds, Fx_display_planes)
4316 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4317
43182008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4319
4320 * print.c (print_object): Check print_depth before searching for
4321 circularities.
4322
43232008-07-21 Michael Albinus <michael.albinus@gmx.de>
4324
4325 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4326 only sprintf.
4327
43282008-07-21 Kenichi Handa <handa@m17n.org>
4329
4330 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4331
43322008-07-20 Andreas Schwab <schwab@suse.de>
4333
4334 * syntax.c (find_start_pos, find_start_value)
4335 (find_start_value_byte, find_start_begv, find_defun_start)
4336 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4337
43382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4339
4340 * s/sol2-3.h: Insert contents of s/sol2.h.
4341 (LD_SWITCH_SYSTEM): Remove redundant definition.
4342 * s/sol2.h: Remove, unused.
4343
43442008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4345
4346 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4347
43482008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4349
4350 * Makefile.in (ns_appdir): Fix typo in find command.
4351
43522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4353
4354 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4355
4356 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4357 added not supported anymore.
4358
4359 * s/usg5-4-2.h (LIBS_SYSTEM):
4360 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4361
4362 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4363 * s/lynxos.h (GETPGRP_NO_ARG):
4364 * s/hpux10-20.h (NO_SIOCTL_H):
4365 * s/gnu.h (GETPGRP_NO_ARG):
4366 * s/gnu-linux.h (NO_SIOCTL_H):
4367 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4368 * s/cygwin.h (GETPGRP_NO_ARG):
4369 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4370 (C_DEBUG_SWITCH): Remove duplicate definition.
4371
4372 * m/ibms390.h: Remove boilerplate comments.
4373
4374 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4375
4376 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4377 (wait_reading_process_output): Remove code for SunOS, platform not
4378 supported anymore. Use SOLARIS2 instead of sun.
4379
43802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4381
4382 * font.c (font_open_by_name): Under NS, default lface height to zero.
4383 (font_open_for_lface): Under NS, set size based on frame fontsize.
4384 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4385 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4386
43872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4388
4389 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4390 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4391 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4392 YES/NO.
4393 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4394 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4395 * Makefile.in (clean): Clear out build destination dir.
4396
43972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4398
4399 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4400 xterm, xselect.
4401 * lisp.h: Remove declaration of hash_remove.
4402 * nsgui.h: Remove redefinitions of hash_remove.
4403 * fns.c (hash_remove): Rename to hash_remove_from_table.
4404
44052008-07-19 Seiji Zenitani <zenitani@mac.com>
4406
4407 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4408 strdup() the family UTF8String before modifying it.
4409
44102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4411
4412 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4413 NS_FACE_BACKGROUND with 0 instead of nil.
4414 * nsfont.m (nsfont_draw): Same.
4415
44162008-07-19 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * nsfns.m (ns_set_background_color): Fix crash.
4419
44202008-07-18 Chong Yidong <cyd@stupidchicken.com>
4421
4422 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4423
44242008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4425
4426 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4427
44282008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4429
4430 * gtkutil.c: Include <config.h> instead of "config.h".
4431
4432 * lisp.h (Foverlay_buffer): Add EXFUN.
4433
4434 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4435 child process to complete child_setup. Undo 2005-09-21 change.
4436
4437 * s/darwin.h: Mention setsid after vfork.
4438
44392008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4440
4441 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4442 Depend on macgui.h.
4443
4444 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4445 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4446
4447 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4448 and f19.
4449 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4450
4451 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4452 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4453 Remove enumerators.
4454
4455 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4456 Check if FACE_FROM_ID returns NULL.
4457
44582008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4459
4460 * w32inevt.c (change_frame_size): Remove extern declaration.
4461 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4462 change_frame_size.
4463
44642008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4465
4466 * getloadavg.c: Revert last change (2008-07-15).
4467
44682008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4469
4470 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4471 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4472 from configure.
4473
44742008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4475
4476 * s/sol2.h:
4477 * s/sol2-4.h: Reorganize conditionals.
4478
4479 * ecrt0.c: Remove code depending on m68000, not used anymore.
4480
4481 * fns.c (hash_remove): Make static.
4482 * lisp.h (hash_remove): Don't prototype.
4483
4484 * m/ibmrs6000.h:
4485 * m/ibms390x.h:
4486 * m/macppc.h: Remove boilerplate comments.
4487
4488 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4489 Solaris, which does not need them.
4490
4491 * m/vax.h: Remove comments about unsupported systems.
4492
4493 * s/darwin.h: Reorganize ifdefs.
4494
44952008-07-17 Andreas Schwab <schwab@suse.de>
4496
4497 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4498
44992008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4500
4501 Use SDATA. Follow coding convention of placing operators at
4502 beginning of next line rather than end of previous line, and placing
4503 spaces around infix operators.
4504
4505 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4506 in case it was defined already.
4507 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4508 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4509 ns_default.
4510 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4511 Lisp_Objects.
4512 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4513 (ns_defined_color, ns_color_to_lisp): Declare.
4514 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4515 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4516 it's accepted even with USE_LISP_UNION_TYPE.
4517 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4518 (update_frame_tool_bar): Remove apparently obsolete tests for
4519 non-integerness of f->tool_bar_lines.
4520 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4521 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4522 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4523 (nsfont_open): Don't confuse NULL for Qnil.
4524 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4525 * menu.h (find_and_call_menu_selection):
4526 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4527 (find_and_return_menu_selection): Always return something.
4528 * frame.h: Include dispextern.h for Display_Info.
4529 (display_x_get_resource): Declare.
4530
45312008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4532
4533 * syntax.c: Remove stdio.h include accidentally introduced in
4534 Emacs.app commit.
4535 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4536 NS_IMPL_COCOA.
4537 * keyboard.c (handle_async_input, input_available_signal): Remove
4538 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4539
45402008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4541
4542 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4543 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4544 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4545 Use SDATA.
4546
4547 * keymap.c: Remove all NS-specific code.
4548 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4549 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4550 where_is_preferred_modifier, return a different value depending on how
4551 preferred is the binding.
4552 (where_is_internal): Adjust accordingly.
4553 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4554 Adjust to new preferred_sequence_p.
4555 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4556 * keyboard.c (parse_solitary_modifier): Not static any more.
4557 * keyboard.h (parse_solitary_modifier): Declare.
4558
45592008-07-16 Andreas Schwab <schwab@suse.de>
4560
4561 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4562 of easymenu.
4563
45642008-07-16 Chong Yidong <cyd@stupidchicken.com>
4565
4566 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4567 that we don't move off the line.
4568
45692008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4570
4571 * keyboard.c (Qsuper): Remove.
4572 (parse_menu_item): Don't call where_is_internal specially for NS.
4573
45742008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4575
4576 * s/gnu-linux.h: Remove boilerplate comments.
4577
4578 * m/alpha.h (__ELF__): Consolidate conditions.
4579
4580 * m/m68k.h (linux): Use GNU_LINUX instead.
4581 Remove boilerplate comments.
4582
4583 * m/intel386.h: Undo refactoring from previous change.
4584 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4585 too, remove dead code.
4586 (linux): Use GNU_LINUX instead.
4587
45882008-07-16 Jason Rumney <jasonr@gnu.org>
4589
4590 * w32gui.h: Repeat 26 June changes lost by last change.
4591
45922008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4593
4594 * systty.h: Remove code for Aix on 386, unsupported platform.
4595
4596 * s/ms-w32.h: Remove boilerplate comments.
4597 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4598
4599 * s/gnu-linux.h (TERM): Remove support.
4600 (HAVE_SYSVIPC): Remove, unused.
4601 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4602 for this system.
4603
4604 * process.c: Remove support for IRIS, unused.
4605 Remove support for TERM, not relevant anymore.
4606
4607 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4608 used with the definition.
4609
4610 * s/aix4-2.h (static): Do not undef.
4611
4612 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4613 only used on Aix.
4614 (HAVE_SYSVIPC): Remove, unused.
4615
4616 * m/hp800.h (CANNOT_DUMP): Do not undef.
4617
4618 * m/alpha.h: Fix comment.
4619
4620 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4621 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4622 used by this configuration.
4623 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4624 * unexec.c: Remove code depending on HPUX and
4625 USG_SHARED_LIBRARIES, not used with this file. Remove code
4626 depending on IRIS, unused. Remove if 0-ed code.
4627
4628 * s/template.h: Remove comments about static.
4629
4630 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4631 Remove if 0-ed code.
4632 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4633 were the same as the default.
4634 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4635 Remove boilerplate comments.
4636 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4637 (HAVE_SYSVIPC): Remove, unused.
4638 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4639
4640 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4641 Remove boilerplate comments.
4642 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4643 Remove boilerplate comments.
4644 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4645 Remove boilerplate comments.
4646 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4647
4648 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4649 USG systems which do not use DATA_SEG_BITS.
4650 Refactor code. Remove boilerplate comments.
4651
4652 * m/ibms390.h:
4653 * m/m68k.h:
4654 * s/bsd-common.h:
4655 * s/cygwin.h:
4656 * s/darwin.h:
4657 * s/freebsd.h:
4658 * s/gnu.h:
4659 * s/msdos.h: Remove boilerplate comments.
4660
4661 * m/iris4d.h: Remove boilerplate comments and code for systems that
4662 do not use this file.
4663 (IRIS_4D): Remove, unused.
4664
4665 * m/mips.h: Remove boilerplate comments and code for systems that
4666 do not use this file.
4667 (SIGN_EXTEND_CHAR):
4668 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4669 * unexmips.c: Remove file, unused.
4670
4671 * editfns.c (Fuser_full_name): Replace the only use of
4672 USER_FULL_NAME with its value.
4673 * config.in: Regenerate.
4674
46752008-07-16 David Reitter <david.reitter@gmail.com>
4676
4677 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4678 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4679
46802008-07-16 Glenn Morris <rgm@gnu.org>
4681
4682 * emacs.c (system-type): Doc fix.
4683
46842008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4685
4686 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4687 If the cache doesn't work, let's fix it, rather than work around it.
4688
46892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4690
4691 * Makefile.in: Correct additions for nsfont.o in last commit.
4692 * nsfont.m: New file (forgot last commit).
4693
46942008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4695
4696 * callproc.c (set_initial_environment): Initialize
4697 Vprocess_environment under CANNOT_DUMP (fixes crash when
4698 batch-compiling for bootstrap).
4699
47002008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4701 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4702
4703 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4704 fix crash due to different init order.
4705
47062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4707
4708 Changes and additions for NeXTstep windowing system (Cocoa and
4709 GNUstep) support.
4710
4711 * Makefile.in:
4712 * config.in: Support defines and build commands for NS port.
4713 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4714 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4715 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4716 windowing.
4717 (struct face): Add synth_ital field.
4718 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4719 (init_display): Initialize Vinitial_window_system to "ns" when so
4720 compiled.
4721 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4722 (display_arg): Use under NS.
4723 (main): Under NS, allocate autorelease pool and handle command line
4724 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4725 (standard_args): Add NS-specific args.
4726 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4727 * font.c (DEFAULT_ENCODING): New variable.
4728 (font_find_for_lface): Use it.
4729 (syms_of_font): Load syms_of_nsfont under NS.
4730 * font.h: Declare nsfont_driver when compiled under NS.
4731 * fontset.c: When compiling under NS, include nsterm.h.
4732 (fontset_from_font): Autoconstruct fontset under NS.
4733 * frame.c (various): Under NS, include nsterm.h, add Qns window system
4734 symbol, document and use it.
4735 (do_switch_frame): When for_deletion under Cocoa, add
4736 Fraise_frame(Qnil).
4737 (x_set_frame_parameters): Ensure font attribute changes are picked up.
4738 (x_get_arg): Allow "yes" and "no" as boolean values.
4739 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
4740 Qright under Cocoa.
4741 (focus-follows-mouse): Default to 0 under NS.
4742 * frame.h (enum output_method): Add output_ns.
4743 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
4744 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
4745 (FRAME_WINDOW_P): NS-specific definition.
4746 * fringe.c (max_used_fringe_bitmap): Make public.
4747 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
4748 (getloadavg): Use NeXT code under descendant OS's.
4749 * image.c (includes and header section, x_create_bitmap_from_data)
4750 (x_create_bitmap_from_file, free_bitmap_record, image_background)
4751 (image_background_transparent, x_clear_image_1)
4752 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4753 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
4754 (x_to_xcolors, x_from_xcolors, x_disable_image)
4755 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
4756 other GUIs, including XPM support using code originally written for
4757 Carbon GUI.
4758 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
4759 using NS API.
4760 (image_ascent): Use font metrics macros instead of direct struct field
4761 access.
4762 * keyboard.c (includes): Add nsterm.h when compiling under NS.
4763 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
4764 Also, handle NS as GTK for menu bar purposes.
4765 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
4766 toolkit where they differ.
4767 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
4768 use cachelist, still needed under NS.
4769 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
4770 (struct widget_value): Define it here for menu.c.
4771 * keymap.c (includes): Include modifier internals.
4772 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
4773 NS.
4774 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
4775 support for preferring sequences using certain modifiers, specified by
4776 the FIRSTONLY argument.
4777 * lisp.h (hash_remove): Rename to avoid name clash when compiling
4778 under NS GNUstep implementation.
4779 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
4780 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
4781 * menu.c: Include nsterm.h under NS.
4782 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
4783 (free_menubar_widget_tree_value, update_submenu_strings)
4784 (find_and_call_menu_selection): Treat NS as X and NT.
4785 (find_and_return_menu_selection): New function, used for popup menus.
4786 * nsgui.h:
4787 * nsterm.h:
4788 * nsfns.m:
4789 * nsimage.m:
4790 * nsmenu.m:
4791 * nsselect.m:
4792 * nsterm.m: New files.
4793 * process.c (wait_reading_process_output): Under NS, call ns_select()
4794 instead of plain select().
4795 * syntax.c (char_quoted): Under NS, avoid a crash when called near
4796 beginning of buffer.
4797 * sysselect.h (init_process): Rename when compiling under Cocoa to
4798 avoid name conflict.
4799 * termhooks.h (display_info): Add ns_display_info to union.
4800 * terminal.c (Fterminal_live_p): Add ns to terminal types.
4801 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
4802 COCOA environment.
4803 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
4804 unexec() signature. (Note, this will dump, but the resulting file
4805 crashes; unexosx is used instead; keeping around for reference and
4806 possible aid in getting dump working under GNUstep.)
4807 * w32gui.h (button_type, widget_value): Remove definitions (now in
4808 keyboard.h).
4809 * window.c: Include nsterm.h when compiling under NS.
4810 * xdisp.c (includes): Include nsterm.h when compiling under NS.
4811 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
4812 other GUI windowing systems.
4813 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
4814 GTK.
4815 (x_consider_frame_title): Under NS, set icon type and frame
4816 modified-state indicator; use ns_set_name_as_filename() when using
4817 formatted title.
4818 (update_window_cursor): Make public when compiling under NS.
4819 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
4820 (hourglass_atimer, Vhourglass_delay
4821 * xfaces.c (header section, init_frame_faces, clear_font_table)
4822 (defined_color, unload_color, x_face_list_fonts)
4823 (prepare_face_for_display): Add NS support parallel to other GUIs.
4824 Emulate GCs like other non-X GUIs.
4825 (split_font_name): Don't lowercase font name under NS.
4826 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
4827 under NS.
4828 * s/darwin.h: Add support for compilation under NS.
4829
48302008-07-15 Jason Rumney <jasonr@gnu.org>
4831
4832 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
4833 (w32_show_hourglass): Rename from show_hourglass.
4834 (w32_hide_hourglass): Rename from hide_hourglass.
4835 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
4836 (Vhourglass_delay): Declare extern.
4837 (hourglass_started): Remove.
4838
4839 * xdisp.c (Vhourglass_delay): Remove static.
4840 (hourglass_started, start_hourglass, cancel_hourglass):
4841 Don't include these versions on WINDOWSNT.
4842
48432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4844
4845 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
4846 variables (formerly in xfns.c).
4847 (show_hourglass, hide_hourglass): New prototypes (same).
4848 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
4849 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
4850 in xfns.c).
4851 (syms_of_xdisp): Declare/initialize display-hourglass,
4852 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
4853 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
4854 formerly in xfns.c.
4855 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4856 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4857 (start_hourglass, cancel_hourglass): Remove.
4858 (show_hourglass, hide_hourglass): Remove prototypes and static
4859 modifiers.
4860 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
4861 hourglass_atimer, hourglass_shown_p declaration/initialization.
4862 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4863 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4864 (start_hourglass, cancel_hourglass): Remove.
4865 (show_hourglass, hide_hourglass): Remove prototypes and static
4866 modifiers.
4867 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
4868 hourglass_atimer, hourglass_shown_p declaration/initialization.
4869 * w32fns.c (display_hourglass_p, Vhourglass_delay)
4870 (DEFAULT_HOURGLASS_DELAY): Remove.
4871 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
4872 hourglass_shown_p declaration/initialization.
4873
48742008-07-14 Jason Rumney <jasonr@gnu.org>
4875
4876 * w32fns.c (w32_get_arg): Remove wrapper function.
4877 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
4878 directly.
4879 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
4880
48812008-07-14 Kenichi Handa <handa@m17n.org>
4882
4883 * xfont.c (xfont_open): Add workaround for X's bug.
4884
48852008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4886
4887 * fontset.c: Include <stdio.h> unconditionally.
4888
48892008-07-13 Michael Albinus <michael.albinus@gmx.de>
4890
4891 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
4892 for filtering.
4893
48942008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4895
4896 * s/vms.h: Use __GNUC__ instead of _GNUC_.
4897
4898 * m/macppc.h:
4899 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
4900
4901 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
4902 (SPECIAL_EMACS_INT):
4903 * m/ia64.h (SPECIAL_EMACS_INT):
4904 * m/amdx86-64.h (SPECIAL_EMACS_INT):
4905 * s/gnu.h (NLIST_STRUCT):
4906 * s/aix4-2.h (X11R5_INHIBIT_I18N):
4907 * s/gnu-linux.h (LINUX):
4908 * s/msdos.h (HAVE_FACES):
4909 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
4910
4911 * systty.h:
4912 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
4913 anymore.
4914
49152008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4916
4917 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
4918 always defined as int.
4919
4920 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
4921 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
4922 * s/gnu-linux.h (HAVE_WAIT_HEADER):
4923 * s/freebsd.h (HAVE_WAIT_HEADER):
4924 * s/bsd-common.h (HAVE_UNION_WAIT):
4925 * s/aix4-2.h (HAVE_WAIT_HEADER):
4926 * m/mips.h (HAVE_UNION_WAIT):
4927 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
4928 (COFF, static): Do not define, they are undefined later in the file.
4929
4930 * process.c (update_status): Don't use a union.
4931 (status_convert):
4932 (sigchld_handler): Use int instead of WAITTYPE.
4933
49342008-07-12 Chong Yidong <cyd@stupidchicken.com>
4935
4936 * indent.c (Fvertical_motion): Restore hscroll before moving to
4937 goal column.
4938
49392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4940
4941 * lisp.h: Remove left over code.
4942
49432008-07-11 Andreas Schwab <schwab@suse.de>
4944
4945 * lisp.h: Fix logic in last change.
4946
4947 * menu.h: New file.
4948 * menu.c: Include it.
4949 * xmenu.c: Likewise.
4950 * Makefile.in: Update dependencies.
4951
49522008-07-11 Kenichi Handa <handa@m17n.org>
4953
4954 * fontset.c (fontset_from_font): Cancel the previous change.
4955
49562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4957
4958 * lisp.h:
4959 * w32heap.c:
4960 * emacs.c:
4961 * alloc.c: Replace all references of NO_UNION_TYPE with
4962 USE_LISP_UNION_TYPE.
4963
4964 * m/xtensa.h (NO_UNION_TYPE):
4965 * m/vax.h (NO_UNION_TYPE):
4966 * m/template.h (NO_UNION_TYPE):
4967 * m/sparc.h (NO_UNION_TYPE):
4968 * m/mips.h (NO_UNION_TYPE):
4969 * m/macppc.h (NO_UNION_TYPE):
4970 * m/m68k.h (NO_UNION_TYPE):
4971 * m/iris4d.h (NO_UNION_TYPE):
4972 * m/intel386.h (NO_UNION_TYPE):
4973 * m/ibms390x.h (NO_UNION_TYPE):
4974 * m/ibms390.h (NO_UNION_TYPE):
4975 * m/ibmrs6000.h (NO_UNION_TYPE):
4976 * m/ia64.h (NO_UNION_TYPE):
4977 * m/hp800.h (NO_UNION_TYPE):
4978 * m/arm.h (NO_UNION_TYPE):
4979 * m/amdx86-64.h (NO_UNION_TYPE):
4980 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
4981 defining it the same.
4982
49832008-07-10 Chong Yidong <cyd@stupidchicken.com>
4984
4985 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
4986
49872008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4988
4989 * fileio.c:
4990 * sysdep.c
4991 * systty.h:
4992 * m/ibmrs6000.h:
4993 * m/iris4d.h:
4994 * s/aix4-2.h:
4995 * s/freebsd.h:
4996 * s/gnu-linux.h:
4997 * s/hpux10-20.h:
4998 * s/hpux11.h:
4999 * s/netbsd.h:
5000 * s/sol2-3.h:
5001 * s/sol2-4.h:
5002 * s/sol2.h:
5003 * s/usg5-4.h:
5004 * s/vms.h: Remove references to unused variables.
5005
50062008-07-10 Andreas Schwab <schwab@suse.de>
5007
5008 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5009 pattern before matching the generic family.
5010
50112008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5012
5013 * unexec.c:
5014 * s/vms.h:
5015 * s/usg5-4-2.h:
5016 * s/sol2-5.h:
5017 * s/freebsd.h:
5018 * s/darwin.h: Remove dead code.
5019
5020 * m/template.h:
5021 * m/sparc.h:
5022 * m/mips.h:
5023 * m/m68k.h:
5024 * m/iris4d.h:
5025 * m/intel386.h:
5026 * m/ibms390x.h:
5027 * m/ibms390.h:
5028 * m/ia64.h:
5029 * m/hp800.h:
5030 * m/arm.h:
5031 * m/amdx86-64.h: Remove dead code and references to unused
5032 and compiler defined symbols.
5033
5034 * unexmips.c:
5035 * unexelf.c: Remove references to desupported systems.
5036
5037 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5038
5039 * m/powermac.h: Remove boilerplate comments.
5040 (NO_REMAP): Remove unused definition.
5041
5042 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5043 define them.
5044
50452008-07-10 Kenichi Handa <handa@m17n.org>
5046
5047 * xfont.c (xfont_open): Log the reason of failure.
5048
50492008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5050
5051 * fontset.c (fontset_get_font_group):
5052 * font.c (font_check_otf): Specify argument types.
5053
50542008-07-09 Kenichi Handa <handa@m17n.org>
5055
5056 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5057 non-ASCII char is found.
5058
5059 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5060 (reorder_font_vector): Change the arg preferred_family to font.
5061 Prefer the spec matching with font.
5062 (fontset_get_font_group): New function.
5063 (fontset_find_font): Change the format of an element of a realized
5064 fontset. Use fontset_get_font_group.
5065 (fontset_font): Try the current fontset, the default fontset, the
5066 fallbacks of the current fontset, and the fallbacks of the default
5067 fontset in this order.
5068 (face_for_char): Delete the shortcut to use the current font.
5069 (fontset_from_font): Don't set fonts for Latin in the fontset.
5070
5071 * font.h (font_make_object, font_match_p): Adjust prototypes.
5072
5073 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5074
5075 * font.c (font_make_object): New arg entity and pixelsize.
5076 (font_check_otf_features, font_check_otf): New functions.
5077 (font_match_p): Check :lang, :script, and :otf properties.
5078
5079 * xfont.c (xfont_open): Adjust it for the change of
5080 font_make_object.
5081 (xfont_text_extents): Fix initial setting of metrics.
5082
5083 * ftfont.c (struct ftfont_info): New member index, delete member
5084 fc_charset_idx. Make the member order compatible with struct
5085 xftfont_info.
5086 (fc_charset_table): Change charset names to registry names.
5087 (ftfont_pattern_entity): Delete the args registry and
5088 fc_charset_idx. Change the value of :font-entity property
5089 to (FONTNAME . INDEX). Always set :registry property to
5090 `iso10646-1'.
5091 (struct ftfont_cache_data): New struct.
5092 (ftfont_lookup_cache): New arg for_face.
5093 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5094 (ftfont_driver): Set the member otf_capability.
5095 (ftfont_get_charset): Adjust it for the change of
5096 fc_charset_table.
5097 (OTF_TAG_SYM): New macro.
5098 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5099 for the change of fc_charset_table.
5100 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5101 ftfont_pattern_entity. Add FC_INDEX to objset.
5102 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5103 and ftfont_pattern_entity.
5104 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5105 font_make_object, struct ftfont_info.
5106 (ftfont_has_char): Use ftfont_get_fc_charset.
5107 (ftfont_otf_features, ftfont_otf_capability): New functions.
5108 (ftfont_shape): Use ftfont_get_otf.
5109 (ftfont_text_extents): Fix initial setting of metrics.
5110
5111 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5112 member order compatible with struct ftfont_info.
5113 (xftfont_open): Add FC_CHARSET to the pattern. Set
5114 xftfont_info->ft_size. Don't unlock the face. Check BDF
5115 properties if appropriate.
5116 (xftfont_close): Unlock the face.
5117 (xftfont_anchor_point, xftfont_shape): Deleted.
5118 (syms_of_xftfont): Don't set members anchor_point and shape of
5119 xftfont_driver.
5120
5121 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5122 font_make_object.
5123
5124 * w32font.c (w32font_open): Adjust it for the change of
5125 font_make_object.
5126 (w32font_open_internal): Don't set properties of font_object here.
5127
51282008-07-08 Chong Yidong <cyd@stupidchicken.com>
5129
5130 * macfns.c (x_create_tip_frame):
5131 * w32fns.c (x_create_tip_frame):
5132 * xfns.c (x_create_tip_frame): Pass parameter argument to
5133 face-set-after-frame-default.
5134
5135 * xfaces.c (Finternal_merge_in_global_face): Save merged
5136 attributes for the default face back into the face vector.
5137
51382008-07-08 Andreas Schwab <schwab@suse.de>
5139
5140 * fontset.h: Declare fontset_from_font. Don't declare
5141 new_fontset_from_font and fontset_from_font_name.
5142 * xterm.c: Include "fontset.h".
5143 * Makefile.in (xterm.o): Update dependencies.
5144
51452008-07-08 Glenn Morris <rgm@gnu.org>
5146
5147 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5148 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5149
51502008-07-07 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5153 (x_set_frame_parameters): Don't bind it.
5154
51552008-07-07 Juanma Barranquero <lekktu@gmail.com>
5156
5157 * w32fns.c (map_w32_filename): Declare extern.
5158
51592008-07-07 Jason Rumney <jasonr@gnu.org>
5160
5161 * w32term.c (WS_EX_LAYERED): Define if not already.
5162
51632008-07-06 Chong Yidong <cyd@stupidchicken.com>
5164
5165 * xfaces.c (set_font_frame_param): Don't try to set the font
5166 parameter if it is still unspecified in the lface.
5167
51682008-07-05 Chong Yidong <cyd@stupidchicken.com>
5169
5170 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5171 face if it didn't already exist.
5172
5173 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5174
51752008-07-05 Andreas Schwab <schwab@suse.de>
5176
5177 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5178
51792008-07-05 Chong Yidong <cyd@stupidchicken.com>
5180
5181 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5182 word-wrapping.
5183 (IT_DISPLAYING_WHITESPACE): New macro.
5184 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5185 when word-wrapping. Simplify word-wrapping logic. Use correct
5186 pixel positions when saving copies of the iterator.
5187 (display_line): Use proper wrap point if the last character on a
5188 line was preceded by whitespace.
5189
51902008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5191
5192 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5193
51942008-07-04 Kenichi Handa <handa@m17n.org>
5195
5196 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5197
5198 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5199
52002008-07-02 Jason Rumney <jasonr@gnu.org>
5201
5202 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5203 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5204
5205 * xdisp.c (next_element_from_display_vector): Move assignment out
5206 of if statement.
5207
52082008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5209
5210 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5211
5212 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5213 (syms_of_fileio): Initialize and export them.
5214 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5215
5216 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5217 (Fsystem_move_file_to_trash): New function.
5218 (syms_of_w32fns): Export it to lisp.
5219
52202008-07-01 Jason Rumney <jasonr@gnu.org>
5221
5222 * w32font.c (w32font_text_extents): Don't count overhang as part
5223 of width.
5224
52252008-06-30 Miles Bader <miles@gnu.org>
5226
5227 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5228 Add `avoid_cursor_p' field.
5229
5230 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5231 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5232 (append_glyph, append_composite_glyph, produce_image_glyph)
5233 (append_stretch_glyph): Initialize avoid_cursor_p.
5234 (get_it_property): Rename from `get_line_height_property'.
5235 (x_produce_glyphs): Use get_it_property.
5236 (handle_line_prefix, push_display_prop): New functions.
5237 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5238 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5239 New variables.
5240 (syms_of_xdisp): Initialize them.
5241
52422008-06-30 Kenichi Handa <handa@m17n.org>
5243
5244 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5245 XftDefaultSubstitute (they are called in XftFontMatch).
5246 (xftfont_open): Fix args to ftfont_font_format.
5247
5248 * ftfont.c (fc_charset_table): New member lang.
5249 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5250 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5251 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5252 (ftfont_open): Fix args to ftfont_font_format.
5253 (ftfont_font_format): New arg filename.
5254
52552008-06-30 Chong Yidong <cyd@stupidchicken.com>
5256
5257 * xfaces.c (Finternal_merge_in_global_face): If default face was
5258 modified, realize it again. Update the font face attribute.
5259
52602008-06-29 Jason Rumney <jasonr@gnu.org>
5261
5262 * w32term.c (x_set_frame_alpha): Fix logic.
5263
52642008-06-29 Kenichi Handa <handa@m17n.org>
5265
5266 * fontset.c (Finternal_char_font): Return font-object instead of
5267 font-name.
5268
5269 * composite.c (get_composition_id): Fix the width calculation for TAB.
5270
52712008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5272
5273 * indent.c (Fvertical_motion): Properly handle float column arg.
5274
52752008-06-28 Jason Rumney <jasonr@gnu.org>
5276
5277 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5278 (pfnSetLayeredWindowAttributes): New function pointer.
5279 (w32_initialize): Initialize it when supported.
5280 (x_set_frame_alpha): New function.
5281
5282 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5283 (w32_frame_parm_handlers): Set alpha handler.
5284
5285 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5286
52872008-06-27 Jason Rumney <jasonr@gnu.org>
5288
5289 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5290 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5291 (w32_to_x_charset, x_to_w32_charset)
5292 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5293 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5294 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5295 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5296 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5297 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5298 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5299 (Qw32_charset_unicode): Remove.
5300 (syms_of_w32fns): Update for above changes.
5301
5302 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5303 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5304 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5305 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5306 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5307 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5308 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5309 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5310 (syms_of_w32font): Update for above changes.
5311
53122008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5313
5314 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5315 removed #if.
5316 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5317
53182008-06-26 Juanma Barranquero <lekktu@gmail.com>
5319 Eli Zaretskii <eliz@gnu.org>
5320
5321 * makefile.w32-in (LOCAL_FLAGS):
5322 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5323
5324 * sysdep.c (_spawnlp, _getpid):
5325 Declare with explicit _cdecl instead of _CRTAPI1.
5326
5327 * editfns.c (Fget_internal_run_time):
5328 Check for WINDOWSNT with #ifdef, not #if.
5329
53302008-06-26 Jason Rumney <jasonr@gnu.org>
5331
5332 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5333
5334 * w32term.c (x_draw_glyph_string_foreground)
5335 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5336 Use FONT_HANDLE macro.
5337 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5338
5339 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5340 (uniscribe_encode_char): Use FONT_HANDLE macro.
5341
5342 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5343 (w32font_text_extents): Use precast w32_font.
5344 (w32font_close): Free cached metrics.
5345 (w32font_open_internal): Allocate space for name on stack.
5346
53472008-06-26 Chong Yidong <cyd@stupidchicken.com>
5348
5349 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5350
53512008-06-26 Jason Rumney <jasonr@gnu.org>
5352
5353 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5354 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5355
53562008-06-26 Juanma Barranquero <lekktu@gmail.com>
5357
5358 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5359
53602008-06-26 Jason Rumney <jasonr@gnu.org>
5361
5362 * w32bdf.c, w32bdf.h: Remove obsolete files.
5363
5364 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5365
5366 * w32gui.h: Don't include w32bdf.h.
5367 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5368 Remove obsolete font support.
5369
5370 * w32font.h (struct w32font_info): Remove compat_w32_font.
5371 Add hfont member.
5372 (FONT_COMPAT): Remove obsolete macro.
5373
5374 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5375 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5376 (w32font_open_internal): Remove compat code. Set new hfont member.
5377 (Fx_select_font): Use new hfont member.
5378
5379 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5380 (uniscribe_encode_char): Use new hfont member.
5381
5382 * w32term.c (x_draw_glyph_string_foreground)
5383 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5384 (x_draw_glyph_string): Use metrics in w32font_info.
5385
53862008-06-26 Kenichi Handa <handa@m17n.org>
5387
5388 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5389
53902008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5391
5392 * unexnext.c:
5393 * m/ews4800.h:
5394 * m/hp9000s300.h:
5395 * m/ibm370aix.h:
5396 * m/mips-siemens.h:
5397 * m/ncr386.h:
5398 * m/next.h:
5399 * m/pmax.h:
5400 * m/powerpcle.h:
5401 * m/tandem-s2.h:
5402 * s/386bsd.h:
5403 * s/bsd386.h:
5404 * s/bsd4-1.h:
5405 * s/bsd4-2.h:
5406 * s/bsdos2-1.h:
5407 * s/bsdos2.h:
5408 * s/bsdos3.h:
5409 * s/bsdos4.h:
5410 * s/nextstep.h:
5411 * s/ultrix4-3.h:
5412 * s/usg5-0.h:
5413 * s/usg5-2-2.h:
5414 * s/usg5-2.h:
5415 * s/usg5-4-3.h:
5416 * s/ux4800.h:
5417 * s/uxpds.h:
5418 * s/uxpv.h: Remove support for obsolete systems.
5419 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5420 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5421 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5422 Remove, insert contents in s/aix4-2.h.
5423 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5424 * s/bsd4-3.h: Rename to ...
5425 * s/bsd-common.h: ... this.
5426 * data.c:
5427 * doc.c:
5428 * ecrt0.c:
5429 * emacs.c:
5430 * fileio.c:
5431 * floatfns.c:
5432 * keyboard.c:
5433 * mem-limits.h:
5434 * print.c:
5435 * process.c:
5436 * sysdep.c:
5437 * syssignal.h:
5438 * systty.h:
5439 * syswait.h:
5440 * term.c:
5441 * unexec.c:
5442 * unexelf.c:
5443 * unexhp9k800.c:
5444 * m/hp800.h:
5445 * m/ibmrs6000.h:
5446 * m/mips.h:
5447 * m/vax.h:
5448 * s/darwin.h:
5449 * s/freebsd.h:
5450 * s/gnu.h:
5451 * s/ms-w32.h:
5452 * s/msdos.h:
5453 * s/netbsd.h:
5454 * s/template.h: Remove references to obsolete variables.
5455
5456 * Makefile.in: Add dependencies for all unexec files.
5457 (admindir): Remove unused variable.
5458 (UNEXEC_SRC): Remove references.
5459
54602008-06-25 Chong Yidong <cyd@stupidchicken.com>
5461
5462 * xfns.c (x_default_font_parameter): If Xft is available, first
5463 try Monospace-12 for the default font.
5464
54652008-06-25 Jason Rumney <jasonr@gnu.org>
5466
5467 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5468
54692008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5470
5471 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5472
5473 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5474
54752008-06-25 Juanma Barranquero <lekktu@gmail.com>
5476
5477 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5478 <scroll-conservatively>: Fix typo in docstring.
5479
5480 * xselect.c (Fx_send_client_event): Doc fix.
5481
54822008-06-25 Kenichi Handa <handa@m17n.org>
5483
5484 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5485
5486 * font.c (font_parse_fcname): Remove unused variables.
5487 (font_sort_entites): Delete the arg SPEC. Caller changed.
5488 Fix for the case of ! best_only.
5489 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5490
5491 * lisp.h (Fstring_to_unibyte): EXFUN it.
5492
5493 * character.h (str_to_unibyte): Extern it.
5494
5495 * character.c (str_to_unibyte): New function.
5496
5497 * fns.c (Fstring_to_unibyte): New function.
5498 (syms_of_fns): Defsubr it.
5499
55002008-06-24 Kenichi Handa <handa@m17n.org>
5501
5502 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5503 DPI too.
5504 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5505
55062008-06-24 Andreas Schwab <schwab@suse.de>
5507
5508 * Makefile.in (${lispsource}loaddefs.el): Rename from
5509 ../lisp/loaddefs.el.
5510 (bootstrap-clean): Do what distclean does but don't remove
5511 Makefile.
5512 (distclean): Depend on bootstrap-clean and remove Makefile.
5513
55142008-06-24 Chong Yidong <cyd@stupidchicken.com>
5515
5516 * buffer.h (struct buffer): New member word_wrap.
5517
5518 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5519 word-wrap.
5520 (init_buffer_once): Initialize them.
5521
5522 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5523 line_wrap enum possessing three possible values.
5524
5525 * termopts.h: Replace truncate_partial_width_windows with
5526 Vtruncate_partial_width_windows.
5527
5528 * dispnew.c (direct_output_for_insert): Avoid direct output when
5529 inserting a space with word wrap on.
5530
5531 * indent.c (compute_motion): Obey integer values of
5532 truncate-partial-width-windows.
5533
5534 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5535 replacing truncate_partial_width_windows.
5536 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5537 truncate only if the window width is below that integer.
5538 (start_display, resize_mini_window, produce_stretch_glyph)
5539 (display_string, move_it_in_display_line_to): Use line_wrap.
5540 (back_to_previous_visible_line_start, reseat_1): Reset
5541 string_from_display_prop_p.
5542 (display_line): Extend default face to end of line when wrapping.
5543
55442008-06-24 Kim F. Storm <storm@cua.dk>
5545
5546 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5547 to wrap continued lines at word boundaries.
5548
55492008-06-24 Jason Rumney <jasonr@gnu.org>
5550
5551 * font.c (Ffont_face_attributes): Multiply pixel size before point
5552 conversion to avoid multiplying rounding error.
5553
55542008-06-23 Jason Rumney <jasonr@gnu.org>
5555
5556 * w32term.c (x_draw_glyph_string_background)
5557 (x_draw_glyph_string): Remove old bdf font code.
5558
5559 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5560
55612008-06-22 Kenichi Handa <handa@m17n.org>
5562
5563 * font.c (font_find_for_lface): Try the adstyle specified in
5564 the property of LFACE_FONT of LFACE (if any).
5565
55662008-06-21 Seiji Zenitani <zenitani@mac.com>
5567 Ryo Yoshitake <ryo@shiftmode.net>
5568
5569 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5570
55712008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5572
5573 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5574 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5575 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5576 (witness-emacs): Remove.
5577 (lisp, shortlisp): Move loaddefs.el earlier.
5578 (mostlyclean): Forget about witness-emacs.
5579
55802008-06-22 Glenn Morris <rgm@gnu.org>
5581
5582 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5583 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5584
55852008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5586
5587 * Makefile.in (PRECOMP): Remove.
5588 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5589 (witness-emacs): Run `compile-first'.
5590 (.el.elc): Use the new compile-onefile target.
5591
55922008-06-21 Kenichi Handa <handa@m17n.org>
5593
5594 * xftfont.c (xftfont_open): Handle QCembolden only when
5595 FC_EMBOLDEN is defined.
5596
55972008-06-21 Andreas Schwab <schwab@suse.de>
5598
5599 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5600 (.el.elc): Likewise.
5601
56022008-06-21 Miles Bader <miles@gnu.org>
5603
5604 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5605 build dir, not the lisp source dir.
5606
56072008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5608
5609 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5610 (bootstrapclean): Remove.
5611 (.el.elc): New rule.
5612 (PRECOMP): New var.
5613 (../lisp/subdirs.el): Remove.
5614 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5615 (witness-emacs): New target.
5616 (mostlyclean): Remove witness-emacs as well.
5617 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5618 Add witness-emacs dependency.
5619
56202008-06-20 Chong Yidong <cyd@stupidchicken.com>
5621
5622 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5623 defined by the font.
5624
56252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5626
5627 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5628 (bootstrap-clean): New target that keeps TAGS around.
5629 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5630 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5631
56322008-06-20 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5635 Remove obsolete font code.
5636
5637 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5638 to determine language support.
5639
56402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5641
5642 * sysdep.c (cfsetspeed): New fun extracted from the code.
5643 (cfmakeraw): Move before first use.
5644
56452008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5646
5647 * sysdep.c (cfmakeraw): Provide fallback implementation.
5648 (serial_configure): Provide fallback implementation of cfsetspeed.
5649
56502008-06-20 Kenichi Handa <handa@m17n.org>
5651
5652 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5653 the pattern.
5654
5655 * fontset.c (fontset_from_font): Copy font_spec before changing
5656 the elements.
5657
5658 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5659
56602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5661
5662 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5663 for explicit `font' parameters.
5664
5665 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5666
56672008-06-19 Kenichi Handa <handa@m17n.org>
5668
5669 * frame.c: Include <ctype.h>.
5670 (x_set_font_backend): Allow spacing characters in the X resource
5671 for FontBackend.
5672
56732008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5674
5675 * w32fns.c, xfns.c (Qfont_param): New var.
5676 (syms_of_w32fns): Initialize it.
5677 (x_default_font_parameter): Record explicit `font' into
5678 `font-parameter'.
5679
56802008-06-18 Kenichi Handa <handa@m17n.org>
5681
5682 * font.c (font_parse_xlfd): Fix previous change.
5683 (font_parse_fcname): Don't use :fc-unknown-spec.
5684 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5685 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5686 (font_add_log): Prepend the driver name to the resulting fonts.
5687
5688 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5689 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5690 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5691
5692 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5693 (QCembolden): New variables.
5694 (syms_of_xftfont): DEFSYM them.
5695 (xftfont_open): Call XftFontMatch. Don't trust the result of
5696 XftTextExtents8 if the pixel_size is less than 5.
5697
56982008-06-18 Andreas Schwab <schwab@suse.de>
5699
5700 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5701 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5702
57032008-06-18 Jason Rumney <jasonr@gnu.org>
5704
5705 * w32font.c (w32font_list, w32font_match): Add logging.
5706
5707 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5708
57092008-06-17 Chong Yidong <cyd@stupidchicken.com>
5710
5711 * font.c (font_parse_fcname): Store divider characters for
5712 unknown-spec list. For known key symbols, intern using correct
5713 symbol name.
5714
57152008-06-17 Kenichi Handa <handa@m17n.org>
5716
5717 * xfaces.c (realize_default_face): If the frame is not on window
5718 system, set the fontset of face to nil.
5719
57202008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5721
5722 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5723
57242008-06-16 Juanma Barranquero <lekktu@gmail.com>
5725
5726 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5727 (build_font_name_from_vector): Delete externs.
5728
5729 * xfaces.c (struct font_name): Don't declare.
5730
57312008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5732
5733 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
5734
57352008-06-16 Chong Yidong <cyd@stupidchicken.com>
5736
5737 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
5738
57392008-06-16 Juanma Barranquero <lekktu@gmail.com>
5740
5741 * font.c (Ffont_spec): Fix usage in docstring.
5742 (Ffont_face_attributes): Doc fix.
5743
57442008-06-16 Andreas Schwab <schwab@suse.de>
5745
5746 * font.c (Ffont_face_attributes): Fix definition.
5747
57482008-06-16 Jason Rumney <jasonr@gnu.org>
5749
5750 * font.h (font_style_symbolic_from_value): Remove.
5751
5752 * font.c (font_style_symbolic_from_value): Remove.
5753 (font_style_symbolic): Revert to pre 2008-06-13 version.
5754
5755 * w32font.c (w32_to_fc_weight): New function.
5756 (w32font_full_name, logfont_to_fcname): Use it.
5757
57582008-06-16 Kenichi Handa <handa@m17n.org>
5759
5760 * font.c (font_check_object): Delete it.
5761 (font_clear_cache): Check if a font-object is alive.
5762 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
5763 font-object to nil.
5764 (font_close_object): Don't check FONT_CLOSE_OBJECT.
5765 (font_at): Don't call font_check_object.
5766 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5767
57682008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
5769
5770 * puresize.h (BASE_PURESIZE): Increase to 1230000.
5771
57722008-06-16 Chong Yidong <cyd@stupidchicken.com>
5773
5774 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
5775
57762008-06-15 Chong Yidong <cyd@stupidchicken.com>
5777
5778 * font.c (font_parse_fcname): Only one decimal point.
5779 (font_unparse_fcname): Handle data in family and foundry indices
5780 as symbols, not strings.
5781 (font_unparse_gtkname, Ffont_face_attributes): New functions.
5782
5783 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
5784
5785 * font.h (font_unparse_gtkname): Add prototype.
5786
57872008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5788
5789 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
5790
57912008-06-15 Andreas Schwab <schwab@suse.de>
5792
5793 * font.c (font_update_drivers): Fix crash when no drivers match.
5794
57952008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
5796
5797 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
5798 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
5799
58002008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
5801
5802 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
5803
58042008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5805
5806 * process.c (Fserial_process_configure, Fprocess_send_eof):
5807 Use EQ to compare Lisp_Objects.
5808
58092008-06-13 Jason Rumney <jasonr@gnu.org>
5810
5811 * w32fns.c (Fw32_select_font): Remove old font API function.
5812
5813 * w32font.c (logfont_to_fcname): New function.
5814 (Fx_select_font): New font dialog function compatible with
5815 GTK/fontconfig version.
5816
5817 * font.c (font_style_symbolic_from_value): New function.
5818 (font_style_symbolic): Use it.
5819
5820 * font.h (font_style_symbolic_from_value): Declare new function.
5821
58222008-06-13 Juanma Barranquero <lekktu@gmail.com>
5823
5824 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
5825 <font-width-table>: Fix typos in docstrings.
5826
58272008-06-13 Daniel Engeler <engeler@gmail.com>
5828
5829 These changes add serial port access.
5830 * process.c: Add HAVE_SERIAL.
5831 (Fdelete_process, Fprocess_status, Fset_process_buffer)
5832 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
5833 (list_processes_1, select_wrapper, Fstop_process)
5834 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
5835 (status_notify): Modify to handle serial processes.
5836 [HAVE_SERIAL] (Fserial_process_configure)
5837 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
5838 New functions.
5839 * process.h (struct Lisp_Process): Add `type'.
5840 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
5841 New functions.
5842 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
5843 serial ports.
5844 (serial_open, serial_configure) New functions.
5845 * w32.h: Add FILE_SERIAL.
5846 (struct _child_process): Add ovl_read, ovl_write.
5847
58482008-06-13 Kenichi Handa <handa@m17n.org>
5849
5850 * dispextern.h (enum lface_attribute_index): New member
5851 LFACE_FOUNDRY_INDEX.
5852
5853 * font.c (font_score): Delete arg alternate_families. Check only
5854 weight, slant, width, and size. Ignore the difference of alias
5855 style symbols.
5856 (font_sort_entites): Adjust for the above change. Reflect the
5857 order of font-driver to scores.
5858 (font_list_entities): Don't check alternate_familes here.
5859 (font_clear_prop): Handle foundry.
5860 (font_update_lface): Don't parse "foundry-family" form here.
5861 Handle FONT_FOUNDRY_INDEX.
5862 (font_find_for_lface): Likewise. Handle alternate families here.
5863 If registry is nil, try iso8859-1 and ascii-0.
5864 (font_open_for_lface): Pay attention to size in ENTITY.
5865 (font_open_by_name): Simplify by calling font_load_for_lface.
5866 (free_font_driver_list): Delete it.
5867 (font_update_drivers): Preserve the order of backends.
5868 (syms_of_font): Setting of sort_shift_bits adjusted for the change
5869 of font_score and font_sort_entites.
5870 (font_update_sort_order): Likewise.
5871
5872 * xfaces.c (LFACE_FOUNDRY): New macro.
5873 (check_lface_attrs): Check foundry.
5874 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
5875 (merge_face_vectors): Check foundry.
5876 (merge_face_ref): Likewise.
5877 (Finternal_set_lisp_face_attribute): Likewise.
5878 (x_update_menu_appearance): Likewise.
5879 (Finternal_get_lisp_face_attribute): Likewise.
5880 (lface_hash): Likewise.
5881 (lface_same_font_attributes_p): Likewise.
5882 (x_supports_face_attributes_p): Likewise.
5883 (tty_supports_face_attributes_p): Likewise.
5884 (Finternal_set_alternative_font_family_alist): Intern strings.
5885 (Finternal_set_alternative_font_registry_alist): Downcase strings.
5886 (realize_default_face): Set LFACE_FOUNDRY (lface).
5887
5888 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
5889 font-driver at first.
5890
5891 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
5892
58932008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5894
5895 * lread.c (Fload): Use xfree, not free on saved_doc_string.
5896
58972008-06-12 Jim Meyering <meyering@redhat.com>
5898
5899 Make unexec_free handle NULL the same way free does.
5900 * unexmacosx.c (unexec_free): Ignore a NULL argument.
5901
59022008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
5903
5904 * character.h (CHAR_TO_BYTE_SAFE): New macro.
5905 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
5906 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
5907 (WEAK_ALIAS): Simplify.
5908 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
5909 when searching a unibyte buffer.
5910
59112008-06-12 Chong Yidong <cyd@stupidchicken.com>
5912
5913 * xfns.c (Fx_select_font): Rename from x-font-dialog.
5914
59152008-06-12 Juanma Barranquero <lekktu@gmail.com>
5916
5917 * w32font.c: Include ctype.h.
5918
59192008-06-11 Jason Rumney <jasonr@gnu.org>
5920
5921 * w32font.c (w32font_encode_char): Detect missing glyphs that are
5922 misreported as space.
5923 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
5924 as aliases for registry iso10646-1.
5925
59262008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
5927
5928 * buffer.c (clone_per_buffer_values): Skip `name'.
5929
59302008-06-11 Chong Yidong <cyd@stupidchicken.com>
5931
5932 * font.c (font_parse_fcname): Fix last change; accept decimal
5933 points in font size.
5934
59352008-06-10 Jason Rumney <jasonr@gnu.org>
5936
5937 * w32uniscribe.c (add_opentype_font_name_to_list):
5938 Skip non unicode fonts.
5939
59402008-06-10 Chong Yidong <cyd@stupidchicken.com>
5941
5942 * xfns.c (Fx_font_dialog): New function.
5943
5944 * gtkutil.c (xg_dialog_response_cb): Rename from
5945 xg_file_response_callback.
5946 (pop_down_dialog): Rename from pop_down_file_dialog.
5947 (xg_get_file_name): Callers changed.
5948 (xg_get_font_name): New function.
5949
5950 * gtkutil.h (xg_get_font_name): Insert prototype.
5951
59522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5953
5954 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
5955 x_underline_minimum_display_offset.
5956 (syms_of_xdisp): Declare it here rather than in xterm.c.
5957 * dispextern.h (underline_minimum_offset): Declare it.
5958 * w32term.c (x_draw_glyph_string): Use it.
5959 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
5960 (syms_of_xterm): Don't declare it any more.
5961 (x_draw_glyph_string): Adjust to the new name.
5962
59632008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
5964
5965 * xterm.c (x_underline_minimum_display_offset): New var.
5966 (x_draw_glyph_string): Use it.
5967 (syms_of_xterm): Declare it.
5968
59692008-06-10 Chong Yidong <cyd@stupidchicken.com>
5970
5971 * font.c (font_parse_fcname): Accept GTK-style font names too.
5972
59732008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5974
5975 * dired.c (file_name_completion): Don't return t if the match is exact
5976 but with different capitalization.
5977 * minibuf.c (Ftry_completion): Simplify.
5978
5979 * window.c (Vwindow_point_insertion_type): New var.
5980 (set_window_buffer): Use it.
5981 (syms_of_window): Init and export it to Lisp.
5982
59832008-06-10 Kenichi Handa <handa@m17n.org>
5984
5985 * font.h (font_intern_prop): Prototype adjusted.
5986
5987 * font.c (font_intern_prop): New arg force_symbol.
5988 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
5989 Adjust for the change of font_intern_prop.
5990
5991 * ftfont.c (ftfont_pattern_entity):
5992 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
5993 (w32_registry):
5994 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
5995 the change of font_intern_prop.
5996
59972008-06-09 Juanma Barranquero <lekktu@gmail.com>
5998
5999 * w32menu.c (digest_single_submenu): Declare extern.
6000
60012008-06-09 Jason Rumney <jasonr@gnu.org>
6002
6003 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6004
6005 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6006 (parse_single_submenu): Remove.
6007 (digest_single_submenu): Remove.
6008 (syms_of_w32menu): Don't initialise variables that have moved
6009 to menu.c.
6010 (set_frame_menubar): Sync with version in xmenu.c.
6011 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6012
6013 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6014 Make static again.
6015
60162008-06-09 Jason Rumney <jasonr@gnu.org>
6017
6018 Changes to w32 files related to the move of common menu code
6019 to menu.c on 2008-06-08 by Chong Yidong.
6020
6021 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6022 defs to w32gui.h.
6023 (single_keymap_panes, push_menu_item, push_menu_pane):
6024 Make globally visible.
6025
6026 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6027 (local_free, malloc_widget_value, free_widget_value)
6028 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6029 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6030 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6031 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6032 (menu_items, menu_items_allocated, menu_items_used)
6033 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6034 (init_menu_items, finish_menu_items, discard_menu_items)
6035 (grow_menu_items, push_submenu_start, push_submenu_end)
6036 (push_left_right_boundary, push_menu_pane, push_menu_item)
6037 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6038 (free_menubar_widget_tree_value, parse_single_submenu)
6039 (update_submenu_strings): Remove functions.
6040 (xmalloc_widget_value): Remove and declare extern.
6041
6042 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6043 (OBJ1): Build it.
6044
6045 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6046 (local_heap, local_alloc, local_free, malloc_widget_value)
6047 (free_widget_value): Define here.
6048
60492008-06-09 Kenichi Handa <handa@m17n.org>
6050
6051 * font.h (Qascii_0): Extern it.
6052
6053 * font.c (Qascii_0): New variable.
6054 (syms_of_font): DEFSYM it.
6055 (font_open_by_name): If the registry "iso8859-1" fails, try also
6056 "ascii-0".
6057
6058 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6059
60602008-06-08 Kenichi Handa <handa@m17n.org>
6061
6062 * .gdbinit (xfont): New command.
6063
60642008-06-08 Andreas Schwab <schwab@suse.de>
6065
6066 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6067 * Makefile.in (menu.o): Update dependencies.
6068
6069 * Makefile.in (obj): Always add menu.o.
6070 * emacs.c (main): Always call syms_of_menu.
6071 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6072
60732008-06-08 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * Makefile.in: Compile menu.c.
6076
6077 * lisp.h: Declare syms_of_menu.
6078
6079 * emacs.c (main): Call syms_of_menu.
6080
6081 * keyboard.h: Relocate platform-independent menu definitions from
6082 xmenu.c.
6083
6084 * menu.c: New file. Relocate platform-independent menu
6085 definitions from xmenu.c. Suggested by Adrian Robert.
6086
6087 * xmenu.c: Remove platform-independent menu definitions.
6088 (menu_items menu_items_inuse, menu_items_allocated)
6089 (menu_items_used, menu_items_n_panes)
6090 (menu_items_submenu_depth): Move to keyboard.h.
6091 (init_menu_items, finish_menu_items, unuse_menu_items)
6092 (discard_menu_items, restore_menu_items, save_menu_items)
6093 (grow_menu_items, push_submenu_start, push_submenu_end)
6094 (push_left_right_boundary, push_menu_pane, push_menu_item)
6095 (keymap_panes, single_keymap_panes, single_menu_item)
6096 (list_of_panes, list_of_items, find_and_call_menu_selection)
6097 (xmalloc_widget_value, free_menubar_widget_value_tree)
6098 (parse_single_submenu, digest_single_submenu)
6099 (update_submenu_strings): Move to menu.c.
6100
61012008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6102
6103 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6104
61052008-06-06 Miles Bader <miles@gnu.org>
6106
6107 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6108 face, not frame default.
6109
61102008-06-05 Martin Rudalics <rudalics@gmx.at>
6111
6112 * window.c (pop_up_windows, pop_up_frames)
6113 (display_buffer_reuse_frames, Vpop_up_frame_function)
6114 (Vdisplay_buffer_function, Veven_window_heights)
6115 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6116 (Vspecial_display_function, Vsame_window_buffer_names)
6117 (Vsame_window_regexps, split_height_threshold)
6118 (Vsplit_window_preferred_function): Move those vars to window.el.
6119 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6120 (Fdisplay_buffer): Move those functions to window.el.
6121 (syms_of_window): Remove corresponding declarations.
6122 (display_buffer): New function.
6123 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6124 * dispnew.c (Flast_nonminibuf_frame): New function.
6125 * buffer.c (Fpop_to_buffer): Move to window.el.
6126
61272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6128
6129 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6130
61312008-06-05 Kenichi Handa <handa@m17n.org>
6132
6133 * coding.c (detect_coding): Fix previous change.
6134 (detect_coding_system): Likewise.
6135
61362008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6137
6138 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6139
6140 * keymap.c (Vminibuffer_local_filename_must_match_map):
6141 Rename from Vminibuffer_local_must_match_filename_map.
6142 (syms_of_keymap):
6143 * minibuf.c (Fcompleting_read): Adjust accordingly.
6144 * commands.h: Rename declaration as well.
6145
61462008-06-05 Kenichi Handa <handa@m17n.org>
6147
6148 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6149 family name.
6150 (Ffont_put): Likewise.
6151
6152 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6153 current font-spec.
6154
6155 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6156 is unspecified.
6157
6158 * xfaces.c (realize_x_face): If the font-related face attributes
6159 are the same as those of default face, realize a new fontset from
6160 default->fontset.
6161 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6162
61632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6164
6165 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6166 (move_it_in_display_line): New wrapper.
6167
6168 * window.c (window_scroll_pixel_based_preserve_x)
6169 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6170 (window_scroll_pixel_based, window_scroll_line_based):
6171 Use them to preserve column positions.
6172 (syms_of_window): Initialize them.
6173
6174 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6175 (HPOS . VPOS) pair.
6176
6177 * dispextern.h (move_it_in_display_line): Declare.
6178
61792008-06-05 Juanma Barranquero <lekktu@gmail.com>
6180
6181 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6182 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6183 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6184
61852008-06-04 Juanma Barranquero <lekktu@gmail.com>
6186
6187 * window.c (Fset_window_parameter): Doc fix.
6188 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6189
61902008-06-04 Joakim Verona <joakim@verona.se>
6191
6192 * window.h (struct window): Add new member window_parameters.
6193
6194 * window.c (Fwindow_parameters, Fwindow_parameter)
6195 (Fset_window_parameter): New defuns.
6196 (syms_of_window): Defsubr the new defuns.
6197 (make_window): Initialize window_parameters to nil.
6198
61992008-06-04 John Paul Wallington <jpw@pobox.com>
6200
6201 * eval.c (Fdefmacro): Doc fix.
6202
62032008-06-04 Kenichi Handa <handa@m17n.org>
6204
6205 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6206 Be sure to call setup_coding_system when we find a proper coding system.
6207 (detect_coding_system): Fix handling of coding->head_ascii.
6208
62092008-06-03 Andreas Schwab <schwab@suse.de>
6210
6211 * font.c (font_prop_validate_spacing): Fix last change.
6212
62132008-06-03 Kenichi Handa <handa@m17n.org>
6214
6215 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6216 (font_parse_fcname): Fix handling of unknown key.
6217
6218 * xfont.c (xfont_list): Try an alias.
6219
6220 * charset.c (char_charset): Return NULL if the arg charset_list is
6221 specified and C doesn't belong to any of them.
6222
62232008-06-02 Chip Coldwell <coldwell@redhat.com>
6224
6225 * font.c (font_pixel_size): Don't take cdr of an integer.
6226
62272008-06-02 Jim Meyering <meyering@redhat.com>
6228
6229 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6230 * alloc.c (xfree): Return right away for a NULL arg.
6231 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6232 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6233 * mac.c (create_apple_event_from_event_ref): Likewise.
6234 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6235 Likewise.
6236 * doprnt.c (doprnt1): Likewise.
6237 * frame.c (frame): Likewise.
6238 * keyboard.c (wipe_kboard): Likewise.
6239 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6240 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6241 * term.c (tty_default_color_capabilities, maybe_fatal)
6242 (delete_tty): Likewise.
6243 * w16select.c (string): Likewise.
6244 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6245 * w32bdf.c (w32_free_bdf_font): Likewise.
6246 * w32fns.c (w32_unload_font): Likewise.
6247 * w32font.c (w32font_close): Likewise.
6248 * window.c (size_window): Likewise.
6249 * xselect.c (receive_incremental_selection): Likewise.
6250 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6251 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6252 * w32.c (stat): Likewise.
6253
6254 Remove useless if-before-free tests.
6255 * editfns.c (Fset_time_zone_rule): Likewise.
6256 * lread.c (nosuffix): Likewise.
6257 * ralloc.c (get_bloc): Likewise.
6258 * regex.c (reg_free): Likewise.
6259 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6260 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6261 * xsmfns.c (smc_save_yourself_CB): Likewise.
6262
62632008-06-02 Kenichi Handa <handa@m17n.org>
6264
6265 * font.c (font_find_for_lface): Handle float font size.
6266 (font_open_for_lface): Likewise.
6267
6268 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6269 comparing the properties.
6270
62712008-06-01 Jason Rumney <jasonr@gnu.org>
6272
6273 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6274 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6275 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6276 Don't add empty script list.
6277 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6278
62792008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6280
6281 * Makefile.in (dot, dotdot): Remove, update users.
6282 ".." has been used elsewhere in the file for a long time.
6283 (LIBXT_STATIC): Remove conditional based on unused variable.
6284
62852008-06-01 Miles Bader <miles@gnu.org>
6286
6287 * xfaces.c (Vface_remapping_alist): New variable.
6288 (syms_of_xfaces): Initialize it.
6289 (enum named_merge_point_kind): New type.
6290 (struct named_merge_point): Add `named_merge_point_kind' field.
6291 (push_named_merge_point): Make cycle detection respect different
6292 named-merge-point kinds.
6293 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6294 Remove face-name alias resolution.
6295 (lface_from_face_name): New definition using
6296 `lface_from_face_name_no_resolve'.
6297 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6298 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6299 (get_lface_attributes): New definition that layers face-remapping on
6300 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6301 (lookup_basic_face): New function.
6302 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6303 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6304 `get_lface_attributes'.
6305 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6306 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6307 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6308
6309 * xdisp.c (init_iterator): Pass base_face_id through
6310 `lookup_basic_face' when we actually use it as a face-id.
6311 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6312 DEFAULT_FACE_ID.
6313
6314 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6315 lookup the initial face-id.
6316
6317 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6318
63192008-06-01 Juanma Barranquero <lekktu@gmail.com>
6320
6321 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6322 (Fremove_text_properties): Fix typos in docstrings.
6323
63242008-05-31 Kenichi Handa <handa@m17n.org>
6325
6326 * font.c (font_list_entities): Fix the car part of data to be
6327 stored in the cache.
6328
6329 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6330
63312008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6332
6333 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6334 Add a `test' argument so another predicate than `equal' can be used.
6335 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6336 (map_char_table): Remove unused vars `c' and `i'.
6337 * lisp.h (Foptimize_char_table): Adjust declaration.
6338 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6339
63402008-05-30 Kenichi Handa <handa@m17n.org>
6341
6342 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6343 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6344 defined.
6345
63462008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6347
6348 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6349 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6350 frame-local settings for the same variable.
6351
63522008-05-30 Kenichi Handa <handa@m17n.org>
6353
6354 * fontset.c (Ffont_info): Move to font.c.
6355 (syms_of_fontset): Delete defsubr of Sfont_info.
6356
6357 * font.c (font_style_to_value, font_score): Delete casting of the
6358 args to xstcasecmp.
6359 (register_font_driver): Increment num_font_drivers only when
6360 registering the driver globally.
6361 (Ffont_info): Move from fontset.c. Handle a font object too.
6362 (syms_of_font): Defsubr Sfont_info.
6363
63642008-05-29 Kenichi Handa <handa@m17n.org>
6365
6366 * coding.h (enum define_coding_utf8_arg_index): New enum.
6367 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6368 coding_attr_utf_bom.
6369 (enum utf_bom_type): Rename from utf_16_bom_type.
6370 (struct utf_16_spec): Adjust for the above change.
6371 (struct coding_system): Add utf_8_bom in `spec' union.
6372
6373 * coding.c (CODING_UTF_8_BOM): New macro.
6374 (enum coding_category): Delete coding_category_utf_8, add
6375 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6376 coding_category_utf_8_sig.
6377 (CATEGORY_MASK_UTF_8): Delete it.
6378 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6379 (CATEGORY_MASK_UTF_8_SIG): New macros.
6380 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6381 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6382 CATEGORY_MASK_UTF_8_SIG.
6383 (CATEGORY_MASK_UTF_8): New macro.
6384 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6385 (detect_coding_utf_8): Check BOM.
6386 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6387 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6388 (encode_coding_utf_16): Likewise.
6389 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6390 (detect_coding, detect_coding_system): Handle utf-8-auto.
6391 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6392 (syms_of_coding): Fix setting up of Vcoding_category_table.
6393
63942008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6395
6396 * process.c (Faccept_process_output): If `millisec' is non-nil,
6397 `seconds' default to 0.
6398 (wait_reading_process_output): Also return non-nil if we read output
6399 from a non-running process.
6400
64012008-05-29 Jason Rumney <jasonr@gnu.org>
6402
6403 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6404 `raster' specified.
6405 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6406 in the uniscribe backend, but disallow any font that has no
6407 unicode subrange support.
6408
64092008-05-29 Juanma Barranquero <lekktu@gmail.com>
6410
6411 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6412 Fix typos in docstrings.
6413
64142008-05-29 Kenichi Handa <handa@m17n.org>
6415
6416 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6417 (Fx_family_fonts): Set frame correctly.
6418
64192008-05-28 Jason Rumney <jasonr@gnu.org>
6420
6421 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6422
64232008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6424
6425 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6426 calling build_annotations.
6427
64282008-05-28 Juanma Barranquero <lekktu@gmail.com>
6429
6430 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6431 (Fencode_coding_string):
6432 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6433 <latin-extra-code-table>: Fix typos in docstrings.
6434 (syms_of_coding) <coding-system-alist>: Doc fix.
6435 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6436
64372008-05-28 Kenichi Handa <handa@m17n.org>
6438
6439 * fontset.c (Ffont_info): Don't call font_close_object.
6440
6441 * font.c (font_parse_family_registry): Use Ffont_put to validate
6442 foundry and family.
6443 (font_delete_unmatched): Don't check spacing.
6444 (font_list_entities): Add spacing to the spec to list fonts.
6445
6446 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6447 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6448
6449 * coding.c (encode_coding_raw_text): Fix previous change.
6450 (encode_coding_object): When the dst_object is a buffer and is
6451 different from src_object, move gap to PT.
6452
64532008-05-27 Chong Yidong <cyd@stupidchicken.com>
6454
6455 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6456
64572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6458
6459 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6460 all branches. Compute it differently.
6461
6462 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6463
64642008-05-27 Juanma Barranquero <lekktu@gmail.com>
6465
6466 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6467 into "else if () ... else ...".
6468
64692008-05-27 Jason Rumney <jasonr@gnu.org>
6470
6471 * w32font.c (w32font_open_internal): Determine if glyph indices
6472 are likely to work here.
6473
64742008-05-27 Chong Yidong <cyd@stupidchicken.com>
6475
6476 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6477 draw overlap glyphs with appropriate highlighting.
6478
64792008-05-27 Kenichi Handa <handa@m17n.org>
6480
6481 * xfont.c (xfont_open): Fix calculation of font->average_width.
6482
64832008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6484
6485 * casefiddle.c (casify_object): Try to guess better whether the
6486 argument is a byte or a char.
6487
64882008-05-26 Andreas Schwab <schwab@suse.de>
6489
6490 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6491 Always send multiples of format size.
6492
6493 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6494
64952008-05-26 Jason Rumney <jasonr@gnu.org>
6496
6497 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6498 (compute_metrics): Don't set failure if we just cleared the cache.
6499 (w32_weight_table): Remove unused variable.
6500 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6501 backwards compatibility.
6502
65032008-05-25 Kenichi Handa <handa@m17n.org>
6504
6505 * w32term.c (x_draw_glyph_string):
6506 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6507
6508 * xfaces.c: Delete unused function prototypes.
6509 (xstrlwr, font_frame): Delete them.
6510 (clear_face_cache): Delete unused variable.
6511
6512 * xftfont.c (xftfont_open): Delete unused variable.
6513 If underline_thickness is not 1, adjust underline_position.
6514
6515 * ftxfont.c (ftxfont_open): Delete unused variable.
6516
6517 * fontset.c (face_for_char): Optimize for the case of no charset
6518 property.
6519
6520 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6521 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6522 (otf_open, font_otf_capability, generate_otf_features)
6523 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6524 Comment out by surrounding "#if 0" and "#endif" for the moment.
6525 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6526 (syms_of_font): Codes for accessing above commented out.
6527
65282008-05-24 Eli Zaretskii <eliz@gnu.org>
6529
6530 * w32proc.c: Include dispextern.h.
6531
6532 * w32.c: Include dispextern.h.
6533
65342008-05-23 Juanma Barranquero <lekktu@gmail.com>
6535
6536 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6537 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6538 Fix typos in docstrings.
6539
65402008-05-23 Jason Rumney <jasonr@gnu.org>
6541
6542 * xsmfns.c: Remove includes that are already included by config.h.
6543
65442008-05-23 Kenichi Handa <handa@m17n.org>
6545
6546 * charset.c (Qemacs, charset_emacs): New variables.
6547 (char_charset): Fix for non-Unicode characters.
6548 (syms_of_charset): Define charset_emacs.
6549
6550 * w32term.c (x_draw_glyph_string): Be sure to update
6551 s->underline_thickness and s->underline_position. Be sure to draw
6552 underline within the current line area.
6553
6554 * xterm.c (x_draw_glyph_string): Be sure to update
6555 s->underline_thickness and s->underline_position. Be sure to draw
6556 underline within the current line area.
6557
6558 * fontset.c: Delete unused variables and add casting for char *
6559 throughout the file.
6560 (fontset_font): Try the fallback fonts of the current fontset
6561 before consulting the default fontset.
6562
6563 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6564
6565 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6566
65672008-05-22 Jason Rumney <jasonr@gnu.org>
6568
6569 * font.c: Don't include strings.h.
6570
6571 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6572
6573 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6574 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6575 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6576 to call xstrcasecmp.
6577
6578 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6579
6580 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6581
6582 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6583
6584 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6585
65862008-05-22 Kenichi Handa <handa@m17n.org>
6587
6588 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6589
6590 * font.c (font_prop_validate_style): Adjust for the format
6591 change of font_style_table.
6592
6593 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6594 two args.
6595
6596 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6597 two args.
6598
65992008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6600
6601 * minibuf.c (keys_of_minibuf): Delete.
6602 * lisp.h (keys_of_minibuf): Delete.
6603 * emacs.c (main): Don't call keys_of_minibuf.
6604
66052008-05-22 Kenichi Handa <handa@m17n.org>
6606
6607 * ftfont.c (ftfont_resolve_generic_family): Rename from
6608 ftfont_list_generic_family. Return a single family for each
6609 generic family.
6610 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6611 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6612 Call font_add_log.
6613 (ftfont_match): Call font_add_log.
6614
6615 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6616 (FONT_DEBUG): Define it.
6617 (font_add_log): Extern it.
6618 (font_assert): Rename from xassert.
6619
6620 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6621 (xfont_list_family): Call font_add_log.
6622 (xfont_match): Likewise.
6623 (memq_no_quit): Delete.
6624
6625 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6626 call of Ffont_xlfd_name.
6627
6628 * xfaces.c (struct table_entry, slant_table, weight_table)
6629 (swidth_table): Move to font.c.
6630
6631 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6632 xassert are changed to font_assert. Delete many unused variables.
6633 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6634 New variables.
6635 (struct table_entry): Move from xfaces.c and modified.
6636 (weight_table, slant_table, width_table): Move from xfaces.c and
6637 contents adjusted for the change of struct table_entry.
6638 (font_style_to_value, font_style_symbolic): Adjust for the
6639 format change of font_style_table.
6640 (font_parse_family_registry): Don't overwrite existing foundry and
6641 family of font_spec.
6642 (font_score): Fix calculation of diff for sizes.
6643 (font_sort_entites): Call font_add_log.
6644 (font_delete_unmatched): Return a newly created list.
6645 (font_list_entities): Fix previous change. Call font_add_log.
6646 (font_matching_entity, font_open_entity, font_close_entity):
6647 Call font_add_log.
6648 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6649 (Finternal_set_font_style_table): Delete.
6650 (BUILD_STYLE_TABLE): New macro.
6651 (build_style_table): New function.
6652 (Vfont_log, font_log_env_checked): New variables.
6653 (font_add_log): New function.
6654 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6655 Declare Lisp variables "font-weight-table", "font-slant-table",
6656 "font-width-table", and "font-log". Initialize font_style_table.
6657
66582008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6659
6660 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6661
66622008-05-21 Seiji Zenitani <zenitani@mac.com>
6663 Ryo Yoshitake <ryo@shiftmode.net>
6664
6665 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6666 (Vframe_alpha_lower_limit): New variable.
6667 (x_set_alpha): New function.
6668
6669 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6670
6671 * xfns.c (x-create-frame, Qalpha):
6672 Initialize the frame parameter `alpha'.
6673 * xterm.c (OPAQUE, OPACITY): New.
6674 (x_set_frame_alpha): New function.
6675 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6676
6677 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6678 * w32fns.c (w32_frame_parm_handlers): Likewise.
6679
66802008-05-20 Jason Rumney <jasonr@gnu.org>
6681
6682 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6683 truetype fonts to opentype list.
6684
66852008-05-20 Juanma Barranquero <lekktu@gmail.com>
6686
6687 * fontset.c (Ffontset_info): Doc fix.
6688 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6689 <ignore-relative-composition>: Fix typos in docstrings.
6690
6691 * font.c (syms-of-font) <font-encoding-alist>:
6692 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6693 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6694 (Ffont_otf_alternates): Doc fixes.
6695
66962008-05-20 Kenichi Handa <handa@m17n.org>
6697
6698 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6699 font.h through out the file.
6700 (FONT_DRIVERS): Rename from FONTOBJ.
6701 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6702 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6703
6704 * emacs.c (main): Call syms_of_font unconditionally.
6705
6706 * font.h (find_font_encoding): Extern it.
6707
6708 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6709 fontset.c.
6710 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6711 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6712 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6713 only when HAVE_WINDOW_SYSTEM is defined.
6714 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6715 when HAVE_WINDOW_SYSTEM is defined.
6716
6717 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6718 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6719
6720 * xfaces.c: Include font.h unconditionally.
6721 (merge_face_ref, merge_face_vectors)
6722 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6723
67242008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6725
6726 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6727 indirect_variable.
6728 * eval.c (lisp_indirect_variable): New fun.
6729 (Fuser_variable_p): Use it.
6730
67312008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6732
6733 * lisp.h (indirect_variable):
6734 * data.c (indirect_variable, let_shadows_buffer_binding_p):
6735 Use Lisp_Symbol pointers rather than Lisp_Object.
6736 Adjust callers.
6737 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
6738 To this end, change calling-convention.
6739
6740 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
6741 if some non-hidden buffers are selected by string&pred.
6742
67432008-05-19 Chong Yidong <cyd@stupidchicken.com>
6744
6745 * process.c (wait_reading_process_output): Always check status
6746 when in batch mode.
6747
67482008-05-19 Kenichi Handa <handa@m17n.org>
6749
6750 * font.c (font_list_entities): Fix handling of cache.
6751 (font_matching_entity): Likewise.
6752
6753 * ftfont.c (cs_iso8859_1): Delete.
6754 (ft_face_cache): New variable.
6755 (struct ftfont_info): New member fc_charset_idx.
6756 (ftfont_build_basic_charsets): Delete.
6757 (fc_charset_table): New variable.
6758 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
6759 . FC_CHARSET_IDX) as :font-entity property in the font entity.
6760 Callers changed.
6761 (ftfont_lookup_cache, ftfont_get_charset): New functions.
6762 (ftfont_spec_pattern): New argument fc_charset_idx.
6763 Check registry more rigidly. Change callers.
6764 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
6765 change of :font-entity property of the font.
6766
6767 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
6768 property of the font.
6769
67702008-05-18 Juanma Barranquero <lekktu@gmail.com>
6771
6772 * coding.c (Fcoding_system_p): Rename argument to match docstring.
6773 (Funencodable_char_position, Fcheck_coding_systems_region)
6774 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
6775 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
6776 (Ffind_operation_coding_system, Fset_coding_system_priority)
6777 (Fcoding_system_eol_type): Doc fixes.
6778
67792008-05-17 Glenn Morris <rgm@gnu.org>
6780
6781 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
6782
67832008-05-16 Eli Zaretskii <eliz@gnu.org>
6784
6785 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
6786 and st_gid.
6787
6788 * frame.c (Fdelete_frame): Don't call font_update_drivers if
6789 HAVE_WINDOW_SYSTEM is not defined.
6790
6791 * xfaces.c (merge_face_ref, merge_face_vectors)
6792 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
6793 HAVE_WINDOW_SYSTEM is defined.
6794 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
6795
67962008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
6797
6798 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
6799
68002008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6801
6802 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6803
68042008-05-15 Kenichi Handa <handa@m17n.org>
6805
6806 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
6807 preference.
6808
68092008-05-15 Glenn Morris <rgm@gnu.org>
6810
6811 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
6812
68132008-05-15 Chong Yidong <cyd@stupidchicken.com>
6814
6815 * fns.c (init_fns): Don't initialize weak_hash_tables here.
6816 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
6817
6818 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
6819
68202008-05-15 Kenichi Handa <handa@m17n.org>
6821
6822 * ftfont.c (ftfont_list): Downcase family name to check generic
6823 families.
6824
6825 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
6826 font-spec for QCfont value.
6827
6828 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
6829 buffer. Check the return value of it.
6830
68312008-05-14 Jason Rumney <jasonr@gnu.org>
6832
6833 * w32term.c (w32_get_glyph_overhangs): Remove.
6834 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
6835
68362008-05-14 Kenichi Handa <handa@m17n.org>
6837
6838 * font.c (font_prop_validate): Make nil a valid value.
6839 (font_clear_cache): Check if the cached vector of entities is nil
6840 or not.
6841
68422008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6843
6844 * emacs.c (main_thread): Conditionalize on
6845 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6846 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
6847
6848 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
6849 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
6850 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6851
68522008-05-14 Kenichi Handa <handa@m17n.org>
6853
6854 * coding.c (detect_coding_iso_2022): Ignore a coding category that
6855 has no corresponding coding system.
6856
68572008-05-14 Jason Rumney <jasonr@gnu.org>
6858
6859 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
6860
6861 * w32font.h (w32font_open_internal): Update declaration.
6862
6863 * w32font.c (w32font_open_internal): Change last argument from
6864 w32font_info struct to font object. Fill in font object from
6865 font_entity. Get Outline metrics if possible. Use them to
6866 calculate underline position and thickness. Use xlfd name as name
6867 property. Don't set codepage.
6868 (w32font_open): Pass font_object to w32font_open_internal. Don't
6869 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
6870 (w32font_draw): Use s->font.
6871 (clear_cached_metrics): Don't clear non-existent blocks.
6872
6873 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
6874 font was not found.
6875 (x_draw_glyph_string): Use underline position and thickness from font.
6876
6877 * w32uniscribe.c (uniscribe_open): Pass font_object to
6878 w32font_open_internal.
6879
68802008-05-14 Kenichi Handa <handa@m17n.org>
6881
6882 These changes are to delete all legacy font-handling codes, and
6883 make Emacs use only font-backends.
6884
6885 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
6886 (frame.o, image.o, print.o): Depend on $(FONTSRC).
6887
6888 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
6889
6890 * charset.h (Vcharset_non_preferred_head)
6891 (Vcurrent_iso639_language): Extern them.
6892
6893 * charset.c (Vcharset_non_preferred_head): New variable.
6894 (Vcurrent_iso639_language): New variable.
6895 (syms_of_charset): Declare it as a Lisp variable.
6896 (char_charset): Don't check non preferred charsets. As a last
6897 resort, return charset_unicode.
6898 (Fset_charset_priority): Update Vcharset_non_preferred_head.
6899
6900 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
6901 conditionals. Don't check enable_font_backend. Delete all codes
6902 used only when USE_FONT_BACKEND is not defined.
6903
6904 * dispextern.h (struct glyph_string): Change type of `font' to
6905 `struct font *'.
6906 (struct glyph_string): New member underline_position and
6907 underline_thickness.
6908 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
6909 (struct face): Change type of `font' to `struct font *'. Remove
6910 members `font_name', `font_info_id'.
6911 (per_char_metric, encode_char): Delete externs.
6912 (calc_pixel_width_or_height): Adjust the prototype.
6913
6914 * emacs.c (enable_font_backend): Delete extern.
6915 (main): Don't set enable_font_backend. Don't check the command
6916 line argument "-disable-font-backend".
6917
6918 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
6919 (enum font_property_index): New members FONT_DPI_INDEX,
6920 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
6921 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
6922 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
6923 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
6924 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
6925 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
6926 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
6927 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
6928 (struct font_spec, struct font_entity): New structs.
6929 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
6930 (struct font): Many members from old "struct font_info" moved to
6931 here. Members font and entity deleted.
6932 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
6933 the new font-related objects.
6934 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
6935 (CHECK_FONT_GET_OBJECT): Likewise.
6936 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
6937 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
6938 (struct font_driver): New members case_sensitive anc check. Type
6939 of the member list and open changed.
6940 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
6941 (font_symbolic_width, font_find_object, font_get_spec)
6942 (font_set_lface_from_name): Delete extern.
6943 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
6944
6945 * font.c: Include <strings.h>.
6946 (enable_font_backend): Delete it.
6947 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
6948 (CHECK_VALIDATE_FONT_SPEC): Delete it.
6949 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
6950 (null_string): Delete it.
6951 (null_vector): Make it static.
6952 (font_family_alist): Delete it.
6953 (Qnormal): Extern it.
6954 (QCextra, QClanguage): Delete it.
6955 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
6956 (font_make_spec, font_make_entity, font_make_object)
6957 (font_intern_prop): Renamed from intern_downcase. Don't downcase
6958 the string. Callers changed.
6959 (font_pixel_size): Adjusted for the format change of font-related
6960 objects.
6961 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
6962 (font_style_to_value, font_style_symbolic): New function.
6963 (build_font_family_alist): Delete it.
6964 (font_registry_charsets): Use Fassoc_string instead of
6965 assq_no_quit.
6966 (font_prop_validate_symbol): Don't return null_string.
6967 (font_prop_validate_style): Adjusted for the change of
6968 style-related values in a font vector.
6969 (font_property_table): Delete entries for QClanguage and
6970 QCantialias, add entries for QCavgwidth.
6971 (get_font_prop_index): Delete the 2nd argument FROM.
6972 (font_prop_validate): Arguments changed.
6973 (font_put_extra): Adjusted for the change of font-related objects.
6974 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
6975 (font_parse_fcname, font_unparse_fcname)
6976 (font_prepare_composition): Likewise.
6977 (font_parse_family_registry): Renamed from font_merge_old_spec.
6978 (otf_open): Delete the 1st arg entity.
6979 (font_otf_capability): Adjusted for the above change.
6980 (font_score): New arg alternate_families. Adjusted for the change
6981 of font-related objects.
6982 (font_sort_entites): New arg best_only.
6983 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
6984 Delete them.
6985 (font_match_p): Check alternate families.
6986 (font_find_object): Delete it.
6987 (font_check_object): New function.
6988 (font_clear_cache): Adjusted for the change of font-related objects.
6989 (font_delete_unmatched): New arg.
6990 (font_list_entities): Call font_driver->list with a spec that
6991 doesn't specify style-related properties.
6992 (font_matching_entity): Arguments changed. Caller changed.
6993 (font_open_entity): Adjusted for the change of font-related objects.
6994 (font_close_object, font_has_char, font_encode_char)
6995 (font_get_name, font_get_spec): Likewise.
6996 (font_spec_from_name, font_clear_prop, font_update_lface):
6997 New functions.
6998 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
6999 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7000 (font_at): Adjusted for the change of font-related objects.
7001 (font_range): New function.
7002 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7003 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7004 (Fcopy_font_spec, Fmerge_font_spec): New function.
7005 (Ffont_family_list): Renamed from list-families.
7006 (Finternal_set_font_style_table): Arguments changed.
7007 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7008 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7009 change of font-related objects.
7010 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7011
7012 * fontset.h (struct font_info): Delete it. Most members go to
7013 struct font.
7014 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7015 (enum FONT_SPEC_INDEX): Delete it.
7016 (font_info, list_fonts_func, load_font_func, query_font_func)
7017 (set_frame_fontset_func, find_ccl_program_func)
7018 (get_font_repertory_func, new_fontset_from_font_name): Delete
7019 externs.
7020 (fontset_from_font_name): Extern it.
7021 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7022 (FONT_INFO_FROM_FACE): Deleted.
7023 (face_for_font): Adjust prototype.
7024
7025 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7026 conditionals. Don't check enable_font_backend. Delete all codes
7027 used only when USE_FONT_BACKEND is not defined.
7028 (get_font_info_func, list_font_func, load_font_func)
7029 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7030 (get_font_repertory_func): Delete them.
7031 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7032 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7033 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7034 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7035 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7036 (fontset_compare_rfontdef): New function.
7037 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7038 rfont-defs by qsort. Adjusted for the change of font-group vector.
7039 (load_font_get_repertory): Deleted.
7040 (fontset_find_font): Use new macros to ref/set elements of
7041 font-def and rfont-def.
7042 (fontset_font): Fix the timing of remembering that no font for C.
7043 (free_face_fontset): Do nothing if the face has no fontset.
7044 (face_suitable_for_char_p): Use new macros to ref/set elements of
7045 rfont-def.
7046 (face_for_char): Likewise. Call face_for_char with font_object.
7047 (fs_load_font): Delete. Delete #pragma surrounding it.
7048 (fs_query_fontset): Use strcasecmp instead of strcmp.
7049 (generate_ascii_font_name): Adjusted for the format change of
7050 font-spec.
7051 (Fset_fontset_font): Likewise. Use new macros to set elements of
7052 font-def.
7053 (Fnew_fontset): Use font_unparse_xlfd to generate
7054 FONTSET_ASCII (fontset).
7055 (new_fontset_from_font_name): Deleted.
7056 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7057 a fontset is already created for the font. FIx updating of
7058 Vfontset_alias_alist.
7059 (fontset_ascii_font): Deleted.
7060 (Ffont_info): Adjusted for the format change of font-spec.
7061 (Finternal_char_font): Likewise.
7062 (Ffontset_info): Likewise.
7063 (syms_of_fontset): Don't check load_font_func.
7064
7065 * fns.c (internal_equal): Handle PREV_FONT.
7066
7067 * frame.h: Delete USE_FONT_BACKEND conditional.
7068
7069 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7070 conditionals. Don't check enable_font_backend. Delete all codes
7071 used only when USE_FONT_BACKEND is not defined.
7072 (x_set_font): Call x_new_font, not x_new_fontset2.
7073 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7074 already set for the frame.
7075
7076 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7077 a font-entity by font_make_entity. Use font_intern_prop instead
7078 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7079 font property. If a font is scalable, set avgwidth property to 0.
7080 Set font-entity property by font_put_extra.
7081 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7082 (ffont_driver): Adjusted for the change of struct font_driver.
7083 (ftfont_spec_pattern): New function.
7084 (ftfont_list): Return a list, not vector.
7085 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7086 (ftfont_list_family): Don't downcase names.
7087 (ftfont_free_entity): Deleted.
7088 (ftfont_open): Return a font-object. Adjusted for the change of
7089 struct font. Get underline_thickness and underline_position from
7090 font property. Don't update dpyinfo->smallest_font_height and
7091 dpyinfo->smallest_char_width.
7092 (ftfont_close): Don't free `struct font'.
7093 (ftfont_has_char): Adjusted for the format change of font-entity.
7094 (ftfont_encode_char, ftfont_text_extents): Likewise.
7095
7096 * ftxfont.c (ftxfont_list): Return a list, not vector.
7097 (ftxfont_open): Return a font-object. Adjusted for the change of
7098 struct font. Get underline_thickness and underline_position from
7099 font property. Don't update dpyinfo->smallest_font_height and
7100 dpyinfo->smallest_char_width.
7101 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7102 (ftxfont_draw): Adjusted for the change of struct font.
7103
7104 * image.c (image_ascent): Don't include "charset.h". Include
7105 "character.h" and "font.h".
7106
7107 * lisp.h (enum pvec_type): New member PREV_FONT.
7108 (Fassoc_string): EXFUN it.
7109
7110 * print.c: Include font.h.
7111 (print_object): Handle font-related objects.
7112
7113 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7114 conditionals. Don't check enable_font_backend. Delete all codes
7115 used only when USE_FONT_BACKEND is not defined.
7116 (handle_auto_composed_prop): Do nothing if it->f is not on a
7117 window system. Check how many following characters can be
7118 displayed by the same font.
7119 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7120 'struct font *'.
7121 (get_char_face_and_encoding): Assign the whole encoding task to
7122 the `encode-char' method of a font driver.
7123 (fill_composite_glyph_string): Adjusted for the change of `struct
7124 face' and `struct glyph_string'.
7125 (fill_glyph_string): Likewise.
7126 (get_per_char_metric): Arguments changed.
7127 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7128 and `struct glyph_string'.
7129 (produce_stretch_glyph, calc_line_height_property)
7130 (x_produce_glyphs): Likewise.
7131
7132 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7133 conditionals. Don't check enable_font_backend. Delete all codes
7134 used only when USE_FONT_BACKEND is not defined. Use
7135 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7136 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7137 (Qp): Extern them.
7138 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7139 Deleted.
7140 (struct font_name): Deleted.
7141 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7142 (compare_fonts_by_sort_order): New function.
7143 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7144 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7145 Deleted.
7146 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7147 compare_fonts_by_sort_order.
7148 (Fx_font_family_list): Call Ffont_family_list.
7149 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7150 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7151 (face_symbolic_slant, face_symbolic_swidth)
7152 (split_font_name_into_vector, build_font_name_from_vector)
7153 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7154 (font_rescale_ratio, split_font_name, build_font_name)
7155 (free_font_names, sort_fonts, x_face_list_fonts)
7156 (face_font_available_p, sorted_font_list, cmp_font_names)
7157 (font_list_1, concat_font_list, font_list, remove_duplicates):
7158 Deleted.
7159 (Fx_list_fonts): Use Ffont_list.
7160 (LFACE_AVGWIDTH): Deleted.
7161 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7162 by FONTP.
7163 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7164 (set_lface_from_font_name): Delete it.
7165 (set_lface_from_font): Renamed from
7166 set_lface_from_font_and_fontset. Caller changed. Don't set
7167 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7168 for face.
7169 (merge_face_vectors): Copy font-spec if necessary.
7170 Clear properties of the font-spec if necessary.
7171 (merge_face_ref): Clear properties of the font-spec if necessary.
7172 (Finternal_set_lisp_face_attribute): Likewise.
7173 (set_font_frame_param): Use font_load_for_lface to load a
7174 font-object, and call Fmodify_frame_parameters with it.
7175 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7176 font name by Ffont_xlfd_name.
7177 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7178 QCslant, and QCwidth.
7179 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7180 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7181 Compare fonts by EQ.
7182 (lookup_non_ascii_face): Deleted.
7183 (face_for_font): The 2nd argument changed.
7184 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7185 Check atomic font properties by case insensitive.
7186 (realize_non_ascii_face): Set face->overstrike correctly.
7187 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7188 (dump_realized_face): Get font name from
7189 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7190
7191 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7192 conditionals. Don't check enable_font_backend. Delete all codes
7193 used only when USE_FONT_BACKEND is not defined.
7194 (xic_create_xfontset): Original code deleted and renamed from
7195 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7196 (x_make_gc): Don't set GCFont in GCs.
7197 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7198 opened by "fixed".
7199 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7200 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7201 get_font_repertory_func.
7202
7203 * xfont.c: Include <stdlib.h> and "ccl.h".
7204 (struct xfont_info): New structure.
7205 (xfont_query_font): Deleted.
7206 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7207 moved from xterm.c.
7208 (xfont_driver): Adjusted for the change of struct font_driver.
7209 (compare_font_names): New function.
7210 (xfont_list_pattern): Sort font names case insensitively. Make
7211 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7212 (xfont_list): Return a list, not vector.
7213 (xfont_match): If the font doesn't have QCname property, generate
7214 a name from the other font properties.
7215 (xfont_open): Return a font-object. Adjusted for the change of
7216 struct font. Get underline_thickness and underline_position from
7217 font property. Don't update dpyinfo->smallest_font_height and
7218 dpyinfo->smallest_char_width.
7219 (xfont_close): Don't free struct font.
7220 (xfont_prepare_face): Adjusted for the change of struct font.
7221 (xfont_done_face): Deleted.
7222 (xfont_has_char): Adjusted for the change of struct font.
7223 (xfont_encode_char, xfont_draw): Likewise.
7224 (xfont_check): New function.
7225
7226 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7227 callback function.
7228 (xftfont_match): Adjusted for the format change of font-entity.
7229 (xftfont_open): Adjusted for the format change of font-entity and
7230 font-object. Adjusted for the change of struct font. Return a
7231 font-object. Don't update dpyinfo->smallest_font_height and
7232 dpyinfo->smallest_char_width.
7233 (xftfont_close): Block input while calling XftFontClose.
7234 (xftfont_prepare_face): Don't block input while calling
7235 xftfont_get_colors. Adjusted for the change of struct font.
7236 (xftfont_shape): Return value of error case fixed.
7237
7238 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7239
7240 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7241 conditionals.
7242 (FONT_WIDTH): Return (f)->max_width.
7243 (struct x_display_info): Delete member `font'.
7244 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7245 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7246 (struct x_output): Change type of `font' to `struct font *'.
7247
7248 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7249 conditionals. Don't check enable_font_backend. Delete all codes
7250 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7251 (x_per_char_metric, x_encode_char): Deleted.
7252 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7253 (x_compute_glyph_string_overhangs): Adjusted for the change of
7254 `struct face'.
7255 (x_draw_glyph_string_foreground)
7256 (x_draw_composite_glyph_string_foreground): Likewise.
7257 (x_draw_glyph_string): Likewise. Use font->underline_position and
7258 font->underline_thickness.
7259 (x_new_font): Renamed from x_new_fontset2.
7260 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7261 (x_check_font): Call `check' method of a font driver.
7262 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7263 (x_query_font, x_get_font_repertory): Deleted.
7264 (x_find_ccl_program): Renamed and moved to xfont.c.
7265 (x_redisplay_interface): Adjusted for the change of `struct
7266 redisplay_interface'.
7267
7268 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7269 conditionals. Don't check enable_font_backend. Delete all codes
7270 used only when USE_FONT_BACKEND is not defined. Surround non-used
7271 code by "#ifdef OLD_FONT" and "endif".
7272 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7273
7274 * w32font.h (struct w32font_info): New member.
7275 (FONT_COMPAT): New macro.
7276 (w32font_open_internal): Prototype adjusted.
7277
7278 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7279 OLD_FONT" and "endif".
7280
7281 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7282 conditionals. Don't check enable_font_backend. Delete all codes
7283 used only when USE_FONT_BACKEND is not defined.
7284 (w32font_open): Return a font-object. Make a font-object by
7285 font_make_object. Adjusted for the change of struct w32font_info.
7286 (w32font_close): Don't free struct font. Adjusted for the change
7287 of struct w32font_info.
7288 (w32font_encode_char, w32font_text_extents, w32font_draw):
7289 Adjusted for the change of struct w32font_info.
7290 (w32font_draw): Likewise.
7291 (w32font_list_internal): Return a list, not vector.
7292 (w32font_open_internal): Change the 4th arg to font-object.
7293 Adjusted for the change of struct w32font_info and font-object format.
7294 (add_font_name_to_list): Don't downcase names.
7295 (w32_enumfont_pattern_entity): Make a font-entity by
7296 font_make_entity. Adjusted for the format change of font-entity.
7297 Use FONT_SET_STYLE to set a style-related font property. If a
7298 font is scalable, set avgwidth property to 0. Set font-entity
7299 property by font_put_extra.
7300 (font_matches_spec): Adjusted for the format change of font-entity.
7301 (w32_weight_table, w32_decode_weight): New variables.
7302 (w32_encode_weight): New function.
7303 (fill_in_logfont): Adjusted for the format change of font-spec.
7304 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7305 weight value.
7306 (w32font_driver): Adjusted for the change of struct font_driver.
7307
7308 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7309 conditionals. Don't check enable_font_backend. Surround non-used
7310 code by "#ifdef OLD_FONT" and "endif".
7311 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7312 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7313
7314 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7315 conditionals. Don't check enable_font_backend. Delete all codes
7316 used only when USE_FONT_BACKEND is not defined. Surround non-used
7317 code by "#ifdef OLD_FONT" and "endif".
7318
7319 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7320 (uniscribe_open): Return value changed to font-object.
7321 Adjusted for the format change of font-object.
7322 (uniscribe_otf_capability): Adjusted for the change of struct font.
7323 (add_opentype_font_name_to_list): Don't downcase names.
7324 (uniscribe_font_driver): Adjusted for the change of struct
7325 font_driver.
7326
73272008-05-13 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * dispnew.c (update_frame_1): Check if tty output is still valid
7330 before flushing it.
7331
73322008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7333
7334 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7335 to Gtk+ menus.
7336
73372008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7338
7339 * dired.c (file_name_completion): Tweak the code so as to always do it
7340 in a single pass. Tighten the scope of some variables.
7341
7342 * dired.c (Qdefault_directory): New var.
7343 (file_name_completion): Use it instead of Fexpand_file_name.
7344 (syms_of_dired): Initialize it.
7345
73462008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7347
7348 * fileio.c (double_dollars): Remove dead code.
7349
73502008-05-10 Eli Zaretskii <eliz@gnu.org>
7351
7352 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7353 Mention w32-get-true-file-attributes in doc string.
7354
7355 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7356
73572008-05-09 Glenn Morris <rgm@gnu.org>
7358
7359 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7360 2008-04-23.
7361
73622008-05-09 Eli Zaretskii <eliz@gnu.org>
7363
7364 Support for reporting owner and group of each file on MS-Windows:
7365 * dired.c (stat_uname, stat_gname): New functions, with special
7366 implementation for w32.
7367 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7368
7369 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7370 (dflt_group_name): New static variable.
7371 (dflt_group): Rename from the_group.
7372 (init_user_info): Init dflt_group fields. Get user's group name
7373 from LookupAccountSid.
7374 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7375 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7376 New initialization states.
7377 (globals_of_w32): Initialize them to zero. Initialize the default
7378 group name to "None".
7379 (GetFileSecurity_Name): New global var, the name of the function
7380 to call for GetFileSecurity.
7381 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7382 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7383 (get_file_security, get_security_descriptor_owner)
7384 (get_security_descriptor_group, is_valid_sid)
7385 (get_file_security_desc, get_rid, get_name_and_id)
7386 (get_file_owner_and_group): New functions.
7387 (stat): Use get_file_security_desc and get_file_owner_and_group to
7388 report the owner and primary group of each file. Don't ignore the
7389 high 32 bits of file's size, now that st_size is 64-bit wide.
7390 Fix test when to get true file attributes.
7391 (init_user_info): Use get_rid instead of equivalent inline code.
7392 (fstat): Don't ignore the high 32 bits of file's size.
7393
73942008-05-09 Chong Yidong <cyd@stupidchicken.com>
7395
7396 * image.c (png_load): Use correct bit-depth for setting background
7397 color.
7398
73992008-05-08 Eli Zaretskii <eliz@gnu.org>
7400
7401 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7402 epa-hook.elc.
7403
74042008-05-08 Juanma Barranquero <lekktu@gmail.com>
7405
7406 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7407
74082008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7409
7410 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7411 because the original parameters are in pure storage now.
7412 (mac_window): Remove unused params. Update callers.
7413
74142008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7415
7416 * lread.c (substitute_object_recurse): Use lower-level primitives.
7417 Don't signal errors when traversing sub-char-tables.
7418 Don't loop over all the possible characters when traversing char-tables.
7419
7420 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7421 just like we do in print.c.
7422
74232008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7424
7425 * minibuf.c (Ftry_completion): Remove code left over from when we used
7426 scmp instead of Fcompare_strings.
7427
74282008-05-04 Juanma Barranquero <lekktu@gmail.com>
7429
7430 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7431
74322008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7433
7434 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7435 Create bitmap context in native byte order.
7436
7437 * macterm.c (XDrawLine)
7438 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7439 context in native byte order.
7440
74412008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7442
7443 * config.in: Regenerate.
7444
7445 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7446 New definitions for Image I/O support.
7447 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7448 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7449 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7450 (mac_data_provider_release_data, image_load_image_io)
7451 [USE_MAC_IMAGE_IO]: New functions.
7452 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7453 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7454 (init_image_func_pointer) [MAC_OSX]: Remove function.
7455 (image_load_quartz2d) [MAC_OSX]: Check availability of
7456 CGImageCreateWithPNGDataProvider at compile time.
7457 Use lowercase `false' for boolean constant.
7458 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7459 Use image_load_image_io.
7460 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7461 Don't check MyCGImageCreateWithPNGDataProvider.
7462 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7463 Don't call init_image_func_pointer.
7464
7465 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7466
7467 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7468 Make variable non-static.
7469 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7470 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7471
7472 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7473 (RED_FROM_ULONG): Mask off higher bits.
7474 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7475
7476 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7477 Include AvailabilityMacros.h.
7478 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7479 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7480
74812008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7482
7483 * chartab.c (Fset_char_table_range): If range is t, really set all
7484 chars to that value.
7485
74862008-05-03 Eli Zaretskii <eliz@gnu.org>
7487
7488 * dired.c (Ffile_attributes): Don't allow the device number become
7489 negative.
7490
74912008-05-02 Daiki Ueno <ueno@unixuser.org>
7492
7493 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7494
74952008-05-02 Juri Linkov <juri@jurta.org>
7496
7497 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7498 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7499 DEFAULT argument as a list of default values in docstrings.
7500
75012008-05-01 Chong Yidong <cyd@stupidchicken.com>
7502
7503 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7504
75052008-05-01 Martin Rudalics <rudalics@gmx.at>
7506
7507 * dispnew.c (change_frame_size_1): Preserve small windows when
7508 shrinking frames by calling set_window_height|width with third
7509 arg 2.
7510
7511 * window.h (struct window): Replace field too_small_ok by field
7512 resize_proportionally.
7513
7514 * window.c (make_window): Initialize resize_proportionally.
7515 (enlarge_window): Temporarily set resize_proportionally to make
7516 sure that shrink_windows does scale the window proportionally.
7517 (shrink_windows): When window has resize_proportionally set try
7518 to shrink it proportionally by stealing from other windows.
7519 (struct saved_window, Fset_window_configuration)
7520 (compare_window_configurations): Handle resize_proportionally.
7521 (WINDOW_TOTAL_SIZE): New macro.
7522 (window_min_size, shrink_windows, size_window): Use it.
7523 (check_min_window_sizes): Remove. Invalid values of
7524 window-min-height|width are handled by window_min_size_2 now.
7525 (size_window, Fsplit_window, enlarge_window)
7526 (adjust_window_trailing_edge, grow_mini_window): Don't call
7527 check_min_window_sizes.
7528 (window_min_size_2, window_min_size_1, window_min_size):
7529 New argument safe_p for retrieving "safe" minimum sizes.
7530 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7531 (adjust_window_trailing_edge, grow_mini_window):
7532 Adjust arguments of window_min_size... functions.
7533 (shrink_windows): Argument min_size removed. New argument
7534 safe_p allows shrinking windows to their safe minimum sizes.
7535 Calculate minimum size and decide whether a window shall be
7536 deleted for each window individually.
7537 (size_window): When nodelete_p equals 2, tell shrink_windows to
7538 delete windows only if their new minimum size is no more safe.
7539 (shrink_window_lowest_first): Call window_min_size_1 to make
7540 sure to preserve modeline of bottom-most window when resizing
7541 the minibuffer.
7542 (Fset_window_configuration, Fcurrent_window_configuration)
7543 (compare_window_configurations): Do not handle
7544 window-min-height|width any more.
7545 (syms_of_window): Clarify window-min-height|width doc-strings.
7546
75472008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7548
7549 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7550 some more. Copy some of the code from Ftry_completions.
7551 Remove special case code that dates back to initial revision when the
7552 slash was only added when necessary and that can't trigger nowadays.
7553
75542008-04-27 Kenichi Handa <handa@m17n.org>
7555
7556 * font.c (font_prop_validate): Signal `error' instead of `font'.
7557
75582008-04-29 Jason Rumney <jasonr@gnu.org>
7559
7560 * w32fns.c (Fw32_battery_status): New defun.
7561 (syms_of_w32fns): Defsubr it.
7562
75632008-04-28 Andreas Schwab <schwab@suse.de>
7564
7565 * dired.c (file_name_completion): Fix another mixing of encoded
7566 and decoded names.
7567
75682008-04-28 Juanma Barranquero <lekktu@gmail.com>
7569
7570 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7571
75722008-04-27 Juanma Barranquero <lekktu@gmail.com>
7573
7574 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7575
75762008-04-27 Andreas Schwab <schwab@suse.de>
7577
7578 * dired.c (file_name_completion): Fix inappropriate mixing of
7579 encoded and decoded names.
7580
7581 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7582
7583 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7584
75852008-04-26 Eli Zaretskii <eliz@gnu.org>
7586
7587 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7588 2008-03-31, it's not needed anymore with `struct stat' definition
7589 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7590 for the same reasons.
7591
75922008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7593
7594 * m/sparc.h: Additional redefinitions for GNU/Linux.
7595
75962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7597
7598 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7599 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7600 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7601 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7602 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7603 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7604 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7605 Likewise.
7606
7607 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7608 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7609 (mac_ax_number_of_characters): Add externs.
7610 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7611 [USE_MAC_TSM]: Likewise.
7612 (mac_handle_text_input_event) [MAC_OSX]:
7613 Handle kEventTextInputOffsetToPos for no active input area case.
7614 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7615 (mac_handle_document_access_event)
7616 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7617 (install_application_handler) [MAC_OSX]: Register handlers for
7618 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7619 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7620 Register mac_handle_document_access_event.
7621
7622 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7623 Make functions non-static.
7624
76252008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7626
7627 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7628 (read_file_name_completion_ignore_case, insert_default_directory)
7629 (Qdefault_directory): Move to minibuffer.el.
7630 (Fread_file_name): Call the new `read-file-name' instead.
7631
76322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7633
7634 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7635 Make function non-static.
7636 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7637 Remove function.
7638 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7639 Move to mactoolbox.c.
7640 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7641
7642 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7643 (mac_rect_make): New macro.
7644
7645 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7646 instead of float.
7647 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7648 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7649 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7650 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7651 CGRectMake.
7652 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7653 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7654 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7655 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7656 instead of WindowRef in argument type.
7657 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7658 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7659 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7660 instead of DISPLAY. All uses changed.
7661 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7662 (x_calc_absolute_position): Simplify so as not to use
7663 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7664
7665 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7666 instead of WindowRef in argument type.
7667 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7668 [TARGET_API_MAC_CARBON]: Remove externs.
7669 (create_apple_event, mac_event_parameters_to_lisp)
7670 [TARGET_API_MAC_CARBON]: Add externs.
7671
7672 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7673 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7674 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7675 is clicked.
7676 (x_activate_menubar): Remove extern for saved_menu_event_location.
7677 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7678 Move from mac.c.
7679
76802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7681
7682 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7683 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7684
76852008-04-23 Jason Rumney <jasonr@gnu.org>
7686
7687 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7688 attributes only for local files.
7689
7690 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7691 default to Qlocal.
7692
76932008-04-22 Juri Linkov <juri@jurta.org>
7694
7695 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7696 read-buffer-to-switch instead of using the letter "B".
7697
76982008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7699
7700 * fileio.c (Qdefault_directory): New variable.
7701 (Fread_file_name): Use it to pass `dir' to the completion functions.
7702
77032008-04-20 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7706
77072008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7708
7709 * keyboard.c (Vpre_help_message): Remove.
7710 (show_help_echo): Remove default C code.
7711
7712 * dired.c (directory_files_internal, file_name_completion):
7713 Only call ENCODE_FILE if the string is indeed decoded.
7714
77152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7716
7717 * Makefile.in (TOOLKIT_DEFINES): Remove.
7718 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7719
77202008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7721
7722 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7723 (mactoolbox.o): New target.
7724
7725 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7726 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7727
7728 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
7729 Use mac_set_frame_window_background instead of XSetWindowBackground.
7730 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
7731 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
7732 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
7733 instead of SetWindowTitleWithCFString.
7734 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
7735 Move function to mactoolbox.c.
7736 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
7737 Use mac_set_window_modified instead of SetWindowModified.
7738 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
7739 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
7740 (Fx_focus_frame): Use mac_front_non_floating_window instead of
7741 FrontNonFloatingWindow. Use mac_activate_window instead of
7742 ActivateWindow. Use mac_active_non_floating_window instead of
7743 ActiveNonFloatingWindow.
7744 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
7745 Use mac_show_hourglass and mac_hide_hourglass.
7746 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
7747 instead of GetGlobalMouse.
7748 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
7749 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
7750 Use mac_bring_window_to_front instead of BringToFront.
7751 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
7752 mactoolbox.c.
7753 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
7754 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
7755 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
7756 mactoolbox.c.
7757
7758 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
7759 (XtPointer): Move typedef from macmenu.c.
7760 (enum button_type): Move enum from macmenu.c.
7761 (widget_value): Move typedef from macmenu.c.
7762 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
7763 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7764 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7765 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7766 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7767 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7768 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7769 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
7770 (Selection): Move typedef from macselect.c.
7771 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
7772 macterm.c.
7773 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
7774 (mac_is_window_collapsed, mac_bring_window_to_front)
7775 (mac_send_window_behind, mac_hide_window, mac_show_window)
7776 (mac_collapse_window, mac_front_non_floating_window)
7777 (mac_active_non_floating_window, mac_activate_window)
7778 (mac_move_window_structure, mac_move_window, mac_size_window)
7779 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
7780
7781 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
7782 (enum mac_menu_kind): Move enum to mactoolbox.c.
7783 (min_menu_id): Move variable to mactoolbox.c.
7784 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
7785 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
7786 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
7787 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
7788 [TARGET_API_MAC_CARBON]: Likewise.
7789 (XtPointer): Move typedef to macgui.h.
7790 (enum button_type): Move enum to macgui.h.
7791 (widget_value): Move typedef to macgui.h.
7792 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7793 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7794 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7795 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7796 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7797 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7798 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
7799 (popup_activated_flag): Make variable non-static.
7800 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
7801 (add_menu_item, fill_menu, dispose_menus):
7802 Move functions to mactoolbox.c.
7803 (restore_show_help_function, menu_target_item_handler)
7804 (install_menu_target_item_handler, mac_handle_dialog_event)
7805 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
7806 [TARGET_API_MAC_CARBON]: Likewise.
7807 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
7808 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7809 (find_and_call_menu_selection, name_is_separator): Make function
7810 non-static.
7811 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
7812 to mactoolbox.c.
7813 (set_frame_menubar): Don't call install_menu_quit_handler.
7814 (menu_item_selection): New variable.
7815 (mac_menu_show): Use create_and_show_popup_menu.
7816 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
7817 selection but set variable menu_item_selection. All uses changed.
7818 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
7819 Call install_menu_quit_handler. Move to mactoolbox.c.
7820
7821 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
7822 (Selection): Move typedef to macgui.h.
7823 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
7824 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
7825 Make variables non-static.
7826 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7827 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
7828 Make functions non-static.
7829 (Vmac_service_selection) [MAC_OSX]: Likewise.
7830 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
7831 (mac_valid_selection_target_p, mac_clear_selection)
7832 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7833 (mac_put_selection_value, mac_selection_has_target_p)
7834 (mac_get_selection_value, mac_get_selection_target_list)
7835 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
7836 Move functions to mactoolbox.c.
7837 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
7838 Likewise.
7839 (copy_scrap_flavor_data, mac_handle_service_event)
7840 (install_service_handler) [MAC_OSX]: Likewise.
7841 (syms_of_macselect) <Vmac_dnd_known_types>:
7842 Use mac_dnd_default_known_types.
7843
7844 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
7845 Move to mactoolbox.c.
7846 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
7847 (Fx_selection_owner_p): Add EXFUN.
7848 (install_window_handler, remove_window_handler, XSetWindowBackground):
7849 Remove externs.
7850 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
7851 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
7852 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
7853 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
7854 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
7855 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
7856 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
7857 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
7858 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
7859 (create_and_show_popup_menu, mac_get_selection_from_symbol)
7860 (mac_valid_selection_target_p, mac_clear_selection)
7861 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7862 (mac_put_selection_value, mac_selection_has_target_p)
7863 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
7864 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
7865 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
7866 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7867 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
7868 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7869 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
7870 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7871 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7872
7873 * mactoolbox.c: New file.
7874
78752008-04-18 Jason Rumney <jasonr@gnu.org>
7876
7877 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
7878
78792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7880
7881 * character.c (Fmultibyte_char_to_unibyte):
7882 Return latin1 chars unchanged.
7883
7884 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
7885 relocated if it points to `name'.
7886
78872008-04-17 Kenichi Handa <handa@m17n.org>
7888
7889 * data.c (Faset): Allow setting a multibyte character in an
7890 ASCII-only unibyte string.
7891
7892 * lisp.h (STRING_SET_MULTIBYTE): New macro.
7893
78942008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
7895
7896 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
7897 done in config.h.
7898
78992008-04-16 Juanma Barranquero <lekktu@gmail.com>
7900
7901 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
7902 (Fchar_direction): Add usage in the docstring.
7903
79042008-04-15 Chong Yidong <cyd@stupidchicken.com>
7905
7906 * keyboard.c (read_key_sequence): Remove always-true checks.
7907
79082008-04-14 Jason Rumney <jasonr@gnu.org>
7909
7910 * w32font.c (w32font_open_internal): Set max_bounds.descent in
7911 compatibility struct, for better underline positioning.
7912
79132008-04-13 David Hansen <david.hansen@gmx.net>
7914
7915 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
7916 string.
7917
79182008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7919
7920 * m/hp800.h (XUINT, XSET): Remove.
7921
79222008-04-12 Juanma Barranquero <lekktu@gmail.com>
7923
7924 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
7925 previous change.
7926
79272008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7928
7929 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
7930 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
7931
79322008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7933
7934 * keymap.h (map_keymap_canonical): Declare.
7935 * xmenu.c (single_keymap_panes): Use it.
7936
79372008-04-11 Glenn Morris <rgm@gnu.org>
7938
7939 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
7940 set the target's value to that of the alias.
7941
79422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7943
7944 * term.c (set_tty_color_mode): Left over typo.
7945
79462008-04-10 Michael Albinus <michael.albinus@gmx.de>
7947
7948 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
7949 only after check for file name handler functions. Signal, when
7950 native functionality is not supported.
7951 (syms_of_fileio): Declare it unconditionally.
7952
79532008-04-10 Jason Rumney <jasonr@gnu.org>
7954
7955 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
7956 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
7957
7958 * w32.c (logon_network_drive): Also logon to remote drives that
7959 are mapped to drive letters.
7960
79612008-04-10 Glenn Morris <rgm@gnu.org>
7962
7963 * xdisp.c (truncate-partial-width-windows): Doc fix.
7964
79652008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
7966
7967 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
7968 Move functions to minibuffer.el.
7969 (syms_of_fileio): Don't declare them.
7970
79712008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7972
7973 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
7974 (syms_of_minibuf): Remove its initialization.
7975
7976 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
7977
79782008-04-09 Juanma Barranquero <lekktu@gmail.com>
7979
7980 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
7981
79822008-04-09 Jason Rumney <jasonr@gnu.org>
7983
7984 * makefile.w32-in (distclean): Delete makefile too.
7985 (maintainer-clean): New target.
7986
7987 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
7988
7989 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
7990 for new font backend and composite cases.
7991
79922008-04-09 Jan Djärv <jan.h.d@swipnet.se>
7993
7994 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
7995 Most of the code moved to run_timers.
7996 (do_pending_atimers): Call run_timers.
7997 (run_timers): New function.
7998
7999 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8000 run atimers.
8001
8002 * process.c (wait_reading_process_output): The same as above.
8003
80042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8005
8006 * minibuf.c (last_exact_completion): Remove variable.
8007 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8008 (complete_and_exit_1, complete_and_exit_2)
8009 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8010 (Fdisplay_completion_list, display_completion_list_1)
8011 (Fminibuffer_completion_help, Fself_insert_and_exit)
8012 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8013 minibuffer.el.
8014 (syms_of_minibuf): Remove corresponding initializations.
8015
8016 * keyboard.c (Qdeactivate_mark): New var.
8017 (command_loop_1): Use it to call `deactivate-mark'.
8018 (syms_of_keyboard): Initialize it.
8019
8020 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8021 to another frame.
8022 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8023 Don't call set_tty_color_mode.
8024 (store_frame_param): Reset previous_frame rather than call
8025 set_tty_color_mode.
8026 * term.c (set_tty_color_mode): Rewrite.
8027 * dispextern.h (set_tty_color_mode): New type.
8028 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8029
80302008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8031
8032 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8033 for generic chars, which do not exist any more in emacs-unicode.
8034
80352008-04-08 Michael Albinus <michael.albinus@gmx.de>
8036
8037 * coding.c (detect_coding_emacs_mule)
8038 (Ffind_operation_coding_system): Fix typo.
8039
80402008-04-08 Jason Rumney <jasonr@gnu.org>
8041
8042 * w32uniscribe.c (SNAME): Extract only symbol name.
8043
8044 * w32font.h (struct w32_metric_cache): New struct.
8045 (w32font_info): Use it.
8046 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8047 (CACHE_BLOCKSIZE): New constants.
8048
8049 * w32font.c (Qja, Qko, Qzh): New symbols.
8050 (syms_of_w32font): Initialise them.
8051 (font_matches_spec): Use them to filter by language.
8052 (recompute_cached_metrics): Remove function.
8053 (compute_metrics, clear_cached_metrics): New functions.
8054 (w32font_encode_char): Use them to manage metric cache.
8055 (w32font_text_extents): Cache metrics for all glyphs on demand.
8056 Delay converting glyph indices to WORD until needed.
8057 (w32font_open_internal): Initialize metric cache to empty.
8058 (registry_to_w32_charset): Charset should always be a symbol.
8059 (fill_in_logfont, list_all_matching_fonts): Family should
8060 always be a symbol.
8061
80622008-04-06 Jason Rumney <jasonr@gnu.org>
8063
8064 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8065 Give up if glyph indices not supported. Use uniscribe obtained
8066 ABC widths for individual metrics. Map glyph clusters back to
8067 characters using fClusterStart flag. Return number of glyphs
8068 produced, not chars processed.
8069 (uniscribe_shape): Map char at FROM to current glyph.
8070
80712008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8072
8073 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8074 Use SetMenuItemHierarchicalMenu.
8075
80762008-04-05 Jason Rumney <jasonr@gnu.org>
8077
8078 * image.c (pbm_load): Allow color values up to 65535.
8079 Throw an error if max_color_idx is outside the supported range.
8080 Report an error when image size is invalid.
8081 Read two bytes at a time when raw images have max_color_idx above 255.
8082
80832008-04-05 Eli Zaretskii <eliz@gnu.org>
8084
8085 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8086 cFileName a file name that includes `?' characters, use the 8+3
8087 alias in cAlternateFileName instead.
8088
80892008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8090
8091 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8092 append "CCL: Quitted" when the CCL program is quitted.
8093 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8094
8095 * ccl.h (struct ccl_program): New member quit_silently.
8096
80972008-04-05 Chong Yidong <cyd@stupidchicken.com>
8098
8099 * search.c (compile_pattern_1): Treat non-nil and non-string of
8100 search-spaces-regexp as nil.
8101
8102 * minibuf.c (Fassoc_string): Tweak docstring.
8103
81042008-04-05 Eli Zaretskii <eliz@gnu.org>
8105
8106 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8107 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8108 2008-03-14 to force inode be positive.
8109
8110 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8111 _S_* ones, since we now use our own sys/stat.h.
8112 (stat, fstat): Don't mangle the inode number.
8113 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8114
81152008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8116
8117 * frame.h (struct frame): Give one more bit to `visible' since we use
8118 values larger than 1 to indicate obscured frames on ttys.
8119
8120 * keymap.c (Qkeymap_canonicalize): New var.
8121 (Fmap_keymap_internal): New fun.
8122 (describe_map): Use keymap-canonicalize.
8123
8124 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8125 (Fundo_boundary): Set them.
8126 (syms_of_undo): Initialize them.
8127 (record_point): Use them instead of last_point_position*.
8128 (last_undo_buffer): Change type.
8129
81302008-04-04 Jason Rumney <jasonr@gnu.org>
8131
8132 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8133 (recompute_cached_metrics): Don't set ascent and descent per char.
8134
8135 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8136 (uniscribe_check_otf): Add GC protection before consing.
8137 Rearrange loop for counting features.
8138
81392008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8140
8141 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8142 buffer with byte-size of source buffer.
8143
81442008-04-03 Chong Yidong <cyd@stupidchicken.com>
8145
8146 * callint.c (Fcall_interactively): Handle temporary region even
8147 when shift-select-mode is off.
8148
81492008-04-03 Jason Rumney <jasonr@gnu.org>
8150
8151 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8152
81532008-04-03 Kenichi Handa <handa@m17n.org>
8154
8155 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8156 (CATEGORY_MASK_UTF_16): Likewise.
8157 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8158 binary file.
8159 (detect_coding): Add null-byte detection for a binary file.
8160 (detect_coding_system): Likewise.
8161
81622008-04-03 Jason Rumney <jasonr@gnu.org>
8163
8164 * w32uniscribe.c: New file.
8165
8166 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8167
8168 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8169
8170 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8171 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8172 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8173 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8174 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8175 (Qphonetic): New symbols.
8176 (syms_of_w32font): Initialize them.
8177 (font_supported_scripts): Use them.
8178 (w32font_list_family): List all charsets.
8179 (w32font_text_extents, recompute_cached_metrics): Fix metric
8180 calculations.
8181 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8182 Give opentype fonts their own format.
8183 (font_matches_spec): New arguments backend and logfont.
8184 Handle :otf spec for uniscribe backend.
8185 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8186 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8187
8188 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8189 font backend.
8190 (globals_of_w32fns): Initialize uniscribe font backend.
8191
8192 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8193 dependencies.
8194 (w32uniscribe.$(O)): New file to build.
8195 (FONT_OBJ): Include w32uniscribe.$(O).
8196 (LIBS): Add uniscribe libraries.
8197
8198 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8199
82002008-04-02 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * callint.c (Vshift_select_mode): New var.
8203 (Finteractive): Document new ^ spec.
8204 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8205 is present.
8206
8207 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8208 (command_loop_1): Avoid running the direct display versions of
8209 forward-char and backward-char if shift-selection may occur.
8210 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8211 shift-translation takes place.
8212
8213 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8214 avoid clobbering by define-minor-mode.
8215
8216 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8217 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8218
8219 * syntax.c (Fforward_word): Add ^ interactive spec.
8220
8221 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8222 (Fscroll_right): Add ^ interactive spec.
8223
82242008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8225
8226 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8227
8228 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8229
8230 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8231
82322008-03-31 Juri Linkov <juri@jurta.org>
8233
8234 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8235
82362008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8237
8238 * gtkutil.c (xg_set_geometry): Fix indentation.
8239 (xg_resize_outer_widget): Remove.
8240 (x_wm_size_hint_off): Fix indentation.
8241 (xg_frame_set_char_size): Call flush_and_sync after
8242 gtk_window_resize.
8243 (x_wm_set_size_hint): Pass NULL as geometry window to
8244 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8245 Add menu bar and tool bar height to base height.
8246 (xg_update_frame_menubar, free_frame_menubar)
8247 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8248 (update_frame_tool_bar, free_frame_tool_bar):
8249 Change xg_resize_outer_widget to xg_frame_set_char_size.
8250
82512008-03-30 Michael Albinus <michael.albinus@gmx.de>
8252
8253 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8254 (Fdbus_call_method): New parameter TIMEOUT.
8255 (dbus-send-signal): Optimize UNGCPRO call.
8256
82572008-03-29 Juri Linkov <juri@jurta.org>
8258
8259 * window.c (Fdisplay_buffer): Move call to
8260 Vsplit_window_preferred_function out of conditions that check
8261 if window is eligible for vertical splitting.
8262 When Vsplit_window_preferred_function is non-nil, call it and use
8263 its non-nil return value as window. Otherwise, continue doing
8264 vertical splitting using Fsplit_window with arg horflag=nil.
8265 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8266 default value from `split-window' to nil.
8267
82682008-03-29 Juri Linkov <juri@jurta.org>
8269
8270 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8271 for interactive code letters 'b' and 'B'.
8272
82732008-03-29 Eli Zaretskii <eliz@gnu.org>
8274
8275 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8276 multibyte string.
8277
82782008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8279
8280 * keyboard.c (pending_funcalls): New var.
8281 (timer_check): Run it.
8282 (syms_of_keyboard): Initialize it.
8283 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8284 (Vdelete_terminal_functions): New vars.
8285 (syms_of_terminal): Initialize them.
8286 (Fdelete_terminal): Run delete-terminal-functions.
8287 * xdisp.c (safe_eval): Rewrite.
8288 (safe_call2): New fun.
8289 * frame.c (Qdelete_frame_functions): New var.
8290 (syms_of_frame): Initialize it.
8291 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8292 * lisp.h (safe_call2, pending_funcalls): Declare.
8293
82942008-03-28 Andreas Schwab <schwab@suse.de>
8295
8296 * indent.c (Fmove_to_column): Move declaration before statements.
8297
82982008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8299
8300 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8301 (struct frame): Use bit fields for boolean vars.
8302
8303 * process.c (server_accept_connection): Simplify naming.
8304 (emacs_get_tty_pgrp): Use SDATA.
8305
8306 * coding.c (decode_coding_object): Fix last change.
8307
83082008-03-27 Jason Rumney <jasonr@gnu.org>
8309
8310 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8311
83122008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8313
8314 * charset.c (Fdefine_charset_internal): Change the way of
8315 registering charsets in Vcharset_order_list.
8316 (syms_of_charset): Make the charset `eight-bit' supplementary.
8317
83182008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8319
8320 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8321 operations, to avoid having the difference between pointers
8322 overflow.
8323
83242008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8325
8326 * indent.c (check_display_width): New fun.
8327 (scan_for_column): Use it.
8328
8329 * data.c (syms_of_data): Mark most-positive-fixnum and
8330 most-negative-fixnum as constants.
8331
8332 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8333
8334 * indent.c (scan_for_column): Extract from current_column_1.
8335 Merge with the same code from Fmove_to_column.
8336 (current_column_1, Fmove_to_column): Use it.
8337
83382008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8339
8340 * keymap.c (map_keymap_internal): New fun.
8341 (map_keymap): Use it.
8342 (Fmap_keymap_internal): New fun.
8343 (Fmap_keymap): Remove left-out test from before make_save_value.
8344
8345 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8346
8347 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8348 Use XCAR/XCDR.
8349
8350 * process.h (struct Lisp_Process): Remove filter_multibyte.
8351 * process.c (QCfilter_multibyte): Remove.
8352 (setup_process_coding_systems): Don't use filter_multibyte.
8353 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8354 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8355 (Fset_process_filter_multibyte): Change the coding-system to
8356 approximate the previous behavior.
8357 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8358 coding-system.
8359
8360 * coding.c (decode_coding_object): When not decoding into a buffer,
8361 obey the coding system's preference of (uni|multi)byte.
8362
83632008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8364
8365 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8366 every char is changed and has a different byte-length.
8367 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8368 Fix int -> EMACS_INT.
8369
83702008-03-23 David Hansen <david.hansen@gmx.net>
8371
8372 * dbusbind.c (xd_read_message): Remove extra copying of message
8373 strings. Check for NULL `interface' or `member'.
8374
83752008-03-22 Eli Zaretskii <eliz@gnu.org>
8376
8377 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8378 cFileName a file name that includes `?' characters, use the 8+3
8379 alias in cAlternateFileName instead.
8380
83812008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8382
8383 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8384
83852008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8386
8387 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8388 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8389 work on current_buffer only instead (that was already the case
8390 for some of the code anyway).
8391 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8392 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8393 (SET_PT, SET_PT_BOTH): Adjust.
8394 * intervals.h (set_point, temp_set_point, set_point_both)
8395 (temp_set_point_both): Remove redundant declarations.
8396
83972008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8398
8399 * fileio.c (Finsert_file_contents):
8400 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8401 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8402 when buffer != current_buffer anyway.
8403
84042008-03-20 Andreas Schwab <schwab@suse.de>
8405
8406 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8407 as default.
8408
84092008-03-19 Jason Rumney <jasonr@gnu.org>
8410
8411 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8412 (syms_of_w32fns): Initialize them.
8413 (HOURGLASS_ID): New constant.
8414 (x_window_to_frame): Don't check hourglass_window.
8415 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8416 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8417 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8418 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8419 Only change the cursor if hourglass is not active.
8420 (Fx_create_frame): Initialize frame's current_cursor.
8421 (hourglass_atimer): Remove.
8422 (hourglass_started): New function.
8423 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8424 (show_hourglass): Adapt to w32, changing argument to frame.
8425
8426 * w32term.h (struct w32_output): Remove hourglass_window.
8427 Add current_cursor.
8428
8429 * eval.c (call_debugger, Fsignal):
8430 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8431 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8432 (Fexecute_extended_command, cancel_hourglass_unwind):
8433 * minibuf.c (read_minibuf):
8434 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8435
84362008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8437
8438 * window.c (run_funs): New fun.
8439 (run_window_configuration_change_hook): Use it to run the buffer-local
8440 and the global part of the hook.
8441
8442 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8443 (unwind_format_mode_line): Restore selected window.
8444 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8445
84462008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8447
8448 * editfns.c (Fchar_equal): Check they are valid characters.
8449
8450 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8451
84522008-03-17 Andreas Schwab <schwab@suse.de>
8453
8454 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8455 against a charset.
8456
8457 * lisp.h (Fbuffer_list): Declare.
8458
84592008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8460
aac0c6e3
MR
8461 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8462 handlebox_widget is != 0.
8463
84642008-03-16 Juri Linkov <juri@jurta.org>
8465
8466 * callint.c (Fcall_interactively): For interactive code letters
8467 'b' and 'B' put the buffer list into the list of default "future"
8468 values of the minibuffer.
8469
84702008-03-16 Andreas Schwab <schwab@suse.de>
8471
8472 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8473 modifiers.
8474
8475 * regex.c (re_match_2_internal): Correct matching of a charset
8476 against latin-1 characters.
8477
84782008-03-16 Kenichi Handa <handa@m17n.org>
8479
8480 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8481 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8482 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8483 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8484 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8485 CHAR_STRING_ADVANCE.
8486 (produce_chars): Fix for the case that the source and the
8487 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8488 instead of CHAR_STRING_ADVANCE.
8489 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8490 STRING_CHAR_ADVANCE.
8491
84922008-03-15 Andreas Schwab <schwab@suse.de>
8493
8494 * regex.c (re_match_2_internal): Correct matching of eight bit
8495 characters in unibyte strings.
8496
84972008-03-15 Martin Rudalics <rudalics@gmx.at>
8498
8499 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8500 at end of range when it coincides with the end of the buffer.
8501
85022008-03-14 Eli Zaretskii <eliz@gnu.org>
8503
8504 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8505
8506 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8507
85082008-03-14 Jason Rumney <jasonr@gnu.org>
8509
8510 * editfns.c (initial_tz): New variable.
8511 (syms_of_editfns): Initialize it.
8512 (Fset_time_zone_rule): Set it when first called.
8513 Use it when TZSTRING is nil.
8514
8515 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8516 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8517 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8518 (globals_of_w32fns): Initialize them.
8519 (compute_tip_xy): Use them to position tooltips.
8520
85212008-03-14 Glenn Morris <rgm@gnu.org>
8522
8523 * emacs.c (main): Revert previous change.
8524 (standard_args): Revert -internal-script back to -scriptload,
8525 and remove the long-option form.
8526
85272008-03-13 Glenn Morris <rgm@gnu.org>
8528
8529 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8530 Remove option -enable-font-backend.
8531
85322008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8533
8534 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8535
85362008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8537
8538 * xterm.c (x_connection_closed): For GTK: If this is the last
8539 terminal just exit without closing the display.
8540
85412008-03-11 Jason Rumney <jasonr@gnu.org>
8542
8543 * w32font.c (w32font_full_name): Use floor to round.
8544
f0131492 85452008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8546
8547 * sound.c (alsa_configure): Declare vol at beginning of block.
8548
8549 * fontset.c (Ffontset_info): Remove extra semicolon.
8550
85512008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8552
8553 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8554 size of resulting string.
8555
85562008-03-10 Jason Rumney <jasonr@gnu.org>
8557
8558 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8559
85602008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8561
8562 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8563 Don't pretend as if characters with display property haven't been
8564 consumed for string-replacing-string case.
8565
85662008-03-08 Kim F. Storm <storm@cua.dk>
8567
8568 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8569 (get_next_display_element, next_element_from_string)
8570 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8571
85722008-03-08 Andreas Schwab <schwab@suse.de>
8573
8574 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8575
85762008-03-06 Jason Rumney <jasonr@gnu.org>
8577
8578 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8579 when charset not specified. Only translate ANSI to unicode when
8580 font_type is truetype.
8581 (w32font_coverage_ok): New function.
8582 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8583
85842008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8585
8586 * lread.c (Fread_char): Resolve modifiers.
8587 (Fread_char_exclusive): Likewise.
8588
8589 * character.c (char_resolve_modifier_mask): New function.
8590 (char_string): Use char_resolve_modifier_mask.
8591 (Fchar_resolve_modifiers): New function.
8592 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8593 function.
8594
85952008-03-04 Jason Rumney <jasonr@gnu.org>
8596
8597 * makefile.w32-in: Always include w32font.c in the build.
8598 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8599
86002008-03-04 Andreas Schwab <schwab@suse.de>
8601
8602 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8603 (versionclean): Likewise.
8604
86052008-03-04 Juanma Barranquero <lekktu@gmail.com>
8606
8607 * .cvsignore: Add oo.
8608
86092008-03-03 Andreas Schwab <schwab@suse.de>
8610
8611 * coding.c (decode_coding_object): Inhibit gap shrinking while
8612 decoding in place.
8613
86142008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8615
8616 * w32term.c: Remove unused include "gnu.h".
8617 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8618
8619 * gnu.h: Rename to ...
8620 * emacs-icon.h: ... this.
8621 * xterm.c: Use emacs-icon.h instead of gnu.h.
8622 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8623
86242008-03-03 Juanma Barranquero <lekktu@gmail.com>
8625
8626 * w32font.c: Include math.h.
8627
86282008-03-03 Jason Rumney <jasonr@gnu.org>
8629
8630 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8631 Compute options separately.
8632 (w32font_open_internal): Set glyph_idx before caching metrics.
8633
8634 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8635 Define if system headers don't.
8636 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8637 (w32font_encode_char): Don't declare here.
8638
8639 * w32font.c (Quniscribe, QCformat): New symbols.
8640 (syms_of_w32font): Define them.
8641 (w32font_has_char): Indicate uncertainty.
8642 (w32font_encode_char): Encode as glyph point. Make static.
8643 (recompute_cached_metrics): New function.
8644 (w32font_open_internal): Use it. Set font to use glyph points
8645 initially. Set format based on type of font.
8646 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8647 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8648 on it. Set format based on information available here.
8649 (add_font_entity_to_list): Identify backend based on opentype_only.
8650
86512008-03-02 Andreas Schwab <schwab@suse.de>
8652
8653 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8654
8655 * coding.c (decode_coding_big5, produce_chars):
8656 Fix typos in last change.
8657
86582008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8659
8660 * gnu.h: New icon.
8661
86622008-03-02 Kenichi Handa <handa@m17n.org>
8663
8664 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8665 `dos', don't decode '\r' if that is the last in the source.
8666 (decode_coding_utf_16, decode_coding_emacs_mule)
8667 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8668 (decode_coding_raw_text, decode_coding_charset): Likewise.
8669 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8670
86712008-03-01 Jason Rumney <jasonr@gnu.org>
8672
8673 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8674
86752008-03-01 Kim F. Storm <storm@cua.dk>
8676
8677 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8678
86792008-03-01 Jason Rumney <jasonr@gnu.org>
8680
8681 * w32font.c (w32font_full_name): New function.
8682 (w32font_open_internal): Use it.
8683
86842008-03-01 Kim F. Storm <storm@cua.dk>
8685
8686 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8687
86882008-03-01 Jason Rumney <jasonr@gnu.org>
8689
8690 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8691
86922008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8693
8694 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8695 xg_frame_resized when the event is for the edit widget.
8696
8697 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8698
8699 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8700 set_char_size.
8701 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8702 operations on widgets here. Just set frame size if needed.
8703 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8704 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8705 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8706 the whole frame.
8707 (xg_create_tool_bar): Move attachment of the tool bar to
8708 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8709 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8710
87112008-03-01 Jason Rumney <jasonr@gnu.org>
8712
8713 * w32fns.c (w32_msg_pump): Disable debug code.
8714
87152008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8716
8717 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8718
87192008-02-29 Chong Yidong <cyd@stupidchicken.com>
8720
8721 * xdisp.c (next_overlay_string): Don't set
8722 overlay_strings_at_end_processed_p if we're currently reading from
8723 a display string.
8724
87252008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8726
8727 * xdisp.c (get_overlay_strings_1): Fix typo.
8728
87292008-02-29 Chong Yidong <cyd@stupidchicken.com>
8730
8731 * xdisp.c (get_overlay_strings_1): Add missing argument type.
8732
87332008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
8734
8735 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
8736
8737 * xdisp.c (display_mode_element): Cancel the previous change.
8738 (decode_mode_spec): Likewise.
8739 (handle_auto_composed_prop): Don't make composition if it->string
8740 is a string.
8741
87422008-02-27 Kim F. Storm <storm@cua.dk>
8743
8744 * lisp.h (GLYPH): Change type from int to struct with separate char
8745 and face_id members.
8746 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
8747 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
8748 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
8749 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
8750 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
8751 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
8752 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
8753 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
8754 handle new Lisp glyph code encoding, either an integer or a cons.
8755
8756 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
8757 (GLYPH_ALIAS): Delete.
8758 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
8759 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
8760 (GLYPH_FROM_CHAR): Replace macro by ...
8761 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
8762
8763 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
8764 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
8765 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
8766 (GLYPH_INVALID_P): New macro.
8767 (spec_glyph_lookup_face): Update prototype.
8768
8769 * dispnew.c (line_draw_cost): Adapt to new glyph type.
8770 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
8771 new glyph code encoding.
8772 (spec_glyph_lookup_face): No return value; update passed glyph instead.
8773 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
8774
8775 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8776 Adapt to new glyph type and new glyph code encoding.
8777
8778 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
8779
8780 * indent.c (current_column, current_column_1, Fmove_to_column)
8781 (compute_motion): Adapt to new glyph code encoding.
8782
8783 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
8784
87852008-02-27 Chong Yidong <cyd@stupidchicken.com>
8786
8787 * process.c (wait_reading_process_output): Check for window
8788 changes caused by timers.
8789 Suggested by Johan Bockgård.
8790
87912008-02-27 Glenn Morris <rgm@gnu.org>
8792
8793 * emacs.c (USAGE1): Add `--disable-font-backend'.
8794
87952008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
8796
8797 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
8798 is made to the buffer.
8799
88002008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
8801
8802 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
8803 (face_at_string_position):
8804 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
8805 (face_at_string_position):
8806 * xdisp.c (display_string, next_overlay_change):
8807 * buffer.h (overlays_at):
8808 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
8809 Update callers.
8810
88112008-02-26 Chong Yidong <cyd@stupidchicken.com>
8812
8813 * editfns.c (Fformat): Doc fix.
8814
88152008-02-26 Juanma Barranquero <lekktu@gmail.com>
8816
8817 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
8818 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
8819 (Ffont_otf_alternates, Fquery_font): Doc fixes.
8820
88212008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8822
8823 * buffer.c (Fbuffer_swap_text): New function.
8824 (syms_of_buffer): Defsubr it.
8825
88262008-02-25 Chong Yidong <cyd@stupidchicken.com>
8827
8828 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
8829
88302008-02-25 Jason Rumney <jasonr@gnu.org>
8831
8832 * w32font.c (w32font_draw): Draw one character at a time when padding.
8833
88342008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8835
8836 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
8837 Handle a nil arg. Use run_window_configuration_change_hook.
8838 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
8839 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
8840 Use run_window_configuration_change_hook.
8841
88422008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8843
8844 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
8845 1-pixel width.
8846
88472008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8848
8849 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
8850 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
8851 if the glyph in the font is zero pixel with.
8852
8853 * dispextern.h (struct glyph_string): New member padding_p.
8854
8855 * w32font.c (w32font_draw): Pay attention to s->padding_p.
8856
8857 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
8858
8859 * xfont.c (xfont_draw): Pay attention to s->padding_p.
8860
8861 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
8862
8863 * font.c: If the font driver doesn't have `shape' function, return Qnil.
8864
88652008-02-25 Jason Rumney <jasonr@gnu.org>
8866
8867 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
8868
88692008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
8870
8871 Allow fine-grained image-cache flushing.
8872 * dispextern.h (struct image): Add `dependencies' field.
8873 (clear_image_caches): Change arg to Lisp_Object.
8874 * image.c (make_image): Initialize `dependencies' field.
8875 (clear_image_cache): Change arg to allow fine-grained flushing.
8876 Perform the flush even if image-cache-eviction-delay is nil.
8877 (clear_image_caches): Change arg to Lisp_Object.
8878 (Fclear_image_cache): Expand meaning of the argument.
8879 (mark_image): Mark `dependencies' field.
8880 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
8881 (lface_hash): Use XHASH rather than XFASTINT.
8882 (face_at_buffer_position): Fix int -> EMACS_INT position.
8883 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
8884 (select_frame_for_redisplay): Remove code duplication.
8885 (redisplay_internal): Adapt arg to call to clear_image_caches.
8886
88872008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
8888
8889 * s/vms4-0.h:
8890 * s/vms4-2.h:
8891 * s/vms4-4.h:
8892 * s/vms5-5.h: Remove, unused.
8893
8894 * s/irix5-2.h:
8895 * s/irix6-0.h:
8896 * s/riscos5.h:
8897 * s/mach-bsd4-3.h:
8898 * m/mips4.h: Remove files for obsolete systems.
8899
8900 * Makefile.in:
8901 * filelock.c:
8902 * unexmips.c:
8903 * m/hp9000s300.h:
8904 * m/iris4d.h:
8905 * s/aix3-1.h:
8906 * s/hpux.h:
8907 * s/msdos.h:
8908 * s/usg5-0.h:
8909 * s/usg5-2-2.h:
8910 * s/usg5-2.h:
8911 * s/usg5-3.h: Remove references to obsolete variables.
8912
8913 * s/irix5-0.h: Remove, move all the contents ...
8914 * s/irix6-5.h: ... here. Simplify.
8915 * config.in: Regenerate.
8916
89172008-02-24 Jason Rumney <jasonr@gnu.org>
8918
8919 * w32term.c (x_draw_glyph_string_background): Clear the background
8920 manually when cleartype is in use.
8921 (x_draw_glyph_string_foreground): Draw text transparently when
8922 cleartype is in use.
8923
8924 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
8925 a font into it unless we have to.
8926
89272008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8928
8929 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
8930 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 8931
aac0c6e3
MR
89322008-02-18 Jason Rumney <jasonr@gnu.org>
8933
8934 * w32fns.c (Fw32_shell_execute): Encode parameters.
8935
89362008-02-09 Eli Zaretskii <eliz@gnu.org>
8937
8938 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
8939
89402008-02-05 Juanma Barranquero <lekktu@gmail.com>
8941
8942 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
8943
89442008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
8945
8946 * xterm.c (x_set_offset): Don't change the gravity if
8947 CHANGE_GRAVITY is -1.
8948
89492008-02-23 Chong Yidong <cyd@stupidchicken.com>
8950
8951 * fileio.c (auto_save_error_occurred): New var.
8952 (auto_save_error): Set it.
8953 (Fdo_auto_save): Don't overwrite the error message if an auto-save
8954 error occurred.
8955
89562008-02-23 Eli Zaretskii <eliz@gnu.org>
8957
8958 * w32.c (globals_of_w32): Add initializations for
8959 g_b_init_get_sid_sub_authority and
8960 g_b_init_get_sid_sub_authority_count.
8961
89622008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
8963
8964 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
8965 (font_parse_xlfd): Use them for sanity check.
8966 (Finternal_set_font_style_table): Make sure the table is bijective.
8967
8968 Consolidate the image_cache to the terminal struct.
8969 * termhooks.h (P_): Remove redundant def.
8970 (struct terminal): New field `image_cache'.
8971 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
8972 of FRAME_X_IMAGE_CACHE.
8973 * xterm.h (struct x_display_info): Remove image_cache field.
8974 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8975 * w32term.h (struct w32_display_info): Remove image_cache field.
8976 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8977 * macterm.h (struct mac_display_info): Remove image_cache field.
8978 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8979 * xterm.c (x_term_init):
8980 * w32term.c (w32_term_init):
8981 * macterm.c (mac_term_init): Set the image_cache in the terminal.
8982 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
8983 Remove declarations.
8984 (clear_image_caches, mark_image_cache): New declarations.
8985 * xfaces.c (clear_face_cache):
8986 * xdisp.c (redisplay_internal): Use clear_image_caches.
8987 * image.c (clear_image_cache): Don't check that a frame is on
8988 a window-system before checking if it shares the same cache.
8989 (clear_image_caches): New function.
8990 (Fclear_image_cache): Use it.
8991 (mark_image): Move from allo.c.
8992 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
8993 * alloc.c (mark_image, mark_image_cache): Move to image.c.
8994 (mark_object): Don't call mark_image_cache for frames.
8995 (mark_terminals): Call mark_image_cache.
8996
8997 * lisp.h (Fdelete_terminal): Declare.
8998
8999 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9000 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9001 wrong_type_argument.
9002
90032008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9004
9005 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9006 malayalam.el, and tamil.el. Add sinhala.el.
9007
90082008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9009
9010 * xterm.c (x_connection_closed): Consolidate identical tests.
9011 (x_delete_terminal): Don't crash if called via x_connection_closed.
9012
90132008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9014
9015 * xdisp.c (decode_mode_spec): New arg string.
9016 (display_mode_element): Adjust for the above change.
9017
90182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9019
9020 * callint.c (Fcall_interactively): Use AREF.
9021
90222008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9023
9024 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9025
90262008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9027
9028 * xfns.c (Fx_show_tip): Set string to " " if empty.
9029
90302008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9031
9032 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9033 with Qt.
9034
90352008-02-17 Kenichi Handa <handa@m17n.org>
9036
9037 * ftfont.c (ftfont_shape): Return Lispy number.
9038
9039 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9040 for GCs.
9041 (Finternal_set_font_selection_order): Call font_update_sort_order
9042 only when enable_font_backend is set.
9043 (realize_x_face): Set face->font_info to that of default face only
9044 when enable_font_backend is set.
9045
9046 * xdisp.c (handle_composition_prop): Set it->c to the fist
9047 character of the composed region.
9048 (fill_composite_glyph_string): Set base_face->font_info to
9049 s->font_info. Get a face for ascii from base_face->ascii_face.
9050 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9051 with a face already decided.
9052 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9053 non-negative.
9054 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9055 call font_prepare_composition unconditionally.
9056
9057 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9058
9059 * xterm.h (struct x_display_info): New member font.
9060
9061 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9062 (x_set_mouse_face_gc, x_new_font): Likewise.
9063 (x_term_init): Setup display_info->font.
9064 (x_delete_terminal): Free display_info->font.
9065
9066 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9067
9068 * ftxfont.c (ftxfont_default_fid): Delete it.
9069 (ftxfont_open): Set xfont->fid to 0.
9070 (ftxfont_end_for_frame): Clear data specific to the frame and the
9071 font-driver.
9072
9073 * xftfont.c (xftfont_default_fid): Delete it.
9074 (xftfont_open): Set xfont->fid to 0.
9075
9076 * fontset.c (FONTSET_OBJLIST): New macro.
9077 (fontset_find_font): Update font-object list of the fontset.
9078 (free_realized_fontset): New function.
9079 (free_face_fontset): Call free_realized_fontset.
9080 (Ffont_info): Call font_close_object only when enable_font_backend
9081 is set.
9082
9083 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9084 [HAVE_NTGUI]: Include w32term.h.
9085 [MAC_OS]: Include macterm.ch.
9086 (font_otf_ValueRecord): Use make_number.
9087 (font_finish_cache): Fix handling of reference count.
9088 (font_clear_cache): Update num_fonts.
9089 (font_open_entity): Update smallest_char_width and
9090 smallest_font_height of the frame.
9091 (font_close_object): Update num_fonts.
9092 (Fclear_font_cache): Fix finding the target cache data.
9093
90942008-02-16 Glenn Morris <rgm@gnu.org>
9095
9096 * fontset.c (Finternal_char_font): Fix compilation warning.
9097
90982008-02-16 Eli Zaretskii <eliz@gnu.org>
9099
9100 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9101 instead of char arrays. Enlarge the size of array passed to
9102 get_token_information.
9103
9104 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9105 warnings.
9106
91072008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9108
9109 * .gdbinit: Don't set `args', it breaks gdb --args.
9110
91112008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9114 within a narrowed buffer.
9115
91162008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9117
9118 * coding.c (decode_coding_object, encode_coding_object):
9119 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9120
91212008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9122
9123 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9124 hardcoding 1.
9125 (detect_coding_system):
9126 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9127 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9128 * insdel.c (insert_from_gap):
9129 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9130 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9131 (string_to_multibyte):
9132 * character.c (chars_in_text, multibyte_chars_in_text):
9133 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9134
9135 * character.h (FETCH_STRING_CHAR_ADVANCE)
9136 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9137 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9138 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9139
9140 * casefiddle.c (casify_region): Only call after-change and composition
9141 functions on the part of the region that was changed.
9142
9143 * keyboard.c (read_avail_input):
9144 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9145
91462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9147
9148 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9149 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9150
91512008-02-11 Juanma Barranquero <lekktu@gmail.com>
9152
9153 * w32menu.c (push_submenu_start, push_submenu_end)
9154 (push_left_right_boundary, push_menu_pane, push_menu_item):
9155 * keyboard.c (read_key_sequence): Don't pass args with side effects
9156 to AREF, it fails when compiling with -DENABLE_CHECKING.
9157
91582008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9159
9160 * Makefile.in (${lispsource}international/charprop.el):
9161 Delete this target.
9162
9163 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9164 emacs-unicode-2.
9165
91662008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9167
9168 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9169
91702008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * frame.c (Qnoelisp): New symbol.
9173 (syms_of_frame): Initialize it.
9174 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9175 harmless Elisp code, from a strong `force' from x_connection_closed.
9176 * frame.h (Qnoelisp): Declare.
9177 * xterm.c (x_connection_closed): Pass `noelisp'.
9178
9179 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9180 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9181 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9182 rather than `int' for the type of `type'.
9183
91842008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9185
9186 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9187
9188 * Makefile.in (GNUC): Remove support for gcc-1.x.
9189
91902008-02-10 Richard Stallman <rms@gnu.org>
9191
9192 * lisp.h (ASET): Use AREF, not ASLOT.
9193
91942008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9195
9196 * lisp.h (ASET): Check bounds.
9197
91982008-02-10 Glenn Morris <rgm@gnu.org>
9199
9200 * buffer.c (mode-name): Doc fix.
9201
92022008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9203
9204 * Makefile.in:
9205 * emacs.c:
9206 * gmalloc.c:
9207 * keyboard.c:
9208 * lisp.h:
9209 * m/ibm370aix.h:
9210 * process.c:
9211 * regex.c:
9212 * s/hpux.h:
9213 * sysdep.c:
9214 * sysselect.h:
9215 * systty.h:
9216 * unexec.c:
9217 * w32term.c:
9218 * xsmfns.c:
9219 * xterm.c: Remove code that deals with obsolete variables.
9220
9221 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9222
9223 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9224 nothing else needs it anymore.
9225
92262008-02-09 Eli Zaretskii <eliz@gnu.org>
9227
9228 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9229 instead of unibyte_char_to_multibyte.
9230
92312008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9232
9233 * s/gnu-linux.h: Remove commented out code.
9234
9235 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9236
9237 * Makefile.in: Update what RMS says about using autoconf.
9238 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9239 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9240 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9241 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9242
92432008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9244
9245 * keymap.c (Fkey_description): Move side effect outside of macro call.
9246
9247 * xfaces.c (Finternal_make_lisp_face):
9248 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9249
9250 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9251 (syms_of_fontset): Use ASET.
9252
9253 * fns.c (concat): Move side effect outside of macro call.
9254 (hash_clear): Use ASET.
9255
92562008-02-08 Richard Stallman <rms@gnu.org>
9257
9258 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9259 If FORCE, and frame has a surrogate minibuffer for another frame,
9260 delete the other frame first.
9261
92622008-02-07 Timo Savola <timo.savola@iki.fi>
9263
9264 * xterm.c (x_detect_focus_change): Handle embed client message.
9265 (handle_one_xevent): Ditto.
9266 (handle_one_xevent): If embedded and we get a button press/release,
9267 request focus.
9268 (xembed_set_info, xembed_send_message): New functions.
9269 (x_make_frame_visible): Call xembed_set_info if embedded.
9270 (x_make_frame_invisible): Call xembed_set_info if embedded.
9271 (x_term_init): Initialize Xatom_XEMBED.
9272 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9273 (x_iconify_frame): Ditto.
9274
9275 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9276 (enum xembed_info, enum xembed_message, enum xembed_focus)
9277 (enum xembed_modifier, enum xembed_accelerator): New.
9278 (xembed_set_info, xembed_send_message): Declare.
9279 (FRAME_X_EMBEDDED_P): New.
9280
9281 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9282 gtk_plug_new.
9283
9284 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9285 window ID of a frame.
9286 (x_window): Reparent frame if embedded.
9287 (Fx_create_frame): Don't set border width if embedded.
9288
9289 * emacs.c (USAGE3): Add --parent-id.
9290 (standard_args): Ditto.
9291
92922008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9293
9294 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9295
92962008-02-07 Jim Meyering <meyering@redhat.com>
9297
9298 Use "do...while (0)", not "if (1)...else" in macro definitions.
9299 The latter provokes a warning from gcc about the empty else, when
9300 followed by ";". Also, without that trailing semicolon, it would
9301 silently swallow up any following statement.
9302 * syntax.h (SETUP_SYNTAX_TABLE)
9303 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9304 * buffer.h (DECODE_POSITION): Likewise.
9305 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9306 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9307 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9308 (FETCH_CHAR_ADVANCE): Likewise.
9309 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9310
93112008-02-07 Jim Meyering <meyering@redhat.com>
9312
9313 * lread.c [lint]: Don't include <sys/inode.h>.
9314
93152008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9316
9317 * xselect.c (x_handle_dnd_message):
9318 * xmenu.c (digest_single_submenu, xmenu_show):
9319 * xdisp.c (with_echo_area_buffer_unwind_data)
9320 (format_mode_line_unwind_data, unwind_format_mode_line)
9321 (display_menu_bar):
9322 * eval.c (Ffetch_bytecode):
9323 * doc.c (store_function_docstring):
9324 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9325 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9326 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9327
93282008-02-07 Kenichi Handa <handa@m17n.org>
9329
9330 * ftxfont.c (ftxfont_open): Don't set
9331 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9332
9333 * ftfont.c (ftfont_open): Fix previous change.
9334
93352008-02-06 Jason Rumney <jasonr@gnu.org>
9336
9337 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9338 Use cached metrics for ASCII characters.
9339 (w32font_open_internal): Don't set font's owning_frame.
9340 Cache metrics for ASCII characters.
9341
9342 * w32font.h (struct w32font_info): Add ascii_metrics.
9343 Remove owning_frame.
9344
93452008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9346
9347 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9348 to negative value.
9349
9350 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9351
9352 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9353
9354 * charset.c (syms_of_charset): Set QCtest and Qeq.
9355
93562008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9357
9358 * process.c (Fstart_process):
9359 * callproc.c (Fcall_process): Handle the case where
9360 Funhandled_file_name_directory returns nil.
9361
9362 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9363 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9364 * font.c (check_gstring): Use them and AREF to access the vector before
9365 we know it's really a gstring.
9366 (Ffont_shape_text): Fix typo.
46e722a9 9367 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9368
9369 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9370 Declare.
9371
9372 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9373
93742008-02-05 Jason Rumney <jasonr@gnu.org>
9375
9376 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9377 Set smallest_font_height and smallest_char_width in display info.
9378
93792008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9380
9381 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9382
93832008-02-05 Miles Bader <miles@gnu.org>
9384
9385 * xfaces.c (get_lface_attributes, merge_named_face)
9386 (lookup_named_face, lookup_derived_face, realize_named_face):
9387 Revert 2008-02-01 change by cyd@stupidchicken.com.
9388
93892008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9390
9391 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9392 fallback fonts.
9393 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9394
93952008-02-04 Jason Rumney <jasonr@gnu.org>
9396
9397 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9398 set full_name.
9399 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9400
94012008-02-03 Jason Rumney <jasonr@gnu.org>
9402
9403 * makefile.w32-in (OBJ1): Include font.o here.
9404 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9405
94062008-02-02 Jason Rumney <jasonr@gnu.org>
9407
9408 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9409
94102008-02-01 Jason Rumney <jasonr@gnu.org>
9411
9412 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9413
9414 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9415
94162008-02-01 Andreas Schwab <schwab@suse.de>
9417
9418 * Makefile.in (shortlisp, lisp): Update for rename of
9419 ../lisp/language/myanmar.el.
9420
94212008-02-01 Chong Yidong <cyd@stupidchicken.com>
9422
9423 * xfaces.c (get_lface_attributes): Delete function.
9424 (merge_named_face, lookup_named_face, lookup_derived_face)
9425 (realize_named_face): Call lface_from_face_name directly, and use
9426 the fact that merge_face_vectors does not alter its FROM argument.
9427
94282008-02-01 Jason Rumney <jasonr@gnu.org>
9429
9430 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9431 input in the default locale. Handle non-Unicode multibyte input.
9432
94332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9434
9435 * fontset.c (reorder_font_vector): Exclude nil elements from the
9436 font group. Don't try multiple fonts.
9437 (fontset_font): Adjust for the above change.
9438 (Finternal_char_font): Return nil if the found font doesn't
9439 contain the character ch.
9440
9441 * Makefile.in (lisp, shortlisp): Add cham.el.
9442
94432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9444
9445 * font.h (FONTP): Make it return 1 also for a font-object.
9446
9447 * .gdbinit (xfontset): New function.
9448
9449 * font.c (font_find_for_lface): Check if the character C is
9450 supported or not only for the first font.
9451
9452 * fontset.c (reorder_font_vector): Fix typo.
9453 (fontset_find_font): Don't add a font-spec specifying a script.
9454 Use 0 (not Qt) for the indication of empty font-group. Change the
9455 format of RFONT-DEF. Return Qt if no font in the font-group
9456 support the character.
9457 (fontset_font): Adjust for the above change. If no font was
9458 found the character, remember that.
9459 (face_for_char): Adjust for the change of RFONT-DEF.
9460 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9461 no font for the target.
9462 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9463
94642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9465
9466 * font.c (font_load_for_face): Handle the case that the font in
9467 face->lface is a string.
9468
94692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9470
9471 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9472
94732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9474
9475 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9476 Fix previous change. If the frame is not on a window system,
9477 signal an error.
9478
94792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9480
9481 * coding.c (decode_coding_object, encode_coding_object): Adjust
9482 marker positions after conversion.
9483
9484 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9485
94862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9487
9488 * font.c (font_find_for_lface): Fix the handling of the return
9489 value of font_has_char.
9490 (Ffont_shape_text): Fix previous change.
9491
9492 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9493 (fontset_ref_and_range): Delete it.
9494 (fontset_find_font): Call char_table_ref_and_range instead of
9495 FONTSET_REF_AND_RANGE.
9496 (make_fontset): Don't setup font groups of Latin here.
9497 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9498 (new_fontset_from_font): Make the specified font the default for
9499 all Latin characters.
9500
95012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9502
9503 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9504 is on a window system before accessing the fontset of the frame.
9505
95062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9507
9508 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9509
9510 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9511 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9512
9513 * font.c (Ffont_shape_text): If the font driver doesn't have a
9514 shaper function, make zero-width glyphs to have at least one-pixel
9515 width. Fix setting of `to' field of glyphs.
9516
95172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9518
9519 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9520 glyphs.
9521
9522 * font.h (struct font_driver): Improve docstring of member `shape'.
9523
95242008-02-01 Kenichi Handa <handa@m17n.org>
9525
9526 * composite.c (syms_of_composite): Fix docstring of
9527 auto-composition-function.
9528
9529 * font.h (LGLYPH_SIZE): New macro.
9530
9531 * font.c (Ffont_fill_gstring): Stop filling when a character not
9532 supported by the font is found.
9533 (Ffont_shape_text): When a shape callback function returns nil,
9534 try at most two more times with larger gstring.
9535 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9536
9537 * xdisp.c (handle_auto_composed_prop): Change the argument to
9538 auto-composition-function.
9539
9540 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9541 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9542 Lispy glyph and store it in the lgstring.
9543
9544 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9545
9546 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9547
95482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9549
9550 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9551
9552 * fontset.c (Vfont_encoding_charset_alist): New variable.
9553 (syms_of_fontset): DEFVAR it.
9554 (reorder_font_vector, fontset_find_font): Optimize for the case of
9555 no need of reordering.
9556 (face_for_char): Map the charset property by
9557 Vfont_encoding_charset_alist.
9558
95592008-02-01 Jason Rumney <jasonr@gnu.org>
9560
9561 * w32font.c (logfonts_match): Don't check adstyle here.
9562 (font_matches_spec): Check here against physical font instead.
9563 (add_font_entity_to_list): Avoid some substitutions.
9564
9565 * font.c (font_parse_fcname): Default weight and slant to normal.
9566 (font_score): Prefer normal fonts if weight or slant unspecified.
9567 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9568 match freetype scores.
9569
95702008-02-01 Jason Rumney <jasonr@gnu.org>
9571
9572 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9573 font, as it may have been deleted.
9574 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9575 most common hyphenless variation.
9576 (logfonts_match): Check generic family.
9577 (font_matches_spec): Don't check generic family here.
9578 (fill_in_logfont): Set generic family based on adstyle.
9579
9580 * w32font.h (w32font_get_cache): Update declaration.
9581
95822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9583
9584 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9585
9586 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9587 If none of the new drivers are available, call font_update_drivers
9588 with the old drivers.
9589
9590 * w32font.c (w32font_get_cache): Adjust the argument type.
9591
9592 * xfont.c (xfont_get_cache): Adjust the argument type.
9593
9594 * font.h (struct font_driver): Change argument type of get_cache.
9595
9596 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9597
9598 * font.c (Ffont_get): Fix arguments to Fassoc.
9599 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9600 (font_clear_cache): New function.
9601 (font_list_entities, font_matching_entity): Use font_get_cache.
9602 (font_update_drivers): Call font_clear_cache when finishing a driver.
9603
9604 * fontset.c (fontset_find_font): Fix previous change.
9605
96062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9607
9608 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9609 dpyinfo->font_table.
9610 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9611 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9612
9613 * font.c (font_at): Handle the case that the arg C is negative.
9614 Handle the unibyte case.
9615 (Ffont_at): Call font_at with the arg C -1.
9616
9617 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9618 the position here, and call font_at with the arg C -1.
9619 Don't check the range of the existing composition at the point.
9620
96212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9622
9623 * fontset.c (fontset_add): New args charset_id and family.
9624 Change caller.
9625 (load_font_get_repertory, fontset_find_font): Assume that
9626 font_spec is always a font-spec object.
9627 (Fset_fontset_font): Always store a font-spec object in a fontset.
9628
9629 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9630 instead of get_property_and_range.
9631
96322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9633
9634 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9635 (xftfont_open): Don't keep locking face.
9636 (xftfont_close): Don't unlock face.
9637 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9638
9639 * fontset.c (fontset_find_font): Don't prefer a font of
9640 supplementary charset.
9641
96422008-02-01 Kenichi Handa <handa@m17n.org>
9643
9644 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9645 script, langsys_tag to langsys, new member script.
9646 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9647 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9648 listing to the script specified in that property. Fix arg to
9649 OTF_check_features.
9650
96512008-02-01 Jason Rumney <jasonr@gnu.org>
9652
9653 * w32font.h: New file.
9654
9655 * w32font.c: Include it.
9656 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9657 (w32font_open): Set owning_frame.
9658 (w32font_text_extents): Use owning_frame.
9659 (struct font_callback_data): Add opentype_only field.
9660 (add_font_entity_to_list): Use it to filter fonts.
9661 Don't check against full name.
9662 (w32font_list_internal): New function.
9663 (w32font_list): Use it.
9664 (w32font_match_internal): New function.
9665 (w32font_match): Use it.
9666 (w32font_open_internal): New function.
9667 (w32font_open): Use it.
9668 (w32font_get_cache, w32font_close, w32font_has_char)
9669 (w32font_encode_char, w32font_text_extents, w32font_draw):
9670 Make non-static.
9671
9672 * makefile.w32-in (w32font.o): Depend on w32font.h.
9673
96742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9675
9676 * charset.c (Fdefine_charset_internal): Record a supplementary
9677 charset at the tail of Vcharset_order_list.
9678
9679 * font.c (Ffont_shape_text): Fix the return value.
9680
9681 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9682
9683 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9684
96852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9686
9687 * ftfont.c (struct OpenTypeSpec): New struct.
9688 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9689 (ftfont_get_open_type_spec): New function.
9690 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9691
9692 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9693
96942008-02-01 Jason Rumney <jasonr@gnu.org>
9695
9696 * w32font.c (add_font_entity_to_list): Compare only the beginning
9697 of full name.
9698
96992008-02-01 Kenichi Handa <handa@m17n.org>
9700
9701 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9702 Never return HANDLED_RECOMPUTE_PROPS.
9703
97042008-02-01 Kenichi Handa <handa@m17n.org>
9705
9706 * font.c (font_gstring_produce): Delete it.
9707
9708 * composite.h (COMPOSITION_METHOD):
9709 Handle COMPOSITION_WITH_GLYPH_STRING.
9710
97112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9712
9713 * xfont.c (Qx): Delete.
9714 (syms_of_xfont): Don't initialize Qx.
9715
9716 * composite.h (enum composition_method):
9717 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9718
97192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9720
9721 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9722 (choose_face_font): Accept new form of font-spec.
9723
9724 * frame.h (font_driver_list): Declare it unconditionally.
9725 (struct frame): Define members font_driver_list and font_data_list
9726 unconditionally.
9727
9728 * fontset.c: Include "font.h" unconditionally.
9729 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
9730 (Fset_fontset_font): Accept a font-spec object.
9731
9732 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
9733 PIXEL_SIZE part a wild card.
9734
9735 * dispextern.h (struct glyph_string): Define members clip and
9736 num_clips unconditionally.
9737 (struct face): Define members font_info and extra unconditionally.
9738
9739 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
9740 ftfont_info only when HAVE_LIBOTF is defined.
9741
97422008-02-01 Andreas Schwab <schwab@suse.de>
9743
9744 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
9745 and end.
9746
97472008-02-01 Jason Rumney <jasonr@gnu.org>
9748
9749 * w32font.c (w32font_driver): Add new fields.
9750
97512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9752
9753 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
9754 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
9755 (LIBES): Add @M17N_FLT_CFLAGS@.
9756
9757 * composite.c (compose_text): Don't treat the new style
9758 composition specially.
9759
9760 * emacs.c (main): Call syms_of_font unconditionally.
9761
9762 * font.h (FONT_ENTITY_NOT_LOADABLE)
9763 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
9764 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
9765 (struct font_driver): New member shape.
9766 (font_registry_charsets): Extern it.
9767 (font_find_for_lface, font_prepare_composition): Adjust prototype.
9768 (font_otf_capability, font_drive_otf): Delete their externs.
9769
9770 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
9771 (font_charset_alist, font_registry_charsets): Move from xfont.c
9772 and rename.
9773 (font_prop_validate_otf): New function.
9774 (font_property_table): Register it for QCotf.
9775 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
9776 (font_drive_otf): Delete.
9777 (font_prepare_composition): New arg F. Adjust for the change of
9778 lispy gstring.
9779 (font_find_for_lface): New arg C.
9780 (font_load_for_face): Adjust for the change of font_find_for_lface.
9781 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
9782 lispy gstring.
9783 (Ffont_shape_text): New function.
9784 (Fopen_font): If the font size is not given, use 12-pixel.
9785 (Ffont_at): New arg STRING.
9786 (syms_of_font): Initalize font_charset_alist.
9787 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
9788 conditionally.
9789
9790 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
9791 fonts of the same font-spec. Change the format of RFONT-DEF.
9792 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
9793 Adjust for the change of RFONT-DEF.
9794 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
9795
9796 * ftfont.h: New file.
9797
9798 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
9799 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9800 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9801 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
9802 font_otf_capability and font_drive_otf, set ftfont_shape.
9803 (ftfont_list): Adjust for the change of :otf property value.
9804 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
9805 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
9806 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
9807 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9808 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
9809 (otf_gstring, gstring, m17n_flt_initialized): New variables.
9810
9811 * w32term.c (x_draw_composite_glyph_string_foreground):
9812 Adjust for the change of lispy gstring.
9813
9814 * xdisp.c (handle_composition_prop): Adjust for the change of
9815 lispy gstring. Call a function for auto-composition with the
9816 third arg it->window.
9817 (fill_composite_glyph_string): Adjust for the change of lispy string.
9818 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
9819
9820 * xfaces.c (set_font_frame_param): Adjust for the change of
9821 font_find_for_lface.
9822
9823 * xfont.c (x_font_charset_alist): Move to font.c and rename.
9824 (xfont_registry_charsets): Likewise. Change caller.
9825 (syms_of_xfont): Don't handle x_font_charset_alist.
9826
9827 * xftfont.c: Include "ftfont.h".
9828 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9829 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9830 (xftfont_close) [HAVE_LIBOTF]: Close otf.
9831 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9832 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
9833 Set xftfont_driver.shape to xftfont_shape.
9834
9835 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9836 the change of lispy gstring.
9837
98382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9839
9840 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
9841
98422008-02-01 Jason Rumney <jasonr@gnu.org>
9843
9844 * w32font.c (w32font_draw): Fill background manually.
9845
98462008-02-01 Jason Rumney <jasonr@gnu.org>
9847
9848 * font.c (Qfontp): Remove unused symbol.
9849 (QCantialias): New symbol.
9850 (syms_of_font): Define it.
9851 (font_property_table): Set a validator for QCantialias.
9852
9853 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
9854 Define if not already.
9855 (QCfamily): Share with xfaces.c.
9856 (Qstandard, Qsubpixel, Qnatural): New symbols.
9857 (syms_of_w32font): Define them. Don't define QCfamily here.
9858 (w32_antialias_type, lispy_antialias_type): New functions.
9859 (w32_enumfont_pattern_entity): New arg requested_font.
9860 Set antialias parameter if non-default was requested.
9861 (fill_in_logfont): Fill in lfQuality if :antialias specified.
9862
98632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9864
9865 * lread.c (read1): Undo the previous change.
9866
98672008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
9868
9869 * frame.c (Fdelete_frame): Call font_update_drivers only when
9870 USE_FONT_BACKEND is defined.
9871
98722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9873
9874 * font.h (struct font_bitmap): New member bits_per_pixel.
9875 (struct font_driver): New members start_for_frame and end_for_frame.
9876 (struct font_data_list): New struct.
9877 (font_put_frame_data, font_get_frame_data): Extern them.
9878
9879 * frame.h (struct frame): New member font_data_list.
9880
9881 * font.c (font_update_drivers): Call driver->start_for_frame and
9882 driver->end_for_frame at proper timings.
9883 (font_put_frame_data, font_get_frame_data): New functions.
9884 (Ffont_spec): Add usage in the docstring.
9885
9886 * frame.c (make_frame): Initialize f->font_data_list to NULL.
9887 (Fdelete_frame): Call font_update_drivers.
9888
9889 * xftfont.c (struct xftface_info): Delete the member xft_draw.
9890 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
9891 (xftfont_get_xft_draw): New function.
9892 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
9893 (xftfont_end_for_frame): New function.
9894 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
9895
9896 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
9897 Change argument. Cache GCs in the per-frame data.
9898 (struct ftxfont_frame_data): New struct.
9899 (ftxfont_draw_bitmap): New arg gc_fore and flush.
9900 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
9901 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
9902 (ftxfont_end_for_frame): New function.
9903 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
9904
9905 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
9906
99072008-02-01 Kenichi Handa <handa@m17n.org>
9908
9909 * xselect.c (Vselection_coding_system)
9910 (Vnext_selection_coding_system): Delete them.
9911 (syms_of_xselect): Don't declare selection-coding-system and
9912 next-selection-coding-system. They are declared in select.el.
9913
99142008-02-01 Jason Rumney <jasonr@gnu.org>
9915
9916 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
9917
9918 * w32fns.c: Include imm.h.
9919 (get_composition_string_fn, get_ime_context_fn): New optional
9920 system functions.
9921 (globals_of_w32fns): Load them from imm32.dll.
9922 (ignore_ime_char): New flag.
9923 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
9924 WM_IME_ENDCOMPOSITION messages.
9925
9926 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
9927 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
9928
99292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9930
9931 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
9932 (READCHAR_REPORT_MULTIBYTE): New macro.
9933 (readchar): New 2nd arg MULTIBYTE.
9934 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
9935 Make symbol's name multibyte according to the multibyteness of the
9936 source.
9937
99382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9939
9940 * xfaces.c (face_for_overlay_string): Call lookup_face with
9941 correct arguments (fix of synching with the trunk).
9942
99432008-02-01 Kenichi Handa <handa@m17n.org>
9944
9945 * font.c (font_prop_validate_symbol, font_prop_validate_style)
9946 (font_prop_validate_non_neg, font_prop_validate_spacing):
9947 Delete argument prop_index.
9948 (font_property_table): Change arguments to validater. Change Callers.
9949 (font_lispy_object): Delete.
9950 (font_at): Use font_find_object instead fo font_lispy_object.
9951
99522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9953
9954 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
9955 and file names.
9956
99572008-02-01 Jason Rumney <jasonr@gnu.org>
9958
9959 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
9960 (font_matches_spec): Remove debug output.
9961 (add_font_entity_to_list): Avoid using substituted fonts.
9962
99632008-02-01 Jason Rumney <jasonr@gnu.org>
9964
9965 * doc.c (Fsnarf_documentation):
9966 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
9967
99682008-02-01 Miles Bader <miles@gnu.org>
9969
9970 * dispextern.h (struct glyph_row): Only define "clip" field if
9971 HAVE_WINDOW_SYSTEM is defined.
9972
99732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9974
9975 Fix up multi-tty merge.
9976
9977 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
9978 and indentation.
9979
9980 * xfaces.c (free_realized_face, clear_face_gcs):
9981 Include font_done_for_face in the input_blocked section, just in case.
9982
9983 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
9984 (get_char_face_and_encoding): Undo last change and remove the *other*
9985 duplicate definition (i.e. keep the one that's better scoped and that
9986 includes code for the font-backend).
9987
9988 * terminal.c (create_terminal): Default keyboard_coding to
9989 `no-conversion' and terminal_coding to `undecided'.
9990
9991 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
9992
9993 * fontset.c (free_realized_fontsets): Check that the table entry does
9994 contain a fontset before trying to compare it to `base'.
9995
9996 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
9997 syms_of_charset, and syms_of_coding earlier because init_window_once
9998 now needs Vcoding_system_hash_table to be setup.
9999
10000 * coding.h (default_buffer_file_coding): Remove.
10001
10002 * coding.c (default_buffer_file_coding): Remove.
10003 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10004 than ->symbol, and use the terminal-local coding system.
10005 (syms_of_coding): Don't setup the coding-systems that are not
10006 terminal-local.
10007 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10008
10009 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10010 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10011
10012 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10013 in chartab.c and were re-added here by mistake.
10014 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10015
10016 * doc.c (Fsnarf_documentation):
10017 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10018 src to etc.
10019
10020 * ChangeLog.10: Add mistakenly removed entry.
10021
100222008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10023
10024 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10025
100262008-02-01 Miles Bader <miles@gnu.org>
10027
10028 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10029 Add extra args to FACE_FOR_CHAR.
10030
100312008-02-01 Kenichi Handa <handa@m17n.org>
10032
10033 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10034 in sequence.
10035
10036 * chartab.c (map_sub_char_table, map_char_table): If the range
10037 contains just one character, call the function with that character
10038 even if the depth is not 3.
10039
100402008-02-01 Jason Rumney <jasonr@gnu.org>
10041
10042 * w32font.c (w32font_text_extents): Calculate metrics for the
10043 whole string.
10044
100452008-02-01 Jason Rumney <jasonr@gnu.org>
10046
10047 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10048
100492008-02-01 Jason Rumney <jasonr@gnu.org>
10050
10051 * w32term.c (x_set_glyph_string_clipping): Use
10052 get_glyph_string_clip_rects.
10053 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10054 Adjust for the change of struct glyph_string.
10055
10056 * w32font.c (w32font_draw): Do clipping here.
10057
100582008-02-01 Kenichi Handa <handa@m17n.org>
10059
10060 * xftfont.c (xftfont_draw): Adjust for the change of struct
10061 glyph_string.
10062
10063 * xterm.c (x_set_glyph_string_clipping): Use
10064 get_glyph_string_clip_rects.
10065 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10066 Adjust for the change of struct glyph_string.
10067
10068 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10069 the resulting clip(s}.
10070 (expose_overlaps): Add arg r. Change callers. Set it to
10071 row->clip temporarily.
10072 (expose_window): Redraw rows overlapping the exposed area.
10073
10074 * dispextern.h (struct glyph_row): New member clip.
10075 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10076 clip_height, new member clip, and num_clips.
10077
100782008-02-01 Kenichi Handa <handa@m17n.org>
10079
10080 * data.c (Fchar_or_string_p): Fix docstring.
10081
100822008-02-01 Kenichi Handa <handa@m17n.org>
10083
10084 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10085 create a temporary XftDraw object.
10086
100872008-02-01 Kenichi Handa <handa@m17n.org>
10088
10089 * font.c (Ffontp): Fix docstring.
10090
10091 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10092 strong evidence of ISO-2022.
10093
100942008-02-01 Kenichi Handa <handa@m17n.org>
10095
10096 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10097 SYNTAX_ENTRY_FOLLOW_PARENT.
10098
100992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10100
10101 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10102 its type.
10103 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10104 Update to the new type of weak_hash_tables and next_weak.
10105
10106 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10107 a plain C pointer to Lisp_Hash_Table.
10108
10109 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10110 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10111 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10112 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10113 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10114 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10115 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10116 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10117 (GC_EQ): Remove since they've been identical to their non-GC_
10118 alter-egos ever since the markbit was eradicated.
10119
10120 * alloc.c:
10121 * buffer.c:
10122 * buffer.h:
10123 * data.c:
10124 * fileio.c:
10125 * filelock.c:
10126 * fns.c:
10127 * frame.h:
10128 * lisp.h:
10129 * macterm.c:
10130 * print.c:
10131 * process.c:
10132 * w32fns.c:
10133 * w32menu.c:
10134 * w32term.c:
10135 * xfns.c:
10136 * xmenu.c:
10137 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10138
101392008-02-01 Kenichi Handa <handa@m17n.org>
10140
10141 * chartab.c (map_sub_char_table): Make it work for the top-level
10142 char-table. Fix handling of parent char-table.
10143 (map_char_table): Adjust for the above change.
10144
101452008-02-01 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32font.c (Qgdi): Rename from Qw32.
10148
101492008-02-01 Jason Rumney <jasonr@gnu.org>
10150
10151 * w32bdf.c (get_quoted_string): Make function static.
10152
101532008-02-01 Kenichi Handa <handa@m17n.org>
10154
10155 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10156 bigger ascent and descent than those of the font, use them as
10157 font's ascent and descent.
10158
101592008-02-01 Kenichi Handa <handa@m17n.org>
10160
10161 * Makefile.in (${lispsource}international/charprop.el): Move this
10162 target within "#ifdef HAVE_UNIDATA" and "#endif".
10163
101642008-02-01 Kenichi Handa <handa@m17n.org>
10165
10166 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10167 (shortlisp): Add ../lisp/language/tai-viet.el.
10168
101692008-02-01 Ulrich Mueller <ulm@gentoo.org>
10170
10171 * Makefile.in (${lispsource}international/charprop.el): Depend on
10172 temacs${EXEEXT}.
10173
101742008-02-01 Jason Rumney <jasonr@gnu.org>
10175
10176 * w32font.c (w32font_close): Delete the GDI font object.
10177
10178 * w32menu.c: Include character.h.
10179
10180 * w32proc.c: Likewise.
10181
10182 * w32select.c: Likewise.
10183
10184 * makefile.w32-in (w32proc.o): Depend on character.h.
10185
101862008-02-01 Jason Rumney <jasonr@gnu.org>
10187
10188 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10189
10190 * w32menu.c (syms_of_w32menu): Likewise.
10191
10192 * w32proc.c (syms_of_ntproc): Likewise.
10193
10194 * w32select.c (syms_of_w32select): Likewise.
10195
10196 * w32term.c (syms_of_w32term): Likewise.
10197
101982008-02-01 Jason Rumney <jasonr@gnu.org>
10199
10200 * w32font.c (w32font_draw): Delete brush after using it.
10201
102022008-02-01 Jason Rumney <jasonr@gnu.org>
10203
10204 * w32font.c (w32font_open): Don't set font_idx.
10205 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10206 to font settings.
10207 (w32font_draw): Fill background explicitly.
10208
102092008-02-01 Jason Rumney <jasonr@gnu.org>
10210
10211 * w32term.c (w32_initialize): Don't call w32font_initialize.
10212
10213 * w32font.c (w32font_info): Remove subranges.
10214 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10215 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10216 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10217 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10218 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10219 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10220 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10221 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10222 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10223 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10224 New symbols.
10225 (font_callback_data): New struct.
10226 (w32font_list, w32font_match): Use it.
10227 (w32font_open): Don't populate subranges.
10228 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10229 (w32font_encode_char): Always return unicode code-point as-is.
10230 (w32font_text_extents): Supply a transformation matrix to
10231 GetGlyphOutline. Never look up by glyph index. Avoid looping
10232 twice. Use unicode version of GetTexExtentPoint32 instead of
10233 glyph index version.
10234 (set_fonts_frame): Remove.
10235 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10236 set frame parameter. Use backward compatible fake foundries.
10237 Save generic family in extra slot under QCfamily. Make width slot
10238 constant. Save QCspacing value. Save list of scripts instead of
10239 binary subranges.
10240 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10241 (add_font_entity_to_list): Use font_callback_data struct. Filter
10242 unwanted fonts.
10243 (add_one_font_entity_to_list): Use font_callback_data struct.
10244 (w32_registry): Default to iso10646_1.
10245 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10246 string font registries. Don't fill in font name if it is a generic
10247 family name, fill family instead. Use spacing, family and script
10248 extra info to fill pitch, family and charset fields.
10249 (list_all_matching_fonts): Use font_callback_data struct.
10250 (unicode_range_for_char): Remove.
10251 (font_supported_scripts): New function.
10252 (w32font_initialize): Remove.
10253 (syms_of_w32font): Update which symbols are defined.
10254
102552008-02-01 Jason Rumney <jasonr@gnu.org>
10256
10257 * font.c (font_pixel_size): Reverse assq_no_quit args.
10258
10259 * w32term.h (FONT_WIDTH): Report max width, not average.
10260 (FONT_MAX_WIDTH): Remove.
10261 (FONT_AVG_WIDTH): New macro.
10262
10263 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10264 redefinition of FONT_WIDTH.
10265
10266 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10267 (w32_cache_char_metrics): Use FONT_WIDTH.
10268
10269 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10270
102712008-02-01 Jason Rumney <jasonr@gnu.org>
10272
10273 * w32font.c (w32font_open): Make lfHeight negative.
10274
10275 * w32fns.c (x_default_font_parameter): Use new style font name.
10276 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10277
102782008-02-01 Jason Rumney <jasonr@gnu.org>
10279
10280 * w32font.c (QCsubranges): New symbol.
10281 (w32font_open, w32font_has_char): Get subranges from subproperty
10282 of extra.
10283 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10284 (syms_of_w32font): Define :subranges symbol.
10285
10286 * font.c (font_put_extra): Expose externally.
10287
10288 * font.h (font_put_extra): Move declaration from font.c.
10289
10290 * font.c (Ffont_get): Use font driver to determine otf capability.
10291 (adjust_anchor): Check if driver defines anchor_point before using.
10292
10293 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10294 (w32font_draw): Use options.
10295 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10296 Fix detection of truetype fonts.
10297 (registry_to_w32_charset): Handle charsets other than iso8859-1
10298 expressed as lisp symbols.
10299 (w32_registry): Express charset as lisp symbol.
10300 (fill_in_logfont): Reverse pixel and point height logic.
10301 Don't set width here. Set quality to default.
10302
10303 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10304 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10305
10306 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10307 Remove redundant loop and allocation.
10308
10309 * makefile.w32-in (font.o, w32font.o): New objects.
10310 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10311 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10312
10313 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10314 STORE_XCHARB a valid l-value.
10315
10316 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10317 calculations for non-Truetype fonts.
10318 (x_draw_glyph_string): Sync with xterm.c.
10319 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10320 Remove redundant code.
10321 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10322
10323 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10324 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10325
10326 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10327 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10328
10329 * w32font.c: New file for w32 font backend.
10330
103312008-02-01 Kenichi Handa <handa@m17n.org>
10332
10333 * term.c: Don't include "buffer.h" twice.
10334
103352008-02-01 Kenichi Handa <handa@m17n.org>
10336
10337 * character.c (Funibyte_string): New function.
10338 (syms_of_character): Defsubr it.
10339
103402008-02-01 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32term.c [USE_FONT_BACKEND]:
10343 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10344 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10345 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10346 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10347 (x_free_frame_resources): Sync with xterm.c.
10348
103492008-02-01 Andreas Schwab <schwab@suse.de>
10350
10351 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10352 char-table size.
10353
103542008-02-01 Kenichi Handa <handa@m17n.org>
10355
10356 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10357
103582008-02-01 Kenichi Handa <handa@m17n.org>
10359
10360 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10361 font_otf_gpos, add font_drive_otf.
10362
10363 * fontset.c (fontset_find_font): Pay attention to font size
10364 specified for a font.
10365 (reorder_font_vector): Check contents of font_def.
10366
10367 * font.c (struct otf_list): Delete it.
10368 (otf_list): Make it a lisp variable.
10369 (otf_open): Use lispy otf_list.
10370 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10371 (check_otf_features): New function.
10372 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10373 New functions.
10374 (font_drive_otf): New function merging font_otf_gsub and
10375 font_otf_gpos.
10376 (font_open_for_lface): New arg spec. Change argument order.
10377 (font_load_for_face): Adjust for the change of font_open_for_lface.
10378 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10379 Ffont_otf_gpos.
10380 (syms_of_font): Staticpro otf_list. Delete defsubr of
10381 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10382
10383 * xfaces.c (set_font_frame_param): Adjust for the change of
10384 font_open_for_lface.
10385
10386 * font.h (font_open_for_lface): Adjust prototype.
10387 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10388 member otf_drive.
10389 (font_otf_gsub, font_otf_gpos): Delete externs.
10390 (font_drive_otf): Extern it.
10391
103922008-02-01 Kenichi Handa <handa@m17n.org>
10393
10394 * font.c (font_at): If the window W is not on a window system,
10395 return Qnil.
10396
10397 * coding.c (produce_chars, encode_coding): Don't call
10398 insert_from_gap if no characters to produce.
10399
104002008-02-01 Kenichi Handa <handa@m17n.org>
10401
10402 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10403 Fclear_face_cache.
10404
10405 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10406
104072008-02-01 Miles Bader <miles@gnu.org>
10408
10409 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10410 Parse "--disable-font-backend" option.
10411 (standard_args): Add "--disable-font-backend" option.
10412
104132008-02-01 Kenichi Handa <handa@m17n.org>
10414
10415 * fontset.c (fontset_find_font): New function.
10416 (fontset_font): Use fontset_find_font.
10417 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10418 Register the specified font for all Latin characters.
10419 (new_fontset_from_font): Register the specified font for all Latin
10420 characters.
10421 (dump_fontset): For a realized fontset, include the base fontset
10422 name in the returned vector.
10423
104242008-02-01 Kenichi Handa <handa@m17n.org>
10425
10426 * character.h (CHAR_STRING): Cast C to unsigned on calling
10427 char_string.
10428
10429 * character.c (char_string): Type of arg C changed to unsigned.
10430 Signal an error if C is an invalid character code.
10431
10432 * editfns.c (general_insert_function, Fchar_to_string):
10433 Use CHARACTERP, not INTEGERP.
10434
104352008-02-01 Kenichi Handa <handa@m17n.org>
10436
10437 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10438 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10439
10440 * regex.c (analyse_first): Fix for multibyte characters in "case
10441 charset:" and "case categoryspec:".
10442
104432008-02-01 Andreas Schwab <schwab@suse.de>
10444
10445 * Makefile.in (LIBES): Move standard libraries to the end.
10446
104472008-02-01 Kenichi Handa <handa@m17n.org>
10448
10449 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10450 nonzero, don't shrink the buffer nextb.
10451
10452 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10453
10454 * coding.c (coding_alloc_by_making_gap): New arg offset.
10455 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10456 offset.
10457 (decode_coding_iso_2022): Update coding->safe_charsets.
10458 (decode_coding_gap): Temporarily set
10459 current_buffer->text->inhibit_shrinking to 1.
10460
104612008-02-01 Kenichi Handa <handa@m17n.org>
10462
10463 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10464 indexing into elements of s->cmp and s->char2b.
10465
104662008-02-01 Juanma Barranquero <lekktu@gmail.com>
10467
10468 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10469
104702008-02-01 Kenichi Handa <handa@m17n.org>
10471
10472 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10473 target_multibyte instead of multibyte.
10474 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10475 (bcmp_translate): Change the argument name from multibyte to
10476 target_multibyte.
10477
104782008-02-01 Kenichi Handa <handa@m17n.org>
10479
10480 These changes are to compile a regexp into a pattern that can be
10481 used both for multibyte and unibyte targets.
10482
10483 * Makefile.in (search.o): Depend on charset.h.
10484
10485 * character.c (multibyte_char_to_unibyte_safe): New function.
10486
10487 * search.c: Include "charset.h".
10488 (compile_pattern_1): Delete argument multibyte. Don't set
10489 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10490 (compile_pattern): Don't compare cp->buf.target_multibyte.
10491 Compare cp->buf.charset_unibyte.
10492 (compile_pattern): Set cp->buf.target_multibyte.
10493
10494 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10495
10496 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10497
10498 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10499 multibyte. Change callers.
10500 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10501 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10502 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10503 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10504 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10505 (regex_compile): Make the compiled pattern usable both for
10506 multibyte and unibyte targets.
10507 (analyse_first): Make the fastmap usable both for multibyte and
10508 unibyte targets.
10509 (TRANSLATE_VIA_MULTIBYTE): Delete.
10510 (re_match_2_internal): Pay attention to the case that the
10511 multibyteness of bufp and target may be different.
10512
105132008-02-01 Kenichi Handa <handa@m17n.org>
10514
10515 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10516 empty box occupy at least one column width.
10517
105182008-02-01 Miles Bader <miles@gnu.org>
10519
10520 * Makefile.in: Remove redundant HAVE_XFT clause.
10521
105222008-02-01 Kenichi Handa <handa@m17n.org>
10523
10524 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10525
105262008-02-01 Kenichi Handa <handa@m17n.org>
10527
10528 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10529 being nil.
10530
105312008-02-01 Kenichi Handa <handa@m17n.org>
10532
10533 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10534
105352008-02-01 Kenichi Handa <handa@m17n.org>
10536
10537 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10538
105392008-02-01 Kenichi Handa <handa@m17n.org>
10540
10541 * search.c (simple_search): Fix previous change.
10542
105432008-02-01 Kenichi Handa <handa@m17n.org>
10544
10545 * xftfont.c (ftfont_font_format): Extern declaration.
10546
10547 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10548
10549 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10550 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10551
10552 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10553 (ftfont_font_format): Fix previous change.
10554
10555 * font.h (Ffont_xlfd_name): EXFUN it.
10556
10557 * font.c (font_parse_xlfd): Fix the array size of `f'.
10558 (register_font_driver): Use EQ to compare driver->type.
10559
10560 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10561 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10562 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10563
105642008-02-01 Kenichi Handa <handa@m17n.org>
10565
10566 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10567 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10568
105692008-02-01 Kenichi Handa <handa@m17n.org>
10570
10571 * xfont.c (xfont_open): Set font->format.
10572
10573 * xftfont.c (xftfont_open): Set font->format.
10574
10575 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10576 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10577 (ftfont_open): Set font->format.
10578 (ftfont_font_format): New function.
10579
10580 * font.h (struct font): New member format.
10581
10582 * font.c (Qopentype): New variable.
10583 (syms_of_font): Defsym it.
10584 (Fquery_font): Change the format of the last element of the return
10585 value.
10586
105872008-02-01 Kenichi Handa <handa@m17n.org>
10588
10589 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10590 last resort.
10591
105922008-02-01 Kenichi Handa <handa@m17n.org>
10593
10594 * coding.c (detect_coding_charset): Fix detection of multi-byte
10595 charset.
10596
105972008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10598
10599 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10600
106012008-02-01 Kenichi Handa <handa@m17n.org>
10602
10603 * xdisp.c (get_next_display_element): Set it->face_id for the
10604 first component of a composition.
10605 (x_produce_glyphs): Check if the font is changed or not for composition.
10606
106072008-02-01 Kenichi Handa <handa@m17n.org>
10608
10609 * fontset.c (Qlatin): New variable.
10610 (syms_of_fontset): Define it as a lisp symbol.
10611 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10612
106132008-02-01 Kenichi Handa <handa@m17n.org>
10614
10615 * font.c (font_unparse_fcname): Pay attention to the case that
10616 some of font property is a null string.
10617
106182008-02-01 Kenichi Handa <handa@m17n.org>
10619
10620 * term.c: Include "composite.h".
10621 (encode_terminal_code): Output all components of composition.
10622 Check the size of encode_terminal_src.
10623 (produce_glyphs): For composition, call produce_composite_glyph.
10624 (append_composite_glyph, produce_composite_glyph): New functions.
10625
10626 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10627 is not found, get font_info from the current ascii face.
10628
106292008-02-01 Kenichi Handa <handa@m17n.org>
10630
10631 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10632 buffer-file-name to Qnil before calling insert_from_buffer.
10633
10634 * font.c (font_unparse_fcname): Pay attention to the case that
10635 foundry is a null string.
10636
106372008-02-01 Kenichi Handa <handa@m17n.org>
10638
10639 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10640
10641 * font.c (Qunicode_sip): New variable.
10642 (syms_of_font): Declare it as a Lisp symbol.
10643
10644 * font.h (Qunicode_sip): Extern it.
10645
106462008-02-01 Kenichi Handa <handa@m17n.org>
10647
10648 * composite.c (get_composition_id): Pay attention to TAB component.
10649
10650 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10651 TAB. Adjust for the change of s->char2b which always points to
10652 the first element of allocated memory.
10653
10654 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10655
10656 * xdisp.c (handle_composition_prop): Set it->c to the first
10657 non-TAB component.
10658 (fill_composite_glyph_string): Change argument.
10659 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10660 (x_produce_glyphs): Fix handling of left/right padding.
10661
106622008-02-01 Kenichi Handa <handa@m17n.org>
10663
10664 * coding.c (detect_coding_system): Fix for handling off
10665 inhibit_iso_escape_detection. Fix for the case that no coding
10666 system is defined for a specific coding category.
10667
106682008-02-01 Kenichi Handa <handa@m17n.org>
10669
10670 * font.c (font_matching_entity): Delete unused local var.
10671
10672 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10673 opening a font.
10674
10675 * fileio.c (Finsert_file_contents): On recovering a file, assume
10676 Unix-like eol.
10677 (choose_write_coding_system): On auto-saving a file, force
10678 Unix-like eol.
10679
10680 * coding.c (setup_coding_system): Fix setting of
10681 coding->common_flags based on eol_type.
10682 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10683 inherit from it.
10684
106852008-02-01 Kenichi Handa <handa@m17n.org>
10686
10687 * alloc.c (NSTATICS): Increas to 0x600.
10688
106892008-02-01 Kenichi Handa <handa@m17n.org>
10690
10691 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10692 (ftfont_list): Don't check :name property.
10693 (ftfont_match): New function.
10694 (ftfont_pattern_entity): If the pattern doesn't contain
10695 FC_SPACING, don't assume FC_MONO.
10696
10697 * font.h (struct font_driver): New member `match'.
10698 (font_update_drivers): Adjust prototype.
10699
10700 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10701 property of FONT.
10702 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10703 them unconditionally.
10704 (font_matching_entity): New function.
10705 (font_open_by_name): Try font_matching_entity if exact match is
10706 not found.
10707 (font_update_drivers): Delete the arg FONT. Return a list of
10708 actually used backends. Don't free faces, font caches here.
10709 Don't store data in frame parameters. Don't call x_set_font.
10710 (Ffont_spec): Store :name property as is.
10711 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10712 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10713 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10714 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10715 Call font->driver->otf_gsub instead of font_otf_gsub.
10716
10717 * frame.c (x_set_font_backend): Do more works that were done in
10718 font_update_drivers before.
10719
10720 * xfont.c (xfont_match): New function.
10721 (xfont_driver): Set xfont_driver.match to xfont_match.
10722 (xfont_draw): Set font in GC if necessary.
10723
10724 * ftxfont.c (ftxfont_match): New function.
10725 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10726
10727 * xftfont.c (xftfont_match): New function.
10728 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
10729
107302008-02-01 Kenichi Handa <handa@m17n.org>
10731
10732 * font.h (struct font): New member scalable.
10733 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
10734 (font_otf_gsub): Adjust prototype.
10735
10736 * font.c (font_otf_capability): Fix handling of the default langsys.
10737 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
10738 Check the contents of SPEC.
10739 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
10740 (check_gstring): New function.
10741 (REPLACEMENT_CHARACTER): New macro.
10742 (font_otf_gsub): New arg alternate_subst. Be sure to set all
10743 glyph codes of GSTRING.
10744 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
10745 (font_prepare_composition): Set cmp->glyph_len.
10746 (font_open_entity): Set font->scalable.
10747 (Ffont_get): Handle :otf property.
10748 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
10749 functions.
10750 (Fquery_font): Use font->font.full_name.
10751 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
10752 Sfont_otf_alternates.
10753
10754 * ftfont.c (ftfont_open): Set font->font.full_name and
10755 font->font.name properly. Fix calculation of font->font.height
10756 and font->min_width.
10757
10758 * ftxfont.c (ftxfont_create_gcs): New function.
10759 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
10760 (ftxfont_draw_backgrond): Fix filling region.
10761 (ftxfont_default_fid): New function.
10762 (ftxfont_open): Set xfont->fid to the return value of
10763 ftxfont_default_fid.
10764 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
10765 (ftxfont_done_face): Free only GCs that are created by
10766 ftxfont_create_gcs.
10767 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
10768
10769 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
10770 Clip to src->width, etc (not src->clip_XXX).
10771
10772 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
10773 FontBackend frame parameter.
10774
107752008-02-01 Kenichi Handa <handa@m17n.org>
10776
10777 * font.h (struct font_driver_list): New member `on'.
10778 (Fclear_font_cache): EXFUN it.
10779 (font_update_drivers): Extern it.
10780
10781 * font.c (font_unparse_fcname): Fix typo (swidth->width).
10782 (font_list_entities): Check driver_list->on.
10783 (register_font_driver): Initalize `on' member to 0.
10784 (font_update_drivers): New function.
10785 (Fclear_font_cache): Check driver_list->on.
10786
10787 * frame.h (Qfont_backend): Extern it.
10788 (x_set_font_backend): Extern it.
10789
10790 * frame.c (Qfont_backend): New variable.
10791 (frame_parms): New element for font-backend.
10792 (x_set_font_backend): New function.
10793
10794 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
10795 FontBackend frame parameter.
10796 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
10797 x_set_font_backend.
10798
10799 * xfont.c (xfont_list): Don't try listing by :name property if the
10800 name is not for XLFD.
10801
108022008-02-01 Kenichi Handa <handa@m17n.org>
10803
10804 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
10805 (LGLYPH_SET_TO): New macros.
10806 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
10807 element of G is vector or not.
10808 (font_at): Extern it.
10809
10810 * font.c: Include window.h.
10811 (font_lispy_object): New function.
10812 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
10813 end of valid glyph.
10814 (font_close_object): Fix getting (struct font *).
10815 (font_at): New function.
10816 (Ffont_get): If FONT is a font-object, get entity from it.
10817 (Ffont_make_gstring): Initialize elements of glyphs with nil.
10818 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
10819 range check.
10820 (Ffont_at): New function.
10821 (syms_of_font): Defsubr Sfont_at.
10822
10823 * xdisp.c (it_props): Move the entry for Qauto_composed to just
10824 before the entry for Qcomposition.
10825 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
10826 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
10827 the font in gstring.
10828 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
10829 LGLYPH_FORM (g) to detect the end of valid glyph.
10830 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
10831 we are composing with gstring.
10832
10833 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
10834 Check if adjustment is vector or not.
10835
10836 * Makefile.in (font.o): Make it depends on window.h.
10837
108382008-02-01 Kenichi Handa <handa@m17n.org>
10839
10840 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
10841 adjustment is vector or not.
10842
108432008-02-01 Miles Bader <miles@gnu.org>
10844
10845 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
10846
108472008-02-01 Kenichi Handa <handa@m17n.org>
10848
10849 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
10850 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
10851 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
10852
10853 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
10854 (DEVICE_DELTA): Fix typo.
10855 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
10856 LGLYPH format.
10857
10858 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10859 the change of LGLYPH format.
10860
108612008-02-01 Kenichi Handa <handa@m17n.org>
10862
10863 * ftfont.c (ftfont_list): Fix typo.
10864 (ftfont_build_basic_charsets): Don't include letters with diacritics.
10865
108662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10867
10868 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
10869
10870 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
10871 xftface_info is non-NULL.
10872
108732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10874
10875 * ftfont.c (ftfont_list): Move misplaced #endif.
10876
108772008-02-01 Kenichi Handa <handa@m17n.org>
10878
10879 * ftfont.c (ftfont_list): Pay attention to the case that
10880 FC_CAPABILITY is not defined.
10881
108822008-02-01 Kenichi Handa <handa@m17n.org>
10883
10884 * xftfont.c (xftfont_open): Set charset related members to -1.
10885
10886 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
10887 QCname.
10888 (ftfont_open): Set charset related members to -1.
10889
10890 * fontset.c (Votf_script_alist): New variable.
10891 (syms_of_fontset): Initialize it.
10892 (fontset_font): Delete unused variable.
10893
10894 * fontset.h (Votf_script_alist): Extern it.
10895
10896 * font.c (font_find_for_lface): Optimize code.
10897
10898 * font.h (font_close_object, font_merge_old_spec): Extern them.
10899
109002008-02-01 Kenichi Handa <handa@m17n.org>
10901
10902 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
10903 (syms_of_font): Initialize them.
10904 (font_pixel_size): Allow float value in dpi.
10905 (font_prop_validate_type): Delete.
10906 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
10907 Change caller.
10908 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
10909 (font_prop_validate_extra): Delete.
10910 (font_prop_validate_spacing): New function.
10911 (font_property_table): Add elements for all known properties.
10912 (get_font_prop_index): Rename from check_font_prop_name. New
10913 argument FROM. Change caller.
10914 (font_prop_validate): Validate all known properties.
10915 (font_put_extra): Delete argument force. Change caller.
10916 (font_expand_wildcards): Make it static. Fix the way of shrinking
10917 the possible range.
10918 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
10919 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
10920 Change caller.
10921 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
10922 (font_parse_fcname): Delete argument merge. Fix parsing of point
10923 size. Don't validate properties values here. Change caller.
10924 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
10925 (font_open_by_name): Delete unused variable.
10926 (Ffont_spec): Likewise. Validate property values.
10927 (Ffont_match_p): New function.
10928
10929 * font.h (QCscalable): Extern it.
10930 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
10931
10932 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
10933
10934 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
10935 (xfont_list_pattern): New function.
10936 (xfont_list): Use xfont_list_pattern.
10937
109382008-02-01 Kenichi Handa <handa@m17n.org>
10939
10940 * font.h (Flist_fonts): EXFUN it.
10941
109422008-02-01 Jason Rumney <jasonr@gnu.org>
10943
10944 * w32term.c (w32_initialize): Add back smoothing_type and
10945 smoothing_enabled definitions.
10946
109472008-02-01 Kenichi Handa <handa@m17n.org>
10948
10949 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
10950 s->face->font on determining underline position.
10951
109522008-02-01 Kenichi Handa <handa@m17n.org>
10953
10954 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
10955 (font_has_char): Accept font-object too.
10956 (font_find_for_lface): Try at first with a size specified in face.
10957
109582008-02-01 Kenichi Handa <handa@m17n.org>
10959
10960 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
10961 font_open_by_name.
10962
109632008-02-01 Kenichi Handa <handa@m17n.org>
10964
10965 * font.h (QCspacing, QCdpi): Extern them.
10966 (enum font_spacing): New enum.
10967 (FONT_PIXEL_SIZE_QUANTUM): New macro.
10968
10969 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
10970 (QCspacing, QCdpi): New variables.
10971 (syms_of_font): Initialize them.
10972 (font_pixel_size): New function.
10973 (font_put_extra): New function.
10974 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
10975 in FONT_EXTRA.
10976 (font_parse_fcname): Handle enumerated values (e.g. bold).
10977 Fix handling font size. Add QCname property that contains only
10978 unknown properties.
10979 (font_score): Change argument. Change caller. Pay attention to
10980 FONT_PIXEL_SIZE_QUANTUM.
10981 (font_sort_entites, font_list_entities, font_find_for_lface)
10982 (font_open_for_lface, font_open_by_name): Fix handling of font size.
10983 (Ffont_spec): Add QCname property that contains only unknown properties.
10984
10985 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
10986 include weight in listing pattern, instead check weight of each
10987 listed font. Don't include scalable in pattern. Pay attention to
10988 FONT_PIXEL_SIZE_QUANTUM.
10989
109902008-02-01 Kenichi Handa <handa@m17n.org>
10991
10992 * font.c (font_parse_fcname): Fix parsing of point-size.
10993 (font_unparse_fcname): Produce symbolic names for style properties.
10994 (font_list_entities): Handle float size correctly.
10995 (font_open_by_name): Prefer `normal' property values if the name
10996 doesn't specify them.
10997
10998 * fontset.c (Finternal_char_font): Use font_get_name, not
10999 Ffont_xlfd_name.
11000
11001 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11002 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11003 pattern. Don't force scalable.
11004
11005 * xftfont.c (xftfont_open): For generating a name, start from
11006 96-byte buffer.
11007
110082008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11009
11010 * frame.h (x_new_fontset2): Fix prototype.
11011
110122008-02-01 Kenichi Handa <handa@m17n.org>
11013
11014 * font.h (struct font_driver): Delete member parse_name.
11015 (font_match_p, font_get_spec, font_parse_fcname)
11016 (font_unparse_fcname): Extern them.
11017 (font_get_name): Adjust prototype.
11018
11019 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11020 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11021 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11022 unnecessary checks for weight, slant, and swidth.
11023 (font_parse_fcname): New function.
11024 (font_unparse_fcname): New function.
11025 (font_parse_name): New function.
11026 (font_match_p): New function.
11027 (font_get_name): Change return value to Lisp string.
11028 (font_get_spec): New function.
11029 (Qunspecified, Qignore_defface): Don't extern them.
11030 (font_find_for_lface): Assume that LFACE is fully specified.
11031 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11032 object, use it for FACE.
11033 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11034 driver->parse_name.
11035 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11036
11037 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11038 prototype.
11039
11040 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11041 argument F. Don't call Fnew_fontset. Instead, directly call
11042 make_fontset.
11043
11044 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11045
11046 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11047 of x_new_fontset2.
11048
11049 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11050 (Qsans__serif): New variables.
11051 (ftfont_generic_family_list): New variable.
11052 (syms_of_ftfont): Initialize the above variables.
11053 (ftfont_pattern_entity): Delete argument NAME.
11054 (ftfont_list_generic_family): New function.
11055 (ftfont_parse_name): Delete this function.
11056 (ftfont_list): Try generic family only when FcFontList found no font.
11057 (ftfont_list_family): Fix args to FcObjectSetBuild.
11058
11059 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11060 object in attrs[LFACE_FONT_INDEX].
11061 (set_lface_from_font_name): Cancel all changes for font-backend.
11062 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11063 function.
11064 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11065 font object in QCfont attribute.
11066 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11067 (realize_default_face) [USE_FONT_BACKEND]: Call
11068 set_lface_from_font_and_fontset.
11069
11070 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11071 "fixed", and signal error here if no suitable font was found.
11072
11073 * xfont.c (xfont_parse_name): Delete this function.
11074
11075 * xftfont.c (xftfont_open): Change coding style of error
11076 handling. Generate fontconfig's fontname pattern.
11077
11078 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11079 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11080
11081 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11082 Both args FONTSET and FONT_OBJECT must be existing ones.
11083
110842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11085
11086 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11087
110882008-02-01 Kenichi Handa <handa@m17n.org>
11089
11090 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11091
11092 * font.h (struct font): Fix typo.
11093
11094 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11095 XLFD_XXX_INDEX.
11096 (enum xlfd_field_mask): New enum.
11097 (intern_font_field): Changed argument. Change caller. If digits
11098 are followed by non-digits, return a symbol.
11099 (font_expand_wildcards): New function.
11100 (font_parse_xlfd): Fix wildcard handling.
11101 (Ffont_spec): If :name is specified, reflect the info in the other
11102 properties.
11103
11104 * ftfont.c (ftfont_pattern_entity): Fix typo.
11105 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11106 locale.
11107
111082008-02-01 Kenichi Handa <handa@m17n.org>
11109
11110 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11111
11112 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11113 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11114 registry doesn't specify encoding part.
11115 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11116 (font_open_by_name): At first try parsing the name.
11117 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11118 as Lisp symbols.
11119
11120 * fontset.c (reorder_font_vector): Pay attention to the case that
11121 the 3rd element of font_def is nil.
11122 (fontset_font): For the default fontset, append one more fontset
11123 elements for a script-based font specification. Don't add script
11124 attribute on finding a font.
11125 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11126 font name.
11127 (fontset_ascii_font): If a font can't be opened, return nil.
11128
11129 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11130 (ftfont_pattern_entity): New function.
11131 (ftfont_get_cache): Assume that freetype_font_cache is already
11132 initialized.
11133 (ftfont_list): Handle the case that a file is specified in font
11134 name. Use ftfont_pattern_entity to generate entities.
11135 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11136 (syms_of_ftfont): Initialize freetype_font_cache.
11137
11138 * xftfont.c (xftfont_open): Make the font name fontconfig's
11139 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11140 (xftfont_close): Free font->font.name if not NULL.
11141
11142 * xfont.c (xfont_list): If script is specified for a font, return
11143 null_vector.
11144 (xfont_list_family): Declare argument type.
11145
11146 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11147 name, set LFACE_FONT (lface) to nil.
11148
11149 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11150 return Qnil.
11151
111522008-02-01 Kenichi Handa <handa@m17n.org>
11153
11154 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11155 (standard_args): Add "-enable-font-backend".
11156
111572008-02-01 Kenichi Handa <handa@m17n.org>
11158
11159 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11160 (struct xftdraw_list, xftdraw_list): Delete them.
11161 (register_xftdraw, check_xftdraw): Delete them.
11162 (xftfont_prepare_face): Don't call register_xftdraw.
11163 (xftfont_done_face): Don't call check_xftdraw.
11164 (xftfont_draw): Get background color only when with_background is
11165 nonzero.
11166
11167 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11168
111692008-02-01 Kenichi Handa <handa@m17n.org>
11170
11171 These changes are for the new font handling codes.
11172
11173 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11174 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11175 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11176 (FONTSRC, FONTOBJ): New variables.
11177 (obj): Add $(FONTOBJ).
11178 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11179 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11180 @LIBOTF_LIBS@.
11181 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11182 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11183
11184 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11185
11186 * character.h (Vscript_representative_chars): Extern it.
11187
11188 * character.c (Vscript_representative_chars): New variable.
11189 (syms_of_character): Declare it as a Lisp variable.
11190
11191 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11192 enable_font_backend is nonzero, accept the composition method
11193 COMPOSITION_WITH_GLYPH_STRING.
11194
11195 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11196 enumeration COMPOSITION_WITH_GLYPH_STRING.
11197
11198 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11199 members clip_x, clip_y, clip_width, and clip_height.
11200 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11201
11202 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11203 --enable-font-backend. Call syms_of_font.
11204
11205 * fns.c (assoc_no_quit): New function.
11206
11207 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11208 (face_for_font, new_fontset_from_font)
11209 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11210
11211 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11212 (fontset_font, fontset_ascii, face_for_char)
11213 (make_fontset_for_ascii_face, Ffont_info)
11214 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11215 is nonzero, use font-backend mechanism.
11216 (find_font_encoding): Make it non-static.
11217 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11218 New functions.
11219
11220 * frame.h (struct frame): New members resx and resy.
11221 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11222 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11223
11224 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11225 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11226
11227 * lisp.h (assoc_no_quit): Extern it.
11228
11229 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11230 Through out the file, use FONT_INFO_FROM_FACE instead of
11231 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11232 rif->per_char_metric.
11233 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11234 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11235 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11236 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11237 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11238 nonzero, use font-backend mechanism.
11239 (get_per_char_metric): New function.
11240
11241 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11242 (set_lface_from_font_name)
11243 (set_font_frame_param, free_realized_face)
11244 (prepare_face_for_display, clear_face_gcs)
11245 (Finternal_set_font_selection_order, realize_x_face)
11246 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11247 font-backend mechanism.
11248 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11249 (load_face_font) [USE_FONT_BACKEND]: Abort.
11250 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11251 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11252
11253 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11254 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11255 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11256 nonzero, register all available font drivers. Call
11257 x_default_font_parameter for deciding a font.
11258 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11259
11260 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11261 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11262 (x_set_glyph_string_clipping_exactly)
11263 (x_compute_glyph_string_overhangs)
11264 (x_draw_glyph_string_foreground)
11265 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11266 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11267 enable_font_backend is nonzero, use font-backend mechanism.
11268 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11269
112702008-02-01 Kenichi Handa <handa@m17n.org>
11271
11272 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11273 system_eol_type.
11274 (syms_of_coding): Initialize system_eol_type.
11275
11276 * process.c (Fset_process_coding_system): Inherit system's eol
11277 format if necessary.
11278
112792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11280
11281 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11282
112832008-02-01 Kenichi Handa <handa@m17n.org>
11284
11285 * coding.c (decode_eol): Pay attention to buffer relocation in
11286 del_range_2.
11287 (decode_coding): Call decode_eol before restoring undo_list.
11288
112892008-02-01 Kenichi Handa <handa@m17n.org>
11290
11291 * charset.c (Fdefine_charset_internal): Fix setting of
11292 emacs_mule_bytes.
11293
112942008-02-01 Kenichi Handa <handa@m17n.org>
11295
11296 * keyboard.c (read_char): Check if C is a character or not before
11297 looking up Vkeyboard_translate_table.
11298
112992008-02-01 Kenichi Handa <handa@m17n.org>
11300
11301 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11302 condition to terminate the loop.
11303
113042008-02-01 Kenichi Handa <handa@m17n.org>
11305
11306 * coding.c (produce_composition): Compare charbuf[i] instead of
11307 args[i] against 0.
11308 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11309
113102008-02-01 Kenichi Handa <handa@m17n.org>
11311
11312 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11313 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11314 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11315 detect_coding.
11316 (emacs_mule_char): Handle old style (Emacs 20) component character
11317 of a composition.
11318 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11319 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11320 composition rule.
11321 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11322
113232008-02-01 Kenichi Handa <handa@m17n.org>
11324
11325 * coding.c (encode_coding_ccl): Allocate destination dynamically
11326 when necessary.
11327
113282008-02-01 Kenichi Handa <handa@m17n.org>
11329
11330 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11331 the loop. When quitted, show a proper error message.
11332
113332008-02-01 Kenichi Handa <handa@m17n.org>
11334
11335 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11336 src->clip_head and src->clip_tail temporarily instead of src->hl.
11337
11338 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11339 character sequence.
11340 (Fccl_execute_on_string): Use ASET, not XSET.
11341
113422008-02-01 Kenichi Handa <handa@m17n.org>
11343
11344 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11345
113462008-02-01 Kenichi Handa <handa@m17n.org>
11347
11348 * coding.c (decode_coding): Fix the condition of terminating the
11349 decoding loop.
11350
113512008-02-01 Kenichi Handa <handa@m17n.org>
11352
11353 * data.c (Faset): On setting a character bigger than 255 in a
11354 unibyte string, signal an error instead of make the string multibyte.
11355
113562008-02-01 Kenichi Handa <handa@m17n.org>
11357
11358 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11359 made by a mapping table.
11360
113612008-02-01 Kenichi Handa <handa@m17n.org>
11362
11363 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11364 not.
11365 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11366 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11367
11368 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11369 s->face is NULL or not.
11370
113712008-02-01 Kenichi Handa <handa@m17n.org>
11372
11373 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11374 (x_draw_glyph_string): Fix drawing of right_overhang and
11375 left_overhang around/on cursor.
11376
11377 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11378
113792008-02-01 Kenichi Handa <handa@m17n.org>
11380
11381 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11382
113832008-02-01 Kenichi Handa <handa@m17n.org>
11384
11385 * coding.c (Fdefine_coding_system_internal)
11386 (Fdefine_coding_system_alias): Avoid a duplicated element in
11387 Vcoding_system_alist.
11388
113892008-02-01 Kenichi Handa <handa@m17n.org>
11390
11391 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11392
11393 * coding.c (Qcoding_system_define_form): New variable.
11394 (syms_of_coding): Intern and staticpro it.
11395 (Fcoding_system_p): Check Qcoding_system_define_form.
11396 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11397
11398 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11399 Fcoding_system_p.
11400 (CHECK_CODING_SYSTEM): If ID is not available, call
11401 Fcheck_coding_system.
11402 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11403 Try also Fcheck_coding_system.
11404
114052008-02-01 Kenichi Handa <handa@m17n.org>
11406
11407 * coding.c (code_conversion_restore): GCPRO arg.
11408
114092008-02-01 Kenichi Handa <handa@m17n.org>
11410
11411 * character.c (lisp_string_width): Check multibyteness of STRING.
11412
114132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11414
11415 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11416 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11417 (decode_mac_font_name): Use decode_coding_c_string instead of
11418 decode_coding.
11419 (x_load_font): Initialize fontp->fontset to -1. Set
11420 fontp->encoding_type.
11421
114222008-02-01 Kenichi Handa <handa@m17n.org>
11423
11424 * search.c (search_buffer): Give up BM search on case-fold-search
11425 if one of a target character has a case-equivalence of different
11426 byte length even if that target charcter is an ASCII.
11427 (simple_search): Fix calculation of byte length of matched text.
11428 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11429
114302008-02-01 Kenichi Handa <handa@m17n.org>
11431
11432 * coding.c (decode_coding): Fix handling of invalid bytes.
11433
114342008-02-01 Kenichi Handa <handa@m17n.org>
11435
11436 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11437 Unicode characters.
11438
114392008-02-01 Kenichi Handa <handa@m17n.org>
11440
11441 * coding.c (encode_coding_object): If a pre-write-conversion
11442 function makes a new buffer, kill it.
11443
114442008-02-01 Kenichi Handa <handa@m17n.org>
11445
11446 * coding.c (QCascii_compatible_p): New variable.
11447 (syms_of_coding): Initialize it.
11448 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11449 calling string_char.
11450 (record_conversion_result): Add `default:' case.
11451 (coding_charset_list): Delete unused variable `coding_type'.
11452 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11453 property in the plist of the coding system.
11454 (Fcoding_system_put): Check QCascii_compatible_p.
11455
114562008-02-01 Miles Bader <miles@gnu.org>
11457
11458 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11459 removed calculation of frame `f', as it's now used.
11460
114612008-02-01 Kenichi Handa <handa@m17n.org>
11462
11463 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11464 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11465 (UNIDATA): New variable.
11466 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11467 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11468 $(RUN_TEMACS) unconditionally.
11469
114702008-02-01 Kenichi Handa <handa@m17n.org>
11471
11472 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11473 (admindir): New variable.
11474 ($(lispsource)international/charprop.el): New target.
11475
114762008-02-01 Miles Bader <miles@gnu.org>
11477
11478 * character.c (chars-in-region): Remove obsolete function.
11479 (syms_of_character): Remove its initialization.
11480
114812008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11482
11483 * w32select.c (validate_coding_system)
11484 (setup_windows_coding_system): New functions.
11485 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11486 setup_windows_coding_system.
11487 (setup_config, Fw32_get_clipboard_data): Use
11488 validate_coding_system.
11489 (Fx_selection_exists): Move call to setup_config to a place
11490 where signals are allowed.
11491
11492 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11493 (Fcheck_coding_system): Add declarations.
11494
114952008-02-01 Kenichi Handa <handa@m17n.org>
11496
11497 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11498
114992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11500
11501 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11502 string as the second argument for x_new_fontset.
11503
115042008-02-01 Kenichi Handa <handa@m17n.org>
11505
11506 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11507 (encode_coding_object): Use safe_call instead of call2.
11508
115092008-02-01 Kenichi Handa <handa@m17n.org>
11510
11511 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11512
11513 * Makefile.in (lisp): Include charprop.el.
11514
115152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11516
11517 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11518 Not sure if it's unnecessary.
11519
115202008-02-01 Steven Tamm <steventamm@mac.com>
11521
11522 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11523 some possibly unnecessary fontset checking code that crashed
11524 when creating a new frame.
11525
115262008-02-01 Kenichi Handa <handa@m17n.org>
11527
11528 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11529 lookup_face.
11530
11531 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11532
11533 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11534
115352008-02-01 Kenichi Handa <handa@m17n.org>
11536
11537 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11538 (coding_charset_list): New function.
11539
11540 * coding.h (coding_charset_list): Extern it.
11541
115422008-02-01 Kenichi Handa <handa@m17n.org>
11543
11544 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11545 concatenation of family and registry.
11546
115472008-02-01 Kenichi Handa <handa@m17n.org>
11548
11549 * character.h (BYTE8_STRING): Fix typo.
11550
11551 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11552 string to multibyte (sync to HEAD).
11553
11554 * casefiddle.c (casify_region): Handle changes in byte-length
11555 using replace_range_2 (sync to HEAD).
11556
115572008-02-01 Andreas Schwab <schwab@suse.de>
11558
11559 * chartab.c (map_char_table): GCPRO table and arg.
11560
115612008-02-01 Kenichi Handa <handa@m17n.org>
11562
11563 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11564 already at limit.
11565
115662008-02-01 Kenichi Handa <handa@m17n.org>
11567
11568 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11569 instead of fast_c_string_match_ignore_case.
11570 (find_font_encoding): Change argument to Lisp_Object. Use
11571 fast_string_match_ignore_case instead of
11572 fast_c_string_match_ignore_case. Change caller.
11573
115742008-02-01 Kenichi Handa <handa@m17n.org>
11575
11576 * xdisp.c (get_next_display_element): In unibyte case, decide to
11577 display in octal form by checking a character by
11578 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11579
11580 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11581
11582 * character.c (unibyte_has_multibyte_table): New variable.
11583
11584 * character.h (unibyte_has_multibyte_table): Extern it.
11585 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11586
115872008-02-01 Kenichi Handa <handa@m17n.org>
11588
11589 * coding.c (encode_coding_iso_2022): Fix handling of charset
11590 annotation.
11591
115922008-02-01 Kenichi Handa <handa@m17n.org>
11593
11594 * coding.c (setup_coding_system): If coding_system is nil, use
11595 Qundecided.
11596 (Fterminal_coding_system): Return nil if terminal coding system is
11597 `undecided'.
11598 (syms_of_coding): Define coding-system `undecided' here. Setup
11599 terminal_coding as `undecided'.
11600
116012008-02-01 Kenichi Handa <handa@m17n.org>
11602
11603 * xdisp.c (message_dolog, set_message_1): Call
11604 unibyte_char_to_multibyte with arg type int.
11605
11606 * lread.c (read1): Fix reading of a char-table.
11607
11608 * print.c (print_object): Include sub char-table in circularities
11609 detection.
11610
116112008-02-01 Kenichi Handa <handa@m17n.org>
11612
11613 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11614 Append the found sequences in car of ARGS instead of prepending.
11615
116162008-02-01 Kenichi Handa <handa@m17n.org>
11617
11618 * fileio.c (report_file_error): Make a unibyte string from
11619 strerror (errorno).
11620 (Fsubstitute_in_file_name): Fix the arg to
11621 unibyte_char_to_multibyte. It is evaluated twice.
11622
116232008-02-01 Kenichi Handa <handa@m17n.org>
11624
11625 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11626
116272008-02-01 Kenichi Handa <handa@m17n.org>
11628
11629 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11630 BOM is not found.
11631 (detect_coding, detect_coding_system): Optimization for ISO-2022
11632 when no 8-bit data is found.
11633
116342008-02-01 Jason Rumney <jasonr@gnu.org>
11635
11636 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11637
116382008-02-01 Kenichi Handa <handa@m17n.org>
11639
11640 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11641 CHARS.
11642
116432008-02-01 Steven Tamm <steventamm@mac.com>
11644
11645 * macterm.c (mac_encode_char): Add charset argument and update
11646 to use encoding_type.
11647 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11648 switch to pure fontset.
11649 (decode_mac_font_name): Temporarily remove decoding.
11650 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11651 (x_load_font): Temporarily remove encoding.
11652
116532008-02-01 Kenichi Handa <handa@m17n.org>
11654
11655 * xfaces.c (Fface_font): If frame is not on a window system,
11656 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11657 refer to face->font.
11658 (split_font_name_into_vector, build_font_name_from_vector)
11659 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11660 when HAVE_WINDOW_SYSTEM is defined.
11661
116622008-02-01 Kenichi Handa <handa@m17n.org>
11663
11664 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11665 (x_produce_glyphs): Fix setting of members of cmp in case
11666 cmp->glyph_len is zero.
11667
11668 * fontset.c (Fset_fontset_font): Fix docstring.
11669 (Ffontset_info): Make it backward compatible. New arg ALL.
11670
116712008-02-01 Kim F. Storm <storm@cua.dk>
11672
11673 * process.c (read_process_output): Grow decoding_buf when needed;
11674 this could cause a crash in allocate_string and compact_small_strings.
11675
116762008-02-01 Kenichi Handa <handa@m17n.org>
11677
11678 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11679
116802008-02-01 Kenichi Handa <handa@m17n.org>
11681
11682 * coding.c (setup_coding_system): Set coding->common_flags
11683 correctly for raw-text.
11684 (consume_chars): On encoding unibyte text by raw-text, don't check
11685 multibyte form.
11686 (encode_coding): On encoding by raw-text, never use translation tables.
11687
11688 * fileio.c (e_write): Short cut for the case of no encoding.
11689
116902008-02-01 Kenichi Handa <handa@m17n.org>
11691
11692 * coding.c (detect_coding, detect_coding_system): Delete unused
11693 variables.
11694
116952008-02-01 Kenichi Handa <handa@m17n.org>
11696
11697 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11698 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11699
117002008-02-01 Kenichi Handa <handa@m17n.org>
11701
11702 * coding.c (Ffind_coding_systems_region_internal): Include
11703 raw-text and no-conversion in the result.
11704
117052008-02-01 Kenichi Handa <handa@m17n.org>
11706
11707 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11708 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11709 FONT_DEF.
11710 (font_def_arg, add_arg, from_arg, to_arg): New args.
11711 (set_fontset_font): Change argument.
11712 (Fset_fontset_font): Fix for the case that TARGET is a script
11713 name and charset name.
11714 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11715
117162008-02-01 Kenichi Handa <handa@m17n.org>
11717
11718 * fontset.c (fontset_font): Rename from fontset_face. Change return
11719 value.
11720 (face_suitable_for_char_p, face_for_char): Adjust for the change
11721 of fontset_font.
11722 (make_fontset_for_ascii_face): Fix setting of the fontset element
11723 for ASCII.
11724 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11725 to get a font name.
11726 (Ffontset_info): Adjust for the change of fontset_font.
11727
11728 * coding.c (emacs_mule_char): Check invalid code more rigidly.
11729
11730 * character.h (LEADING_CODE_LATIN_1_MIN)
11731 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
11732
117332008-02-01 Kenichi Handa <handa@m17n.org>
11734
11735 * editfns.c (check_translation): New function.
11736 (Ftranslate_region_internal): Handle M:N mapping.
11737
117382008-02-01 Kenichi Handa <handa@m17n.org>
11739
11740 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
11741
117422008-02-01 Kenichi Handa <handa@m17n.org>
11743
11744 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
11745 goto invalid_code.
11746 (decode_coding_iso_2022): Fix handling of invalid designation.
11747
11748 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
11749 after calling code_conversion_save.
11750
117512008-02-01 Kenichi Handa <handa@m17n.org>
11752
11753 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
11754
11755 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
11756
11757 * fontset.c: Include "intervals.h".
11758 (fontset_face): Fix comparing of Lisp_Objects.
11759 (free_face_fontset, new_fontset_from_font_name): Fix
11760 Lisp_Object/int mixup.
11761
11762 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
11763
11764 * coding.c: Add many prototypes for static functions.
11765 (get_translation_table): Allow max_lookup to be NULL.
11766 (decode_coding, Ffind_coding_systems_region_internal)
11767 (Funencodable_char_position, Fcheck_coding_systems_region): Call
11768 get_translation_table with max_lookup NULL.
11769
117702008-02-01 Kenichi Handa <handa@m17n.org>
11771
11772 * coding.c (get_translation_table): Declare it as Lisp_Object.
11773 (LOOKUP_TRANSLATION_TABLE): New macro.
11774 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
11775 instead of CHAR_TABLE_REF.
11776
117772008-02-01 Kenichi Handa <handa@m17n.org>
11778
11779 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
11780 annotation data format.
11781 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
11782 Change arguments FROM and TO to single argument NCHARS. Change caller.
11783 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
11784 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11785 (decode_coding_ccl, decode_coding_charset): Pay attention to
11786 coding->charbuf_used.
11787 (get_translation): New function.
11788 (produce_chars): New arguments translation_table and last_block.
11789 Translate characters here. Return number of carryover chars.
11790 Change caller.
11791 (produce_composition): New argument pos. Change caller.
11792 Adjust for the change of annotation data format.
11793 (produce_charset, produce_annotation): Likewise.
11794 (decode_coding, encode_coding): Don't call translate_chars.
11795 (consume_chars): New arg translation_table. Change caller.
11796 (translate_chars): Delete.
11797 (syms_of_coding): Make translation-table's number of extra slots 2.
11798
117992008-02-01 Kenichi Handa <handa@m17n.org>
11800
11801 * search.c (simple_search): Fix setting this_pos_byte in backward
11802 search.
11803
11804 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
11805 byte sequence.
11806 (detect_coding_ccl): Fix setting of the variable valids.
11807
118082008-02-01 Kenichi Handa <handa@m17n.org>
11809
11810 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
11811
11812 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
11813
11814 * editfns.c (Ftranslate_region_internal): Rename from
11815 Ftranslate_region. Accept a char-table in TABLE.
11816 (syms_of_editfns): Defsubr Stranslate_region_internal.
11817
11818 * xfaces.c (set_lface_from_font_name): If a font is specified for
11819 a frame, generate a fontset from the font.
11820 (build_scalable_font_name): If the scalable font is requested for
11821 a specific size, don't change that size.
11822 (try_font_list): Try a scalable font also in the case that a
11823 pattern string is specified.
11824
118252008-02-01 Kenichi Handa <handa@m17n.org>
11826
11827 * xfaces.c (Fface_font): New optional arg CHARACTER.
11828
118292008-02-01 Kenichi Handa <handa@m17n.org>
11830
11831 * charset.h (CHARSET_OFFSET): New macro.
11832
118332008-02-01 Kenichi Handa <handa@m17n.org>
11834
11835 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
11836
11837 * fontset.c (fontset_face): Handle the case that repertory is a
11838 char-table.
11839 (find_font_encoding): Return nil for unknown encoding.
11840 (Fset_fontset_font): Ignore a font of unknown encoding.
11841
118422008-02-01 Kenichi Handa <handa@m17n.org>
11843
11844 * keymap.c (describe_vector): Handle default value of a char table.
11845
11846 * fontset.c (fontset_face): Handle fallback fonts correctly.
11847 (Ffontset_info): Return infomation about fallback fonts.
11848
118492008-02-01 Kenichi Handa <handa@m17n.org>
11850
11851 * fontset.c (FONTSET_DEFAULT): New macro.
11852 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
11853 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
11854 the case that it is nil.
11855 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
11856 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
11857
11858 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
11859 subset or superset.
11860
118612008-02-01 Kenichi Handa <handa@m17n.org>
11862
11863 * emacs.c (main): Call init_charset after syms_of_XXX.
11864
11865 * charset.c (Vcharset_map_directory): Delete.
11866 (Vcharset_map_path): New variable.
11867 (load_charset_map_from_file): Use Vcharset_map_path instead.
11868 (init_charset): Initialize Vcharset_map_path.
11869 (syms_of_charset): Delete declaration of "charset-map-directory",
11870 add declaration of "charset-map-path".
11871
118722008-02-01 Kenichi Handa <handa@m17n.org>
11873
11874 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
11875 ASCII only string.
11876
11877 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
11878
11879 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
11880 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
11881
118822008-02-01 Kenichi Handa <handa@m17n.org>
11883
11884 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
11885
11886 * coding.c (QCmnemonic, QCdefalut_char)
11887 (QCdecode_translation_table, QCencode_translation_table)
11888 (QCpost_read_conversion, QCpre_write_conversion): New variables.
11889 (get_translation_table): Return a list of translation tables if
11890 necessary.
11891 (decode_coding): Call get_translation_table with ENCODEP 0.
11892 (char_encodable_p): If translation_table is non-nil, always call
11893 translate_char.
11894 (Fdefine_coding_system_internal): Accept list of translation
11895 tables as :encode-translation-table and :decode-translation-table.
11896 (Fcoding_system_put): New function.
11897 (syms_of_coding): Declare new symbols. Defsubr
11898 Scoding_system_put.
11899 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
11900 typically JISX0212.
11901
11902 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
11903 when the charset is superset type.
11904
11905 * character.c (translate_char): Accept list of translation tables.
11906
119072008-02-01 Kenichi Handa <handa@m17n.org>
11908
11909 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
11910 (CODING_ATTR_TRANS_TBL): New macro.
11911
11912 * coding.c (get_translation_table): New function.
11913 (translate_chars): Fix the bug of skipping annotation data.
11914 (decode_coding, encode_coding): Utilize get_translation_table.
11915 (char_encodable_p, Funencodable_char_position): Translate char if
11916 necessary.
11917 (Ffind_coding_systems_region_internal)
11918 (Fcheck_coding_systems_region): Setup translation table for encode
11919 in a coding system attribute vector in advance.
11920 (Fdefine_coding_system_internal): Allow a symbol as translation
11921 table. For shift-jis type coding system, allow 4th charset.
11922
119232008-02-01 Kenichi Handa <handa@m17n.org>
11924
11925 * coding.c (decode_coding_sjis): Check the first byte rigidly.
11926
11927 * xdisp.c (get_next_display_element): Pass -1 as POS to
11928 FACE_FOR_CHAR if displaying a C-string.
11929
119302008-02-01 Kenichi Handa <handa@m17n.org>
11931
11932 * composite.c (get_composition_id): Handle xoff and yoff in a
11933 composition rule.
11934
11935 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
11936 (struct composition): New member lbearing and rbearing.
11937
11938 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
11939 (x_get_glyph_overhangs): Handle a composition glyph.
11940 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
11941
11942 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
11943 composition glyph.
11944
119452008-02-01 Kenichi Handa <handa@m17n.org>
11946
11947 * print.c: Include charset.h.
11948 (Vprint_charset_text_property): New variable.
11949 (Qdefault): Extern it.
11950 (PRINT_STRING_NON_CHARSET_FOUND)
11951 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
11952 (print_check_string_result): New variable.
11953 (print_check_string_charset_prop): New function.
11954 (print_prune_charset_plist): New variable.
11955 (print_prune_string_charset): New function.
11956 (print_object): Call print_prune_string_charset if
11957 Vprint_charset_text_property is not t.
11958 (print_interval): Print nothing if interval->plist is nil.
11959 (syms_of_print): Declare Vprint_charset_text_property as a lisp
11960 variable. Init and staticpro print_prune_charset_plist.
11961
119622008-02-01 Kenichi Handa <handa@m17n.org>
11963
11964 * fontset.c (new_fontset_from_font_name): Use the specified font
11965 for all characters in the new fontset.
11966
11967 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11968 OBJECT args.
11969
11970 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
11971 OBJECT args for composition too.
11972
11973 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11974 OBJECT args.
11975
119762008-02-01 Kenichi Handa <handa@m17n.org>
11977
11978 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
11979
11980 * fontset.c (reorder_font_vector): Adjust for the change of
11981 FONT_DEF format.
11982 (fontset_face): New arg id. Change caller.
11983 (face_for_char): New args pos and object.
11984 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
11985 (fs_query_fontset): Check NAME by Fassoc too.
11986 (Fset_fontset_font): Allow non-XLFD font name.
11987 (Ffontset_info): Adjust for the change of FONT_DEF format.
11988
11989 * fontset.h (face_for_char): Adjust prototype.
11990
11991 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
11992 (append_space, extend_face_to_end_of_line)
11993 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11994 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
11995
11996 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
11997 POS and OBJECT args.
11998
11999 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12000 POS and OBJECT args.
12001
120022008-02-01 Jason Rumney <jasonr@gnu.org>
12003
12004 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12005 of GlobalAlloc'ed memory.
12006
120072008-02-01 Kenichi Handa <handa@m17n.org>
12008
12009 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12010
12011 * charset.h (charset_table_used): Delete extern.
12012
12013 * charset.c (charset_table_used): Make it static.
12014 (map_charset_chars): Fix args to c_function with.
12015
12016 * chartab.c (map_sub_char_table_for_charset): Fix args to
12017 c_function with.
12018
12019 * coding.h (enum coding_result_code): Delete
12020 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12021
12022 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12023 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12024 (Vlast_code_conversion_error): New variables.
12025 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12026 (ONE_MORE_BYTE): Record error if any instead of signaling an
12027 error. If non-ASCII multibyte char is found, return the negative
12028 value of the code. All callers changed to check it.
12029 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12030 (record_conversion_result): New function. Change all codes setting
12031 coding->result to call this function.
12032 (detect_coding_utf_8, decode_coding_utf_8)
12033 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12034 Don't use the local variable incomplete.
12035 (emacs_mule_char): Change the second arg to `const'.
12036 (decode_coding): Fix of flushing out unprocessed data.
12037 (make_conversion_work_buffer): Fix making of a work buffer.
12038 (decode_coding_object): Return coding->dst_object.
12039
12040 * fontset.c (set_fontset_font): Fix args.
12041
12042 * lisp.h (CHARACTERBITS): Define as 22.
12043
12044 * process.c (send_process): Be sure to set coding->src_multibyte.
12045
12046 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12047
120482008-02-01 Kenichi Handa <handa@m17n.org>
12049
12050 * xdisp.c (handle_auto_composed_prop): Give limit to
12051 Fnext_single_char_property_change.
12052
120532008-02-01 Kenichi Handa <handa@m17n.org>
12054
12055 * composite.c (syms_of_composite): Don't make the composition hash
12056 table weak.
12057
12058 * fontset.c (Fset_fontset_font): Fix docstring.
12059
12060 * lisp.h (detect_coding_system): Adjust prototype.
12061
12062 * fileio.c (kill_workbuf_unwind): Delete this function.
12063 (Finsert_file_contents): Adjust the call of detect_coding_system.
12064 Get conversion_buffer by code_conversion_save. Use the macro
12065 CODING_MAY_REQUIRE_DECODING. After decoding, update
12066 coding_system.
12067
12068 * coding.h (make_conversion_work_buffer): Delete extern.
12069 (code_conversion_save): Extern it.
12070
12071 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12072 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12073 (decode_coding_utf_8): Don't do eol converion.
12074 (detect_coding_utf_16): Check coding->src_chars, not
12075 coding->src_bytes. Add heuristics for those that have no signature.
12076 (decode_coding_emacs_mule, decode_coding_iso_2022)
12077 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12078 Don't do eol converion.
12079 (adjust_coding_eol_type): Return a new coding system.
12080 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12081 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12082 each change.
12083 (decode_coding): Pay attention to undo_list. Do eol conversion for
12084 all types of coding-systems (if necessary).
12085 (Vcode_conversion_work_buf_list): Delete it.
12086 (Vcode_conversion_reused_workbuf): Rename from
12087 Vcode_conversion_reused_work_buf.
12088 (Vcode_conversion_workbuf_name): New variable.
12089 (reused_workbuf_in_use): New variable.
12090 (make_conversion_work_buffer): Delete the arg DEPTH.
12091 (code_conversion_restore): Change argument to cons.
12092 (code_conversion_save): Delete the argument BUFFER. Change callers.
12093 (detect_coding_system): New argument src_chars. Change callers.
12094 Fix for utf-16 detection.
12095 (init_coding_once): Don't use ISO_carriage_return.
12096 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12097 reused_workbuf_in_use.
12098
120992008-02-01 Kenichi Handa <handa@m17n.org>
12100
12101 * keymap.c (store_in_keymap): Pay attention to the case that idx
12102 is a cons specifying a character range.
12103
121042008-02-01 Kenichi Handa <handa@m17n.org>
12105
12106 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12107 HANDLED_RECOMPUTE_PROPS.
12108
12109 * coding.c (Fdefine_coding_system_internal): Fix checking of
12110 ascii compatibility.
12111
121122008-02-01 Kenichi Handa <handa@m17n.org>
12113
12114 * charset.c (find_charsets_in_text): Delete unused locale variable.
12115 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12116
12117 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12118 Resync charset_list to Vemacs_mule_charset_list.
12119
12120 * keymap.c (store_in_keymap): Pay attention to the case that idx
12121 is a cons specifying a character range.
12122
121232008-02-01 Kenichi Handa <handa@m17n.org>
12124
12125 * composite.c (update_compositions): Bind inhibit-read-only, etc
12126 to t before calling remove-list-of-text-properties.
12127
12128 * print.c (print_object): Always print ASCII chars as is.
12129
121302008-02-01 Kenichi Handa <handa@m17n.org>
12131
12132 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12133
12134 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12135 is a char table.
12136
121372008-02-01 Kenichi Handa <handa@m17n.org>
12138
12139 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12140
121412008-02-01 Kenichi Handa <handa@m17n.org>
12142
12143 * xfaces.c (set_lface_from_font_name): Fix for the case that
12144 FONTNAME is not fontset name.
12145
121462008-02-01 Kenichi Handa <handa@m17n.org>
12147
12148 * fns.c (base64_encode_1): Fix previous change.
12149
121502008-02-01 Kenichi Handa <handa@m17n.org>
12151
12152 * fontset.c (set_fontset_font): New function.
12153 (Fset_fontset_font): If a font is specified for a charset, use
12154 map_charset_chars to store the font spec in a fontset.
12155
121562008-02-01 Kenichi Handa <handa@m17n.org>
12157
12158 * fontset.c (fontset_face): Create a fallback fontset on demand.
12159 (make_fontset): Don't create a fallback fontset here.
12160 (free_face_fontset): Free a fallback fontset (if any) too.
12161 (n_auto_fontsets): Delete this variable.
12162 (auto_fontset_alist): New variable.
12163 (new_fontset_from_font_name): Check auto_fontset_alist.
12164 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12165 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12166 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12167 Defsubr Sfontset_list_all.
12168
121692008-02-01 Kenichi Handa <handa@m17n.org>
12170
12171 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12172
121732008-02-01 Kenichi Handa <handa@m17n.org>
12174
12175 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12176
121772008-02-01 Kenichi Handa <handa@m17n.org>
12178
12179 * editfns.c (Fgoto_char): Fix docstring.
12180
121812008-02-01 Kenichi Handa <handa@m17n.org>
12182
12183 * insdel.c (insert_from_gap): Adjust intervals correctly.
12184
121852008-02-01 Jason Rumney <jasonr@gnu.org>
12186
12187 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12188 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12189 (w32_initialize): Try to load it.
12190 (x_get_font_repertory): Use it if available.
12191 (w32_encode_char): Add shortcut for unicode output.
12192
12193 * w32fns.c (w32_load_system_font): Default charset to -1.
12194 (x_to_w32_charset): Match all fonts for unicode.
12195 (w32_to_x_charset): New parameter matching. Don't return partial
12196 or wildcard charsets.
12197 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12198 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12199 (w32_to_x_font): Match charset to real charset.
12200 (enum_font_cb2): Always list unicode versions.
12201
12202 * makefile.w32-in (temacs): Increase EMHEAP.
12203
122042008-02-01 Jason Rumney <jasonr@gnu.org>
12205
12206 * w32term.c (w32_encode_char): New charset parameter.
12207 font_info.encoding becomes encoding_type.
12208 (x_get_font_repertory): New function. Warning: stub only!
12209 (x_new_font): Return quickly if font already set.
12210 (x_new_fontset): fontsetname parameter is Lisp_Object.
12211 Use new fs_query_fontset. Try new_fontset_from_font_name.
12212 Use fontset_name for return value.
12213
12214 * w32term.h: Declare x_get_font_repertory.
12215
12216 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12217 place of find_charset_in_text. Use encode_coding_object in place
12218 of encode_coding.
12219 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12220 decode_coding.
12221
12222 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12223 of x_new_fontset.
12224 (w32_load_system_font): Initialize charset as unicode.
12225 font_info.encoding becomes encoding_type.
12226 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12227 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12228 (syms_of_w32fns): Set get_font_repertory_func.
12229
12230 * w32console.c: Include character.h. Use terminal_encode_buffer
12231 from term.c.
12232 (write_glyphs): Use new version of encode_terminal_code. Use
12233 encode_coding_object in place of encode_coding.
12234
12235 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12236 encoding becomes encoding_type.
12237
12238 * term.c (terminal_encode_buffer): Make externally visible.
12239
12240 * makefile.w32-in: Add character.h dependancies.
12241 (character.o, chartab.o): New targets.
12242
122432008-02-01 Kenichi Handa <handa@m17n.org>
12244
12245 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12246 CODING_ID_EOL_TYPE.
12247
122482008-02-01 Andreas Schwab <schwab@suse.de>
12249
12250 * coding.c (produce_chars): Revert last change.
12251
122522008-02-01 Kenichi Handa <handa@m17n.org>
12253
12254 * charset.h (charset_unicode): Extern it.
12255
12256 * charset.c (string_xstring_p): Check by (C >= 0x100).
12257 (find_charsets_in_text): Change format of the arc CHARSETS. New
12258 arg MULTIBYTE.
12259 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12260 change of find_charsets_in_text.
12261 (Fsplit_char): Fix doc. Never return unknown.
12262
12263 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12264
12265 * coding.c (Fdefine_coding_system_alias): Update
12266 Vcoding_system_list.
12267
12268 * fontset.c (load_font_get_repertory): Pay attention to the case
12269 that ENCODING of a font is specified by a char-table.
12270
12271 * xterm.c (x_get_font_repertory): Handle the case that the
12272 encoding of font is other than Unicode.
12273
122742008-02-01 Kenichi Handa <handa@m17n.org>
12275
12276 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12277 if a character is encodable by the terminal coding system. If
12278 not, produces proper number of `?'s. Update
12279 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12280 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12281
122822008-02-01 Kenichi Handa <handa@m17n.org>
12283
12284 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12285 variables.
12286 (encode_terminal_code): Change argument. Encode multiple
12287 characters at once. Store the result of encoding in
12288 terminal_encode_buffer.
12289 (write_glyphs, insert_glyphs): Adjust for the change of
12290 encode_terminal_code.
12291 (term_init): Initialize terminal_encode_buffer and
12292 terminal_encode_buf_size.
12293
12294 * coding.c (consume_chars): If coding->src_object is nil, don't
12295 check annotation.
12296
122972008-02-01 Kenichi Handa <handa@m17n.org>
12298
12299 * character.c (char_string): Use ASCII_CHAR_P instead of
12300 SINGLE_BYTE_CHAR_P.
12301
123022008-02-01 Kenichi Handa <handa@m17n.org>
12303
12304 * xdisp.c (handle_auto_composed_prop): Check if the last
12305 characters of auto-composed region is newly composed with the
12306 following characters.
12307 (handle_composition_prop): Fix checking of point being inside
12308 composition.
12309
123102008-02-01 Kenichi Handa <handa@m17n.org>
12311
12312 * fns.c (concat): Don't change multibyteness of the result by
12313 concatenating an 8-bit character.
12314
12315 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12316 multibyteness of the result when newelt is an 8-bit character.
12317
123182008-02-01 Dave Love <fx@gnu.org>
12319
12320 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12321 EMACS_INT.
12322
12323 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12324
12325 * xfaces.c (face_numeric_value): Declare dim size_t.
12326 (Finternal_lisp_face_equal_p): Remove unused f.
12327
12328 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12329 (MATRIX_ROW): Remove unused vars.
12330 (draw_glyphs, x_insert_glyphs, fast_find_position)
12331 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12332 byte/char counts.
12333
12334 * regex.c (regex_compile): Remove unused var.
12335
12336 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12337
12338 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12339 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12340
12341 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12342
12343 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12344
12345 * fileio.c (Fwrite_region): Remove unused var.
12346
12347 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12348 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12349
12350 * composite.c (Fremove_list_of_text_properties): Declare.
12351
12352 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12353 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12354 (coding_inherit_eol_type): Remove unused attrs.
12355 (detect_coding): Cast arg of detect_eol.
12356
12357 * charset.c (syms_of_charset): Remove unused var p.
12358 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12359 byte/char counts.
12360
12361 * casetab.c (set_case_table): Remove unused var.
12362
12363 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12364 unused vars.
12365
123662008-02-01 Dave Love <fx@gnu.org>
12367
12368 * xterm.c (x_bitmap_mask): Declare.
12369
123702008-02-01 Dave Love <fx@gnu.org>
12371
12372 * xterm.c (x_term_init): Fix type error.
12373
12374 * lisp.h: Add Funibyte_char_to_multibyte.
12375
12376 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12377 (Fset_coding_system_priority): Doc fix.
12378
12379 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12380
12381 * indent.c (check_composition): Make start and end EMACS_INT.
12382
12383 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12384
12385 * xdisp.c (handle_composition_prop, check_point_in_composition):
12386 Make buffer positions EMACS_INT.
12387
12388 * composite.c (find_composition, run_composition_function)
12389 (update_compositions, Ffind_composition_internal): Make buffer
12390 positions EMACS_INT.
12391
12392 * composite.h (find_composition, update_compositions): Make
12393 position args EMACS_INT.
12394
12395 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12396
12397 * intervals.c (get_property_and_range):
12398 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12399
12400 * unexalpha.c: Don't include varargs.h.
12401
124022008-02-01 Dave Love <fx@gnu.org>
12403
12404 * coding.h (ENCODE_UTF_8): New.
12405
12406 * Makefile.in (gtkutil.o): Depend on coding.h.
12407
12408 * coding.c (Fset_coding_system_priority): Doc fix.
12409
124102008-02-01 Kenichi Handa <handa@m17n.org>
12411
12412 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12413 the case of auto saving.
12414
124152008-02-01 Andreas Schwab <schwab@suse.de>
12416
12417 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12418 `range' from GC.
12419
124202008-02-01 Kenichi Handa <handa@m17n.org>
12421
12422 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12423
124242008-02-01 Kenichi Handa <handa@m17n.org>
12425
12426 * fileio.c (choose_write_coding_system): Return a decided coding system.
12427 (Fwrite_region): Set Vlast_coding_system_used to the return value
12428 of choose_write_coding_system.
12429
124302008-02-01 Kenichi Handa <handa@m17n.org>
12431
12432 * charset.c (Fset_charset_priority): Pay attention to duplicated
12433 arguments.
12434
12435 * coding.c (QCcategory): New variable.
12436 (syms_of_coding): Defsym it. Set all elements of
12437 Vcoding_category_table and their symbol values.
12438 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12439 coding-category-XXX, and coding-category-list.
12440 (Fdefine_coding_system_internal): Add category in the plist.
12441
124422008-02-01 Kenichi Handa <handa@m17n.org>
12443
12444 * callproc.c (Fcall_process): Handle carryover correctly.
12445
12446 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12447 (raw_text_coding_system): Check NILP (coding_system).
12448 (coding_inherit_eol_type): Check NILP (coding_system) and
12449 NILP (parent).
12450 (consume_chars): Fix for the case of raw-text.
12451
12452 * process.c (read_process_output): Handle carryover correctly.
12453
124542008-02-01 Dave Love <fx@gnu.org>
12455
12456 * regex.c (re_search_2): Fix last change.
12457
124582008-02-01 Kenichi Handa <handa@m17n.org>
12459
12460 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12461 target_multibyte. Even in a unibyte case, return a converted
12462 multibyte char.
12463 (GET_CHAR_AFTER): New macro.
12464 (PATFETCH): Translate via multibyte char.
12465 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12466 (SETUP_MULTIBYTE_RANGE): New macro.
12467 (regex_compile): Setup compiled code so that its multibyteness
12468 matches that of a target. Fix the handling of "[X-YZ]" using
12469 SETUP_MULTIBYTE_RANGE.
12470 (analyse_first) <charset>: For filling fastmap for all multibyte
12471 characters, don't check by BASE_LEADING_CODE_P.
12472 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12473 the same as RE_MULTIBYTE_P (bufp) now.
12474 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12475 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12476 (TRANSLATE_VIA_MULTIBYTE): New macro.
12477 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12478 It is the same as RE_MULTIBYTE_P (bufp) now.
12479 <exactn>: Translate via multibyte.
12480 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12481 translate it.
12482 <charset, charset_not>: Fetch a character by
12483 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12484 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12485 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12486 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12487 by GET_CHAR_AFTER.
12488 (bcmp_translate): Likewise.
12489
12490 * search.c (compile_pattern): Check the member target_multibyte,
12491 not the member multibyte of buf.
12492
12493 * lread.c (read1): While reading a string, set force_singlebyte
12494 and force_multibyte correctly.
12495
12496 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12497 up of unibyte_to_multibyte_table.
12498
124992008-02-01 Kenichi Handa <handa@m17n.org>
12500
12501 * coding.c (setup_coding_system): If coding has
12502 post-read-conversion or pre-write-conversion, set
12503 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12504 respectively.
12505 (decode_coding_gap): Run post-read-conversion if any.
12506
12507 * fileio.c (Finsert_file_contents): Even if we read into a
12508 unibyte buffer, check if we must decode the result or not.
12509
125102008-02-01 Kenichi Handa <handa@m17n.org>
12511
12512 * coding.c (make_conversion_work_buffer): Change the work buffer
12513 name to the same one as that of Emacs 21.
12514
125152008-02-01 Kenichi Handa <handa@m17n.org>
12516
12517 * coding.h (make_conversion_work_buffer): Adjust prototype.
12518 (code_conversion_restore): Don't extern it.
12519
12520 * coding.c (detected_mask): Delete unused variable.
12521 (decode_coding_iso_2022): Pay attention to the byte sequence of
12522 CTEXT extended segment, and retain those bytes as is.
12523 (decode_coding_ccl): Delete unused variable `valids'.
12524 (setup_coding_system): Delete unused variable `category'.
12525 (consume_chars): Delete unused variable `category'. Make it work
12526 for non-multibyte case.
12527 (make_conversion_work_buffer): Change argument.
12528 (saved_coding): Delete unused variable.
12529 (code_conversion_restore): Don't check saved_coding->destination.
12530 (code_conversion_save): New function.
12531 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12532 instead of record_unwind_protect.
12533 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12534 (detect_coding_system): Delete unused variable `mask'.
12535 (Fdefine_coding_system_internal): Delete unused variable id.
12536
12537 * fileio.c (kill_workbuf_unwind): New function.
12538 (Finsert_file_contents): On replacing, call
12539 make_conversion_work_buffer with correct args, and call
12540 record_unwind_protect with the first arg kill_workbuf_unwind.
12541
12542 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12543
125442008-02-01 Kenichi Handa <handa@m17n.org>
12545
12546 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12547 (fontset_add): Fix for the case that TO is less than TO1.
12548 (Ffontset_info): Don't use fallback fontset on checking the
12549 default fontset.
12550 (dump_fontset): New function for debugging.
12551
12552 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12553 coding_type is Qcharset.
12554
125552008-02-01 Kenichi Handa <handa@m17n.org>
12556
12557 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12558 (map_char_table): Don't inherit the value from the parent on
12559 initializing VAL. Adjust for the above change.
12560
125612008-02-01 Kenichi Handa <handa@m17n.org>
12562
12563 * coding.c (Qsignature, Qendian): Delete these variables.
12564 (syms_of_coding): Don't initialize them.
12565 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12566 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12567 detect_info->found.
12568 (decode_coding_utf_16): Don't detect BOM here.
12569 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12570 is NOT utf_16_without_bom.
12571 (setup_coding_system): For a coding system of type utf-16, check
12572 if the attribute :endian is Qbig or not (not nil or not), and set
12573 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12574 (detect_coding): If coding type is utf-16 and BOM detection is
12575 required, detect it.
12576 (Fdefine_coding_system_internal): For a coding system of type
12577 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12578
125792008-02-01 Kenichi Handa <handa@m17n.org>
12580
12581 * coding.c (coding_set_source): Fix for the case that the current
12582 buffer is different from coding->src_object.
12583 (decode_coding_object): Don't use the conversion work buffer if
12584 DST_OBJECT is a buffer.
12585
125862008-02-01 Dave Love <fx@gnu.org>
12587
12588 * lread.c (read_emacs_mule_char) [len==2]: Index
12589 emacs_mule_charset correctly.
12590
125912008-02-01 Dave Love <fx@gnu.org>
12592
12593 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12594 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12595 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12596 treated specially.)
12597 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12598 (detected_mask): Remove Big5 bits.
12599
126002008-02-01 Kenichi Handa <handa@m17n.org>
12601
12602 The following changes are to make the font rescaling facility
12603 compatible with Emacs 21.
12604
12605 * xfaces.c (Vface_font_rescale_alist): Rename from
12606 Vface_resizing_fonts.
12607 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12608 (font_rescale_ratio): Rename from font_resizing_ratio.
12609 (split_font_name): Set font->rescale_ratio.
12610 (better_font_p): Pay attention to font->rescale_ratio.
12611 (build_scalable_font_name): Likewise. Change RESX, and RESY
12612 fields.
12613 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12614
126152008-02-01 Kenichi Handa <handa@m17n.org>
12616
12617 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12618 (Qutf_16_le): Remove these variables.
12619 (syms_of_coding): Don't DEFSYM them.
12620 (decode_coding_utf_16): Fix handling of BOM.
12621 (encode_coding_utf_16): Fix handling of BOM.
12622
126232008-02-01 Kenichi Handa <handa@m17n.org>
12624
12625 * fileio.c (Finsert_file_contents): On replacing, before decoding
12626 the file into the work buffer, set point of the work buffer to the end.
12627
126282008-02-01 Dave Love <fx@gnu.org>
12629
12630 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12631
126322008-02-01 Dave Love <fx@gnu.org>
12633
12634 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12635 and fix C types.
12636
126372008-02-01 Kenichi Handa <handa@m17n.org>
12638
12639 * xdisp.c (SKIP_GLYPHS): New macro.
12640 (set_cursor_from_row): Pay attention to string display properties.
12641
12642 * category.c (copy_category_entry): Fix for the case that RANGE
12643 is an integer.
12644
12645 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12646
12647 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12648
126492008-02-01 Kenichi Handa <handa@m17n.org>
12650
12651 * charset.c (Fcharset_id_internal): New function.
12652 (syms_of_charset): Defsubr it.
12653
12654 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12655 with the last arg charset_list acquired from coding.
12656 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12657 the attribute coding_attr_ccl_valids.
12658
12659 * coding.h (enum define_coding_ccl_arg_index): Set the first
12660 member coding_arg_ccl_decoder to coding_arg_max.
12661
12662 * ccl.h (ccl_driver): Adjust prototype.
12663
12664 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12665 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12666 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12667 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12668 last arg Qnil.
12669
126702008-02-01 Kenichi Handa <handa@m17n.org>
12671
12672 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12673 call encode_char.
12674
12675 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12676
126772008-02-01 Dave Love <fx@gnu.org>
12678
12679 * composite.c (syms_of_composite): Make composition_hash_table weak.
12680
126812008-02-01 Kenichi Handa <handa@m17n.org>
12682
12683 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12684 (font_name_registry): Don't extern them.
12685 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12686
12687 * fontset.h (Qfontset): Don't extern it.
12688 (new_fontset_from_font_name): Extern it.
12689
12690 * fontset.c: Give 8 extra slots to fontset objects.
12691 (Qfontset_info): New variable.
12692 (syms_of_fontset): Defsym it.
12693 (FONTSET_FALLBACK): New macro.
12694 (fontset_face): Try also the default fontset.
12695 (make_fontset): Realize a fallback fontset from the default fontset.
12696 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12697 using split_font_name_into_vector and build_font_name_from_vector.
12698 (Fset_fontset_font): Access the elements of font_spec by enum
12699 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12700 name by using split_font_name_into_vector.
12701 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12702 generate a proper font name from the fontset name. Update
12703 Vfontset_alias_alist.
12704 (n_auto_fontsets): New variable.
12705 (new_fontset_from_font_name): New function.
12706 (Ffont_info): Store the information about fonts generated from the
12707 default fontset in the first extra slot of the returned char-table.
12708
12709 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12710 (font_name_registry): Delete function.
12711 (split_font_name_into_vector): New function.
12712 (build_font_name_from_vector): New function.
12713 (font_list): The argument REGISTRY is now a list of registry names.
12714 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12715 specifies an explicit font name, return the name as is. Make a
12716 list of registy names.
12717
12718 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12719 of x_new_fontset.
12720 (Fx_create_frame): Don't call x_new_fontset here. Just use
12721 x_list_fonts to check the existence of fonts.
12722
12723 * xterm.h (x_new_fontset): Adjust prototype.
12724
12725 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12726 string. Use new_fontset_from_font_name to create a fontset from a
12727 font name.
12728
127292008-02-01 Kenichi Handa <handa@m17n.org>
12730
12731 * syntax.c (Vfind_word_boundary_function_table): New name for
12732 Vnext_word_boundary_function_table.
12733 (find-word-boundary-function-table): New name for
12734 next-word-boundary-function-table.
12735
127362008-02-01 Dave Love <fx@gnu.org>
12737
12738 * Makefile.in: Fix some dependencies.
12739
12740 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
12741 set it to nil before returning.
12742
12743 * composite.c (update_compositions): Fix type error.
12744
12745 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
12746
127472008-02-01 Kenichi Handa <handa@m17n.org>
12748
12749 * xterm.c (x_new_font): Optimize for the case that the font is
12750 already set for the frame.
12751
127522008-02-01 Kenichi Handa <handa@m17n.org>
12753
12754 * chartab.c (char_table_ascii): Check if the char table contents
12755 is sub-char-table or not.
12756 (char_table_set, char_table_set_range): Fix argument to
12757 char_table_ascii.
12758
12759 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
12760 (detect_coding_utf_8, detect_coding_utf_16)
12761 (detect_coding_emacs_mule, detect_coding_iso_2022)
12762 (detect_coding_sjis, detect_coding_big5)
12763 (detect_coding_ccl, detect_coding_charset): Change argument MASK
12764 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
12765 sequence is valid in this coding system. Change callers.
12766 (MAX_ANNOTATION_LENGTH): New macro.
12767 (ADD_ANNOTATION_DATA): New macro.
12768 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
12769 ADD_ANNOTATION_DATA. Change the format of annotation data.
12770 (ADD_CHARSET_DATA): New macro.
12771 (emacs_mule_char): New argument ID. Change callers.
12772 (decode_coding_emacs_mule, decode_coding_iso_2022)
12773 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12774 Produce charset annotation data in coding->charbuf.
12775 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
12776 to charset annotation data in coding->charbuf.
12777 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
12778 coding->common_flags if the coding system is iso-2022 based and
12779 uses designation.
12780 (produce_composition): Adjust for the new annotation data format.
12781 (produce_charset): New function.
12782 (produce_annotation): Handle charset annotation.
12783 (handle_composition_annotation, handle_charset_annotation): New
12784 functions.
12785 (consume_chars): Handle charset annotation. Utilize the above two
12786 functions.
12787 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
12788 buffer, get the deleted text as a string and set
12789 coding->src_object to that string.
12790 (detect_coding, detect_coding_system): Use the new struct
12791 coding_detection_info.
12792
12793 * coding.h (struct coding_detection_info): New structure.
12794 (struct coding_system): Adjust prototype of the member `detector'.
12795 (CODING_ANNOTATE_CHARSET_MASK): New macro.
12796
127972008-02-01 Kenichi Handa <handa@m17n.org>
12798
12799 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
12800
128012008-02-01 Dave Love <fx@gnu.org>
12802
12803 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
12804 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
12805 to new local and nullify apropos_accumulate before returning.
12806 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
12807
128082008-02-01 Kenichi Handa <handa@m17n.org>
12809
12810 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
12811 correctly.
e3eea1fc 12812
aac0c6e3
MR
128132008-02-01 Dave Love <fx@gnu.org>
12814
12815 * fns.c (Flanginfo): Call synchronize_system_time_locale.
12816
128172008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 The following changes are to make character composition happen
12820 automatically on displaying.
12821
12822 * Makefile.in (lisp, shortlisp): Add composite.elc.
12823
12824 * composite.h (Qauto_composed, Vauto_composition_function)
12825 (Qauto_composition_function): Extern them.
12826
12827 * composite.c (Vcomposition_function_table)
12828 (Qcomposition_function_table): Delete variables.
12829 (Qauto_composed, Vauto_composition_function)
12830 (Qauto_composition_function): New variables.
12831 (run_composition_function): Don't call
12832 compose-chars-after-function.
12833 (update_compositions): Clear `auto-composed' text property.
12834 (compose_chars_in_text): Delete this function.
12835 (syms_of_composite): Staticpro Qauto_composed and
12836 Qauto_composition_function. Declare Vauto_composition_function as
12837 a Lisp variable.
12838
12839 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
12840
12841 * xdisp.c (it_props): Add an entry for Qauto_composed.
12842 (handle_auto_composed_prop): New function.
12843
12844 * xselect.c (selection_data_to_lisp_data): Don't call
12845 compose_chars_in_text.
12846
128472008-02-01 Dave Love <fx@gnu.org>
12848
12849 * keyboard.c (read_char): Modify checking around use of
12850 Vkeyboard_translate_table.
12851
12852 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12853 and fix C types.
12854
128552008-02-01 Kenichi Handa <handa@m17n.org>
12856
12857 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
12858 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12859 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
12860 the case that the last byte is '\r' correctly.
12861 (decode_coding): Flush out the unprocessed data correctly.
12862 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
12863
128642008-02-01 Dave Love <fx@gnu.org>
12865
12866 * xterm.c (XTread_socket): Fix changes for defined keysyms.
12867 Add XK_ISO... case.
12868 (xaw_scroll_callback): Revert last change.
12869
128702008-02-01 Kenichi Handa <handa@m17n.org>
12871
12872 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
12873
128742008-02-01 Kenichi Handa <handa@m17n.org>
12875
12876 * xfaces.c (Vface_resizing_fonts): New variable.
12877 (struct font_name): New member `resizing_ratio'.
12878 (font_resizing_ratio): New function.
12879 (split_font_name): Set font->resizing_ratio.
12880 (better_font_p): Pay attention to font->resizing_ratio.
12881 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
12882 RESX, and RESY fields.
12883 (try_alternative_families): Try scalable fonts if
12884 Vscalable_fonts_allowed is not Qt.
12885 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
12886
128872008-02-01 Dave Love <fx@gnu.org>
12888
12889 * xterm.c (xaw_scroll_callback): Cast correctly.
12890
128912008-02-01 Dave Love <fx@gnu.org>
12892
12893 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
12894 (lispy_kana_keys): Comment out.
12895 (make_lispy_event) [XK_kana_A]: Comment out.
12896
12897 * xterm.c (xaw_scroll_callback): Cast call_data.
12898 (XTread_socket): Deal with ASCII keysyms.
12899 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
12900
129012008-02-01 Dave Love <fx@gnu.org>
12902
12903 * xterm.c (Vx_keysym_table): New.
12904 (syms_of_xterm): Initialize it.
12905 (XTread_socket): Use it.
12906 From head: Eliminate incorrect optimization that tried to avoid
12907 decoding the output of X*LookupString.
12908 (x_get_font_repertory): Delete charset declaration.
12909
129102008-02-01 Kenichi Handa <handa@m17n.org>
12911
12912 * coding.c (detect_coding_charset): If only ASCII bytes are found,
12913 return 0.
12914 (Fdefine_coding_system_internal): Setup
12915 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
12916
129172008-02-01 Dave Love <fx@gnu.org>
12918
12919 * coding.c (Fcheck_coding_system): Doc fix.
12920
12921 * editfns.c (Finsert_byte): Return a proper value.
12922
129232008-02-01 Kenichi Handa <handa@m17n.org>
12924
12925 * coding.c (decode_coding): Fix args to translate_chars. Pay
12926 attention to Vstandard_translation_table_for_decode.
12927 (encode_coding): Fix args to translate_chars. Pay attention to
12928 Vstandard_translation_table_for_encode.
12929
12930 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
12931 SINGLE_BYTE_CHAR_P.
12932
12933 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
12934 not by SINGLE_BYTE_CHAR_P.
12935
12936 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
12937 SINGLE_BYTE_CHAR_P.
12938
12939 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
12940 SINGLE_BYTE_CHAR_P.
12941
12942 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
12943 by SINGLE_BYTE_CHAR_P.
12944
12945 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
12946 SINGLE_BYTE_CHAR_P.
12947
129482008-02-01 Dave Love <fx@gnu.org>
12949
12950 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
12951
129522008-02-01 Dave Love <fx@gnu.org>
12953
12954 * fns.c (Flanginfo): Fix typo.
12955
12956 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
12957
129582008-02-01 Kenichi Handa <handa@m17n.org>
12959
12960 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
12961 (detect_coding_emacs_mule, detect_coding_iso_2022)
12962 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
12963 incomplete byte sequence. Don't update *mask when correctly detected.
12964 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
12965 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
12966 (detect_coding, detect_coding_system): Adjust for the changes above.
12967
129682008-02-01 Kenichi Handa <handa@m17n.org>
12969
12970 * character.c (char_string): Rename from
12971 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
12972 (string_char): Rename from string_char.
12973
12974 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
12975 if C is greater than MAX_3_BYTE_CHAR.
12976 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
12977 string_char instead of string_char_with_unification.
12978
129792008-02-01 Dave Love <fx@gnu.org>
12980
12981 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
12982
129832008-02-01 Kenichi Handa <handa@m17n.org>
12984
12985 * keymap.c (push_key_description): Pay attention to force_multibyte.
12986
12987 * regex.c (re_search_2): Fix for the case of unibyte buffer.
12988
129892008-02-01 Dave Love <fx@gnu.org>
12990
12991 * charset.c (define_charset_internal): Rename `supprementary'.
12992
12993 * Makefile.in (lisp, shortlisp): Remove latin-N.
12994
129952008-02-01 Dave Love <fx@gnu.org>
12996
12997 * xfns.c (x_window, x_window): Use use_xim.
12998
12999 * xterm.c (use_xim): Initialize.
13000 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13001 (x_term_init): Maybe set use_xim.
13002
13003 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13004
130052008-02-01 Kenichi Handa <handa@m17n.org>
13006
13007 * search.c (search_buffer): Fix case-fold-search of multibyte
13008 characters.
13009 (boyer_moore): Rename the last argument to char_high_bits.
13010
130112008-02-01 Kenichi Handa <handa@m17n.org>
13012
13013 * xdisp.c (display_string): Fix for the case of zero width glyph.
13014
13015 * xfns.c (x_set_font): Change the error message of the case that
13016 x_new_fontset returns Qt.
13017
13018 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13019 (Finternal_set_lisp_face_attribute): Use signal_error for the
13020 error of invalid fontset.
13021
13022 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13023 fontset, return Qt.
13024
130252008-02-01 Dave Love <fx@gnu.org>
13026
13027 * unexelf.c (unexec): Make .got handling not SGI-specific.
13028
13029 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13030
13031 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13032
13033 * keyboard.c (read_key_sequence): Fix type error.
13034
13035 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13036 type error.
13037
13038 * fontset.c (fontset_add): Return Lisp_Object.
13039
130402008-02-01 Dave Love <fx@gnu.org>
13041
13042 * charset.h (charset_ordered_list_tick): Declare extern.
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 The following changes (and some of 2008-02-01 changes of mine) are
13047 for handling syntax, category, and case conversion for unibyte
13048 characters by converting them to multibyte on the fly. With these
13049 changes, we don't have to setup syntax and case tables for unibyte
13050 characters in each language environment.
13051
13052 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13053 multibyte if necessary.
13054
13055 * bytecode.c (Fbyte_code): Likewise.
13056
13057 * character.h (LEADING_CODE_LATIN_1_MIN)
13058 (LEADING_CODE_LATIN_1_MAX): New macros.
13059 (unibyte_to_multibyte_table): Extern it.
13060 (unibyte_char_to_multibyte): New macro.
13061 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13062 (CHAR_LEADING_CODE): New macro.
13063 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13064
13065 * character.c (unibyte_to_multibyte_table): New variable.
13066 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13067 (multibyte_char_to_unibyte): If C is an eight-bit character,
13068 convert it to the corresponding byte value.
13069
13070 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13071 not 1, signals an error. Update the elements of
13072 unibyte_to_multibyte_table.
13073 (init_charset_once): Initialize unibyte_to_multibyte_table.
13074 (syms_of_charset): Define the charset `iso-8859-1'.
13075
13076 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13077 as is without converting it to unibyte. In a unibyte buffer,
13078 convert C to multibyte before checking the syntax.
13079
13080 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13081
13082 * minibuf.c (Fminibuffer_complete_word): Use the macro
13083 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13084
13085 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13086
13087 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13088 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13089 that is zero, convert an eight-bit char to multibyte.
13090 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13091 non-emacs case.
13092 (PATFETCH): Convert an eight-bit char to multibyte.
13093 (HANDLE_UNIBYTE_RANGE): New macro.
13094 (regex_compile): Setup the compiled pattern for multibyte chars
13095 even if the given regex string is unibyte. Use PATFETCH_RAW
13096 instead of PATFETCH in many places. To handle `charset'
13097 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13098 only for ASCII chars.
13099 (analyse_first) <exactn>: Simplify because the compiled pattern
13100 is multibyte.
13101 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13102 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13103 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13104 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13105 multibyte always 1.
13106 (re_search_2): In emacs, set the locale variable multibyte to 1,
13107 otherwise to 0. New local variable target_multibyte. Check it
13108 to decide the multibyteness of STR1 and STR2. If
13109 target_multibyte is zero, convert unibyte chars to multibyte
13110 before translating and checking fastmap.
13111 (TARGET_CHAR_AND_LENGTH): New macro.
13112 (re_match_2_internal): In emacs, set the locale variable multibyte
13113 to 1, otherwise to 0. New local variable target_multibyte. Check
13114 it to decide the multibyteness of STR1 and STR2. Use
13115 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13116 <charset, charset_not>: If multibyte is nonzero, check fastmap
13117 only for ASCII chars. Call bcmp_translate with
13118 target_multibyte, not with multibyte.
13119 <begline>: Declare the local variable C as `unsigned'.
13120 (bcmp_translate): Change the last arg name to target_multibyte.
13121
13122 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13123 the regexp pattern and the matching target. Set cp->buf.multibyte
13124 to the multibyteness of the regexp pattern. Set
13125 cp->but.target_multibyte to the multibyteness of the matching target.
13126 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13127 FETCH_STRING_CHAR_ADVANCE.
13128 (Freplace_match): Convert unibyte chars to multibyte.
13129
13130 * syntax.c (char_quoted, back_comment, scan_words)
13131 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13132 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13133 unibyte chars to multibyte.
13134 (skip_chars): Delete the arg syntaxp, and move the code for
13135 handling syntaxes to skip_syntaxes. Change callers.
13136 Fix the case that the multibyteness of STRING and the current
13137 buffer doesn't match.
13138 (skip_syntaxes): New function.
13139 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13140 SINGLE_BYTE_CHAR_P.
13141
131422008-02-01 Kenichi Handa <handa@m17n.org>
13143
13144 * xfaces.c (QCfontset): New variable.
13145 (LFACE_FONTSET): New macro.
13146 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13147 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13148 (Finternal_set_lisp_face_attribute)
13149 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13150 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13151 check also LFACE_FONTSET_INDEX.
13152 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13153 attrs[LFACE_FONT_INDEX].
13154 (syms_of_xfaces): Intern and staticpro QCfontset.
13155
13156 * dispextern.h (enum lface_attribute_index): New member
13157 LFACE_FONTSET_INDEX.
13158
13159 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13160
131612008-02-01 Kenichi Handa <handa@m17n.org>
13162
13163 * coding.c (coding_set_destination): Fix coding->destination for
13164 the case converting a region.
13165 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13166 (encode_coding_object): Fix coding->dst_pos and
13167 coding->dst_pos_byte for the case converting a region.
13168
13169 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13170
13171 * character.h (BYTE8_STRING): New macro.
13172
13173 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13174
131752008-02-01 Kenichi Handa <handa@m17n.org>
13176
13177 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13178 characters by octal form.
13179
13180 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13181
13182 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13183 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13184 _fetch_multibyte_char_len.
13185 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13186
13187 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13188
13189 * casefiddle.c (casify_object): Simplify. Handle the case that
13190 the case conversion change the byte length.
13191 (casify_region): Likewise.
13192
13193 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13194
13195 * character.c (_fetch_multibyte_char_len): Delete this variable.
13196 (syms_of_character): Setup Vprintable_chars.
13197
13198 * editfns.c (Fchar_equal): Fix for the unibyte case.
13199 (Finsert_byte): New function.
13200 (syms_of_editfns): Defsubr it.
13201
13202 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13203 of direct code 0x3ffff.
13204
13205 * search.c (Freplace_match): Fix for the unibyte case.
13206
132072008-02-01 Kenichi Handa <handa@m17n.org>
13208
13209 * lread.c (safe_to_load_p): Fix the logic.
13210
13211 * syntax.c (scan_words): Don't treat characters belonging to
13212 different scripts as constituting a word.
13213
13214 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13215
13216 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13217
13218 * emacs.c (main): In the case of --unibyte, instead of aborting on
13219 finding non-empty buffer, make it unibyte.
13220
132212008-02-01 Kenichi Handa <handa@m17n.org>
13222
13223 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13224 to create a fontset.
13225
132262008-02-01 Dave Love <fx@gnu.org>
13227
13228 * character.c (Funibyte_char_to_multibyte): Doc fix.
13229
13230 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13231
132322008-02-01 Kenichi Handa <handa@m17n.org>
13233
13234 * fontset.c (fontset_add): Make the type `int'.
13235 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13236
13237 * character.c (unibyte_char_to_multibyte)
13238 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13239 charset_unibyte, not charset_primary.
13240
13241 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13242
13243 * charset.c (charset_unibyte): Rename from charset_primary.
13244 (Funibyte_charset): Rename from Fprimary_charset.
13245 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13246 (syms_of_charset): Adjust for the above changes.
13247
13248 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13249 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13250 it->multibyte_p is zero.
13251
13252 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13253 Delete extern.
13254
132552008-02-01 Kenichi Handa <handa@m17n.org>
13256
13257 * coding.c (Fdefine_coding_system_internal): Fix category setting
13258 for a coding system of type iso-2022.
13259
132602008-02-01 Kenichi Handa <handa@m17n.org>
13261
13262 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13263
132642008-02-01 Kenichi Handa <handa@m17n.org>
13265
13266 * syntax.c (Vnext_word_boundary_function_table): New variable.
13267 (next-word-boundary-function-table): Declare it as a Lisp variable
13268 in syms_of_syntax.
13269 (scan_words): Call functions in Vnext_word_boundary_function_table
13270 if any.
13271
13272 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13273
13274 * fontset.c (fs_load_font): If fontp->charset is not negative,
13275 return fontp without setting its members.
13276
132772008-02-01 Dave Love <fx@gnu.org>
13278
13279 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13280
13281 * m/sparc.h (HAVE_ALLOCA): Delete.
13282
13283 * s/irix6-5.h: Don't include strings.h.
13284 (bcopy, bzero, bcmp): Don't undef.
13285
13286 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13287
13288 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13289 (TIOCSIGSEND): Don't test IRIX6.
13290 (bcopy, bzero, bcmp): Define conditionally.
13291
132922008-02-01 Kenichi Handa <handa@m17n.org>
13293
13294 * buffer.c (Qas, Qmake, Qto): New variables.
13295 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13296 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13297
13298 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13299 we are inserting a process output into a multibyte buffer.
13300
13301 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13302 multibyte_char_to_unibyte.
13303
13304 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13305 by the primary charset, make it eight-bit char.
13306 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13307
13308 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13309 (charset_8_bit__control, charset_8_bit_graphic)
13310 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13311 (define_charset_internal): New function.
13312 (syms_of_charset): Call define_charset_internal for pre-defined
13313 charsets.
13314
13315 * charset.h (charset_8_bit): Extern it.
13316
13317 * coding.c (make_conversion_work_buffer): Adjust for the change
13318 of Fset_buffer_multibyte.
13319 (encode_coding_raw_text): Increment p0 in the loop.
13320
13321 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13322
13323 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13324 for the change of Fset_buffer_multibyte.
13325
13326 * fns.c (Fstring_to_multibyte): New function.
13327 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13328
133292008-02-01 Dave Love <fx@gnu.org>
13330
13331 * xfns.c (x_put_x_image): Declare args.
13332
13333 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13334 (try_font_list): Declare an arg.
13335
13336 * xdisp.c (message2_nolog, set_message): Declare an arg.
13337
13338 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13339
13340 * syntax.c (scan_sexps_forward): Declare an arg.
13341
13342 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13343 Declare an arg.
13344
13345 * lisp.h (Fnew_fontset): Declare.
13346
13347 * keymap.c (push_key_description): Call CHARACTERP correctly.
13348
13349 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13350 (face_for_char): Delete unused vars.
13351 (Fset_fontset_font): Doc fix. Delete unused vars.
13352
13353 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13354
13355 * composite.c (update_compositions): Declare arg.
13356
13357 * cm.c (calccost, cmgoto): Declare args.
13358
13359 * charset.c: Remove `emacs' conditional. Doc fixes.
13360 (map_char_table_for_charset): Declare.
13361
13362 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13363
13364 * ccl.c: Remove `emacs' conditional.
13365
133662008-02-01 Kenichi Handa <handa@m17n.org>
13367
13368 The following changes are to allow specifying multiple font
13369 patterns for a character range (specified by script or charset).
13370
13371 * Makefile.in (abbrev.o): Depend on syntax.h.
13372 (xfaces.o): Depend on charset.h.
13373
13374 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13375 SINGLE_BYTE_CHAR_P.
13376
13377 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13378
13379 * character.h (Vchar_script_table): Extern it.
13380
13381 * character.c (Vscript_alist): Delete.
13382 (Vchar_script_table, Qchar_script_table): New variable.
13383 (syms_of_character): Declare Vchar_script_table as a lisp variable
13384 and initialize it.
13385
13386 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13387 have property char-table-extra-slots, make no extra slot.
13388
13389 * dispextern.h (struct face): Delete member `charset'.
13390 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13391 SINGLE_BYTE_CHAR_P.
13392 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13393 Add prototypes.
13394 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13395 (generate_ascii_font_name): Rename from generate_ascii_font.
13396
13397 * fontset.h (get_font_repertory_func): New prototype.
13398 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13399 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13400
13401 * fontset.c (Qprepend, Qappend): New variables.
13402 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13403 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13404 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13405 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13406 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13407 (load_font_get_repertory): New functions.
13408 (fontset_set): Delete.
13409 (fontset_face): New arg FACE. Return face ID, not face.
13410 Complete re-write to handle new fontset structure. Change caller.
13411 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13412 (face_for_char): Don't call lookup_face.
13413 (make_fontset_for_ascii_face): New arg FACE.
13414 (fs_load_font): New arg CHARSET_ID. Don't check
13415 Vfont_encoding_alist here.
13416 (find_font_encoding): New function.
13417 (list_fontsets): Use STRINGP, not ! NILP.
13418 (accumulate_script_ranges): New function.
13419 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13420 re-written to handle new fontset structure.
13421 (Ffontset_font): Return a copy of element.
13422 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13423 docstring of font-encoding-alist.
13424
13425 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13426 (Fset_fotset_font): Fix arguments to 5.
13427
13428 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13429
13430 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13431 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13432 (highlight_trailing_whitespace): Adjust for the change of
13433 lookup_named_face.
13434
13435 * xfaces.c: Include charset.h.
13436 (load_face_font): Delete argument C. Change caller.
13437 (generate_ascii_font_name): Rename from generate_ascii_font.
13438 (font_name_registry): New function.
13439 (cache_face): Store ascii faces before non-ascii faces in buckets.
13440 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13441 Lookup only ascii faces.
13442 (lookup_non_ascii_face): New function.
13443 (lookup_named_face): Delete argument C. Change caller.
13444 (lookup_derived_face): Delete argument C. Change caller.
13445 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13446 a string, just call font_list with it.
13447 (choose_face_font): Delete arguments FACE and C. New arg
13448 FONT_SPEC. Change caller.
13449 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13450 Change caller.
13451 (realize_non_ascii_face): New function.
13452 (realize_x_face): Call load_face_font here.
13453 (realize_tty_face): Delete argument C. Change caller.
13454 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13455 get a face ID.
13456 (dump_realized_face): Don't print charset of FACE.
13457
13458 * xfns.c (x_set_font): Always call x_new_fontset and
13459 store_frame_parameter.
13460 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13461 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13462
13463 * xterm.h (x_get_font_repertory): Extern it.
13464
13465 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13466 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13467 it->multibyte_p is zero.
13468 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13469 (x_new_fontset): If FONTSETNAME doesn't match any existing
13470 fontsets, create a new one.
13471 (x_get_font_repertory): New function.
13472
134732008-02-01 Kenichi Handa <handa@m17n.org>
13474
13475 * coding.c (Ffind_coding_systems_region_internal): Detect an
13476 ASCII only string correctly.
13477
13478 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13479 version is 0.
13480
134812008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * lread.c: Include "coding.h".
13484 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13485 (load_each_byte, unread_char): New variables.
13486 (readchar_backlog): Delete.
13487 (readchar): Return a character unless load_each_byte is nonzero.
13488 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13489 cons. If unread_char is not -1, simply return it.
13490 (unreadchar): Handle the case that readcharfun is
13491 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13492 (read_multibyte): Delete.
13493 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13494 (read_emacs_mule_char): New functions.
13495 (Fload): Even if the file doesn't have the extension ".elc", if
13496 safe_to_load_p returns a positive version number, assume that the
13497 file contains bytecompiled code. If the version is less than 22,
13498 load the file while decoding multibyte sequences by emacs-mule.
13499 (readevalloop): Don't use readchar_backlog.
13500 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13501 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13502 (read_escape): Delete the arg BYTEREP.
13503 (read1): Set load_each_byte to 1 temporarily while handling
13504 #@NUMBER. Don't call read_multibyte.
13505 (read_vector): Call Fread with a cons. If readcharfun is
13506 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13507 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13508 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13509 and Qload_force_doc_strings.
13510
135112008-02-01 Kenichi Handa <handa@m17n.org>
13512
13513 * xdisp.c (face_before_or_after_it_pos): Call
13514 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13515
135162008-02-01 Kenichi Handa <handa@m17n.org>
13517
13518 * character.h (TRAILING_CODE_P): New macro.
13519 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13520 (string_char_with_unification): Fix prototype.
13521 (Vscript_alist): Extern it.
13522
13523 * character.c (Vscript_alist): New variable.
13524 (string_char_with_unification, str_as_unibyte)
13525 (string_escape_byte8): Add `const' to local variables.
13526 (syms_of_character): Declare script-alist as a Lisp variable.
13527
13528 * charset.h (Vcharset_ordered_list): Extern it.
13529 (charset_ordered_list_tick): Extern it.
13530 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13531 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13532 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13533 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13534 (Funify_charset): Adjust for the change of Funify_charset.
13535
13536 * charset.c (charset_ordered_list_tick): New variable.
13537 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13538 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13539 deunify intead of unify a charset.
13540 (string_xstring_p): Add `const' to local variables.
13541 (find_charsets_in_text): Add `const' to arguments and local variables.
13542 (encode_char): Adjust for the change of Funify_charset. Fix
13543 detecting of invalid code.
13544 (Fset_charset_priority): Increment charset_ordered_list_tick.
13545 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13546 and TO_CODE.
13547
13548 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13549 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13550 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13551 (decode_coding_ccl, consume_chars)
13552 (Ffind_coding_systems_region_internal)
13553 (Fcheck_coding_systems_region): Add `const' to local variables.
13554
13555 * print.c (print_object): Use octal form for printing the
13556 contents of a bool vector.
13557
135582008-02-01 Dave Love <fx@gnu.org>
13559
13560 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13561 <version == 20>: Refuse to load.
13562
135632008-02-01 Dave Love <fx@gnu.org>
13564
13565 * fns.c: Move coding.h.
13566 (Qcodeset, Qdays, Qmonths): New.
13567 (concat): Use CHARACTERP instead of INTEGERP.
13568 (Flocale_codeset): Delete.
13569 (Flanginfo): New function.
13570 (syms_of_fns): Change accordingly.
13571
13572 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13573
135742008-02-01 Dave Love <fx@gnu.org>
13575
13576 * casetab.c (init_casetab_once, init_casetab_once): Fix
13577 CHAR_TABLE_SET call.
13578
13579 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13580
13581 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13582
13583 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13584 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13585 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13586
13587 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13588
13589 * coding.c (ENCODE_DESIGNATION, decode_eol)
13590 (make_conversion_work_buffer, code_conversion_restore)
13591 (Fdefine_coding_system_internal): Convert Lisp types.
13592 (code_conversion_restore): Use EQ, not ==.
13593 (Fencode_coding_string): Fix code_convert_string call.
13594
13595 * coding.h (code_convert_region): Fix prototype.
13596
13597 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13598
13599 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13600 (Ffontset_info): Convert Lisp types.
13601
13602 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13603
13604 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13605
13606 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13607
13608 * chartab.c: Include "...h", not <...h> in some cases.
13609
13610 * callproc.c (Fcall_process): Remove unused variables.
13611
136122008-02-01 Dave Love <fx@gnu.org>
13613
13614 * coding.c (Fset_coding_system_priority): Allow null arg list.
13615
136162008-02-01 Dave Love <fx@gnu.org>
13617
13618 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13619 (Fself_insert_and_exit): Use CHARACTERP.
13620
13621 * callproc.c (Fcall_process): Remove unused vars.
13622
13623 * xterm.c (XTread_socket): Add extra dead keysyms.
13624
13625 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13626
13627 * dispextern.h: Remove prototypes for redraw_frame,
13628 redraw_garbaged_frames.
13629
13630 * cmds.c (Fself_insert_command): Use CHARACTERP.
13631
13632 * chartab.c (make_sub_char_table): Remove unused var.
13633 (Fset_char_table_default, Fmap_char_table): Doc fix.
13634
13635 * keymap.c (access_keymap): Remove generic char code.
13636 (push_key_description): Use CHARACTERP.
13637
136382008-02-01 Dave Love <fx@gnu.org>
13639
13640 * charset.c: Doc fixes.
13641 (Funify_charset): Extra checking.
13642
136432008-02-01 Dave Love <fx@gnu.org>
13644
13645 * lread.c: Remove some unused variables.
13646 (safe_to_load_p): If safe, return the magic number version byte.
13647 (Fload): Maybe use load-with-code-conversion.
13648
136492008-02-01 Kenichi Handa <handa@m17n.org>
13650
13651 * category.c (Fmodify_category_entry): Don't modify the contents
13652 of category_set for characters out of the range. Avoid
13653 unnecessary modification.
13654
13655 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13656 Vchar_unify_table. The default value of the table is now nil.
13657
13658 * character.c (syms_of_character): Setup Vchar_width_table for
13659 eight-bit-control and raw-byte chars.
13660
13661 * charset.h (enum define_charset_arg_index): Delete
13662 charset_arg_parents and add charset_arg_subset and
13663 charset_arg_superset.
13664 (enum charset_attr_index): Delete charset_parents and add
13665 charset_subset and charset_superset.
13666 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13667 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13668 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13669 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13670 (CHARSET_SUPERSET): New macros.
13671 (charset_work): Extern it.
13672 (ENCODE_CHAR): Use charset_work.
13673 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13674 (map_charset_chars): Extern it.
13675
13676 * charset.c (load_charset_map): Set the default value of encoder
13677 and deunifier char-tables to nil.
13678 (map_charset_chars): Change argument. Change callers. Use
13679 map_char_table_for_charset instead of map_char_table.
13680 (Fmap_charset_chars): New optional args from_code and to_code.
13681 (Fdefine_charset_internal): Adjust for the change of
13682 `define-charset' (:parents -> :subset or :superset).
13683 (charset_work): New variable.
13684 (encode_char, syms_of_charset): Adjust for the change of
13685 Fdefine_charset_internal.
13686 (Ffind_charset_string): Setup the vector `charsets' correctly.
13687
13688 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13689 the previous change.
13690 (char_table_ref_and_range): Adjust for the above change.
13691 (map_sub_char_table_for_charset): New function.
13692 (map_char_table_for_charset): New function.
13693
13694 * keymap.c (describe_vector): Handle a char-table directly here.
13695 (describe_char_table): Delete.
13696
13697 * lisp.h (map_charset_chars): Delete.
13698
136992008-02-01 Dave Love <fx@gnu.org>
13700
13701 * fns.c (count_combining): Comment out (unused).
13702 (Flocale_codeset): New.
13703 (syms_of_fns): Defsubr it.
13704
13705 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13706 (size_t): Remove.
13707
137082008-02-01 Dave Love <fx@gnu.org>
13709
13710 * Makefile.in (chartab.o): Depend on charset.h.
13711
137122008-02-01 Kenichi Handa <handa@m17n.org>
13713
13714 * character.c (syms_of_character): Set the default value of
13715 Vprintable_chars to Qnil.
13716
137172008-02-01 Dave Love <fx@gnu.org>
13718
13719 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13720
137212008-02-01 Kenichi Handa <handa@m17n.org>
13722
13723 * charset.c (load_charset_map): Handle the case that from < to
13724 correctly.
13725
13726 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13727 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
13728 Pay attention to raw-8-bit chars.
13729
137302008-02-01 Kenichi Handa <handa@m17n.org>
13731
13732 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
13733 It is not bytecompiled now.
13734
13735 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
13736 (charset_jisx0208): New variables.
13737 (Fdefine_charset_internal): Setup them if appropriate.
13738 (init_charset_once): Initialize them to -1.
13739
13740 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
13741 (charset_jisx0208): Extern them.
13742
13743 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
13744 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
13745 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
13746 (setup_iso_safe_charsets): Fix arguments to Fassq.
13747 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
13748 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
13749 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
13750 (encode_coding_iso_2022): Change the 1st arg to
13751 ENCODE_ISO_CHARACTER to a variable.
13752
137532008-02-01 Kenichi Handa <handa@m17n.org>
13754
13755 * charset.h (enum define_charset_arg_index): New enums
13756 charset_arg_min_code and charset_arg_max_code.
13757 (struct charset): New member char_index_offset.
13758
13759 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
13760 Take charset->char_index_offset into account.
13761 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
13762 args[charset_arg_max_code]. Setup charset.char_index_offset.
13763 (syms_of_charset): Fix args to Fdefine_charset_internal.
13764
137652008-02-01 Dave Love <fx@gnu.org>
13766
13767 * coding.c (decode_coding_utf_8): Reject overlong sequences.
13768
137692008-02-01 Dave Love <fx@gnu.org>
13770
13771 * coding.c: Doc fixes.
13772 (Fcoding_system_aliases): Fix return value.
13773 (Qmac): Remove (duplicated) definition.
13774
137752008-02-01 Dave Love <fx@gnu.org>
13776
13777 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
13778 functions.
13779
13780 * character.c (Fstring): Doc fix.
13781
13782 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
13783
13784 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
13785 ids.
13786 (font-encoding-alist): Doc fix.
13787
137882008-02-01 Dave Love <fx@gnu.org>
13789
13790 * term.c (costs_set): Declare static, non-initialized for pcc.
13791 (encode_terminal_code): Remove unused var.
13792
13793 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13794 for K&R.
13795
13796 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
13797
13798 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
13799 (suffixes): Move out of make_subsidiaries for K&R.
13800
13801 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
13802
13803 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
13804
138052008-02-01 Dave Love <fx@gnu.org>
13806
13807 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
13808
13809 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
13810
138112008-02-01 Yong Lu <lyongu@asia-infonet.com>
13812
13813 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
13814
13815 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
13816
138172008-02-01 Kenichi Handa <handa@m17n.org>
13818
13819 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
13820 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
13821
138222008-02-01 Kenichi Handa <handa@m17n.org>
13823
13824 * coding.c (decode_coding_charset): Adjust for the change of
13825 Fdefine_coding_system_internal.
13826 (Fdefine_coding_system_internal): For a coding system of
13827 `charset' type, store a list of charset IDs in
13828 `charset_attr_charset_valids' element of coding attributes.
13829
138302008-02-01 Kenichi Handa <handa@m17n.org>
13831
13832 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
13833 (emacs_mule_char): New arg src. Delete arg `composition'. Change
13834 caller. Handle 2-byte and 3-byte charsets correctly.
13835 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
13836 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
13837 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
13838 (DECODE_EMACS_MULE_21_COMPOSITION): Call
13839 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
13840 sequence.
13841 (decode_coding_emacs_mule): Handle composition correctly. Rewind
13842 `src' and `consumed_chars' correctly before calling emacs_mule_char.
13843 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
13844 and alt&rule composition.
13845 (decode_coding_iso_2022): Handle composition correctly.
13846 (init_coding_once): Setup emacs_mule_bytes for private charsets.
13847
13848 * charset.c (Fdefine_charset_internal): Fix bug for the case of
13849 re-defining a charset. If the charset has :emacs-mule-id, setup
13850 emacs_mule_bytes.
13851 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
13852
138532008-02-01 Kenichi Handa <handa@m17n.org>
13854
13855 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
13856 (encode_coding_big5, encode_coding_charset): If coding requires safe
13857 encoding, produce a character specified by
13858 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13859
138602008-02-01 Dave Love <fx@gnu.org>
13861
13862 * xterm.c (XSetIMValues): Declare.
13863
13864 * process.c: Conditionally include sys/wait.h, pty.h.
13865
13866 * print.c (print_object): Fix print format for 64-bit systems.
13867
13868 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
13869
13870 * buffer.c (emacs_strerror): Declare.
13871
13872 * fontset.c (Fclear_face_cache): Declare.
13873 (accumulate_font_info): Comment-out (unused).
13874 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
13875 variables.
13876
13877 * character.h (string_escape_byte8): Declare.
13878
13879 * charset.c (load_charset_map, load_charset_map_from_file): Remove
13880 unused vars.
13881 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
13882 (Fmap_charset_chars): Doc fix.
13883
13884 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
13885 (Fset_coding_system_priority, Fset_coding_system_priority)
13886 (Fdefine_coding_system_internal): Doc fix.
13887
138882008-02-01 Dave Love <fx@gnu.org>
13889
13890 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
13891
138922008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * character.c (string_escape_byte8): Make multibyte string with
13895 correct size.
13896
13897 * charset.c (Fmake_char): Delete unnecessary code.
13898
138992008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * xfns.c (x_encode_text): Allocate coding.destination here, and
13902 call encode_coding_object with dst_object Qnil.
13903
13904 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
13905 multibyte form correctly.
13906
13907 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
13908 against Vfont_encoding_alist.
13909
13910 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
13911 handling of charset list.
13912 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
13913 (decode_coding_object): Move point to coding->dst_pos before
13914 calling post-read-conversion function.
13915 (encode_coding_object): Give correct arguments to
13916 pre-write-conversion. Ignore the return value of
13917 pre-write-conversion function. Pay attention to the case that
13918 pre-write-conversion changes the current buffer. If dst_object is
13919 Qt, even if coding->src_bytes is zero, allocate at least one byte
13920 to coding->destination.
13921
13922 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
13923
13924 * charset.c (Fmake_char): Make it more backward compatible.
13925 (Fmap_charset_chars): Fix docstring.
13926
139272008-02-01 Dave Love <fx@gnu.org>
13928
13929 * coding.c: Doc fixes.
13930 (Fdefine_coding_system_alias): Use names, not symbols, in
13931 coding-system-alist.
13932
139332008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
13936 of calling free_realized_face.
13937
139382008-02-01 Yong Lu <lyongu@asia-infonet.com>
13939
13940 * charset.c (read_hex): Don't treat SPC as a comment starter.
13941 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
13942 (Fdecode_char): Fix typo.
13943
139442008-02-01 Kenichi Handa <handa@m17n.org>
13945
13946 * charset.h (struct charset): New member `code_space_mask'.
13947
13948 * coding.c (coding_set_source): Delete the local variable beg_byte.
13949 (encode_coding_charset, Fdefine_coding_system_internal):
13950 Delete the local variable charset.
13951 (Fdefine_coding_system_internal): Setup
13952 attrs[coding_attr_charset_valids] correctly.
13953
13954 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
13955 member to check if CODE is valid or not.
13956 (Fdefine_charset_internal): Initialize `code_space_mask' member.
13957 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
13958 is within the range of charset->min_code and carset->max_code.
13959
139602008-02-01 Dave Love <fx@gnu.org>
13961
13962 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
13963
13964 * dispextern.h (generate_ascii_font): Fix return type.
13965
13966 * xfaces.c (generate_ascii_font): Fix arg declaration.
13967
13968 * coding.c (coding_inherit_eol_type)
13969 (Fset_terminal_coding_system_internal)
13970 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
13971
139722008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * coding.c (decode_coding_charset, encode_coding_charset): Handle
13975 multiple charsets correctly.
13976
139772008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * search.c (boyer_moore): Fix handling of multibyte character
13980 translation.
13981
13982 * xdisp.c (display_mode_element): When the variable `elt' is
13983 changed, update `this' and `lisp_string'.
13984
139852008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
13988
13989 * callproc.c (Fcall_process): Be sure to give the current buffer
13990 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
13991
13992 * charset.c (struct charset_map_entries): New struct.
13993 (load_charset_map): Rename from parse_charset_map. New args
13994 entries and n_entries. Change caller.
13995 (load_charset_map_from_file): Rename from load_charset_map.
13996 Change caller. New arg control_flag. Call load_charset_map at
13997 the tail.
13998 (load_charset_map_from_vector): New function.
13999 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14000 (encode_char): If the charset is compact, change a character index
14001 to a code point.
14002
14003 * coding.c (coding_alloc_by_making_gap): Check the case that the
14004 source and destination are the same correctly.
14005 (decode_coding_raw_text): Set coding->consumed_char and
14006 coding->consumed to 0.
14007 (produce_chars): If coding->chars_at_source is nonzero, update
14008 coding->consumed_char and coding->consumed before calling
14009 alloc_destination.
14010 (Fdefine_coding_system_alias): Register ALIAS in
14011 Vcoding_system_alist.
14012 (syms_of_coding): Define `no-conversion' coding system at the tail.
14013
14014 * fileio.c (Finsert_file_contents): Set coding_system instead of
14015 val. If the current buffer is multibyte, always call
14016 decode_coding_gap.
14017
14018 * xfaces.c (try_font_list): Give higher priority to fontset's
14019 family than face's family.
14020
140212008-02-01 Kenichi Handa <handa@m17n.org>
14022
14023 * callproc.c (Fcall_process): Be sure to give the current buffer
14024 to decode_coding_c_string.
14025
14026 * xfaces.c (try_font_list): Give a family specified in a fontset
14027 higher priority than a family specified in a face.
14028
140292008-02-01 Kenichi Handa <handa@m17n.org>
14030
14031 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14032 Fix arguments to insert_from_buffer.
14033
14034 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14035
140362008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14039 (decode_coding_gap): Set coding->dst_multibyte correctly.
14040
140412008-02-01 Kenichi Handa <handa@m17n.org>
14042
14043 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14044 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14045 (encode_coding_utf_16): Substitute coding->default_char for
14046 non-Unicode characters.
14047 (decode_coding): Don't call record_insert here.
14048 (setup_coding_system): Initialize `surrogate' of
14049 coding->spec.utf_16 to 0.
14050 (EMIT_ONE_BYTE): Fix for multibyte case.
14051
14052 * insdel.c (insert_from_gap): Call record_insert.
14053
140542008-02-01 Kenichi Handa <handa@m17n.org>
14055
14056 * casefiddle.c (casify_region): Fix multibyte case.
14057
14058 * character.c (c_string_width): Add return type `int'.
14059 (char_string_with_unification): Delete arg ADVANCED.
14060
14061 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14062 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14063 (CHAR_STRING_ADVANCE): Make it do-while statement.
14064
14065 * chartab.c (sub_char_table_set_range): Optimize for the case
14066 DEPTH == 3. Add workaround code for a GCC optimization bug.
14067
14068 * charset.c (parse_charset_map): Remove an unused variable.
14069
14070 * coding.c: Delete unused variables.
14071
14072 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14073 earlier. If inserted is zero and the coding system doesn't
14074 require flushing, don't call decode_coding_gap.
14075
14076 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14077
140782008-02-01 Kenichi Handa <handa@m17n.org>
14079
14080 The following changes are for using Unicode as an internal
14081 character model, and use UTF-8 format for buffer/string
14082 representation.
14083
14084 * .gdbinit (xchartable): Adjust for the change of char table structure.
14085 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14086
14087 * Makefile.in (obj): Add character.o and chartab.o.
14088 (lisp, shortlisp): Remove utf-8.elc.
14089 (*.o): For many files, change dependency on charset.h to
14090 character.h, and add dependency on character.h.
14091 (character.o, chartab.o): New targets.
14092
14093 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14094 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14095 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14096 of "charset.h".
14097
14098 * dired.c, filelock.c: Include "character.h".
14099
14100 * alloc.c: Include "character.h" instead of "charset.h".
14101 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14102 (syms_of_alloc): Remove defsubr for Smake_char_table.
14103
14104 * buffer.c: Include "character.h" instead of "charset.h", don't
14105 include "coding.h".
14106 (Fset_buffer_multibyte): Adjust for UTF-8.
14107
14108 * buffer.h: EXFUN Fbuffer_live_p.
14109
14110 * callproc.c: Include "character.h" instead of "charset.h".
14111 (Fcall_process): Big change for the new code-conversion APIs.
14112
14113 * casetab.c: Include "character.h" instead of "charset.h".
14114 (set_canon, set_identity, shuffle): Adjust for the new
14115 map_char_table spec.
14116 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14117 accessing the char table structure.
14118
14119 * chartab.c: New file that implements char table.
14120
14121 * category.c: Include "character.h".
14122 (copy_category_entry): New function.
14123 (copy_category_table): Call map_char_table and copy_category_entry.
14124 (Fmake_category_table): Initialize all top-level slots.
14125 (char_category_set): New function.
14126 (modify_lower_category_set): Delete.
14127 (Fmodify_category_entry): Call char_table_ref_and_range.
14128
14129 * category.h (CATEGORY_SET): Just call char_category_set.
14130
14131 * ccl.c: Include "character.h".
14132 (Qccl, Qcclp): New variables.
14133 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14134 it's less than 256.
14135 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14136 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14137 and DST type.
14138 (ccl_driver): Change types of argument, adjust code accordingly.
14139 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14140 ccl_driver.
14141 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14142
14143 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14144 New members src_multibyte, dst_multibyte, consumed, and produced.
14145 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14146 (CODING_SPEC_CCL_PROGRAM): New macro.
14147 (ccl_driver): Update prototype.
14148 (Qccl, Qcclp, Fccl_program_p): Extern them.
14149 (CHECK_CCL_PROGRAM): New macro.
14150
14151 * character.c, character.h, chartab.c: New files.
14152
14153 * charset.c: Mostly re-written. Move character and multibyte sequence
14154 handling codes to character.c.
14155
14156 * charset.h: Mostly re-written. Move character and multibyte sequence
14157 handling codes to character.h.
14158
14159 * coding.c, coding.h: Mostly re-written.
14160
14161 * composite.c: Include "character.h" instead of "charset.h".
14162 (CHAR_WIDTH): Move to character.h.
14163 (HASH_KEY, HASH_VALUE): Delete.
14164
14165 * composite.h (enum composition_method): Change order of enumeration
14166 symbols.
14167
14168 * data.c: Include "character.h" instead of "charset.h".
14169 (Faref): Call CHAR_TABLE_REF for a char table.
14170 (Faset): Call CHAR_TABLE_SET for a char table.
14171
14172 * dispextern.h (free_realized_face, check_face_attribytes)
14173 (generate_ascii_font): Extern them.
14174 (free_realized_multibyte_face): Delete extern.
14175
14176 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14177 table structure.
14178
14179 * editfns.c: Include "character.h" instead of "charset.h".
14180 (Fchar_to_string): Always call CHAR_STRING.
14181
14182 * emacs.c (main): Call init_charset_once, init_charset,
14183 syms_of_chartab, and syms_of_character.
14184
14185 * fileio.c: Include "character.h" instead of "charset.h".
14186 (Finsert_file_contents): Big change for the new code-conversion API.
14187 (choose_write_coding_system, Fwrite_region): Likewise.
14188 (build_annotations_2): Delete.
14189 (e_write): Big change for the new code-conversion API.
14190
14191 * fns.c: Include "character.h" instead of "charset.h".
14192 (copy_sub_char_table): Move to chartab.c.
14193 (Fcopy_sequence): Call copy_char_table for a char table.
14194 (concat): Delete codes calling count_multibyte.
14195 (string_char_to_byte, string_byte_to_char): Adjust for the new
14196 multibyte form.
14197 (internal_equal): Adjust for the change of char table structure.
14198 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14199 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14200 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14201 (char_table_translate, optimize_sub_char_table)
14202 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14203 chartab.c.
14204 (char_table_ref_and_index): Delete.
14205 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14206 (Fmd5): Call preferred_coding_system instead of accessing
14207 Vcoding_category_list. Adjust for the new code-conversion API.
14208 (syms_of_fns): Move defsubr for char table related functions to
14209 chartab.c.
14210
14211 * fontset.c: Mostly re-written.
14212
14213 * fontset.h (struct font_info): Change type of the member encoding_type.
14214 (enum FONT_SPEC_INDEX): New enum.
14215 (fontset_font_pattern, fs_load_font): Update prototype.
14216 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14217
14218 * indent.c: Include "character.h" instead of "charset.h".
14219 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14220
14221 * insdel.c: Include "character.h" instead of "charset.h".
14222 (copy_text): Don't refer to Vnonascii_translation_table.
14223 (insert_from_gap): New function.
14224
14225 * keyboard.c: Include "character.h" instead of "charset.h".
14226 (command_loop_1): Never call direct_output_forward_char before
14227 a non-ASCII character.
14228 (read_char): If Vkeyboard_translate_table is a char table, always
14229 translate a character.
14230
14231 * keymap.c: Include "character.h".
14232 (store_in_keymap): Handle the case that IDX is a cons.
14233 (Fdefine_key): Handle the case that KEY is a cons and the car part
14234 is also a cons (range).
14235 (push_key_description): Adjust for the new character code.
14236 (describe_vector): Call describe_char_table for a char table.
14237 (describe_char_table): New function.
14238
14239 * keymap.h (describe_char_table): Extern it.
14240
14241 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14242 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14243 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14244 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14245 Delete.
14246 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14247 structure.
14248 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14249 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14250 (CHARTAB_SIZE_BITS_3): New macros.
14251 (chartab_size): Extern it.
14252 (struct Lisp_Char_Table): Re-design.
14253 (struct Lisp_Sub_Char_Table): New structure.
14254 (HASH_KEY, HASH_VALUE): Move from fns.c.
14255 (CHARACTERBITS): Define as 22.
14256 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14257 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14258 (GC_SUB_CHAR_TABLE_P): New macro.
14259 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14260 (code_convert_string_norecord): Deleted extern.
14261 (init_character_once, syms_of_character, init_charset)
14262 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14263
14264 * lread.c: Include "character.h".
14265 (read_multibyte): New arg NBYTES.
14266 (read_escape): Change the meaning of returned *BYTEREP.
14267 (to_multibyte): Delete.
14268 (read1): Adjust the handling of char table and string.
14269
14270 * print.c: Include "character.h" instead of "charset.h".
14271 (print_string): Convert 8-bit raw bytes to octal form by
14272 string_escape_byte8.
14273 (print_object): Adjust for the new multibyte form. Print 8-bit
14274 raw bytes always in octal form. Handle sub char table correctly.
14275
14276 * process.c: Include "character.h" instead of "charset.h".
14277 (read_process_output, send_process): Adjust for the new
14278 code-conversion API.
14279
14280 * puresize.h (BASE_PURESIZE): Increase.
14281
14282 * regex.c: Include "character.h" instead of "charset.h".
14283 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14284 (regex_compile): Accept a range whose starting and ending
14285 character have different leading bytes.
14286 (analyse_first): Adjust for the above change.
14287
14288 * search.c: Include "character.h" instead of "charset.h".
14289 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14290 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14291
14292 * syntax.c: Include "character.h" instead of "charset.h".
14293 (syntax_parent_lookup): Delete.
14294 (Fmodify_syntax_entry): Accept a cons as CHAR.
14295 (skip_chars): Adjust for the new multibyte form.
14296 (init_syntax_once): Call char_table_set_range instead of directly
14297 accessing the structure of a char table.
14298
14299 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14300 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14301 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14302 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14303
14304 * term.c: Include "buffer.h" and "character.h".
14305 (encode_terminal_code, write_glyphs): Adjust for the new
14306 code-conversion API.
14307 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14308
14309 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14310
14311 * xdisp.c: Include "character.h".
14312 (get_next_display_element): Adjust for the new multibyte form.
14313 (disp_char_vector): Adjust for the new char table structure.
14314 (decode_mode_spec_coding): Adjust for the new structure of
14315 coding system.
14316 (decode_mode_spec): Adjust for the new code-conversion API.
14317
14318 * xfaces.c: Include "character.h" instead of "charset.h".
14319 (load_face_font): Adjust for the change of choose_face_font and
14320 FS_LOAD_FONT.
14321 (generate_ascii_font): New function.
14322 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14323 (set_font_frame_param): Adjust for the change of choose_face_font.
14324 (free_realized_face): Make it public.
14325 (free_realized_faces_for_fontset): Rename from
14326 free_realized_multibyte_face. Free also faces realized for ASCII.
14327 (choose_face_font): Change arguments. Adjust for the change of
14328 fontset_font_pattern and FS_LOAD_FONT.
14329
14330 * xfns.c: Include "character.h".
14331 (x_encode_text): Adjust for the new code-conversion API.
14332
14333 * xselect.c: Don't include "charset.h".
14334 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14335
14336 * xterm.c: Include "character.h".
14337 (x_encode_char): New argument CHARSET. Change caller.
14338 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14339 Call ENCODE_CHAR instead of SPLIT_CHAR.
14340 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14341 CHAR_WIDTH instead of CHARSET_WIDTH.
14342 (XTread_socket): Adjust for the new code-conversion API.
14343 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14344 (x_load_font): Adjust for the change of struct font.
14345
143462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14347
14348 * xfaces.c (face_at_buffer_position): Remove unused vars.
14349
143502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14351
14352 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14353 Fix overflow checking.
14354
143552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14356
14357 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14358 Cancel previous change.
14359
143602008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14361
14362 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14363 ccl->eight_bit_control. Fix check for buffer overflow.
14364 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14365 (ccl_driver): Initialize extra_bytes to 0.
14366
143672008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14368
14369 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14370 return it ORed with ctrl_modifier.
14371
143722008-01-29 Miles Bader <miles@gnu.org>
14373
14374 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14375
143762008-01-28 Jason Rumney <jasonr@gnu.org>
14377
14378 * w32.c (stat): Don't double check for networked drive.
14379
143802008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14381
14382 * window.c (run_window_configuration_change_hook): New function.
14383 Code extracted from set_window_buffer. Set the selected frame.
14384 (set_window_buffer): Use it.
14385 * window.h (run_window_configuration_change_hook): Declare.
14386 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14387
14388 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14389
143902008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14391
14392 * Makefile.in: Remove references to unused macros.
14393
143942008-01-26 Eli Zaretskii <eliz@gnu.org>
14395
14396 * w32.c (g_b_init_get_sid_sub_authority)
14397 (g_b_init_get_sid_sub_authority_count): New static variables.
14398 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14399 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14400 (init_user_info): Use them to retrieve uid and gid.
14401 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14402 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14403 st_uid and st_gid of the file.
14404
144052008-01-26 Jason Rumney <jasonr@gnu.org>
14406
14407 * w32.c (logon_network_drive): New function.
14408 (stat): Use it.
14409
144102008-01-26 Chong Yidong <cyd@stupidchicken.com>
14411
14412 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14413 invisible text covered with an ellipsis.
14414
144152008-01-25 Richard Stallman <rms@gnu.org>
14416
14417 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14418 jump back to beginning. Move some other initializations after that.
14419 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14420 New variables.
14421 (syms_of_xdisp): Init them.
14422
14423 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14424
14425 * buffer.c (reset_buffer_local_variables):
14426 Implement `permanent-local-hook'.
14427 (Qpermanent_local_hook): New variable.
14428 (syms_of_buffer): Init and staticpro it.
14429
144302008-01-25 Michael Albinus <michael.albinus@gmx.de>
14431
14432 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14433
144342008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14435
14436 * fns.c (Fclrhash): Return TABLE.
14437
144382008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14439
14440 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14441 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14442 is set even without positional changes.
14443 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14444
14445 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14446
144472008-01-23 Jason Rumney <jasonr@gnu.org>
14448
14449 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14450
14451 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14452 the unicode range available in MULE by locale-coding-system.
14453 Improve dbcs lead byte detection. Set event timestamp and modifiers
14454 earlier.
14455
144562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14457
14458 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14459 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14460 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14461 when used on child processes.
14462
144632008-01-21 Michael Albinus <michael.albinus@gmx.de>
14464
14465 * dbusbind.c (Fdbus_method_return_internal): Rename from
14466 Fdbus_method_return.
14467 (Fdbus_unregister_object): Move to dbus.el.
14468 (Fdbus_call_method, Fdbus_method_return_internal)
14469 (Fdbus_send_signal): Improve debug messages.
14470
144712008-01-20 Martin Rudalics <rudalics@gmx.at>
14472
14473 * undo.c (undo_inhibit_record_point): New variable.
14474 (syms_of_undo): Initialize it.
14475 (record_point): Don't record point when undo_inhibit_record_point
14476 is set.
14477
144782008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14479
14480 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14481
14482 * xdisp.c (Qauto_hscroll_mode): New var.
14483 (syms_of_xdisp): Initialize it.
14484 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14485 window's buffer.
14486 (hscroll_windows): Don't check automatic_hscrolling_p here.
14487
14488 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14489 vscroll if we're setting window-buffer to the value it already has.
14490
144912008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14492
14493 * m/intel386.h: Remove references to XENIX.
14494
144952008-01-17 Andreas Schwab <schwab@suse.de>
14496
14497 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14498 instead of HAVE_X86_64_LIB64_DIR.
14499 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14500
145012008-01-17 Glenn Morris <rgm@gnu.org>
14502
14503 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14504 to HAVE_X86_64_LIB64_DIR.
14505
145062008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14507
14508 * s/irix3-3.h:
14509 * s/irix4-0.h:
14510 * s/386-ix.h:
14511 * s/domain.h:
14512 * s/hpux9-x11r4.h:
14513 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14514
14515 * sysdep.c: Remove code containing references to symbols defined
14516 by unsupported systems.
14517
145182008-01-16 Glenn Morris <rgm@gnu.org>
14519
14520 * coding.c (select-safe-coding-system-function): Doc fix.
14521
145222008-01-15 Glenn Morris <rgm@gnu.org>
14523
14524 * config.in: Revert 2008-01-13 change: this is a generated file.
14525
145262008-01-13 Tom Tromey <tromey@redhat.com>
14527
14528 * lisp.h: Fix typo.
14529
145302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14531
14532 * m/sequent-ptx.h:
14533 * m/sequent.h:
14534 * s/ptx.h:
14535 * s/ptx4-2.h:
14536 * s/ptx4.h: Remove files for systems no longer supported.
14537
14538 * callproc.c (Fcall_process): Fix previous change.
14539
145402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14541
14542 * unexsunos4.c: Remove file, system not supported anymore.
14543
14544 * m/mips.h:
14545 * m/intel386.h:
14546 * callproc.c:
14547 * config.in:
14548 * ecrt0.c:
14549 * emacs.c:
14550 * fileio.c:
14551 * frame.c:
14552 * getpagesize.h:
14553 * keyboard.c:
14554 * lread.c:
14555 * process.c:
14556 * puresize.h:
14557 * sysdep.c:
14558 * systty.h:
14559 * syswait.h:
14560 * unexec.c:
14561 * xdisp.c:
14562 * alloc.c: Remove code containing references to symbols defined by
14563 unsupported systems.
14564
145652008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14566
14567 * coding.c (detect_coding_mask): Fix previous change.
14568
145692008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14570
14571 * coding.c (detect_coding_iso2022): New arg
14572 latin_extra_code_state. Allow Latin extra codes only
14573 when *latin_extra_code_state is nonzero.
14574 (detect_coding_mask): If there is a NULL byte, detect the encoding
14575 as UTF-16 or binary. If Latin extra codes exist, detect the
14576 encoding as ISO-2022 only when there's no other proper encoding is
14577 found.
14578
145792008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14580
14581 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14582 #ifdef MAC_OS.
14583
145842008-01-08 Richard Stallman <rms@gnu.org>
14585
14586 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14587
145882008-01-06 Nick Roberts <nickrob@snap.net.nz>
14589
14590 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14591 menu bar in parentheses.
14592
145932008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14594
14595 * m/7300.h:
14596 * m/acorn.h:
14597 * m/alliant-2800.h:
14598 * m/alliant.h:
14599 * m/alliant1.h:
14600 * m/alliant4.h:
14601 * m/altos.h:
14602 * m/amdahl.h:
14603 * m/apollo.h:
14604 * m/att3b.h:
14605 * m/aviion-intel.h:
14606 * m/aviion.h:
14607 * m/celerity.h:
14608 * m/clipper.h:
14609 * m/cnvrgnt.h:
14610 * m/convex.h:
14611 * m/cydra5.h:
14612 * m/delta88k.h:
14613 * m/dpx2.h:
14614 * m/dual.h:
14615 * m/elxsi.h:
14616 * m/f301.h:
14617 * m/gould-np1.h:
14618 * m/gould.h:
14619 * m/i860.h:
14620 * m/ibmps2-aix.h:
14621 * m/ibmrt-aix.h:
14622 * m/ibmrt.h:
14623 * m/irist.h:
14624 * m/is386.h:
14625 * m/isi-ov.h:
14626 * m/mega68.h:
14627 * m/mg1.h:
14628 * m/news-r6.h:
14629 * m/news-risc.h:
14630 * m/news.h:
14631 * m/nh3000.h:
14632 * m/nh4000.h:
14633 * m/ns16000.h:
14634 * m/ns32000.h:
14635 * m/nu.h:
14636 * m/orion.h:
14637 * m/orion105.h:
14638 * m/paragon.h:
14639 * m/pfa50.h:
14640 * m/plexus.h:
14641 * m/pyramid.h:
14642 * m/pyrmips.h:
14643 * m/sh3el.h:
14644 * m/sps7.h:
14645 * m/sr2k.h:
14646 * m/stride.h:
14647 * m/sun1.h:
14648 * m/sun2.h:
14649 * m/sun3-68881.h:
14650 * m/sun3-fpa.h:
14651 * m/sun3-soft.h:
14652 * m/sun3.h:
14653 * m/sun386.h:
14654 * m/symmetry.h:
14655 * m/tad68k.h:
14656 * m/tahoe.h:
14657 * m/targon31.h:
14658 * m/tek4300.h:
14659 * m/tekxd88.h:
14660 * m/tower32.h:
14661 * m/tower32v3.h:
14662 * m/ustation.h:
14663 * m/wicat.h:
14664 * m/xps100.h:
14665 * s/cxux.h:
14666 * s/cxux7.h:
14667 * s/dgux.h:
14668 * s/dgux4.h:
14669 * s/dgux5-4-3.h:
14670 * s/dgux5-4r2.h:
14671 * s/esix.h:
14672 * s/esix5r4.h:
14673 * s/hiuxmpp.h:
14674 * s/hiuxwe2.h:
14675 * s/iris3-5.h:
14676 * s/iris3-6.h:
14677 * s/isc2-2.h:
14678 * s/isc3-0.h:
14679 * s/isc4-0.h:
14680 * s/isc4-1.h:
14681 * s/newsos5.h:
14682 * s/newsos6.h:
14683 * s/osf1.h:
14684 * s/osf5-0.h:
14685 * s/riscix1-1.h:
14686 * s/riscix12.h:
14687 * s/sco4.h:
14688 * s/sco5.h:
14689 * s/sunos4-0.h:
14690 * s/sunos4-1.h:
14691 * s/sunos413.h:
14692 * s/sunos4shr.h:
14693 * s/umax.h:
14694 * s/unipl5-2.h:
14695 * s/xenix.h:
14696 * cxux-crt0.s:
14697 * unexapollo.c:
14698 * unexconvex.c:
14699 * unexenix.c:
14700 * unexsni.c: Remove files for systems no longer supported.
14701
14702 * m/intel386.h: Remove references to unsupported systems.
14703
14704 * w32.c (get_emacs_configuration): Remove reference to i860.
14705
14706 * sysdep.c: Remove dead code.
14707
147082008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14709
14710 * s/rtu.h:
14711 * m/masscomp.h: Remove files. Platform is obsolete.
14712
147132008-01-04 Michael Albinus <michael.albinus@gmx.de>
14714
14715 * dbusbind.c (Fdbus_method_return): New function.
14716 (xd_read_message): Add the serial number to the event.
14717 (Fdbus_register_method): Activate the function.
14718
147192008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14720
14721 * keyboard.c (read_key_sequence): Fix typo.
14722
147232008-01-03 Michael Albinus <michael.albinus@gmx.de>
14724
14725 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14726 (xd_signature, xd_append_arg): Handle element type detection for
14727 empty arrays.
14728 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
14729 SDATA () calls; this must be solved more general.
14730 (Fdbus_register_signal): Use SBYTES instead of strlen.
14731
147322008-01-03 Magnus Henoch <magnus@zemdatav>
14733
14734 * dbusbind.c (xd_append_arg): Use unsigned char instead of
14735 unsigned int for byte values (necessary for big-endian platform).
14736 (Fdbus_call_method): Handle the case of no returned arguments.
14737
147382007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
14739
14740 * dbusbind.c (xd_read_message): Use non-static input_event struct.
14741
147422007-12-31 Magnus Henoch <mange@freemail.hu>
14743
14744 * dbusbind.c (xd_signature): Signature of variant is just "v".
14745
147462007-12-30 Michael Albinus <michael.albinus@gmx.de>
14747
14748 * dbusbind.c: Fix several errors and compiler warnings.
14749 Reported by Tom Tromey <tromey@redhat.com>.
14750 (XD_ERROR, XD_DEBUG_MESSAGE)
14751 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
14752 (xd_append_arg): Part for basic D-Bus types rewritten.
14753 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
14754 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
14755 appropriate.
14756 (xd_read_message): Return Qnil. Don't signal an error; it is not
14757 useful during event reading.
14758 (Fdbus_register_signal): Signal an error if the check for
14759 FUNCTIONP fails.
14760 (Fdbus_register_method): New function. The implementation is not
14761 complete, the call of the function signals an error therefore.
14762 (Fdbus_unregister_object): New function, renamed from
14763 Fdbus_unregister_signal. The initial check signals an error, if
14764 the object is not well formed.
14765
147662007-12-30 Richard Stallman <rms@gnu.org>
14767
14768 * textprop.c (get_char_property_and_overlay):
14769 Signal error if POSITION is out of range in a buffer.
14770
147712007-12-29 Martin Rudalics <rudalics@gmx.at>
14772
14773 * w32fns.c (Fx_create_frame): Make copy of frame parameters
14774 because the original parameters are in pure storage now.
14775
147762007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14777
14778 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
14779
147802007-12-22 Eli Zaretskii <eliz@gnu.org>
14781
14782 * callint.c (syms_of_callint) <command-history>: Add reference to
14783 history-length in the doc string.
14784
147852007-12-17 Jason Rumney <jasonr@gnu.org>
14786
14787 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
14788 before passing as wParam.
14789
147902007-12-22 Michael Albinus <michael.albinus@gmx.de>
14791
14792 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
14793 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
14794 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
14795 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
14796 as number.
14797 (Fdbus_call_method): Fix docstring.
14798
147992007-12-21 Michael Albinus <michael.albinus@gmx.de>
14800
14801 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
14802 New macros.
14803 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
14804 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
14805 Simplify.
14806 (xd_signature): New function.
14807 (xd_append_arg): Compute also signatures. Major rewrite.
14808 (xd_retrieve_arg): Make debug messages friendly.
14809 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
14810 Check for signatures of arguments.
14811
148122007-12-19 Michael Albinus <michael.albinus@gmx.de>
14813
14814 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
14815 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
14816 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
14817 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
14818 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
14819 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
14820 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
14821 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
14822 (xd_retrieve_value): Remove. Functionality included in ...
14823 (xd_append_arg): New function.
14824 (Fdbus_call_method, Fdbus_send_signal): Apply it.
14825
148262007-12-16 Michael Albinus <michael.albinus@gmx.de>
14827
14828 * dbusbind.c (top): Include <stdio.h>.
14829 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
14830 dbus_message_new_method_call and dbus_message_new_signal.
14831 (Fdbus_register_signal): Rename unique_name to uname.
14832 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
14833 non-existing unique name. Fix typos in matching rule. Return an
14834 object which is useful in Fdbus_unregister_signal.
14835 (Fdbus_unregister_signal): Reimplementation, in order to remove
14836 only the corresponding entry.
14837 (Vdbus_registered_functions_table): Change the order of entries.
14838 Apply these changes in xd_read_message and Fdbus_register_signal.
14839
148402007-12-16 Andreas Schwab <schwab@suse.de>
14841
14842 * fileio.c (Finsert_file_contents): Fix overflow check to not
14843 depend on undefined integer overflow.
14844
148452007-12-14 Jason Rumney <jasonr@gnu.org>
14846
14847 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
14848 for characters above 127.
14849
148502007-12-13 Jason Rumney <jasonr@gnu.org>
14851
14852 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
14853 before dereferencing array.
14854 (lookup_vk_code): Remove zero comparison.
14855
148562007-12-14 Michael Albinus <michael.albinus@gmx.de>
14857
14858 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
14859 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
14860 Use `unsigned int' instead of `uint'.
14861 (xd_read_message, Fdbus_register_signal): Split expressions into
14862 multiple lines before operators "&&" and "||", according to the
14863 GNU Coding Standards.
14864
148652007-12-14 Eli Zaretskii <eliz@gnu.org>
14866
14867 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
14868
148692007-12-12 Juri Linkov <juri@jurta.org>
14870
14871 * buffer.c (Frename_buffer): In interactive spec replace
14872 `read-buffer' with `read-string' that uses `buffer-name-history'
14873 as history, and the current buffer's name as default.
14874
148752007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
14876
14877 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
14878 manipulating the backtrace manually.
14879 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
14880 (struct backtrace, backtrace_list): Remove.
14881 (command_loop_1): Remove dead var `no_direct'.
14882
14883 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
14884 preserve non-built-in buffer-local variables.
14885 (Fkill_all_local_variables): Don't re-create&re-set permanent
14886 buffer-local variables.
14887
148882007-12-09 Juri Linkov <juri@jurta.org>
14889
14890 * buffer.c (Frename_buffer): Change interactive spec from "s" to
14891 Lisp code that uses `read-buffer' with current buffer as default.
14892
148932007-12-08 Michael Albinus <michael.albinus@gmx.de>
14894
14895 * dbusbind.c (xd_read_message): Generate an event for every
14896 registered handler. There might be several handlers registered
14897 for the same signal.
14898 (Fdbus_register_signal): Don't overwrite a registration for the
14899 same signal. Add a new registration if handlers are different.
14900 (Vdbus_registered_functions_table): Rework doc string.
14901
149022007-12-07 Michael Albinus <michael.albinus@gmx.de>
14903
14904 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
14905 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
14906 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
14907 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
14908 Unify argument lists.
14909 (xd_read_message, Fdbus_register_signal): Reorder and extend event
14910 arguments and hash table keys. Use unique name for service.
14911 (Fdbus_unregister_signal): Remove checks.
14912 (Vdbus_registered_functions_table): Fix doc string.
14913
149142007-12-05 Magnus Henoch <mange@freemail.hu>
14915
14916 * process.c (make_process): Initialize pty_flag to 0.
14917
149182007-12-05 Jason Rumney <jasonr@gnu.org>
14919
14920 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
14921 specified XBMs.
14922
149232007-12-05 Richard Stallman <rms@gnu.org>
14924
14925 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
14926
149272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14928
14929 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
14930 New variable.
14931 (mac_try_close_socket) [MAC_OSX]: New function.
14932 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
14933 Update cfsockets_for_select. Replace invalid CFRunLoop source.
14934
14935 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
14936 Use mac_try_close_socket.
14937
149382007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14939
14940 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
14941 reloc_base.
14942 (copy_dysymtab): Compute relocation base here.
14943 (rebase_reloc_address) [__ppc64__]: New function.
14944 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
14945 changed.
14946
149472007-12-05 Jason Rumney <jasonr@gnu.org>
14948
14949 * w32proc.c (sys_spawnve): Quote args with wildcards.
14950
149512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14952
14953 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
14954 __objc_* sections.
14955 (unrelocate) [_LP64]: Set relocation base to address of data segment.
14956
149572007-12-05 Michael Albinus <michael.albinus@gmx.de>
14958
14959 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
14960 Move check for Vdbus_registered_functions_table to
14961 xd_read_queued_messages.
14962 (xd_read_queued_messages): Protect xd_read_message calls by
14963 internal_condition_case_1.
14964
149652007-12-04 Michael Albinus <michael.albinus@gmx.de>
14966
14967 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
14968 Qdbus_system_bus and Qdbus_session_bus, respectively.
14969 (Vdbus_intern_symbols): Remove.
14970 (Vdbus_registered_functions_table): New hash table.
14971 (XD_SYMBOL_INTERN_SYMBOL): Remove.
14972 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
14973 Rewrite in order to manage registered functions by hash table
14974 Vdbus_registered_functions_table.
14975
149762007-12-03 Jan Djärv <jan.h.d@swipnet.se>
14977
14978 * xterm.c: Update URL to Window Manager Specification in comment.
14979
149802007-12-02 Michael Albinus <michael.albinus@gmx.de>
14981
14982 * config.in (HAVE_DBUS): Add.
14983
14984 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
14985 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
14986 (obj): Add $(DBUS_OBJ).
14987 (LIBES): Add $(DBUS_LIBS).
14988 (dbusbind.o): New target.
14989
14990 * dbusbind.c: New file.
14991
14992 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
14993
14994 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
14995 (Qdbus_event): New Lisp symbol.
14996 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
14997 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 14998 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
14999
15000 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15001
150022007-12-01 Richard Stallman <rms@gnu.org>
15003
15004 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15005
150062007-11-30 Jason Rumney <jasonr@gnu.org>
15007
15008 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15009 (w32con_reset_terminal_modes): Clear screen buffer.
15010 (w32_face_attributes): Don't use color indexes that are out of range.
15011 Only reverse the default colors.
15012
15013 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15014 WINDOWSNT.
15015
15016 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15017
150182007-11-29 Jason Rumney <jasonr@gnu.org>
15019
15020 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15021 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15022 if the terminal colors are initialized.
15023 (unspecified_fg, unspecified_bg): Remove unused declarations.
15024
150252007-11-29 Andreas Schwab <schwab@suse.de>
15026
15027 * keyboard.c (apply_modifiers): Fix typo.
15028
150292007-11-29 Richard Stallman <rms@gnu.org>
15030
15031 * keymap.c (Fcurrent_local_map): Doc fix.
15032
150332007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15034
15035 * s/gnu-kfreebsd.h: New file.
15036
150372007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15038
15039 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15040 Don't cast redundantly.
15041
15042 * keyboard.c (KEY_TO_CHAR): New macro.
15043 (parse_modifiers, apply_modifiers): Accept integer arguments.
15044 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15045 for chars and symbol keys.
15046 After doing such remapping, apply function-key-map again.
15047
150482007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15049
15050 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15051 compiled anymore.
15052
150532007-11-26 Andreas Schwab <schwab@suse.de>
15054
15055 * process.c (list_processes_1): Fix indentation level of the
15056 command column.
15057
150582007-11-23 Andreas Schwab <schwab@suse.de>
15059
15060 * editfns.c (Fformat): Handle %c specially since it requires the
15061 argument to be of type int.
15062
150632007-11-23 Markus Triska <markus.triska@gmx.at>
15064
15065 * emacs.c (main): Call init_editfns before init_process, since
15066 init_process sets Vprocess_connection_type depending on OS release.
15067
150682007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15069
15070 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15071 (find_symbol_value): Use do_symval_forwarding.
15072
15073 * data.c (set_internal): Set the value in the `cons-cell' (for
15074 Buffer_Local_values) not only for frame-local variables.
15075
150762007-11-22 Andreas Schwab <schwab@suse.de>
15077
15078 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15079 values to sprintf.
15080 * keymap.c (Fsingle_key_description): Likewise.
15081 * print.c (print_object): Likewise.
15082
150832007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15084
15085 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15086 file for image is nil.
15087
150882007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15089
15090 * term.c: Include stdarg.h.
15091 (fatal): Implement using varargs.
15092 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15093
150942007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15095
15096 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15097 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15098 Update call to buffer_slot_type_mismatch.
15099 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15100 (buffer_slot_type_mismatch): Update.
15101 * buffer.c (buffer_local_types): Remove.
15102 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15103 (defvar_per_buffer): Set the type in the buffer_objfwd.
15104
151052007-11-21 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15108 CreateFileMapping returns NULL on failure.
15109
151102007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * search.c (Fset_match_data): Remove the `evaporate' feature.
15113 (unwind_set_match_data): Don't use the `evaporate' feature.
15114
151152007-11-21 Jason Rumney <jasonr@gnu.org>
15116
15117 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15118
15119 * w32console.c (w32con_write_glyphs): Remove unused variables.
15120
151212007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15122
15123 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15124
15125 * s/darwin.h (MULTI_KBOARD): Remove.
15126
15127 * macfns.c (x_create_tip_frame, Fx_create_frame)
15128 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15129
151302007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * buffer.c (Fbuffer_local_value): Remove redundant test.
15133 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15134 than in `current-buffer' to match the comment.
15135 Do the swap using swap_in_global_binding.
15136
15137 * data.c (store_symval_forwarding, set_internal):
15138 * eval.c (specbind): Remove dead code.
15139
15140 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15141 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15142 Since we do not want to see internal Lisp_*fwd objects here.
15143
151442007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15145
15146 * sysdep.c (init_system_name): Use getaddrinfo if available.
15147
15148 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15149 (x_scroll_bar_note_movement): start, end, with, height in struct
15150 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15151
151522007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15153
15154 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15155
151562007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15157
15158 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15159 This undoes Richard's change of 14-Oct-2002.
15160
15161 * alloc.c (allocate_other_vector):
15162 * lisp.h (allocate_other_vector): Remove.
15163
15164 * window.c (struct save_window_data): Move non-lisp data to the end
15165 and make it `int' rather than Lisp_Object.
15166 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15167 Done wrap/unwrap integer values.
15168 (Fset_window_configuration, compare_window_configurations):
15169 Update use of fields to their new types.
15170
15171 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15172 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15173 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15174 (SET_SCROLL_BAR_X_WINDOW): Remove.
15175 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15176 Access the new x_window field directly.
15177 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15178 Don't wrap/unwrap integers into Lisp_Objects.
15179 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15180 (x_scroll_bar_report_motion):
15181 Don't wrap/unwrap integers into Lisp_Objects.
15182 (x_term_init): Use SDATA.
15183 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15184 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15185 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15186 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15187 * xfns.c (x_set_background_color):
15188 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15189 Access the new x_window field directly.
15190
15191 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15192 (allocate_pseudovector): Make non-static.
15193
15194 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15195 (allocate_pseudovector): Declare.
15196 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15197
151982007-11-15 Andreas Schwab <schwab@suse.de>
15199
15200 * editfns.c (Fformat): Correctly format EMACS_INT values.
15201 Also take precision into account when formatting an integer.
15202
15203 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15204
152052007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15206
15207 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15208 (syms_of_keyboard): Defsubr it.
15209
15210 * data.c (swap_in_global_binding): Fix longstanding bug where
15211 store_symval_forwarding was not called with the right second argument,
15212 thus causing objfwd-ing from being dropped.
15213
152142007-11-14 Juanma Barranquero <lekktu@gmail.com>
15215
15216 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15217 (Fx_display_pixel_height, Fx_display_planes)
15218 (Fx_display_color_cells, Fx_server_max_request_size)
15219 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15220 (Fx_display_visual_class, Fx_display_save_under):
15221 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15222 (Fx_display_pixel_height, Fx_display_planes)
15223 (Fx_display_color_cells, Fx_server_max_request_size)
15224 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15225 (Fx_display_mm_height, Fx_display_mm_width)
15226 (Fx_display_backing_store, Fx_display_visual_class)
15227 (Fw32_select_font, Fx_display_save_under):
15228 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15229 (Fx_display_pixel_height, Fx_display_planes)
15230 (Fx_display_color_cells, Fx_server_max_request_size)
15231 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15232 (Fx_display_save_under): Fix typos in docstrings.
15233
152342007-11-14 Juanma Barranquero <lekktu@gmail.com>
15235
15236 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15237 corresponding to deleted entries; they are an implementation detail.
15238 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15239 Remove variables.
15240 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15241 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15242 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15243 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15244 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15245 (Fw32_define_rgb_color, Fw32_load_color_file)
15246 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15247 Fix typos in docstrings.
15248 (Fx_server_version): Reflow docstring.
15249 (Fw32_shell_execute): Doc fixes.
15250
152512007-11-13 Juanma Barranquero <lekktu@gmail.com>
15252
15253 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15254 if w32_parse_hot_key returned nil.
15255
152562007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15257
15258 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15259
152602007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15261
aac0c6e3
MR
15262 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15263
15264 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15265
15266 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15267 Remove W32_SCROLL_BAR_CLICK_EVENT.
15268
15269 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15270 Add MULTIMEDIA_KEY_EVENT.
15271
15272 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15273 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15274 (make_lispy_event) [WINDOWSNT]: Use it to translate
15275 MULTIMEDIA_KEY_EVENT.
15276
15277 * w32term.h (WM_APPCOMMAND): Define if not already.
15278 (GET_APPCOMMAND_LPARAM): Likewise.
15279
15280 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15281 WM_APPCOMMAND.
15282
15283 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15284 (syms_of_w32fns): Export and initialize it.
15285 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15286
152872007-11-09 Chong Yidong <cyd@stupidchicken.com>
15288
15289 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15290 twice.
15291
15292 * xdisp.c (handle_face_prop): Fix last change.
15293
152942007-11-09 Richard Stallman <rms@gnu.org>
15295
15296 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15297 not just for after-strings and before-strings.
15298 Call face_for_overlay_string and pass the overlay to it.
15299 (handle_display_prop): Determine whether property came from an overlay.
15300 Pass OVERLAY arg to handle_single_display_spec.
15301 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15302 (load_overlay_strings): Fill in it->string_overlays.
15303 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15304
15305 * xfaces.c (face_for_overlay_string): Function renamed from
15306 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15307
15308 * dispextern.h (struct it): New elt string_overlays.
15309 New elt from_overlay, also in stack.
15310 Rearrange a few elements.
15311 (face_for_overlay_string): Decl renamed from
15312 face_at_buffer_position_no_overlays, and add argument.
15313
153142007-11-09 Richard Stallman <rms@gnu.org>
15315
15316 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15317 to get the base face for an overlay string.
15318
15319 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15320
15321 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15322
15323 * xdisp.c (handle_stop): Move some code out of loop.
15324
153252007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15326
15327 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15328 Fix conversion from Lisp object to ATSUFontID.
15329
153302007-11-09 Jason Rumney <jasonr@gnu.org>
15331
15332 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15333
153342007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15335
15336 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15337 Don't assume regions are aligned to page boundary.
15338 (print_load_command_name): Add LC_UUID if defined.
15339
153402007-11-09 Richard Stallman <rms@gnu.org>
15341
15342 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15343
153442007-11-07 Jason Rumney <jasonr@gnu.org>
15345
15346 * s/windows95.h: Remove.
15347
153482007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15349
15350 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15351 abort with a message on unhandled store_type values.
15352
153532007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15354
15355 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15356 Remove HAVE_X11R5 and HAVE_X11R4.
15357
153582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15359
15360 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15361
153622007-11-01 Johan Bockgård <bojohan@gnu.org>
15363
15364 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15365 Don't set s->stippled_p here, since it has already been set by
15366 x_set_glyph_string_gc from x_draw_glyph_string.
15367
153682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15369
15370 * sunfns.c: Remove file.
15371
15372 * m/sun386.h:
15373 * m/sun2.h:
15374 * m/sparc.h: Remove Sun windows code.
15375
153762007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15377
15378 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15379 (init_keyboard): Set current_kboard's window-system to nil.
15380 (tty_read_avail_input): Typo.
15381 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15382
153832007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15384
15385 * s/usg5-4.h:
15386 * s/usg5-3.h:
15387 * s/ptx.h:
15388 * m/is386.h:
15389 * m/ibmps2-aix.h:
15390 * Makefile.in: Remove all mentions of X10.
15391
15392 * dispnew.c (syms_of_display): Don't mention version 10.
15393
153942007-10-28 Juanma Barranquero <lekktu@gmail.com>
15395
15396 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15397 ($(BLD)/abbrev.$(O)): Remove.
15398
153992007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15400
15401 Rewrite abbrev.c in Elisp.
15402 * image.c (Qcount): Don't declare as extern.
15403 (syms_of_image): Initialize and staticpro `Qcount'.
15404 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15405 * emacs.c (main): Don't call syms_of_abbrev.
15406 * Makefile.in (obj): Remove abbrev.o.
15407 (abbrev.o): Remove.
15408 * abbrev.c: Remove.
15409
154102007-10-26 Martin Rudalics <rudalics@gmx.at>
15411
15412 * window.c (window_min_size_2): Don't count header-line.
15413
154142007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15415
15416 * frame.h (struct frame): Move all bit fields after the first bit
15417 field to take advantage of the available space. Group all the
15418 chars together to reduce wasted space due to padding.
15419
154202007-10-26 Juanma Barranquero <lekktu@gmail.com>
15421
15422 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15423
15424 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15425 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15426 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15427 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15428 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15429 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15430 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15431 (last_marked, mark_object_loop_halt): Make static.
15432
15433 * frame.c (syms_of_frame) <delete-frame-functions>:
15434 Fix typo in docstring.
15435
154362007-10-25 Juanma Barranquero <lekktu@gmail.com>
15437
15438 * w32.c (init_environment): Fix tiny memory leak.
15439 (w32_get_resource): Remove unused variable `ok'.
15440
154412007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15442
15443 Make `window-system' into a keyboard-local variable (rather than
15444 frame-local as done originally by multi-tty).
15445
15446 * keyboard.h (struct kboard): Add Vwindow_system.
15447 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15448 (mark_kboards): Mark Vwindow_system.
15449
15450 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15451 (init_display): Don't set the obsolete `window-system' frame-param.
15452
15453 * xterm.c (x_term_init):
15454 * w32term.c (w32_create_terminal):
15455 * term.c (init_tty): Set Vwindow_system.
15456 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15457 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15458
15459 * xfns.c (Fx_create_frame, x_create_tip_frame):
15460 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15461 * macfns.c (Fx_create_frame):
15462 Don't set the obsolete `window-system' frame-param.
15463
15464 * frame.h (Qwindow_system): Remove.
15465 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15466 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15467
154682007-10-24 Richard Stallman <rms@gnu.org>
15469
15470 * frame.c (x_figure_window_size): For fullscreen case,
15471 set USPosition | PPosition without clobbering rest of window_prompting.
15472
15473 * keyboard.c (Fcurrent_idle_time): Doc fix.
15474
15475 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15476
154772007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15478
15479 * process.c (unwind_request_sigio): Only define if __ultrix__.
15480
15481 * callproc.c (child_setup): Remove spurious *.
15482
15483 * lisp.h (Fget_text_property): Declare.
15484 (have_menus_p): Declare it here rather than in sys-dep header files.
15485 * macterm.h (have_menus_p):
15486 * msdos.h (have_menus_p):
15487 * xterm.h (have_menus_p): Remove.
15488
15489 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15490 (Fmake_variable_frame_local): Just check the variable's const-ness
15491 rather than checking nil or t.
15492
154932007-10-22 Jason Rumney <jasonr@gnu.org>
15494
15495 * w32fns.c: Include math.h.
15496 (w32_abort): Declaration moved to nt/config.nt.
15497
15498 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15499 (abort): Redefinition moved to nt/config.nt.
15500
15501 * m/windowsnt.h: Remove.
15502
155032007-10-22 Juanma Barranquero <lekktu@gmail.com>
15504
15505 * emacs.c (Fdump_emacs): Fix typo in message.
15506 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15507 <installation-directory>: Reflow docstring.
15508
155092007-10-22 Juri Linkov <juri@jurta.org>
15510
15511 * minibuf.c: Allow minibuffer default to be a list of default values.
15512 With empty input use the first element of this list as returned default.
15513 (string_to_object)
15514 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15515 (read_minibuf): If defalt is cons, set histstring to its car.
15516 (Fread_string): If default_value is cons, set val to its car.
15517 (Fread_buffer): If def is cons, use its car.
15518 (Fcompleting_read): If defalt is cons, set val to its car.
15519
155202007-10-21 Michael Albinus <michael.albinus@gmx.de>
15521
15522 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15523
155242007-10-20 Juanma Barranquero <lekktu@gmail.com>
15525
15526 * doc.c (Fdocumentation): Check for advice in all cases.
15527
155282007-10-19 Chong Yidong <cyd@stupidchicken.com>
15529
15530 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15531
155322007-10-19 Richard Stallman <rms@gnu.org>
15533
15534 * doc.c (Fdocumentation): Check for and handle an advised function.
15535
155362007-10-19 Juanma Barranquero <lekktu@gmail.com>
15537
15538 * process.c (Fset_process_filter): Doc fix.
15539
155402007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15541
15542 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15543 which caused key-translation-map to applied repeatedly (thus breaking
15544 double-mode).
15545
155462007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15547
15548 * xselect.c (x_own_selection, x_handle_selection_clear)
15549 (x_clear_frame_selections):
15550 * w32menu.c (list_of_panes, list_of_items):
15551 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15552 * textprop.c (validate_plist, interval_has_all_properties)
15553 (interval_has_some_properties, interval_has_some_properties_list)
15554 (add_properties, text_property_list):
15555 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15556 * minibuf.c (Fassoc_string):
15557 * macselect.c (x_own_selection, x_clear_frame_selections)
15558 (Fx_disown_selection_internal):
15559 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15560 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15561
155622007-10-17 Chong Yidong <cyd@stupidchicken.com>
15563
15564 * process.c: Link to libs for calling res_init() if available.
15565 (Fmake_network_process): Call res_init() before getaddrinfo or
15566 gethostbyname, if possible.
15567
155682007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15569
15570 * lread.c (read1): Set pvectype for char_tables.
15571
15572 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15573 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15574 Add type checks.
15575 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15576
15577 * alloc.c (free_misc): Use XMISCTYPE.
15578 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15579
155802007-10-17 Glenn Morris <rgm@gnu.org>
15581
15582 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15583 (syms_of_minibuf): Add Qcompletion_ignore_case.
15584 * dired.c (Qcompletion_ignore_case): Change to external.
15585 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15586 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15587 (Fread_file_name): Use it rather than intern'ing.
15588
15589 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15590 (Fread_coding_system): Ignore case of user input.
15591
155922007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15593
15594 * xdisp.c (handle_display_prop): Ignore display specs after
15595 replacing one when string text is being replaced.
15596 (handle_single_display_spec): Pretend as if characters with display
15597 property haven't been consumed only when buffer text is being replaced.
15598
155992007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15600
15601 * xfns.c (Fx_create_frame, Fx_display_list):
15602 * window.c (window_fixed_size_p, enlarge_window)
15603 (shrink_window_lowest_first):
15604 * macterm.c (init_font_name_table):
15605 * macfns.c (Fx_create_frame, Fx_display_list):
15606 * lread.c (close_load_descs):
15607 * keyboard.c (read_char_x_menu_prompt):
15608 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15609 * coding.c (code_convert_region_unwind): Test the type of an object
15610 rather than just !NILP before extracting data from it.
15611
15612 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15613
15614 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15615 (XMISCANY): New macro.
15616 (XMISCTYPE): Use it.
15617 (struct Lisp_Misc_Any): New type.
15618 (union Lisp_Misc): Use it.
15619 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15620 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15621 (find_symbol_value, set_internal, default_value, Fset_default)
15622 (Fmake_variable_buffer_local, Fmake_local_variable)
15623 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15624 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15625 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15626 * alloc.c (allocate_buffer): Set the size and tag.
15627 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15628 Use XMISCANY.
15629 (die): Follow the GNU convention for error messages.
15630 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15631 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15632 tag any more.
15633 (set_buffer_internal_1):
15634 * frame.c (store_frame_param):
15635 * eval.c (specbind):
15636 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15637
15638 * doc.c (Fsnarf_documentation): Simplify.
15639
156402007-10-14 Juanma Barranquero <lekktu@gmail.com>
15641
15642 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15643 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15644
156452007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15646
15647 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15648
156492007-10-14 Juanma Barranquero <lekktu@gmail.com>
15650
15651 * eval.c (do_autoload): Don't save autoloads.
15652
15653 * data.c (Ffset): Save autoload of the function being set.
15654
156552007-10-07 John Paul Wallington <jpw@pobox.com>
15656
15657 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15658 parameter before setting up faces.
15659
156602007-10-13 Eli Zaretskii <eliz@gnu.org>
15661
15662 * ccl.c (Fregister_code_conversion_map):
15663 * keyboard.c (append_tool_bar_item): Reformat last change.
15664
15665 * lisp.h (eabs): Rename from `abs'. All callers changed.
15666
156672007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15668
15669 * buffer.c (add_overlay_mod_hooklist):
15670 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15671 * fontset.c (make_fontset):
15672 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15673 (append_tool_bar_item):
15674 * macmenu.c (grow_menu_items):
15675 * w32menu.c (grow_menu_items):
15676 * xmenu.c (grow_menu_items): Use larger_vector.
15677
156782007-10-13 Eli Zaretskii <eliz@gnu.org>
15679
15680 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15681 selected frame'' on MSDOS).
15682
156832007-10-12 Martin Rudalics <rudalics@gmx.at>
15684
15685 * frame.c (Qexplicit_name): New variable.
15686 (x_report_frame_params): Report it in parameter alist.
15687 (syms_of_frame): Intern and staticpro it.
15688
156892007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15690
15691 * macfns.c (x_create_tip_frame): Set terminal for frame.
15692
156932007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15694
15695 * frame.c (Qenvironment): Remove.
15696 (syms_of_frame) <Qenvironment>: Don't initialize.
15697 (Fdelete_frame): Don't treat the `environment' param specially.
15698 * frame.h (Qenvironment): Don't declare.
15699 * callproc.c (set_initial_environment): Don't set unused frame param.
15700
15701 * frame.c (Fframe_with_environment): Remove.
15702 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15703
15704 * lisp.h (Fframe_with_environment): Don't declare.
15705
157062007-10-10 Juanma Barranquero <lekktu@gmail.com>
15707
15708 * indent.c (indent_tabs_mode, last_known_column)
15709 (last_known_column_modified): Make static.
15710 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15711
157122007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15713
15714 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15715
157162007-10-09 Jason Rumney <jasonr@gnu.org>
15717
15718 * w32term.c (x_set_window_size): Disable code that attempts to tell
15719 Lisp code about a size change before it actually happens.
15720
157212007-10-09 Richard Stallman <rms@gnu.org>
15722
15723 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15724 return HANDLED_RETURN.
15725
157262007-10-08 Martin Rudalics <rudalics@gmx.at>
15727
15728 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
15729 when there's an unread command event.
15730
15731 * frame.c (focus_follows_mouse): Move here from frame.el to allow
15732 window autoselection act appropriately when leaving selected frame.
15733 (syms_of_frame): Initialize focus_follows_mouse.
15734 * frame.h (focus_follows_mouse): Extern it.
15735 * macterm.c (XTread_socket): When focus_follows_mouse is nil
15736 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
15737 * msdos.c (dos_rawgetc): Likewise.
15738 * w32term.c (w32_read_socket): Likewise.
15739 * xterm.c (handle_one_xevent): Likewise.
15740 * xdisp.c (syms_of_xdisp): In doc-string of
15741 mouse-autoselect-window mention focus-follows-mouse.
15742
157432007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15744
15745 * macterm.c (mac_load_query_font): Fix missing return value.
15746 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
15747 Add BLOCK_INPUT.
15748
157492007-10-08 Richard Stallman <rms@gnu.org>
15750
15751 * xdisp.c (get_window_cursor_type): Implement documented behavior
15752 for cursor-in-non-selected-windows = t.
15753
157542007-10-08 Jason Rumney <jasonr@gnu.org>
15755
15756 * w32.c (w32_get_resource): Always close registry keys.
15757
157582007-10-08 Jason Rumney <jasonr@gnu.org>
15759
15760 * makefile.w32-in (LIBS): Add COMCTL32.
15761
15762 * w32fns.c (globals_of_w32fns): Init common controls.
15763
157642007-10-08 Richard Stallman <rms@gnu.org>
15765
15766 * image.c (our_memory_buffer): Rename from omfib_buffer.
15767
157682007-10-08 Richard Stallman <rms@gnu.org>
15769
15770 * buffer.c (Foverlays_at): Doc fix.
15771
157722007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
15773
15774 * fns.c (Fplist_put): Preserve uneven tail data.
15775
157762007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
15777
15778 * termhooks.h (enum event_kind): Remove trailing comma.
15779
15780 * frame.h (enum): Remove trailing comma.
15781
157822007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15783
15784 * w32proc.c (delete_child): Don't terminate threads of zombies.
15785
157862007-10-08 Martin Rudalics <rudalics@gmx.at>
15787
15788 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
15789
15790 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
15791 last-repeatable-command.
15792 (init_kboard): Initialize Vlast_repeatable_command.
15793 (command_loop_1): Set it to real_this_command unless that was
15794 bound to an input event.
15795 (mark_kboards): Mark it.
15796
157972007-10-08 Richard Stallman <rms@gnu.org>
15798
15799 * eval.c (condition-case): Doc fix.
15800
158012007-10-08 Masatake YAMATO <jet@gyve.org>
15802
15803 * xfaces.c (tty_supports_face_attributes_p): Fix code
15804 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
15805 was copied and not edited.
15806
158072007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
15808
15809 Add new `input-decode-map' keymap and use it for terminal
15810 escape sequences.
15811 * keyboard.h (struct kboard): Add Vinput_decode_map.
15812 Remove Vlocal_key_translation_map.
15813 * keyboard.c (read_key_sequence): Add support for input-decode-map.
15814 (init_kboard): Init input-decode-map.
15815 Replace local-key-translation-map back with key-translation-map.
15816 (syms_of_keyboard): Declare input-decode-map.
15817 Remove local-key-translation-map. Update docstrings.
15818 (mark_kboards): Mark Vinput_decode_map.
15819 Don't mark Vlocal_key_translation_map.
15820 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
15821 Replace local-key-translation-map back with key-translation-map.
15822 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
15823 Bind in input-decode-map rather than function-key-map.
15824
15825 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
15826 This was made redundant by the previous introduction of XSETPVECTYPE.
15827
158282007-10-09 Richard Stallman <rms@gnu.org>
15829
15830 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
15831
158322007-09-29 Richard Stallman <rms@gnu.org>
15833
15834 * eval.c (internal_condition_case_2, internal_condition_case_1)
15835 (internal_condition_case): Reenable abort if x_catching_errors ()
15836 to see if that really happens and why.
15837
158382007-10-06 Andreas Schwab <schwab@suse.de>
15839
15840 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
15841
158422007-10-04 Juanma Barranquero <lekktu@gmail.com>
15843
15844 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
15845
158462007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
15847
15848 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
15849
158502007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
15851
15852 * window.h (struct window):
15853 * window.c (struct save_window_data, struct saved_window):
15854 * termhooks.h (struct terminal):
15855 * process.h (struct Lisp_Process):
15856 * frame.h (struct frame):
15857 * buffer.h (struct buffer):
15858 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
15859 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
15860 The size field of (pseudo)vectors is now unsigned.
15861 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
15862
15863 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
15864 Turn `count' into an integer.
15865
15866 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
15867 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
15868 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
15869 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
15870 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
15871
15872 * alloc.c (allocate_pseudovector): New fun.
15873 (ALLOCATE_PSEUDOVECTOR): New macro.
15874 (allocate_window, allocate_terminal, allocate_frame)
15875 (allocate_process): Use it.
15876 (mark_vectorlike): New function.
15877 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
15878 (mark_terminals): Use it.
15879 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
15880 (Fmake_byte_code): Use XSETPVECTYPE.
15881
15882 * frame.c (Fframe_parameters): Minor simplification.
15883
15884 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
15885
15886 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
15887
15888 * buffer.c (Fget_buffer_create, init_buffer_once):
15889 * lread.c (defsubr):
15890 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
15891
15892 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
15893 defined differently in the m/*.h files.
15894 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
15895 (XSETPVECTYPE): New macro.
15896 (XSETPSEUDOVECTOR): Use it.
15897
15898 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
15899 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
15900
15901 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
15902 * lread.c (defvar_per_buffer):
15903 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
15904
15905 * window.c (candidate_window_p): Only consider as visible frames that
15906 are on the same terminal.
15907
15908 * m/ibms390x.h (MARKBIT): Remove unused macro.
15909
159102007-10-01 Juanma Barranquero <lekktu@gmail.com>
15911
15912 * lread.c (Fload): Fix typo in docstring.
15913
159142007-10-01 Michaël Cadilhac <michael@cadilhac.name>
15915
15916 * floatfns.c (Fexpt): Manually check for overflows, so that a power
15917 of a non-zero value can't yield zero.
15918
159192007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
15920
15921 * term.c (term_clear_mouse_face, term_mouse_highlight)
15922 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
15923
15924 * print.c (safe_debug_print): Use XHASH.
15925
15926 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
15927 Lisp elements such as tags.
15928 (XHASH): New macro.
15929 (EQ): Use it.
15930 (SREF, SSET, STRING_COPYIN): Use SDATA.
15931 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
15932
15933 * alloc.c (mark_terminal): Remove left-over declaration.
15934 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
15935 (allocate_vectorlike): Remove type argument. Adjust callers.
15936 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
15937 Only handle the one remaining MEM_TYPE_VECTORLIKE.
15938
15939 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
15940 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
15941 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
15942 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
15943 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
15944 Use them.
15945
15946 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
15947 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
15948 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
15949
159502007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15951
15952 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
15953 loaded by default.
15954
159552007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
15956
15957 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
15958 on this tty.
15959 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
15960
15961 * term.c (mouse_face_window): Rename from Qmouse_face_window.
15962 Update all users.
15963 (handle_one_term_event): Use Gpm_DrawPointer.
15964 (Fgpm_mouse_start): Rename from Fterm_open_connection.
15965 Signal errors instead of returning nil. Always return nil.
15966 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
15967 Make it a noop if gpm-mouse was not activated.
15968 (syms_of_term): Update names.
15969
159702007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
15971
15972 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
15973 (init_sys_modes): Check that gpm_tty is the current tty.
15974
15975 * alloc.c (allocate_terminal): Set the vector size to only count the
15976 lisp fields. Initialize those to nil.
15977 (mark_object): Don't treat terminals specially.
15978 (mark_terminal): Remove.
15979 (mark_terminals): Use mark_object instead.
15980
15981 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
15982 the GC to the beginning.
15983
15984 * indent.h:
15985 * indent.c: Use EMACS_INT for ints coming from Elisp data.
15986
15987 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
15988
159892007-09-25 Jason Rumney <jasonr@gnu.org>
15990
15991 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
15992
15993 * w32console.c (create_w32cons_output): Remove.
15994
15995 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
15996
15997 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
15998 (reset_sys_modes): Use reset_terminal_modes_hook.
15999
160002007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16001
16002 * eval.c (do_autoload): Don't output any message.
16003
160042007-09-24 Juri Linkov <juri@jurta.org>
16005
16006 * emacs.c (standard_args): Change priority of "--no-splash"
16007 from 40 to 3. Add "--no-desktop" with the same priority.
16008
160092007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16010
16011 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16012 and optimize the case where they are all 1.
16013
160142007-09-23 Johannes Weiner <hannes@saeurebad.de>
16015
16016 * lisp.h (abs): Define if not defined.
16017 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16018 Don't define `abs', since it's defined in lisp.h.
16019
160202007-09-22 Eli Zaretskii <eliz@gnu.org>
16021
16022 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16023 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16024 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16025 (init_tty): Use DEV_TTY instead of "/dev/tty".
16026 [WINDOWSNT]: No need to protect from NAME arg being null.
16027
160282007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16029
16030 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16031 up the tty state.
16032
160332007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16034
16035 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16036 (gpm_tty): Change its type.
16037 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16038 (gpm_tty): Change its type and initialize it.
16039 (Fterm_open_connection): Check the frame is indeed a tty.
16040 Use the new gpm_tty.
16041 (Fterm_close_connection): Use the new gpm_tty.
16042 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16043 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16044
160452007-09-21 Juanma Barranquero <lekktu@gmail.com>
16046
16047 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16048 underline_color, to draw strike-through.
16049
160502007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16051
16052 * lisp.h (allocate_terminal): Declare.
16053
16054 * window.c (candidate_window_p): Consider frames that are being placed
16055 by the user as somewhere between visible and iconified.
16056 (window_loop): Prefer windows on the current frame.
16057 (Fselect_window): Move the use of select-frame to the beginning so we
16058 can just delegate all the work (it'll call us back anyway).
16059
16060 * frame.c (Qdisplay_environment_variable):
16061 * frame.h (Qdisplay_environment_variable): Delete.
16062
16063 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16064 of the first arg, since that value may be a union.
16065
16066 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16067 parameter rather than Qdisplay_environment_variable. If all else
16068 fails, look for DISPLAY in initial-environment.
16069
160702007-09-21 Glenn Morris <rgm@gnu.org>
16071
16072 * Makefile.in (emacstool): Remove target.
16073 (lisp, shortlisp): Remove termdev.elc.
16074
160752007-09-21 Markus Triska <markus.triska@gmx.at>
16076
16077 * xterm.c (x_delete_display): Compile session management conditionally.
16078
160792007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16080
16081 * callproc.c (getenv_internal_1): New function.
16082 (getenv_internal): Use it.
16083 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16084
16085 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16086 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16087 (Fset_terminal_parameter): Work with dead terminals as well.
16088 (Fmodify_terminal_parameters): Remove.
16089
16090 * terminal.c (get_terminal): Handle terminals.
16091 Make sure the terminal returned is live.
16092 (create_terminal): Use allocate_terminal.
16093 (mark_terminals): Move to alloc.c.
16094 (delete_terminal): Use terminal->name as liveness status.
16095 NULL out fields after freeing their contents.
16096 Don't deallocate the object.
16097 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16098 rather than an int.
16099 (Fterminal_live_p): Accept non-integer arguments.
16100 (Fterminal_list): Return terminal objects rather than an ints.
16101
16102 * alloc.c (enum mem_type): New member for `terminal' objects.
16103 (allocate_terminal): New function.
16104 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16105 Handle terminals.
16106 (mark_terminal): New fun.
16107 (mark_terminals): Move from terminal.c.
16108
16109 * term.c (get_tty_terminal): Don't treat output_initial specially.
16110 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16111 (delete_tty): Use terminal->name as liveness status.
16112
16113 * termhooks.h (struct terminal): Make it into a pseudovector.
16114 Remove `deleted' replaced by checking `name's nullness.
16115
16116 * print.c (print_object): Handle terminals.
16117
16118 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16119 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16120
16121 * frame.c (make_terminal_frame):
16122 * keyboard.c (tty_read_avail_input):
16123 * w32term.c (x_delete_terminal):
16124 * xfns.c (Fx_create_frame, x_create_tip_frame):
16125 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16126
161272007-09-20 Glenn Morris <rgm@gnu.org>
16128
16129 * process.c (Fmake_network_process): Doc fix.
16130
161312007-09-19 Jason Rumney <jasonr@gnu.org>
16132
16133 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16134
161352007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16136
16137 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16138 Fix a C warning regarding variable constness.
16139
16140 * xterm.c (handle_one_xevent): Fix a C warning.
16141
161422007-09-18 Jason Rumney <jasonr@gnu.org>
16143
16144 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16145
161462007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16147
16148 * gtkutil.c (gdpy_def): New variable.
16149 (xg_initialize): Initialize gdpy_def.
16150 (xg_display_close): If no other display exists, set gdpy_def to a
16151 new connection.
16152
161532007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16154
16155 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16156 when we have no file name for the icon.
16157 (xg_tool_bar_expose_callback): Remove.
16158 (xg_create_tool_bar): Don't connect expose signal to
16159 xg_tool_bar_expose_callback.
16160 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16161
161622007-09-16 Andreas Schwab <schwab@suse.de>
16163
16164 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16165 values instead of zapping them.
16166
161672007-09-14 Glenn Morris <rgm@gnu.org>
16168
16169 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16170 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16171 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16172 scope and rename to omfib_buffer for clarity.
16173 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16174
161752007-09-14 Kenichi Handa <handa@m17n.org>
16176
16177 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16178
161792007-09-13 Jason Rumney <jasonr@gnu.org>
16180
16181 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16182
16183 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16184
16185 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16186 (mac_term_init): Call here instead, passing rif.
16187
161882007-09-13 Glenn Morris <rgm@gnu.org>
16189
16190 * s/hpux.h: No longer define `static' as nothing.
16191
161922007-09-13 Johan Bockgård <bojohan@gnu.org>
16193
16194 * callint.c (Fcall_interactively): Remove unused var `fun'.
16195
161962007-09-12 Romain Francoise <romain@orebokech.com>
16197
16198 * window.c (prefer_window_split_horizontally, display_buffer):
16199 Revert 2007-09-08 change.
16200
162012007-09-12 Glenn Morris <rgm@gnu.org>
16202
16203 * alloca.c: Remove file.
16204 * Makefile.in (alloca): Do not undef.
16205 (allocaobj, alloca.o): Remove.
16206 (otherobj): Remove allocaobj.
16207 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16208 * regex.c (C_ALLOCA): Remove all references and code that was only
16209 used when this was defined.
16210 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16211 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16212 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16213
16214 * Makefile.in (SOURCES, unlock, relock): Delete.
16215
16216 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16217 (menu_grab_callback): All uses changed.
16218
16219 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16220 (x_reply_selection_request): All uses changed.
16221
162222007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16223
16224 * lread.c (load_warn_old_style_backquotes): Change message to look
16225 better when it appears in the middle of byte-compiler messages.
16226
162272007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16228
16229 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16230
16231 * xterm.c (x_create_terminal): Add comment.
16232
16233 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16234
162352007-09-10 Richard Stallman <rms@gnu.org>
16236
16237 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16238
162392007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16240
16241 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16242 (DEFUN): Document `intspec', use it instead of `prompt'.
16243
16244 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16245
16246 * data.c (Finteractive_form): If the interactive specification starts
16247 with a `(', use it as a Lisp form.
16248
16249 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16250 name and file modes.
16251
16252 * callint.c (Fcall_interactively): Comment fixes.
16253
162542007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16257 and compiled functions.
16258
162592007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16260
16261 * window.c (prefer_window_split_horizontally): New variable.
16262 (display_buffer): Consider splitting window horizontally depending
16263 on prefer_window_split_horizontally.
16264
162652007-09-08 Eli Zaretskii <eliz@gnu.org>
16266
16267 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16268
162692007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16270
16271 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16272
16273 * frame.c (x_set_frame_parameters): Check number is positive before
16274 using XFASTINT.
16275
16276 * window.c (freeze_window_start): Don't presume selected_window holds
16277 a window object.
16278 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16279
162802007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16281
16282 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16283
162842007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * window.c (Vsplit_window_preferred_function): New var.
16287 (Fdisplay_buffer): Use it.
16288 (syms_of_window): Export, and initialize it.
16289
162902007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16291
16292 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16293
162942007-09-06 Glenn Morris <rgm@gnu.org>
16295
16296 * gtkutil.c (menu_grab_callback) <cnt>:
16297 * xselect.c (x_reply_selection_request) <cnt>: Move static
16298 variable to file scope.
16299
163002007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16301
16302 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16303 consistent values of selected_frame and selected_window.
16304
163052007-09-04 Jason Rumney <jasonr@gnu.org>
16306
16307 * w32console.c (initialize_w32_display): Zero unused hooks.
16308
163092007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16310
16311 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16312 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16313
163142007-09-04 Jason Rumney <jasonr@gnu.org>
16315
16316 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16317 in w32console.c. Set up input. Remove XXX comments that have been
16318 confirmed as correct.
16319
16320 * s/ms-w32.h (MULTI_KBOARD): Define.
16321
16322 * w32console.c (one_and_only_w32cons): Remove.
16323 (initialize_w32_display): Take terminal argument.
16324
16325 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16326 initialize_w32_display.
16327 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16328
16329 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16330
16331 * keyboard.c (discard_mouse_events): Discard it.
16332 (make_lispy_event): Translate it to a lisp event.
16333 (lispy_wheel_names): Add wheel-left and right events.
16334 (syms_of_keyboard): Enlarge wheel_syms.
16335
16336 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16337 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16338
16339 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16340
16341 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16342 from WM_MOUSEHWHEEL.
16343 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16344
16345 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16346 terminal.
16347
16348 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16349 keyboard for the terminal.
16350
163512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16352
16353 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16354 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16355 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16356 and resume-tty-function to resume-tty-hook.
16357 (Fsuspend_tty, Fresume_tty): Use new names.
16358
163592007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16360
16361 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16362 if it starts with "n:".
16363
163642007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16365
16366 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16367
163682007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16369
16370 * frame.h:
16371 * frame.c (Qterm_environment_variable): Remove.
16372 (syms_of_frame): Don't init and staticpro it.
16373
16374 * callproc.c (getenv_internal): Remove special case for $TERM.
16375
16376 * callproc.c (Vinitial_environment): New variable.
16377 (set_initial_environment): Initialize it.
16378 (syms_of_callproc): Declare it.
16379 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16380 TERM under which a process runs is never related to the TERM in which
16381 Emacs is running.
16382
163832007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16384
16385 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16386 * s/darwin.h: ... do it here.
16387
163882007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16389
16390 * lisp.h (set_initial_environment): Rename from set_global_environment.
16391
16392 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16393 removed by mistake on the multi-tty branch.
16394
16395 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16396 (Fmodify_frame_parameters): Return a value.
16397
16398 * image.c (png_load): Comment-out var only used in commented-out code.
16399
16400 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16401 before passing it to mark_object.
16402
16403 * xfaces.c (internal_resolve_face_name): Return a value.
16404 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16405
16406 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16407 (x_icon): Comment-out var only used in commented-out code.
16408
164092007-08-29 Romain Francoise <romain@orebokech.com>
16410
16411 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16412 QUIT hasn't been provided.
16413
164142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16415
16416 * callproc.c (child_setup, getenv_internal): Use the
16417 display-environment-variable and term-environment-variable frame params.
16418 (set_initial_environment): Initialise Vprocess_environment.
16419
16420 * config.in: Disable multi-keyboard support on a mac.
16421
16422 * frame.c (Qterm_environment_variable)
16423 (Qdisplay_environment_variable): New variables.
16424 (syms_of_frame): Intern and staticpro them.
16425 (Fmake_terminal_frame): Disable output method test.
16426
16427 * frame.h: Declare them here.
16428
16429 * macfns.c (x_set_mouse_color): Get rif from the frame.
16430 (x_set_tool_bar_lines): Don't use updating_frame.
16431 (mac_window): Add 2 new parameters for consistency with other systems.
16432 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16433 frame parameters following what is done in X11 and w32. Don't use
16434 FRAME_MAC_DISPLAY_INFO.
16435 (Fx_open_connection, start_hourglass): Remove window-system check.
16436 (x_create_tip_frame): Get the keyboard from the terminal.
16437
16438 * macmenu.c: Reorder includes.
16439 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16440
16441 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16442 terminal parameter.
16443 (x_clear_frame): Add a frame parameter.
16444 (note_mouse_movement): Get rif from the frame.
16445 (mac_term_init): Initialize the terminal.
16446 (mac_initialize): Make static and move terminal initialization ...
16447 (mac_create_terminal): ... to this new function.
16448
16449 * macterm.h (struct mac_display_info): Add terminal.
16450 (mac_initialize): Delete declaration.
16451
16452 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16453
16454 * sysdep.c: Comment out text after #endif.
16455
16456 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16457 is defined. Better initialize ttys in windows. Use terminal
16458 specific mouse_position_hook.
16459
16460 * termhooks.h (union display_info): Add mac_display_info.
16461
16462 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16463 Set the default minibuffer frame, window_system and the rest of the
16464 frame parameters following what is done in X11.
16465
16466 * w32term.c (w32_initialize): Make static.
16467
16468 * xselect.c (x_handle_selection_clear): Only access
16469 terminal->kboard when MULTI_KBOARD is defined.
16470
16471 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16472 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16473
164742007-08-29 Jason Rumney <jasonr@gnu.org>
16475
16476 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16477 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16478
16479 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16480 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16481
16482 * keyboard.c (restore_kboard_configuration): Only define when
16483 MULTI_KBOARD defined.
16484
16485 * makefile.w32-in: Update dependancies from Makefile.in.
16486 (OBJ1): Add terminal.$(O)
16487
16488 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16489 Don't define function body.
16490 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16491
16492 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16493
16494 * w32.c (request_sigio, unrequest_sigio): Remove.
16495
16496 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16497 (w32con_clear_frame, w32con_clear_end_of_line)
16498 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16499 (w32con_delete_glyphs, w32con_set_terminal_window)
16500 (scroll_line, w32_sys_ring_bell): Add frame arg.
16501 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16502 Add terminal arg.
16503 (PICK_FRAME): Remove.
16504 (w32con_write_glyphs): Use frame specific terminal coding.
16505 (one_and_only_w32cons): New global variable.
16506 (initialize_w32_display): Use it for storing hooks.
16507 (create_w32cons_output): New function.
16508
16509 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16510 arg a frame.
16511
16512 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16513 Set window_system.
16514 (x_set_tool_bar_lines): Don't use updating_frame.
16515 (Fx_create_frame): Set terminal and ref count.
16516 (Fx_open_connection): Remove window-system check.
16517
16518 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16519
16520 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16521 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16522 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16523 Add frame arg.
16524 (x_delete_terminal, w32_create_terminal): New functions.
16525 (w32_term_init): Create a terminal.
16526 (w32_initialize): Move terminal specific initialization to
16527 w32_create_terminal.
16528
16529 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16530 (w32_clear_rect, w32_clear_area): Use background from frame.
16531 (w32_display_info): Add terminal.
16532 (w32_sys_ring_bell, x_delete_display): Declare here.
16533
16534 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16535
16536 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16537
165382007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16539
16540 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16541 Fix get_named_tty calls for the controlling tty.
16542
165432007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16544
16545 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16546
165472007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16548
16549 * term.c (tty_insert_glyphs): Add missing first parameter.
16550
165512007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16552
16553 * buffer.c (Fbuffer_list, Fbury_buffer):
16554 Take frame->buried_buffer_list into account.
16555
16556 * cm.c (current_tty): New variable, for cmputc().
16557 (cmputc): Use it.
16558 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16559 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16560 (cmgoto): Add tty parameter. Pass it on to calccost().
16561 Use emacs_tputs() instead of tputs().
16562
16563 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16564 tputs().
16565 (current_tty): New variable, for cmputc().
16566 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16567
16568 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16569 (internal_condition_case, internal_condition_case_1)
16570 (internal_condition_case_2): Don't abort when x_catching_errors.
16571
16572 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16573 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16574 prevent crashes caused by bogus longjmps in read_char.
16575
16576 * keymap.h (Fset_keymap_parent): Add EXFUN.
16577
16578 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16579 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16580 Remove redundant definition.
16581
16582 * macfns.c (x_set_mouse_color, x_make_gc):
16583 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16584
16585 * w32term.c (x_free_frame_resources):
16586 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16587 (w32_initialize): Use the accessor macros for terminal characteristics.
16588
16589 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16590 Use the accessor macros for terminal characteristics.
16591 * msdos.c (internal_terminal_init): Use the accessor macros for
16592 terminal characteristics.
16593 (ScreenVisualBell, internal_terminal_init):
16594 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16595
16596 * termopts.h (no_redraw_on_reenter): Declare.
16597
16598 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16599 (mark_terminals, mark_ttys): Declare.
16600 (Fgarbage_collect): Call them.
16601 (mark_object): Mark buried_buffer_list.
16602
16603 * prefix-args.c: Include stdlib.h for exit.
16604
16605 * syssignal.h: Add comment.
16606
16607 * indent.c: Include stdio.h.
16608
16609 * window.h (Vinitial_window_system): Declare.
16610 (Vwindow_system): Delete declaration.
16611
16612 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16613
16614 * image.c (lookup_image): Don't initialize `c' until the xasserts
16615 have been run.
16616
16617 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16618 FRAME_FOREGROUND_PIXEL.
16619
16620 * print.c (print_preprocess): Don't lose print_depth levels while
16621 iterating.
16622
16623 * widget.c (update_from_various_frame_slots):
16624 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16625
16626 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16627 frames.
16628 (window_internal_height): Remove bogus make_number call.
16629 (init_window_once): Call make_terminal_frame with two zero parameters.
16630
16631 * fileio.c (Fread_file_name): Update comment.
16632
16633 * callint.c (Fcall_interactively):
16634 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16635 Make sure it is correctly unwound.
16636
16637 * xsmfns.c (x_session_close): New function.
16638
16639 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16640 Delete declarations.
16641
16642 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16643 (x_output): Remove background_pixel and foreground_pixel fields.
16644 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16645 (x_delete_device, x_session_close): Declare.
16646
16647 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16648 (read_filtered_event): Call `read_char' with a local
16649 `wrong_kboard_jmpbuf'.
16650
16651 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16652 Don't call single_kboard_state. Use FRAME_RIF.
16653
16654 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16655 systems.
16656
16657 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16658 (Fframe_with_environment, Fset_input_meta_mode)
16659 (Fset_quit_char): EXFUN.
16660 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16661 (init_sys_modes, reset_sys_modes): Update prototypes.
16662 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16663
16664 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16665 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16666 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16667 Delete declarations.
16668 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16669 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16670 New declarations.
16671
16672 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16673 already does that during init_display(). Call syms_of_keymap
16674 before syms_of_keyboard. Call `syms_of_terminal'.
16675 Call set_initial_environment, not set_process_environment.
16676 (shut_down_emacs): Call reset_all_sys_modes() instead of
16677 reset_sys_modes().
16678
16679 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16680 (internal_resolve_face_name, resolve_face_name_error): New functions.
16681 (resolve_face_name): Protect against loops and errors thrown by Fget.
16682 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16683 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16684
16685 * scroll.c: Replace CURTTY() with local variables throughout the
16686 file (where applicable).
16687 (calculate_scrolling, calculate_direct_scrolling)
16688 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16689 characteristics.
16690
16691 * keymap.c (Vfunction_key_map): Remove.
16692 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16693 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16694 (Vkey_translation_map): Remove.
16695 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16696 (Fdescribe_buffer_bindings)
16697 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16698 Update for terminal-local key-translation-map.
16699
16700 * Makefile.in (callproc.o): Update dependencies.
16701 (lisp, shortlisp): Add termdev.elc.
16702 (obj): Add terminal.o.
16703 (terminal.o): Add dependencies.
16704 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16705 (data.o, fns.o): Add termhooks.h dependency.
16706 (SOME_MACHINE_LISP): Add dnd.elc.
16707 (minibuf.o): Fix typo.
16708 Update dependencies.
16709
16710 * data.c (do_symval_forwarding, store_symval_forwarding)
16711 (find_symbol_value): Use the selected frame's keyboard, not
16712 current_kboard.
16713
16714 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16715 Vwindow_system.
16716
16717 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16718 Fmenu_bar_open.
16719 (syms_of_xmenu): Update defsubr.
16720 (mouse_position_for_popup, Fx_popup_menu)
16721 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16722 (set_frame_menubar, free_frame_menubar)
b97439ce 16723 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16724 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16725 an X frame.
16726
16727 * xselect.c (x_own_selection): Abort if not an X frame.
16728 (some_frame_on_display): Check if it is an X frame.
16729 (x_handle_selection_clear): Deal with MULTI_KBOARD.
16730
16731 * coding.c: Include frame.h and termhooks.h.
16732 (terminal_coding, keyboard_coding): Delete.
16733 (Fset_terminal_coding_system_internal)
16734 (Fset_keyboard_coding_system_internal)
16735 (Fkeyboard_coding_system)
16736 (Fterminal_coding_system): Add a terminal parameter.
16737 Get terminal_coding from the terminal.
16738 (init_coding_once): Don't call setup_coding_system here.
16739
16740 * dispextern.h (set_scroll_region, turn_off_insert)
16741 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
16742 (tty_clear_end_of_line, tty_setup_colors)
16743 (delete_tty, updating_frame)
16744 (produce_special_glyphs, produce_glyphs, write_glyphs)
16745 (insert_glyphs): Remove.
16746 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
16747 (tty_turn_off_highlight, get_tty_size): Add declaration.
16748 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
16749
16750 * frame.h (enum output_method): Add output_initial.
16751 (struct x_output): Delete.
16752 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16753 Access foreground_pixel and background_pixel directly from the frame.
16754 (tty_display): Delete.
16755 (struct frame): Add buried_buffer_list, foreground_pixel,
16756 background_pixel and terminal. Delete kboard.
16757 (union output_data): Add tty.
16758 (FRAME_KBOARD): Get the kboard from the terminal.
16759 (FRAME_INITIAL_P): New macro.
16760 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
16761 (Qterm_environment_variable, Qdisplay_environment_variable)
16762 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
16763 New declarations.
16764
16765 * termchar.h (tty_output, tty_display_info): New structures.
16766 (tty_list): Declare.
16767 (FRAME_TTY, CURTTY): New macros.
16768 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
16769 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
16770 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
16771 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
16772
16773 * callproc.c: Include frame.h and termhooks.h, for terminal
16774 parameters.
16775 (add_env): New function.
16776 (child_setup): Use it.
16777 (child_setup, getenv_internal): Handle the new Vprocess_environment.
16778 (getenv_internal): Fix get_terminal_param call.
16779 (Fgetenv_internal, egetenv): Update doc.
16780 (syms_of_callproc): Initialize Vprocess_environment to nil.
16781 Register and initialize them. Remove obsolete defvars. Update doc
16782 strings.
16783 (child_setup): Handle Vlocal_environment_variables.
16784 (getenv_internal): Add terminal parameter.
16785 Handle Vlocal_environment_variables.
16786 (Fgetenv_internal): Add terminal parameter.
16787 (child_setup, getenv_internal, Fgetenv_internal): Store the local
16788 environment in a frame (not terminal) parameter. Update doc strings.
16789 (set_initial_environment): Rename from set_global_environment.
16790 Store Emacs environment in initial frame parameter.
16791
16792 * xdisp.c (redisplay_internal): Update references to
16793 `previous_terminal_frame'.
16794 (display_mode_line, Fformat_mode_line): Replace calls to
16795 `push_frame_kboard' with `push_kboard'.
16796 (get_glyph_string_clip_rects): Add extra parentheses and
16797 braces to prevent compiler warnings.
16798 (calc_pixel_width_or_height): Add xassert to check that the
16799 frame is alive. Don't call `lookup_image' on a termcap frame.
16800 (message2_nolog, message3_nolog, redisplay_internal)
16801 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
16802 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
16803 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
16804 (Fx_display_pixel_width, Fx_display_pixel_height)
16805 (Fx_display_planes, Fx_display_color_cells)
16806 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
16807 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
16808 (Fx_display_backing_store, Fx_display_visual_class)
16809 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
16810 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
16811
16812 * xfns.c (x_set_foreground_color x_set_background_color)
16813 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
16814 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16815 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
16816 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
16817 terminal that is being deleted.
16818 (Fx_create_frame): Use `store_frame_param' to set `window-system'
16819 frame parameter, and make sure it overrides any user-supplied setting.
16820 (Fx_close_connection, Fx_synchronize): Unify argument names with
16821 the rest of the DEFUNs.
16822
16823 * dispnew.c (Fsend_string_to_terminal): Update call to
16824 `get_tty_terminal'.
16825 (Fredraw_frame, Fsend_string_to_terminal)
16826 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
16827 FRAME_TERMCAP_P and FRAME_TTY.
16828 (window_change_signal): Don't believe width/height values that are
16829 impossibly small.
16830 (Vinitial_window_system): Rename from Vwindow_system.
16831 (termscript, Wcm, rif): Delete.
16832
16833 * termhooks.h (struct terminal): New struct containing the
16834 previously global text display hooks and new members NAME,
16835 DELETED and PARAM_ALIST.
16836 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
16837 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
16838 (FRAME_RIF): New macros.
16839 (get_terminal_param, get_device): New declarations.
16840 (termscript): Delete declaration.
16841
16842 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
16843 (XTflash, x_free_frame_resources, x_scroll_bar_create)
16844 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
16845 FRAME_FOREGROUND_PIXEL.
16846 (x_fully_uncatch_errors): Disable definition.
16847 (x_scroll_bar_expose): Fix reference to foreground pixel.
16848 (XTread_socket): Disable loop on all X displays.
16849 (x_delete_terminal): Don't set terminal->deleted and let
16850 delete_terminal delete the frames on the terminal.
16851 (x_delete_display): Doc update to reflect changes in
16852 delete_terminal.
16853 (x_display_info) <terminal>: Move member earlier in the struct.
16854 (deleting_tty): Remove old variable.
16855 (Fsuspend_tty): Call clear_tty_hooks.
16856 (Fresume_tty, init_tty): Call set_tty_hooks.
16857 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
16858 errors on X frames.
16859 (x_catch_errors_unwind): Abort if x_error_message is NULL.
16860 (handle_one_xevent): Initialize `f' to NULL.
16861 (x_delete_terminal, x_create_terminal): New functions.
16862 (XTset_terminal_modes, XTreset_terminal_modes)
16863 (XTread_socket, x_connection_closed, x_term_init)
16864 (x_term_init, x_delete_display): Add terminal parameter.
16865 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
16866 X connections.
16867
16868 * frame.c: Include termchar.h.
16869 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
16870 (Qwindow_system, Qenvironment, Qterm_environment_variable)
16871 (Qdisplay_environment_variable): New vars.
16872 (Fframep): Deal with output_initial.
16873 (Fframe-live-p): Doc fix.
16874 (Fwindow-system): New function.
16875 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
16876 (make_terminal_frame): Don't create frames on a terminal that is
16877 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16878 (store_frame_param): Check for found_for_frame before calling XFRAME.
16879 (Fmake_terminal_frame): Handle NULL tty names correctly.
16880 (syms_of_frame): Enhance doc string of `default-frame-alist'.
16881 (Fdelete_frame): Remove unused variable `count'. Don't allow other
16882 frames to refer to a deleted frame in their 'environment parameter.
16883 (Fframe_with_environment): New function.
16884 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
16885 (get_future_frame_param): New function.
16886 (Fmake_terminal_frame): Use it.
16887 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
16888
16889 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
16890 * sysdep.c (reset_sys_modes): Update for renames.
16891
16892 * keyboard.c (tty_read_avail_input): New function.
16893 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
16894 (syms_of_keyboard): Defsubr them.
16895 (Fset_input_meta_mode, Fset_quit_char): New functions.
16896 (Fset_input_mode): Split to above functions.
16897 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
16898 parameter. Use it in call to `read_char'.
16899 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
16900 Set wrong_kboard_jmpbuf correctly in recursive calls.
16901 Use current_kboard to access Vkeyboard_translate_table.
16902 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
16903 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
16904 Update longjmp invocations. Remember the original current_kboard,
16905 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
16906 changes it. Comment out unnecessary calls to
16907 `record_single_kboard_state' and `any_kboard_state'.
16908 Update recursive calls.
16909 (wrong_kboard_jmpbuf): Remove global variable.
16910 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
16911 Handle deleted interrupted_kboards correctly; that is a legal
16912 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
16913 and read_char calls. Abort if interrupted_kboard died in read_char.
16914 (any_kboard_state, single_kboard_state)
16915 (push_frame_kboard): Remove function.
16916 (pop_kboard): Switch out of single_kboard mode if the kboard has
16917 been deleted. Remove unused variable. Help debugging by not
16918 changing current_kboard unnecessarily. Set current_kboard to the
16919 kboard of the selected frame when the stored kboard object has
16920 been deleted before pop_kboard.
16921 (temporarily_switch_to_single_kboard): Change first parameter to a
16922 frame pointer. Throw an error when caller wants to change kboards
16923 while in single_kboard mode. Don't push_kboard if we weren't in
16924 single kboard state. Don't pop_kboard if we popped into any
16925 kboard state.
16926 (restore_kboard_configuration): Abort if pop_kboard changed the
16927 kboard in single_kboard mode. Call pop_kboard only after setting
16928 up single_kboard mode.
16929 (Frecursive_edit): Switch to single_kboard mode only in nested
16930 command loops.
16931 (cmd_error, command_loop, command_loop_1, timer_check):
16932 Comment out unnecessary call to `any_kboard_state' and
16933 `record_single_kboard_state'.
16934 (delete_kboard): Exit single_kboard mode if we have just deleted
16935 that kboard. Use FRAME_KBOARD.
16936 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
16937 `fatal_error_signal'.
16938 (record_single_kboard_state): Don't push_kboard if we weren't in
16939 single kboard state. Don't pop_kboard if we popped into any
16940 kboard state.
16941 (push_frame_kboard): Rename to push_kboard.
16942 (kbd_buffer_get_event): Use FRAME_TERMINAL.
16943 (read_avail_input): Read input from all terminals.
16944 (mark_kboards): Also mark Vkeyboard_translate_table.
16945 (kbd_buffer_store_event_hold): Simplify condition.
16946 (read_key_sequence): Reinitialize fkey and keytran at each replay.
16947 (Vkeyboard_translate_table): Move to struct kboard.
16948 (init_kboard): Initialize Vkeyboard_translate_table.
16949 (syms_of_keyboard): Use DEFVAR_KBOARD to define
16950 Vkeyboard_translate_table. Update doc strings. Update docs of
16951 local-function-key-map and function-key-map.
16952
16953 * terminal.c: New file.
16954
16955 * term.c: Include errno.h.
16956 (Vring_bell_function, device_list, initial_device)
16957 (next_device_id, ring_bell, update_begin, update_end)
16958 (set_terminal_window, cursor_to, raw_cursor_to)
16959 (clear_to_end, clear_frame, clear_end_of_line)
16960 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
16961 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
16962 (syms_of_term): Move their initialization to terminal.c.
16963 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
16964 (Ftty_display_color_cells)
16965 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
16966 (clear_tty_hooks, set_tty_hooks)
16967 (init_tty, maybe_fatal): New functions.
16968 (Ftty_type): Return nil if terminal is not on a tty instead of
16969 throwing an error. Doc update.
16970 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
16971 Doc update. Initialize new subrs and variables.
16972 (delete_tty): Use terminal->deleted.
16973 (tty_set_terminal_modes): Rename from set_terminal_modes.
16974 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
16975 (set_scroll_region): Rename to `tty_set_scroll_region'.
16976 (turn_on_insert): Rename to `tty_turn_on_insert'.
16977 (turn_off_insert): Rename to `tty_turn_off_insert'.
16978 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
16979 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
16980 (toggle_highligh): Rename to `tty_toggle_highlight'.
16981 (background_highlight): Rename to `tty_background_highlight'.
16982 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
16983 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
16984 (tty_set_scroll_region, tty_background_highlight)
16985 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
16986 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
16987 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
16988 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
16989 Add static modifier.
16990 (tty_reset_terminal_modes, tty_set_terminal_window)
16991 (tty_set_scroll_region, tty_background_highlight)
16992 (tty_highlight_if_desired, tty_cursor_to)
16993 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
16994 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
16995 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
16996 renames.
16997
169982007-08-28 Jan Djärv <jan.h.d@swipnet.se>
16999
17000 * keyboard.c: Qrtl is new.
17001 (parse_tool_bar_item): Handle :rtl keyword.
17002 (syms_of_keyboard): Intern :rtl keyword.
17003
17004 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17005
17006 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17007 so no Lisp code is executed.
17008 (file_for_image, find_rtl_image): New functions.
17009 (xg_get_image_for_pixmap): Use file_for_image.
17010 (update_frame_tool_bar): If direction is RTL, use RTL image if
17011 defined. Use Gtk stock images if defined.
17012
170132007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17014
17015 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17016 for nonexistent or zero-width glyph in composition glyph.
17017
170182007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17019
17020 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17021
17022 * xdisp.c (Finvisible_p): New function.
17023 (syms_of_xdisp): defsubr it.
17024
170252007-08-24 Juanma Barranquero <lekktu@gmail.com>
17026
17027 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17028 Doc fixes.
17029
170302007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17031
17032 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17033
170342007-08-24 Martin Rudalics <rudalics@gmx.at>
17035
17036 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17037 whether decoding has modified buffer contents.
17038
170392007-08-24 Jason Rumney <jasonr@gnu.org>
17040
17041 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17042 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17043 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17044 (init_svg_functions) [HAVE_NTGUI]: New function.
17045 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17046 (svg_load_image): Use them.
17047 (svg_load_image) [HAVE_NTGUI]: Implement background.
17048
170492007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17050
17051 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17052 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17053 (LIBX): Remove @RSVG_LIBS@.
17054 (LIBES): Add $(RSVG_LIBS).
17055
17056 * image.c (svg_load_image): Blend with specified background if exists.
17057 Use IMAGE_BACKGROUND. Add Mac OS Support.
17058
17059 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17060 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17061 Remove macros.
17062 [MAC_OSX] (socket_callback): Do nothing.
17063 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17064 ReceiveNextEvent.
17065 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17066 socket_callback.
17067 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17068
170692007-08-22 Glenn Morris <rgm@gnu.org>
17070
17071 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17072
170732007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17074
17075 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17076
17077 * image.c: Add support for SVG images. Some additional comments
17078 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17079 (svg_image_p): New function to test for SVG image.
17080 (svg_load): New function to load SVG image.
17081 (svg_load_image): New function, helper for svg_load.
17082 (Qsvg): New Lisp_object.
17083 (svg_keyword_index): New enum.
17084 (svg_format): New static `image_keyword' struct.
17085 (svg_type): New static `image_type' struct.
17086 (librsvg/rsvg.h): Include it.
17087
170882007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17089
17090 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17091
170922007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17093
17094 * lread.c (Qold_style_backquotes): New var.
17095 (syms_of_lread): Init and staticpro it.
17096 (load_warn_old_style_backquotes): New fun.
17097 (Fload): Use them to warn about old style backquotes.
17098 (end_of_file_error, Fload): Remove unused vars.
17099
17100 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17101
17102 * lread.c (Vold_style_backquotes): New var.
17103 (syms_of_lread): Init and export it to Elisp.
17104 (read1): Set it when we find an old-style (back)quote.
17105
171062007-08-22 Jason Rumney <jasonr@gnu.org>
17107
17108 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17109
171102007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17111
17112 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17113
171142007-08-19 Richard Stallman <rms@gnu.org>
17115
17116 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17117
171182007-08-19 Andreas Schwab <schwab@suse.de>
17119
17120 * alloc.c (pure): Round PURESIZE up.
17121
171222007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17123
17124 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17125 active frame.
17126
171272007-08-16 Richard Stallman <rms@gnu.org>
17128
17129 * eval.c (Fcommandp): Add parens to clarify.
17130
17131 * minibuf.c (Fall_completions): Use enum for type of table.
17132
17133 * emacs.c (USAGE2): Improve text.
17134
171352007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17136
17137 * term.c (tty_default_color_capabilities): Declare static
17138 variables in file scope, to avoid HPUX compiler problem.
17139
171402007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17141
17142 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17143 to gtk_toolbar_insert.
17144
171452007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17146
17147 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17148
17149 * insdel.c (reset_var_on_error): New fun.
17150 (signal_before_change, signal_after_change):
17151 Use it to reset (after|before)-change-functions to nil in case of error.
17152 Bind inhibit-modification-hooks to t.
17153 Don't bind (after|before)-change-functions to nil while they run.
17154
171552007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17156
17157 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17158 filling pixmap with stippled background.
17159
171602007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17161
17162 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17163 Don't use invisible frame as parent window for repositioning.
17164
171652007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17166
17167 * print.c (new_backquote_output): Rename from old_backquote_output.
17168 (print): Inverse its logic (according to its name) so as to match the
17169 behavior of new_backquote_flag in lread.c.
17170
171712007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17172
17173 * gmalloc.c (posix_memalign): New function.
17174
17175 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17176 ActivateControl/DeactivateControl here.
17177 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17178 frame-notice-user-settings is non-nil.
17179 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17180 for kEventParamFMFontStyle.
17181 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17182 mac_pass_command_to_system and mac_pass_control_to_system here.
17183 (XTread_socket): Call ActivateControl/DeactivateControl here.
17184 (XTread_socket) [TARGET_API_MAC_CARBON]:
17185 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17186 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17187 for window repositioning.
17188
171892007-08-08 Glenn Morris <rgm@gnu.org>
17190
17191 * Replace `iff' in doc-strings and comments.
17192
171932007-08-07 Chong Yidong <cyd@stupidchicken.com>
17194
17195 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17196
171972007-08-07 Martin Rudalics <rudalics@gmx.at>
17198
17199 * fileio.c (Finsert_file_contents): Run format-decode and
17200 after_insert_file_functions on entire buffer when REPLACE is
17201 non-nil and inhibit modification_hooks and point_motion_hooks.
17202 For consistency, run after_insert_file_functions iff something
17203 got inserted. Move signal_after_change and update_compositions
17204 after code running after_insert_file_functions. Make sure that
17205 undo_list doesn't record intermediate steps of the decoding process.
17206
172072007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17208
17209 * emacs.c (main)
17210 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17211 Call malloc_enable_thread on interactive startup.
17212
17213 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17214 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17215 [USE_PTHREAD]: Conditionalize with it.
17216 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17217 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17218 New functions.
17219
172202007-08-06 Chong Yidong <cyd@stupidchicken.com>
17221
17222 * xdisp.c (redisplay_window): When restoring original buffer
17223 position, make sure it is still valid.
17224
17225 * image.c (png_load): Ignore png-supplied background color.
17226
172272007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17228
17229 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17230 Use kCFAbsoluteTimeIntervalSince1970.
17231
17232 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17233 New variable.
17234 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17235 event loop should be quit.
17236 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17237 Quit dialog event loop if quit_dialog_event_loop is set.
17238
17239 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17240 (Selection): New typedef. Use instead of ScrapRef.
17241 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17242 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17243 (mac_clear_selection): Rename from clear_scrap.
17244 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17245 scrap_has_target_type. All uses changed.
17246 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17247 (mac_selection_has_target_p): New functions.
17248 (mac_put_selection_value): Rename from put_scrap_string.
17249 (mac_get_selection_value): Rename from get_scrap_string.
17250 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17251 (put_scrap_private_timestamp, scrap_has_target_type)
17252 (get_scrap_private_timestamp): Remove functions.
17253 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17254 (x_own_selection, x_get_local_selection):
17255 Use mac_valid_selection_value_p.
17256 (x_own_selection): Don't use put_scrap_private_timestamp.
17257 Record OWNERSHIP-INFO into Vselection_alist instead.
17258 (x_get_local_selection): Don't check type if request is local.
17259 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17260 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17261
172622007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17263
17264 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17265 add comment explaining why.
17266
172672007-08-03 Richard Stallman <rms@gnu.org>
17268
17269 * fileio.c (Fvisited_file_modtime): Use make_time.
17270
172712007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17272
17273 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17274 build.
17275
172762007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17277
17278 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17279
172802007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17281
17282 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17283
172842007-07-30 Richard Stallman <rms@gnu.org>
17285
17286 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17287
172882007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17289
17290 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17291
172922007-07-28 Nick Roberts <nickrob@snap.net.nz>
17293
17294 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17295 remote default-directory.
17296
17297 * buffer.c (mode-line-format): Update doc string.
17298
172992007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17300
17301 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17302 scroll bar gap.
17303 (x_scroll_bar_create): Set bar->fringe_extended_p.
17304 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17305 on frame edge. Check fringe background extension. Don't clear
17306 extended fringe background area.
17307
17308 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17309 (w32_fill_area): Enclose multiple statements with do ... while (0).
17310
17311 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17312 Extend fringe background to scroll bar gap.
17313 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17314 Set bar->fringe_extended_p.
17315 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17316 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17317 background extension. Don't clear extended fringe background area.
17318
17319 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17320 New member fringe_extended_p.
17321
173222007-07-25 Glenn Morris <rgm@gnu.org>
17323
17324 * Relicense all FSF files to GPLv3 or later.
17325
17326 * COPYING: Switch to GPLv3.
17327
173282007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17329
17330 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17331
17332 * data.c (Finteractive_form): Check for the presence of an
17333 `interactive-form' symbol property more thoroughly.
17334
17335 * data.c (Finteractive_form): Use an `interactive-form' property if
17336 present, analogous to the function-documentation property.
17337
173382007-07-24 Jason Rumney <jasonr@gnu.org>
17339
17340 * w32fns.c (x_real_positions): Get real position from OS instead of
17341 calculating it.
17342
173432007-07-23 Jason Rumney <jasonr@gnu.org>
17344
17345 * filelock.c (current_lock_owner): Allow for @ sign in username.
17346
173472007-07-22 Nick Roberts <nickrob@snap.net.nz>
17348
17349 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17350 remote default-directory.
17351
17352 * buffer.c (mode-line-format): Describe above case in doc string.
17353
173542007-07-20 Eli Zaretskii <eliz@gnu.org>
17355
17356 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17357 Define if not defined.
17358
173592007-07-18 Jason Rumney <jasonr@gnu.org>
17360
17361 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17362
173632007-07-18 Richard Stallman <rms@gnu.org>
17364
17365 * data.c (Fsetq_default): Doc fix.
17366
17367 * eval.c (Fsetq): Doc fix.
17368
173692007-07-18 Juanma Barranquero <lekktu@gmail.com>
17370
17371 * coding.c (Ffind_operation_coding_system):
17372 * eval.c (For, Fand): Doc fixes.
17373 Reported by Johan Bockgård.
17374
173752007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17376
17377 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17378
17379 * xterm.h: Declare x_ewmh_activate_frame.
17380
17381 * xterm.c (x_ewmh_activate_frame): New function.
17382 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17383
173842007-07-17 Martin Rudalics <rudalics@gmx.at>
17385
17386 * window.c (Fdisplay_buffer): If largest or LRU window is the
17387 only window, split it even if it is not eligible for splitting.
17388 This restores the original behavior broken by the 2007-07-15
17389 change.
17390
173912007-07-17 Glenn Morris <rgm@gnu.org>
17392
17393 * abbrev.c (abbrev_check_chars): New function.
17394 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17395 Call abbrev_check_chars to check abbrev characters are word
17396 constituents. Doc fix.
17397
173982007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17399
17400 * process.c (Fstart_process, Fmake_network_process)
17401 (read_process_output): Fix up last changes.
17402
174032007-07-16 Eli Zaretskii <eliz@gnu.org>
17404
17405 * makefile.w32-in (clean): Don't delete *~.
17406
174072007-07-16 Andreas Schwab <schwab@suse.de>
17408
17409 * window.c (Fdisplay_buffer): Use NILP.
17410 (Fset_window_scroll_bars): Likewise.
17411
174122007-07-15 Martin Rudalics <rudalics@gmx.at>
17413
17414 * window.c (window_min_size_2): New function.
17415 (window_min_size_1, size_window, Fdisplay_buffer)
17416 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17417 windows without mode- or header-lines when window-min-height is
17418 too small.
17419 (size_window): Reset nodelete_p after testing it, following an
17420 earlier note by Kim F. Storm.
17421 (display_buffer): Do not set split_height_threshold to twice the
17422 value of window_min_height to avoid changing the value of a
17423 customizable variable. Rather explicitly check whether the
17424 height of the window that shall be splitted is at least as large
17425 as split_height_threshold.
17426 (Fwindow_full_width_p): New defun.
17427 (syms_of_window): Defsubr it.
17428
17429 * window.h: Add EXFUN for Fwindow_full_width_p.
17430
174312007-07-14 Jason Rumney <jasonr@gnu.org>
17432
17433 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17434
174352007-07-14 Richard Stallman <rms@gnu.org>
17436
17437 * eval.c (maybe_call_debugger): New function.
17438 (find_handler_clause): Use maybe_call_debugger.
17439 Call it when the handler says `debug'.
17440 Eliminate DEBUGGER_VALUE_PTR.
17441 (Fsignal): Eliminate debugger_value.
17442 (Qdebug): New variable.
17443 (syms_of_eval): Initialize it.
17444
174452007-07-14 Juanma Barranquero <lekktu@gmail.com>
17446
17447 * eval.c (Fprogn):
17448 * keyboard.c (Ftrack_mouse):
17449 * print.c (Fwith_output_to_temp_buffer):
17450 * window.c (Fsave_window_excursion): Doc fix.
17451
174522007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17453
17454 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17455
174562007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17457
17458 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17459 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17460 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17461 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17462 Remove unused encoding_carryover.
17463 * process.c: Adjust all functions accordingly.
17464
174652007-07-12 Richard Stallman <rms@gnu.org>
17466
17467 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17468
174692007-07-11 Jason Rumney <jasonr@gnu.org>
17470
17471 * makefile.w32-in (LIBS): Include OLE32.
17472
17473 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17474 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17475
174762007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17477
17478 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17479 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17480 from a Lisp_Object into a bare pointer.
17481 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17482 Adjust the code correspondingly.
17483
17484 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17485
17486 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17487 (term_show_mouse_face): Remove unused var `j'.
17488 (handle_one_term_event): Remove unused vars `i' and `j'.
17489 Don't cast return value of ttyname since it's not necessary.
17490
174912007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17492
17493 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17494 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17495
17496 * fns.c (map_char_table): Use an array of int for `indices' rather than
17497 an array of Lisp_Objects (which are only ever integers anyway).
17498 (Fmap_char_table): Update caller.
17499 * lisp.h: Update prototype.
17500 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17501 * fontset.c (Ffontset_info):
17502 * casetab.c (set_case_table): Update callers.
17503
17504 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17505
17506 * keymap.c (struct accessible_keymaps_data)
17507 (struct where_is_internal_data): New structures.
17508 (accessible_keymaps_1, where_is_internal_1): Use them to change
17509 interface to adhere to the one used by map_keymap.
17510 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17511 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17512
17513 * keymap.h (map_keymap_function_t): More informative prototype.
17514
175152007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17516
17517 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17518 (looking_at_1): Don't change search_regs and last_thing_searched
17519 if `inhibit-changing-match-data' is non-nil.
17520 (string_match_1, search_buffer, set_search_regs): Likewise.
17521 (syms_of_search): Add Lisp level definition for
17522 `inhibit-changing-match-data' and set it to nil.
17523 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17524 start and end of the match, instead of using values in search_regs.
17525
175262007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17527
17528 * minibuf.c (Fcompleting_read): New value `confirm-only'
17529 for `require-match'.
17530
175312007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17532
17533 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17534 part of the 2007-06-27 change to syms_of_fileio.
17535
175362007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17537
17538 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17539 Check WINDOWP before using XWINDOW. Consolidate return statements.
17540
175412007-06-27 Richard Stallman <rms@gnu.org>
17542
17543 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17544
175452007-06-27 Juanma Barranquero <lekktu@gmail.com>
17546
17547 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17548
175492007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17550
17551 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17552 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17553 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17554 (_free_internal, memalign): Use them.
17555 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17556 Initialize to PTHREAD_MUTEX_INITIALIZER.
17557 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17558 (morecore_nolock): Rename from morecore. All uses changed.
17559 Use only nolock versions of internal allocation functions.
17560 (_malloc_internal_nolock, _realloc_internal_nolock)
17561 (_free_internal_nolock): New functions created from
17562 _malloc_internal, _realloc_internal, and _free_internal.
17563 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17564 Copy hook value to automatic variable before its use.
17565 (memalign): Copy hook value to automatic variable before its use.
17566
175672007-06-26 Kenichi Handa <handa@m17n.org>
17568
17569 * coding.c (Ffind_operation_coding_system): Docstring improved.
17570 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17571
175722007-06-25 David Kastrup <dak@gnu.org>
17573
17574 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17575 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17576 cater for additional parameter.
17577
17578 * keymap.h: Adjust number of parameters to `current-active-maps'.
17579
17580 * doc.c (Fsubstitute_command_keys): Adjust call of
17581 `current-active-maps'.
17582
175832007-06-25 David Kastrup <dak@gnu.org>
17584
17585 * callint.c (Fcall_interactively): Make the parsing of interactive
17586 specs somewhat more readable.
17587
175882007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17589
17590 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17591 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17592 if extended background has already been filled.
17593
175942007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17595
17596 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17597 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17598
17599 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17600 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17601 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17602 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17603 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17604 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17605 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17606 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17607 Run timers during dialog popup.
17608 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17609
176102007-06-21 Jason Rumney <jasonr@gnu.org>
17611
17612 * image.c (convert_mono_to_color_image): Swap fore and background.
17613
176142007-06-20 Jason Rumney <jasonr@gnu.org>
17615
17616 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17617 (w32_free_bdf_font): Unmap memory not handle.
17618
176192007-06-20 Sam Steingold <sds@gnu.org>
17620
17621 * gmalloc.c (__morecore): Fix the declaration to comply with the
17622 definition.
17623
176242007-06-20 Juanma Barranquero <lekktu@gmail.com>
17625
17626 * w32term.c (w32_delete_display): Remove leftover declaration.
17627 (w32_define_cursor, w32_initialize): Make static.
17628
17629 * w32.c (_wsa_errlist): Fix typo in error message.
17630 (init_environment): Ignore any environment variable from the
17631 registry having a null value.
17632
176332007-06-20 Glenn Morris <rgm@gnu.org>
17634
17635 * Makefile.in (LIBGIF): Default to -lgif.
17636
176372007-06-17 Jason Rumney <jasonr@gnu.org>
17638
17639 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17640 unicode strings.
17641
176422007-06-16 Juanma Barranquero <lekktu@gmail.com>
17643
17644 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17645 Fix typo in docstring.
17646
176472007-06-16 Eli Zaretskii <eliz@gnu.org>
17648
17649 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17650 and their keybindings.
17651
176522007-06-15 Chong Yidong <cyd@stupidchicken.com>
17653
17654 * composite.c (update_compositions): Fix last fix.
17655
176562007-06-14 Jason Rumney <jasonr@gnu.org>
17657
17658 * w32.c (get_process_times_fn): New function pointer.
17659 (globals_of_w32): Intialize it if present in kernel32.dll.
17660 (w32_get_internal_run_time): New function.
17661
17662 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17663
176642007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17665
17666 * composite.c (update_compositions): Check the validness of
17667 compositions.
17668
176692007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17670
17671 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17672 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17673
17674 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17675 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17676
17677 * macgui.h (USE_MAC_TOOLBAR): New define.
17678
17679 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17680 Return immediately unless popup is activated.
17681
17682 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17683 background to scroll bar gap.
17684 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17685 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17686 scroll bars on frame edge. Check fringe background extension.
17687 Don't clear extended fringe background area.
17688 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17689 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17690 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17691 [USE_MAC_TOOLBAR]: New macros.
17692 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17693 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17694 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17695 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17696 [USE_MAC_TOOLBAR]: New functions.
17697 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17698 manually if previous repositioning has failed.
17699 (mac_handle_keyboard_event): Use precomputed event kind.
17700 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17701 as tool bar item click. Handle mouse movement over tool bar items.
17702
17703 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17704 toolbar_win_gravity.
17705 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17706 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17707 Add externs.
17708
17709 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17710 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17711
177122007-06-14 Chong Yidong <cyd@stupidchicken.com>
17713
17714 * image.c (search_image_cache): Remove unused variable.
17715
177162007-06-13 Chong Yidong <cyd@stupidchicken.com>
17717
17718 * xfns.c, xmenu.c: Link to xaw3d if available.
17719
177202007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17721
17722 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17723 frame_foreground and frame_background.
17724
17725 * image.c (lookup_image): Save frame foreground and background colors.
17726 (search_image_cache): Check if saved and current frame colors match.
17727
177282007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17729
17730 * regex.c (regex_compile): Remove the `regnum' counter.
17731 Use bufp->re_nsub instead. Add support for \(?N:RE\).
17732
177332007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17734
17735 * term.c: Include intervals.h to declare Fget_text_property.
17736
177372007-06-10 Jason Rumney <jasonr@gnu.org>
17738
17739 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
17740
177412007-06-08 Juanma Barranquero <lekktu@gmail.com>
17742
17743 * callint.c (Fcall_interactively):
17744 * editfns.c (Fdelete_and_extract_region):
17745 * fileio.c (Fread_file_name):
17746 * fns.c (Fmapconcat):
17747 * keyboard.c (cmd_error_internal):
17748 * keymap.c (Fkey_description):
17749 * lread.c (openp):
17750 * minibuf.c (read_minibuf):
17751 * search.c (wordify):
17752 * sunfns.c (sel_read):
17753 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
17754 * xfns.c (x_default_scroll_bar_color_parameter):
17755 * xmenu.c (menu_help_callback):
17756 * xselect.c (Fx_get_atom_name):
17757 * xterm.c (x_term_init): Use empty_unibyte_string.
17758
177592007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
17760
17761 * alloc.c (init_strings): Initialize canonical empty strings.
17762 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
17763 canonical empty string when the requested size is 0.
17764
17765 * emacs.c (empty_unibyte_string): Rename from empty_string.
17766 (empty_multibyte_string): New canonical empty string.
17767 (syms_of_emacs): Don't initialize empty_string.
17768
17769 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
17770 string, if appropriate.
17771 (empty_unibyte_string, empty_multibyte_string): New externs.
17772 (empty_string): Remove extern.
17773
17774 * lread.c (syms_of_lread): Use empty_unibyte_string.
17775
177762007-06-07 Jason Rumney <jasonr@gnu.org>
17777
17778 * s/ms-w32.h: Don't define HAVE_TZNAME.
17779
17780 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
17781
177822007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17783
17784 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
17785
17786 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
17787 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
17788
17789 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17790 Don't call next handler.
17791 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
17792 Remove argument. Install handler to application.
17793 (set_frame_menubar): Don't change deep_p.
17794 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
17795 FRAME_OUTER_TO_INNER_DIFF_Y.
17796 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17797 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17798 [HAVE_DIALOGS]: New macros.
17799 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
17800 Use them.
17801 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
17802
17803 * macselect.c [MAC_OSX] (install_service_handler): Rename from
17804 init_service_handler. All callers changed. Return OSStatus value.
17805
17806 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
17807 All callers changed so as not to call SetPortWindowPort.
17808 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
17809 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
17810 mac_draw_string_common.
17811 (mac_draw_image_string_qd): Likewise.
17812 (mac_draw_string_common): Use them. Add INLINE.
17813 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
17814 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
17815 GetGlobalMouse.
17816 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
17817 and FRAME_OUTER_TO_INNER_DIFF_Y.
17818 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
17819 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
17820 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
17821 repositioning window to mac_handle_window_event.
17822 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
17823 saving window location to mac_handle_window_event
17824 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
17825 (install_menu_target_item_handler): Remove argument in extern.
17826 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
17827 Also accept command events.
17828 (do_keystroke): New function created from XTread_socket.
17829 (init_command_handler): Remove functions.
17830 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
17831 and save window location by kEventWindowShowing and kEventWindowHiding
17832 handlers here. Don't call next handler for window state change and
17833 focus events.
17834 (mac_handle_application_event, mac_handle_keyboard_event)
17835 [TARGET_API_MAC_CARBON]: New functions.
17836 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
17837 kEventWindowShowing and kEventWindowHiding events. Move installation
17838 of mouse, font, text input and menu target item handlers to
17839 install_application_handler.
17840 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
17841 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17842 New function.
17843 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17844 Register it.
17845 (XTread_socket) [TARGET_API_MAC_CARBON]:
17846 Consolidate SendEventToEventTarget calls.
17847 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
17848 Move application activation handler to mac_handle_application_event.
17849 Move keyboard handler to mac_handle_keyboard_event.
17850 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
17851 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
17852 init_command_handler. Call install_application_handler.
17853
17854 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
17855 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
17856
178572007-06-07 Glenn Morris <rgm@gnu.org>
17858
17859 * emacs.c (main): Use `emacs-copyright' in --version output.
17860
178612007-06-06 Chong Yidong <cyd@stupidchicken.com>
17862
17863 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
17864
178652007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17866
17867 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
17868
17869 * macgui.h: Replace WindowPtr with WindowRef.
17870
17871 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17872 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17873 Replace ControlHandle with ControlRef.
17874 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
17875
17876 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17877 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17878 Replace ControlHandle with ControlRef.
17879 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
17880 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
17881
17882 * macterm.h (struct scroll_bar): Rename member control_handle_low
17883 and control_handle_high to control_ref_low and control_ref_high.
17884 All uses changed.
17885 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
17886 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
17887 respectively. All uses changed.
17888 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
17889 (install_window_handler, remove_window_handler): Replace WindowPtr
17890 with WindowRef in externs.
17891
178922007-06-05 Juanma Barranquero <lekktu@gmail.com>
17893
17894 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
17895
178962007-06-03 Nick Roberts <nickrob@snap.net.nz>
17897
17898 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
17899
17900 * frame.c (Fmouse_position, Fmouse_pixel_position):
17901 Condition on HAVE_GPM too.
17902
17903 * term.c (term_mouse_highlight): Remove unused variables.
17904 (Fterm_open_connection): Set gpm_zerobased to 1.
17905 (term_mouse_movement, term_mouse_click, handle_one_term_event):
17906 Use zero based co-ordinates.
17907 (handle_one_term_event): Report a drag as mouse movement too.
17908
17909 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
17910
179112007-06-03 Chong Yidong <cyd@stupidchicken.com>
17912
17913 * image.c (search_image_cache): New function. Require background
17914 color match if background color is unspecified in the image spec.
17915 (uncache_image, lookup_image): Use it.
17916
179172007-06-01 Juanma Barranquero <lekktu@gmail.com>
17918
17919 * window.c (Fshrink_window): Reflow docstring.
17920
179212007-06-02 Chong Yidong <cyd@stupidchicken.com>
17922
17923 * Version 22.1 released.
17924
179252007-06-01 Richard Stallman <rms@gnu.org>
17926
17927 * xfns.c (x_encode_text): Add GCPRO.
17928
179292007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17930
17931 * xfns.c (x_set_name_internal): Save encoded name before
17932 x_encode_text in case string data is relocated.
17933
179342007-05-31 Richard Stallman <rms@gnu.org>
17935
17936 * buffer.c (syms_of_buffer): Doc fix.
17937
179382007-05-30 Nick Roberts <nickrob@snap.net.nz>
17939
17940 * sysdep.c (init_sys_modes): Add rather than replace with
17941 O_NONBLOCK.
17942
17943 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
17944 term_mouse_moveto.
17945
17946 * termhooks.h (term_mouse_moveto): New extern.
17947
17948 * term.c (mouse_face_window): Rename...
17949 (Qmouse_face_window): ...to this.
17950 (term_show_mouse_face, term_clear_mouse_face)
17951 (term_mouse_highlight): Use Qmouse_face_window.
17952 (term_mouse_moveto): New function.
17953 (term_mouse_position): Make it work.
17954 (syms_of_term): Uncomment assignment to mouse_position_hook.
17955 Staticpro Qmouse_face_window.
17956
179572007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17958
17959 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
17960 around current_column call.
17961
179622007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
17963
17964 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
17965 * xdisp.c (next_element_from_buffer):
17966 * window.c (delete_window):
17967 * term.c (term_mouse_highlight):
17968 * msdos.c (getdefdir):
17969 * macterm.c (mac_create_bitmap_from_bitmap_data)
17970 (init_font_name_table):
17971 * fns.c (Fsxhash):
17972 * data.c (Fmake_local_variable):
17973 * ccl.c (ccl_driver): Likewise.
17974
179752007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17976
17977 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
17978 Call mac_wakeup_from_rne on window size change.
17979
179802007-05-25 Chong Yidong <cyd@stupidchicken.com>
17981
17982 * image.c (uncache_image): Fix typo.
17983
179842007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
17985
17986 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
17987
179882007-05-22 Richard Stallman <rms@gnu.org>
17989
17990 * xterm.c (x_connection_closed): Remove NO_RETURN.
17991
179922007-05-22 Martin Rudalics <rudalics@gmx.at>
17993
17994 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
17995
179962007-05-21 Chong Yidong <cyd@stupidchicken.com>
17997
17998 * image.c (uncache_image): New function.
17999 (Fimage_refresh): New function.
18000
180012007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18002
18003 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18004
180052007-05-20 Nick Roberts <nickrob@snap.net.nz>
18006
18007 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18008 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18009
180102007-05-20 Nick Roberts <nickrob@snap.net.nz>
18011
18012 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18013 conditional on [HAVE_GPM_H].
18014
180152007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18016
18017 * syntax.c (skip_chars): Update syntax-table only after we checked that
18018 the new location is valid.
18019
180202007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18021
18022 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18023 mac_get_window_bounds.
18024
180252007-05-20 Nick Roberts <nickrob@snap.net.nz>
18026
18027 * Makefile.in (LIBGPM): Allow it to be set from configure.
18028 If set then link Emacs with it.
18029
18030 * config.in: Regenerate.
18031
18032 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18033 New externs.
18034
18035 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18036 Include gpm.h.
18037 (handle_one_term_event, term_gpm): New externs.
18038
18039 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18040 and allow it to be interrupted by SIGIO.
18041
18042 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18043 (wait_reading_process_output): Wait on gpm_fd too.
18044 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18045 (add_gpm_wait_descriptor_called_flag): New variable.
18046 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18047
18048 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18049 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18050 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18051 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18052 (make_lispy_event): Add case GPM_CLICK_EVENT.
18053 (read_avail_input): Handle mouse input.
18054
18055 * term.c (write_glyphs_with_face): New function.
18056 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18057 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18058 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18059 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18060 (last_mouse_x, last_mouse_y): New variables.
18061 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18062 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18063 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18064 (Fterm_close_connection): New functions.
18065 (term_init): Initialise mouse_face_window.
18066
180672007-05-19 Chong Yidong <cyd@stupidchicken.com>
18068
18069 * xdisp.c (redisplay_window): If first window line is a
18070 continuation line, recompute the new window start instead of
18071 recentering.
18072
180732007-05-18 Glenn Morris <rgm@gnu.org>
18074
18075 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18076 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18077
180782007-05-17 Glenn Morris <rgm@gnu.org>
18079
18080 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18081
180822007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18083
18084 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18085 dead key repeat and up events.
18086
180872007-05-14 Chong Yidong <cyd@stupidchicken.com>
18088
18089 * image.c (pbm_load): Check image size for monochrome pbm.
18090
180912007-05-13 Chong Yidong <cyd@stupidchicken.com>
18092
18093 * xterm.c (XTread_socket): Revert last change.
18094
180952007-05-12 Chong Yidong <cyd@stupidchicken.com>
18096
18097 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18098
18099 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18100
181012007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18102
18103 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18104 mixup (YAILOM).
18105
181062007-05-07 Andreas Schwab <schwab@suse.de>
18107
18108 * keymap.c (Flookup_key): Fix typo in last change.
18109
181102007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18111
18112 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18113 mapping for unibyte strings.
18114
181152007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18116
18117 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18118 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18119
181202007-04-29 Richard Stallman <rms@gnu.org>
18121
18122 * insdel.c (replace_range): For undo, record insertion first.
18123
181242007-04-29 Andreas Schwab <schwab@suse.de>
18125
18126 * lisp.h (VECSIZE): Use OFFSETOF.
18127
181282007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18129
18130 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18131 disabled lines.
18132
181332007-04-28 Richard Stallman <rms@gnu.org>
18134
18135 * lread.c (read_escape): In a string, \s is always space.
18136
181372007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18138
18139 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18140
18141 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18142 submenu for menu bar items.
18143
18144See ChangeLog.10 for earlier changes.
18145
18146;; Local Variables:
18147;; coding: utf-8
18148;; add-log-time-zone-rule: t
aac0c6e3
MR
18149;; End:
18150
76b6f707 18151 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18152
18153 This file is part of GNU Emacs.
18154
18155 GNU Emacs is free software: you can redistribute it and/or modify
18156 it under the terms of the GNU General Public License as published by
18157 the Free Software Foundation, either version 3 of the License, or
18158 (at your option) any later version.
18159
18160 GNU Emacs is distributed in the hope that it will be useful,
18161 but WITHOUT ANY WARRANTY; without even the implied warranty of
18162 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18163 GNU General Public License for more details.
18164
18165 You should have received a copy of the GNU General Public License
18166 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18167
18168;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40