* callint.c (Fcall_interactively): For '^' just delegate the work to
[bpt/emacs.git] / src / ChangeLog
CommitLineData
84db11d6
SM
12009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * callint.c (Fcall_interactively): For '^' just delegate the work to
4 handle-shift-selection.
5 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6
0a1958d6
CY
72009-03-24 Chong Yidong <cyd@stupidchicken.com>
8
0bfdff23
CY
9 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10
0a1958d6
CY
11 * data.c (Qinteractive_form): New variable.
12 (Finteractive_form): Use it.
13
14 * eval.c (Fcommandp): Use Qinteractive_form.
15
58aec0d6
JR
162009-03-24 Jason Rumney <jasonr@gnu.org>
17
18 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
19 Calculate total size precisely. Decode environment variables
20 before substituting. (Bug#38)
21
553dd618
KH
222009-03-24 Kenichi Handa <handa@m17n.org>
23
24 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 25 encoding (Bug#2722).
553dd618 26
c39ea606
JD
272009-03-23 Jan Djärv <jan.h.d@swipnet.se>
28
29 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
30 that gdpy is set.
31
bc9b2b5e
AM
322009-03-22 Alan Mackenzie <acm@muc.de>
33
34 * callint.c (Finteractive): Clarify the doc string - even
35 promptless elements need \n separators.
36
9f995a76
JR
372009-03-22 Jason Rumney <jasonr@gnu.org>
38
39 * w32term.c (syms_of_w32term): Doc fix for
40 x-use-underline-position-properties.
41
22749e9a
EZ
422009-03-21 Eli Zaretskii <eliz@gnu.org>
43
44 * w32.c (getpwuid): Change argument type to unsigned.
45 (struct w32_id): Change type of `rid' member to unsigned.
46 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
47 argument ID to unsigned. All callers changed.
48 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
49
e00553bf
EZ
502009-03-20 Eli Zaretskii <eliz@gnu.org>
51
52 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
53 negative, produce a float value.
54
55 * dired.c (make_uid, make_gid): New functions.
56 (Ffile_attributes): Use them to avoid negative UID and GID.
57
f761d6b6
JB
582009-03-20 Juanma Barranquero <lekktu@gmail.com>
59
60 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
61 (syms_of_keyboard) <command-hook-internal, input-method-function>:
62 Fix typos in docstrings.
63
d507f8d7
KH
642009-03-19 Kenichi Handa <handa@m17n.org>
65
66 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
67 changed, use font_load_for_lface to get a new font object.
68 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
69
70 * frame.c (x_set_font): Handle the case that ARG is a cons.
71
c68845e0
GM
722009-03-19 Glenn Morris <rgm@gnu.org>
73
74 * fileio.c (Fsubstitute_in_file_name): Doc fix.
75
bfa49dd1
CY
762009-03-19 Chong Yidong <cyd@stupidchicken.com>
77
78 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
79
8458d4c1
KH
802009-03-19 Kenichi Handa <handa@m17n.org>
81
82 * charset.c (load_charset_map_from_file): When a mapfile can't be
83 loaded, signal an error.
84
78e7d1fe
EZ
852009-03-18 Eli Zaretskii <eliz@gnu.org>
86
87 * dired.c (Ffile_attributes): Make sure UID and GID are always
88 positive, even if the value is too large for a positive EMACS_INT.
89 Doc fix.
90
91 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
92
5da9fdfa
YM
932009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
94
95 * xmenu.c (xdialog_show): Move Fredisplay call ...
96 (Fx_popup_dialog): ... here.
97
7519c40d
SM
982009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
99
100 * dired.c (file_name_completion): Disable the first optimization just
101 installed, since it is not implemented correctly.
102
2cd298e2
SM
1032009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
104
105 * dired.c (file_name_completion): Check completion-ignored-extensions
106 only if the entry can't affect bestmatch anyway.
107 Stop the search early, as Ftry_completion already does.
108
48d37adf
CY
1092009-03-17 Chong Yidong <cyd@stupidchicken.com>
110
e10c9c93 111 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 112
9286b16a
CY
1132009-03-15 Chong Yidong <cyd@stupidchicken.com>
114
115 * keyboard.c (parse_menu_item): Don't display remappings as menu
116 equivalent bindings (Bug#788).
117
f7b146dc
JR
1182009-03-15 Jason Rumney <jasonr@gnu.org>
119
120 * w32term.h (WM_EMACS_PAINT): New message.
121 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
122 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
123 before passing to lisp thread. (Bug#950)
124
f761d6b6 1252009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 126
d93f9575
CY
127 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
128 variable as it was never reset.
129 (ns_term_init): Remove initialization of Lisp-settable defaults
130 and ns_expand_space.
131 (-setPanelFromDefaultValues): Remove ns_expand_space.
132 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
133 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
134 i.e. no additional spacing, similar to Carbon port.
135
d93f9575
CY
136 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
137 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 138
305018ec
JD
1392009-03-14 Jan Djärv <jan.h.d@swipnet.se>
140
141 * sound.c (alsa_configure): Remove call to deprecated
142 snd_pcm_sw_params_set_xfer_align.
143
f761d6b6 1442009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
145
146 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
147 after clicking in a detached tool bar.
148 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
149
46e722a9
SM
1502009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
151
348db3dd
SM
152 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
153 int/Lisp_Object mixup).
46e722a9 154
a3d16f39
KH
1552009-03-13 Kenichi Handa <handa@m17n.org>
156
157 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 158 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
159 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
160 (set_fontset_font): Change ARG to a vector. Handle range_list in
161 ARG correctly.
162 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 163 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
164 the above change.
165 (fontset_from_font): Fix previous change.
fe24f56a 166 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
167 entry. If FONTSET is the default fontset, don't set the extra
168 slot of the returning char-table.
169
b066e6b6
JB
1702009-03-12 Juanma Barranquero <lekktu@gmail.com>
171
172 * nsfns.m (Fx_close_connection): Doc fix.
173 (Fns_do_applescript): Reflow docstring.
174 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
175 (Fx_display_pixel_width, Fx_display_pixel_height)
176 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
177 Fix typos in docstrings.
178 (Fns_set_alpha): Fix typos in error messages.
179
d472514e 1802009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 181
d472514e 182 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
183 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
184 were used for such events.
185
d472514e
JB
186 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
187 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 188
d472514e 189 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
190 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
191
fb930676
KH
1922009-03-11 Kenichi Handa <handa@m17n.org>
193
ff85581a
KH
194 * font.h (font_open_by_spec): Extern it.
195
c50b7e98
KH
196 * font.c (font_open_by_spec): New function.
197 (font_open_by_name): Use font_open_by_spec.
198
fb930676
KH
199 * frame.c (x_set_font): When ARG is a font-object, don't alter the
200 fontset of the frame.
201
202 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
203 modify the default font of frames that use this fontset.
204 (num_auto_fontsets): New variable.
205 (fontset_from_font): Use num_auto_fontsets to decide a fontset
206 name. Be sure to set FONTSET_ASCII to the correct font name.
207 (update_auto_fontset_alist): New function.
208
df4e8455
JB
2092009-03-11 Juanma Barranquero <lekktu@gmail.com>
210
211 * makefile.w32-in: Update dependencies.
212
0a375797
AR
2132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
214
215 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
216
61313fa3
SM
2172009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
218
219 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
220
b55103fb
CY
2212009-03-10 Chong Yidong <cyd@stupidchicken.com>
222
223 * lread.c (Feval_buffer): Doc fix.
224
dde2559c
KH
2252009-03-09 Kenichi Handa <handa@m17n.org>
226
227 * charset.c (Qfile_name_handler_alist): Extern it.
228 (load_charset_map_from_file): Temporarily bind
229 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
230
df4e8455 2312009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 232
47f588bb
GM
233 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
234 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 235
4ddf94bd
AR
2362009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
237
4c9bdfc2
AR
238 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
239 (x_set_window_size): Change back to calculated method of setting
240 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
241 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
242 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
243
fe41ae9e
AR
244 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
245
4c9bdfc2
AR
246 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
247 accelerator in parens under GNUstep.
248
825d0875
KH
2492009-03-06 Kenichi Handa <handa@m17n.org>
250
251 These changes are to detect incorrect composition sequence without
f3b3be74 252 looking ahead the source. (Bug#2370)
825d0875
KH
253
254 * coding.h: Include "composite.h".
255 (enum compisition_state): New enum.
256 (struct compisition_status): New struct.
257 (struct iso_2022_spec): New member cmp_status.
258 (struct emacs_mule_spec): New struct.
259 (struct coding_system): New members ctext_extended_segment_len and
260 embedded_utf_8. Change the union member
261 spec.emacs_mule_full_support to spec.emacs_mule.
262
263 * coding.c (CODING_ISO_CMP_STATUS): New macro.
264 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
265 (MAX_ANNOTATION_LENGTH): Defined to 5.
266 (ADD_COMPOSITION_DATA): New arg nbytes.
267 (emacs_mule_char): New arg cmp_status.
268 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
269 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
270 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
271 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
272 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
273 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
274 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
275 (EMACS_MULE_COMPOSITION_END): New macro.
276 (emacs_mule_finish_composition): New function.
277 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
278 (decode_coding_emacs_mule): Avoid long looking ahead while
279 handling composition.
280 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
281 (ENCODE_COMPOSITION_RULE): New macro.
282 (finish_composition): New function.
283 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
284 (DECODE_COMPOSITION_START): New implementation.
285 (DECODE_COMPOSITION_END): Likewise.
286 (STORE_COMPOSITION_RULE): New macro.
287 (decode_coding_iso_2022): Avoid long looking ahead while handling
288 composition, CTEXT extended segment, and embedded UTF-8.
289 (setup_coding_system): For a coding of type iso-2022, reset
290 CODING_ISO_EXTSEGMENT_LEN (coding) and
291 CODING_ISO_EMBEDDED_UTF_8 (coding).
292 (get_translation): Delete arguments last_block, from_nchars,
293 to_nchars. Callers changed.
294 (produce_chars): Don't modify charbuf. Adjusted for the change of
295 get_translation.
296 (produce_composition): Adjusted for the new annotation sequence.
297 (handle_composition_annotation): Likewise.
298 (consume_chars): Adjusted for the change of get_translation.
299
ccbc4452
AR
3002009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
301
4ddf94bd 302 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 303
988a7ddb
KH
3042009-03-05 Kenichi Handa <handa@m17n.org>
305
306 * font.c (font_select_entity): New function.
307 (font_find_for_lface): Use font_select_entity to select a font.
308
309 * fontset.c (fontset_find_font): If a font found without
310 restricting of the characters C doen't support C, try to find a
311 font with C restriction.
312
be1bce46 3132009-03-04 Nikolaj Schumacher <me@nschum.de> (tiny change)
2f462d73 314
be1bce46 315 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 316
10ea2b82
JR
3172009-03-04 Jason Rumney <jasonr@gnu.org>
318
2c93b248 319 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 320 characters that have already been read. (Bug#2569)
2c93b248 321
10ea2b82
JR
322 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
323 Log an error message if check_image_size failed.
324 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 325 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 326
71a0c011
EZ
3272009-03-02 Eli Zaretskii <eliz@gnu.org>
328
329 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
330 when decoding process output.
331
2f63bba8
RS
3322009-03-01 Richard M Stallman <rms@gnu.org>
333
334 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
335
336 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
337
0a9564cb
EZ
3382009-02-28 Eli Zaretskii <eliz@gnu.org>
339
340 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
341 (decode_coding_emacs_mule, decode_coding_iso_2022)
342 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
343 (decode_coding_raw_text, decode_coding_charset)
344 (setup_coding_system, decode_eol, decode_coding, consume_chars):
345 Honor inhibit-eol-conversion. (Bug #2186)
346
449148b3
JR
3472009-02-28 Jason Rumney <jasonr@gnu.org>
348
349 * coding.c (detect_coding_charset): If not checking latin extra,
350 fail on characters between 0x80 and 0xA0. (Bug#2354)
351
a4aee864
EZ
3522009-02-28 Eli Zaretskii <eliz@gnu.org>
353
354 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 355 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 356
d88bee5a
GM
3572009-02-27 Glenn Morris <rgm@gnu.org>
358
359 * callint.c (Finteractive): Doc fix.
360
a808f22d
KH
3612009-02-27 Kenichi Handa <handa@m17n.org>
362
363 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
364
caf8d60c
CY
3652009-02-27 Chong Yidong <cyd@stupidchicken.com>
366
367 * font.c (font_style_to_value): Set value for unknown symbols to
368 100 instead of 255.
b61137ea
CY
369 (weight_table, slant_table, width_table): Treat "unspecified" as
370 the default value.
caf8d60c 371
1a0de25c
JB
3722009-02-26 Juanma Barranquero <lekktu@gmail.com>
373
374 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
375
8fc45744
JB
3762009-02-25 Juanma Barranquero <lekktu@gmail.com>
377
107bd7d1
JB
378 * lread.c (Fload): Stop checking Vloads_in_progress and signal
379 error as soon as a recursive load is detected.
8fc45744 380
f097e223
AR
3812009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
382
383 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
384 before caching.
385
8810a12f
KH
3862009-02-24 Kenichi Handa <handa@m17n.org>
387
388 * fontset.c (fontset_find_font): Fix the condition for checking
389 unavailable font.
390
2c7d1565
GM
3912009-02-24 Glenn Morris <rgm@gnu.org>
392
393 * xfaces.c (Finternal_set_font_selection_order): Remove leading
394 whitespace that confuses documentation.
395
a20878b6
MB
3962009-02-23 Miles Bader <miles@gnu.org>
397
398 * process.c (Flist_system_processes, Fprocess_attributes)
399 (syms_of_process): Rename `system-process-attributes' to
400 `process-attributes'.
401
b3b58c01
AS
4022009-02-22 Andreas Schwab <schwab@linux-m68k.org>
403
1b3b981b
AS
404 * coding.h (struct coding_system): Make safe_charsets a pointer to
405 unsigned char.
406 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
407 being 255.
408 (SAFE_CHARSET_P): Likewise.
409 (setup_iso_safe_charsets): Properly setup safe_charsets.
410 (Fdefine_coding_system_internal): Likewise.
411 (setup_coding_system): Likewise. Remove unneeded casts.
412 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
413 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
414 unneeded casts.
415
b3b58c01
AS
416 * insdel.c (del_range_2): Don't modify gap contents when called
417 from decode_coding_object. (Bug#1809)
418
0b6f228c
CY
4192009-02-21 Chong Yidong <cyd@stupidchicken.com>
420
421 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
422 Qfont_object.
423 (Ftype_of): Recognize font objects.
424
425 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
426
427 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
428 moved to data.c.
429
52f8870b
AR
4302009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
431
432 * nsterm.m (x_make_frame_invisible): Unset async_visible,
433 async_iconified. Based on a patch by Christian Lynbech
434 <christian.lynbech@tieto.com>.
435 (EmacsView-windowDidMiniaturize:): Unset async_visible.
436
7087d5e9
GM
4372009-02-20 Glenn Morris <rgm@gnu.org>
438
439 * syntax.c (Fskip_chars_forward): Fix doc typo.
440
41d2ceef
CY
4412009-02-20 Chong Yidong <cyd@stupidchicken.com>
442
443 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
444
1a3b7ca6
CY
4452009-02-19 Chong Yidong <cyd@stupidchicken.com>
446
447 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
448
73cce38d
KH
4492009-02-19 Kenichi Handa <handa@m17n.org>
450
451 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 452 Don't overflow coding->carryover. (Bug#2370)
73cce38d 453
a51092ee
DN
4542009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
455
456 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
457
c423ecca
KH
4582009-02-18 Kenichi Handa <handa@m17n.org>
459
460 * font.c (font_check_otf_features): Fix handling of `nil' element.
461 (Ffont_spec): Describe :lang and :otf in the docstring.
462
4c1958f4
AS
4632009-02-16 Andreas Schwab <schwab@suse.de>
464
465 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
466 string.
467
5704f39a
KH
4682009-02-16 Kenichi Handa <handa@m17n.org>
469
470 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 471 (Bug#1723)
5704f39a 472
8f0085aa
CY
4732009-02-14 Chong Yidong <cyd@stupidchicken.com>
474
a057d86a 475 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
476
477 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
478 (handle_line_prefix): Suppress wrapping of wrap prefixes.
479
aff01dd9
EZ
4802009-02-14 Eli Zaretskii <eliz@gnu.org>
481
482 * msdos.c (MAX_SCREEN_BUF): New macro.
483 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
484 Encode the entire run of glyphs sharing the same face, instead of
485 doing that one glyph at a time (fixes a bug with displaying
486 double-size characters).
487
ba301db3
AR
4882009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
489
490 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
491
492 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
493 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 494 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
495
496 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 497 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 498
51d861de
SM
4992009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
500
501 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
502 invisible areas.
503
7fed8996
JR
5042009-02-12 Jason Rumney <jasonr@gnu.org>
505
631ea4fb
JR
506 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
507 (add_font_entity_to_list): Call check_face_name even when family
508 is unspecified.
509
cb4a3e42
JR
510 * w32term.c (x_display_pixel_height, x_display_pixel_width):
511 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 512 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 513
7fed8996 514 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 515 raster fonts. (Bug#2219)
7fed8996 516
895416e3
KH
5172009-02-12 Kenichi Handa <handa@m17n.org>
518
519 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
520 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
521 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 522 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
523 (find_automatic_composition): While looking forward and backward,
524 check static composition. Fix where to stop looking forward.
525 (composition_adjust_point): Fix checking of static composition.
526 (Fcomposition_get_gstring): Pay attention to
1dacf998 527 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
528
529 * lisp.h (fast_looking_at): Extern it.
530
531 * search.c (fast_looking_at): New function.
532
51d861de 533 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
534 <struct glyph>.u.cmp.to.
535 (append_composite_glyph): Likewise.
536
51d861de 537 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
538 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
539 composition.
51d861de 540 (append_composite_glyph): Adjust for the change of
895416e3
KH
541 <strcut glyph>.u.cmp.to.
542
8510724d
JB
5432009-02-11 Juanma Barranquero <lekktu@gmail.com>
544
545 * casetab.c (init_casetab_once):
546 * coding.c (ALLOC_CONVERSION_WORK_AREA):
547 * font.c (font_update_lface):
548 * fontset.c (Fnew_fontset):
549 * ftfont.c (ftfont_drive_otf):
550 * xfont.c (xfont_open):
551 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
552
294fa707
SM
5532009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
554
555 * fileio.c (Fwrite_region): !NILP -> CONSP.
556
b5bfebec
AS
5572009-02-10 Andreas Schwab <schwab@suse.de>
558
559 * process.c (send_process): Properly relocate pointer into data
adab88bd 560 when using encoded data. (Bug#2272)
b5bfebec 561
cb84a2be
KH
5622009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
563
564 * coding.c (detect_coding_charset): Fix previous change.
565
89e09428
JR
5662009-02-08 Jason Rumney <jasonr@gnu.org>
567
568 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 569 disappeared while hourglass was displayed. (Bug #2193)
89e09428 570
4470a277
AS
5712009-02-07 Andreas Schwab <schwab@suse.de>
572
573 * unexelf.c (unexec): Fix error message.
574
3175b12a
AR
5752009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
576
577 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 578 when modal window is active. (Bug #2152)
3175b12a
AR
579 (applicationShouldTerminate:): Remove now-unneeded while loop
580 around NSRunAlertPanel.
581
582 * nsmenu.m (popupSession): New file-global variable.
583 (pop_down_menu): End the popupSession before closing dialog.
584 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
585 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
586 don't query NSApp for events (just sleep instead).
587
8434d0b8
EZ
5882009-02-07 Eli Zaretskii <eliz@gnu.org>
589
51d861de
SM
590 * coding.c (syms_of_coding) <translation-table-for-input>:
591 Modify doc string to discourage use for character code unification.
8434d0b8 592
aa82edfd
CY
5932009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
594
595 * atimer.c (run_timers): Update pending_atimers.
596
2d283c7c
CY
5972009-02-06 Chong Yidong <cyd@stupidchicken.com>
598
eb306cab
CY
599 * image.c (svg_load_image): Fix last change.
600
2d283c7c
CY
601 * xfns.c (Fx_create_frame): Signal an error if no font is
602 found (Bug#2147).
603
4d8e170e
JB
6042009-02-05 Juanma Barranquero <lekktu@gmail.com>
605
606 * character.c (syms_of_character) <script-representative-chars>:
607 Fix typo in docstring.
608
c96169a0
AR
6092009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
610
611 * nsmenu.m (pop_down_menu): New function.
612 (ns_popup_dialog): Call it on unwind.
613 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
614 call timer_check() (Bug#2154).
615 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
616 handling_signal is set.
617 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
618
619 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
620
621 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
622
623 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
624
51d861de
SM
625 * keyboard.c (poll_for_input_1, handle_async_input):
626 Set handling_signal under HAVE_NS.
c96169a0 627
aacd8ba1
GM
6282009-02-04 Glenn Morris <rgm@gnu.org>
629
630 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
631
4cb75c4b
KH
6322009-02-04 Kenichi Handa <handa@m17n.org>
633
634 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
635
636 * charset.c (Fchar_charset): New optional arg restriction.
637
638 * coding.h (coding_system_charset_list): Extern it.
639
640 * coding.c (coding_system_charset_list): New function.
641
642 * composite.c: Include coding.h and termhooks.h.
643 (composition_gstring_p): Fix for the terminal case.
644 (composition_gstring_width): Likewise.
645 (fill_gstring_body): Likewise.
646 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
647 the frame.
648 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
649 is within a composition.
867d4bb3 650 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
651
652 * term.c (encode_terminal_code): Fix handling of composition.
653 (produce_composite_glyph): For static composition, get pixel_width
654 from struct composition.
655
826ba17e
AS
6562009-02-02 Andreas Schwab <schwab@suse.de>
657
658 * unexelf.c (unexec): Handle unaligned bss offset.
659
8ad093db
AR
6602009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
661
662 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
663 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 664
8ad093db
AR
665 * keyboard.c (handle_interrupt): Don't call
666 quit_throw_to_read_char() under NS.
d0a76a6e 667
8ad093db
AR
668 * blockinput.h: Remove NS-specific code.
669
4d18a7a2
DN
6702009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
671
db878925
DN
672 * dispnew.c (window_change_signal): Don't try to get the size of a
673 suspended tty frame.
674 * term.c (Fresume_tty): Resize if the size has changed while the
675 tty was suspended.
676
4d18a7a2
DN
677 * alloc.c (mark_stack): Properly conditionalize previous change.
678
8984df7c
JB
6792009-01-30 Juanma Barranquero <lekktu@gmail.com>
680
681 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
682 * w32term.c (w32_read_socket) [SYNC_INPUT]:
683 Remove; this code is not used on Windows.
684
75f4f1ac
EZ
6852009-01-30 Eli Zaretskii <eliz@gnu.org>
686
687 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
688 EOLs that also has stray ^M characters.
689
07a1e794
JB
6902009-01-30 Juanma Barranquero <lekktu@gmail.com>
691
692 * atimer.c (run_timers, alarm_signal_handler):
693 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
694 * w32inevt.c (w32_console_read_socket):
695 * w32term.c (w32_read_socket):
696 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
697
a8b11cc9
CY
6982009-01-30 Chong Yidong <cyd@stupidchicken.com>
699
700 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
701 Initialize it as a relative filename pattern.
702 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
703 (Fcall_process_region): Simplify temp file creation using
704 temporary-file-directory.
705
c279587b
EZ
7062009-01-29 Eli Zaretskii <eliz@gnu.org>
707
708 * msdos.c: Rename pending_signals to msdos_pending_signals.
709 (sig_suspender, sigprocmask): Adjust.
710
a8fe3242
CY
7112009-01-29 Chong Yidong <cyd@stupidchicken.com>
712
713 * keyboard.c (pending_signals): New var.
714 (poll_for_input, input_available_signal, init_keyboard): Set it.
715 (process_pending_signals): New function.
716
717 * lisp.h (QUIT): Check pending_signals instead of
718 interrupt_input_pending. Use process_pending_signals.
719
51d861de 720 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 721
51d861de 722 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
723
724 * sysdep.c (emacs_write): Use process_pending_signals.
725
726 * xterm.c (XTread_socket): Update pending_signals.
727
728 * w32term.c (w32_read_socket): Update pending_signals.
729
730 * w32inevt.c (w32_console_read_socket): Update pending_signals.
731
6570a1c4
KH
7322009-01-29 Kenichi Handa <handa@m17n.org>
733
734 * xftfont.c (xftfont_has_char): New function.
735 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
736
d72a4afa
AR
7372009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
738
739 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
740 under GNUstep.
741 (ns_query_color): New declaration.
742
743 * nsterm.m (ns_confirm_quit): New variable.
744 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
745 (EmacsApp-applicationShouldTerminate:): Use it.
746 (EmacsPrefsController): Let user set it.
747 (ns_query_color): New function.
748 (ns_defined_color): Use it.
749 (ns_initialize): Drop.
750 (ns_term_init): Add two lines from ns_initialize(), and set
751 input_interrupt_mode to nil.
752
753 * image.c (svg_load_image): Don't right-shift background RGB when
754 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
755
9fe78804
KH
7562009-01-28 Kenichi Handa <handa@m17n.org>
757
758 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
759 (fontset_get_font_group): Remember that no font-group is specified
760 for C.
9fe78804 761
fa57de36
CY
7622009-01-27 Chong Yidong <cyd@stupidchicken.com>
763
930600e9
CY
764 * fns.c (concat): Check for string overflow (bug#1787).
765
fa57de36
CY
766 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
767 Quadruple undo limits (bug#1501).
768
7179ce7b
KH
7692009-01-27 Kenichi Handa <handa@m17n.org>
770
771 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
772 directly use GT_Get_Char_index.
773
774 * xftfont.c (struct xftfont_info): New member `index'.
775
776 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 777 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 778
5be8fcc0
CY
7792009-01-26 Kenichi Handa <handa@m17n.org>
780
781 * fontset.c (fontset_find_font): Fix handling of non-cons return
782 value of fontset_get_font_group.
783 (fontset_font): Revert last change.
784
19ae3e61
JR
7852009-01-26 Jason Rumney <jasonr@gnu.org>
786
787 * w32font.c (w32font_list_internal): Return quickly if registry is
788 unknown. Simplify final return.
789 (add_font_entity_to_list): Break complex logic down into more
790 manageable chunks. Move unknown registry check to
791 w32font_list_internal.
792
8612b71a
AR
7932009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
794
795 Changes to remove Feval calls from GUI under NS.
796
d8038940
JB
797 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
798 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
799 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
800
801 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
802 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
803 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
804 instead of NON_ASCII_KEYSTROKE_EVENT.
805 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
806 (EmacsApp-applicationShouldTerminate:): Query user.
807 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
808 instead of Feval.
809
810 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
811
812 * keyboard.c (kbd_buffer_get_event): Check for it.
813 (keys_of_keyboard): Define lispy keys for
814 ns-put/unput-working-text.
815
816 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
817 versions.
818 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
819
6288ae55
CY
8202009-01-25 Chong Yidong <cyd@stupidchicken.com>
821
822 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 823 setting current_buffer directly. (Bug#2044)
6288ae55 824
289e7f8f
CY
8252009-01-24 Chong Yidong <cyd@stupidchicken.com>
826
5ce87308 827 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 828 any work. (Bug#1952, bug#1990).
5ce87308 829
64cc3cf6 830 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 831
b3243e6f
AR
8322009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
833
834 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
835 (ns_no_defaults): New declaration.
836 (main): Use it.
e0d2e69a 837
d900b2af 838 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 839
d900b2af 840 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 841
d900b2af
AR
842 * nsterm.m (ns_no_defaults): New variable.
843 (ns_initialize): Don't read defaults when ns_no_defaults.
844 (EmacsView-readSelectionFromPasteboard:)
845 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 846 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
847 (ns_dumpglyphs_stretch): New function.
848 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 849 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 850
e0d2e69a
AR
851 * nsimage.m (setPixmapData:): Set to ignore image DPI.
852
3ac71f5d
CY
8532009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
854
855 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
856 call for Sparc64.
857
3fe53a83
AR
8582009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
859
860 * nsfns.m:
861 * nsgui.h:
862 * nsmenu.m:
863 * nsselect.m:
864 * nsterm.h:
865 * nsterm.m: Remove '23' comments that indicated code added during
866 update from emacs-20 -> emacs-23.
867
10f87c6f 8682009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
869
870 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 871 ns_alternate_modifier. (Bug#1217)
a3b53a85 872
c7cef62d
AR
873 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
874 Display all shortcuts, including those w/o super modifier.
875
575fb8bd
AR
876 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
877
918b848b
CY
8782009-01-22 Chong Yidong <cyd@stupidchicken.com>
879
880 * fileio.c (Vwrite_region_post_annotation_function)
881 (Vwrite_region_annotation_buffers): New vars.
882 (build_annotations_unwind): Just reset
883 Vwrite_region_annotation_buffers.
884 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
885 Call write-region-post-annotation-function.
886 (build_annotations): Add to Vwrite_region_annotation_buffers if
887 buffer changes.
888
a39e2539
AR
8892009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
890
891 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
892 Tiger.
51d861de
SM
893 * nsfns.m (ns_do_applescript):
894 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 895
35ed44db
AR
8962009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
897
898 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
899
cbe0b5bf
AR
9002009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
901
902 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 903
6049d3a0
AR
904 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
905
906 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
907 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
908 handle Ctrl-tab. (Bug#1841)
909 (ns_get_color): Use unsigned long long for scanned hex string value.
910 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 911 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6049d3a0 912 (EmacsPrefsController-setPanelFromDefaultValues) New function.
3a88a825 913 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 914 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 915 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 916 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 917
d3810c21 918 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 919 DPI. (Bug#1316)
d3810c21
AR
920 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
921 values in onTiger section.
4c7077c3 922
e301e634
CY
9232009-01-19 Chong Yidong <cyd@stupidchicken.com>
924
7f82490b
CY
925 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
926 Check return value of font_spec_from_name.
64cc3cf6 927 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
928
929 * font.c (font_spec_from_name): Return Qnil if font name could not
930 be parsed.
931 (font_parse_name): Treat a `?' character as part of an XLFD.
932
e301e634
CY
933 * fns.c (Fsubstring): Doc fix.
934
1c0db158
KH
9352009-01-19 Kenichi Handa <handa@m17n.org>
936
51d861de 937 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
938 (ftfont_list): Likewise.
939
acf20901
JB
9402009-01-18 Juanma Barranquero <lekktu@gmail.com>
941
fff4e459
JB
942 * dbusbind.c (Fdbus_register_signal):
943 * process.c (conv_sockaddr_to_lisp):
944 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
945
acf20901
JB
946 * callproc.c (Fgetenv_internal): Doc fix.
947
e7abcdfb
CY
9482009-01-16 Chong Yidong <cyd@stupidchicken.com>
949
950 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
951 it is not even used.
952
b60861e6
GM
9532009-01-16 Glenn Morris <rgm@gnu.org>
954
955 * font.c (Ffont_variation_glyphs): Silence compiler.
956
8db52afe
JB
9572009-01-15 Juanma Barranquero <lekktu@gmail.com>
958
959 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
960 Reported by David Robinow <drobinow@gmail.com>.
961
4cddb209
KH
9622009-01-15 Kenichi Handa <handa@m17n.org>
963
51d861de 964 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 965
f247f67b
JR
9662009-01-14 Jason Rumney <jasonr@gnu.org>
967
968 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 969 never a fontset. (Bug#1562)
f247f67b 970
f56a4450
KH
9712009-01-14 Kenichi Handa <handa@m17n.org>
972
973 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 974 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 975
4e99855e
CY
9762009-01-13 Chong Yidong <cyd@stupidchicken.com>
977
978 * font.c (font_clear_prop): If clearing the family, clear the font
979 width index too.
980
fff4e459 981 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 982
24f01470
JB
9832009-01-12 Juanma Barranquero <lekktu@gmail.com>
984
985 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
986 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
987 functions, use sizeof.
988
a41240a3
MR
9892009-01-12 Martin Rudalics <rudalics@gmx.at>
990
991 * keyboard.c (read_char): Fix case where last_nonmenu_event
992 returned a bad value with submenus. (Bug#447)
993
944636b8
CY
9942009-01-12 Chong Yidong <cyd@stupidchicken.com>
995
996 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
997 family, clear the font width index too.
998
0dad7c6f
JR
9992009-01-11 Jason Rumney <jasonr@gnu.org>
1000
1001 * keyboard.c (cmd_error_internal): Exit when errors occur before
1002 frame creation and not in daemon mode. (Bug#1836)
1003
7c2363af
CY
10042009-01-10 Chong Yidong <cyd@stupidchicken.com>
1005
1006 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1007 of a display vector, backtrack.
1008 (try_window_reusing_current_matrix): Check glyph type before
1009 referencing charpos member.
1010
97b1b294
EZ
10112009-01-10 Eli Zaretskii <eliz@gnu.org>
1012
1013 Fix Bug #876:
1014
1015 * coding.c (inhibit_null_byte_detection): New variable.
1016 (detect_coding, detect_coding_system): Don't pay attention to null
1017 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1018 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1019 <inhibit-iso-escape-detection>: Doc fix.
1020
4624b6e3
JR
10212009-01-09 Jason Rumney <jasonr@gnu.org>
1022
1023 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1024 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1025 Only report Unicode Plane 2 fonts as unicode-sip.
1026
323b840c
CY
10272009-01-09 Chong Yidong <cyd@stupidchicken.com>
1028
51d861de
SM
1029 * xfaces.c (Fx_font_family_list): Delete function.
1030 Move compatibility version to faces.el.
323b840c 1031
51d861de 1032 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1033
eba7400d
MR
10342009-01-09 Martin Rudalics <rudalics@gmx.at>
1035
1036 * frame.c (x_set_frame_parameters): Remember requested value for
1037 fullscreen before it's reset by the parameter handler.
1038
4b09796d
GM
10392009-01-09 Glenn Morris <rgm@gnu.org>
1040
1041 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1042 (last_command_event): ... and update all users.
4b09796d
GM
1043 (last_input_char): For clarity, rename to...
1044 (last_input_event): ... and update all users.
1045 (last-command-char, last-input-char): Move to subr.el as aliases.
1046 * cmds.c, commands.h: Update for last_command_char rename.
1047
14ccea62
CY
10482009-01-08 Chong Yidong <cyd@stupidchicken.com>
1049
51d861de 1050 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1051
5f004711
JR
10522009-01-08 Jason Rumney <jasonr@gnu.org>
1053
1054 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1055 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1056 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1057 Don't declare.
fff4e459 1058 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1059 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1060
b71f6f73
KH
10612009-01-07 Kenichi Handa <handa@m17n.org>
1062
50b06221 1063 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1064 remember the coding system used for decoding in
50b06221
KH
1065 coding_system (Bug#1039).
1066
b71f6f73 1067 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1068 breaking the loop. (Bug#870)
b71f6f73
KH
1069 (decode_coding_utf_16, decode_coding_emacs_mule)
1070 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1071 (decode_coding_charset): Likewise.
1072
56f668f7
MR
10732009-01-05 Martin Rudalics <rudalics@gmx.at>
1074
1075 * frame.c (x_set_frame_parameters): Make sure height (width) get
1076 applied when fullwidth (fullheight) is set. (Bug#1522)
1077
5da9424d
JB
10782009-01-04 Juanma Barranquero <lekktu@gmail.com>
1079
1080 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1081 (utc_base): Declare as ULONGLONG, not long double.
1082 (convert_time_raw): Delete.
1083 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1084 (initialize_utc_base): New function.
1085 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1086 (convert_from_time_t): Use initialize_utc_base; compute result with
1087 64-bit arithmetic.
1088 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1089
c4605e09
EZ
10902009-01-03 Eli Zaretskii <eliz@gnu.org>
1091
9acef61c 1092 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1093 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1094 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1095 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1096 [!subprocesses]: Define.
1097 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1098 (Flist_system_processes, Fsystem_process_attributes)
1099 [!subprocesses]: Call list_system_processes and
1100 system_process_attributes instead of returning Qnil.
1101
9acef61c
JB
1102 * dosfns.c (system_process_attributes, list_system_processes):
1103 New functions.
c4605e09
EZ
1104
1105 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1106
1107 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1108 Don't use the default (no-op) implementation.
1109
8b7d0a16
JR
11102009-01-03 Jason Rumney <jasonr@gnu.org>
1111
a6d46bc1
JR
1112 * keyboard.c (parse_modifiers_uncached): Wheel events are
1113 clicks (bug#687).
1114
8b7d0a16
JR
1115 * w32term.c (x_query_colors, x_query_color): New functions.
1116
1117 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1118 (svg_load_image): Cast returned pointers from dynamically loaded
1119 functions. Eliminate W32 specific code.
1120
bfe11752
DN
11212009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1122
89e2438a
DN
1123 * nsfns.m (x_set_foreground_color, x_set_background_color)
1124 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1125 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1126 x_ prefix instead of ns_. Update references.
1127 (syms_of_nsfns): Add a FIXME comment.
1128
1129 * nsterm.m (x_set_cursor_type): New prototype.
1130 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1131
bfe11752
DN
1132 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1133 for Solaris instead of incorrectly providing Qutime and Qcutime.
1134
031da700
EZ
11352009-01-02 Eli Zaretskii <eliz@gnu.org>
1136
1137 * w32.c (process_times): Compute sum of utime and stime.
1138 (system_process_attributes): Add Qtime to the alist.
1139
1140 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1141 and add them to the alist.
1142
1143 * process.c (top level) <Qtime, Qctime>: New variables.
1144 (syms_of_process): staticpro them.
1145 (Fsystem_process_attributes): Add their documentation to the doc
1146 string.
1147
1148 * process.h: Declare Qtime and Qctime.
1149
df23bf08
JR
11502009-01-02 Jason Rumney <jasonr@gnu.org>
1151
9acef61c 1152 * image.c (Qgobject): New symbol.
df23bf08
JR
1153 (syms_of_image): Initialize it.
1154 (init_svg_functions): Load some functions from gobject library.
1155
5bbdf7aa
DN
11562009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1157
1158 * frame.c (make_terminal_frame): Remove redundant code and useless
1159 block.
1160
63136da6
AS
11612009-01-01 Andreas Schwab <schwab@suse.de>
1162
1163 * process.c (conv_sockaddr_to_lisp): Add workaround for
1164 getsockname bug on BSD.
1165
9ef69046
CY
11662009-01-01 Chong Yidong <cyd@stupidchicken.com>
1167
d6fafbe0
CY
1168 * xfns.c (x_create_tip_frame): Set border width of the X window.
1169
51d861de 1170 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1171
f9c34147
JR
11722009-01-01 Jason Rumney <jasonr@gnu.org>
1173
9acef61c 1174 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1175 Don't block input, as per earlier xterm.c changes.
1176
f5497e45
AR
11772008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1178
1179 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1180 (ns_appkit_version_int): New function.
1181 (x-server-version): Use ns_appkit_version_int and follow 21+
1182 convention of returning 3 integers.
1183
c19cab20
KH
11842008-12-30 Kenichi Handa <handa@m17n.org>
1185
1186 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1187 (CHAR_SURROGATE_PAIR_P): New macro.
1188
1189 * font.h (struct font_driver): New member get_variation_glyphs.
1190
9acef61c 1191 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1192 (Ffont_variation_glyphs): New function.
1193 (syms_of_font): Defsubr it.
1194
1195 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1196 ftfont_variation_glyphs.
1197 (setup_otf_gstring): New function.
1198 (ftfont_drive_otf): Use it.
1199 (ftfont_shape_by_flt): Handle variation selector.
1200 (ftfont_variation_glyphs): New function.
1201
28cd591f
MR
12022008-12-30 Martin Rudalics <rudalics@gmx.at>
1203
1204 * frame.c (Vemacs_iconified): Remove.
1205
7f714baf
JR
12062008-12-30 Jason Rumney <jasonr@gnu.org>
1207
1208 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1209 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1210
9d2d22ab
CY
12112008-12-30 Chong Yidong <cyd@stupidchicken.com>
1212
1213 * indent.c (Fvertical_motion): Don't advance iterator if we have
1214 reseated to the desired position.
1215
1216 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1217 checking for pos match.
1218
545312c2
KH
12192008-12-30 Kenichi Handa <handa@m17n.org>
1220
1ede3eb6
KH
1221 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1222 just get the low 8-bit of the code.
1223
545312c2
KH
1224 * font.c (font_intern_prop): Validate str as multibyte.
1225
bd7bbf29
DN
12262008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1227
31e0750e
DN
1228 * dispextern.h (struct face): Move lface and hash from the middle
1229 of bitfields.
1230
bd7bbf29
DN
1231 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1232
b5672e7c
DN
12332008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1234
1235 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1236 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1237 instead of intervals.h.
1238
d704470f
AS
12392008-12-26 Andreas Schwab <schwab@suse.de>
1240
1241 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1242 cons.
1243
54b33868
MR
12442008-12-26 Martin Rudalics <rudalics@gmx.at>
1245
1246 * textprop.c (Qminibuffer_prompt): New variable.
1247 (syms_of_textprop): Initialize it.
1248 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1249 in minibuffer-prompt face. (Bug#1662)
1250
40b615d6
JR
12512008-12-25 Jason Rumney <jasonr@gnu.org>
1252
1253 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1254
baae5c2d
JR
12552008-12-24 Jason Rumney <jasonr@gnu.org>
1256
1257 * ralloc.c (r_alloc_reset_variable): New function.
1258
1259 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1260 record of what points where. (Bug#716)
baae5c2d 1261
a9051c88
DN
12622008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1263
1264 * minibuf.c (read_minibuf): Follow the non-interactive case when
1265 running as a daemon, before detaching.
1266
8b146312
AS
12672008-12-22 Andreas Schwab <schwab@suse.de>
1268
1269 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1270 * gtkutil.c (free_widget_value): Use xfree instead of free.
1271
56f2de10
MR
12722008-12-22 Martin Rudalics <rudalics@gmx.at>
1273
1274 * frame.c (delete_frame): New function derived from
1275 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1276 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1277 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1278 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1279 * frame.h: Extern delete_frame.
1280 * window.c (window_loop):
1281 * terminal.c (delete_terminal):
1282 * xterm.c (x_connection_closed):
1283 * xfns.c (Fx_hide_tip):
9acef61c 1284 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1285
1fc200d6
JR
12862008-12-21 Jason Rumney <jasonr@gnu.org>
1287
1288 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1289 when character maps to .notdef character.
1290
5e252df2
SM
12912008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1292
1293 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1294
99b72cc4
JR
12952008-12-20 Jason Rumney <jasonr@gnu.org>
1296
1297 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1298 a graphical frame on Windows. (Bug#1325)
99b72cc4 1299
acc49a52
JD
13002008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1301
1302 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1303
6ea15123
CY
13042008-12-20 Chong Yidong <cyd@stupidchicken.com>
1305
1306 * minibuf.c (Fread_buffer): Doc fix.
1307
b2dab6c8
JR
13082008-12-20 Jason Rumney <jasonr@gnu.org>
1309
54ea0c87 1310 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1311 server name in UNC paths. (Bug#719)
54ea0c87 1312
b2dab6c8 1313 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1314 charbuf. (Bug#1035)
b2dab6c8 1315
6d1921be
DN
13162008-12-19 Daniel Engeler <engeler@gmail.com>
1317
1318 * sysdep.c (serial_configure): Fix typo.
1319
53934c98
DN
13202008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1321
1322 * sysdep.c: Include alloca.h.
f4f634e8
DN
1323 (system_process_attributes): Add implementation for Solaris.
1324
1325 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1326
06e111a6
DN
13272008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1328
1329 Reorganize implementation of Flist_system_processes and
1330 Fsystem_process_attributes. No functional changes.
1331 * process.c: Don't #include pwd.h, grp.h and limits.h.
1332 (Flist_system_processes): Just call list_system_processes.
1333 (Fsystem_process_attributes): Just call system_process_attributes.
1334 (procfs_list_system_processes, time_from_jiffies)
1335 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1336 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1337
1338 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1339 (list_system_processes): Rename from
1340 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1341 Provide a do nothing implementation.
1342 (system_process_attributes): Rename from
1343 procfs_list_system_processes.
1344 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1345 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1346
1347 * w32.c (list_system_processes): Rename from
1348 w32_list_system_processes.
1349 (system_process_attributes): Rename from
1350 w32_system_process_attributes.
1351
1352 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1353
1354 * process.h (w32_list_system_processes)
1355 (w32_system_process_attributes): Remove.
1356 (list_system_processes, system_process_attributes): New
1357 prototypes.
1358
6a705b23
KH
13592008-12-19 Kenichi Handa <handa@m17n.org>
1360
1361 * xfont.c (xfont_decode_coding_xlfd): New function.
1362 (xfont_encode_coding_xlfd): New function.
1363 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1364 (xfont_list): Decode and encode XLFD by iso-8859-1.
1365 (xfont_match): Likewise.
1366 (xfont_list_family): Likewise.
1367 (xfont_open): Likewise.
1368
d66c0241 1369 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1370 names are utf-8.
1371
d66c0241 1372 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1373 names are utf-8.
1374
5a130941
JD
13752008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1376
1377 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1378 changed.
bfd20325
JD
1379 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1380 clicked on a detached tool bar button.
5a130941 1381
fd95644b
DN
13822008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1383
1384 * emacs.c (main): Print and error and exit when no data is read
1385 from the pipe.
1386
e6eee6ae
JR
13872008-12-17 Jason Rumney <jasonr@gnu.org>
1388
1389 * w32font.c (w32font_has_char): Always return -1.
1390
a35dd56b
KH
13912008-12-16 Kenichi Handa <handa@m17n.org>
1392
1393 * font.c (font_open_entity): Fix previous change.
1394
0e3635c2
DN
13952008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1396
1397 * process.c: Include <limits.h>.
1398
d4835507 13992008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1400
1401 * font.c (font_update_drivers): Fix mistake in reconstructing the
1402 driver list.
1403
14042008-12-16 Chong Yidong <cyd@stupidchicken.com>
1405
1406 * font.c (font_clear_cache): Fix format of font cache data.
1407
e2cbc401
CY
14082008-12-15 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * xftfont.c (xftfont_open): Free Xft font pattern if
1411 XftFontOpenPattern fails.
1412
1413 * xterm.c (x_free_frame_resources): Remove extraneous call to
1414 free_frame_faces.
1415
b131d535
CY
14162008-12-13 Chong Yidong <cyd@stupidchicken.com>
1417
1418 * xterm.c (x_delete_display): Move xim_close_dpy call to
1419 x_delete_terminal.
1420 (x_delete_terminal): Call xim_close_dpy.
1421
e6df5336
JR
14222008-12-13 Jason Rumney <jasonr@gnu.org>
1423
1424 * w32font.c (intern_font_name): New function.
1425 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1426 (w32font_open_internal, Fx_select_font): Decode font name.
1427 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1428
1429 * w32font.h (intern_font_name): Declare new function.
1430
1431 * w32uniscribe.c (add_opentype_font_name_to_list):
1432 Use intern_font_name.
1433
20d68145
CY
14342008-12-13 Chong Yidong <cyd@stupidchicken.com>
1435
9f2554de
CY
1436 * frame.c (Fdelete_frame): Call free_font_driver_list.
1437
3d9bec9a
CY
1438 * font.c (free_font_driver_list): Implement missing function.
1439
20d68145
CY
1440 * w32term.c (w32_term_init): Don't initialize the image cache
1441 here; it will be done in init_frame_faces.
1442
1443 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1444 (struct x_display_info): Remove unused member null_pixel. New
1445 member xim_callback_data.
1446
1447 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1448 (xim_initialize): Save pointer to callback function data.
1449 (xim_close_dpy): Free callback function data. Call XCloseIM,
1450 reverting 2008-11-04 change by David Smith.
1451 (x_term_init): Don't initialize the image cache here; it will be
1452 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1453 (x_delete_display): Free x_dnd_atoms member.
1454
96f9306b
KH
14552008-12-13 Kenichi Handa <handa@m17n.org>
1456
6dec9044
JB
1457 * font.c (font_rescale_ratio): Moved from xfaces.c.
1458 Argument type changed. Handle a font-spec too.
96f9306b 1459 (font_score): Check Vface_font_rescale_alist.
6dec9044 1460 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1461
1462 * xfaces.c (font_rescale_ratio): Moved to font.c.
1463
8d5b4964
CY
14642008-12-13 Chong Yidong <cyd@stupidchicken.com>
1465
1466 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1467
e6df5336
JR
14682008-12-12 Jason Rumney <jasonr@gnu.org>
1469
1470 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1471 Vwindow_system_version to the real w32 major version.
1472
97c6058a
DN
14732008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1474
1475 * term.c (init_tty): Move setting the terminal name before the
1476 potential user: maybe_fatal.
1477
ec4e88d7
CY
14782008-12-11 Chong Yidong <cyd@stupidchicken.com>
1479
d4835507
JB
1480 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1481 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1482
b4233ec9
JR
14832008-12-11 Jason Rumney <jasonr@gnu.org>
1484
8ec71e23 1485 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1486 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1487
b4233ec9 1488 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1489 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1490
011a0143
JB
14912008-12-11 Juanma Barranquero <lekktu@gmail.com>
1492
1493 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1494
3c309f34
JB
14952008-12-11 Juanma Barranquero <lekktu@gmail.com>
1496
1497 * process.c (Fsystem_process_attributes, syms_of_process):
1498 Fix typo in name of Ssystem_process_attributes.
1499 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1500
fedc6ab5
JB
15012008-12-11 Juanma Barranquero <lekktu@gmail.com>
1502
1503 * syntax.c (Fmodify_syntax_entry): Doc fix.
1504
ba3de0e8
JB
15052008-12-10 Juanma Barranquero <lekktu@gmail.com>
1506
1507 * font.c (Ffont_spec): Move usage to end of docstring.
1508
174f1c74
JR
15092008-12-10 Jason Rumney <jasonr@gnu.org>
1510
1511 * w32font.c (Qcham): New symbol.
1512 (font_supported_scripts): Add cham, and comments for other new
1513 scripts in bitfield from OpenType spec.
9d32f818
JR
1514 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1515 contain characters beyond the bmp.
174f1c74 1516
7b649478
KH
15172008-12-10 Kenichi Handa <handa@m17n.org>
1518
1519 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1520 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1521 Qunicode_sip.
1522
2133e2d1
JB
15232008-12-10 Juanma Barranquero <lekktu@gmail.com>
1524
1525 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1526 (Fcoding_system_put): Use QCdefault_char.
1527 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1528
9af886ee
CY
15292008-12-09 Chong Yidong <cyd@stupidchicken.com>
1530
74d819eb
CY
1531 * xftfont.c (syms_of_xftfont): Fix typo.
1532
4ccfa1c0 1533 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1534
7c19d3ae
DN
15352008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1536
1537 * emacs.c (main): Close daemon_pipe on exec.
1538
567826bb
CY
15392008-12-08 Chong Yidong <cyd@stupidchicken.com>
1540
1541 * termchar.h (struct tty): New members termcap_term_buffer and
1542 termcap_strings_buffer.
1543
1544 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1545 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1546 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1547 All callers changed.
1548 (init_tty): Store termcap data and string buffers in new struct
1549 tty members termcap_term_buffer and termcap_strings_buffer.
1550 (delete_tty): Free them.
4ccfa1c0 1551 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1552
aa96c42b
SZ
15532008-12-07 Seiji Zenitani <zenitani@mac.com>
1554
1555 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1556 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1557
b7e1d896
CY
15582008-12-06 Chong Yidong <cyd@stupidchicken.com>
1559
1560 * coding.c (make_conversion_work_buffer): Disable buffer
1561 modification hooks in the work buffer.
1562
b5ec91a5
EZ
15632008-12-05 Eli Zaretskii <eliz@gnu.org>
1564
1565 * process.c (procfs_system_process_attributes): If `nread' has a
1566 negative value, assign zero to it.
1567
a5d2a52b
CY
15682008-12-05 Chong Yidong <cyd@stupidchicken.com>
1569
68c5540b 1570 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1571
7bf1bb21
KH
15722008-12-05 Kenichi Handa <handa@m17n.org>
1573
1574 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1575 second character is a combining character.
1576
2fdc7d00
EZ
15772008-12-05 Eli Zaretskii <eliz@gnu.org>
1578
1579 * process.c (procfs_system_process_attributes): Don't use cmd,
1580 cmdsize, and q without initializing them first.
1581
bf6bfba8
JR
15822008-12-04 Jason Rumney <jasonr@gnu.org>
1583
1584 * w32font.c (w32font_draw): Initialize orig_clip before getting
1585 it, and delete it when finished.
1586
a3b1a468
DN
15872008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1588
1589 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1590 case when running as a daemon before detaching.
1591
8b8be8eb
JB
15922008-12-03 Juanma Barranquero <lekktu@gmail.com>
1593
805f2638 1594 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1595
b1bde622
KH
15962008-12-03 Kenichi Handa <handa@m17n.org>
1597
e500c47d
KH
1598 * font.c (font_at): Set `multibyte' at first.
1599
ca516334
KH
1600 * coding.c (decode_coding_charset): Check type of an element of
1601 vector VALIDS.
7bf1bb21 1602 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1603
4ccfa1c0 1604 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1605 (font_for_char): Likewise.
1606
1e5ecd37
CY
16072008-12-03 Chong Yidong <cyd@stupidchicken.com>
1608
d5b01609 1609 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
1610 (font_update_lface): Handle fonts with corrupted size specs,
1611 i.e. non-int and non-float.
d5b01609 1612
11e3a6e4 1613 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 1614 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 1615 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 1616
ab06788b
CY
1617 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
1618
1e5ecd37 1619 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 1620 underline_minimum_offset for underline position.
1e5ecd37 1621
63c125ab
DN
16222008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
1623
1624 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
1625
1626 * character.c (c_string_width): Specify the type for LEN.
1627
3a8406e1
KH
16282008-12-03 Kenichi Handa <handa@m17n.org>
1629
4ccfa1c0 1630 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 1631 (decode_coding_utf_8): Likewise.
4ccfa1c0 1632 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 1633 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 1634
651df7d9
CY
16352008-12-02 Chong Yidong <cyd@stupidchicken.com>
1636
1637 * keyboard.c (make_lispy_position): Only use PT if the selected
1638 window is current.
1639
1f625c6c
AS
16402008-12-02 Andreas Schwab <schwab@suse.de>
1641
f7741ce9
AS
1642 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
1643
1f625c6c
AS
1644 * doprnt.c (doprnt1): Fix size of charbuf.
1645
92bc2678
CY
16462008-12-02 Chong Yidong <cyd@stupidchicken.com>
1647
1648 * keyboard.c (timer_check): Revert last change.
1649
93b9e8cc
JB
16502008-12-02 Juanma Barranquero <lekktu@gmail.com>
1651
1652 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
1653
fd7a37d5
JB
16542008-12-01 Juanma Barranquero <lekktu@gmail.com>
1655
1656 * makefile.w32-in: Update dependencies.
1657 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
1658
c115043b
AS
16592008-12-01 Andreas Schwab <schwab@suse.de>
1660
1661 * font.c (register_font_driver): Use xmalloc.
1662 (font_put_frame_data): Likewise.
1663
f5668d2a
CY
16642008-12-01 Chong Yidong <cyd@stupidchicken.com>
1665
860d96be
CY
1666 * xfaces.c (realize_x_face): Make abort condition clearer.
1667
f5668d2a
CY
1668 * gtkutil.c (update_frame_tool_bar): Initialize variable.
1669
379c17e7
CY
16702008-11-30 Chong Yidong <cyd@stupidchicken.com>
1671
1672 * keyboard.c (timer_check): After a timer runs, ensure that the
1673 selected window's buffer is current.
1674
35f36d65
JB
16752008-11-30 Juanma Barranquero <lekktu@gmail.com>
1676
f952c61c
JB
1677 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
1678 It was accidentally restored by the Unicode merge.
1679
35f36d65
JB
1680 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
1681
b23077df
JB
16822008-11-29 Juanma Barranquero <lekktu@gmail.com>
1683
1684 * w32proc.c: Include "coding.h".
1685 (Fw32_short_file_name): Encode filename passed to Windows API.
1686 (Fw32_long_file_name): Encode filename passed to Windows API and
1687 decode back the result. (Bug#1433)
1688
b8ebe9dd
KH
16892008-11-29 Kenichi Handa <handa@m17n.org>
1690
8cc53f96
KH
1691 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
1692 not before accessing it.
1693
b8ebe9dd
KH
1694 * charset.c (Fdefine_charset_internal): After calculating
1695 min_char, max_char, and fastmap, copy the charset structure again.
1696 (encode_char): Fix the previous change.
1697
59bc82c0
SZ
16982008-11-28 Seiji Zenitani <zenitani@mac.com>
1699
1700 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
1701
1702 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
1703
1704 * nsterm.m (x_set_frame_alpha): New function.
1705
32247e3d
EZ
17062008-11-27 Eli Zaretskii <eliz@gnu.org>
1707
1708 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
1709
b003e5ff
JB
17102008-11-27 Juanma Barranquero <lekktu@gmail.com>
1711
1712 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
1713 pointer to check_face_name.
1714
708550f5
KH
17152008-11-27 Kenichi Handa <handa@m17n.org>
1716
1717 * category.h (SET_CATEGORY_SET): Call set_category_set.
1718 (set_category_set): Extern it.
1719
1720 * category.c (hash_get_category_set): New function.
1721 (Fmodify_category_entry): Adjusted for the change of
1722 char_table_ref_and_range. Call hash_get_category_set to get a
1723 category set to store in the table.
1724
1725 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
1726 Funify_charset.
1727
2ae37cf0 1728 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
1729 (DECODE_CHAR): Check if the decoder vector is ready.
1730 (ENCODE_CHAR): Check if the encoder char-table is ready.
1731 (maybe_unify_char): Extern it.
1732
1733 * charset.c (Vchar_unified_charset_table): Delete it.
1734 (inhibit_load_charset_map): New variable.
1735 (temp_charset_work): New variable.
1736 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
1737 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
1738 New macros.
1739 (load_charset_map): Meaning of control_flag changed. If
1740 inhibit_load_charset_map is nonzero, setup a table in
1741 temp_charset_work.
1742 (load_charset): New argument control_flag.
1743 (map_charset_for_dump): New function.
1744 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
1745 map_charset_for_dump.
1746 (Fdefine_charset_internal): If the charset method is MAP, load
1747 mapping tables by calling load_charset.
1748 (Funify_charset): Don't load a mapping table but directly set
1749 Vchar_unify_table.
1750 (maybe_unify_char): New function.
1751 (decode_char): Don't handle the deleted method MAP_DEFERRED.
1752 Handle the case of inhibit_load_charset_map being nonzero.
1753 (encode_char): Don't handle the deleted method MAP_DEFERRED.
1754 Handle the case of inhibit_load_charset_map being nonzero.
1755 (Fclear_charset_maps): Just free temp_charset_work.
1756 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
1757 variable.
1758
1759 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
1760 change of char_table_ref_and_range.
1761 (char_table_ref_and_range): Change the meaning of argument FROM
1762 and TO. Now the caller must provide initial values for *FROM
1763 and *TO.
1764
1765 * fontset.c (fontset_add): Adjusted for the change of
1766 char_table_ref_and_range.
1767 (fontset_get_font_group): Likewise.
1768 (Ffontset_info): Likewise.
1769
1770 * keymap.c (describe_vector): Adjusted for the change of
1771 char_table_ref_and_range. For char-table, put boundary between
1772 non-ASCII and 8-bit characters.
1773
1774 * print.c (print_object): For bool-vector, delete unnecessary
1775 check of ASCII_BYTE_P.
1776
9196133b
JR
17772008-11-26 Jason Rumney <jasonr@gnu.org>
1778
1779 * w32font.c (w32font_open_internal): Don't include external
9acef61c 1780 leading in font height. (Bug#879)
9196133b 1781
9f688acf
GM
17822008-11-26 Glenn Morris <rgm@gnu.org>
1783
1784 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
1785 redefinition with ifdef. (Bug#1383)
1786
90d19aff
AR
17872008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1788
1789 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
1790
4ccfa1c0 17912008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
1792
1793 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
1794 New EmacsView methods.
1795 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
1796 Fixes bug #1048,1357,1414.
1797
17982008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1799
1800 Fix bug #1362.
1801 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
1802 is not an indexed color.
1803 * nsterm.m (free_indexed_color): Add argument checking.
1804 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
1805
e7d5ecb3
CY
18062008-11-24 Chong Yidong <cyd@stupidchicken.com>
1807
1808 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
1809 Document confirm-after-completion value for
1810 minibuffer-completion-confirm.
1811
c285743c
JR
18122008-11-24 Jason Rumney <jasonr@gnu.org>
1813
1814 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
1815 warning.
1816
b0857706
JR
18172008-11-23 Jason Rumney <jasonr@gnu.org>
1818
1819 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
1820 restored before returning.
1821
1822 * w32font.c (check_face_name): New function.
1823 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 1824 fonts. (Bug#642)
b0857706 1825
ee50ff07
MR
18262008-11-22 Martin Rudalics <rudalics@gmx.at>
1827
1828 * buffer.c (Fswitch_to_buffer): Reword and mention new option
1829 confirm-nonexistent-file-or-buffer in doc-string.
1830
b8ff72fa
SM
18312008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
1832
1833 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
1834 Fix copy/paste typo. Add checks.
1835
cee53ed4
KH
18362008-11-21 Kenichi Handa <handa@m17n.org>
1837
1838 * coding.c (detect_coding_iso_2022): Reject invalid composition
1839 sequence.
1840 (DECODE_COMPOSITION_START): If the current source is the last
1841 block, and the current composition doesn't end, regard this
1842 sequence as invalid.
1843 (decode_coding_iso_2022): Handle invalid composition sequence.
1844
f6ef1e65
MR
18452008-11-20 Martin Rudalics <rudalics@gmx.at>
1846
1847 * window.c (coordinates_in_window): Don't return
1848 ON_VERTICAL_BORDER for the rightmost position of a mode/header
1849 line when the window is not the rightmost one. (Bug#1372)
1850
e08b1705
MR
18512008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
1852
1853 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
1854
ad98e89f
EZ
18552008-11-15 Eli Zaretskii <eliz@gnu.org>
1856
1857 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
1858 and bright_bg if noninteractive is non-zero.
1859
fb098a4b
CY
18602008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1861
1862 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
1863 x_draw_glyph_string_background.
1864
1865 * w32term.c (x_draw_glyph_string): Likewise.
1866
ce952b6e
CY
18672008-11-15 Chong Yidong <cyd@stupidchicken.com>
1868
1869 * xterm.c (x_draw_glyph_string): Stop drawing the background of
1870 the next glyph string once past the overhang width.
1871
1872 * nsterm.m (ns_draw_glyph_string): Likewise.
1873
1874 * w32term.c (x_draw_glyph_string): Likewise.
1875
26ea7079
CY
18762008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
1877
1878 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
1879 double file close.
1880
1c33c906
MR
18812008-11-14 Martin Rudalics <rudalics@gmx.at>
1882
1883 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
1884 dedicated status of window before attempting to display another
1885 buffer in it.
1886
8fc29035
JB
18872008-11-14 Juanma Barranquero <lekktu@gmail.com>
1888
1889 * msdos.c (Fmsdos_long_file_names):
1890 (syms_of_msdos) <dos-unsupported-char-glyph>:
1891 * dosfns.c (Fint86): Fix typos in docstrings.
1892
55fb4286
EZ
18932008-11-14 Eli Zaretskii <eliz@gnu.org>
1894
1895 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
1896
3fda0315
KY
18972008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
1898
1899 * puresize.h (BASE_PURESIZE): Increase to 1260000.
1900
7e849c17
CY
19012008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
1902
1903 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
1904
1905 * frame.h: Negative alpha means "don't touch".
1906
1907 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
1908
1909 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
1910
b9fd67bd
DN
19112008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
1912
1913 * hftctl.c:
1914 * chpdef.h:
1915 * acldef.h: Remove files used only for systems no longer supported.
1916
1917 * Makefile.in: Fix .o alphabetical ordering.
1918 (hftctl.o): Remove dependency, file removed.
1919 (keymap.o, print.o): Depend on charset.h.
1920
d5998e03
KH
19212008-11-10 Kenichi Handa <handa@m17n.org>
1922
2ae37cf0 1923 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 1924
be70e183
CY
19252008-11-08 Chong Yidong <cyd@stupidchicken.com>
1926
1927 * dired.c (file_name_completion): If completion_ignore_case is
1928 enabled, ignore case when checking completion-regexp-list.
1929
7cf94eac
EZ
19302008-11-08 Eli Zaretskii <eliz@gnu.org>
1931
1932 * vm-limit.c (get_lim_data): Fix last change.
1933
ee107a89
KH
19342008-11-08 Kenichi Handa <handa@m17n.org>
1935
1936 * character.c (Fget_byte): New function.
1937 (syms_of_character): Defsubr Fget_byte.
1938
5fd15622
CY
19392008-11-07 Chong Yidong <cyd@stupidchicken.com>
1940
1941 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
1942 cursor position is valid after scrolling.
1943
13d62fad
JB
19442008-11-06 Juanma Barranquero <lekktu@gmail.com>
1945
1946 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
1947
a1dd2936
GM
19482008-11-06 Glenn Morris <rgm@gnu.org>
1949
1950 * xterm.c (handle_one_xevent): Don't let popup menus cause
1951 mouse-autoselect-window related window switching. (Bug#1261)
1952
860cd236
CY
19532008-11-04 David Smith <davidsmith@acm.org> (tiny change)
1954
1955 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
1956
653a3150
AS
19572008-11-04 Andreas Schwab <schwab@suse.de>
1958
1959 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
1960
870f5cac
CY
19612008-11-03 Chong Yidong <cyd@stupidchicken.com>
1962
1963 * xfns.c (Fx_wm_set_size_hint): New function.
1964
1e02f3cb
MR
19652008-11-03 Martin Rudalics <rudalics@gmx.at>
1966
1967 * textprop.c (Fprevious_single_char_property_change): Return 0
1968 when there's no change in a string. (Bug#1301)
1969
e630dfc6
MR
19702008-11-02 Martin Rudalics <rudalics@gmx.at>
1971
1972 * frame.c (do_switch_frame): New argument NORECORD passed to
1973 Fselect_window.
1974 (Fselect_frame): New argument NORECORD passed to
1975 do_switch_frame.
1976 (Fset_frame_selected_window): New argument NORECORD passed to
1977 Fselect_frame.
1978 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
1979 in call of do_switch_frame.
1980 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
1981 Handle NORECORD argument in call of Fselect_frame.
1982 * lisp.h (do_switch_frame, Fselect_frame)
1983 (Fset_frame_selected_window): Adjust declarations.
1984 * window.c (select_frame_norecord): New function.
1985 (run_window_configuration_change_hook): Use it and call
1986 Fselect_frame with NORECORD set.
1987 (Fselect_window): Pass NORECORD to Fselect_frame.
1988 (Fset_window_configuration): Handle NORECORD argument in call of
1989 do_switch_frame.
1990 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
1991 Fset_frame_selected_window.
1992 * keyboard.c (command_loop_1): Handle NORECORD in call of
1993 Fselect_frame (currently ifdefd).
1994
9020b223
GM
19952008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
1996
1997 * emacs.c (USAGE2): Untabify.
1998
793ffee8
SM
19992008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2000
2001 * composite.c (fill_gstring_header): Fix copy/paste typo.
2002
ab6d1131
MR
20032008-10-31 Martin Rudalics <rudalics@gmx.at>
2004
2005 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2006 (Fother_window): Rename argument and rewrite doc-string.
2007 (select_window_norecord): Fix return value. (Bug#1276)
2008
601a9cf1
JB
20092008-10-30 Juanma Barranquero <lekktu@gmail.com>
2010
2011 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2012 new frames overriding foreground for tooltips. Based on similar patch
2013 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2014
813b0652
CY
20152008-10-29 Chong Yidong <cyd@stupidchicken.com>
2016
2017 * emacs.c (Fdaemon_initialized): Initialize nfd.
2018
4414f58f
MR
20192008-10-29 Martin Rudalics <rudalics@gmx.at>
2020
2021 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2022 (Fwindow_text_height): Clarify doc-strings.
2023 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2024 doc-string of window-scroll-functions.
2025
ecdcaa09
RS
20262008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2027
2028 * category.c (syms_of_category): Fix typo in docstring.
2029
23fe745a
JB
20302008-10-28 Juanma Barranquero <lekktu@gmail.com>
2031
2032 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2033 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2034 Fix typos in docstrings.
2035
ff808935
DN
20362008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2037
2038 * emacs.c (daemon_pipe): Make non-static.
2039 (IS_DAEMON): Move definition ...
2040 * lisp.h (IS_DAEMON): ... here.
2041 (daemon_pipe): Declare.
2042 (is_daemon): Remove.
2043 * dispnew.c (init_display): Use IS_DAEMON.
2044
fc012771
SM
20452008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2046
2047 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2048 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2049
2050 * emacs.c (is_daemon): Remove.
2051 (main): Don't set is_daemon.
2052 (IS_DAEMON): New macro.
2053 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2054 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2055 parent exits.
2056 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2057
d8bdbe6f
CY
20582008-10-27 Chong Yidong <cyd@stupidchicken.com>
2059
d1a072bf
CY
2060 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2061 over-sized glyph, draw it with the default glyph width.
2062
e2e325aa
CY
2063 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2064 glyph, draw it with the default glyph width.
2065
2066 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2067 glyph, draw it with the default glyph width.
2068
d8bdbe6f
CY
2069 * xdisp.c (try_scrolling): When computing the distance from the
2070 scroll margin to PT, try moving some distance past the window
2071 bottom before giving up.
2072
7bfac547
MR
20732008-10-27 Martin Rudalics <rudalics@gmx.at>
2074
2075 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2076 (Fset_window_buffer): Explain in doc-string that a window can be
2077 "strongly" dedicated to its buffer.
2078
4ff029f6
DN
20792008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2080
2081 * emacs.c (daemon_name): New variable.
2082 (main): Deal with --daemon=SERVER_NAME.
2083 (Fdaemonp): Return a name if one was passed to --daemon.
2084
5790ef40
DN
20852008-10-26 Romain Francoise <romain@orebokech.com>
2086
f9bd0df9 2087 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2088 (main): Create a pipe before forking, make the parent exit only after
2089 the child has closed its end of the pipe. Move closing the
2090 descriptors ...
2091 (Fdaemon_initialized): ... here. New function.
2092
f5385255
SM
20932008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2094
4d632321
SM
2095 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2096 the previous unoptimized table.
2097
f5385255
SM
2098 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2099 the distinction between non-nil and non-t value of `dedicated'.
2100
6c56a0f3
CY
21012008-10-25 Chong Yidong <cyd@stupidchicken.com>
2102
2103 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2104 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2105
fec89261
MR
21062008-10-25 Martin Rudalics <rudalics@gmx.at>
2107
2108 * window.c (Fget_buffer_window, Fdelete_windows_on)
2109 (Freplace_buffer_in_windows): Make buffer argument optional and
2110 rename to buffer_or_name.
2111
34fcddd0
CY
21122008-10-24 Chong Yidong <cyd@stupidchicken.com>
2113
f5385255
SM
2114 * xdisp.c (handle_single_display_spec, handle_display_prop):
2115 Undo 2005-05-16 change.
34fcddd0
CY
2116 (handle_stop): Pop iterator if it's loaded with an empty string.
2117 (get_overlay_strings_1): Don't save iterator if it's loaded with
2118 an empty string (bug#1201).
2119
064766f2
KH
21202008-10-24 Kenichi Handa <handa@m17n.org>
2121
2122 * ftfont.c (ftfont_otf_features): Fix previous change.
2123 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2124 calling ftfont_otf_features.
2125
f9bd0df9 21262008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2127
2128 * font.c (font_match_p): Fix for the case that a vector of
2129 characters is in script-representative-chars.
2130
1dae9197
MA
21312008-10-24 Michael Albinus <michael.albinus@gmx.de>
2132
2133 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2134 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2135 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2136 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2137 macro. (Bug#1186).
2138
f9bd0df9 21392008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2140
2141 * s/sol2-10.h: New file.
2142
878a4584
JB
21432008-10-23 Juanma Barranquero <lekktu@gmail.com>
2144
2145 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2146 poor beast has survived 9+ years and the jump from xterm.c!).
2147
cd265ca6
MR
21482008-10-23 Martin Rudalics <rudalics@gmx.at>
2149
2150 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2151 Reword doc-string.
f5385255 2152 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2153
472a4dc9
JB
21542008-10-23 Juanma Barranquero <lekktu@gmail.com>
2155
2156 * character.c (syms_of_character) <script-representative-chars>:
2157 <unicode-category-table>: Doc fixes.
2158
159bd5a2
NF
21592008-10-23 Noah Friedman <friedman@splode.com>
2160
2161 * coding.c (make_conversion_work_buffer): Check that
2162 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2163 Fget_buffer_create.
2164
49f9c344
KH
21652008-10-23 Kenichi Handa <handa@m17n.org>
2166
2167 * font.c (font_add_log): Check the values of extra properties.
2168
12bb3111
MR
21692008-10-22 Martin Rudalics <rudalics@gmx.at>
2170
2171 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2172 Reword doc-string.
2173 (Fset_window_parameter): Use NILP.
2174 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2175 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2176
bbeb4e99
JB
21772008-10-22 Juanma Barranquero <lekktu@gmail.com>
2178
2179 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2180
21812008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2182
2183 * nsfns.m (ns_appkit_version): New function.
2184 (x-server-version): Use it.
2185 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2186 (x-server-vendor): Don't check_ns().
2187
2188 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2189
a9b555d3
JB
21902008-10-22 Juanma Barranquero <lekktu@gmail.com>
2191
2192 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2193 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2194
4626499f
KH
21952008-10-22 Kenichi Handa <handa@m17n.org>
2196
e3681952
KH
2197 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2198 scripts.
2199
4626499f
KH
2200 * category.c (word_boundary_p): Check scripts instead of charset.
2201 Handle nil value in word-separating-categories and
2202 word-combining-categories.
2203 (syms_of_category): Fix docstrings of word-separating-categories
2204 and word-combining-categories.
2205
1560f91a
EZ
22062008-10-21 Eli Zaretskii <eliz@gnu.org>
2207
2208 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2209 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2210
f4668441
MR
22112008-10-21 Martin Rudalics <rudalics@gmx.at>
2212
2213 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2214 Rename arg "buffer" to "buffer_or_name".
2215 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2216 it optional.
2217 (no_switch_window): Remove since the return value is not used.
a9b555d3 2218 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2219 Consider window as dedicated when Fwindow_dedicated_p returns a
2220 non-nil value.
2221 * lisp.h: Remove prototype for no_switch_window.
2222
fd75ddb2
JD
22232008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2224
2225 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2226 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2227
07295713
KH
22282008-10-21 Kenichi Handa <handa@m17n.org>
2229
2230 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2231 check Vlatin_extra_code_table.
2232
712adc82
EZ
22332008-10-20 Eli Zaretskii <eliz@gnu.org>
2234
2235 * fileio.c (Fset_file_modes): Doc fix.
2236
f549eb0b
MA
22372008-10-19 Michael Albinus <michael.albinus@gmx.de>
2238
2239 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2240 in arrays.
2241
aac0c6e3
MR
22422008-10-19 Martin Rudalics <rudalics@gmx.at>
2243
2244 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2245 Mention kill-buffer in doc-string.
2246 (Fset_window_buffer): Reinsert tem check removed in last commit.
2247 (Fenlarge_window, Fshrink_window): Have argument names and
2248 doc-string follow Elisp manual more closely.
2249
22502008-10-18 Eli Zaretskii <eliz@gnu.org>
2251
2252 * fileio.c (Fset_file_modes): Doc fix.
2253
22542008-10-18 Martin Rudalics <rudalics@gmx.at>
2255
2256 * window.c (Fwindow_width, Fset_window_start)
2257 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2258 (Fdelete_windows_on, Freplace_buffer_in_windows):
2259 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2260 (Fwindow_dedicated_p): Make window argument optional.
2261 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2262 (Fset_window_buffer): Respect any non-nil dedicated value for
2263 window. Rename "buffer" argument to "buffer_or_name".
2264
22652008-10-18 Ulrich Mueller <ulm@gentoo.org>
2266
2267 * m/sh3.h: New file, machine description for SuperH.
2268
22692008-10-17 Martin Rudalics <rudalics@gmx.at>
2270
2271 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2272
22732008-10-17 Kenichi Handa <handa@m17n.org>
2274
2275 * ftfont.c (ftfont_otf_features): Fix indexing
2276 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2277
22782008-10-16 Magnus Henoch <mange@freemail.hu>
2279
2280 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2281 (Fdbus_call_method_asynchronously): Ditto.
2282 This change makes C-h f display the argument list.
2283
22842008-10-16 Chong Yidong <cyd@stupidchicken.com>
2285
2286 * fileio.c (Fexpand_file_name): Doc fix.
2287
2288 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2289 of :foreground and :background equivalent to unspecified (20.x
2290 compatibility).
2291
22922008-10-15 Eli Zaretskii <eliz@gnu.org>
2293
2294 * buffer.c (syms_of_buffer): Doc fix.
2295
22962008-10-14 Kenichi Handa <handa@m17n.org>
2297
2298 * font.c (font_clear_prop): When clearing font width, clear the
2299 average width field too.
2300
23012008-10-12 Andreas Schwab <schwab@suse.de>
2302
2303 * ftfont.c (ftfont_shape_by_flt): Make static.
2304 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2305
2306 * font.c: Don't include <m17n-flt.h>.
2307
23082008-10-10 Eli Zaretskii <eliz@gnu.org>
2309
2310 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2311
23122008-10-09 Eli Zaretskii <eliz@gnu.org>
2313
2314 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2315 away code.
2316
23172008-10-09 Chong Yidong <cyd@stupidchicken.com>
2318
2319 * dispnew.c (update_text_area): Avoid looping due to large glyph
2320 overhangs (bug#1070).
2321
23222008-10-09 Kenichi Handa <handa@m17n.org>
2323
2324 * fontset.c (face_for_char): If face->fontset is negative, just
2325 return ascii_face.
2326
f5385255
SM
2327 * font.c (font_delete_unmatched): Fix previous change.
2328 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2329
23302008-10-09 Martin Rudalics <rudalics@gmx.at>
2331
2332 * frame.c (Fraise_frame): On text-only terminals select frame in
2333 order to make it visible. (Bug#1061)
2334
23352008-10-08 Chong Yidong <cyd@stupidchicken.com>
2336
2337 * fontset.c (fontset_find_font): Check frame validity.
2338
23392008-10-07 Chong Yidong <cyd@stupidchicken.com>
2340
a9b555d3 2341 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2342 (xg_display_close): Allow Emacs to close all displays (bug#985).
2343
23442008-10-06 Andreas Schwab <schwab@suse.de>
2345
f5385255 2346 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2347
23482008-10-06 Chong Yidong <cyd@stupidchicken.com>
2349
f5385255 2350 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2351
a9b555d3 2352 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2353
2354 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2355 during initialization.
2356
23572008-10-04 Eli Zaretskii <eliz@gnu.org>
2358
2359 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2360 whole thing on MSDOS frames as well as on a TTY.
2361
2362 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2363 well as for TTY.
2364 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2365 well as on a TTY.
2366
2367 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2368 as well as for TTY.
2369
2370 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2371
2372 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2373 MSDOS frames as well.
2374
23752008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2376
2377 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2378 correct arguments.
2379 * menu.c (find_and_return_menu_selection) Add cast.
2380
23812008-10-03 Glenn Morris <rgm@gnu.org>
2382
2383 * emacs.c (USAGE1): Add --daemon.
2384
23852008-10-02 Eli Zaretskii <eliz@gnu.org>
2386
2387 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2388 100, so it's in percents as advertised.
2389
23902008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2391
2392 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2393 (ns_output.current_cursor, ns_output.desired_cursor)
2394 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2395 (FRAME_NEW_CURSOR_COLOR): Remove.
2396
2397 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2398 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2399 enumeration (HOLLOW_BOX_CURSOR, etc.).
2400
2401 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2402 (draw_window_cursor): Simplify code.
f5385255
SM
2403 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2404 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2405 updates manually.
a9b555d3
JB
2406 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2407 Use core Emacs cursor types.
aac0c6e3 2408
b8ff72fa 2409 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2410
24112008-10-02 Martin Rudalics <rudalics@gmx.at>
2412
2413 * process.c (Faccept_process_output): Fix doc-string.
2414
24152008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2416
2417 * gmalloc.c (__sbrk): Also define for uClibc.
2418
2419 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2420 for uClibc.
2421
24222008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2423
2424 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2425 styles.
2426 (nsfont_open): Reenable the cache.
2427
24282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2429
2430 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2431 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2432
24332008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2434
2435 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2436 a suspended terminal.
2437
24382008-09-30 Michael Albinus <michael.albinus@gmx.de>
2439
2440 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2441
24422008-09-30 Eli Zaretskii <eliz@gnu.org>
2443
2444 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2445
24462008-09-30 Chong Yidong <cyd@stupidchicken.com>
2447
2448 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2449 in a continued line coincides with a line beginning.
2450
24512008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2452
2453 * nsfont.m (nsfont_trait_distance): Fix bug.
2454 (nsfont_list): Return a list rather than a vector (syncs with Handa
2455 changes of 2008-05-14).
2456 (nsfont_open): Improve logging.
2457
24582008-09-29 Andreas Schwab <schwab@suse.de>
2459
2460 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2461
24622008-09-28 Martin Rudalics <rudalics@gmx.at>
2463
2464 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2465 name as char-resolve-modifiers.
2466 Reported by: Markus Triska <markus.triska@gmx.at>
2467
24682008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2469
2470 * dispnew.c (init_display): Return earlier when running as a daemon.
2471
24722008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2473
2474 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2475
24762008-09-27 Eli Zaretskii <eliz@gnu.org>
2477
2478 * composite.c (Fcomposition_get_gstring)
2479 (Fcompose_region_internal, Fcompose_string_internal)
2480 (Ffind_composition_internal): Doc fix.
2481 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2482 (syms_of_composite) <auto-composition-function>: Doc fix.
2483 (syms_of_composite) <composition-function-table>: Doc fix.
2484
24852008-09-25 Chong Yidong <cyd@stupidchicken.com>
2486
2487 * search.c (wordify): New argument for lax word-ends.
2488 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2489
24902008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2491
2492 * lisp.h (is_daemon): Declare.
2493 * dispnew.c (init_display): Do not try to initialize the terminal
2494 when running as a daemon.
2495
24962008-09-22 Chong Yidong <cyd@stupidchicken.com>
2497
2498 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2499 x_display_pixel_height.
2500
25012008-09-22 Martin Rudalics <rudalics@gmx.at>
2502
2503 * undo.c (record_point): Don't call Fundo_boundary for first
2504 change. (Bug#731)
2505
25062008-09-22 Juanma Barranquero <lekktu@gmail.com>
2507
2508 * emacs.c (Fdaemonp): Doc fix.
2509
25102008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2511
2512 * emacs.c (main): Place #ifdef in the proper place.
2513
25142008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2515
2516 * emacs.c (standard_args): Add --daemon.
2517 (main): Disconnect from the terminal when --daemon is passed.
2518 (is_daemon): New variable.
2519 (Fdaemonp): New function.
2520 (syms_of_emacs): Defsubr it.
2521
25222008-09-20 Chong Yidong <cyd@stupidchicken.com>
2523
2524 * xdisp.c (get_next_display_element): Handle string display
2525 correctly when checking for the end of a box run.
2526
25272008-09-20 Glenn Morris <rgm@gnu.org>
2528
2529 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2530 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2531 (Frename_file): Avoid copying to trash if a rename involves
2532 a delete. (Bug#964).
2533
25342008-09-20 Eli Zaretskii <eliz@gnu.org>
2535
2536 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2537 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2538 frames as well as termcap frames.
2539 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2540 get_named_tty.
2541
25422008-09-19 Eli Zaretskii <eliz@gnu.org>
2543
2544 * process.c (procfs_system_process_attributes): Fix cmdline in
2545 case /proc/PID/cmdline is empty.
2546
2547 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2548 x_display_pixel_height.
2549
25502008-09-19 Juanma Barranquero <lekktu@gmail.com>
2551
2552 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2553
2554 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2555 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2556
25572008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2558
2559 * dispextern.h (struct it): Move line_wrap away from the middle of
2560 bitfields. Move voffset in struct iterator_stack_entry after the
2561 bitfields. Move tab_width near after another short.
2562
25632008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2564
2565 * frame.h (struct frame): Move alpha from the middle of bitfields.
2566
2567 * window.h (struct window): Move frozen_window_start_p after the
2568 rest of the bitfields to reduce padding.
2569
25702008-09-18 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * xterm.h (x_display_info): Remove `height' and `width' members.
2573
2574 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2575
2576 * w32term.h (w32_display_info): Remove `height', `width',
2577 `height_in', and `width_in' members.
2578
b8ff72fa
SM
2579 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2580 New functions.
aac0c6e3
MR
2581 (x_calc_absolute_position): Use them.
2582 (x_term_init): Omit removed `height' and `width' members.
2583
b8ff72fa
SM
2584 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2585 New functions.
aac0c6e3
MR
2586 (w32_read_socket, x_calc_absolute_position): Use them.
2587 (w32_initialize_display_info, w32_term_init): Omit removed members
2588 of w32_display_info.
2589
b8ff72fa
SM
2590 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2591 New functions.
2592 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2593
b8ff72fa
SM
2594 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2595 New functions.
aac0c6e3
MR
2596 (x_calc_absolute_position): Use them.
2597 (x_term_init): Omit removed `height' and `width' members.
2598
2599 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2600 (compute_tip_xy):
2601 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2602 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2603 x_display_pixel_width.
2604
26052008-09-18 Kenichi Handa <handa@m17n.org>
2606
2607 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2608 (composition_compute_stop_pos): Fix handling of static composition.
2609 (Fcomposition_get_gstring): Check FROM and TO at first.
2610
26112008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2612
46e722a9 2613 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
2614 mixup (YAILOM).
2615
26162008-09-17 Chong Yidong <cyd@stupidchicken.com>
2617
2618 * indent.c (Fvertical_motion): Use position reported by iterator
2619 instead of PT for determining screen motion (bug#943).
2620
26212008-09-17 Romain Francoise <romain@orebokech.com>
2622
2623 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
2624
26252008-09-17 Kenichi Handa <handa@m17n.org>
2626
2627 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
2628
2629 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
2630 if necessary.
2631
26322008-09-16 Kenichi Handa <handa@m17n.org>
2633
2634 * coding.c (make_conversion_work_buffer): Avoid calling
2635 Fget_buffer_create if it is not necessary.
2636
26372008-09-15 Martin Rudalics <rudalics@gmx.at>
2638
2639 * window.c (Fselect_window): Don't update window_select_count and
2640 use_time when norecord is not nil.
2641
26422008-09-14 Kenichi Handa <handa@m17n.org>
2643
2644 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
2645 specpdl_ptr.
2646
26472008-09-12 Kenichi Handa <handa@m17n.org>
2648
2649 * indent.c (scan_for_column): Don't handle automatic composition
2650 if the current buffer is not associated with a window.
2651
2652 * composite.c (composition_reseat_it): If the current buffer is
2653 not associated with a window, ignore the automatic composition.
2654 (find_automatic_composition): Likewise.
2655
26562008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2657
2658 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
2659 (Fgpm_mouse_stop): Use it.
2660 * termhooks.h (close_gpm): Declare.
2661 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
2662 connection if Gpm_GetEvent fails.
2663
2664 * window.c (set_window_buffer): Always preserve current-buffer.
2665
26662008-09-12 Glenn Morris <rgm@gnu.org>
2667
2668 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
2669
26702008-09-11 Glenn Morris <rgm@gnu.org>
2671
2672 * charset.c (charset-map-path): Doc fix.
2673
26742008-09-10 Kenichi Handa <handa@m17n.org>
2675
2676 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
2677
2678 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
2679 compose a grapheme cluster with the preceding base glyph.
2680
2681 * composite.c (composition_compute_stop_pos): Fix previous change.
2682 Reset cmp_it->id to -1 at first.
2683
26842008-09-10 Glenn Morris <rgm@gnu.org>
2685
2686 * Makefile.in (character.o, chartab.o): Fix config.h typo.
2687
26882008-09-09 Chong Yidong <cyd@stupidchicken.com>
2689
2690 * keyboard.c (read_key_sequence): Reapply translation maps when
2691 switching keyboards.
2692
26932008-09-09 Kenichi Handa <handa@m17n.org>
2694
2695 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
2696 characters.
2697
2698 * composite.c (FORWARD_CHAR): Fix calculation
2699 of (POSITION).pos_byte.
2700 (composition_compute_stop_pos): Limit the search of composition to
2701 at most 500 characters ahead. If we reach the limit or find a
2702 newline, set cmp_it->ch to -2 and return 0.
2703 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
2704
27052008-09-08 Kenichi Handa <handa@m17n.org>
2706
2707 * indent.c (Fvertical_motion): Be sure to set
2708 it_overshoot_expected if it.cmp_it.id is non-negative.
2709
27102008-09-07 Andreas Schwab <schwab@suse.de>
2711
2712 * callproc.c (Fcall_process): Don't hold references to string data
2713 across garbage collection. Move initialisation of new_argv down
2714 to avoid compiler bug.
2715
27162008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2717
2718 * process.c (Fsystem_process_attributes): Doc fix.
2719
27202008-09-07 Chong Yidong <cyd@stupidchicken.com>
2721
2722 * callproc.c (Fcall_process): Canonicalize current directory name.
2723
2724 * xdisp.c (move_it_to): When moving by vpos, ensure that the
2725 iterator advances to the next line if the current line ends in a
2726 continued tab.
2727
27282008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
2729
2730 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
2731 member to point to cmp_from.
2732
2733 * xdisp.c: Doc fix for references to gidx data member.
2734
27352008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2736
2737 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
2738
27392008-09-07 Kenichi Handa <handa@m17n.org>
2740
2741 * composite.c (FORWARD_CHAR): Check STOP after
2742 incrementing (POSITION).pos.
2743
27442008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2745
2746 * process.c (Fsystem_process_attributes): Doc fix.
2747
27482008-09-06 Chong Yidong <cyd@stupidchicken.com>
2749
2750 * keyboard.c (Ftop_level): Doc fix.
2751
27522008-09-06 Eli Zaretskii <eliz@gnu.org>
2753
2754 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
2755 minibuffer, don't let lower part of menu invade the echo area.
2756
2757 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
2758 "char *q" to access menu text and advance through it. Revert the
2759 change that displayed ">" instead of ASCII character 0x10.
2760
27612008-09-05 Eli Zaretskii <eliz@gnu.org>
2762
2763 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
2764 toggle boxes and radio buttons on MS-DOS as well.
2765
27662008-09-05 Kenichi Handa <handa@m17n.org>
2767
2768 * composite.c (autocmp_chars): Check lookback count.
2769 (composition_compute_stop_pos): Set cmp_it->lookback.
2770 (composition_reseat_it): Check lookback count.
2771 (struct position_record): New struct.
2772 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
2773 (find_automatic_composition): New function.
2774 (composition_adjust_point): Use find_automatic_composition.
2775
2776 * dispextern.h (struct composition_it): New member lookback.
2777
27782008-09-02 Chong Yidong <cyd@stupidchicken.com>
2779
2780 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
2781 if moving by a single line.
2782
27832008-09-02 Andreas Schwab <schwab@suse.de>
2784
2785 * xterm.c (x_delete_display): Fix merge error.
2786
2787 * fileio.c (Fexpand_file_name): Remove unused variables.
2788
27892008-09-02 Eli Zaretskii <eliz@gnu.org>
2790
2791 * fileio.c (Fexpand_file_name): Copy argument `name' into local
2792 storage on all platforms, not just on DOS_NT.
2793
27942008-09-02 Jason Rumney <jasonr@gnu.org>
2795
b8ff72fa
SM
2796 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
2797 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
2798
27992008-09-01 Chong Yidong <cyd@stupidchicken.com>
2800
2801 * xfaces.c (Finternal_set_alternative_font_family_alist)
2802 (Finternal_set_alternative_font_registry_alist): Properly copy
2803 entire alist structure.
2804
28052008-09-01 Kenichi Handa <handa@m17n.org>
2806
d66c0241 2807 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 2808 representative chars of the script is a vector.
d66c0241
JB
2809 (ftfont_list): Handle the case where the representative chars of
2810 the script is a vector.
aac0c6e3
MR
2811
2812 * character.c (syms_of_character): Docstring of
2813 script-representative-chars fixed.
2814
28152008-08-31 Eli Zaretskii <eliz@gnu.org>
2816
2817 * msdos.c (BUILD_CHAR_GLYPH): New macro.
2818 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
2819 the menu. Allocate larger buffer for `text', to account for
2820 possible ^C characters.
2821
28222008-08-31 Martin Rudalics <rudalics@gmx.at>
2823
2824 * xdisp.c (prepare_menu_bars): Don't call
2825 Vwindow_size_change_functions with arg Qt.
2826
28272008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2828
2829 * font.h (font_range):
2830 * fileio.c (report_file_error):
46e722a9
SM
2831 * composite.c (composition_update_it): Yet another int/Lisp_Object
2832 mixup (YAILOM).
aac0c6e3
MR
2833
28342008-08-30 Glenn Morris <rgm@gnu.org>
2835
2836 * data.c (Fmake_variable_frame_local): Doc fix.
2837
2838 * frame.c (Fmodify_frame_parameters): Doc fix.
2839
28402008-08-30 Eli Zaretskii <eliz@gnu.org>
2841
2842 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
2843 needed by GetTokenInformation.
2844 (w32_system_process_attributes): Check return values of all system
2845 APIs.
2846
2847 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
2848 only when the state changes.
2849 (IT_update_begin, IT_update_end): Add termscript trace.
2850
2851 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
2852 clipboard is unavailable. Set dst to NULL if it doesn't point to
2853 malloc'ed data.
2854 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
2855 passing random values to xfree.
2856
2857 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 2858 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
2859
28602008-08-29 Jason Rumney <jasonr@gnu.org>
2861
2862 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
2863
28642008-08-29 Eli Zaretskii <eliz@gnu.org>
2865
2866 * composite.c (fill_gstring_body): Avoid compiler warnings.
2867
2868 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
2869 LGLYPH_SET_CODE to avoid compiler warnings.
2870
2ae37cf0 2871 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
2872
2873 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
2874
2875 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
2876 LGLYPH_SET_CODE.
2877
28782008-08-29 Kenichi Handa <handa@m17n.org>
2879
2880 * fileio.c (report_file_error): Don't downcase the first character
2881 of errstring if it is still unibyte.
2882
28832008-08-29 Kenichi Handa <handa@m17n.org>
2884
2885 These changes are to re-implement the automatic composition so
2886 that it doesn't use text properties.
2887
2888 * Makefile.in (ftfont.o): Depend on composite.h.
2889 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
2890
2891 * character.h (Vunicode_category_table): Extern it.
2892
2893 * character.c (Vunicode_category_table): New variable.
2894 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
2895
2896 * chartab.c (optimize_sub_char_table): Perform more greedy
2897 optimization.
2898
b8ff72fa
SM
2899 * composite.h (enum composition_method):
2900 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
2901 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
2902 (Vcomposition_function_table): Extern it.
2903 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
2904 (composition_gstring_put_cache, composition_gstring_from_id)
2905 (composition_gstring_p, composition_gstring_width)
2906 (composition_compute_stop_pos, composition_reseat_it)
2907 (composition_update_it, composition_adjust_point): Extern them.
2908 (Fcomposition_get_gstring): EXFUN it.
2909
d66c0241 2910 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
2911 (Vcomposition_function_table)
2912 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
2913 (gstring_hash_table, gstring_work, gstring_work_headers):
2914 New variables.
aac0c6e3
MR
2915 (gstring_lookup_cache, composition_gstring_put_cache)
2916 (composition_gstring_from_id, composition_gstring_p)
2917 (composition_gstring_width, fill_gstring_header)
2918 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
2919 (composition_reseat_it, composition_update_it)
b8ff72fa 2920 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
2921 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
2922 and gstring_work_headers. DEFVAR_LISP composition-function-table.
2923 Defsubr compostion_get_gstring.
2924
2925 * dispextern.h (struct glyph): New union u.cmp. Delete the member
2926 cmp_id.
2927 (struct glyph_string): Delete the member gidx. New members
2928 cmp_id, cmp_from, and cmp_to.
2929 (enum it_method): Delete GET_FROM_COMPOSITION.
2930 (struct composition_it): New struct.
2931 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
2932 Delete c, len, cmp_id, cmp_len in u.comp.
2933
2934 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 2935 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 2936 (enum lglyph_indices): Likewise.
b8ff72fa 2937 (font_range): Adjust extern.
aac0c6e3
MR
2938 (font_fill_lglyph_metrics): Extern it.
2939
2940 * font.c (QCf): New variable.
2941 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2942 (font_prepare_composition): Delete this function.
2943 (font_range): Type and arguments changed.
2944 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
2945 (font_fill_lglyph_metrics): New function.
b8ff72fa 2946 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 2947 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
2948 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
2949 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
2950
2951 * fontset.h (font_for_char): Extern it.
2952
2953 * fontset.c (font_for_char): New function.
2954
2955 * ftfont.c: Include composite.h.
2956 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 2957 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
2958
2959 * indent.c: Include composite.h and dispextern.h.
2960 (check_composition): Delete this function.
2961 (scan_for_column): Handle composition by
2962 composition_compute_stop_pos, composition_reseat_it, and
2963 composition_update_it.
2964 (compute_motion): Likewise.
2965 (Fvertical_motion): Fix checking of composition.
2966
2967 * keyboard.c (adjust_point_for_property): Check composition by
2968 composition_adjust_point.
2969
b8ff72fa 2970 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
2971 struct glyph_string.
2972
b8ff72fa
SM
2973 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
2974 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
2975 struct glyph.
2976 (produce_composite_glyph): Likewise.
2977
b8ff72fa
SM
2978 * w32term.c (x_draw_composite_glyph_string_foreground):
2979 Adjust for the change of struct glyph_string.
aac0c6e3
MR
2980 (x_draw_glyph_string): Likewise.
2981
2982 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
2983 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2984
2985 * xdisp.c: Include font.h.
2986 (it_props): Delete the entry for Qauto_composed.
2987 (init_iterator): Initialize it->cmp_it.id to -1.
2988 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 2989 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
2990 (handle_auto_composed_prop): Delete it.
2991 (handle_composition_prop): Handle only static composition.
2992 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
2993 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 2994 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
2995 (pop_it): Likewise.
2996 (get_next_element): Delete next_element_from_composition.
2997 (CHAR_COMPOSED_P): New macro.
2998 (get_next_display_element): For automatic composition, get a face
2999 from the font in the glyph-string.
3000 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3001 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3002 (next_element_from_string): Check if the character at the current
3003 position is composed by CHAR_COMPOSED_P.
3004 (next_element_from_buffer): Likewise.
d66c0241
JB
3005 (next_element_from_composition): Adjust for the change of struct it.
3006 Update it->cmp_it.
b8ff72fa
SM
3007 (dump_glyph): Adjust for the change of struct glyph.
3008 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3009 it and struct glyph. Don't handle automatic composition here.
3010 (fill_gstring_glyph_string): New function.
3011 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3012 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3013 (BUILD_GSTRING_GLYPH_STRING): New macro.
3014 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3015 automatic composition.
b8ff72fa 3016 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3017 struct glyph.
b8ff72fa 3018 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3019
b8ff72fa 3020 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3021 the change of struct glyph_string.
3022 (x_draw_glyph_string): Likewise.
3023
30242008-08-29 Glenn Morris <rgm@gnu.org>
3025
3026 * buffer.c (word-wrap): Doc fix.
3027 * xdisp.c (truncate-partial-width-windows): Doc fix.
3028 Increase default to 50.
3029
30302008-08-29 Chong Yidong <cyd@stupidchicken.com>
3031
3032 * xdisp.c (update_tool_bar_unwind): New function.
3033 (update_tool_bar): Temporarily set selected frame before building
3034 tool-bar items.
3035
30362008-08-28 Michael Albinus <michael.albinus@gmx.de>
3037
3038 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3039 snprintf, respectively.
3040 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3041
30422008-08-28 Chong Yidong <cyd@stupidchicken.com>
3043
3044 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3045 LDFLAGS to GNUstep CC invocation.
3046
30472008-08-27 Chong Yidong <cyd@stupidchicken.com>
3048
3049 * indent.c (Fvertical_motion): Revert last change. Handle the
3050 general case where we are moving forward, and PT spans multiple
3051 screen lines.
3052
3053 * eval.c (find_handler_clause): Temporarily increase
3054 max-lisp-eval-depth while printing the backtrace buffer, to
3055 guarantee that help-mode code can run.
3056
30572008-08-27 Eli Zaretskii <eliz@gnu.org>
3058
3059 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3060 colors under -rv.
3061 (IT_set_frame_parameters): Don't swap foreground and background
3062 colors if `(reverse . t)' is present in the frame properties.
3063 (internal_terminal_init): Call init_frame_faces only for the
3064 initial frame.
3065
30662008-08-27 Andreas Schwab <schwab@suse.de>
3067
3068 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3069
30702008-08-27 Andreas Schwab <schwab@suse.de>
3071
3072 * search.c (search_buffer): Set char_base to zero only at the end.
3073
30742008-08-27 Kenichi Handa <handa@m17n.org>
3075
b8ff72fa 3076 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3077
30782008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3079
3080 * xterm.c (x_term_init): Temporarily hide the partially
3081 initialized terminal while calling vendor-specific-keysyms.
3082
30832008-08-26 Eli Zaretskii <eliz@gnu.org>
3084
3085 * msdos.c (internal_terminal_init): Most initializations done only
3086 once, especially initial_screen_colors[] and termscript open.
3087
30882008-08-26 Chong Yidong <cyd@stupidchicken.com>
3089
3090 * eval.c (Fcondition_case): Doc fix.
3091
3092 * widgetprv.h (EmacsFramePart): Change font member to the new font
3093 struct.
3094
3095 * widget.c: Include character.h and font.h for XSETFONT.
3096 (setup_frame_gcs): Compute X font id from font struct, just once.
3097
30982008-08-26 Eli Zaretskii <eliz@gnu.org>
3099
3100 * term.c (get_named_tty): Fix last change.
3101
31022008-08-26 Chong Yidong <cyd@stupidchicken.com>
3103
3104 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3105 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3106
31072008-08-25 Eli Zaretskii <eliz@gnu.org>
3108
3109 * frame.c (do_switch_frame): Mark previously displayed frame as
3110 obscured for FRAME_MSDOS_P frames as well.
3111
31122008-08-24 Eli Zaretskii <eliz@gnu.org>
3113
3114 * frame.c (make_terminal_frame): Initialize f->terminal,
3115 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3116 Set the top frame to newly created frame.
3117 (Fmake_terminal_frame): Reuse the_only_display_info.
3118
3119 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3120 estimating available memory.
3121
b97439ce 31222008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3123
3124 * nsterm.m (ns_draw_window_cursor): Don't call
3125 NSDisableScreenUpdates and NSEnableScreenUpdates on
3126 non-NS_IMPL_COCOA systems.
3127
31282008-08-23 Andreas Schwab <schwab@suse.de>
3129
3130 * process.c (procfs_system_process_attributes): Fix use of
3131 uninitialized variables.
3132
31332008-08-23 Eli Zaretskii <eliz@gnu.org>
3134
3135 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3136
3137 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3138 calling tty-set-up-initial-frame-faces.
3139
b8ff72fa
SM
3140 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3141 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3142
3143 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3144 addition to output_termcap.
3145
3146 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3147
3148 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3149 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3150 highlight.
3151
3152 * process.c [!subprocesses]: Define QCname.
3153 (syms_of_process): Intern and staticpro it.
3154
3155 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3156 Adjust for changes in encoding/decoding routines.
3157 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3158 encode_coding and decode_coding.
3159
b8ff72fa 3160 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3161
3162 * dosfns.c: Include frame.h before termhooks.h.
3163 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3164 variable termscript.
3165
3166 * s/msdos.h (USER_FULL_NAME): Define.
3167 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3168
3169 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3170 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3171 pw->pw_gecos.
3172
3173 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3174 SELECTED_FRAME as additional (1st) argument.
3175 (tty_read_avail_input): Handle output_msdos_raw in
3176 addition to output_termcap.
3177
3178 * msdos.c: Include frame.h before termhooks.h.
3179 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3180 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3181 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3182 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3183 (IT_set_terminal_modes, IT_reset_terminal_modes)
3184 (IT_set_frame_parameters): Use tty->termscript instead of a global
3185 variable termscript.
3186 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3187 global variable terminal_coding. Don't refer to
3188 Vnonascii_translation_table.
3189 (internal_terminal_init): Set Vwindow_system in current_kboard.
3190 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3191 Announce date and time of session start, if termscript is open.
3192 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3193 term.c:init_tty). Open termscript only of not already open.
3194 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3195 here instead of dos_ttraw. Don't initialize display if this is an
3196 initial tty. Don't set FRAME_FONT.
3197 (Vwindow_system_version): Bump to 23.
3198 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3199 is available, set up mouse_position_hook.
3200 (dos_ttraw, IT_set_terminal_modes): If called with initial
3201 terminal, do nothing.
3202 (IT_set_frame_parameters): Handle the Qtty_type frame
3203 parameter by calling internal_terminal_init.
3204 (dos_set_window_size, show_mouse_face)
3205 (clear_mouse_face, IT_note_mode_line_highlight)
3206 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3207 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3208 (initialize_msdos_display): New function.
3209 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3210 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3211 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3212 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3213 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3214 (request_sigio, unrequest_sigio): Don't define, now defined on
3215 sysdep.c.
3216 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3217
3218 * term.c [MSDOS]: Include msdos.h.
3219 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3220 conditional to DOS_NT. Allow only one call to this function in a
3221 session. Don't allocate a new struct tty_display_info; instead,
3222 reuse the_only_display_info. Call get_tty_size to get screen
3223 dimensions. Call init_baud_rate to set bad_rate.
3224 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3225 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3226 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3227 (get_tty_terminal, get_named_tty, Ftty_type)
3228 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3229 output_termcap.
b8ff72fa
SM
3230 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3231 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3232 only when subprocesses are supported.
aac0c6e3
MR
3233
3234 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3235 f->output_data.x.
3236 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3237 terminal devices.
3238
5582fbc7 3239 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3240 x_output.
3241 (FRAME_FONT): Use output_data.tty.
3242 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3243 (struct x_display_info): Rename from display_info. Update all users in
3244 msdos.c.
aac0c6e3 3245 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3246 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3247 (dos_ttraw): Update prototype.
3248
3249 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3250 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3251
32522008-08-23 Jason Rumney <jasonr@gnu.org>
3253
3254 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3255 (fn_TIFFSetDirectory): New library function used.
3256 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3257 (tiff_load): Use :index to select among multiple images. Set count
3258 property when multiple images exist.
3259 (gif_format): Use :index, not :image.
3260
32612008-08-23 Chong Yidong <cyd@stupidchicken.com>
3262
3263 * xdisp.c (try_scrolling): Check INT_MAX instead of
3264 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3265 to obtain INT_MAX.
3266
32672008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3268
3269 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3270
32712008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3272
3273 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3274 GNUstep library location.
3275
32762008-08-21 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3279 before using it.
3280
3281 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3282
32832008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3284
3285 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3286 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3287 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3288 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3289 (EmacsApp-cursor_blink_handler): Remove declaration.
3290 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3291 match 01 Feb 2008 changes in xterm.c.
3292 (ns_read_socket): Add cast to avoid warning.
3293 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3294 GNUstep.
3295
32962008-08-20 Chong Yidong <cyd@stupidchicken.com>
3297
3298 * xselect.c (x_get_foreign_selection): Return nil if desired
3299 selection could not be obtained, instead of signalling an error.
3300
33012008-08-20 David Reitter <david.reitter@gmail.com>
3302
3303 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3304 * nsterm.m: Remove ns-specific code for cursor blinking.
3305 (ns_draw_window_cursor): Clear cursor properly rather than
3306 redrawing the area. Respect width of bar cursors.
3307 These changes enable the use of generic blink-cursor-mode and
3308 generic cursor types in NS and support smooth cursor movements (do
3309 not blink off after command).
3310 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3311 Nextstep, too.
3312
33132008-08-19 Kenichi Handa <handa@m17n.org>
3314
3315 * font.c (Vfont_log_deferred): New variable.
3316 (font_add_log): Check Vfont_log_deferred.
3317 (font_deferred_log): New function.
3318
3319 * font.h (font_deferred_log): Extern it.
3320
3321 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3322 for sorting.
3323 (face_for_char): Use deferred log.
3324
33252008-08-18 Kenichi Handa <handa@m17n.org>
3326
3327 * fontset.c (face_for_char): Add font log.
3328
3329 * font.c (font_add_log): Add the font properties :script, :lang,
3330 and :otf in the log.
3331
33322008-08-17 Chong Yidong <cyd@stupidchicken.com>
3333
3334 * xdisp.c: Remove dead code.
3335 (handle_invisible_prop, next_overlay_string): Defer call to
3336 setup_for_ellipsis.
3337 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3338
33392008-08-15 Chong Yidong <cyd@stupidchicken.com>
3340
3341 * xfaces.c (lookup_derived_face): Properly handle possible zero
3342 return value of get_lface_attributes.
3343 (merge_faces): Don't tell lookup_derived_face to signal an error
3344 if face is not found.
3345
3346 * dired.c (Fdirectory_files): Doc fix.
3347
3348 * process.c (make_process): Initialize kill_without_query struct
3349 member.
3350
33512008-08-15 Eli Zaretskii <eliz@gnu.org>
3352
3353 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3354 Alternative calculation of totphys for Visual Studio 6.
3355
3356 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3357
3358 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3359 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3360 All users changed.
3361 (stat): Only root directory passed to GetDriveType. Allow RAM
3362 disk as well as local fixed disk when w32-get-true-file-attributes
3363 is set to `local'.
3364 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3365 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3366 (w32_cached_id, w32_add_to_cache): New functions.
3367 (get_name_and_id): Look account names in the cache before calling
3368 lookup_account_sid.
3369 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3370 New initialization flags.
3371 (globals_of_w32): Initialize them to zero.
3372 (w32_system_process_attributes): Use w32_cached_id and
3373 w32_add_to_cache.
3374
33752008-08-14 Lawrence Mitchell <wence@gmx.li>
3376
3377 * lread.c (Fread_char, Fread_char_exclusive): If no character
3378 event is read before timeout is reached, return nil, rather than
3379 converting to a number.
3380
33812008-08-14 Chong Yidong <cyd@stupidchicken.com>
3382
3383 * fns.c (use_dialog_box): Doc fix.
3384
3385 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3386 on OS X.
3387
33882008-08-13 Chong Yidong <cyd@stupidchicken.com>
3389
3390 * frame.c (Qns_parse_geometry): New var.
3391 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3392
33932008-08-11 Chong Yidong <cyd@stupidchicken.com>
3394
3395 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3396 space character in calculating tabs.
3397
33982008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3399
3400 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3401
34022008-08-10 Glenn Morris <rgm@gnu.org>
3403
3404 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3405 silence gcc "limited range of data type" warnings in some
3406 make_fixnum_or_float calls.
3407
34082008-08-09 Eli Zaretskii <eliz@gnu.org>
3409
3410 * w32.c (w32_system_process_attributes): If the process does not
3411 exist, return nil.
3412
3413 * w32.c: Include thelp32.h, psapi.h and coding.h.
3414 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3415 declarations.
3416 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3417 (Process32Next_Proc): New typedefs.
3418 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3419 (g_b_init_process32_next, g_b_init_open_thread_token)
3420 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3421 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3422 (g_b_init_get_process_working_set_size)
3423 (g_b_init_global_memory_status_ex): New static variables.
3424 (globals_of_w32): Initialize them.
3425 (create_toolhelp32_snapshot, process32_first, process32_next)
3426 (open_thread_token, impersonate_self, revert_to_self)
3427 (get_process_memory_info, get_process_working_set_size)
3428 (global_memory_status, global_memory_status_ex): New wrapper
3429 functions.
3430 (w32_list_system_processes, w32_system_process_attributes)
3431 (enable_privilege, restore_privilege, ltime, process_times):
3432 New functions.
3433 (convert_time_raw): New function.
3434 (convert_time): Remove conversion of FILETIME into time in 100
3435 nsec units, call convert_time_raw instead.
3436
3437 * process.h (w32_list_system_processes, w32_system_process_attributes):
3438 Add prototypes.
3439 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3440 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3441 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3442 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3443
3444 * process.c (Fsystem_process_attributes): Doc fix.
3445
34462008-08-08 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3449 a continued multi-char glyph; if so, advance to the actual glyph.
3450
34512008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3452
3453 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3454
3455 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3456 (.m.o): Use it.
3457 * config.in: Regenerate.
3458
34592008-08-07 Chong Yidong <cyd@stupidchicken.com>
3460
3461 * xdisp.c (redisplay_window): Revert last change.
3462 (try_window): Check bottom scroll margin too.
3463
34642008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3465
3466 * config.in: Regenerate.
3467
3468 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3469 -list-load-path-shadows'.
3470 (nsgui.h): Reduce number of things depending on it.
3471
34722008-08-06 Chong Yidong <cyd@stupidchicken.com>
3473
3474 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3475 instead of window-end which does the wrong thing at eob.
3476 (try_cursor_movement): Minor optimization.
3477 (redisplay_window): If scroll margin is defined, don't assume
3478 window doesn't need scrolling.
3479
34802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3481
3482 * config.in: Regenerate.
3483
3484 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3485 (mostlyclean): Don't delete *.d under NS.
3486
3487 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3488
34892008-08-06 Kenichi Handa <handa@m17n.org>
3490
3491 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3492
34932008-08-06 Andreas Schwab <schwab@suse.de>
3494
3495 * config.in: Regenerate.
3496
34972008-08-05 Chong Yidong <cyd@stupidchicken.com>
3498
3499 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3500 forcing a window start.
3501
3502 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3503 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3504
35052008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3506
3507 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3508 argument.
3509
35102008-08-05 Juanma Barranquero <lekktu@gmail.com>
3511
3512 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3513 <scroll-down-aggressively, before-change-functions>:
3514 <after-change-functions>: Reflow docstrings.
3515
35162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3517 Ken Raeburn <raeburn@gnu.org>
3518
3519 Dock menu customization, based on a patch by Ken Raeburn, plus some
3520 other fixes.
3521 * nsmenu.m (dockMenu): New variable.
3522 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3523
3524 * nsterm.h (dockMenu): Declare.
3525
3526 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3527 (ns_term_init): Initialize dockMenu.
3528 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3529 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3530 left.
3531
3532 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3533
35342008-08-04 Chong Yidong <cyd@stupidchicken.com>
3535
3536 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3537
3538 * config.in: Regenerate.
3539
35402008-08-04 Seiji Zenitani <zenitani@mac.com>
3541
3542 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3543
35442008-08-04 Chong Yidong <cyd@stupidchicken.com>
3545
3546 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3547
35482008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3549
3550 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3551
3552 * keyboard.h: Comment an #endif.
3553
3554 * lisp.h (have_menus_p): Adjust comment.
3555
3556 * menu.c (find_and_return_menu_selection): Fix comparison with
3557 client_data.
3558
3559 * nsmenu.m (popup_activated_flag): New variable.
3560 (popup_activated): New function.
3561 (menu-or-popup-active-p): New exported lisp definition.
3562 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3563 when popup done.
3564 (ns_popup_dialog): Set popup_activated_flag.
3565
3566 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3567 version for GNUstep (handled by conditional typedef in nsterm.m).
3568 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3569 in rgb.txt).
3570
3571 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3572
3573 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3574
3575 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3576
3577 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3578 shortcircuit if popup_activated like GTK and X toolkit.
3579
3580 * m/inter386.h: Change DARWIN to DARWIN_OS.
3581
3582 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3583 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3584 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3585 comment on NO_SOCK_SIGIO.
3586
35872008-08-03 Chong Yidong <cyd@stupidchicken.com>
3588
3589 * nsterm.m (windowDidResize): Remove stopModal call.
3590
35912008-08-03 Andreas Schwab <schwab@suse.de>
3592
3593 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3594 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3595
35962008-08-02 Chong Yidong <cyd@stupidchicken.com>
3597
3598 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3599 Don't use uninitialized pointer variable when using getrlimit.
3600
36012008-08-02 Jason Rumney <jasonr@gnu.org>
3602
3603 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3604
36052008-08-02 Eli Zaretskii <eliz@gnu.org>
3606
3607 * alloc.c (NSTATICS): Bump to 0x640.
3608
3609 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
3610
3611 * lisp.h: Add prototype for directory_files_internal.
3612
3613 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
3614 New functions.
3615 (syms_of_process): Defsubr them. Add initializations for various
3616 Q* symbols used in procfs_system_process_attributes.
3617 (procfs_list_system_processes, procfs_system_process_attributes)
3618 [HAVE_PROCFS]: New functions.
3619 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
3620 (procfs_get_total_memory): New functions.
3621
36222008-08-01 Juanma Barranquero <lekktu@gmail.com>
3623
3624 * xfaces.c (Fx_load_color_file): Fix previous change;
3625 it is #ifdef WINDOWSNT, not WINDOWS_NT.
3626
36272008-08-01 Michael Albinus <michael.albinus@gmx.de>
3628
3629 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
3630
36312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3632
3633 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
3634
36352008-08-01 Chong Yidong <cyd@stupidchicken.com>
3636
3637 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
3638
3639 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
3640 define NSApplicationDelegateReplySuccess.
3641 (EmacsView -converstationIdentifier): Use long instead of
3642 NSInteger for GNUstep, since it doesn't have NSInteger.
3643
3644 * xmenu.c: Revert last change.
3645
3646 * keyboard.h: Fix last change.
3647
36482008-08-01 Juanma Barranquero <lekktu@gmail.com>
3649
3650 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
3651 on Windows.
3652
36532008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3654
3655 Warning clearing and clean-up in NS port.
3656 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3657 Add prototypes.
3658 * nsgui.h (FACE_DEFAULT): Remove, unused.
3659 (XGCValues): Change colors to unsigned long.
3660 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
3661 nsterm.m.
3662 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
3663 (ns_list_fonts): Remove, unused.
3664 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
3665 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
3666 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
3667 (nsfont_draw): Compare face colors to 0, not nil.
3668 * nsmenu.m (struct widget_value): Drop unneeded declaration.
3669 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
3670 (-addSubmenuWithTitle:): Use NSMenuItem class.
3671 (ns_popup_menu): Use NO, not NULL, for enabled setting.
3672 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
3673 (ns_clip_to_row): Make gc arg a BOOL.
3674 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
3675 ns_clip_to_row() call.
3676 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
3677 used). Cast FRAME_FONT assignments.
3678 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
3679 (ns_string_to_lispmod): Change arg to const char.
3680 (ns_term_init): Use NSMenuItem class.
3681 (EmacsApp -openFile:): Move to different section of file.
3682 (EmacsApp -application:openFiles:): Don't return a value, call
3683 -replyToOpenOrPrint:.
3684 (EmacsView -keyDown:): Fix up cast.
3685 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
3686 (EmacsView -menuDown:): Cast tag in call to
3687 find_and_call_menu_selection().
3688 (ns_list_fonts): Remove, unused.
3689 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
3690 (ns_fontname_to_xlfd): Make static.
3691 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
3692 Remove prototypes (now in keyboard.h).
3693 (next_menubar_widget_id): Remove, unused.
3694 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
3695 Remove prototypes (now in keyboard.h).
3696 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
3697
36982008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
3699
3700 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
3701 (floatfns.o): Depend on syssignal.h.
3702 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
3703
3704 * systty.h: Fix previous change that removed BSD_TERMIOS.
3705 Add comments to #ifdefs.
3706
37072008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3708
3709 * w32fns.c (w32-load-color-file): Remove.
3710 (x-open-connection): Use renamed Fx_load_color_file.
3711 * xfaces.c (x-load-color-file): Add.
3712 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
3713 Emacs.clr.
3714 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
3715
37162008-07-31 Michael Albinus <michael.albinus@gmx.de>
3717
3718 * dbusbind.c (Fdbus_call_method_asynchronously)
3719 (Fdbus_method_error_internal): New defuns.
3720 (xd_read_message): Handle also reply messages.
3721 (Vdbus_registered_functions_table): Extend docstring.
3722
37232008-07-31 Juanma Barranquero <lekktu@gmail.com>
3724
3725 * keyboard.c (gobble_input): Fix previous change.
3726
37272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3728
3729 * bitmaps/README:
3730 * xfns.c:
3731 * termcap.c:
3732 * term.c:
3733 * syswait.h:
3734 * systty.h:
3735 * systime.h:
3736 * syssignal.h:
3737 * sysdep.c:
3738 * process.h:
3739 * process.c:
3740 * print.c:
3741 * ndir.h:
3742 * lread.c:
3743 * keyboard.c:
3744 * getpagesize.h:
3745 * floatfns.c:
3746 * fileio.c:
3747 * emacs.c:
3748 * doc.c:
3749 * dispnew.c:
3750 * dired.c:
3751 * data.c:
3752 * callproc.c:
3753 * buffer.c:
3754 * README:
3755 * Makefile.in:
3756 * s/template.h:
3757 * s/msdos.h:
3758 * m/vax.h: Remove VMS support.
3759 * s/vms.h:
3760 * vlimit.h:
3761 * uaf.h:
3762 * temacs.opt:
3763 * param.h:
3764 * ioctl.h: Remove file.
3765
37662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3767
3768 * s/ms-w32.h (MULTI_KBOARD): Remove.
3769 * xterm.c:
3770 * xselect.c:
3771 * xfns.c:
3772 * window.c:
3773 * w32term.c:
3774 * w32fns.c:
3775 * terminal.c:
3776 * termhooks.h:
3777 * term.c:
3778 * sysdep.c:
3779 * keyboard.h:
3780 * keyboard.c:
3781 * frame.h:
3782 * frame.c:
3783 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
3784 * config.in: Regenerate.
3785
37862008-07-30 Jason Rumney <jasonr@gnu.org>
3787
3788 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
3789
3790 * w32font.c (w32font_encode_char): Leave as unicode if in range.
3791 (w32font_open_internal): Get unicode version of textmetrics.
3792 Don't enable or disable glyph indices here.
3793 (w32font_open): Disable use of glyph indices.
3794
3795 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
3796
37972008-07-30 Chong Yidong <cyd@stupidchicken.com>
3798
3799 * minibuf.c (Vread_buffer_function): Doc fix.
3800
38012008-07-30 John Paul Wallington <jpw@pobox.com>
3802
3803 * minibuf.c (read_buffer_completion_ignore_case): New var.
3804 (Fread_buffer): Use it.
3805
38062008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3807
3808 * systty.h (sensemode): Remove empty #if. Remove reference to
3809 BSD_TERMIOS, unused.
3810
3811 * sysdep.c: Remove reference to DGUX.
3812 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
3813
3814 * config.in: Regenerate.
3815
38162008-07-30 Jason Rumney <jasonr@gnu.org>
3817
3818 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
3819
38202008-07-29 Jason Rumney <jasonr@gnu.org>
3821
3822 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
3823 is populated.
3824 (uniscribe_encode_char): Always use uniscribe.
3825 Avoid using context if cache is populated.
3826
38272008-07-29 Jan Djärv <jan.h.d@swipnet.se>
3828
3829 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
3830 open menu.
3831
3832 * gtkutil.c (menu_nav_ended): Remove.
3833 (create_menus): Remove signal connect for menu_nav_ended.
3834
38352008-07-28 Chong Yidong <cyd@stupidchicken.com>
3836
3837 * xdisp.c (redisplay_window): Check return value of
3838 compute_window_start_on_continuation_line before forcing a window
3839 start.
3840
38412008-07-28 Jason Rumney <jasonr@gnu.org>
3842
3843 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
3844
3845 * w32term.c (w32_enable_unicode_output, cleartype_active):
3846 Remove obsolete display options.
3847 (x_draw_glyph_string_background): Don't use old cleartype_active
3848 workaround.
3849 (w32_initialize): Remove cleartype_active initialization.
3850 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
3851
38522008-07-28 Andreas Schwab <schwab@suse.de>
3853
3854 * lisp.h (init_weak_hash_tables, syms_of_font)
3855 (xd_read_queued_messages, syms_of_dbusbind): Declare.
3856 (remove_hash_entry): Don't declare.
3857 * eval.c (maybe_call_debugger): Make static and move before use.
3858 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
3859 * xdisp.c: Include "gtkutil.h" if USE_GTK.
3860 * xterm.h (x_set_frame_alpha): Declare.
3861
38622008-07-28 Jan Djärv <jan.h.d@swipnet.se>
3863
3864 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
3865 (create_menus): Connect selection-done to menu_nav_ended.
3866
38672008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3868
3869 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
3870 Set Vx_resource_name to a fallback. Replace read of 'buffered'
3871 parameter with read of 'alpha' one.
3872 (Qns_frame_parameter): Remove.
5582fbc7 3873 * nsselect.m (selection-coding-system)
aac0c6e3
MR
3874 (next-selection-coding-system, Vselection_coding_system)
3875 (Vnext_selection_coding_system): Drop.
3876
38772008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3878
3879 * nsfns.m (do-applescript, do_applescript): Rename to
3880 ns-do-applescript, ns_do_applescript, and move within file.
3881
38822008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3883
3884 Remove support for Mac Carbon.
3885 * mactoolbox.c:
3886 * macterm.h:
3887 * macterm.c:
3888 * macselect.c:
3889 * macmenu.c:
3890 * macgui.h:
3891 * macfns.c:
3892 * mac.c: Remove file.
3893 * s/darwin.h:
3894 * m/intel386.h:
3895 * xfaces.c:
3896 * xdisp.c:
3897 * window.c:
3898 * tparam.c:
3899 * termhooks.h:
3900 * termcap.c:
3901 * term.c:
3902 * syssignal.h:
3903 * sysselect.h:
3904 * sysdep.c:
3905 * process.c:
3906 * lread.c:
3907 * lisp.h:
3908 * keyboard.c:
3909 * image.c:
3910 * fringe.c:
3911 * frame.h:
3912 * frame.c:
3913 * fontset.c:
3914 * font.h:
3915 * font.c:
3916 * fns.c:
3917 * fileio.c:
3918 * emacs.c:
3919 * dispnew.c:
3920 * dispextern.h:
3921 * config.in:
3922 * atimer.c:
2ae37cf0 3923 * Makefile.in: Remove code for Carbon.
aac0c6e3 3924
f0131492 39252008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
3926
3927 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
3928
39292008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3930
3931 * macterm.h (kCGBitmapByteOrder32Host): New define for
3932 non-universal SDKs.
3933
3934 * image.c (mac_create_cg_image_from_image, image_load_image_io)
3935 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3936
3937 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
3938 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3939
39402008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
3941
3942 * w32inevt.c: Include dispextern.h.
3943
39442008-07-26 Andreas Schwab <schwab@suse.de>
3945
3946 * print.c (print_object): Fix off-by-one in last change.
3947
39482008-07-25 Juanma Barranquero <lekktu@gmail.com>
3949
3950 * term.c (syms_of_term): Don't initialize default_orig_pair,
3951 default_set_foreground and default_set_background on Windows.
3952
39532008-07-25 Jason Rumney <jasonr@gnu.org>
3954
3955 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
3956 ScriptItemize. Clean up return value checking. Remove unused
3957 variables.
3958 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
3959 shaping engine.
3960
3961 * w32font.c (w32font_has_char): Handle the case where we can't
3962 determine the script for a character.
3963
39642008-07-25 Chong Yidong <cyd@stupidchicken.com>
3965
3966 * term.c (syms_of_term): Initialize default_orig_pair,
3967 default_set_foreground, and default_set_background.
3968
3969 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3970 clash (bug#86).
3971 (getloadavg): Callers changed.
3972
3973 * image.c (svg_load_image): Fix last change.
3974 (svg_load_image): Use rsvg_handle_get_dimensions to check that
3975 image size is valid. Use g_object_unref instead of deprecated
3976 rsvg_handle_free to free rsvg handle.
3977 (x_from_xcolors): Don't initialize pixmap (silence compiler).
3978
39792008-07-25 Jason Rumney <jasonr@gnu.org>
3980
3981 * w32font.c (w32font_encode_char): Encode characters outside BMP as
3982 surrogates before looking up glyph index.
3983 (w32font_text_extents): Encode as surrogates if falling back to
3984 functions that need UTF-16 wide chars.
3985
3986 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
3987 BMP as surrogates before looking up glyph index.
3988
39892008-07-25 Chong Yidong <cyd@stupidchicken.com>
3990
3991 * image.c (svg_load_image): Check for failure in return value of
3992 rsvg_handle_get_pixbuf. Free rsvg handle when done.
3993
39942008-07-25 Jason Rumney <jasonr@gnu.org>
3995
3996 * w32font.c (Fx_select_font): Reverse sense of second arg.
3997
39982008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
3999
4000 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4001 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4002
4003 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4004 (PURESIZE): Use it.
4005
40062008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4007
4008 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4009 * m/alpha.h (TEXT_END):
4010 * m/ibmrs6000.h (TEXT_END):
4011 * m/macppc.h (TEXT_END):
4012 * s/darwin.h (TEXT_END):
4013 * s/msdos.h (TEXT_END): Remove, unused.
4014 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4015 * s/cygwin.h: Remove comment.
4016
4017 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4018 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4019 * m/intel386.h (DOT_GLOBAL_START):
4020 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4021 (USG): Remove, file not used on USG platforms.
4022
4023 * Makefile.in (HAVE_X11): Remove empty #else.
4024
40252008-07-24 Andreas Schwab <schwab@suse.de>
4026
4027 * fileio.c (Finsert_file_contents): Properly adjust undo list
4028 after format conversion.
4029
40302008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4031
4032 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4033 (menu_nav_ended): Remove.
4034 (create_menus): Remove signal connect for menu_nav_ended.
4035 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4036 create_menus.
4037 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4038
40392008-07-23 Jason Rumney <jasonr@gnu.org>
4040
4041 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4042 with opened font.
4043 (w32font_open): Set font type to gdi.
4044
4045 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4046
40472008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4048
4049 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4050 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4051 defines it.
4052 * unexec.c (ADDR_CORRECT): Define unconditionally.
4053
4054 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4055
4056 * unexec.c: Remove code depending on !COFF and USG, the file is
4057 not used for such systems.
4058
4059 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4060 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4061 (LD_SWITCH_SYSTEM_1): Remove, update users.
4062
4063 * s/darwin.h (DATA_END):
4064 * m/intel386.h (DATA_END):
4065 * m/ibmrs6000.h (DATA_END):
4066 * m/alpha.h (DATA_END): Remove, unused.
4067
4068 * config.in: Regenerate.
4069 * s/ms-w32.h (subprocesses): Define unconditionally.
4070 * s/template.h (subprocesses): Update comment.
4071 * s/vms.h (subprocesses):
4072 * s/usg5-4.h (subprocesses):
4073 * s/hpux10-20.h (subprocesses):
4074 * s/gnu-linux.h (subprocesses):
4075 * s/cygwin.h (subprocesses):
4076 * s/bsd-common.h (subprocesses):
4077 * s/aix4-2.h (subprocesses):
4078 * s/darwin.h (subprocesses): Do not define, defined by default now.
4079
4080 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4081 Remove all references.
4082 (temacs): Add GNUstep specific ld flags.
4083
4084 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4085 similarly to what X does.
4086
40872008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4088
4089 * nsfns.m (x-list-fonts): Remove.
4090 (syms_of_nsfns): Drop the x-list-fonts declaration.
4091 * nsterm.m: Get rid of remaining "//" comments.
4092
40932008-07-22 Chong Yidong <cyd@stupidchicken.com>
4094
4095 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4096
4097 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4098 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4099 (Fns_own_selection_internal, Fx_disown_selection_internal)
4100 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4101
4102 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4103 ... */' style of docstrings. Doc fixes.
4104
41052008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4106
4107 * terminfo.c (UP, BC, PC): Undo previous change.
4108
4109 * nsfns.m: Rename ns prefixed functions/variables to the
4110 corresponding x versions. Update references.
4111
41122008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4113
4114 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4115
41162008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4117
4118 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4119 Remove forwarding functions.
4120 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4121 non-static.
4122 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4123 non-static.
4124 (ns_frame_parm_handlers): Use the new names.
4125 (syms_of_nsfns): Move to the end of file.
4126
4127 * nsterm.m (syms_of_nsterm): Move to the end of file.
4128
4129 * dispnew.c (init_display): Remove code for X10.
4130
41312008-07-22 Jason Rumney <jasonr@gnu.org>
4132
4133 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4134 bare drive.
4135
41362008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4137
4138 * nsterm.m (syms_of_nsterm): Remove debugging println.
4139
41402008-07-22 David Reitter <david.reitter@gmail.com>
4141
4142 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4143 Carbon implementation of the same functionality: execute arbitrary
4144 AppleScript code.
4145
41462008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4147
4148 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4149 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4150 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4151 (Fx_display_mm_height, Fx_display_mm_width)
4152 (Fx_display_backing_store, Fx_display_visual_class)
4153 (Fx_display_save_under, Fx_open_connection)
4154 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4155 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4156 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4157 (Fx_display_pixel_width, Fx_display_pixel_height)
4158 (Fx_display_usable_bounds, Fx_display_planes)
4159 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4160 ... */' style of docstrings.
4161
41622008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4163
4164 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4165 on this platform.
4166 (mips):
4167 * m/iris4d.h (mips): Do not define.
4168 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4169
4170 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4171
4172 * image.c:
4173 * nsfns.m:
4174 * nsselect.m:
4175 * nsterm.h:
4176 * nsterm.m: Rename ns prefixed functions/variables to the
4177 corresponding x versions. Update references.
4178
4179 * m/ibms390x.h (NO_REMAP): Do not undefine.
4180
4181 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4182
41832008-07-21 Chong Yidong <cyd@stupidchicken.com>
4184
4185 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4186 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4187 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4188 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4189 (Fns_display_mm_height, Fns_display_mm_width)
4190 (Fns_display_backing_store, Fns_display_visual_class)
4191 (Fns_display_save_under, Fns_open_connection)
4192 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4193 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4194 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4195 (Fns_display_pixel_width, Fns_display_pixel_height)
4196 (Fns_display_usable_bounds, Fx_display_planes)
4197 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4198
41992008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4200
4201 * print.c (print_object): Check print_depth before searching for
4202 circularities.
4203
42042008-07-21 Michael Albinus <michael.albinus@gmx.de>
4205
4206 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4207 only sprintf.
4208
42092008-07-21 Kenichi Handa <handa@m17n.org>
4210
4211 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4212
42132008-07-20 Andreas Schwab <schwab@suse.de>
4214
4215 * syntax.c (find_start_pos, find_start_value)
4216 (find_start_value_byte, find_start_begv, find_defun_start)
4217 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4218
42192008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4220
4221 * s/sol2-3.h: Insert contents of s/sol2.h.
4222 (LD_SWITCH_SYSTEM): Remove redundant definition.
4223 * s/sol2.h: Remove, unused.
4224
42252008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4226
4227 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4228
42292008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4230
4231 * Makefile.in (ns_appdir): Fix typo in find command.
4232
42332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4234
4235 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4236
4237 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4238 added not supported anymore.
4239
4240 * s/usg5-4-2.h (LIBS_SYSTEM):
4241 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4242
4243 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4244 * s/lynxos.h (GETPGRP_NO_ARG):
4245 * s/hpux10-20.h (NO_SIOCTL_H):
4246 * s/gnu.h (GETPGRP_NO_ARG):
4247 * s/gnu-linux.h (NO_SIOCTL_H):
4248 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4249 * s/cygwin.h (GETPGRP_NO_ARG):
4250 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4251 (C_DEBUG_SWITCH): Remove duplicate definition.
4252
4253 * m/ibms390.h: Remove boilerplate comments.
4254
4255 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4256
4257 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4258 (wait_reading_process_output): Remove code for SunOS, platform not
4259 supported anymore. Use SOLARIS2 instead of sun.
4260
42612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4262
4263 * font.c (font_open_by_name): Under NS, default lface height to zero.
4264 (font_open_for_lface): Under NS, set size based on frame fontsize.
4265 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4266 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4267
42682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4269
4270 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4271 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4272 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4273 YES/NO.
4274 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4275 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4276 * Makefile.in (clean): Clear out build destination dir.
4277
42782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4279
4280 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4281 xterm, xselect.
4282 * lisp.h: Remove declaration of hash_remove.
4283 * nsgui.h: Remove redefinitions of hash_remove.
4284 * fns.c (hash_remove): Rename to hash_remove_from_table.
4285
42862008-07-19 Seiji Zenitani <zenitani@mac.com>
4287
4288 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4289 strdup() the family UTF8String before modifying it.
4290
42912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4292
4293 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4294 NS_FACE_BACKGROUND with 0 instead of nil.
4295 * nsfont.m (nsfont_draw): Same.
4296
42972008-07-19 Chong Yidong <cyd@stupidchicken.com>
4298
4299 * nsfns.m (ns_set_background_color): Fix crash.
4300
43012008-07-18 Chong Yidong <cyd@stupidchicken.com>
4302
4303 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4304
43052008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4306
4307 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4308
43092008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4310
4311 * gtkutil.c: Include <config.h> instead of "config.h".
4312
4313 * lisp.h (Foverlay_buffer): Add EXFUN.
4314
4315 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4316 child process to complete child_setup. Undo 2005-09-21 change.
4317
4318 * s/darwin.h: Mention setsid after vfork.
4319
43202008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4321
4322 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4323 Depend on macgui.h.
4324
4325 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4326 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4327
4328 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4329 and f19.
4330 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4331
4332 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4333 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4334 Remove enumerators.
4335
4336 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4337 Check if FACE_FROM_ID returns NULL.
4338
43392008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4340
4341 * w32inevt.c (change_frame_size): Remove extern declaration.
4342 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4343 change_frame_size.
4344
43452008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4346
4347 * getloadavg.c: Revert last change (2008-07-15).
4348
43492008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4350
4351 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4352 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4353 from configure.
4354
43552008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4356
4357 * s/sol2.h:
4358 * s/sol2-4.h: Reorganize conditionals.
4359
4360 * ecrt0.c: Remove code depending on m68000, not used anymore.
4361
4362 * fns.c (hash_remove): Make static.
4363 * lisp.h (hash_remove): Don't prototype.
4364
4365 * m/ibmrs6000.h:
4366 * m/ibms390x.h:
4367 * m/macppc.h: Remove boilerplate comments.
4368
4369 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4370 Solaris, which does not need them.
4371
4372 * m/vax.h: Remove comments about unsupported systems.
4373
4374 * s/darwin.h: Reorganize ifdefs.
4375
43762008-07-17 Andreas Schwab <schwab@suse.de>
4377
4378 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4379
43802008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4381
4382 Use SDATA. Follow coding convention of placing operators at
4383 beginning of next line rather than end of previous line, and placing
4384 spaces around infix operators.
4385
4386 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4387 in case it was defined already.
4388 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4389 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4390 ns_default.
4391 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4392 Lisp_Objects.
4393 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4394 (ns_defined_color, ns_color_to_lisp): Declare.
4395 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4396 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4397 it's accepted even with USE_LISP_UNION_TYPE.
4398 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4399 (update_frame_tool_bar): Remove apparently obsolete tests for
4400 non-integerness of f->tool_bar_lines.
4401 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4402 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4403 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4404 (nsfont_open): Don't confuse NULL for Qnil.
4405 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4406 * menu.h (find_and_call_menu_selection):
4407 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4408 (find_and_return_menu_selection): Always return something.
4409 * frame.h: Include dispextern.h for Display_Info.
4410 (display_x_get_resource): Declare.
4411
44122008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4413
4414 * syntax.c: Remove stdio.h include accidentally introduced in
4415 Emacs.app commit.
4416 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4417 NS_IMPL_COCOA.
4418 * keyboard.c (handle_async_input, input_available_signal): Remove
4419 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4420
44212008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4424 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4425 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4426 Use SDATA.
4427
4428 * keymap.c: Remove all NS-specific code.
4429 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4430 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4431 where_is_preferred_modifier, return a different value depending on how
4432 preferred is the binding.
4433 (where_is_internal): Adjust accordingly.
4434 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4435 Adjust to new preferred_sequence_p.
4436 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4437 * keyboard.c (parse_solitary_modifier): Not static any more.
4438 * keyboard.h (parse_solitary_modifier): Declare.
4439
44402008-07-16 Andreas Schwab <schwab@suse.de>
4441
4442 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4443 of easymenu.
4444
44452008-07-16 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4448 that we don't move off the line.
4449
44502008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4451
4452 * keyboard.c (Qsuper): Remove.
4453 (parse_menu_item): Don't call where_is_internal specially for NS.
4454
44552008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4456
4457 * s/gnu-linux.h: Remove boilerplate comments.
4458
4459 * m/alpha.h (__ELF__): Consolidate conditions.
4460
4461 * m/m68k.h (linux): Use GNU_LINUX instead.
4462 Remove boilerplate comments.
4463
4464 * m/intel386.h: Undo refactoring from previous change.
4465 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4466 too, remove dead code.
4467 (linux): Use GNU_LINUX instead.
4468
44692008-07-16 Jason Rumney <jasonr@gnu.org>
4470
4471 * w32gui.h: Repeat 26 June changes lost by last change.
4472
44732008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4474
4475 * systty.h: Remove code for Aix on 386, unsupported platform.
4476
4477 * s/ms-w32.h: Remove boilerplate comments.
4478 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4479
4480 * s/gnu-linux.h (TERM): Remove support.
4481 (HAVE_SYSVIPC): Remove, unused.
4482 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4483 for this system.
4484
4485 * process.c: Remove support for IRIS, unused.
4486 Remove support for TERM, not relevant anymore.
4487
4488 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4489 used with the definition.
4490
4491 * s/aix4-2.h (static): Do not undef.
4492
4493 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4494 only used on Aix.
4495 (HAVE_SYSVIPC): Remove, unused.
4496
4497 * m/hp800.h (CANNOT_DUMP): Do not undef.
4498
4499 * m/alpha.h: Fix comment.
4500
4501 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4502 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4503 used by this configuration.
4504 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4505 * unexec.c: Remove code depending on HPUX and
4506 USG_SHARED_LIBRARIES, not used with this file. Remove code
4507 depending on IRIS, unused. Remove if 0-ed code.
4508
4509 * s/template.h: Remove comments about static.
4510
4511 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4512 Remove if 0-ed code.
4513 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4514 were the same as the default.
4515 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4516 Remove boilerplate comments.
4517 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4518 (HAVE_SYSVIPC): Remove, unused.
4519 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4520
4521 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4522 Remove boilerplate comments.
4523 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4524 Remove boilerplate comments.
4525 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4526 Remove boilerplate comments.
4527 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4528
4529 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4530 USG systems which do not use DATA_SEG_BITS.
4531 Refactor code. Remove boilerplate comments.
4532
4533 * m/ibms390.h:
4534 * m/m68k.h:
4535 * s/bsd-common.h:
4536 * s/cygwin.h:
4537 * s/darwin.h:
4538 * s/freebsd.h:
4539 * s/gnu.h:
4540 * s/msdos.h: Remove boilerplate comments.
4541
4542 * m/iris4d.h: Remove boilerplate comments and code for systems that
4543 do not use this file.
4544 (IRIS_4D): Remove, unused.
4545
4546 * m/mips.h: Remove boilerplate comments and code for systems that
4547 do not use this file.
4548 (SIGN_EXTEND_CHAR):
4549 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4550 * unexmips.c: Remove file, unused.
4551
4552 * editfns.c (Fuser_full_name): Replace the only use of
4553 USER_FULL_NAME with its value.
4554 * config.in: Regenerate.
4555
45562008-07-16 David Reitter <david.reitter@gmail.com>
4557
4558 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4559 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4560
45612008-07-16 Glenn Morris <rgm@gnu.org>
4562
4563 * emacs.c (system-type): Doc fix.
4564
45652008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4566
4567 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4568 If the cache doesn't work, let's fix it, rather than work around it.
4569
45702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4571
4572 * Makefile.in: Correct additions for nsfont.o in last commit.
4573 * nsfont.m: New file (forgot last commit).
4574
45752008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4576
4577 * callproc.c (set_initial_environment): Initialize
4578 Vprocess_environment under CANNOT_DUMP (fixes crash when
4579 batch-compiling for bootstrap).
4580
45812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4582 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4583
4584 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4585 fix crash due to different init order.
4586
45872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4588
4589 Changes and additions for NeXTstep windowing system (Cocoa and
4590 GNUstep) support.
4591
4592 * Makefile.in:
4593 * config.in: Support defines and build commands for NS port.
4594 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4595 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4596 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4597 windowing.
4598 (struct face): Add synth_ital field.
4599 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4600 (init_display): Initialize Vinitial_window_system to "ns" when so
4601 compiled.
4602 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4603 (display_arg): Use under NS.
4604 (main): Under NS, allocate autorelease pool and handle command line
4605 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4606 (standard_args): Add NS-specific args.
4607 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4608 * font.c (DEFAULT_ENCODING): New variable.
4609 (font_find_for_lface): Use it.
4610 (syms_of_font): Load syms_of_nsfont under NS.
4611 * font.h: Declare nsfont_driver when compiled under NS.
4612 * fontset.c: When compiling under NS, include nsterm.h.
4613 (fontset_from_font): Autoconstruct fontset under NS.
4614 * frame.c (various): Under NS, include nsterm.h, add Qns window system
4615 symbol, document and use it.
4616 (do_switch_frame): When for_deletion under Cocoa, add
4617 Fraise_frame(Qnil).
4618 (x_set_frame_parameters): Ensure font attribute changes are picked up.
4619 (x_get_arg): Allow "yes" and "no" as boolean values.
4620 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
4621 Qright under Cocoa.
4622 (focus-follows-mouse): Default to 0 under NS.
4623 * frame.h (enum output_method): Add output_ns.
4624 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
4625 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
4626 (FRAME_WINDOW_P): NS-specific definition.
4627 * fringe.c (max_used_fringe_bitmap): Make public.
4628 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
4629 (getloadavg): Use NeXT code under descendant OS's.
4630 * image.c (includes and header section, x_create_bitmap_from_data)
4631 (x_create_bitmap_from_file, free_bitmap_record, image_background)
4632 (image_background_transparent, x_clear_image_1)
4633 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4634 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
4635 (x_to_xcolors, x_from_xcolors, x_disable_image)
4636 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
4637 other GUIs, including XPM support using code originally written for
4638 Carbon GUI.
4639 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
4640 using NS API.
4641 (image_ascent): Use font metrics macros instead of direct struct field
4642 access.
4643 * keyboard.c (includes): Add nsterm.h when compiling under NS.
4644 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
4645 Also, handle NS as GTK for menu bar purposes.
4646 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
4647 toolkit where they differ.
4648 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
4649 use cachelist, still needed under NS.
4650 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
4651 (struct widget_value): Define it here for menu.c.
4652 * keymap.c (includes): Include modifier internals.
4653 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
4654 NS.
4655 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
4656 support for preferring sequences using certain modifiers, specified by
4657 the FIRSTONLY argument.
4658 * lisp.h (hash_remove): Rename to avoid name clash when compiling
4659 under NS GNUstep implementation.
4660 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
4661 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
4662 * menu.c: Include nsterm.h under NS.
4663 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
4664 (free_menubar_widget_tree_value, update_submenu_strings)
4665 (find_and_call_menu_selection): Treat NS as X and NT.
4666 (find_and_return_menu_selection): New function, used for popup menus.
4667 * nsgui.h:
4668 * nsterm.h:
4669 * nsfns.m:
4670 * nsimage.m:
4671 * nsmenu.m:
4672 * nsselect.m:
4673 * nsterm.m: New files.
4674 * process.c (wait_reading_process_output): Under NS, call ns_select()
4675 instead of plain select().
4676 * syntax.c (char_quoted): Under NS, avoid a crash when called near
4677 beginning of buffer.
4678 * sysselect.h (init_process): Rename when compiling under Cocoa to
4679 avoid name conflict.
4680 * termhooks.h (display_info): Add ns_display_info to union.
4681 * terminal.c (Fterminal_live_p): Add ns to terminal types.
4682 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
4683 COCOA environment.
4684 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
4685 unexec() signature. (Note, this will dump, but the resulting file
4686 crashes; unexosx is used instead; keeping around for reference and
4687 possible aid in getting dump working under GNUstep.)
4688 * w32gui.h (button_type, widget_value): Remove definitions (now in
4689 keyboard.h).
4690 * window.c: Include nsterm.h when compiling under NS.
4691 * xdisp.c (includes): Include nsterm.h when compiling under NS.
4692 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
4693 other GUI windowing systems.
4694 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
4695 GTK.
4696 (x_consider_frame_title): Under NS, set icon type and frame
4697 modified-state indicator; use ns_set_name_as_filename() when using
4698 formatted title.
4699 (update_window_cursor): Make public when compiling under NS.
4700 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
4701 (hourglass_atimer, Vhourglass_delay
4702 * xfaces.c (header section, init_frame_faces, clear_font_table)
4703 (defined_color, unload_color, x_face_list_fonts)
4704 (prepare_face_for_display): Add NS support parallel to other GUIs.
4705 Emulate GCs like other non-X GUIs.
4706 (split_font_name): Don't lowercase font name under NS.
4707 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
4708 under NS.
4709 * s/darwin.h: Add support for compilation under NS.
4710
47112008-07-15 Jason Rumney <jasonr@gnu.org>
4712
4713 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
4714 (w32_show_hourglass): Rename from show_hourglass.
4715 (w32_hide_hourglass): Rename from hide_hourglass.
4716 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
4717 (Vhourglass_delay): Declare extern.
4718 (hourglass_started): Remove.
4719
4720 * xdisp.c (Vhourglass_delay): Remove static.
4721 (hourglass_started, start_hourglass, cancel_hourglass):
4722 Don't include these versions on WINDOWSNT.
4723
47242008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4725
4726 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
4727 variables (formerly in xfns.c).
4728 (show_hourglass, hide_hourglass): New prototypes (same).
4729 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
4730 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
4731 in xfns.c).
4732 (syms_of_xdisp): Declare/initialize display-hourglass,
4733 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
4734 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
4735 formerly in xfns.c.
4736 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4737 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4738 (start_hourglass, cancel_hourglass): Remove.
4739 (show_hourglass, hide_hourglass): Remove prototypes and static
4740 modifiers.
4741 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
4742 hourglass_atimer, hourglass_shown_p declaration/initialization.
4743 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4744 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4745 (start_hourglass, cancel_hourglass): Remove.
4746 (show_hourglass, hide_hourglass): Remove prototypes and static
4747 modifiers.
4748 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
4749 hourglass_atimer, hourglass_shown_p declaration/initialization.
4750 * w32fns.c (display_hourglass_p, Vhourglass_delay)
4751 (DEFAULT_HOURGLASS_DELAY): Remove.
4752 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
4753 hourglass_shown_p declaration/initialization.
4754
47552008-07-14 Jason Rumney <jasonr@gnu.org>
4756
4757 * w32fns.c (w32_get_arg): Remove wrapper function.
4758 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
4759 directly.
4760 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
4761
47622008-07-14 Kenichi Handa <handa@m17n.org>
4763
4764 * xfont.c (xfont_open): Add workaround for X's bug.
4765
47662008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4767
4768 * fontset.c: Include <stdio.h> unconditionally.
4769
47702008-07-13 Michael Albinus <michael.albinus@gmx.de>
4771
4772 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
4773 for filtering.
4774
47752008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4776
4777 * s/vms.h: Use __GNUC__ instead of _GNUC_.
4778
4779 * m/macppc.h:
4780 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
4781
4782 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
4783 (SPECIAL_EMACS_INT):
4784 * m/ia64.h (SPECIAL_EMACS_INT):
4785 * m/amdx86-64.h (SPECIAL_EMACS_INT):
4786 * s/gnu.h (NLIST_STRUCT):
4787 * s/aix4-2.h (X11R5_INHIBIT_I18N):
4788 * s/gnu-linux.h (LINUX):
4789 * s/msdos.h (HAVE_FACES):
4790 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
4791
4792 * systty.h:
4793 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
4794 anymore.
4795
47962008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4797
4798 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
4799 always defined as int.
4800
4801 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
4802 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
4803 * s/gnu-linux.h (HAVE_WAIT_HEADER):
4804 * s/freebsd.h (HAVE_WAIT_HEADER):
4805 * s/bsd-common.h (HAVE_UNION_WAIT):
4806 * s/aix4-2.h (HAVE_WAIT_HEADER):
4807 * m/mips.h (HAVE_UNION_WAIT):
4808 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
4809 (COFF, static): Do not define, they are undefined later in the file.
4810
4811 * process.c (update_status): Don't use a union.
4812 (status_convert):
4813 (sigchld_handler): Use int instead of WAITTYPE.
4814
48152008-07-12 Chong Yidong <cyd@stupidchicken.com>
4816
4817 * indent.c (Fvertical_motion): Restore hscroll before moving to
4818 goal column.
4819
48202008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4821
4822 * lisp.h: Remove left over code.
4823
48242008-07-11 Andreas Schwab <schwab@suse.de>
4825
4826 * lisp.h: Fix logic in last change.
4827
4828 * menu.h: New file.
4829 * menu.c: Include it.
4830 * xmenu.c: Likewise.
4831 * Makefile.in: Update dependencies.
4832
48332008-07-11 Kenichi Handa <handa@m17n.org>
4834
4835 * fontset.c (fontset_from_font): Cancel the previous change.
4836
48372008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4838
4839 * lisp.h:
4840 * w32heap.c:
4841 * emacs.c:
4842 * alloc.c: Replace all references of NO_UNION_TYPE with
4843 USE_LISP_UNION_TYPE.
4844
4845 * m/xtensa.h (NO_UNION_TYPE):
4846 * m/vax.h (NO_UNION_TYPE):
4847 * m/template.h (NO_UNION_TYPE):
4848 * m/sparc.h (NO_UNION_TYPE):
4849 * m/mips.h (NO_UNION_TYPE):
4850 * m/macppc.h (NO_UNION_TYPE):
4851 * m/m68k.h (NO_UNION_TYPE):
4852 * m/iris4d.h (NO_UNION_TYPE):
4853 * m/intel386.h (NO_UNION_TYPE):
4854 * m/ibms390x.h (NO_UNION_TYPE):
4855 * m/ibms390.h (NO_UNION_TYPE):
4856 * m/ibmrs6000.h (NO_UNION_TYPE):
4857 * m/ia64.h (NO_UNION_TYPE):
4858 * m/hp800.h (NO_UNION_TYPE):
4859 * m/arm.h (NO_UNION_TYPE):
4860 * m/amdx86-64.h (NO_UNION_TYPE):
4861 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
4862 defining it the same.
4863
48642008-07-10 Chong Yidong <cyd@stupidchicken.com>
4865
4866 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
4867
48682008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4869
4870 * fileio.c:
4871 * sysdep.c
4872 * systty.h:
4873 * m/ibmrs6000.h:
4874 * m/iris4d.h:
4875 * s/aix4-2.h:
4876 * s/freebsd.h:
4877 * s/gnu-linux.h:
4878 * s/hpux10-20.h:
4879 * s/hpux11.h:
4880 * s/netbsd.h:
4881 * s/sol2-3.h:
4882 * s/sol2-4.h:
4883 * s/sol2.h:
4884 * s/usg5-4.h:
4885 * s/vms.h: Remove references to unused variables.
4886
48872008-07-10 Andreas Schwab <schwab@suse.de>
4888
4889 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
4890 pattern before matching the generic family.
4891
48922008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4893
4894 * unexec.c:
4895 * s/vms.h:
4896 * s/usg5-4-2.h:
4897 * s/sol2-5.h:
4898 * s/freebsd.h:
4899 * s/darwin.h: Remove dead code.
4900
4901 * m/template.h:
4902 * m/sparc.h:
4903 * m/mips.h:
4904 * m/m68k.h:
4905 * m/iris4d.h:
4906 * m/intel386.h:
4907 * m/ibms390x.h:
4908 * m/ibms390.h:
4909 * m/ia64.h:
4910 * m/hp800.h:
4911 * m/arm.h:
4912 * m/amdx86-64.h: Remove dead code and references to unused
4913 and compiler defined symbols.
4914
4915 * unexmips.c:
4916 * unexelf.c: Remove references to desupported systems.
4917
4918 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
4919
4920 * m/powermac.h: Remove boilerplate comments.
4921 (NO_REMAP): Remove unused definition.
4922
4923 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
4924 define them.
4925
49262008-07-10 Kenichi Handa <handa@m17n.org>
4927
4928 * xfont.c (xfont_open): Log the reason of failure.
4929
49302008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4931
4932 * fontset.c (fontset_get_font_group):
4933 * font.c (font_check_otf): Specify argument types.
4934
49352008-07-09 Kenichi Handa <handa@m17n.org>
4936
4937 * coding.c (detect_coding_utf_8): Set detect_info->found only when
4938 non-ASCII char is found.
4939
4940 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
4941 (reorder_font_vector): Change the arg preferred_family to font.
4942 Prefer the spec matching with font.
4943 (fontset_get_font_group): New function.
4944 (fontset_find_font): Change the format of an element of a realized
4945 fontset. Use fontset_get_font_group.
4946 (fontset_font): Try the current fontset, the default fontset, the
4947 fallbacks of the current fontset, and the fallbacks of the default
4948 fontset in this order.
4949 (face_for_char): Delete the shortcut to use the current font.
4950 (fontset_from_font): Don't set fonts for Latin in the fontset.
4951
4952 * font.h (font_make_object, font_match_p): Adjust prototypes.
4953
4954 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
4955
4956 * font.c (font_make_object): New arg entity and pixelsize.
4957 (font_check_otf_features, font_check_otf): New functions.
4958 (font_match_p): Check :lang, :script, and :otf properties.
4959
4960 * xfont.c (xfont_open): Adjust it for the change of
4961 font_make_object.
4962 (xfont_text_extents): Fix initial setting of metrics.
4963
4964 * ftfont.c (struct ftfont_info): New member index, delete member
4965 fc_charset_idx. Make the member order compatible with struct
4966 xftfont_info.
4967 (fc_charset_table): Change charset names to registry names.
4968 (ftfont_pattern_entity): Delete the args registry and
4969 fc_charset_idx. Change the value of :font-entity property
4970 to (FONTNAME . INDEX). Always set :registry property to
4971 `iso10646-1'.
4972 (struct ftfont_cache_data): New struct.
4973 (ftfont_lookup_cache): New arg for_face.
4974 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
4975 (ftfont_driver): Set the member otf_capability.
4976 (ftfont_get_charset): Adjust it for the change of
4977 fc_charset_table.
4978 (OTF_TAG_SYM): New macro.
4979 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
4980 for the change of fc_charset_table.
4981 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
4982 ftfont_pattern_entity. Add FC_INDEX to objset.
4983 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
4984 and ftfont_pattern_entity.
4985 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
4986 font_make_object, struct ftfont_info.
4987 (ftfont_has_char): Use ftfont_get_fc_charset.
4988 (ftfont_otf_features, ftfont_otf_capability): New functions.
4989 (ftfont_shape): Use ftfont_get_otf.
4990 (ftfont_text_extents): Fix initial setting of metrics.
4991
4992 * xftfont.c (struct xftfont_info): New member ft_size. Make the
4993 member order compatible with struct ftfont_info.
4994 (xftfont_open): Add FC_CHARSET to the pattern. Set
4995 xftfont_info->ft_size. Don't unlock the face. Check BDF
4996 properties if appropriate.
4997 (xftfont_close): Unlock the face.
4998 (xftfont_anchor_point, xftfont_shape): Deleted.
4999 (syms_of_xftfont): Don't set members anchor_point and shape of
5000 xftfont_driver.
5001
5002 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5003 font_make_object.
5004
5005 * w32font.c (w32font_open): Adjust it for the change of
5006 font_make_object.
5007 (w32font_open_internal): Don't set properties of font_object here.
5008
50092008-07-08 Chong Yidong <cyd@stupidchicken.com>
5010
5011 * macfns.c (x_create_tip_frame):
5012 * w32fns.c (x_create_tip_frame):
5013 * xfns.c (x_create_tip_frame): Pass parameter argument to
5014 face-set-after-frame-default.
5015
5016 * xfaces.c (Finternal_merge_in_global_face): Save merged
5017 attributes for the default face back into the face vector.
5018
50192008-07-08 Andreas Schwab <schwab@suse.de>
5020
5021 * fontset.h: Declare fontset_from_font. Don't declare
5022 new_fontset_from_font and fontset_from_font_name.
5023 * xterm.c: Include "fontset.h".
5024 * Makefile.in (xterm.o): Update dependencies.
5025
50262008-07-08 Glenn Morris <rgm@gnu.org>
5027
5028 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5029 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5030
50312008-07-07 Chong Yidong <cyd@stupidchicken.com>
5032
5033 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5034 (x_set_frame_parameters): Don't bind it.
5035
50362008-07-07 Juanma Barranquero <lekktu@gmail.com>
5037
5038 * w32fns.c (map_w32_filename): Declare extern.
5039
50402008-07-07 Jason Rumney <jasonr@gnu.org>
5041
5042 * w32term.c (WS_EX_LAYERED): Define if not already.
5043
50442008-07-06 Chong Yidong <cyd@stupidchicken.com>
5045
5046 * xfaces.c (set_font_frame_param): Don't try to set the font
5047 parameter if it is still unspecified in the lface.
5048
50492008-07-05 Chong Yidong <cyd@stupidchicken.com>
5050
5051 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5052 face if it didn't already exist.
5053
5054 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5055
50562008-07-05 Andreas Schwab <schwab@suse.de>
5057
5058 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5059
50602008-07-05 Chong Yidong <cyd@stupidchicken.com>
5061
5062 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5063 word-wrapping.
5064 (IT_DISPLAYING_WHITESPACE): New macro.
5065 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5066 when word-wrapping. Simplify word-wrapping logic. Use correct
5067 pixel positions when saving copies of the iterator.
5068 (display_line): Use proper wrap point if the last character on a
5069 line was preceded by whitespace.
5070
50712008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5072
5073 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5074
50752008-07-04 Kenichi Handa <handa@m17n.org>
5076
5077 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5078
5079 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5080
50812008-07-02 Jason Rumney <jasonr@gnu.org>
5082
5083 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5084 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5085
5086 * xdisp.c (next_element_from_display_vector): Move assignment out
5087 of if statement.
5088
50892008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5090
5091 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5092
5093 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5094 (syms_of_fileio): Initialize and export them.
5095 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5096
5097 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5098 (Fsystem_move_file_to_trash): New function.
5099 (syms_of_w32fns): Export it to lisp.
5100
51012008-07-01 Jason Rumney <jasonr@gnu.org>
5102
5103 * w32font.c (w32font_text_extents): Don't count overhang as part
5104 of width.
5105
51062008-06-30 Miles Bader <miles@gnu.org>
5107
5108 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5109 Add `avoid_cursor_p' field.
5110
5111 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5112 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5113 (append_glyph, append_composite_glyph, produce_image_glyph)
5114 (append_stretch_glyph): Initialize avoid_cursor_p.
5115 (get_it_property): Rename from `get_line_height_property'.
5116 (x_produce_glyphs): Use get_it_property.
5117 (handle_line_prefix, push_display_prop): New functions.
5118 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5119 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5120 New variables.
5121 (syms_of_xdisp): Initialize them.
5122
51232008-06-30 Kenichi Handa <handa@m17n.org>
5124
5125 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5126 XftDefaultSubstitute (they are called in XftFontMatch).
5127 (xftfont_open): Fix args to ftfont_font_format.
5128
5129 * ftfont.c (fc_charset_table): New member lang.
5130 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5131 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5132 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5133 (ftfont_open): Fix args to ftfont_font_format.
5134 (ftfont_font_format): New arg filename.
5135
51362008-06-30 Chong Yidong <cyd@stupidchicken.com>
5137
5138 * xfaces.c (Finternal_merge_in_global_face): If default face was
5139 modified, realize it again. Update the font face attribute.
5140
51412008-06-29 Jason Rumney <jasonr@gnu.org>
5142
5143 * w32term.c (x_set_frame_alpha): Fix logic.
5144
51452008-06-29 Kenichi Handa <handa@m17n.org>
5146
5147 * fontset.c (Finternal_char_font): Return font-object instead of
5148 font-name.
5149
5150 * composite.c (get_composition_id): Fix the width calculation for TAB.
5151
51522008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5153
5154 * indent.c (Fvertical_motion): Properly handle float column arg.
5155
51562008-06-28 Jason Rumney <jasonr@gnu.org>
5157
5158 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5159 (pfnSetLayeredWindowAttributes): New function pointer.
5160 (w32_initialize): Initialize it when supported.
5161 (x_set_frame_alpha): New function.
5162
5163 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5164 (w32_frame_parm_handlers): Set alpha handler.
5165
5166 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5167
51682008-06-27 Jason Rumney <jasonr@gnu.org>
5169
5170 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5171 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5172 (w32_to_x_charset, x_to_w32_charset)
5173 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5174 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5175 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5176 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5177 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5178 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5179 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5180 (Qw32_charset_unicode): Remove.
5181 (syms_of_w32fns): Update for above changes.
5182
5183 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5184 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5185 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5186 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5187 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5188 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5189 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5190 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5191 (syms_of_w32font): Update for above changes.
5192
51932008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5194
5195 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5196 removed #if.
5197 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5198
51992008-06-26 Juanma Barranquero <lekktu@gmail.com>
5200 Eli Zaretskii <eliz@gnu.org>
5201
5202 * makefile.w32-in (LOCAL_FLAGS):
5203 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5204
5205 * sysdep.c (_spawnlp, _getpid):
5206 Declare with explicit _cdecl instead of _CRTAPI1.
5207
5208 * editfns.c (Fget_internal_run_time):
5209 Check for WINDOWSNT with #ifdef, not #if.
5210
52112008-06-26 Jason Rumney <jasonr@gnu.org>
5212
5213 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5214
5215 * w32term.c (x_draw_glyph_string_foreground)
5216 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5217 Use FONT_HANDLE macro.
5218 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5219
5220 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5221 (uniscribe_encode_char): Use FONT_HANDLE macro.
5222
5223 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5224 (w32font_text_extents): Use precast w32_font.
5225 (w32font_close): Free cached metrics.
5226 (w32font_open_internal): Allocate space for name on stack.
5227
52282008-06-26 Chong Yidong <cyd@stupidchicken.com>
5229
5230 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5231
52322008-06-26 Jason Rumney <jasonr@gnu.org>
5233
5234 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5235 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5236
52372008-06-26 Juanma Barranquero <lekktu@gmail.com>
5238
5239 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5240
52412008-06-26 Jason Rumney <jasonr@gnu.org>
5242
5243 * w32bdf.c, w32bdf.h: Remove obsolete files.
5244
5245 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5246
5247 * w32gui.h: Don't include w32bdf.h.
5248 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5249 Remove obsolete font support.
5250
5251 * w32font.h (struct w32font_info): Remove compat_w32_font.
5252 Add hfont member.
5253 (FONT_COMPAT): Remove obsolete macro.
5254
5255 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5256 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5257 (w32font_open_internal): Remove compat code. Set new hfont member.
5258 (Fx_select_font): Use new hfont member.
5259
5260 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5261 (uniscribe_encode_char): Use new hfont member.
5262
5263 * w32term.c (x_draw_glyph_string_foreground)
5264 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5265 (x_draw_glyph_string): Use metrics in w32font_info.
5266
52672008-06-26 Kenichi Handa <handa@m17n.org>
5268
5269 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5270
52712008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5272
5273 * unexnext.c:
5274 * m/ews4800.h:
5275 * m/hp9000s300.h:
5276 * m/ibm370aix.h:
5277 * m/mips-siemens.h:
5278 * m/ncr386.h:
5279 * m/next.h:
5280 * m/pmax.h:
5281 * m/powerpcle.h:
5282 * m/tandem-s2.h:
5283 * s/386bsd.h:
5284 * s/bsd386.h:
5285 * s/bsd4-1.h:
5286 * s/bsd4-2.h:
5287 * s/bsdos2-1.h:
5288 * s/bsdos2.h:
5289 * s/bsdos3.h:
5290 * s/bsdos4.h:
5291 * s/nextstep.h:
5292 * s/ultrix4-3.h:
5293 * s/usg5-0.h:
5294 * s/usg5-2-2.h:
5295 * s/usg5-2.h:
5296 * s/usg5-4-3.h:
5297 * s/ux4800.h:
5298 * s/uxpds.h:
5299 * s/uxpv.h: Remove support for obsolete systems.
5300 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5301 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5302 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5303 Remove, insert contents in s/aix4-2.h.
5304 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5305 * s/bsd4-3.h: Rename to ...
5306 * s/bsd-common.h: ... this.
5307 * data.c:
5308 * doc.c:
5309 * ecrt0.c:
5310 * emacs.c:
5311 * fileio.c:
5312 * floatfns.c:
5313 * keyboard.c:
5314 * mem-limits.h:
5315 * print.c:
5316 * process.c:
5317 * sysdep.c:
5318 * syssignal.h:
5319 * systty.h:
5320 * syswait.h:
5321 * term.c:
5322 * unexec.c:
5323 * unexelf.c:
5324 * unexhp9k800.c:
5325 * m/hp800.h:
5326 * m/ibmrs6000.h:
5327 * m/mips.h:
5328 * m/vax.h:
5329 * s/darwin.h:
5330 * s/freebsd.h:
5331 * s/gnu.h:
5332 * s/ms-w32.h:
5333 * s/msdos.h:
5334 * s/netbsd.h:
5335 * s/template.h: Remove references to obsolete variables.
5336
5337 * Makefile.in: Add dependencies for all unexec files.
5338 (admindir): Remove unused variable.
5339 (UNEXEC_SRC): Remove references.
5340
53412008-06-25 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * xfns.c (x_default_font_parameter): If Xft is available, first
5344 try Monospace-12 for the default font.
5345
53462008-06-25 Jason Rumney <jasonr@gnu.org>
5347
5348 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5349
53502008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5351
5352 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5353
5354 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5355
53562008-06-25 Juanma Barranquero <lekktu@gmail.com>
5357
5358 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5359 <scroll-conservatively>: Fix typo in docstring.
5360
5361 * xselect.c (Fx_send_client_event): Doc fix.
5362
53632008-06-25 Kenichi Handa <handa@m17n.org>
5364
5365 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5366
5367 * font.c (font_parse_fcname): Remove unused variables.
5368 (font_sort_entites): Delete the arg SPEC. Caller changed.
5369 Fix for the case of ! best_only.
5370 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5371
5372 * lisp.h (Fstring_to_unibyte): EXFUN it.
5373
5374 * character.h (str_to_unibyte): Extern it.
5375
5376 * character.c (str_to_unibyte): New function.
5377
5378 * fns.c (Fstring_to_unibyte): New function.
5379 (syms_of_fns): Defsubr it.
5380
53812008-06-24 Kenichi Handa <handa@m17n.org>
5382
5383 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5384 DPI too.
5385 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5386
53872008-06-24 Andreas Schwab <schwab@suse.de>
5388
5389 * Makefile.in (${lispsource}loaddefs.el): Rename from
5390 ../lisp/loaddefs.el.
5391 (bootstrap-clean): Do what distclean does but don't remove
5392 Makefile.
5393 (distclean): Depend on bootstrap-clean and remove Makefile.
5394
53952008-06-24 Chong Yidong <cyd@stupidchicken.com>
5396
5397 * buffer.h (struct buffer): New member word_wrap.
5398
5399 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5400 word-wrap.
5401 (init_buffer_once): Initialize them.
5402
5403 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5404 line_wrap enum possessing three possible values.
5405
5406 * termopts.h: Replace truncate_partial_width_windows with
5407 Vtruncate_partial_width_windows.
5408
5409 * dispnew.c (direct_output_for_insert): Avoid direct output when
5410 inserting a space with word wrap on.
5411
5412 * indent.c (compute_motion): Obey integer values of
5413 truncate-partial-width-windows.
5414
5415 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5416 replacing truncate_partial_width_windows.
5417 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5418 truncate only if the window width is below that integer.
5419 (start_display, resize_mini_window, produce_stretch_glyph)
5420 (display_string, move_it_in_display_line_to): Use line_wrap.
5421 (back_to_previous_visible_line_start, reseat_1): Reset
5422 string_from_display_prop_p.
5423 (display_line): Extend default face to end of line when wrapping.
5424
54252008-06-24 Kim F. Storm <storm@cua.dk>
5426
5427 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5428 to wrap continued lines at word boundaries.
5429
54302008-06-24 Jason Rumney <jasonr@gnu.org>
5431
5432 * font.c (Ffont_face_attributes): Multiply pixel size before point
5433 conversion to avoid multiplying rounding error.
5434
54352008-06-23 Jason Rumney <jasonr@gnu.org>
5436
5437 * w32term.c (x_draw_glyph_string_background)
5438 (x_draw_glyph_string): Remove old bdf font code.
5439
5440 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5441
54422008-06-22 Kenichi Handa <handa@m17n.org>
5443
5444 * font.c (font_find_for_lface): Try the adstyle specified in
5445 the property of LFACE_FONT of LFACE (if any).
5446
54472008-06-21 Seiji Zenitani <zenitani@mac.com>
5448 Ryo Yoshitake <ryo@shiftmode.net>
5449
5450 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5451
54522008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5453
5454 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5455 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5456 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5457 (witness-emacs): Remove.
5458 (lisp, shortlisp): Move loaddefs.el earlier.
5459 (mostlyclean): Forget about witness-emacs.
5460
54612008-06-22 Glenn Morris <rgm@gnu.org>
5462
5463 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5464 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5465
54662008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5467
5468 * Makefile.in (PRECOMP): Remove.
5469 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5470 (witness-emacs): Run `compile-first'.
5471 (.el.elc): Use the new compile-onefile target.
5472
54732008-06-21 Kenichi Handa <handa@m17n.org>
5474
5475 * xftfont.c (xftfont_open): Handle QCembolden only when
5476 FC_EMBOLDEN is defined.
5477
54782008-06-21 Andreas Schwab <schwab@suse.de>
5479
5480 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5481 (.el.elc): Likewise.
5482
54832008-06-21 Miles Bader <miles@gnu.org>
5484
5485 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5486 build dir, not the lisp source dir.
5487
54882008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5489
5490 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5491 (bootstrapclean): Remove.
5492 (.el.elc): New rule.
5493 (PRECOMP): New var.
5494 (../lisp/subdirs.el): Remove.
5495 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5496 (witness-emacs): New target.
5497 (mostlyclean): Remove witness-emacs as well.
5498 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5499 Add witness-emacs dependency.
5500
55012008-06-20 Chong Yidong <cyd@stupidchicken.com>
5502
5503 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5504 defined by the font.
5505
55062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5509 (bootstrap-clean): New target that keeps TAGS around.
5510 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5511 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5512
55132008-06-20 Jason Rumney <jasonr@gnu.org>
5514
5515 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5516 Remove obsolete font code.
5517
5518 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5519 to determine language support.
5520
55212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5522
5523 * sysdep.c (cfsetspeed): New fun extracted from the code.
5524 (cfmakeraw): Move before first use.
5525
55262008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5527
5528 * sysdep.c (cfmakeraw): Provide fallback implementation.
5529 (serial_configure): Provide fallback implementation of cfsetspeed.
5530
55312008-06-20 Kenichi Handa <handa@m17n.org>
5532
5533 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5534 the pattern.
5535
5536 * fontset.c (fontset_from_font): Copy font_spec before changing
5537 the elements.
5538
5539 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5540
55412008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5542
5543 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5544 for explicit `font' parameters.
5545
5546 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5547
55482008-06-19 Kenichi Handa <handa@m17n.org>
5549
5550 * frame.c: Include <ctype.h>.
5551 (x_set_font_backend): Allow spacing characters in the X resource
5552 for FontBackend.
5553
55542008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5555
5556 * w32fns.c, xfns.c (Qfont_param): New var.
5557 (syms_of_w32fns): Initialize it.
5558 (x_default_font_parameter): Record explicit `font' into
5559 `font-parameter'.
5560
55612008-06-18 Kenichi Handa <handa@m17n.org>
5562
5563 * font.c (font_parse_xlfd): Fix previous change.
5564 (font_parse_fcname): Don't use :fc-unknown-spec.
5565 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5566 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5567 (font_add_log): Prepend the driver name to the resulting fonts.
5568
5569 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5570 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5571 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5572
5573 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5574 (QCembolden): New variables.
5575 (syms_of_xftfont): DEFSYM them.
5576 (xftfont_open): Call XftFontMatch. Don't trust the result of
5577 XftTextExtents8 if the pixel_size is less than 5.
5578
55792008-06-18 Andreas Schwab <schwab@suse.de>
5580
5581 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5582 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5583
55842008-06-18 Jason Rumney <jasonr@gnu.org>
5585
5586 * w32font.c (w32font_list, w32font_match): Add logging.
5587
5588 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5589
55902008-06-17 Chong Yidong <cyd@stupidchicken.com>
5591
5592 * font.c (font_parse_fcname): Store divider characters for
5593 unknown-spec list. For known key symbols, intern using correct
5594 symbol name.
5595
55962008-06-17 Kenichi Handa <handa@m17n.org>
5597
5598 * xfaces.c (realize_default_face): If the frame is not on window
5599 system, set the fontset of face to nil.
5600
56012008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5602
5603 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5604
56052008-06-16 Juanma Barranquero <lekktu@gmail.com>
5606
5607 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5608 (build_font_name_from_vector): Delete externs.
5609
5610 * xfaces.c (struct font_name): Don't declare.
5611
56122008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5613
5614 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
5615
56162008-06-16 Chong Yidong <cyd@stupidchicken.com>
5617
5618 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
5619
56202008-06-16 Juanma Barranquero <lekktu@gmail.com>
5621
5622 * font.c (Ffont_spec): Fix usage in docstring.
5623 (Ffont_face_attributes): Doc fix.
5624
56252008-06-16 Andreas Schwab <schwab@suse.de>
5626
5627 * font.c (Ffont_face_attributes): Fix definition.
5628
56292008-06-16 Jason Rumney <jasonr@gnu.org>
5630
5631 * font.h (font_style_symbolic_from_value): Remove.
5632
5633 * font.c (font_style_symbolic_from_value): Remove.
5634 (font_style_symbolic): Revert to pre 2008-06-13 version.
5635
5636 * w32font.c (w32_to_fc_weight): New function.
5637 (w32font_full_name, logfont_to_fcname): Use it.
5638
56392008-06-16 Kenichi Handa <handa@m17n.org>
5640
5641 * font.c (font_check_object): Delete it.
5642 (font_clear_cache): Check if a font-object is alive.
5643 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
5644 font-object to nil.
5645 (font_close_object): Don't check FONT_CLOSE_OBJECT.
5646 (font_at): Don't call font_check_object.
5647 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5648
56492008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
5650
5651 * puresize.h (BASE_PURESIZE): Increase to 1230000.
5652
56532008-06-16 Chong Yidong <cyd@stupidchicken.com>
5654
5655 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
5656
56572008-06-15 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * font.c (font_parse_fcname): Only one decimal point.
5660 (font_unparse_fcname): Handle data in family and foundry indices
5661 as symbols, not strings.
5662 (font_unparse_gtkname, Ffont_face_attributes): New functions.
5663
5664 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
5665
5666 * font.h (font_unparse_gtkname): Add prototype.
5667
56682008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5669
5670 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
5671
56722008-06-15 Andreas Schwab <schwab@suse.de>
5673
5674 * font.c (font_update_drivers): Fix crash when no drivers match.
5675
56762008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
5677
5678 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
5679 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
5680
56812008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
5682
5683 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
5684
56852008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5686
5687 * process.c (Fserial_process_configure, Fprocess_send_eof):
5688 Use EQ to compare Lisp_Objects.
5689
56902008-06-13 Jason Rumney <jasonr@gnu.org>
5691
5692 * w32fns.c (Fw32_select_font): Remove old font API function.
5693
5694 * w32font.c (logfont_to_fcname): New function.
5695 (Fx_select_font): New font dialog function compatible with
5696 GTK/fontconfig version.
5697
5698 * font.c (font_style_symbolic_from_value): New function.
5699 (font_style_symbolic): Use it.
5700
5701 * font.h (font_style_symbolic_from_value): Declare new function.
5702
57032008-06-13 Juanma Barranquero <lekktu@gmail.com>
5704
5705 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
5706 <font-width-table>: Fix typos in docstrings.
5707
57082008-06-13 Daniel Engeler <engeler@gmail.com>
5709
5710 These changes add serial port access.
5711 * process.c: Add HAVE_SERIAL.
5712 (Fdelete_process, Fprocess_status, Fset_process_buffer)
5713 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
5714 (list_processes_1, select_wrapper, Fstop_process)
5715 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
5716 (status_notify): Modify to handle serial processes.
5717 [HAVE_SERIAL] (Fserial_process_configure)
5718 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
5719 New functions.
5720 * process.h (struct Lisp_Process): Add `type'.
5721 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
5722 New functions.
5723 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
5724 serial ports.
5725 (serial_open, serial_configure) New functions.
5726 * w32.h: Add FILE_SERIAL.
5727 (struct _child_process): Add ovl_read, ovl_write.
5728
57292008-06-13 Kenichi Handa <handa@m17n.org>
5730
5731 * dispextern.h (enum lface_attribute_index): New member
5732 LFACE_FOUNDRY_INDEX.
5733
5734 * font.c (font_score): Delete arg alternate_families. Check only
5735 weight, slant, width, and size. Ignore the difference of alias
5736 style symbols.
5737 (font_sort_entites): Adjust for the above change. Reflect the
5738 order of font-driver to scores.
5739 (font_list_entities): Don't check alternate_familes here.
5740 (font_clear_prop): Handle foundry.
5741 (font_update_lface): Don't parse "foundry-family" form here.
5742 Handle FONT_FOUNDRY_INDEX.
5743 (font_find_for_lface): Likewise. Handle alternate families here.
5744 If registry is nil, try iso8859-1 and ascii-0.
5745 (font_open_for_lface): Pay attention to size in ENTITY.
5746 (font_open_by_name): Simplify by calling font_load_for_lface.
5747 (free_font_driver_list): Delete it.
5748 (font_update_drivers): Preserve the order of backends.
5749 (syms_of_font): Setting of sort_shift_bits adjusted for the change
5750 of font_score and font_sort_entites.
5751 (font_update_sort_order): Likewise.
5752
5753 * xfaces.c (LFACE_FOUNDRY): New macro.
5754 (check_lface_attrs): Check foundry.
5755 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
5756 (merge_face_vectors): Check foundry.
5757 (merge_face_ref): Likewise.
5758 (Finternal_set_lisp_face_attribute): Likewise.
5759 (x_update_menu_appearance): Likewise.
5760 (Finternal_get_lisp_face_attribute): Likewise.
5761 (lface_hash): Likewise.
5762 (lface_same_font_attributes_p): Likewise.
5763 (x_supports_face_attributes_p): Likewise.
5764 (tty_supports_face_attributes_p): Likewise.
5765 (Finternal_set_alternative_font_family_alist): Intern strings.
5766 (Finternal_set_alternative_font_registry_alist): Downcase strings.
5767 (realize_default_face): Set LFACE_FOUNDRY (lface).
5768
5769 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
5770 font-driver at first.
5771
5772 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
5773
57742008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5775
5776 * lread.c (Fload): Use xfree, not free on saved_doc_string.
5777
57782008-06-12 Jim Meyering <meyering@redhat.com>
5779
5780 Make unexec_free handle NULL the same way free does.
5781 * unexmacosx.c (unexec_free): Ignore a NULL argument.
5782
57832008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
5784
5785 * character.h (CHAR_TO_BYTE_SAFE): New macro.
5786 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
5787 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
5788 (WEAK_ALIAS): Simplify.
5789 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
5790 when searching a unibyte buffer.
5791
57922008-06-12 Chong Yidong <cyd@stupidchicken.com>
5793
5794 * xfns.c (Fx_select_font): Rename from x-font-dialog.
5795
57962008-06-12 Juanma Barranquero <lekktu@gmail.com>
5797
5798 * w32font.c: Include ctype.h.
5799
58002008-06-11 Jason Rumney <jasonr@gnu.org>
5801
5802 * w32font.c (w32font_encode_char): Detect missing glyphs that are
5803 misreported as space.
5804 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
5805 as aliases for registry iso10646-1.
5806
58072008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
5808
5809 * buffer.c (clone_per_buffer_values): Skip `name'.
5810
58112008-06-11 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * font.c (font_parse_fcname): Fix last change; accept decimal
5814 points in font size.
5815
58162008-06-10 Jason Rumney <jasonr@gnu.org>
5817
5818 * w32uniscribe.c (add_opentype_font_name_to_list):
5819 Skip non unicode fonts.
5820
58212008-06-10 Chong Yidong <cyd@stupidchicken.com>
5822
5823 * xfns.c (Fx_font_dialog): New function.
5824
5825 * gtkutil.c (xg_dialog_response_cb): Rename from
5826 xg_file_response_callback.
5827 (pop_down_dialog): Rename from pop_down_file_dialog.
5828 (xg_get_file_name): Callers changed.
5829 (xg_get_font_name): New function.
5830
5831 * gtkutil.h (xg_get_font_name): Insert prototype.
5832
58332008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5834
5835 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
5836 x_underline_minimum_display_offset.
5837 (syms_of_xdisp): Declare it here rather than in xterm.c.
5838 * dispextern.h (underline_minimum_offset): Declare it.
5839 * w32term.c (x_draw_glyph_string): Use it.
5840 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
5841 (syms_of_xterm): Don't declare it any more.
5842 (x_draw_glyph_string): Adjust to the new name.
5843
58442008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
5845
5846 * xterm.c (x_underline_minimum_display_offset): New var.
5847 (x_draw_glyph_string): Use it.
5848 (syms_of_xterm): Declare it.
5849
58502008-06-10 Chong Yidong <cyd@stupidchicken.com>
5851
5852 * font.c (font_parse_fcname): Accept GTK-style font names too.
5853
58542008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5855
5856 * dired.c (file_name_completion): Don't return t if the match is exact
5857 but with different capitalization.
5858 * minibuf.c (Ftry_completion): Simplify.
5859
5860 * window.c (Vwindow_point_insertion_type): New var.
5861 (set_window_buffer): Use it.
5862 (syms_of_window): Init and export it to Lisp.
5863
58642008-06-10 Kenichi Handa <handa@m17n.org>
5865
5866 * font.h (font_intern_prop): Prototype adjusted.
5867
5868 * font.c (font_intern_prop): New arg force_symbol.
5869 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
5870 Adjust for the change of font_intern_prop.
5871
5872 * ftfont.c (ftfont_pattern_entity):
5873 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
5874 (w32_registry):
5875 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
5876 the change of font_intern_prop.
5877
58782008-06-09 Juanma Barranquero <lekktu@gmail.com>
5879
5880 * w32menu.c (digest_single_submenu): Declare extern.
5881
58822008-06-09 Jason Rumney <jasonr@gnu.org>
5883
5884 * w32term.c (x_make_frame_visible): Use alternate restore flags.
5885
5886 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
5887 (parse_single_submenu): Remove.
5888 (digest_single_submenu): Remove.
5889 (syms_of_w32menu): Don't initialise variables that have moved
5890 to menu.c.
5891 (set_frame_menubar): Sync with version in xmenu.c.
5892 (w32_menu_show): Sync with xmenu_show in xmenu.c.
5893
5894 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
5895 Make static again.
5896
58972008-06-09 Jason Rumney <jasonr@gnu.org>
5898
5899 Changes to w32 files related to the move of common menu code
5900 to menu.c on 2008-06-08 by Chong Yidong.
5901
5902 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
5903 defs to w32gui.h.
5904 (single_keymap_panes, push_menu_item, push_menu_pane):
5905 Make globally visible.
5906
5907 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
5908 (local_free, malloc_widget_value, free_widget_value)
5909 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
5910 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
5911 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
5912 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
5913 (menu_items, menu_items_allocated, menu_items_used)
5914 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
5915 (init_menu_items, finish_menu_items, discard_menu_items)
5916 (grow_menu_items, push_submenu_start, push_submenu_end)
5917 (push_left_right_boundary, push_menu_pane, push_menu_item)
5918 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
5919 (free_menubar_widget_tree_value, parse_single_submenu)
5920 (update_submenu_strings): Remove functions.
5921 (xmalloc_widget_value): Remove and declare extern.
5922
5923 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
5924 (OBJ1): Build it.
5925
5926 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
5927 (local_heap, local_alloc, local_free, malloc_widget_value)
5928 (free_widget_value): Define here.
5929
59302008-06-09 Kenichi Handa <handa@m17n.org>
5931
5932 * font.h (Qascii_0): Extern it.
5933
5934 * font.c (Qascii_0): New variable.
5935 (syms_of_font): DEFSYM it.
5936 (font_open_by_name): If the registry "iso8859-1" fails, try also
5937 "ascii-0".
5938
5939 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
5940
59412008-06-08 Kenichi Handa <handa@m17n.org>
5942
5943 * .gdbinit (xfont): New command.
5944
59452008-06-08 Andreas Schwab <schwab@suse.de>
5946
5947 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
5948 * Makefile.in (menu.o): Update dependencies.
5949
5950 * Makefile.in (obj): Always add menu.o.
5951 * emacs.c (main): Always call syms_of_menu.
5952 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
5953
59542008-06-08 Chong Yidong <cyd@stupidchicken.com>
5955
5956 * Makefile.in: Compile menu.c.
5957
5958 * lisp.h: Declare syms_of_menu.
5959
5960 * emacs.c (main): Call syms_of_menu.
5961
5962 * keyboard.h: Relocate platform-independent menu definitions from
5963 xmenu.c.
5964
5965 * menu.c: New file. Relocate platform-independent menu
5966 definitions from xmenu.c. Suggested by Adrian Robert.
5967
5968 * xmenu.c: Remove platform-independent menu definitions.
5969 (menu_items menu_items_inuse, menu_items_allocated)
5970 (menu_items_used, menu_items_n_panes)
5971 (menu_items_submenu_depth): Move to keyboard.h.
5972 (init_menu_items, finish_menu_items, unuse_menu_items)
5973 (discard_menu_items, restore_menu_items, save_menu_items)
5974 (grow_menu_items, push_submenu_start, push_submenu_end)
5975 (push_left_right_boundary, push_menu_pane, push_menu_item)
5976 (keymap_panes, single_keymap_panes, single_menu_item)
5977 (list_of_panes, list_of_items, find_and_call_menu_selection)
5978 (xmalloc_widget_value, free_menubar_widget_value_tree)
5979 (parse_single_submenu, digest_single_submenu)
5980 (update_submenu_strings): Move to menu.c.
5981
59822008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
5983
5984 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
5985
59862008-06-06 Miles Bader <miles@gnu.org>
5987
5988 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
5989 face, not frame default.
5990
59912008-06-05 Martin Rudalics <rudalics@gmx.at>
5992
5993 * window.c (pop_up_windows, pop_up_frames)
5994 (display_buffer_reuse_frames, Vpop_up_frame_function)
5995 (Vdisplay_buffer_function, Veven_window_heights)
5996 (Vspecial_display_buffer_names, Vspecial_display_regexps)
5997 (Vspecial_display_function, Vsame_window_buffer_names)
5998 (Vsame_window_regexps, split_height_threshold)
5999 (Vsplit_window_preferred_function): Move those vars to window.el.
6000 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6001 (Fdisplay_buffer): Move those functions to window.el.
6002 (syms_of_window): Remove corresponding declarations.
6003 (display_buffer): New function.
6004 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6005 * dispnew.c (Flast_nonminibuf_frame): New function.
6006 * buffer.c (Fpop_to_buffer): Move to window.el.
6007
60082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6009
6010 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6011
60122008-06-05 Kenichi Handa <handa@m17n.org>
6013
6014 * coding.c (detect_coding): Fix previous change.
6015 (detect_coding_system): Likewise.
6016
60172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6018
6019 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6020
6021 * keymap.c (Vminibuffer_local_filename_must_match_map):
6022 Rename from Vminibuffer_local_must_match_filename_map.
6023 (syms_of_keymap):
6024 * minibuf.c (Fcompleting_read): Adjust accordingly.
6025 * commands.h: Rename declaration as well.
6026
60272008-06-05 Kenichi Handa <handa@m17n.org>
6028
6029 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6030 family name.
6031 (Ffont_put): Likewise.
6032
6033 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6034 current font-spec.
6035
6036 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6037 is unspecified.
6038
6039 * xfaces.c (realize_x_face): If the font-related face attributes
6040 are the same as those of default face, realize a new fontset from
6041 default->fontset.
6042 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6043
60442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6045
6046 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6047 (move_it_in_display_line): New wrapper.
6048
6049 * window.c (window_scroll_pixel_based_preserve_x)
6050 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6051 (window_scroll_pixel_based, window_scroll_line_based):
6052 Use them to preserve column positions.
6053 (syms_of_window): Initialize them.
6054
6055 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6056 (HPOS . VPOS) pair.
6057
6058 * dispextern.h (move_it_in_display_line): Declare.
6059
60602008-06-05 Juanma Barranquero <lekktu@gmail.com>
6061
6062 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6063 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6064 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6065
60662008-06-04 Juanma Barranquero <lekktu@gmail.com>
6067
6068 * window.c (Fset_window_parameter): Doc fix.
6069 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6070
60712008-06-04 Joakim Verona <joakim@verona.se>
6072
6073 * window.h (struct window): Add new member window_parameters.
6074
6075 * window.c (Fwindow_parameters, Fwindow_parameter)
6076 (Fset_window_parameter): New defuns.
6077 (syms_of_window): Defsubr the new defuns.
6078 (make_window): Initialize window_parameters to nil.
6079
60802008-06-04 John Paul Wallington <jpw@pobox.com>
6081
6082 * eval.c (Fdefmacro): Doc fix.
6083
60842008-06-04 Kenichi Handa <handa@m17n.org>
6085
6086 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6087 Be sure to call setup_coding_system when we find a proper coding system.
6088 (detect_coding_system): Fix handling of coding->head_ascii.
6089
60902008-06-03 Andreas Schwab <schwab@suse.de>
6091
6092 * font.c (font_prop_validate_spacing): Fix last change.
6093
60942008-06-03 Kenichi Handa <handa@m17n.org>
6095
6096 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6097 (font_parse_fcname): Fix handling of unknown key.
6098
6099 * xfont.c (xfont_list): Try an alias.
6100
6101 * charset.c (char_charset): Return NULL if the arg charset_list is
6102 specified and C doesn't belong to any of them.
6103
61042008-06-02 Chip Coldwell <coldwell@redhat.com>
6105
6106 * font.c (font_pixel_size): Don't take cdr of an integer.
6107
61082008-06-02 Jim Meyering <meyering@redhat.com>
6109
6110 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6111 * alloc.c (xfree): Return right away for a NULL arg.
6112 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6113 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6114 * mac.c (create_apple_event_from_event_ref): Likewise.
6115 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6116 Likewise.
6117 * doprnt.c (doprnt1): Likewise.
6118 * frame.c (frame): Likewise.
6119 * keyboard.c (wipe_kboard): Likewise.
6120 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6121 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6122 * term.c (tty_default_color_capabilities, maybe_fatal)
6123 (delete_tty): Likewise.
6124 * w16select.c (string): Likewise.
6125 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6126 * w32bdf.c (w32_free_bdf_font): Likewise.
6127 * w32fns.c (w32_unload_font): Likewise.
6128 * w32font.c (w32font_close): Likewise.
6129 * window.c (size_window): Likewise.
6130 * xselect.c (receive_incremental_selection): Likewise.
6131 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6132 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6133 * w32.c (stat): Likewise.
6134
6135 Remove useless if-before-free tests.
6136 * editfns.c (Fset_time_zone_rule): Likewise.
6137 * lread.c (nosuffix): Likewise.
6138 * ralloc.c (get_bloc): Likewise.
6139 * regex.c (reg_free): Likewise.
6140 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6141 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6142 * xsmfns.c (smc_save_yourself_CB): Likewise.
6143
61442008-06-02 Kenichi Handa <handa@m17n.org>
6145
6146 * font.c (font_find_for_lface): Handle float font size.
6147 (font_open_for_lface): Likewise.
6148
6149 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6150 comparing the properties.
6151
61522008-06-01 Jason Rumney <jasonr@gnu.org>
6153
6154 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6155 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6156 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6157 Don't add empty script list.
6158 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6159
61602008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6161
6162 * Makefile.in (dot, dotdot): Remove, update users.
6163 ".." has been used elsewhere in the file for a long time.
6164 (LIBXT_STATIC): Remove conditional based on unused variable.
6165
61662008-06-01 Miles Bader <miles@gnu.org>
6167
6168 * xfaces.c (Vface_remapping_alist): New variable.
6169 (syms_of_xfaces): Initialize it.
6170 (enum named_merge_point_kind): New type.
6171 (struct named_merge_point): Add `named_merge_point_kind' field.
6172 (push_named_merge_point): Make cycle detection respect different
6173 named-merge-point kinds.
6174 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6175 Remove face-name alias resolution.
6176 (lface_from_face_name): New definition using
6177 `lface_from_face_name_no_resolve'.
6178 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6179 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6180 (get_lface_attributes): New definition that layers face-remapping on
6181 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6182 (lookup_basic_face): New function.
6183 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6184 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6185 `get_lface_attributes'.
6186 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6187 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6188 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6189
6190 * xdisp.c (init_iterator): Pass base_face_id through
6191 `lookup_basic_face' when we actually use it as a face-id.
6192 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6193 DEFAULT_FACE_ID.
6194
6195 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6196 lookup the initial face-id.
6197
6198 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6199
62002008-06-01 Juanma Barranquero <lekktu@gmail.com>
6201
6202 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6203 (Fremove_text_properties): Fix typos in docstrings.
6204
62052008-05-31 Kenichi Handa <handa@m17n.org>
6206
6207 * font.c (font_list_entities): Fix the car part of data to be
6208 stored in the cache.
6209
6210 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6211
62122008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6213
6214 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6215 Add a `test' argument so another predicate than `equal' can be used.
6216 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6217 (map_char_table): Remove unused vars `c' and `i'.
6218 * lisp.h (Foptimize_char_table): Adjust declaration.
6219 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6220
62212008-05-30 Kenichi Handa <handa@m17n.org>
6222
6223 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6224 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6225 defined.
6226
62272008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6228
6229 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6230 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6231 frame-local settings for the same variable.
6232
62332008-05-30 Kenichi Handa <handa@m17n.org>
6234
6235 * fontset.c (Ffont_info): Move to font.c.
6236 (syms_of_fontset): Delete defsubr of Sfont_info.
6237
6238 * font.c (font_style_to_value, font_score): Delete casting of the
6239 args to xstcasecmp.
6240 (register_font_driver): Increment num_font_drivers only when
6241 registering the driver globally.
6242 (Ffont_info): Move from fontset.c. Handle a font object too.
6243 (syms_of_font): Defsubr Sfont_info.
6244
62452008-05-29 Kenichi Handa <handa@m17n.org>
6246
6247 * coding.h (enum define_coding_utf8_arg_index): New enum.
6248 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6249 coding_attr_utf_bom.
6250 (enum utf_bom_type): Rename from utf_16_bom_type.
6251 (struct utf_16_spec): Adjust for the above change.
6252 (struct coding_system): Add utf_8_bom in `spec' union.
6253
6254 * coding.c (CODING_UTF_8_BOM): New macro.
6255 (enum coding_category): Delete coding_category_utf_8, add
6256 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6257 coding_category_utf_8_sig.
6258 (CATEGORY_MASK_UTF_8): Delete it.
6259 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6260 (CATEGORY_MASK_UTF_8_SIG): New macros.
6261 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6262 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6263 CATEGORY_MASK_UTF_8_SIG.
6264 (CATEGORY_MASK_UTF_8): New macro.
6265 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6266 (detect_coding_utf_8): Check BOM.
6267 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6268 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6269 (encode_coding_utf_16): Likewise.
6270 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6271 (detect_coding, detect_coding_system): Handle utf-8-auto.
6272 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6273 (syms_of_coding): Fix setting up of Vcoding_category_table.
6274
62752008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6276
6277 * process.c (Faccept_process_output): If `millisec' is non-nil,
6278 `seconds' default to 0.
6279 (wait_reading_process_output): Also return non-nil if we read output
6280 from a non-running process.
6281
62822008-05-29 Jason Rumney <jasonr@gnu.org>
6283
6284 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6285 `raster' specified.
6286 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6287 in the uniscribe backend, but disallow any font that has no
6288 unicode subrange support.
6289
62902008-05-29 Juanma Barranquero <lekktu@gmail.com>
6291
6292 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6293 Fix typos in docstrings.
6294
62952008-05-29 Kenichi Handa <handa@m17n.org>
6296
6297 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6298 (Fx_family_fonts): Set frame correctly.
6299
63002008-05-28 Jason Rumney <jasonr@gnu.org>
6301
6302 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6303
63042008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6305
6306 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6307 calling build_annotations.
6308
63092008-05-28 Juanma Barranquero <lekktu@gmail.com>
6310
6311 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6312 (Fencode_coding_string):
6313 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6314 <latin-extra-code-table>: Fix typos in docstrings.
6315 (syms_of_coding) <coding-system-alist>: Doc fix.
6316 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6317
63182008-05-28 Kenichi Handa <handa@m17n.org>
6319
6320 * fontset.c (Ffont_info): Don't call font_close_object.
6321
6322 * font.c (font_parse_family_registry): Use Ffont_put to validate
6323 foundry and family.
6324 (font_delete_unmatched): Don't check spacing.
6325 (font_list_entities): Add spacing to the spec to list fonts.
6326
6327 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6328 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6329
6330 * coding.c (encode_coding_raw_text): Fix previous change.
6331 (encode_coding_object): When the dst_object is a buffer and is
6332 different from src_object, move gap to PT.
6333
63342008-05-27 Chong Yidong <cyd@stupidchicken.com>
6335
6336 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6337
63382008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6339
6340 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6341 all branches. Compute it differently.
6342
6343 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6344
63452008-05-27 Juanma Barranquero <lekktu@gmail.com>
6346
6347 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6348 into "else if () ... else ...".
6349
63502008-05-27 Jason Rumney <jasonr@gnu.org>
6351
6352 * w32font.c (w32font_open_internal): Determine if glyph indices
6353 are likely to work here.
6354
63552008-05-27 Chong Yidong <cyd@stupidchicken.com>
6356
6357 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6358 draw overlap glyphs with appropriate highlighting.
6359
63602008-05-27 Kenichi Handa <handa@m17n.org>
6361
6362 * xfont.c (xfont_open): Fix calculation of font->average_width.
6363
63642008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6365
6366 * casefiddle.c (casify_object): Try to guess better whether the
6367 argument is a byte or a char.
6368
63692008-05-26 Andreas Schwab <schwab@suse.de>
6370
6371 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6372 Always send multiples of format size.
6373
6374 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6375
63762008-05-26 Jason Rumney <jasonr@gnu.org>
6377
6378 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6379 (compute_metrics): Don't set failure if we just cleared the cache.
6380 (w32_weight_table): Remove unused variable.
6381 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6382 backwards compatibility.
6383
63842008-05-25 Kenichi Handa <handa@m17n.org>
6385
6386 * w32term.c (x_draw_glyph_string):
6387 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6388
6389 * xfaces.c: Delete unused function prototypes.
6390 (xstrlwr, font_frame): Delete them.
6391 (clear_face_cache): Delete unused variable.
6392
6393 * xftfont.c (xftfont_open): Delete unused variable.
6394 If underline_thickness is not 1, adjust underline_position.
6395
6396 * ftxfont.c (ftxfont_open): Delete unused variable.
6397
6398 * fontset.c (face_for_char): Optimize for the case of no charset
6399 property.
6400
6401 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6402 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6403 (otf_open, font_otf_capability, generate_otf_features)
6404 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6405 Comment out by surrounding "#if 0" and "#endif" for the moment.
6406 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6407 (syms_of_font): Codes for accessing above commented out.
6408
64092008-05-24 Eli Zaretskii <eliz@gnu.org>
6410
6411 * w32proc.c: Include dispextern.h.
6412
6413 * w32.c: Include dispextern.h.
6414
64152008-05-23 Juanma Barranquero <lekktu@gmail.com>
6416
6417 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6418 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6419 Fix typos in docstrings.
6420
64212008-05-23 Jason Rumney <jasonr@gnu.org>
6422
6423 * xsmfns.c: Remove includes that are already included by config.h.
6424
64252008-05-23 Kenichi Handa <handa@m17n.org>
6426
6427 * charset.c (Qemacs, charset_emacs): New variables.
6428 (char_charset): Fix for non-Unicode characters.
6429 (syms_of_charset): Define charset_emacs.
6430
6431 * w32term.c (x_draw_glyph_string): Be sure to update
6432 s->underline_thickness and s->underline_position. Be sure to draw
6433 underline within the current line area.
6434
6435 * xterm.c (x_draw_glyph_string): Be sure to update
6436 s->underline_thickness and s->underline_position. Be sure to draw
6437 underline within the current line area.
6438
6439 * fontset.c: Delete unused variables and add casting for char *
6440 throughout the file.
6441 (fontset_font): Try the fallback fonts of the current fontset
6442 before consulting the default fontset.
6443
6444 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6445
6446 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6447
64482008-05-22 Jason Rumney <jasonr@gnu.org>
6449
6450 * font.c: Don't include strings.h.
6451
6452 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6453
6454 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6455 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6456 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6457 to call xstrcasecmp.
6458
6459 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6460
6461 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6462
6463 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6464
6465 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6466
64672008-05-22 Kenichi Handa <handa@m17n.org>
6468
6469 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6470
6471 * font.c (font_prop_validate_style): Adjust for the format
6472 change of font_style_table.
6473
6474 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6475 two args.
6476
6477 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6478 two args.
6479
64802008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6481
6482 * minibuf.c (keys_of_minibuf): Delete.
6483 * lisp.h (keys_of_minibuf): Delete.
6484 * emacs.c (main): Don't call keys_of_minibuf.
6485
64862008-05-22 Kenichi Handa <handa@m17n.org>
6487
6488 * ftfont.c (ftfont_resolve_generic_family): Rename from
6489 ftfont_list_generic_family. Return a single family for each
6490 generic family.
6491 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6492 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6493 Call font_add_log.
6494 (ftfont_match): Call font_add_log.
6495
6496 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6497 (FONT_DEBUG): Define it.
6498 (font_add_log): Extern it.
6499 (font_assert): Rename from xassert.
6500
6501 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6502 (xfont_list_family): Call font_add_log.
6503 (xfont_match): Likewise.
6504 (memq_no_quit): Delete.
6505
6506 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6507 call of Ffont_xlfd_name.
6508
6509 * xfaces.c (struct table_entry, slant_table, weight_table)
6510 (swidth_table): Move to font.c.
6511
6512 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6513 xassert are changed to font_assert. Delete many unused variables.
6514 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6515 New variables.
6516 (struct table_entry): Move from xfaces.c and modified.
6517 (weight_table, slant_table, width_table): Move from xfaces.c and
6518 contents adjusted for the change of struct table_entry.
6519 (font_style_to_value, font_style_symbolic): Adjust for the
6520 format change of font_style_table.
6521 (font_parse_family_registry): Don't overwrite existing foundry and
6522 family of font_spec.
6523 (font_score): Fix calculation of diff for sizes.
6524 (font_sort_entites): Call font_add_log.
6525 (font_delete_unmatched): Return a newly created list.
6526 (font_list_entities): Fix previous change. Call font_add_log.
6527 (font_matching_entity, font_open_entity, font_close_entity):
6528 Call font_add_log.
6529 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6530 (Finternal_set_font_style_table): Delete.
6531 (BUILD_STYLE_TABLE): New macro.
6532 (build_style_table): New function.
6533 (Vfont_log, font_log_env_checked): New variables.
6534 (font_add_log): New function.
6535 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6536 Declare Lisp variables "font-weight-table", "font-slant-table",
6537 "font-width-table", and "font-log". Initialize font_style_table.
6538
65392008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6540
6541 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6542
65432008-05-21 Seiji Zenitani <zenitani@mac.com>
6544 Ryo Yoshitake <ryo@shiftmode.net>
6545
6546 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6547 (Vframe_alpha_lower_limit): New variable.
6548 (x_set_alpha): New function.
6549
6550 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6551
6552 * xfns.c (x-create-frame, Qalpha):
6553 Initialize the frame parameter `alpha'.
6554 * xterm.c (OPAQUE, OPACITY): New.
6555 (x_set_frame_alpha): New function.
6556 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6557
6558 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6559 * w32fns.c (w32_frame_parm_handlers): Likewise.
6560
65612008-05-20 Jason Rumney <jasonr@gnu.org>
6562
6563 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6564 truetype fonts to opentype list.
6565
65662008-05-20 Juanma Barranquero <lekktu@gmail.com>
6567
6568 * fontset.c (Ffontset_info): Doc fix.
6569 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6570 <ignore-relative-composition>: Fix typos in docstrings.
6571
6572 * font.c (syms-of-font) <font-encoding-alist>:
6573 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6574 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6575 (Ffont_otf_alternates): Doc fixes.
6576
65772008-05-20 Kenichi Handa <handa@m17n.org>
6578
6579 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6580 font.h through out the file.
6581 (FONT_DRIVERS): Rename from FONTOBJ.
6582 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6583 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6584
6585 * emacs.c (main): Call syms_of_font unconditionally.
6586
6587 * font.h (find_font_encoding): Extern it.
6588
6589 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6590 fontset.c.
6591 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6592 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6593 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6594 only when HAVE_WINDOW_SYSTEM is defined.
6595 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6596 when HAVE_WINDOW_SYSTEM is defined.
6597
6598 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6599 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6600
6601 * xfaces.c: Include font.h unconditionally.
6602 (merge_face_ref, merge_face_vectors)
6603 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6604
66052008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6606
6607 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6608 indirect_variable.
6609 * eval.c (lisp_indirect_variable): New fun.
6610 (Fuser_variable_p): Use it.
6611
66122008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * lisp.h (indirect_variable):
6615 * data.c (indirect_variable, let_shadows_buffer_binding_p):
6616 Use Lisp_Symbol pointers rather than Lisp_Object.
6617 Adjust callers.
6618 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
6619 To this end, change calling-convention.
6620
6621 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
6622 if some non-hidden buffers are selected by string&pred.
6623
66242008-05-19 Chong Yidong <cyd@stupidchicken.com>
6625
6626 * process.c (wait_reading_process_output): Always check status
6627 when in batch mode.
6628
66292008-05-19 Kenichi Handa <handa@m17n.org>
6630
6631 * font.c (font_list_entities): Fix handling of cache.
6632 (font_matching_entity): Likewise.
6633
6634 * ftfont.c (cs_iso8859_1): Delete.
6635 (ft_face_cache): New variable.
6636 (struct ftfont_info): New member fc_charset_idx.
6637 (ftfont_build_basic_charsets): Delete.
6638 (fc_charset_table): New variable.
6639 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
6640 . FC_CHARSET_IDX) as :font-entity property in the font entity.
6641 Callers changed.
6642 (ftfont_lookup_cache, ftfont_get_charset): New functions.
6643 (ftfont_spec_pattern): New argument fc_charset_idx.
6644 Check registry more rigidly. Change callers.
6645 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
6646 change of :font-entity property of the font.
6647
6648 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
6649 property of the font.
6650
66512008-05-18 Juanma Barranquero <lekktu@gmail.com>
6652
6653 * coding.c (Fcoding_system_p): Rename argument to match docstring.
6654 (Funencodable_char_position, Fcheck_coding_systems_region)
6655 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
6656 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
6657 (Ffind_operation_coding_system, Fset_coding_system_priority)
6658 (Fcoding_system_eol_type): Doc fixes.
6659
66602008-05-17 Glenn Morris <rgm@gnu.org>
6661
6662 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
6663
66642008-05-16 Eli Zaretskii <eliz@gnu.org>
6665
6666 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
6667 and st_gid.
6668
6669 * frame.c (Fdelete_frame): Don't call font_update_drivers if
6670 HAVE_WINDOW_SYSTEM is not defined.
6671
6672 * xfaces.c (merge_face_ref, merge_face_vectors)
6673 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
6674 HAVE_WINDOW_SYSTEM is defined.
6675 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
6676
66772008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
6678
6679 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
6680
66812008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6682
6683 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6684
66852008-05-15 Kenichi Handa <handa@m17n.org>
6686
6687 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
6688 preference.
6689
66902008-05-15 Glenn Morris <rgm@gnu.org>
6691
6692 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
6693
66942008-05-15 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * fns.c (init_fns): Don't initialize weak_hash_tables here.
6697 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
6698
6699 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
6700
67012008-05-15 Kenichi Handa <handa@m17n.org>
6702
6703 * ftfont.c (ftfont_list): Downcase family name to check generic
6704 families.
6705
6706 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
6707 font-spec for QCfont value.
6708
6709 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
6710 buffer. Check the return value of it.
6711
67122008-05-14 Jason Rumney <jasonr@gnu.org>
6713
6714 * w32term.c (w32_get_glyph_overhangs): Remove.
6715 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
6716
67172008-05-14 Kenichi Handa <handa@m17n.org>
6718
6719 * font.c (font_prop_validate): Make nil a valid value.
6720 (font_clear_cache): Check if the cached vector of entities is nil
6721 or not.
6722
67232008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6724
6725 * emacs.c (main_thread): Conditionalize on
6726 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6727 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
6728
6729 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
6730 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
6731 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6732
67332008-05-14 Kenichi Handa <handa@m17n.org>
6734
6735 * coding.c (detect_coding_iso_2022): Ignore a coding category that
6736 has no corresponding coding system.
6737
67382008-05-14 Jason Rumney <jasonr@gnu.org>
6739
6740 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
6741
6742 * w32font.h (w32font_open_internal): Update declaration.
6743
6744 * w32font.c (w32font_open_internal): Change last argument from
6745 w32font_info struct to font object. Fill in font object from
6746 font_entity. Get Outline metrics if possible. Use them to
6747 calculate underline position and thickness. Use xlfd name as name
6748 property. Don't set codepage.
6749 (w32font_open): Pass font_object to w32font_open_internal. Don't
6750 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
6751 (w32font_draw): Use s->font.
6752 (clear_cached_metrics): Don't clear non-existent blocks.
6753
6754 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
6755 font was not found.
6756 (x_draw_glyph_string): Use underline position and thickness from font.
6757
6758 * w32uniscribe.c (uniscribe_open): Pass font_object to
6759 w32font_open_internal.
6760
67612008-05-14 Kenichi Handa <handa@m17n.org>
6762
6763 These changes are to delete all legacy font-handling codes, and
6764 make Emacs use only font-backends.
6765
6766 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
6767 (frame.o, image.o, print.o): Depend on $(FONTSRC).
6768
6769 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
6770
6771 * charset.h (Vcharset_non_preferred_head)
6772 (Vcurrent_iso639_language): Extern them.
6773
6774 * charset.c (Vcharset_non_preferred_head): New variable.
6775 (Vcurrent_iso639_language): New variable.
6776 (syms_of_charset): Declare it as a Lisp variable.
6777 (char_charset): Don't check non preferred charsets. As a last
6778 resort, return charset_unicode.
6779 (Fset_charset_priority): Update Vcharset_non_preferred_head.
6780
6781 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
6782 conditionals. Don't check enable_font_backend. Delete all codes
6783 used only when USE_FONT_BACKEND is not defined.
6784
6785 * dispextern.h (struct glyph_string): Change type of `font' to
6786 `struct font *'.
6787 (struct glyph_string): New member underline_position and
6788 underline_thickness.
6789 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
6790 (struct face): Change type of `font' to `struct font *'. Remove
6791 members `font_name', `font_info_id'.
6792 (per_char_metric, encode_char): Delete externs.
6793 (calc_pixel_width_or_height): Adjust the prototype.
6794
6795 * emacs.c (enable_font_backend): Delete extern.
6796 (main): Don't set enable_font_backend. Don't check the command
6797 line argument "-disable-font-backend".
6798
6799 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
6800 (enum font_property_index): New members FONT_DPI_INDEX,
6801 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
6802 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
6803 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
6804 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
6805 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
6806 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
6807 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
6808 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
6809 (struct font_spec, struct font_entity): New structs.
6810 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
6811 (struct font): Many members from old "struct font_info" moved to
6812 here. Members font and entity deleted.
6813 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
6814 the new font-related objects.
6815 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
6816 (CHECK_FONT_GET_OBJECT): Likewise.
6817 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
6818 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
6819 (struct font_driver): New members case_sensitive anc check. Type
6820 of the member list and open changed.
6821 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
6822 (font_symbolic_width, font_find_object, font_get_spec)
6823 (font_set_lface_from_name): Delete extern.
6824 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
6825
6826 * font.c: Include <strings.h>.
6827 (enable_font_backend): Delete it.
6828 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
6829 (CHECK_VALIDATE_FONT_SPEC): Delete it.
6830 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
6831 (null_string): Delete it.
6832 (null_vector): Make it static.
6833 (font_family_alist): Delete it.
6834 (Qnormal): Extern it.
6835 (QCextra, QClanguage): Delete it.
6836 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
6837 (font_make_spec, font_make_entity, font_make_object)
6838 (font_intern_prop): Renamed from intern_downcase. Don't downcase
6839 the string. Callers changed.
6840 (font_pixel_size): Adjusted for the format change of font-related
6841 objects.
6842 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
6843 (font_style_to_value, font_style_symbolic): New function.
6844 (build_font_family_alist): Delete it.
6845 (font_registry_charsets): Use Fassoc_string instead of
6846 assq_no_quit.
6847 (font_prop_validate_symbol): Don't return null_string.
6848 (font_prop_validate_style): Adjusted for the change of
6849 style-related values in a font vector.
6850 (font_property_table): Delete entries for QClanguage and
6851 QCantialias, add entries for QCavgwidth.
6852 (get_font_prop_index): Delete the 2nd argument FROM.
6853 (font_prop_validate): Arguments changed.
6854 (font_put_extra): Adjusted for the change of font-related objects.
6855 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
6856 (font_parse_fcname, font_unparse_fcname)
6857 (font_prepare_composition): Likewise.
6858 (font_parse_family_registry): Renamed from font_merge_old_spec.
6859 (otf_open): Delete the 1st arg entity.
6860 (font_otf_capability): Adjusted for the above change.
6861 (font_score): New arg alternate_families. Adjusted for the change
6862 of font-related objects.
6863 (font_sort_entites): New arg best_only.
6864 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
6865 Delete them.
6866 (font_match_p): Check alternate families.
6867 (font_find_object): Delete it.
6868 (font_check_object): New function.
6869 (font_clear_cache): Adjusted for the change of font-related objects.
6870 (font_delete_unmatched): New arg.
6871 (font_list_entities): Call font_driver->list with a spec that
6872 doesn't specify style-related properties.
6873 (font_matching_entity): Arguments changed. Caller changed.
6874 (font_open_entity): Adjusted for the change of font-related objects.
6875 (font_close_object, font_has_char, font_encode_char)
6876 (font_get_name, font_get_spec): Likewise.
6877 (font_spec_from_name, font_clear_prop, font_update_lface):
6878 New functions.
6879 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
6880 (font_prepare_for_face, font_done_for_face, font_open_by_name)
6881 (font_at): Adjusted for the change of font-related objects.
6882 (font_range): New function.
6883 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
6884 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
6885 (Fcopy_font_spec, Fmerge_font_spec): New function.
6886 (Ffont_family_list): Renamed from list-families.
6887 (Finternal_set_font_style_table): Arguments changed.
6888 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
6889 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
6890 change of font-related objects.
6891 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
6892
6893 * fontset.h (struct font_info): Delete it. Most members go to
6894 struct font.
6895 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
6896 (enum FONT_SPEC_INDEX): Delete it.
6897 (font_info, list_fonts_func, load_font_func, query_font_func)
6898 (set_frame_fontset_func, find_ccl_program_func)
6899 (get_font_repertory_func, new_fontset_from_font_name): Delete
6900 externs.
6901 (fontset_from_font_name): Extern it.
6902 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
6903 (FONT_INFO_FROM_FACE): Deleted.
6904 (face_for_font): Adjust prototype.
6905
6906 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
6907 conditionals. Don't check enable_font_backend. Delete all codes
6908 used only when USE_FONT_BACKEND is not defined.
6909 (get_font_info_func, list_font_func, load_font_func)
6910 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
6911 (get_font_repertory_func): Delete them.
6912 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
6913 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
6914 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
6915 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
6916 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
6917 (fontset_compare_rfontdef): New function.
6918 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
6919 rfont-defs by qsort. Adjusted for the change of font-group vector.
6920 (load_font_get_repertory): Deleted.
6921 (fontset_find_font): Use new macros to ref/set elements of
6922 font-def and rfont-def.
6923 (fontset_font): Fix the timing of remembering that no font for C.
6924 (free_face_fontset): Do nothing if the face has no fontset.
6925 (face_suitable_for_char_p): Use new macros to ref/set elements of
6926 rfont-def.
6927 (face_for_char): Likewise. Call face_for_char with font_object.
6928 (fs_load_font): Delete. Delete #pragma surrounding it.
6929 (fs_query_fontset): Use strcasecmp instead of strcmp.
6930 (generate_ascii_font_name): Adjusted for the format change of
6931 font-spec.
6932 (Fset_fontset_font): Likewise. Use new macros to set elements of
6933 font-def.
6934 (Fnew_fontset): Use font_unparse_xlfd to generate
6935 FONTSET_ASCII (fontset).
6936 (new_fontset_from_font_name): Deleted.
6937 (fontset_from_font): Renamed from new_fontset_from_font. Check if
6938 a fontset is already created for the font. FIx updating of
6939 Vfontset_alias_alist.
6940 (fontset_ascii_font): Deleted.
6941 (Ffont_info): Adjusted for the format change of font-spec.
6942 (Finternal_char_font): Likewise.
6943 (Ffontset_info): Likewise.
6944 (syms_of_fontset): Don't check load_font_func.
6945
6946 * fns.c (internal_equal): Handle PREV_FONT.
6947
6948 * frame.h: Delete USE_FONT_BACKEND conditional.
6949
6950 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
6951 conditionals. Don't check enable_font_backend. Delete all codes
6952 used only when USE_FONT_BACKEND is not defined.
6953 (x_set_font): Call x_new_font, not x_new_fontset2.
6954 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
6955 already set for the frame.
6956
6957 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
6958 a font-entity by font_make_entity. Use font_intern_prop instead
6959 of intern_downcase. Use FONT_SET_STYLE to set a style-related
6960 font property. If a font is scalable, set avgwidth property to 0.
6961 Set font-entity property by font_put_extra.
6962 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
6963 (ffont_driver): Adjusted for the change of struct font_driver.
6964 (ftfont_spec_pattern): New function.
6965 (ftfont_list): Return a list, not vector.
6966 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
6967 (ftfont_list_family): Don't downcase names.
6968 (ftfont_free_entity): Deleted.
6969 (ftfont_open): Return a font-object. Adjusted for the change of
6970 struct font. Get underline_thickness and underline_position from
6971 font property. Don't update dpyinfo->smallest_font_height and
6972 dpyinfo->smallest_char_width.
6973 (ftfont_close): Don't free `struct font'.
6974 (ftfont_has_char): Adjusted for the format change of font-entity.
6975 (ftfont_encode_char, ftfont_text_extents): Likewise.
6976
6977 * ftxfont.c (ftxfont_list): Return a list, not vector.
6978 (ftxfont_open): Return a font-object. Adjusted for the change of
6979 struct font. Get underline_thickness and underline_position from
6980 font property. Don't update dpyinfo->smallest_font_height and
6981 dpyinfo->smallest_char_width.
6982 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
6983 (ftxfont_draw): Adjusted for the change of struct font.
6984
6985 * image.c (image_ascent): Don't include "charset.h". Include
6986 "character.h" and "font.h".
6987
6988 * lisp.h (enum pvec_type): New member PREV_FONT.
6989 (Fassoc_string): EXFUN it.
6990
6991 * print.c: Include font.h.
6992 (print_object): Handle font-related objects.
6993
6994 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
6995 conditionals. Don't check enable_font_backend. Delete all codes
6996 used only when USE_FONT_BACKEND is not defined.
6997 (handle_auto_composed_prop): Do nothing if it->f is not on a
6998 window system. Check how many following characters can be
6999 displayed by the same font.
7000 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7001 'struct font *'.
7002 (get_char_face_and_encoding): Assign the whole encoding task to
7003 the `encode-char' method of a font driver.
7004 (fill_composite_glyph_string): Adjusted for the change of `struct
7005 face' and `struct glyph_string'.
7006 (fill_glyph_string): Likewise.
7007 (get_per_char_metric): Arguments changed.
7008 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7009 and `struct glyph_string'.
7010 (produce_stretch_glyph, calc_line_height_property)
7011 (x_produce_glyphs): Likewise.
7012
7013 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7014 conditionals. Don't check enable_font_backend. Delete all codes
7015 used only when USE_FONT_BACKEND is not defined. Use
7016 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7017 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7018 (Qp): Extern them.
7019 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7020 Deleted.
7021 (struct font_name): Deleted.
7022 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7023 (compare_fonts_by_sort_order): New function.
7024 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7025 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7026 Deleted.
7027 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7028 compare_fonts_by_sort_order.
7029 (Fx_font_family_list): Call Ffont_family_list.
7030 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7031 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7032 (face_symbolic_slant, face_symbolic_swidth)
7033 (split_font_name_into_vector, build_font_name_from_vector)
7034 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7035 (font_rescale_ratio, split_font_name, build_font_name)
7036 (free_font_names, sort_fonts, x_face_list_fonts)
7037 (face_font_available_p, sorted_font_list, cmp_font_names)
7038 (font_list_1, concat_font_list, font_list, remove_duplicates):
7039 Deleted.
7040 (Fx_list_fonts): Use Ffont_list.
7041 (LFACE_AVGWIDTH): Deleted.
7042 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7043 by FONTP.
7044 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7045 (set_lface_from_font_name): Delete it.
7046 (set_lface_from_font): Renamed from
7047 set_lface_from_font_and_fontset. Caller changed. Don't set
7048 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7049 for face.
7050 (merge_face_vectors): Copy font-spec if necessary.
7051 Clear properties of the font-spec if necessary.
7052 (merge_face_ref): Clear properties of the font-spec if necessary.
7053 (Finternal_set_lisp_face_attribute): Likewise.
7054 (set_font_frame_param): Use font_load_for_lface to load a
7055 font-object, and call Fmodify_frame_parameters with it.
7056 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7057 font name by Ffont_xlfd_name.
7058 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7059 QCslant, and QCwidth.
7060 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7061 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7062 Compare fonts by EQ.
7063 (lookup_non_ascii_face): Deleted.
7064 (face_for_font): The 2nd argument changed.
7065 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7066 Check atomic font properties by case insensitive.
7067 (realize_non_ascii_face): Set face->overstrike correctly.
7068 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7069 (dump_realized_face): Get font name from
7070 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7071
7072 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7073 conditionals. Don't check enable_font_backend. Delete all codes
7074 used only when USE_FONT_BACKEND is not defined.
7075 (xic_create_xfontset): Original code deleted and renamed from
7076 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7077 (x_make_gc): Don't set GCFont in GCs.
7078 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7079 opened by "fixed".
7080 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7081 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7082 get_font_repertory_func.
7083
7084 * xfont.c: Include <stdlib.h> and "ccl.h".
7085 (struct xfont_info): New structure.
7086 (xfont_query_font): Deleted.
7087 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7088 moved from xterm.c.
7089 (xfont_driver): Adjusted for the change of struct font_driver.
7090 (compare_font_names): New function.
7091 (xfont_list_pattern): Sort font names case insensitively. Make
7092 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7093 (xfont_list): Return a list, not vector.
7094 (xfont_match): If the font doesn't have QCname property, generate
7095 a name from the other font properties.
7096 (xfont_open): Return a font-object. Adjusted for the change of
7097 struct font. Get underline_thickness and underline_position from
7098 font property. Don't update dpyinfo->smallest_font_height and
7099 dpyinfo->smallest_char_width.
7100 (xfont_close): Don't free struct font.
7101 (xfont_prepare_face): Adjusted for the change of struct font.
7102 (xfont_done_face): Deleted.
7103 (xfont_has_char): Adjusted for the change of struct font.
7104 (xfont_encode_char, xfont_draw): Likewise.
7105 (xfont_check): New function.
7106
7107 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7108 callback function.
7109 (xftfont_match): Adjusted for the format change of font-entity.
7110 (xftfont_open): Adjusted for the format change of font-entity and
7111 font-object. Adjusted for the change of struct font. Return a
7112 font-object. Don't update dpyinfo->smallest_font_height and
7113 dpyinfo->smallest_char_width.
7114 (xftfont_close): Block input while calling XftFontClose.
7115 (xftfont_prepare_face): Don't block input while calling
7116 xftfont_get_colors. Adjusted for the change of struct font.
7117 (xftfont_shape): Return value of error case fixed.
7118
7119 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7120
7121 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7122 conditionals.
7123 (FONT_WIDTH): Return (f)->max_width.
7124 (struct x_display_info): Delete member `font'.
7125 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7126 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7127 (struct x_output): Change type of `font' to `struct font *'.
7128
7129 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7130 conditionals. Don't check enable_font_backend. Delete all codes
7131 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7132 (x_per_char_metric, x_encode_char): Deleted.
7133 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7134 (x_compute_glyph_string_overhangs): Adjusted for the change of
7135 `struct face'.
7136 (x_draw_glyph_string_foreground)
7137 (x_draw_composite_glyph_string_foreground): Likewise.
7138 (x_draw_glyph_string): Likewise. Use font->underline_position and
7139 font->underline_thickness.
7140 (x_new_font): Renamed from x_new_fontset2.
7141 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7142 (x_check_font): Call `check' method of a font driver.
7143 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7144 (x_query_font, x_get_font_repertory): Deleted.
7145 (x_find_ccl_program): Renamed and moved to xfont.c.
7146 (x_redisplay_interface): Adjusted for the change of `struct
7147 redisplay_interface'.
7148
7149 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7150 conditionals. Don't check enable_font_backend. Delete all codes
7151 used only when USE_FONT_BACKEND is not defined. Surround non-used
7152 code by "#ifdef OLD_FONT" and "endif".
7153 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7154
7155 * w32font.h (struct w32font_info): New member.
7156 (FONT_COMPAT): New macro.
7157 (w32font_open_internal): Prototype adjusted.
7158
7159 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7160 OLD_FONT" and "endif".
7161
7162 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7163 conditionals. Don't check enable_font_backend. Delete all codes
7164 used only when USE_FONT_BACKEND is not defined.
7165 (w32font_open): Return a font-object. Make a font-object by
7166 font_make_object. Adjusted for the change of struct w32font_info.
7167 (w32font_close): Don't free struct font. Adjusted for the change
7168 of struct w32font_info.
7169 (w32font_encode_char, w32font_text_extents, w32font_draw):
7170 Adjusted for the change of struct w32font_info.
7171 (w32font_draw): Likewise.
7172 (w32font_list_internal): Return a list, not vector.
7173 (w32font_open_internal): Change the 4th arg to font-object.
7174 Adjusted for the change of struct w32font_info and font-object format.
7175 (add_font_name_to_list): Don't downcase names.
7176 (w32_enumfont_pattern_entity): Make a font-entity by
7177 font_make_entity. Adjusted for the format change of font-entity.
7178 Use FONT_SET_STYLE to set a style-related font property. If a
7179 font is scalable, set avgwidth property to 0. Set font-entity
7180 property by font_put_extra.
7181 (font_matches_spec): Adjusted for the format change of font-entity.
7182 (w32_weight_table, w32_decode_weight): New variables.
7183 (w32_encode_weight): New function.
7184 (fill_in_logfont): Adjusted for the format change of font-spec.
7185 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7186 weight value.
7187 (w32font_driver): Adjusted for the change of struct font_driver.
7188
7189 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7190 conditionals. Don't check enable_font_backend. Surround non-used
7191 code by "#ifdef OLD_FONT" and "endif".
7192 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7193 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7194
7195 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7196 conditionals. Don't check enable_font_backend. Delete all codes
7197 used only when USE_FONT_BACKEND is not defined. Surround non-used
7198 code by "#ifdef OLD_FONT" and "endif".
7199
7200 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7201 (uniscribe_open): Return value changed to font-object.
7202 Adjusted for the format change of font-object.
7203 (uniscribe_otf_capability): Adjusted for the change of struct font.
7204 (add_opentype_font_name_to_list): Don't downcase names.
7205 (uniscribe_font_driver): Adjusted for the change of struct
7206 font_driver.
7207
72082008-05-13 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * dispnew.c (update_frame_1): Check if tty output is still valid
7211 before flushing it.
7212
72132008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7214
7215 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7216 to Gtk+ menus.
7217
72182008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 * dired.c (file_name_completion): Tweak the code so as to always do it
7221 in a single pass. Tighten the scope of some variables.
7222
7223 * dired.c (Qdefault_directory): New var.
7224 (file_name_completion): Use it instead of Fexpand_file_name.
7225 (syms_of_dired): Initialize it.
7226
72272008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7228
7229 * fileio.c (double_dollars): Remove dead code.
7230
72312008-05-10 Eli Zaretskii <eliz@gnu.org>
7232
7233 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7234 Mention w32-get-true-file-attributes in doc string.
7235
7236 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7237
72382008-05-09 Glenn Morris <rgm@gnu.org>
7239
7240 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7241 2008-04-23.
7242
72432008-05-09 Eli Zaretskii <eliz@gnu.org>
7244
7245 Support for reporting owner and group of each file on MS-Windows:
7246 * dired.c (stat_uname, stat_gname): New functions, with special
7247 implementation for w32.
7248 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7249
7250 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7251 (dflt_group_name): New static variable.
7252 (dflt_group): Rename from the_group.
7253 (init_user_info): Init dflt_group fields. Get user's group name
7254 from LookupAccountSid.
7255 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7256 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7257 New initialization states.
7258 (globals_of_w32): Initialize them to zero. Initialize the default
7259 group name to "None".
7260 (GetFileSecurity_Name): New global var, the name of the function
7261 to call for GetFileSecurity.
7262 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7263 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7264 (get_file_security, get_security_descriptor_owner)
7265 (get_security_descriptor_group, is_valid_sid)
7266 (get_file_security_desc, get_rid, get_name_and_id)
7267 (get_file_owner_and_group): New functions.
7268 (stat): Use get_file_security_desc and get_file_owner_and_group to
7269 report the owner and primary group of each file. Don't ignore the
7270 high 32 bits of file's size, now that st_size is 64-bit wide.
7271 Fix test when to get true file attributes.
7272 (init_user_info): Use get_rid instead of equivalent inline code.
7273 (fstat): Don't ignore the high 32 bits of file's size.
7274
72752008-05-09 Chong Yidong <cyd@stupidchicken.com>
7276
7277 * image.c (png_load): Use correct bit-depth for setting background
7278 color.
7279
72802008-05-08 Eli Zaretskii <eliz@gnu.org>
7281
7282 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7283 epa-hook.elc.
7284
72852008-05-08 Juanma Barranquero <lekktu@gmail.com>
7286
7287 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7288
72892008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7290
7291 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7292 because the original parameters are in pure storage now.
7293 (mac_window): Remove unused params. Update callers.
7294
72952008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7296
7297 * lread.c (substitute_object_recurse): Use lower-level primitives.
7298 Don't signal errors when traversing sub-char-tables.
7299 Don't loop over all the possible characters when traversing char-tables.
7300
7301 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7302 just like we do in print.c.
7303
73042008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7305
7306 * minibuf.c (Ftry_completion): Remove code left over from when we used
7307 scmp instead of Fcompare_strings.
7308
73092008-05-04 Juanma Barranquero <lekktu@gmail.com>
7310
7311 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7312
73132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7314
7315 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7316 Create bitmap context in native byte order.
7317
7318 * macterm.c (XDrawLine)
7319 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7320 context in native byte order.
7321
73222008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7323
7324 * config.in: Regenerate.
7325
7326 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7327 New definitions for Image I/O support.
7328 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7329 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7330 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7331 (mac_data_provider_release_data, image_load_image_io)
7332 [USE_MAC_IMAGE_IO]: New functions.
7333 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7334 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7335 (init_image_func_pointer) [MAC_OSX]: Remove function.
7336 (image_load_quartz2d) [MAC_OSX]: Check availability of
7337 CGImageCreateWithPNGDataProvider at compile time.
7338 Use lowercase `false' for boolean constant.
7339 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7340 Use image_load_image_io.
7341 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7342 Don't check MyCGImageCreateWithPNGDataProvider.
7343 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7344 Don't call init_image_func_pointer.
7345
7346 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7347
7348 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7349 Make variable non-static.
7350 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7351 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7352
7353 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7354 (RED_FROM_ULONG): Mask off higher bits.
7355 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7356
7357 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7358 Include AvailabilityMacros.h.
7359 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7360 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7361
73622008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7363
7364 * chartab.c (Fset_char_table_range): If range is t, really set all
7365 chars to that value.
7366
73672008-05-03 Eli Zaretskii <eliz@gnu.org>
7368
7369 * dired.c (Ffile_attributes): Don't allow the device number become
7370 negative.
7371
73722008-05-02 Daiki Ueno <ueno@unixuser.org>
7373
7374 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7375
73762008-05-02 Juri Linkov <juri@jurta.org>
7377
7378 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7379 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7380 DEFAULT argument as a list of default values in docstrings.
7381
73822008-05-01 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7385
73862008-05-01 Martin Rudalics <rudalics@gmx.at>
7387
7388 * dispnew.c (change_frame_size_1): Preserve small windows when
7389 shrinking frames by calling set_window_height|width with third
7390 arg 2.
7391
7392 * window.h (struct window): Replace field too_small_ok by field
7393 resize_proportionally.
7394
7395 * window.c (make_window): Initialize resize_proportionally.
7396 (enlarge_window): Temporarily set resize_proportionally to make
7397 sure that shrink_windows does scale the window proportionally.
7398 (shrink_windows): When window has resize_proportionally set try
7399 to shrink it proportionally by stealing from other windows.
7400 (struct saved_window, Fset_window_configuration)
7401 (compare_window_configurations): Handle resize_proportionally.
7402 (WINDOW_TOTAL_SIZE): New macro.
7403 (window_min_size, shrink_windows, size_window): Use it.
7404 (check_min_window_sizes): Remove. Invalid values of
7405 window-min-height|width are handled by window_min_size_2 now.
7406 (size_window, Fsplit_window, enlarge_window)
7407 (adjust_window_trailing_edge, grow_mini_window): Don't call
7408 check_min_window_sizes.
7409 (window_min_size_2, window_min_size_1, window_min_size):
7410 New argument safe_p for retrieving "safe" minimum sizes.
7411 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7412 (adjust_window_trailing_edge, grow_mini_window):
7413 Adjust arguments of window_min_size... functions.
7414 (shrink_windows): Argument min_size removed. New argument
7415 safe_p allows shrinking windows to their safe minimum sizes.
7416 Calculate minimum size and decide whether a window shall be
7417 deleted for each window individually.
7418 (size_window): When nodelete_p equals 2, tell shrink_windows to
7419 delete windows only if their new minimum size is no more safe.
7420 (shrink_window_lowest_first): Call window_min_size_1 to make
7421 sure to preserve modeline of bottom-most window when resizing
7422 the minibuffer.
7423 (Fset_window_configuration, Fcurrent_window_configuration)
7424 (compare_window_configurations): Do not handle
7425 window-min-height|width any more.
7426 (syms_of_window): Clarify window-min-height|width doc-strings.
7427
74282008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7429
7430 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7431 some more. Copy some of the code from Ftry_completions.
7432 Remove special case code that dates back to initial revision when the
7433 slash was only added when necessary and that can't trigger nowadays.
7434
74352008-04-27 Kenichi Handa <handa@m17n.org>
7436
7437 * font.c (font_prop_validate): Signal `error' instead of `font'.
7438
74392008-04-29 Jason Rumney <jasonr@gnu.org>
7440
7441 * w32fns.c (Fw32_battery_status): New defun.
7442 (syms_of_w32fns): Defsubr it.
7443
74442008-04-28 Andreas Schwab <schwab@suse.de>
7445
7446 * dired.c (file_name_completion): Fix another mixing of encoded
7447 and decoded names.
7448
74492008-04-28 Juanma Barranquero <lekktu@gmail.com>
7450
7451 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7452
74532008-04-27 Juanma Barranquero <lekktu@gmail.com>
7454
7455 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7456
74572008-04-27 Andreas Schwab <schwab@suse.de>
7458
7459 * dired.c (file_name_completion): Fix inappropriate mixing of
7460 encoded and decoded names.
7461
7462 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7463
7464 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7465
74662008-04-26 Eli Zaretskii <eliz@gnu.org>
7467
7468 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7469 2008-03-31, it's not needed anymore with `struct stat' definition
7470 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7471 for the same reasons.
7472
74732008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7474
7475 * m/sparc.h: Additional redefinitions for GNU/Linux.
7476
74772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7478
7479 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7480 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7481 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7482 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7483 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7484 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7485 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7486 Likewise.
7487
7488 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7489 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7490 (mac_ax_number_of_characters): Add externs.
7491 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7492 [USE_MAC_TSM]: Likewise.
7493 (mac_handle_text_input_event) [MAC_OSX]:
7494 Handle kEventTextInputOffsetToPos for no active input area case.
7495 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7496 (mac_handle_document_access_event)
7497 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7498 (install_application_handler) [MAC_OSX]: Register handlers for
7499 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7500 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7501 Register mac_handle_document_access_event.
7502
7503 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7504 Make functions non-static.
7505
75062008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7507
7508 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7509 (read_file_name_completion_ignore_case, insert_default_directory)
7510 (Qdefault_directory): Move to minibuffer.el.
7511 (Fread_file_name): Call the new `read-file-name' instead.
7512
75132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7514
7515 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7516 Make function non-static.
7517 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7518 Remove function.
7519 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7520 Move to mactoolbox.c.
7521 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7522
7523 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7524 (mac_rect_make): New macro.
7525
7526 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7527 instead of float.
7528 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7529 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7530 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7531 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7532 CGRectMake.
7533 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7534 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7535 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7536 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7537 instead of WindowRef in argument type.
7538 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7539 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7540 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7541 instead of DISPLAY. All uses changed.
7542 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7543 (x_calc_absolute_position): Simplify so as not to use
7544 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7545
7546 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7547 instead of WindowRef in argument type.
7548 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7549 [TARGET_API_MAC_CARBON]: Remove externs.
7550 (create_apple_event, mac_event_parameters_to_lisp)
7551 [TARGET_API_MAC_CARBON]: Add externs.
7552
7553 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7554 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7555 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7556 is clicked.
7557 (x_activate_menubar): Remove extern for saved_menu_event_location.
7558 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7559 Move from mac.c.
7560
75612008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7562
7563 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7564 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7565
75662008-04-23 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7569 attributes only for local files.
7570
7571 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7572 default to Qlocal.
7573
75742008-04-22 Juri Linkov <juri@jurta.org>
7575
7576 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7577 read-buffer-to-switch instead of using the letter "B".
7578
75792008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7580
7581 * fileio.c (Qdefault_directory): New variable.
7582 (Fread_file_name): Use it to pass `dir' to the completion functions.
7583
75842008-04-20 Chong Yidong <cyd@stupidchicken.com>
7585
7586 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7587
75882008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7589
7590 * keyboard.c (Vpre_help_message): Remove.
7591 (show_help_echo): Remove default C code.
7592
7593 * dired.c (directory_files_internal, file_name_completion):
7594 Only call ENCODE_FILE if the string is indeed decoded.
7595
75962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7597
7598 * Makefile.in (TOOLKIT_DEFINES): Remove.
7599 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7600
76012008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7602
7603 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7604 (mactoolbox.o): New target.
7605
7606 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7607 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7608
7609 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
7610 Use mac_set_frame_window_background instead of XSetWindowBackground.
7611 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
7612 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
7613 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
7614 instead of SetWindowTitleWithCFString.
7615 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
7616 Move function to mactoolbox.c.
7617 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
7618 Use mac_set_window_modified instead of SetWindowModified.
7619 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
7620 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
7621 (Fx_focus_frame): Use mac_front_non_floating_window instead of
7622 FrontNonFloatingWindow. Use mac_activate_window instead of
7623 ActivateWindow. Use mac_active_non_floating_window instead of
7624 ActiveNonFloatingWindow.
7625 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
7626 Use mac_show_hourglass and mac_hide_hourglass.
7627 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
7628 instead of GetGlobalMouse.
7629 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
7630 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
7631 Use mac_bring_window_to_front instead of BringToFront.
7632 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
7633 mactoolbox.c.
7634 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
7635 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
7636 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
7637 mactoolbox.c.
7638
7639 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
7640 (XtPointer): Move typedef from macmenu.c.
7641 (enum button_type): Move enum from macmenu.c.
7642 (widget_value): Move typedef from macmenu.c.
7643 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
7644 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7645 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7646 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7647 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7648 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7649 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7650 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
7651 (Selection): Move typedef from macselect.c.
7652 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
7653 macterm.c.
7654 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
7655 (mac_is_window_collapsed, mac_bring_window_to_front)
7656 (mac_send_window_behind, mac_hide_window, mac_show_window)
7657 (mac_collapse_window, mac_front_non_floating_window)
7658 (mac_active_non_floating_window, mac_activate_window)
7659 (mac_move_window_structure, mac_move_window, mac_size_window)
7660 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
7661
7662 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
7663 (enum mac_menu_kind): Move enum to mactoolbox.c.
7664 (min_menu_id): Move variable to mactoolbox.c.
7665 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
7666 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
7667 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
7668 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
7669 [TARGET_API_MAC_CARBON]: Likewise.
7670 (XtPointer): Move typedef to macgui.h.
7671 (enum button_type): Move enum to macgui.h.
7672 (widget_value): Move typedef to macgui.h.
7673 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7674 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7675 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7676 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7677 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7678 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7679 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
7680 (popup_activated_flag): Make variable non-static.
7681 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
7682 (add_menu_item, fill_menu, dispose_menus):
7683 Move functions to mactoolbox.c.
7684 (restore_show_help_function, menu_target_item_handler)
7685 (install_menu_target_item_handler, mac_handle_dialog_event)
7686 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
7687 [TARGET_API_MAC_CARBON]: Likewise.
7688 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
7689 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7690 (find_and_call_menu_selection, name_is_separator): Make function
7691 non-static.
7692 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
7693 to mactoolbox.c.
7694 (set_frame_menubar): Don't call install_menu_quit_handler.
7695 (menu_item_selection): New variable.
7696 (mac_menu_show): Use create_and_show_popup_menu.
7697 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
7698 selection but set variable menu_item_selection. All uses changed.
7699 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
7700 Call install_menu_quit_handler. Move to mactoolbox.c.
7701
7702 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
7703 (Selection): Move typedef to macgui.h.
7704 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
7705 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
7706 Make variables non-static.
7707 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7708 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
7709 Make functions non-static.
7710 (Vmac_service_selection) [MAC_OSX]: Likewise.
7711 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
7712 (mac_valid_selection_target_p, mac_clear_selection)
7713 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7714 (mac_put_selection_value, mac_selection_has_target_p)
7715 (mac_get_selection_value, mac_get_selection_target_list)
7716 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
7717 Move functions to mactoolbox.c.
7718 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
7719 Likewise.
7720 (copy_scrap_flavor_data, mac_handle_service_event)
7721 (install_service_handler) [MAC_OSX]: Likewise.
7722 (syms_of_macselect) <Vmac_dnd_known_types>:
7723 Use mac_dnd_default_known_types.
7724
7725 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
7726 Move to mactoolbox.c.
7727 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
7728 (Fx_selection_owner_p): Add EXFUN.
7729 (install_window_handler, remove_window_handler, XSetWindowBackground):
7730 Remove externs.
7731 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
7732 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
7733 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
7734 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
7735 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
7736 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
7737 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
7738 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
7739 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
7740 (create_and_show_popup_menu, mac_get_selection_from_symbol)
7741 (mac_valid_selection_target_p, mac_clear_selection)
7742 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7743 (mac_put_selection_value, mac_selection_has_target_p)
7744 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
7745 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
7746 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
7747 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7748 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
7749 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7750 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
7751 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7752 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7753
7754 * mactoolbox.c: New file.
7755
77562008-04-18 Jason Rumney <jasonr@gnu.org>
7757
7758 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
7759
77602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7761
7762 * character.c (Fmultibyte_char_to_unibyte):
7763 Return latin1 chars unchanged.
7764
7765 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
7766 relocated if it points to `name'.
7767
77682008-04-17 Kenichi Handa <handa@m17n.org>
7769
7770 * data.c (Faset): Allow setting a multibyte character in an
7771 ASCII-only unibyte string.
7772
7773 * lisp.h (STRING_SET_MULTIBYTE): New macro.
7774
77752008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
7776
7777 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
7778 done in config.h.
7779
77802008-04-16 Juanma Barranquero <lekktu@gmail.com>
7781
7782 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
7783 (Fchar_direction): Add usage in the docstring.
7784
77852008-04-15 Chong Yidong <cyd@stupidchicken.com>
7786
7787 * keyboard.c (read_key_sequence): Remove always-true checks.
7788
77892008-04-14 Jason Rumney <jasonr@gnu.org>
7790
7791 * w32font.c (w32font_open_internal): Set max_bounds.descent in
7792 compatibility struct, for better underline positioning.
7793
77942008-04-13 David Hansen <david.hansen@gmx.net>
7795
7796 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
7797 string.
7798
77992008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7800
7801 * m/hp800.h (XUINT, XSET): Remove.
7802
78032008-04-12 Juanma Barranquero <lekktu@gmail.com>
7804
7805 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
7806 previous change.
7807
78082008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7809
7810 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
7811 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
7812
78132008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7814
7815 * keymap.h (map_keymap_canonical): Declare.
7816 * xmenu.c (single_keymap_panes): Use it.
7817
78182008-04-11 Glenn Morris <rgm@gnu.org>
7819
7820 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
7821 set the target's value to that of the alias.
7822
78232008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7824
7825 * term.c (set_tty_color_mode): Left over typo.
7826
78272008-04-10 Michael Albinus <michael.albinus@gmx.de>
7828
7829 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
7830 only after check for file name handler functions. Signal, when
7831 native functionality is not supported.
7832 (syms_of_fileio): Declare it unconditionally.
7833
78342008-04-10 Jason Rumney <jasonr@gnu.org>
7835
7836 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
7837 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
7838
7839 * w32.c (logon_network_drive): Also logon to remote drives that
7840 are mapped to drive letters.
7841
78422008-04-10 Glenn Morris <rgm@gnu.org>
7843
7844 * xdisp.c (truncate-partial-width-windows): Doc fix.
7845
78462008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
7847
7848 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
7849 Move functions to minibuffer.el.
7850 (syms_of_fileio): Don't declare them.
7851
78522008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7853
7854 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
7855 (syms_of_minibuf): Remove its initialization.
7856
7857 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
7858
78592008-04-09 Juanma Barranquero <lekktu@gmail.com>
7860
7861 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
7862
78632008-04-09 Jason Rumney <jasonr@gnu.org>
7864
7865 * makefile.w32-in (distclean): Delete makefile too.
7866 (maintainer-clean): New target.
7867
7868 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
7869
7870 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
7871 for new font backend and composite cases.
7872
78732008-04-09 Jan Djärv <jan.h.d@swipnet.se>
7874
7875 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
7876 Most of the code moved to run_timers.
7877 (do_pending_atimers): Call run_timers.
7878 (run_timers): New function.
7879
7880 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
7881 run atimers.
7882
7883 * process.c (wait_reading_process_output): The same as above.
7884
78852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7886
7887 * minibuf.c (last_exact_completion): Remove variable.
7888 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
7889 (complete_and_exit_1, complete_and_exit_2)
7890 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
7891 (Fdisplay_completion_list, display_completion_list_1)
7892 (Fminibuffer_completion_help, Fself_insert_and_exit)
7893 (Fexit_minibuffer, Fminibuffer_message): Move functions to
7894 minibuffer.el.
7895 (syms_of_minibuf): Remove corresponding initializations.
7896
7897 * keyboard.c (Qdeactivate_mark): New var.
7898 (command_loop_1): Use it to call `deactivate-mark'.
7899 (syms_of_keyboard): Initialize it.
7900
7901 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
7902 to another frame.
7903 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
7904 Don't call set_tty_color_mode.
7905 (store_frame_param): Reset previous_frame rather than call
7906 set_tty_color_mode.
7907 * term.c (set_tty_color_mode): Rewrite.
7908 * dispextern.h (set_tty_color_mode): New type.
7909 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
7910
79112008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
7912
7913 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
7914 for generic chars, which do not exist any more in emacs-unicode.
7915
79162008-04-08 Michael Albinus <michael.albinus@gmx.de>
7917
7918 * coding.c (detect_coding_emacs_mule)
7919 (Ffind_operation_coding_system): Fix typo.
7920
79212008-04-08 Jason Rumney <jasonr@gnu.org>
7922
7923 * w32uniscribe.c (SNAME): Extract only symbol name.
7924
7925 * w32font.h (struct w32_metric_cache): New struct.
7926 (w32font_info): Use it.
7927 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
7928 (CACHE_BLOCKSIZE): New constants.
7929
7930 * w32font.c (Qja, Qko, Qzh): New symbols.
7931 (syms_of_w32font): Initialise them.
7932 (font_matches_spec): Use them to filter by language.
7933 (recompute_cached_metrics): Remove function.
7934 (compute_metrics, clear_cached_metrics): New functions.
7935 (w32font_encode_char): Use them to manage metric cache.
7936 (w32font_text_extents): Cache metrics for all glyphs on demand.
7937 Delay converting glyph indices to WORD until needed.
7938 (w32font_open_internal): Initialize metric cache to empty.
7939 (registry_to_w32_charset): Charset should always be a symbol.
7940 (fill_in_logfont, list_all_matching_fonts): Family should
7941 always be a symbol.
7942
79432008-04-06 Jason Rumney <jasonr@gnu.org>
7944
7945 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
7946 Give up if glyph indices not supported. Use uniscribe obtained
7947 ABC widths for individual metrics. Map glyph clusters back to
7948 characters using fClusterStart flag. Return number of glyphs
7949 produced, not chars processed.
7950 (uniscribe_shape): Map char at FROM to current glyph.
7951
79522008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7953
7954 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
7955 Use SetMenuItemHierarchicalMenu.
7956
79572008-04-05 Jason Rumney <jasonr@gnu.org>
7958
7959 * image.c (pbm_load): Allow color values up to 65535.
7960 Throw an error if max_color_idx is outside the supported range.
7961 Report an error when image size is invalid.
7962 Read two bytes at a time when raw images have max_color_idx above 255.
7963
79642008-04-05 Eli Zaretskii <eliz@gnu.org>
7965
7966 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7967 cFileName a file name that includes `?' characters, use the 8+3
7968 alias in cAlternateFileName instead.
7969
79702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
7971
7972 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
7973 append "CCL: Quitted" when the CCL program is quitted.
7974 (setup_ccl_program): Initialize ccl->quit_silently to zero.
7975
7976 * ccl.h (struct ccl_program): New member quit_silently.
7977
79782008-04-05 Chong Yidong <cyd@stupidchicken.com>
7979
7980 * search.c (compile_pattern_1): Treat non-nil and non-string of
7981 search-spaces-regexp as nil.
7982
7983 * minibuf.c (Fassoc_string): Tweak docstring.
7984
79852008-04-05 Eli Zaretskii <eliz@gnu.org>
7986
7987 * dired.c (Ffile_attributes): Support inode numbers wider than 32
7988 bits. Remove ugly WINDOWSNT-specific kludge introduced on
7989 2008-03-14 to force inode be positive.
7990
7991 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
7992 _S_* ones, since we now use our own sys/stat.h.
7993 (stat, fstat): Don't mangle the inode number.
7994 (init_user_info): Don't restrict UID and GID to 0-60000 range.
7995
79962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
7997
7998 * frame.h (struct frame): Give one more bit to `visible' since we use
7999 values larger than 1 to indicate obscured frames on ttys.
8000
8001 * keymap.c (Qkeymap_canonicalize): New var.
8002 (Fmap_keymap_internal): New fun.
8003 (describe_map): Use keymap-canonicalize.
8004
8005 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8006 (Fundo_boundary): Set them.
8007 (syms_of_undo): Initialize them.
8008 (record_point): Use them instead of last_point_position*.
8009 (last_undo_buffer): Change type.
8010
80112008-04-04 Jason Rumney <jasonr@gnu.org>
8012
8013 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8014 (recompute_cached_metrics): Don't set ascent and descent per char.
8015
8016 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8017 (uniscribe_check_otf): Add GC protection before consing.
8018 Rearrange loop for counting features.
8019
80202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8021
8022 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8023 buffer with byte-size of source buffer.
8024
80252008-04-03 Chong Yidong <cyd@stupidchicken.com>
8026
8027 * callint.c (Fcall_interactively): Handle temporary region even
8028 when shift-select-mode is off.
8029
80302008-04-03 Jason Rumney <jasonr@gnu.org>
8031
8032 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8033
80342008-04-03 Kenichi Handa <handa@m17n.org>
8035
8036 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8037 (CATEGORY_MASK_UTF_16): Likewise.
8038 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8039 binary file.
8040 (detect_coding): Add null-byte detection for a binary file.
8041 (detect_coding_system): Likewise.
8042
80432008-04-03 Jason Rumney <jasonr@gnu.org>
8044
8045 * w32uniscribe.c: New file.
8046
8047 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8048
8049 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8050
8051 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8052 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8053 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8054 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8055 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8056 (Qphonetic): New symbols.
8057 (syms_of_w32font): Initialize them.
8058 (font_supported_scripts): Use them.
8059 (w32font_list_family): List all charsets.
8060 (w32font_text_extents, recompute_cached_metrics): Fix metric
8061 calculations.
8062 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8063 Give opentype fonts their own format.
8064 (font_matches_spec): New arguments backend and logfont.
8065 Handle :otf spec for uniscribe backend.
8066 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8067 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8068
8069 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8070 font backend.
8071 (globals_of_w32fns): Initialize uniscribe font backend.
8072
8073 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8074 dependencies.
8075 (w32uniscribe.$(O)): New file to build.
8076 (FONT_OBJ): Include w32uniscribe.$(O).
8077 (LIBS): Add uniscribe libraries.
8078
8079 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8080
80812008-04-02 Chong Yidong <cyd@stupidchicken.com>
8082
8083 * callint.c (Vshift_select_mode): New var.
8084 (Finteractive): Document new ^ spec.
8085 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8086 is present.
8087
8088 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8089 (command_loop_1): Avoid running the direct display versions of
8090 forward-char and backward-char if shift-selection may occur.
8091 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8092 shift-translation takes place.
8093
8094 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8095 avoid clobbering by define-minor-mode.
8096
8097 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8098 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8099
8100 * syntax.c (Fforward_word): Add ^ interactive spec.
8101
8102 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8103 (Fscroll_right): Add ^ interactive spec.
8104
81052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8106
8107 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8108
8109 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8110
8111 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8112
81132008-03-31 Juri Linkov <juri@jurta.org>
8114
8115 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8116
81172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8118
8119 * gtkutil.c (xg_set_geometry): Fix indentation.
8120 (xg_resize_outer_widget): Remove.
8121 (x_wm_size_hint_off): Fix indentation.
8122 (xg_frame_set_char_size): Call flush_and_sync after
8123 gtk_window_resize.
8124 (x_wm_set_size_hint): Pass NULL as geometry window to
8125 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8126 Add menu bar and tool bar height to base height.
8127 (xg_update_frame_menubar, free_frame_menubar)
8128 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8129 (update_frame_tool_bar, free_frame_tool_bar):
8130 Change xg_resize_outer_widget to xg_frame_set_char_size.
8131
81322008-03-30 Michael Albinus <michael.albinus@gmx.de>
8133
8134 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8135 (Fdbus_call_method): New parameter TIMEOUT.
8136 (dbus-send-signal): Optimize UNGCPRO call.
8137
81382008-03-29 Juri Linkov <juri@jurta.org>
8139
8140 * window.c (Fdisplay_buffer): Move call to
8141 Vsplit_window_preferred_function out of conditions that check
8142 if window is eligible for vertical splitting.
8143 When Vsplit_window_preferred_function is non-nil, call it and use
8144 its non-nil return value as window. Otherwise, continue doing
8145 vertical splitting using Fsplit_window with arg horflag=nil.
8146 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8147 default value from `split-window' to nil.
8148
81492008-03-29 Juri Linkov <juri@jurta.org>
8150
8151 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8152 for interactive code letters 'b' and 'B'.
8153
81542008-03-29 Eli Zaretskii <eliz@gnu.org>
8155
8156 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8157 multibyte string.
8158
81592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8160
8161 * keyboard.c (pending_funcalls): New var.
8162 (timer_check): Run it.
8163 (syms_of_keyboard): Initialize it.
8164 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8165 (Vdelete_terminal_functions): New vars.
8166 (syms_of_terminal): Initialize them.
8167 (Fdelete_terminal): Run delete-terminal-functions.
8168 * xdisp.c (safe_eval): Rewrite.
8169 (safe_call2): New fun.
8170 * frame.c (Qdelete_frame_functions): New var.
8171 (syms_of_frame): Initialize it.
8172 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8173 * lisp.h (safe_call2, pending_funcalls): Declare.
8174
81752008-03-28 Andreas Schwab <schwab@suse.de>
8176
8177 * indent.c (Fmove_to_column): Move declaration before statements.
8178
81792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8180
8181 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8182 (struct frame): Use bit fields for boolean vars.
8183
8184 * process.c (server_accept_connection): Simplify naming.
8185 (emacs_get_tty_pgrp): Use SDATA.
8186
8187 * coding.c (decode_coding_object): Fix last change.
8188
81892008-03-27 Jason Rumney <jasonr@gnu.org>
8190
8191 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8192
81932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8194
8195 * charset.c (Fdefine_charset_internal): Change the way of
8196 registering charsets in Vcharset_order_list.
8197 (syms_of_charset): Make the charset `eight-bit' supplementary.
8198
81992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8200
8201 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8202 operations, to avoid having the difference between pointers
8203 overflow.
8204
82052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8206
8207 * indent.c (check_display_width): New fun.
8208 (scan_for_column): Use it.
8209
8210 * data.c (syms_of_data): Mark most-positive-fixnum and
8211 most-negative-fixnum as constants.
8212
8213 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8214
8215 * indent.c (scan_for_column): Extract from current_column_1.
8216 Merge with the same code from Fmove_to_column.
8217 (current_column_1, Fmove_to_column): Use it.
8218
82192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8220
8221 * keymap.c (map_keymap_internal): New fun.
8222 (map_keymap): Use it.
8223 (Fmap_keymap_internal): New fun.
8224 (Fmap_keymap): Remove left-out test from before make_save_value.
8225
8226 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8227
8228 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8229 Use XCAR/XCDR.
8230
8231 * process.h (struct Lisp_Process): Remove filter_multibyte.
8232 * process.c (QCfilter_multibyte): Remove.
8233 (setup_process_coding_systems): Don't use filter_multibyte.
8234 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8235 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8236 (Fset_process_filter_multibyte): Change the coding-system to
8237 approximate the previous behavior.
8238 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8239 coding-system.
8240
8241 * coding.c (decode_coding_object): When not decoding into a buffer,
8242 obey the coding system's preference of (uni|multi)byte.
8243
82442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8245
8246 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8247 every char is changed and has a different byte-length.
8248 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8249 Fix int -> EMACS_INT.
8250
82512008-03-23 David Hansen <david.hansen@gmx.net>
8252
8253 * dbusbind.c (xd_read_message): Remove extra copying of message
8254 strings. Check for NULL `interface' or `member'.
8255
82562008-03-22 Eli Zaretskii <eliz@gnu.org>
8257
8258 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8259 cFileName a file name that includes `?' characters, use the 8+3
8260 alias in cAlternateFileName instead.
8261
82622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8263
8264 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8265
82662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8267
8268 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8269 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8270 work on current_buffer only instead (that was already the case
8271 for some of the code anyway).
8272 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8273 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8274 (SET_PT, SET_PT_BOTH): Adjust.
8275 * intervals.h (set_point, temp_set_point, set_point_both)
8276 (temp_set_point_both): Remove redundant declarations.
8277
82782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8279
8280 * fileio.c (Finsert_file_contents):
8281 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8282 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8283 when buffer != current_buffer anyway.
8284
82852008-03-20 Andreas Schwab <schwab@suse.de>
8286
8287 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8288 as default.
8289
82902008-03-19 Jason Rumney <jasonr@gnu.org>
8291
8292 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8293 (syms_of_w32fns): Initialize them.
8294 (HOURGLASS_ID): New constant.
8295 (x_window_to_frame): Don't check hourglass_window.
8296 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8297 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8298 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8299 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8300 Only change the cursor if hourglass is not active.
8301 (Fx_create_frame): Initialize frame's current_cursor.
8302 (hourglass_atimer): Remove.
8303 (hourglass_started): New function.
8304 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8305 (show_hourglass): Adapt to w32, changing argument to frame.
8306
8307 * w32term.h (struct w32_output): Remove hourglass_window.
8308 Add current_cursor.
8309
8310 * eval.c (call_debugger, Fsignal):
8311 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8312 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8313 (Fexecute_extended_command, cancel_hourglass_unwind):
8314 * minibuf.c (read_minibuf):
8315 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8316
83172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8318
8319 * window.c (run_funs): New fun.
8320 (run_window_configuration_change_hook): Use it to run the buffer-local
8321 and the global part of the hook.
8322
8323 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8324 (unwind_format_mode_line): Restore selected window.
8325 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8326
83272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8328
8329 * editfns.c (Fchar_equal): Check they are valid characters.
8330
8331 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8332
83332008-03-17 Andreas Schwab <schwab@suse.de>
8334
8335 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8336 against a charset.
8337
8338 * lisp.h (Fbuffer_list): Declare.
8339
83402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8341
aac0c6e3
MR
8342 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8343 handlebox_widget is != 0.
8344
83452008-03-16 Juri Linkov <juri@jurta.org>
8346
8347 * callint.c (Fcall_interactively): For interactive code letters
8348 'b' and 'B' put the buffer list into the list of default "future"
8349 values of the minibuffer.
8350
83512008-03-16 Andreas Schwab <schwab@suse.de>
8352
8353 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8354 modifiers.
8355
8356 * regex.c (re_match_2_internal): Correct matching of a charset
8357 against latin-1 characters.
8358
83592008-03-16 Kenichi Handa <handa@m17n.org>
8360
8361 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8362 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8363 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8364 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8365 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8366 CHAR_STRING_ADVANCE.
8367 (produce_chars): Fix for the case that the source and the
8368 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8369 instead of CHAR_STRING_ADVANCE.
8370 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8371 STRING_CHAR_ADVANCE.
8372
83732008-03-15 Andreas Schwab <schwab@suse.de>
8374
8375 * regex.c (re_match_2_internal): Correct matching of eight bit
8376 characters in unibyte strings.
8377
83782008-03-15 Martin Rudalics <rudalics@gmx.at>
8379
8380 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8381 at end of range when it coincides with the end of the buffer.
8382
83832008-03-14 Eli Zaretskii <eliz@gnu.org>
8384
8385 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8386
8387 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8388
83892008-03-14 Jason Rumney <jasonr@gnu.org>
8390
8391 * editfns.c (initial_tz): New variable.
8392 (syms_of_editfns): Initialize it.
8393 (Fset_time_zone_rule): Set it when first called.
8394 Use it when TZSTRING is nil.
8395
8396 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8397 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8398 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8399 (globals_of_w32fns): Initialize them.
8400 (compute_tip_xy): Use them to position tooltips.
8401
84022008-03-14 Glenn Morris <rgm@gnu.org>
8403
8404 * emacs.c (main): Revert previous change.
8405 (standard_args): Revert -internal-script back to -scriptload,
8406 and remove the long-option form.
8407
84082008-03-13 Glenn Morris <rgm@gnu.org>
8409
8410 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8411 Remove option -enable-font-backend.
8412
84132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8414
8415 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8416
84172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8418
8419 * xterm.c (x_connection_closed): For GTK: If this is the last
8420 terminal just exit without closing the display.
8421
84222008-03-11 Jason Rumney <jasonr@gnu.org>
8423
8424 * w32font.c (w32font_full_name): Use floor to round.
8425
f0131492 84262008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8427
8428 * sound.c (alsa_configure): Declare vol at beginning of block.
8429
8430 * fontset.c (Ffontset_info): Remove extra semicolon.
8431
84322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8433
8434 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8435 size of resulting string.
8436
84372008-03-10 Jason Rumney <jasonr@gnu.org>
8438
8439 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8440
84412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8442
8443 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8444 Don't pretend as if characters with display property haven't been
8445 consumed for string-replacing-string case.
8446
84472008-03-08 Kim F. Storm <storm@cua.dk>
8448
8449 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8450 (get_next_display_element, next_element_from_string)
8451 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8452
84532008-03-08 Andreas Schwab <schwab@suse.de>
8454
8455 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8456
84572008-03-06 Jason Rumney <jasonr@gnu.org>
8458
8459 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8460 when charset not specified. Only translate ANSI to unicode when
8461 font_type is truetype.
8462 (w32font_coverage_ok): New function.
8463 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8464
84652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8466
8467 * lread.c (Fread_char): Resolve modifiers.
8468 (Fread_char_exclusive): Likewise.
8469
8470 * character.c (char_resolve_modifier_mask): New function.
8471 (char_string): Use char_resolve_modifier_mask.
8472 (Fchar_resolve_modifiers): New function.
8473 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8474 function.
8475
84762008-03-04 Jason Rumney <jasonr@gnu.org>
8477
8478 * makefile.w32-in: Always include w32font.c in the build.
8479 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8480
84812008-03-04 Andreas Schwab <schwab@suse.de>
8482
8483 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8484 (versionclean): Likewise.
8485
84862008-03-04 Juanma Barranquero <lekktu@gmail.com>
8487
8488 * .cvsignore: Add oo.
8489
84902008-03-03 Andreas Schwab <schwab@suse.de>
8491
8492 * coding.c (decode_coding_object): Inhibit gap shrinking while
8493 decoding in place.
8494
84952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8496
8497 * w32term.c: Remove unused include "gnu.h".
8498 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8499
8500 * gnu.h: Rename to ...
8501 * emacs-icon.h: ... this.
8502 * xterm.c: Use emacs-icon.h instead of gnu.h.
8503 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8504
85052008-03-03 Juanma Barranquero <lekktu@gmail.com>
8506
8507 * w32font.c: Include math.h.
8508
85092008-03-03 Jason Rumney <jasonr@gnu.org>
8510
8511 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8512 Compute options separately.
8513 (w32font_open_internal): Set glyph_idx before caching metrics.
8514
8515 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8516 Define if system headers don't.
8517 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8518 (w32font_encode_char): Don't declare here.
8519
8520 * w32font.c (Quniscribe, QCformat): New symbols.
8521 (syms_of_w32font): Define them.
8522 (w32font_has_char): Indicate uncertainty.
8523 (w32font_encode_char): Encode as glyph point. Make static.
8524 (recompute_cached_metrics): New function.
8525 (w32font_open_internal): Use it. Set font to use glyph points
8526 initially. Set format based on type of font.
8527 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8528 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8529 on it. Set format based on information available here.
8530 (add_font_entity_to_list): Identify backend based on opentype_only.
8531
85322008-03-02 Andreas Schwab <schwab@suse.de>
8533
8534 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8535
8536 * coding.c (decode_coding_big5, produce_chars):
8537 Fix typos in last change.
8538
85392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8540
8541 * gnu.h: New icon.
8542
85432008-03-02 Kenichi Handa <handa@m17n.org>
8544
8545 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8546 `dos', don't decode '\r' if that is the last in the source.
8547 (decode_coding_utf_16, decode_coding_emacs_mule)
8548 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8549 (decode_coding_raw_text, decode_coding_charset): Likewise.
8550 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8551
85522008-03-01 Jason Rumney <jasonr@gnu.org>
8553
8554 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8555
85562008-03-01 Kim F. Storm <storm@cua.dk>
8557
8558 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8559
85602008-03-01 Jason Rumney <jasonr@gnu.org>
8561
8562 * w32font.c (w32font_full_name): New function.
8563 (w32font_open_internal): Use it.
8564
85652008-03-01 Kim F. Storm <storm@cua.dk>
8566
8567 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8568
85692008-03-01 Jason Rumney <jasonr@gnu.org>
8570
8571 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8572
85732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8574
8575 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8576 xg_frame_resized when the event is for the edit widget.
8577
8578 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8579
8580 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8581 set_char_size.
8582 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8583 operations on widgets here. Just set frame size if needed.
8584 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8585 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8586 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8587 the whole frame.
8588 (xg_create_tool_bar): Move attachment of the tool bar to
8589 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8590 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8591
85922008-03-01 Jason Rumney <jasonr@gnu.org>
8593
8594 * w32fns.c (w32_msg_pump): Disable debug code.
8595
85962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8597
8598 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8599
86002008-02-29 Chong Yidong <cyd@stupidchicken.com>
8601
8602 * xdisp.c (next_overlay_string): Don't set
8603 overlay_strings_at_end_processed_p if we're currently reading from
8604 a display string.
8605
86062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8607
8608 * xdisp.c (get_overlay_strings_1): Fix typo.
8609
86102008-02-29 Chong Yidong <cyd@stupidchicken.com>
8611
8612 * xdisp.c (get_overlay_strings_1): Add missing argument type.
8613
86142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
8615
8616 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
8617
8618 * xdisp.c (display_mode_element): Cancel the previous change.
8619 (decode_mode_spec): Likewise.
8620 (handle_auto_composed_prop): Don't make composition if it->string
8621 is a string.
8622
86232008-02-27 Kim F. Storm <storm@cua.dk>
8624
8625 * lisp.h (GLYPH): Change type from int to struct with separate char
8626 and face_id members.
8627 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
8628 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
8629 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
8630 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
8631 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
8632 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
8633 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
8634 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
8635 handle new Lisp glyph code encoding, either an integer or a cons.
8636
8637 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
8638 (GLYPH_ALIAS): Delete.
8639 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
8640 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
8641 (GLYPH_FROM_CHAR): Replace macro by ...
8642 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
8643
8644 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
8645 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
8646 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
8647 (GLYPH_INVALID_P): New macro.
8648 (spec_glyph_lookup_face): Update prototype.
8649
8650 * dispnew.c (line_draw_cost): Adapt to new glyph type.
8651 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
8652 new glyph code encoding.
8653 (spec_glyph_lookup_face): No return value; update passed glyph instead.
8654 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
8655
8656 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8657 Adapt to new glyph type and new glyph code encoding.
8658
8659 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
8660
8661 * indent.c (current_column, current_column_1, Fmove_to_column)
8662 (compute_motion): Adapt to new glyph code encoding.
8663
8664 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
8665
86662008-02-27 Chong Yidong <cyd@stupidchicken.com>
8667
8668 * process.c (wait_reading_process_output): Check for window
8669 changes caused by timers.
8670 Suggested by Johan Bockgård.
8671
86722008-02-27 Glenn Morris <rgm@gnu.org>
8673
8674 * emacs.c (USAGE1): Add `--disable-font-backend'.
8675
86762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
8677
8678 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
8679 is made to the buffer.
8680
86812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
8682
8683 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
8684 (face_at_string_position):
8685 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
8686 (face_at_string_position):
8687 * xdisp.c (display_string, next_overlay_change):
8688 * buffer.h (overlays_at):
8689 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
8690 Update callers.
8691
86922008-02-26 Chong Yidong <cyd@stupidchicken.com>
8693
8694 * editfns.c (Fformat): Doc fix.
8695
86962008-02-26 Juanma Barranquero <lekktu@gmail.com>
8697
8698 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
8699 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
8700 (Ffont_otf_alternates, Fquery_font): Doc fixes.
8701
87022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8703
8704 * buffer.c (Fbuffer_swap_text): New function.
8705 (syms_of_buffer): Defsubr it.
8706
87072008-02-25 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
8710
87112008-02-25 Jason Rumney <jasonr@gnu.org>
8712
8713 * w32font.c (w32font_draw): Draw one character at a time when padding.
8714
87152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8716
8717 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
8718 Handle a nil arg. Use run_window_configuration_change_hook.
8719 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
8720 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
8721 Use run_window_configuration_change_hook.
8722
87232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8724
8725 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
8726 1-pixel width.
8727
87282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8729
8730 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
8731 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
8732 if the glyph in the font is zero pixel with.
8733
8734 * dispextern.h (struct glyph_string): New member padding_p.
8735
8736 * w32font.c (w32font_draw): Pay attention to s->padding_p.
8737
8738 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
8739
8740 * xfont.c (xfont_draw): Pay attention to s->padding_p.
8741
8742 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
8743
8744 * font.c: If the font driver doesn't have `shape' function, return Qnil.
8745
87462008-02-25 Jason Rumney <jasonr@gnu.org>
8747
8748 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
8749
87502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
8751
8752 Allow fine-grained image-cache flushing.
8753 * dispextern.h (struct image): Add `dependencies' field.
8754 (clear_image_caches): Change arg to Lisp_Object.
8755 * image.c (make_image): Initialize `dependencies' field.
8756 (clear_image_cache): Change arg to allow fine-grained flushing.
8757 Perform the flush even if image-cache-eviction-delay is nil.
8758 (clear_image_caches): Change arg to Lisp_Object.
8759 (Fclear_image_cache): Expand meaning of the argument.
8760 (mark_image): Mark `dependencies' field.
8761 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
8762 (lface_hash): Use XHASH rather than XFASTINT.
8763 (face_at_buffer_position): Fix int -> EMACS_INT position.
8764 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
8765 (select_frame_for_redisplay): Remove code duplication.
8766 (redisplay_internal): Adapt arg to call to clear_image_caches.
8767
87682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
8769
8770 * s/vms4-0.h:
8771 * s/vms4-2.h:
8772 * s/vms4-4.h:
8773 * s/vms5-5.h: Remove, unused.
8774
8775 * s/irix5-2.h:
8776 * s/irix6-0.h:
8777 * s/riscos5.h:
8778 * s/mach-bsd4-3.h:
8779 * m/mips4.h: Remove files for obsolete systems.
8780
8781 * Makefile.in:
8782 * filelock.c:
8783 * unexmips.c:
8784 * m/hp9000s300.h:
8785 * m/iris4d.h:
8786 * s/aix3-1.h:
8787 * s/hpux.h:
8788 * s/msdos.h:
8789 * s/usg5-0.h:
8790 * s/usg5-2-2.h:
8791 * s/usg5-2.h:
8792 * s/usg5-3.h: Remove references to obsolete variables.
8793
8794 * s/irix5-0.h: Remove, move all the contents ...
8795 * s/irix6-5.h: ... here. Simplify.
8796 * config.in: Regenerate.
8797
87982008-02-24 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32term.c (x_draw_glyph_string_background): Clear the background
8801 manually when cleartype is in use.
8802 (x_draw_glyph_string_foreground): Draw text transparently when
8803 cleartype is in use.
8804
8805 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
8806 a font into it unless we have to.
8807
88082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8809
8810 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
8811 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 8812
aac0c6e3
MR
88132008-02-18 Jason Rumney <jasonr@gnu.org>
8814
8815 * w32fns.c (Fw32_shell_execute): Encode parameters.
8816
88172008-02-09 Eli Zaretskii <eliz@gnu.org>
8818
8819 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
8820
88212008-02-05 Juanma Barranquero <lekktu@gmail.com>
8822
8823 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
8824
88252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
8826
8827 * xterm.c (x_set_offset): Don't change the gravity if
8828 CHANGE_GRAVITY is -1.
8829
88302008-02-23 Chong Yidong <cyd@stupidchicken.com>
8831
8832 * fileio.c (auto_save_error_occurred): New var.
8833 (auto_save_error): Set it.
8834 (Fdo_auto_save): Don't overwrite the error message if an auto-save
8835 error occurred.
8836
88372008-02-23 Eli Zaretskii <eliz@gnu.org>
8838
8839 * w32.c (globals_of_w32): Add initializations for
8840 g_b_init_get_sid_sub_authority and
8841 g_b_init_get_sid_sub_authority_count.
8842
88432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
8844
8845 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
8846 (font_parse_xlfd): Use them for sanity check.
8847 (Finternal_set_font_style_table): Make sure the table is bijective.
8848
8849 Consolidate the image_cache to the terminal struct.
8850 * termhooks.h (P_): Remove redundant def.
8851 (struct terminal): New field `image_cache'.
8852 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
8853 of FRAME_X_IMAGE_CACHE.
8854 * xterm.h (struct x_display_info): Remove image_cache field.
8855 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8856 * w32term.h (struct w32_display_info): Remove image_cache field.
8857 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8858 * macterm.h (struct mac_display_info): Remove image_cache field.
8859 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8860 * xterm.c (x_term_init):
8861 * w32term.c (w32_term_init):
8862 * macterm.c (mac_term_init): Set the image_cache in the terminal.
8863 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
8864 Remove declarations.
8865 (clear_image_caches, mark_image_cache): New declarations.
8866 * xfaces.c (clear_face_cache):
8867 * xdisp.c (redisplay_internal): Use clear_image_caches.
8868 * image.c (clear_image_cache): Don't check that a frame is on
8869 a window-system before checking if it shares the same cache.
8870 (clear_image_caches): New function.
8871 (Fclear_image_cache): Use it.
8872 (mark_image): Move from allo.c.
8873 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
8874 * alloc.c (mark_image, mark_image_cache): Move to image.c.
8875 (mark_object): Don't call mark_image_cache for frames.
8876 (mark_terminals): Call mark_image_cache.
8877
8878 * lisp.h (Fdelete_terminal): Declare.
8879
8880 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
8881 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
8882 wrong_type_argument.
8883
88842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
8885
8886 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
8887 malayalam.el, and tamil.el. Add sinhala.el.
8888
88892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8890
8891 * xterm.c (x_connection_closed): Consolidate identical tests.
8892 (x_delete_terminal): Don't crash if called via x_connection_closed.
8893
88942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
8895
8896 * xdisp.c (decode_mode_spec): New arg string.
8897 (display_mode_element): Adjust for the above change.
8898
88992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8900
8901 * callint.c (Fcall_interactively): Use AREF.
8902
89032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8904
8905 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
8906
89072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
8908
8909 * xfns.c (Fx_show_tip): Set string to " " if empty.
8910
89112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
8912
8913 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
8914 with Qt.
8915
89162008-02-17 Kenichi Handa <handa@m17n.org>
8917
8918 * ftfont.c (ftfont_shape): Return Lispy number.
8919
8920 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
8921 for GCs.
8922 (Finternal_set_font_selection_order): Call font_update_sort_order
8923 only when enable_font_backend is set.
8924 (realize_x_face): Set face->font_info to that of default face only
8925 when enable_font_backend is set.
8926
8927 * xdisp.c (handle_composition_prop): Set it->c to the fist
8928 character of the composed region.
8929 (fill_composite_glyph_string): Set base_face->font_info to
8930 s->font_info. Get a face for ascii from base_face->ascii_face.
8931 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
8932 with a face already decided.
8933 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
8934 non-negative.
8935 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
8936 call font_prepare_composition unconditionally.
8937
8938 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
8939
8940 * xterm.h (struct x_display_info): New member font.
8941
8942 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
8943 (x_set_mouse_face_gc, x_new_font): Likewise.
8944 (x_term_init): Setup display_info->font.
8945 (x_delete_terminal): Free display_info->font.
8946
8947 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
8948
8949 * ftxfont.c (ftxfont_default_fid): Delete it.
8950 (ftxfont_open): Set xfont->fid to 0.
8951 (ftxfont_end_for_frame): Clear data specific to the frame and the
8952 font-driver.
8953
8954 * xftfont.c (xftfont_default_fid): Delete it.
8955 (xftfont_open): Set xfont->fid to 0.
8956
8957 * fontset.c (FONTSET_OBJLIST): New macro.
8958 (fontset_find_font): Update font-object list of the fontset.
8959 (free_realized_fontset): New function.
8960 (free_face_fontset): Call free_realized_fontset.
8961 (Ffont_info): Call font_close_object only when enable_font_backend
8962 is set.
8963
8964 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
8965 [HAVE_NTGUI]: Include w32term.h.
8966 [MAC_OS]: Include macterm.ch.
8967 (font_otf_ValueRecord): Use make_number.
8968 (font_finish_cache): Fix handling of reference count.
8969 (font_clear_cache): Update num_fonts.
8970 (font_open_entity): Update smallest_char_width and
8971 smallest_font_height of the frame.
8972 (font_close_object): Update num_fonts.
8973 (Fclear_font_cache): Fix finding the target cache data.
8974
89752008-02-16 Glenn Morris <rgm@gnu.org>
8976
8977 * fontset.c (Finternal_char_font): Fix compilation warning.
8978
89792008-02-16 Eli Zaretskii <eliz@gnu.org>
8980
8981 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
8982 instead of char arrays. Enlarge the size of array passed to
8983 get_token_information.
8984
8985 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
8986 warnings.
8987
89882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
8989
8990 * .gdbinit: Don't set `args', it breaks gdb --args.
8991
89922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
8993
8994 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
8995 within a narrowed buffer.
8996
89972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
8998
8999 * coding.c (decode_coding_object, encode_coding_object):
9000 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9001
90022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9003
9004 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9005 hardcoding 1.
9006 (detect_coding_system):
9007 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9008 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9009 * insdel.c (insert_from_gap):
9010 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9011 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9012 (string_to_multibyte):
9013 * character.c (chars_in_text, multibyte_chars_in_text):
9014 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9015
9016 * character.h (FETCH_STRING_CHAR_ADVANCE)
9017 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9018 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9019 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9020
9021 * casefiddle.c (casify_region): Only call after-change and composition
9022 functions on the part of the region that was changed.
9023
9024 * keyboard.c (read_avail_input):
9025 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9026
90272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9028
9029 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9030 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9031
90322008-02-11 Juanma Barranquero <lekktu@gmail.com>
9033
9034 * w32menu.c (push_submenu_start, push_submenu_end)
9035 (push_left_right_boundary, push_menu_pane, push_menu_item):
9036 * keyboard.c (read_key_sequence): Don't pass args with side effects
9037 to AREF, it fails when compiling with -DENABLE_CHECKING.
9038
90392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9040
9041 * Makefile.in (${lispsource}international/charprop.el):
9042 Delete this target.
9043
9044 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9045 emacs-unicode-2.
9046
90472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9048
9049 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9050
90512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9052
9053 * frame.c (Qnoelisp): New symbol.
9054 (syms_of_frame): Initialize it.
9055 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9056 harmless Elisp code, from a strong `force' from x_connection_closed.
9057 * frame.h (Qnoelisp): Declare.
9058 * xterm.c (x_connection_closed): Pass `noelisp'.
9059
9060 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9061 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9062 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9063 rather than `int' for the type of `type'.
9064
90652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9066
9067 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9068
9069 * Makefile.in (GNUC): Remove support for gcc-1.x.
9070
90712008-02-10 Richard Stallman <rms@gnu.org>
9072
9073 * lisp.h (ASET): Use AREF, not ASLOT.
9074
90752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9076
9077 * lisp.h (ASET): Check bounds.
9078
90792008-02-10 Glenn Morris <rgm@gnu.org>
9080
9081 * buffer.c (mode-name): Doc fix.
9082
90832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9084
9085 * Makefile.in:
9086 * emacs.c:
9087 * gmalloc.c:
9088 * keyboard.c:
9089 * lisp.h:
9090 * m/ibm370aix.h:
9091 * process.c:
9092 * regex.c:
9093 * s/hpux.h:
9094 * sysdep.c:
9095 * sysselect.h:
9096 * systty.h:
9097 * unexec.c:
9098 * w32term.c:
9099 * xsmfns.c:
9100 * xterm.c: Remove code that deals with obsolete variables.
9101
9102 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9103
9104 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9105 nothing else needs it anymore.
9106
91072008-02-09 Eli Zaretskii <eliz@gnu.org>
9108
9109 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9110 instead of unibyte_char_to_multibyte.
9111
91122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9113
9114 * s/gnu-linux.h: Remove commented out code.
9115
9116 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9117
9118 * Makefile.in: Update what RMS says about using autoconf.
9119 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9120 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9121 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9122 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9123
91242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9125
9126 * keymap.c (Fkey_description): Move side effect outside of macro call.
9127
9128 * xfaces.c (Finternal_make_lisp_face):
9129 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9130
9131 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9132 (syms_of_fontset): Use ASET.
9133
9134 * fns.c (concat): Move side effect outside of macro call.
9135 (hash_clear): Use ASET.
9136
91372008-02-08 Richard Stallman <rms@gnu.org>
9138
9139 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9140 If FORCE, and frame has a surrogate minibuffer for another frame,
9141 delete the other frame first.
9142
91432008-02-07 Timo Savola <timo.savola@iki.fi>
9144
9145 * xterm.c (x_detect_focus_change): Handle embed client message.
9146 (handle_one_xevent): Ditto.
9147 (handle_one_xevent): If embedded and we get a button press/release,
9148 request focus.
9149 (xembed_set_info, xembed_send_message): New functions.
9150 (x_make_frame_visible): Call xembed_set_info if embedded.
9151 (x_make_frame_invisible): Call xembed_set_info if embedded.
9152 (x_term_init): Initialize Xatom_XEMBED.
9153 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9154 (x_iconify_frame): Ditto.
9155
9156 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9157 (enum xembed_info, enum xembed_message, enum xembed_focus)
9158 (enum xembed_modifier, enum xembed_accelerator): New.
9159 (xembed_set_info, xembed_send_message): Declare.
9160 (FRAME_X_EMBEDDED_P): New.
9161
9162 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9163 gtk_plug_new.
9164
9165 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9166 window ID of a frame.
9167 (x_window): Reparent frame if embedded.
9168 (Fx_create_frame): Don't set border width if embedded.
9169
9170 * emacs.c (USAGE3): Add --parent-id.
9171 (standard_args): Ditto.
9172
91732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9174
9175 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9176
91772008-02-07 Jim Meyering <meyering@redhat.com>
9178
9179 Use "do...while (0)", not "if (1)...else" in macro definitions.
9180 The latter provokes a warning from gcc about the empty else, when
9181 followed by ";". Also, without that trailing semicolon, it would
9182 silently swallow up any following statement.
9183 * syntax.h (SETUP_SYNTAX_TABLE)
9184 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9185 * buffer.h (DECODE_POSITION): Likewise.
9186 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9187 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9188 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9189 (FETCH_CHAR_ADVANCE): Likewise.
9190 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9191
91922008-02-07 Jim Meyering <meyering@redhat.com>
9193
9194 * lread.c [lint]: Don't include <sys/inode.h>.
9195
91962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9197
9198 * xselect.c (x_handle_dnd_message):
9199 * xmenu.c (digest_single_submenu, xmenu_show):
9200 * xdisp.c (with_echo_area_buffer_unwind_data)
9201 (format_mode_line_unwind_data, unwind_format_mode_line)
9202 (display_menu_bar):
9203 * eval.c (Ffetch_bytecode):
9204 * doc.c (store_function_docstring):
9205 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9206 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9207 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9208
92092008-02-07 Kenichi Handa <handa@m17n.org>
9210
9211 * ftxfont.c (ftxfont_open): Don't set
9212 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9213
9214 * ftfont.c (ftfont_open): Fix previous change.
9215
92162008-02-06 Jason Rumney <jasonr@gnu.org>
9217
9218 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9219 Use cached metrics for ASCII characters.
9220 (w32font_open_internal): Don't set font's owning_frame.
9221 Cache metrics for ASCII characters.
9222
9223 * w32font.h (struct w32font_info): Add ascii_metrics.
9224 Remove owning_frame.
9225
92262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9227
9228 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9229 to negative value.
9230
9231 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9232
9233 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9234
9235 * charset.c (syms_of_charset): Set QCtest and Qeq.
9236
92372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9238
9239 * process.c (Fstart_process):
9240 * callproc.c (Fcall_process): Handle the case where
9241 Funhandled_file_name_directory returns nil.
9242
9243 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9244 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9245 * font.c (check_gstring): Use them and AREF to access the vector before
9246 we know it's really a gstring.
9247 (Ffont_shape_text): Fix typo.
46e722a9 9248 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9249
9250 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9251 Declare.
9252
9253 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9254
92552008-02-05 Jason Rumney <jasonr@gnu.org>
9256
9257 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9258 Set smallest_font_height and smallest_char_width in display info.
9259
92602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9261
9262 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9263
92642008-02-05 Miles Bader <miles@gnu.org>
9265
9266 * xfaces.c (get_lface_attributes, merge_named_face)
9267 (lookup_named_face, lookup_derived_face, realize_named_face):
9268 Revert 2008-02-01 change by cyd@stupidchicken.com.
9269
92702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9271
9272 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9273 fallback fonts.
9274 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9275
92762008-02-04 Jason Rumney <jasonr@gnu.org>
9277
9278 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9279 set full_name.
9280 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9281
92822008-02-03 Jason Rumney <jasonr@gnu.org>
9283
9284 * makefile.w32-in (OBJ1): Include font.o here.
9285 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9286
92872008-02-02 Jason Rumney <jasonr@gnu.org>
9288
9289 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9290
92912008-02-01 Jason Rumney <jasonr@gnu.org>
9292
9293 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9294
9295 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9296
92972008-02-01 Andreas Schwab <schwab@suse.de>
9298
9299 * Makefile.in (shortlisp, lisp): Update for rename of
9300 ../lisp/language/myanmar.el.
9301
93022008-02-01 Chong Yidong <cyd@stupidchicken.com>
9303
9304 * xfaces.c (get_lface_attributes): Delete function.
9305 (merge_named_face, lookup_named_face, lookup_derived_face)
9306 (realize_named_face): Call lface_from_face_name directly, and use
9307 the fact that merge_face_vectors does not alter its FROM argument.
9308
93092008-02-01 Jason Rumney <jasonr@gnu.org>
9310
9311 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9312 input in the default locale. Handle non-Unicode multibyte input.
9313
93142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9315
9316 * fontset.c (reorder_font_vector): Exclude nil elements from the
9317 font group. Don't try multiple fonts.
9318 (fontset_font): Adjust for the above change.
9319 (Finternal_char_font): Return nil if the found font doesn't
9320 contain the character ch.
9321
9322 * Makefile.in (lisp, shortlisp): Add cham.el.
9323
93242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9325
9326 * font.h (FONTP): Make it return 1 also for a font-object.
9327
9328 * .gdbinit (xfontset): New function.
9329
9330 * font.c (font_find_for_lface): Check if the character C is
9331 supported or not only for the first font.
9332
9333 * fontset.c (reorder_font_vector): Fix typo.
9334 (fontset_find_font): Don't add a font-spec specifying a script.
9335 Use 0 (not Qt) for the indication of empty font-group. Change the
9336 format of RFONT-DEF. Return Qt if no font in the font-group
9337 support the character.
9338 (fontset_font): Adjust for the above change. If no font was
9339 found the character, remember that.
9340 (face_for_char): Adjust for the change of RFONT-DEF.
9341 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9342 no font for the target.
9343 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9344
93452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9346
9347 * font.c (font_load_for_face): Handle the case that the font in
9348 face->lface is a string.
9349
93502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9351
9352 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9353
93542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9355
9356 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9357 Fix previous change. If the frame is not on a window system,
9358 signal an error.
9359
93602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9361
9362 * coding.c (decode_coding_object, encode_coding_object): Adjust
9363 marker positions after conversion.
9364
9365 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9366
93672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9368
9369 * font.c (font_find_for_lface): Fix the handling of the return
9370 value of font_has_char.
9371 (Ffont_shape_text): Fix previous change.
9372
9373 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9374 (fontset_ref_and_range): Delete it.
9375 (fontset_find_font): Call char_table_ref_and_range instead of
9376 FONTSET_REF_AND_RANGE.
9377 (make_fontset): Don't setup font groups of Latin here.
9378 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9379 (new_fontset_from_font): Make the specified font the default for
9380 all Latin characters.
9381
93822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9383
9384 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9385 is on a window system before accessing the fontset of the frame.
9386
93872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9388
9389 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9390
9391 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9392 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9393
9394 * font.c (Ffont_shape_text): If the font driver doesn't have a
9395 shaper function, make zero-width glyphs to have at least one-pixel
9396 width. Fix setting of `to' field of glyphs.
9397
93982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9399
9400 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9401 glyphs.
9402
9403 * font.h (struct font_driver): Improve docstring of member `shape'.
9404
94052008-02-01 Kenichi Handa <handa@m17n.org>
9406
9407 * composite.c (syms_of_composite): Fix docstring of
9408 auto-composition-function.
9409
9410 * font.h (LGLYPH_SIZE): New macro.
9411
9412 * font.c (Ffont_fill_gstring): Stop filling when a character not
9413 supported by the font is found.
9414 (Ffont_shape_text): When a shape callback function returns nil,
9415 try at most two more times with larger gstring.
9416 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9417
9418 * xdisp.c (handle_auto_composed_prop): Change the argument to
9419 auto-composition-function.
9420
9421 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9422 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9423 Lispy glyph and store it in the lgstring.
9424
9425 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9426
9427 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9428
94292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9430
9431 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9432
9433 * fontset.c (Vfont_encoding_charset_alist): New variable.
9434 (syms_of_fontset): DEFVAR it.
9435 (reorder_font_vector, fontset_find_font): Optimize for the case of
9436 no need of reordering.
9437 (face_for_char): Map the charset property by
9438 Vfont_encoding_charset_alist.
9439
94402008-02-01 Jason Rumney <jasonr@gnu.org>
9441
9442 * w32font.c (logfonts_match): Don't check adstyle here.
9443 (font_matches_spec): Check here against physical font instead.
9444 (add_font_entity_to_list): Avoid some substitutions.
9445
9446 * font.c (font_parse_fcname): Default weight and slant to normal.
9447 (font_score): Prefer normal fonts if weight or slant unspecified.
9448 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9449 match freetype scores.
9450
94512008-02-01 Jason Rumney <jasonr@gnu.org>
9452
9453 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9454 font, as it may have been deleted.
9455 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9456 most common hyphenless variation.
9457 (logfonts_match): Check generic family.
9458 (font_matches_spec): Don't check generic family here.
9459 (fill_in_logfont): Set generic family based on adstyle.
9460
9461 * w32font.h (w32font_get_cache): Update declaration.
9462
94632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9464
9465 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9466
9467 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9468 If none of the new drivers are available, call font_update_drivers
9469 with the old drivers.
9470
9471 * w32font.c (w32font_get_cache): Adjust the argument type.
9472
9473 * xfont.c (xfont_get_cache): Adjust the argument type.
9474
9475 * font.h (struct font_driver): Change argument type of get_cache.
9476
9477 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9478
9479 * font.c (Ffont_get): Fix arguments to Fassoc.
9480 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9481 (font_clear_cache): New function.
9482 (font_list_entities, font_matching_entity): Use font_get_cache.
9483 (font_update_drivers): Call font_clear_cache when finishing a driver.
9484
9485 * fontset.c (fontset_find_font): Fix previous change.
9486
94872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9488
9489 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9490 dpyinfo->font_table.
9491 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9492 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9493
9494 * font.c (font_at): Handle the case that the arg C is negative.
9495 Handle the unibyte case.
9496 (Ffont_at): Call font_at with the arg C -1.
9497
9498 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9499 the position here, and call font_at with the arg C -1.
9500 Don't check the range of the existing composition at the point.
9501
95022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9503
9504 * fontset.c (fontset_add): New args charset_id and family.
9505 Change caller.
9506 (load_font_get_repertory, fontset_find_font): Assume that
9507 font_spec is always a font-spec object.
9508 (Fset_fontset_font): Always store a font-spec object in a fontset.
9509
9510 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9511 instead of get_property_and_range.
9512
95132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9514
9515 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9516 (xftfont_open): Don't keep locking face.
9517 (xftfont_close): Don't unlock face.
9518 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9519
9520 * fontset.c (fontset_find_font): Don't prefer a font of
9521 supplementary charset.
9522
95232008-02-01 Kenichi Handa <handa@m17n.org>
9524
9525 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9526 script, langsys_tag to langsys, new member script.
9527 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9528 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9529 listing to the script specified in that property. Fix arg to
9530 OTF_check_features.
9531
95322008-02-01 Jason Rumney <jasonr@gnu.org>
9533
9534 * w32font.h: New file.
9535
9536 * w32font.c: Include it.
9537 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9538 (w32font_open): Set owning_frame.
9539 (w32font_text_extents): Use owning_frame.
9540 (struct font_callback_data): Add opentype_only field.
9541 (add_font_entity_to_list): Use it to filter fonts.
9542 Don't check against full name.
9543 (w32font_list_internal): New function.
9544 (w32font_list): Use it.
9545 (w32font_match_internal): New function.
9546 (w32font_match): Use it.
9547 (w32font_open_internal): New function.
9548 (w32font_open): Use it.
9549 (w32font_get_cache, w32font_close, w32font_has_char)
9550 (w32font_encode_char, w32font_text_extents, w32font_draw):
9551 Make non-static.
9552
9553 * makefile.w32-in (w32font.o): Depend on w32font.h.
9554
95552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9556
9557 * charset.c (Fdefine_charset_internal): Record a supplementary
9558 charset at the tail of Vcharset_order_list.
9559
9560 * font.c (Ffont_shape_text): Fix the return value.
9561
9562 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9563
9564 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9565
95662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9567
9568 * ftfont.c (struct OpenTypeSpec): New struct.
9569 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9570 (ftfont_get_open_type_spec): New function.
9571 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9572
9573 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9574
95752008-02-01 Jason Rumney <jasonr@gnu.org>
9576
9577 * w32font.c (add_font_entity_to_list): Compare only the beginning
9578 of full name.
9579
95802008-02-01 Kenichi Handa <handa@m17n.org>
9581
9582 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9583 Never return HANDLED_RECOMPUTE_PROPS.
9584
95852008-02-01 Kenichi Handa <handa@m17n.org>
9586
9587 * font.c (font_gstring_produce): Delete it.
9588
9589 * composite.h (COMPOSITION_METHOD):
9590 Handle COMPOSITION_WITH_GLYPH_STRING.
9591
95922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9593
9594 * xfont.c (Qx): Delete.
9595 (syms_of_xfont): Don't initialize Qx.
9596
9597 * composite.h (enum composition_method):
9598 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9599
96002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9601
9602 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9603 (choose_face_font): Accept new form of font-spec.
9604
9605 * frame.h (font_driver_list): Declare it unconditionally.
9606 (struct frame): Define members font_driver_list and font_data_list
9607 unconditionally.
9608
9609 * fontset.c: Include "font.h" unconditionally.
9610 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
9611 (Fset_fontset_font): Accept a font-spec object.
9612
9613 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
9614 PIXEL_SIZE part a wild card.
9615
9616 * dispextern.h (struct glyph_string): Define members clip and
9617 num_clips unconditionally.
9618 (struct face): Define members font_info and extra unconditionally.
9619
9620 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
9621 ftfont_info only when HAVE_LIBOTF is defined.
9622
96232008-02-01 Andreas Schwab <schwab@suse.de>
9624
9625 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
9626 and end.
9627
96282008-02-01 Jason Rumney <jasonr@gnu.org>
9629
9630 * w32font.c (w32font_driver): Add new fields.
9631
96322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9633
9634 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
9635 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
9636 (LIBES): Add @M17N_FLT_CFLAGS@.
9637
9638 * composite.c (compose_text): Don't treat the new style
9639 composition specially.
9640
9641 * emacs.c (main): Call syms_of_font unconditionally.
9642
9643 * font.h (FONT_ENTITY_NOT_LOADABLE)
9644 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
9645 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
9646 (struct font_driver): New member shape.
9647 (font_registry_charsets): Extern it.
9648 (font_find_for_lface, font_prepare_composition): Adjust prototype.
9649 (font_otf_capability, font_drive_otf): Delete their externs.
9650
9651 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
9652 (font_charset_alist, font_registry_charsets): Move from xfont.c
9653 and rename.
9654 (font_prop_validate_otf): New function.
9655 (font_property_table): Register it for QCotf.
9656 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
9657 (font_drive_otf): Delete.
9658 (font_prepare_composition): New arg F. Adjust for the change of
9659 lispy gstring.
9660 (font_find_for_lface): New arg C.
9661 (font_load_for_face): Adjust for the change of font_find_for_lface.
9662 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
9663 lispy gstring.
9664 (Ffont_shape_text): New function.
9665 (Fopen_font): If the font size is not given, use 12-pixel.
9666 (Ffont_at): New arg STRING.
9667 (syms_of_font): Initalize font_charset_alist.
9668 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
9669 conditionally.
9670
9671 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
9672 fonts of the same font-spec. Change the format of RFONT-DEF.
9673 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
9674 Adjust for the change of RFONT-DEF.
9675 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
9676
9677 * ftfont.h: New file.
9678
9679 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
9680 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9681 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9682 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
9683 font_otf_capability and font_drive_otf, set ftfont_shape.
9684 (ftfont_list): Adjust for the change of :otf property value.
9685 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
9686 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
9687 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
9688 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9689 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
9690 (otf_gstring, gstring, m17n_flt_initialized): New variables.
9691
9692 * w32term.c (x_draw_composite_glyph_string_foreground):
9693 Adjust for the change of lispy gstring.
9694
9695 * xdisp.c (handle_composition_prop): Adjust for the change of
9696 lispy gstring. Call a function for auto-composition with the
9697 third arg it->window.
9698 (fill_composite_glyph_string): Adjust for the change of lispy string.
9699 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
9700
9701 * xfaces.c (set_font_frame_param): Adjust for the change of
9702 font_find_for_lface.
9703
9704 * xfont.c (x_font_charset_alist): Move to font.c and rename.
9705 (xfont_registry_charsets): Likewise. Change caller.
9706 (syms_of_xfont): Don't handle x_font_charset_alist.
9707
9708 * xftfont.c: Include "ftfont.h".
9709 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9710 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9711 (xftfont_close) [HAVE_LIBOTF]: Close otf.
9712 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9713 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
9714 Set xftfont_driver.shape to xftfont_shape.
9715
9716 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9717 the change of lispy gstring.
9718
97192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9720
9721 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
9722
97232008-02-01 Jason Rumney <jasonr@gnu.org>
9724
9725 * w32font.c (w32font_draw): Fill background manually.
9726
97272008-02-01 Jason Rumney <jasonr@gnu.org>
9728
9729 * font.c (Qfontp): Remove unused symbol.
9730 (QCantialias): New symbol.
9731 (syms_of_font): Define it.
9732 (font_property_table): Set a validator for QCantialias.
9733
9734 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
9735 Define if not already.
9736 (QCfamily): Share with xfaces.c.
9737 (Qstandard, Qsubpixel, Qnatural): New symbols.
9738 (syms_of_w32font): Define them. Don't define QCfamily here.
9739 (w32_antialias_type, lispy_antialias_type): New functions.
9740 (w32_enumfont_pattern_entity): New arg requested_font.
9741 Set antialias parameter if non-default was requested.
9742 (fill_in_logfont): Fill in lfQuality if :antialias specified.
9743
97442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9745
9746 * lread.c (read1): Undo the previous change.
9747
97482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
9749
9750 * frame.c (Fdelete_frame): Call font_update_drivers only when
9751 USE_FONT_BACKEND is defined.
9752
97532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9754
9755 * font.h (struct font_bitmap): New member bits_per_pixel.
9756 (struct font_driver): New members start_for_frame and end_for_frame.
9757 (struct font_data_list): New struct.
9758 (font_put_frame_data, font_get_frame_data): Extern them.
9759
9760 * frame.h (struct frame): New member font_data_list.
9761
9762 * font.c (font_update_drivers): Call driver->start_for_frame and
9763 driver->end_for_frame at proper timings.
9764 (font_put_frame_data, font_get_frame_data): New functions.
9765 (Ffont_spec): Add usage in the docstring.
9766
9767 * frame.c (make_frame): Initialize f->font_data_list to NULL.
9768 (Fdelete_frame): Call font_update_drivers.
9769
9770 * xftfont.c (struct xftface_info): Delete the member xft_draw.
9771 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
9772 (xftfont_get_xft_draw): New function.
9773 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
9774 (xftfont_end_for_frame): New function.
9775 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
9776
9777 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
9778 Change argument. Cache GCs in the per-frame data.
9779 (struct ftxfont_frame_data): New struct.
9780 (ftxfont_draw_bitmap): New arg gc_fore and flush.
9781 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
9782 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
9783 (ftxfont_end_for_frame): New function.
9784 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
9785
9786 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
9787
97882008-02-01 Kenichi Handa <handa@m17n.org>
9789
9790 * xselect.c (Vselection_coding_system)
9791 (Vnext_selection_coding_system): Delete them.
9792 (syms_of_xselect): Don't declare selection-coding-system and
9793 next-selection-coding-system. They are declared in select.el.
9794
97952008-02-01 Jason Rumney <jasonr@gnu.org>
9796
9797 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
9798
9799 * w32fns.c: Include imm.h.
9800 (get_composition_string_fn, get_ime_context_fn): New optional
9801 system functions.
9802 (globals_of_w32fns): Load them from imm32.dll.
9803 (ignore_ime_char): New flag.
9804 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
9805 WM_IME_ENDCOMPOSITION messages.
9806
9807 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
9808 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
9809
98102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9811
9812 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
9813 (READCHAR_REPORT_MULTIBYTE): New macro.
9814 (readchar): New 2nd arg MULTIBYTE.
9815 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
9816 Make symbol's name multibyte according to the multibyteness of the
9817 source.
9818
98192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9820
9821 * xfaces.c (face_for_overlay_string): Call lookup_face with
9822 correct arguments (fix of synching with the trunk).
9823
98242008-02-01 Kenichi Handa <handa@m17n.org>
9825
9826 * font.c (font_prop_validate_symbol, font_prop_validate_style)
9827 (font_prop_validate_non_neg, font_prop_validate_spacing):
9828 Delete argument prop_index.
9829 (font_property_table): Change arguments to validater. Change Callers.
9830 (font_lispy_object): Delete.
9831 (font_at): Use font_find_object instead fo font_lispy_object.
9832
98332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9834
9835 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
9836 and file names.
9837
98382008-02-01 Jason Rumney <jasonr@gnu.org>
9839
9840 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
9841 (font_matches_spec): Remove debug output.
9842 (add_font_entity_to_list): Avoid using substituted fonts.
9843
98442008-02-01 Jason Rumney <jasonr@gnu.org>
9845
9846 * doc.c (Fsnarf_documentation):
9847 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
9848
98492008-02-01 Miles Bader <miles@gnu.org>
9850
9851 * dispextern.h (struct glyph_row): Only define "clip" field if
9852 HAVE_WINDOW_SYSTEM is defined.
9853
98542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 Fix up multi-tty merge.
9857
9858 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
9859 and indentation.
9860
9861 * xfaces.c (free_realized_face, clear_face_gcs):
9862 Include font_done_for_face in the input_blocked section, just in case.
9863
9864 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
9865 (get_char_face_and_encoding): Undo last change and remove the *other*
9866 duplicate definition (i.e. keep the one that's better scoped and that
9867 includes code for the font-backend).
9868
9869 * terminal.c (create_terminal): Default keyboard_coding to
9870 `no-conversion' and terminal_coding to `undecided'.
9871
9872 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
9873
9874 * fontset.c (free_realized_fontsets): Check that the table entry does
9875 contain a fontset before trying to compare it to `base'.
9876
9877 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
9878 syms_of_charset, and syms_of_coding earlier because init_window_once
9879 now needs Vcoding_system_hash_table to be setup.
9880
9881 * coding.h (default_buffer_file_coding): Remove.
9882
9883 * coding.c (default_buffer_file_coding): Remove.
9884 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
9885 than ->symbol, and use the terminal-local coding system.
9886 (syms_of_coding): Don't setup the coding-systems that are not
9887 terminal-local.
9888 (Fdefine_coding_system_internal): Use XCAR/XCDR.
9889
9890 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
9891 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
9892
9893 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
9894 in chartab.c and were re-added here by mistake.
9895 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
9896
9897 * doc.c (Fsnarf_documentation):
9898 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
9899 src to etc.
9900
9901 * ChangeLog.10: Add mistakenly removed entry.
9902
99032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
9904
9905 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
9906
99072008-02-01 Miles Bader <miles@gnu.org>
9908
9909 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
9910 Add extra args to FACE_FOR_CHAR.
9911
99122008-02-01 Kenichi Handa <handa@m17n.org>
9913
9914 * keymap.c (where_is_internal_1): If key is a cons, store the copy
9915 in sequence.
9916
9917 * chartab.c (map_sub_char_table, map_char_table): If the range
9918 contains just one character, call the function with that character
9919 even if the depth is not 3.
9920
99212008-02-01 Jason Rumney <jasonr@gnu.org>
9922
9923 * w32font.c (w32font_text_extents): Calculate metrics for the
9924 whole string.
9925
99262008-02-01 Jason Rumney <jasonr@gnu.org>
9927
9928 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
9929
99302008-02-01 Jason Rumney <jasonr@gnu.org>
9931
9932 * w32term.c (x_set_glyph_string_clipping): Use
9933 get_glyph_string_clip_rects.
9934 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9935 Adjust for the change of struct glyph_string.
9936
9937 * w32font.c (w32font_draw): Do clipping here.
9938
99392008-02-01 Kenichi Handa <handa@m17n.org>
9940
9941 * xftfont.c (xftfont_draw): Adjust for the change of struct
9942 glyph_string.
9943
9944 * xterm.c (x_set_glyph_string_clipping): Use
9945 get_glyph_string_clip_rects.
9946 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9947 Adjust for the change of struct glyph_string.
9948
9949 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
9950 the resulting clip(s}.
9951 (expose_overlaps): Add arg r. Change callers. Set it to
9952 row->clip temporarily.
9953 (expose_window): Redraw rows overlapping the exposed area.
9954
9955 * dispextern.h (struct glyph_row): New member clip.
9956 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
9957 clip_height, new member clip, and num_clips.
9958
99592008-02-01 Kenichi Handa <handa@m17n.org>
9960
9961 * data.c (Fchar_or_string_p): Fix docstring.
9962
99632008-02-01 Kenichi Handa <handa@m17n.org>
9964
9965 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
9966 create a temporary XftDraw object.
9967
99682008-02-01 Kenichi Handa <handa@m17n.org>
9969
9970 * font.c (Ffontp): Fix docstring.
9971
9972 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
9973 strong evidence of ISO-2022.
9974
99752008-02-01 Kenichi Handa <handa@m17n.org>
9976
9977 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
9978 SYNTAX_ENTRY_FOLLOW_PARENT.
9979
99802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9981
9982 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
9983 its type.
9984 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
9985 Update to the new type of weak_hash_tables and next_weak.
9986
9987 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
9988 a plain C pointer to Lisp_Hash_Table.
9989
9990 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
9991 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
9992 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
9993 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
9994 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
9995 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
9996 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
9997 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
9998 (GC_EQ): Remove since they've been identical to their non-GC_
9999 alter-egos ever since the markbit was eradicated.
10000
10001 * alloc.c:
10002 * buffer.c:
10003 * buffer.h:
10004 * data.c:
10005 * fileio.c:
10006 * filelock.c:
10007 * fns.c:
10008 * frame.h:
10009 * lisp.h:
10010 * macterm.c:
10011 * print.c:
10012 * process.c:
10013 * w32fns.c:
10014 * w32menu.c:
10015 * w32term.c:
10016 * xfns.c:
10017 * xmenu.c:
10018 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10019
100202008-02-01 Kenichi Handa <handa@m17n.org>
10021
10022 * chartab.c (map_sub_char_table): Make it work for the top-level
10023 char-table. Fix handling of parent char-table.
10024 (map_char_table): Adjust for the above change.
10025
100262008-02-01 Jason Rumney <jasonr@gnu.org>
10027
10028 * w32font.c (Qgdi): Rename from Qw32.
10029
100302008-02-01 Jason Rumney <jasonr@gnu.org>
10031
10032 * w32bdf.c (get_quoted_string): Make function static.
10033
100342008-02-01 Kenichi Handa <handa@m17n.org>
10035
10036 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10037 bigger ascent and descent than those of the font, use them as
10038 font's ascent and descent.
10039
100402008-02-01 Kenichi Handa <handa@m17n.org>
10041
10042 * Makefile.in (${lispsource}international/charprop.el): Move this
10043 target within "#ifdef HAVE_UNIDATA" and "#endif".
10044
100452008-02-01 Kenichi Handa <handa@m17n.org>
10046
10047 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10048 (shortlisp): Add ../lisp/language/tai-viet.el.
10049
100502008-02-01 Ulrich Mueller <ulm@gentoo.org>
10051
10052 * Makefile.in (${lispsource}international/charprop.el): Depend on
10053 temacs${EXEEXT}.
10054
100552008-02-01 Jason Rumney <jasonr@gnu.org>
10056
10057 * w32font.c (w32font_close): Delete the GDI font object.
10058
10059 * w32menu.c: Include character.h.
10060
10061 * w32proc.c: Likewise.
10062
10063 * w32select.c: Likewise.
10064
10065 * makefile.w32-in (w32proc.o): Depend on character.h.
10066
100672008-02-01 Jason Rumney <jasonr@gnu.org>
10068
10069 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10070
10071 * w32menu.c (syms_of_w32menu): Likewise.
10072
10073 * w32proc.c (syms_of_ntproc): Likewise.
10074
10075 * w32select.c (syms_of_w32select): Likewise.
10076
10077 * w32term.c (syms_of_w32term): Likewise.
10078
100792008-02-01 Jason Rumney <jasonr@gnu.org>
10080
10081 * w32font.c (w32font_draw): Delete brush after using it.
10082
100832008-02-01 Jason Rumney <jasonr@gnu.org>
10084
10085 * w32font.c (w32font_open): Don't set font_idx.
10086 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10087 to font settings.
10088 (w32font_draw): Fill background explicitly.
10089
100902008-02-01 Jason Rumney <jasonr@gnu.org>
10091
10092 * w32term.c (w32_initialize): Don't call w32font_initialize.
10093
10094 * w32font.c (w32font_info): Remove subranges.
10095 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10096 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10097 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10098 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10099 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10100 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10101 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10102 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10103 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10104 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10105 New symbols.
10106 (font_callback_data): New struct.
10107 (w32font_list, w32font_match): Use it.
10108 (w32font_open): Don't populate subranges.
10109 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10110 (w32font_encode_char): Always return unicode code-point as-is.
10111 (w32font_text_extents): Supply a transformation matrix to
10112 GetGlyphOutline. Never look up by glyph index. Avoid looping
10113 twice. Use unicode version of GetTexExtentPoint32 instead of
10114 glyph index version.
10115 (set_fonts_frame): Remove.
10116 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10117 set frame parameter. Use backward compatible fake foundries.
10118 Save generic family in extra slot under QCfamily. Make width slot
10119 constant. Save QCspacing value. Save list of scripts instead of
10120 binary subranges.
10121 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10122 (add_font_entity_to_list): Use font_callback_data struct. Filter
10123 unwanted fonts.
10124 (add_one_font_entity_to_list): Use font_callback_data struct.
10125 (w32_registry): Default to iso10646_1.
10126 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10127 string font registries. Don't fill in font name if it is a generic
10128 family name, fill family instead. Use spacing, family and script
10129 extra info to fill pitch, family and charset fields.
10130 (list_all_matching_fonts): Use font_callback_data struct.
10131 (unicode_range_for_char): Remove.
10132 (font_supported_scripts): New function.
10133 (w32font_initialize): Remove.
10134 (syms_of_w32font): Update which symbols are defined.
10135
101362008-02-01 Jason Rumney <jasonr@gnu.org>
10137
10138 * font.c (font_pixel_size): Reverse assq_no_quit args.
10139
10140 * w32term.h (FONT_WIDTH): Report max width, not average.
10141 (FONT_MAX_WIDTH): Remove.
10142 (FONT_AVG_WIDTH): New macro.
10143
10144 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10145 redefinition of FONT_WIDTH.
10146
10147 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10148 (w32_cache_char_metrics): Use FONT_WIDTH.
10149
10150 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10151
101522008-02-01 Jason Rumney <jasonr@gnu.org>
10153
10154 * w32font.c (w32font_open): Make lfHeight negative.
10155
10156 * w32fns.c (x_default_font_parameter): Use new style font name.
10157 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10158
101592008-02-01 Jason Rumney <jasonr@gnu.org>
10160
10161 * w32font.c (QCsubranges): New symbol.
10162 (w32font_open, w32font_has_char): Get subranges from subproperty
10163 of extra.
10164 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10165 (syms_of_w32font): Define :subranges symbol.
10166
10167 * font.c (font_put_extra): Expose externally.
10168
10169 * font.h (font_put_extra): Move declaration from font.c.
10170
10171 * font.c (Ffont_get): Use font driver to determine otf capability.
10172 (adjust_anchor): Check if driver defines anchor_point before using.
10173
10174 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10175 (w32font_draw): Use options.
10176 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10177 Fix detection of truetype fonts.
10178 (registry_to_w32_charset): Handle charsets other than iso8859-1
10179 expressed as lisp symbols.
10180 (w32_registry): Express charset as lisp symbol.
10181 (fill_in_logfont): Reverse pixel and point height logic.
10182 Don't set width here. Set quality to default.
10183
10184 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10185 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10186
10187 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10188 Remove redundant loop and allocation.
10189
10190 * makefile.w32-in (font.o, w32font.o): New objects.
10191 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10192 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10193
10194 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10195 STORE_XCHARB a valid l-value.
10196
10197 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10198 calculations for non-Truetype fonts.
10199 (x_draw_glyph_string): Sync with xterm.c.
10200 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10201 Remove redundant code.
10202 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10203
10204 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10205 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10206
10207 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10208 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10209
10210 * w32font.c: New file for w32 font backend.
10211
102122008-02-01 Kenichi Handa <handa@m17n.org>
10213
10214 * term.c: Don't include "buffer.h" twice.
10215
102162008-02-01 Kenichi Handa <handa@m17n.org>
10217
10218 * character.c (Funibyte_string): New function.
10219 (syms_of_character): Defsubr it.
10220
102212008-02-01 Jason Rumney <jasonr@gnu.org>
10222
10223 * w32term.c [USE_FONT_BACKEND]:
10224 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10225 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10226 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10227 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10228 (x_free_frame_resources): Sync with xterm.c.
10229
102302008-02-01 Andreas Schwab <schwab@suse.de>
10231
10232 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10233 char-table size.
10234
102352008-02-01 Kenichi Handa <handa@m17n.org>
10236
10237 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10238
102392008-02-01 Kenichi Handa <handa@m17n.org>
10240
10241 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10242 font_otf_gpos, add font_drive_otf.
10243
10244 * fontset.c (fontset_find_font): Pay attention to font size
10245 specified for a font.
10246 (reorder_font_vector): Check contents of font_def.
10247
10248 * font.c (struct otf_list): Delete it.
10249 (otf_list): Make it a lisp variable.
10250 (otf_open): Use lispy otf_list.
10251 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10252 (check_otf_features): New function.
10253 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10254 New functions.
10255 (font_drive_otf): New function merging font_otf_gsub and
10256 font_otf_gpos.
10257 (font_open_for_lface): New arg spec. Change argument order.
10258 (font_load_for_face): Adjust for the change of font_open_for_lface.
10259 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10260 Ffont_otf_gpos.
10261 (syms_of_font): Staticpro otf_list. Delete defsubr of
10262 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10263
10264 * xfaces.c (set_font_frame_param): Adjust for the change of
10265 font_open_for_lface.
10266
10267 * font.h (font_open_for_lface): Adjust prototype.
10268 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10269 member otf_drive.
10270 (font_otf_gsub, font_otf_gpos): Delete externs.
10271 (font_drive_otf): Extern it.
10272
102732008-02-01 Kenichi Handa <handa@m17n.org>
10274
10275 * font.c (font_at): If the window W is not on a window system,
10276 return Qnil.
10277
10278 * coding.c (produce_chars, encode_coding): Don't call
10279 insert_from_gap if no characters to produce.
10280
102812008-02-01 Kenichi Handa <handa@m17n.org>
10282
10283 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10284 Fclear_face_cache.
10285
10286 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10287
102882008-02-01 Miles Bader <miles@gnu.org>
10289
10290 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10291 Parse "--disable-font-backend" option.
10292 (standard_args): Add "--disable-font-backend" option.
10293
102942008-02-01 Kenichi Handa <handa@m17n.org>
10295
10296 * fontset.c (fontset_find_font): New function.
10297 (fontset_font): Use fontset_find_font.
10298 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10299 Register the specified font for all Latin characters.
10300 (new_fontset_from_font): Register the specified font for all Latin
10301 characters.
10302 (dump_fontset): For a realized fontset, include the base fontset
10303 name in the returned vector.
10304
103052008-02-01 Kenichi Handa <handa@m17n.org>
10306
10307 * character.h (CHAR_STRING): Cast C to unsigned on calling
10308 char_string.
10309
10310 * character.c (char_string): Type of arg C changed to unsigned.
10311 Signal an error if C is an invalid character code.
10312
10313 * editfns.c (general_insert_function, Fchar_to_string):
10314 Use CHARACTERP, not INTEGERP.
10315
103162008-02-01 Kenichi Handa <handa@m17n.org>
10317
10318 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10319 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10320
10321 * regex.c (analyse_first): Fix for multibyte characters in "case
10322 charset:" and "case categoryspec:".
10323
103242008-02-01 Andreas Schwab <schwab@suse.de>
10325
10326 * Makefile.in (LIBES): Move standard libraries to the end.
10327
103282008-02-01 Kenichi Handa <handa@m17n.org>
10329
10330 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10331 nonzero, don't shrink the buffer nextb.
10332
10333 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10334
10335 * coding.c (coding_alloc_by_making_gap): New arg offset.
10336 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10337 offset.
10338 (decode_coding_iso_2022): Update coding->safe_charsets.
10339 (decode_coding_gap): Temporarily set
10340 current_buffer->text->inhibit_shrinking to 1.
10341
103422008-02-01 Kenichi Handa <handa@m17n.org>
10343
10344 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10345 indexing into elements of s->cmp and s->char2b.
10346
103472008-02-01 Juanma Barranquero <lekktu@gmail.com>
10348
10349 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10350
103512008-02-01 Kenichi Handa <handa@m17n.org>
10352
10353 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10354 target_multibyte instead of multibyte.
10355 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10356 (bcmp_translate): Change the argument name from multibyte to
10357 target_multibyte.
10358
103592008-02-01 Kenichi Handa <handa@m17n.org>
10360
10361 These changes are to compile a regexp into a pattern that can be
10362 used both for multibyte and unibyte targets.
10363
10364 * Makefile.in (search.o): Depend on charset.h.
10365
10366 * character.c (multibyte_char_to_unibyte_safe): New function.
10367
10368 * search.c: Include "charset.h".
10369 (compile_pattern_1): Delete argument multibyte. Don't set
10370 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10371 (compile_pattern): Don't compare cp->buf.target_multibyte.
10372 Compare cp->buf.charset_unibyte.
10373 (compile_pattern): Set cp->buf.target_multibyte.
10374
10375 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10376
10377 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10378
10379 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10380 multibyte. Change callers.
10381 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10382 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10383 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10384 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10385 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10386 (regex_compile): Make the compiled pattern usable both for
10387 multibyte and unibyte targets.
10388 (analyse_first): Make the fastmap usable both for multibyte and
10389 unibyte targets.
10390 (TRANSLATE_VIA_MULTIBYTE): Delete.
10391 (re_match_2_internal): Pay attention to the case that the
10392 multibyteness of bufp and target may be different.
10393
103942008-02-01 Kenichi Handa <handa@m17n.org>
10395
10396 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10397 empty box occupy at least one column width.
10398
103992008-02-01 Miles Bader <miles@gnu.org>
10400
10401 * Makefile.in: Remove redundant HAVE_XFT clause.
10402
104032008-02-01 Kenichi Handa <handa@m17n.org>
10404
10405 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10406
104072008-02-01 Kenichi Handa <handa@m17n.org>
10408
10409 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10410 being nil.
10411
104122008-02-01 Kenichi Handa <handa@m17n.org>
10413
10414 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10415
104162008-02-01 Kenichi Handa <handa@m17n.org>
10417
10418 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10419
104202008-02-01 Kenichi Handa <handa@m17n.org>
10421
10422 * search.c (simple_search): Fix previous change.
10423
104242008-02-01 Kenichi Handa <handa@m17n.org>
10425
10426 * xftfont.c (ftfont_font_format): Extern declaration.
10427
10428 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10429
10430 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10431 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10432
10433 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10434 (ftfont_font_format): Fix previous change.
10435
10436 * font.h (Ffont_xlfd_name): EXFUN it.
10437
10438 * font.c (font_parse_xlfd): Fix the array size of `f'.
10439 (register_font_driver): Use EQ to compare driver->type.
10440
10441 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10442 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10443 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10444
104452008-02-01 Kenichi Handa <handa@m17n.org>
10446
10447 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10448 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10449
104502008-02-01 Kenichi Handa <handa@m17n.org>
10451
10452 * xfont.c (xfont_open): Set font->format.
10453
10454 * xftfont.c (xftfont_open): Set font->format.
10455
10456 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10457 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10458 (ftfont_open): Set font->format.
10459 (ftfont_font_format): New function.
10460
10461 * font.h (struct font): New member format.
10462
10463 * font.c (Qopentype): New variable.
10464 (syms_of_font): Defsym it.
10465 (Fquery_font): Change the format of the last element of the return
10466 value.
10467
104682008-02-01 Kenichi Handa <handa@m17n.org>
10469
10470 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10471 last resort.
10472
104732008-02-01 Kenichi Handa <handa@m17n.org>
10474
10475 * coding.c (detect_coding_charset): Fix detection of multi-byte
10476 charset.
10477
104782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10479
10480 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10481
104822008-02-01 Kenichi Handa <handa@m17n.org>
10483
10484 * xdisp.c (get_next_display_element): Set it->face_id for the
10485 first component of a composition.
10486 (x_produce_glyphs): Check if the font is changed or not for composition.
10487
104882008-02-01 Kenichi Handa <handa@m17n.org>
10489
10490 * fontset.c (Qlatin): New variable.
10491 (syms_of_fontset): Define it as a lisp symbol.
10492 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10493
104942008-02-01 Kenichi Handa <handa@m17n.org>
10495
10496 * font.c (font_unparse_fcname): Pay attention to the case that
10497 some of font property is a null string.
10498
104992008-02-01 Kenichi Handa <handa@m17n.org>
10500
10501 * term.c: Include "composite.h".
10502 (encode_terminal_code): Output all components of composition.
10503 Check the size of encode_terminal_src.
10504 (produce_glyphs): For composition, call produce_composite_glyph.
10505 (append_composite_glyph, produce_composite_glyph): New functions.
10506
10507 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10508 is not found, get font_info from the current ascii face.
10509
105102008-02-01 Kenichi Handa <handa@m17n.org>
10511
10512 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10513 buffer-file-name to Qnil before calling insert_from_buffer.
10514
10515 * font.c (font_unparse_fcname): Pay attention to the case that
10516 foundry is a null string.
10517
105182008-02-01 Kenichi Handa <handa@m17n.org>
10519
10520 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10521
10522 * font.c (Qunicode_sip): New variable.
10523 (syms_of_font): Declare it as a Lisp symbol.
10524
10525 * font.h (Qunicode_sip): Extern it.
10526
105272008-02-01 Kenichi Handa <handa@m17n.org>
10528
10529 * composite.c (get_composition_id): Pay attention to TAB component.
10530
10531 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10532 TAB. Adjust for the change of s->char2b which always points to
10533 the first element of allocated memory.
10534
10535 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10536
10537 * xdisp.c (handle_composition_prop): Set it->c to the first
10538 non-TAB component.
10539 (fill_composite_glyph_string): Change argument.
10540 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10541 (x_produce_glyphs): Fix handling of left/right padding.
10542
105432008-02-01 Kenichi Handa <handa@m17n.org>
10544
10545 * coding.c (detect_coding_system): Fix for handling off
10546 inhibit_iso_escape_detection. Fix for the case that no coding
10547 system is defined for a specific coding category.
10548
105492008-02-01 Kenichi Handa <handa@m17n.org>
10550
10551 * font.c (font_matching_entity): Delete unused local var.
10552
10553 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10554 opening a font.
10555
10556 * fileio.c (Finsert_file_contents): On recovering a file, assume
10557 Unix-like eol.
10558 (choose_write_coding_system): On auto-saving a file, force
10559 Unix-like eol.
10560
10561 * coding.c (setup_coding_system): Fix setting of
10562 coding->common_flags based on eol_type.
10563 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10564 inherit from it.
10565
105662008-02-01 Kenichi Handa <handa@m17n.org>
10567
10568 * alloc.c (NSTATICS): Increas to 0x600.
10569
105702008-02-01 Kenichi Handa <handa@m17n.org>
10571
10572 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10573 (ftfont_list): Don't check :name property.
10574 (ftfont_match): New function.
10575 (ftfont_pattern_entity): If the pattern doesn't contain
10576 FC_SPACING, don't assume FC_MONO.
10577
10578 * font.h (struct font_driver): New member `match'.
10579 (font_update_drivers): Adjust prototype.
10580
10581 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10582 property of FONT.
10583 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10584 them unconditionally.
10585 (font_matching_entity): New function.
10586 (font_open_by_name): Try font_matching_entity if exact match is
10587 not found.
10588 (font_update_drivers): Delete the arg FONT. Return a list of
10589 actually used backends. Don't free faces, font caches here.
10590 Don't store data in frame parameters. Don't call x_set_font.
10591 (Ffont_spec): Store :name property as is.
10592 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10593 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10594 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10595 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10596 Call font->driver->otf_gsub instead of font_otf_gsub.
10597
10598 * frame.c (x_set_font_backend): Do more works that were done in
10599 font_update_drivers before.
10600
10601 * xfont.c (xfont_match): New function.
10602 (xfont_driver): Set xfont_driver.match to xfont_match.
10603 (xfont_draw): Set font in GC if necessary.
10604
10605 * ftxfont.c (ftxfont_match): New function.
10606 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10607
10608 * xftfont.c (xftfont_match): New function.
10609 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
10610
106112008-02-01 Kenichi Handa <handa@m17n.org>
10612
10613 * font.h (struct font): New member scalable.
10614 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
10615 (font_otf_gsub): Adjust prototype.
10616
10617 * font.c (font_otf_capability): Fix handling of the default langsys.
10618 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
10619 Check the contents of SPEC.
10620 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
10621 (check_gstring): New function.
10622 (REPLACEMENT_CHARACTER): New macro.
10623 (font_otf_gsub): New arg alternate_subst. Be sure to set all
10624 glyph codes of GSTRING.
10625 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
10626 (font_prepare_composition): Set cmp->glyph_len.
10627 (font_open_entity): Set font->scalable.
10628 (Ffont_get): Handle :otf property.
10629 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
10630 functions.
10631 (Fquery_font): Use font->font.full_name.
10632 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
10633 Sfont_otf_alternates.
10634
10635 * ftfont.c (ftfont_open): Set font->font.full_name and
10636 font->font.name properly. Fix calculation of font->font.height
10637 and font->min_width.
10638
10639 * ftxfont.c (ftxfont_create_gcs): New function.
10640 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
10641 (ftxfont_draw_backgrond): Fix filling region.
10642 (ftxfont_default_fid): New function.
10643 (ftxfont_open): Set xfont->fid to the return value of
10644 ftxfont_default_fid.
10645 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
10646 (ftxfont_done_face): Free only GCs that are created by
10647 ftxfont_create_gcs.
10648 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
10649
10650 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
10651 Clip to src->width, etc (not src->clip_XXX).
10652
10653 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
10654 FontBackend frame parameter.
10655
106562008-02-01 Kenichi Handa <handa@m17n.org>
10657
10658 * font.h (struct font_driver_list): New member `on'.
10659 (Fclear_font_cache): EXFUN it.
10660 (font_update_drivers): Extern it.
10661
10662 * font.c (font_unparse_fcname): Fix typo (swidth->width).
10663 (font_list_entities): Check driver_list->on.
10664 (register_font_driver): Initalize `on' member to 0.
10665 (font_update_drivers): New function.
10666 (Fclear_font_cache): Check driver_list->on.
10667
10668 * frame.h (Qfont_backend): Extern it.
10669 (x_set_font_backend): Extern it.
10670
10671 * frame.c (Qfont_backend): New variable.
10672 (frame_parms): New element for font-backend.
10673 (x_set_font_backend): New function.
10674
10675 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
10676 FontBackend frame parameter.
10677 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
10678 x_set_font_backend.
10679
10680 * xfont.c (xfont_list): Don't try listing by :name property if the
10681 name is not for XLFD.
10682
106832008-02-01 Kenichi Handa <handa@m17n.org>
10684
10685 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
10686 (LGLYPH_SET_TO): New macros.
10687 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
10688 element of G is vector or not.
10689 (font_at): Extern it.
10690
10691 * font.c: Include window.h.
10692 (font_lispy_object): New function.
10693 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
10694 end of valid glyph.
10695 (font_close_object): Fix getting (struct font *).
10696 (font_at): New function.
10697 (Ffont_get): If FONT is a font-object, get entity from it.
10698 (Ffont_make_gstring): Initialize elements of glyphs with nil.
10699 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
10700 range check.
10701 (Ffont_at): New function.
10702 (syms_of_font): Defsubr Sfont_at.
10703
10704 * xdisp.c (it_props): Move the entry for Qauto_composed to just
10705 before the entry for Qcomposition.
10706 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
10707 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
10708 the font in gstring.
10709 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
10710 LGLYPH_FORM (g) to detect the end of valid glyph.
10711 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
10712 we are composing with gstring.
10713
10714 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
10715 Check if adjustment is vector or not.
10716
10717 * Makefile.in (font.o): Make it depends on window.h.
10718
107192008-02-01 Kenichi Handa <handa@m17n.org>
10720
10721 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
10722 adjustment is vector or not.
10723
107242008-02-01 Miles Bader <miles@gnu.org>
10725
10726 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
10727
107282008-02-01 Kenichi Handa <handa@m17n.org>
10729
10730 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
10731 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
10732 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
10733
10734 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
10735 (DEVICE_DELTA): Fix typo.
10736 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
10737 LGLYPH format.
10738
10739 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10740 the change of LGLYPH format.
10741
107422008-02-01 Kenichi Handa <handa@m17n.org>
10743
10744 * ftfont.c (ftfont_list): Fix typo.
10745 (ftfont_build_basic_charsets): Don't include letters with diacritics.
10746
107472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10748
10749 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
10750
10751 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
10752 xftface_info is non-NULL.
10753
107542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10755
10756 * ftfont.c (ftfont_list): Move misplaced #endif.
10757
107582008-02-01 Kenichi Handa <handa@m17n.org>
10759
10760 * ftfont.c (ftfont_list): Pay attention to the case that
10761 FC_CAPABILITY is not defined.
10762
107632008-02-01 Kenichi Handa <handa@m17n.org>
10764
10765 * xftfont.c (xftfont_open): Set charset related members to -1.
10766
10767 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
10768 QCname.
10769 (ftfont_open): Set charset related members to -1.
10770
10771 * fontset.c (Votf_script_alist): New variable.
10772 (syms_of_fontset): Initialize it.
10773 (fontset_font): Delete unused variable.
10774
10775 * fontset.h (Votf_script_alist): Extern it.
10776
10777 * font.c (font_find_for_lface): Optimize code.
10778
10779 * font.h (font_close_object, font_merge_old_spec): Extern them.
10780
107812008-02-01 Kenichi Handa <handa@m17n.org>
10782
10783 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
10784 (syms_of_font): Initialize them.
10785 (font_pixel_size): Allow float value in dpi.
10786 (font_prop_validate_type): Delete.
10787 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
10788 Change caller.
10789 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
10790 (font_prop_validate_extra): Delete.
10791 (font_prop_validate_spacing): New function.
10792 (font_property_table): Add elements for all known properties.
10793 (get_font_prop_index): Rename from check_font_prop_name. New
10794 argument FROM. Change caller.
10795 (font_prop_validate): Validate all known properties.
10796 (font_put_extra): Delete argument force. Change caller.
10797 (font_expand_wildcards): Make it static. Fix the way of shrinking
10798 the possible range.
10799 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
10800 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
10801 Change caller.
10802 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
10803 (font_parse_fcname): Delete argument merge. Fix parsing of point
10804 size. Don't validate properties values here. Change caller.
10805 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
10806 (font_open_by_name): Delete unused variable.
10807 (Ffont_spec): Likewise. Validate property values.
10808 (Ffont_match_p): New function.
10809
10810 * font.h (QCscalable): Extern it.
10811 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
10812
10813 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
10814
10815 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
10816 (xfont_list_pattern): New function.
10817 (xfont_list): Use xfont_list_pattern.
10818
108192008-02-01 Kenichi Handa <handa@m17n.org>
10820
10821 * font.h (Flist_fonts): EXFUN it.
10822
108232008-02-01 Jason Rumney <jasonr@gnu.org>
10824
10825 * w32term.c (w32_initialize): Add back smoothing_type and
10826 smoothing_enabled definitions.
10827
108282008-02-01 Kenichi Handa <handa@m17n.org>
10829
10830 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
10831 s->face->font on determining underline position.
10832
108332008-02-01 Kenichi Handa <handa@m17n.org>
10834
10835 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
10836 (font_has_char): Accept font-object too.
10837 (font_find_for_lface): Try at first with a size specified in face.
10838
108392008-02-01 Kenichi Handa <handa@m17n.org>
10840
10841 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
10842 font_open_by_name.
10843
108442008-02-01 Kenichi Handa <handa@m17n.org>
10845
10846 * font.h (QCspacing, QCdpi): Extern them.
10847 (enum font_spacing): New enum.
10848 (FONT_PIXEL_SIZE_QUANTUM): New macro.
10849
10850 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
10851 (QCspacing, QCdpi): New variables.
10852 (syms_of_font): Initialize them.
10853 (font_pixel_size): New function.
10854 (font_put_extra): New function.
10855 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
10856 in FONT_EXTRA.
10857 (font_parse_fcname): Handle enumerated values (e.g. bold).
10858 Fix handling font size. Add QCname property that contains only
10859 unknown properties.
10860 (font_score): Change argument. Change caller. Pay attention to
10861 FONT_PIXEL_SIZE_QUANTUM.
10862 (font_sort_entites, font_list_entities, font_find_for_lface)
10863 (font_open_for_lface, font_open_by_name): Fix handling of font size.
10864 (Ffont_spec): Add QCname property that contains only unknown properties.
10865
10866 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
10867 include weight in listing pattern, instead check weight of each
10868 listed font. Don't include scalable in pattern. Pay attention to
10869 FONT_PIXEL_SIZE_QUANTUM.
10870
108712008-02-01 Kenichi Handa <handa@m17n.org>
10872
10873 * font.c (font_parse_fcname): Fix parsing of point-size.
10874 (font_unparse_fcname): Produce symbolic names for style properties.
10875 (font_list_entities): Handle float size correctly.
10876 (font_open_by_name): Prefer `normal' property values if the name
10877 doesn't specify them.
10878
10879 * fontset.c (Finternal_char_font): Use font_get_name, not
10880 Ffont_xlfd_name.
10881
10882 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
10883 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
10884 pattern. Don't force scalable.
10885
10886 * xftfont.c (xftfont_open): For generating a name, start from
10887 96-byte buffer.
10888
108892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10890
10891 * frame.h (x_new_fontset2): Fix prototype.
10892
108932008-02-01 Kenichi Handa <handa@m17n.org>
10894
10895 * font.h (struct font_driver): Delete member parse_name.
10896 (font_match_p, font_get_spec, font_parse_fcname)
10897 (font_unparse_fcname): Extern them.
10898 (font_get_name): Adjust prototype.
10899
10900 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
10901 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
10902 (font_expand_wildcards): Fix handling ENCODING field. Avoid
10903 unnecessary checks for weight, slant, and swidth.
10904 (font_parse_fcname): New function.
10905 (font_unparse_fcname): New function.
10906 (font_parse_name): New function.
10907 (font_match_p): New function.
10908 (font_get_name): Change return value to Lisp string.
10909 (font_get_spec): New function.
10910 (Qunspecified, Qignore_defface): Don't extern them.
10911 (font_find_for_lface): Assume that LFACE is fully specified.
10912 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
10913 object, use it for FACE.
10914 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
10915 driver->parse_name.
10916 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
10917
10918 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
10919 prototype.
10920
10921 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
10922 argument F. Don't call Fnew_fontset. Instead, directly call
10923 make_fontset.
10924
10925 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
10926
10927 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
10928 of x_new_fontset2.
10929
10930 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
10931 (Qsans__serif): New variables.
10932 (ftfont_generic_family_list): New variable.
10933 (syms_of_ftfont): Initialize the above variables.
10934 (ftfont_pattern_entity): Delete argument NAME.
10935 (ftfont_list_generic_family): New function.
10936 (ftfont_parse_name): Delete this function.
10937 (ftfont_list): Try generic family only when FcFontList found no font.
10938 (ftfont_list_family): Fix args to FcObjectSetBuild.
10939
10940 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
10941 object in attrs[LFACE_FONT_INDEX].
10942 (set_lface_from_font_name): Cancel all changes for font-backend.
10943 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
10944 function.
10945 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
10946 font object in QCfont attribute.
10947 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
10948 (realize_default_face) [USE_FONT_BACKEND]: Call
10949 set_lface_from_font_and_fontset.
10950
10951 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
10952 "fixed", and signal error here if no suitable font was found.
10953
10954 * xfont.c (xfont_parse_name): Delete this function.
10955
10956 * xftfont.c (xftfont_open): Change coding style of error
10957 handling. Generate fontconfig's fontname pattern.
10958
10959 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
10960 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
10961
10962 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
10963 Both args FONTSET and FONT_OBJECT must be existing ones.
10964
109652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10966
10967 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
10968
109692008-02-01 Kenichi Handa <handa@m17n.org>
10970
10971 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
10972
10973 * font.h (struct font): Fix typo.
10974
10975 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
10976 XLFD_XXX_INDEX.
10977 (enum xlfd_field_mask): New enum.
10978 (intern_font_field): Changed argument. Change caller. If digits
10979 are followed by non-digits, return a symbol.
10980 (font_expand_wildcards): New function.
10981 (font_parse_xlfd): Fix wildcard handling.
10982 (Ffont_spec): If :name is specified, reflect the info in the other
10983 properties.
10984
10985 * ftfont.c (ftfont_pattern_entity): Fix typo.
10986 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
10987 locale.
10988
109892008-02-01 Kenichi Handa <handa@m17n.org>
10990
10991 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
10992
10993 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
10994 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
10995 registry doesn't specify encoding part.
10996 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
10997 (font_open_by_name): At first try parsing the name.
10998 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
10999 as Lisp symbols.
11000
11001 * fontset.c (reorder_font_vector): Pay attention to the case that
11002 the 3rd element of font_def is nil.
11003 (fontset_font): For the default fontset, append one more fontset
11004 elements for a script-based font specification. Don't add script
11005 attribute on finding a font.
11006 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11007 font name.
11008 (fontset_ascii_font): If a font can't be opened, return nil.
11009
11010 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11011 (ftfont_pattern_entity): New function.
11012 (ftfont_get_cache): Assume that freetype_font_cache is already
11013 initialized.
11014 (ftfont_list): Handle the case that a file is specified in font
11015 name. Use ftfont_pattern_entity to generate entities.
11016 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11017 (syms_of_ftfont): Initialize freetype_font_cache.
11018
11019 * xftfont.c (xftfont_open): Make the font name fontconfig's
11020 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11021 (xftfont_close): Free font->font.name if not NULL.
11022
11023 * xfont.c (xfont_list): If script is specified for a font, return
11024 null_vector.
11025 (xfont_list_family): Declare argument type.
11026
11027 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11028 name, set LFACE_FONT (lface) to nil.
11029
11030 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11031 return Qnil.
11032
110332008-02-01 Kenichi Handa <handa@m17n.org>
11034
11035 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11036 (standard_args): Add "-enable-font-backend".
11037
110382008-02-01 Kenichi Handa <handa@m17n.org>
11039
11040 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11041 (struct xftdraw_list, xftdraw_list): Delete them.
11042 (register_xftdraw, check_xftdraw): Delete them.
11043 (xftfont_prepare_face): Don't call register_xftdraw.
11044 (xftfont_done_face): Don't call check_xftdraw.
11045 (xftfont_draw): Get background color only when with_background is
11046 nonzero.
11047
11048 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11049
110502008-02-01 Kenichi Handa <handa@m17n.org>
11051
11052 These changes are for the new font handling codes.
11053
11054 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11055 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11056 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11057 (FONTSRC, FONTOBJ): New variables.
11058 (obj): Add $(FONTOBJ).
11059 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11060 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11061 @LIBOTF_LIBS@.
11062 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11063 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11064
11065 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11066
11067 * character.h (Vscript_representative_chars): Extern it.
11068
11069 * character.c (Vscript_representative_chars): New variable.
11070 (syms_of_character): Declare it as a Lisp variable.
11071
11072 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11073 enable_font_backend is nonzero, accept the composition method
11074 COMPOSITION_WITH_GLYPH_STRING.
11075
11076 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11077 enumeration COMPOSITION_WITH_GLYPH_STRING.
11078
11079 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11080 members clip_x, clip_y, clip_width, and clip_height.
11081 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11082
11083 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11084 --enable-font-backend. Call syms_of_font.
11085
11086 * fns.c (assoc_no_quit): New function.
11087
11088 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11089 (face_for_font, new_fontset_from_font)
11090 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11091
11092 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11093 (fontset_font, fontset_ascii, face_for_char)
11094 (make_fontset_for_ascii_face, Ffont_info)
11095 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11096 is nonzero, use font-backend mechanism.
11097 (find_font_encoding): Make it non-static.
11098 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11099 New functions.
11100
11101 * frame.h (struct frame): New members resx and resy.
11102 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11103 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11104
11105 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11106 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11107
11108 * lisp.h (assoc_no_quit): Extern it.
11109
11110 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11111 Through out the file, use FONT_INFO_FROM_FACE instead of
11112 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11113 rif->per_char_metric.
11114 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11115 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11116 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11117 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11118 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11119 nonzero, use font-backend mechanism.
11120 (get_per_char_metric): New function.
11121
11122 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11123 (set_lface_from_font_name)
11124 (set_font_frame_param, free_realized_face)
11125 (prepare_face_for_display, clear_face_gcs)
11126 (Finternal_set_font_selection_order, realize_x_face)
11127 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11128 font-backend mechanism.
11129 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11130 (load_face_font) [USE_FONT_BACKEND]: Abort.
11131 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11132 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11133
11134 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11135 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11136 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11137 nonzero, register all available font drivers. Call
11138 x_default_font_parameter for deciding a font.
11139 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11140
11141 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11142 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11143 (x_set_glyph_string_clipping_exactly)
11144 (x_compute_glyph_string_overhangs)
11145 (x_draw_glyph_string_foreground)
11146 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11147 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11148 enable_font_backend is nonzero, use font-backend mechanism.
11149 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11150
111512008-02-01 Kenichi Handa <handa@m17n.org>
11152
11153 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11154 system_eol_type.
11155 (syms_of_coding): Initialize system_eol_type.
11156
11157 * process.c (Fset_process_coding_system): Inherit system's eol
11158 format if necessary.
11159
111602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11161
11162 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11163
111642008-02-01 Kenichi Handa <handa@m17n.org>
11165
11166 * coding.c (decode_eol): Pay attention to buffer relocation in
11167 del_range_2.
11168 (decode_coding): Call decode_eol before restoring undo_list.
11169
111702008-02-01 Kenichi Handa <handa@m17n.org>
11171
11172 * charset.c (Fdefine_charset_internal): Fix setting of
11173 emacs_mule_bytes.
11174
111752008-02-01 Kenichi Handa <handa@m17n.org>
11176
11177 * keyboard.c (read_char): Check if C is a character or not before
11178 looking up Vkeyboard_translate_table.
11179
111802008-02-01 Kenichi Handa <handa@m17n.org>
11181
11182 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11183 condition to terminate the loop.
11184
111852008-02-01 Kenichi Handa <handa@m17n.org>
11186
11187 * coding.c (produce_composition): Compare charbuf[i] instead of
11188 args[i] against 0.
11189 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11190
111912008-02-01 Kenichi Handa <handa@m17n.org>
11192
11193 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11194 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11195 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11196 detect_coding.
11197 (emacs_mule_char): Handle old style (Emacs 20) component character
11198 of a composition.
11199 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11200 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11201 composition rule.
11202 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11203
112042008-02-01 Kenichi Handa <handa@m17n.org>
11205
11206 * coding.c (encode_coding_ccl): Allocate destination dynamically
11207 when necessary.
11208
112092008-02-01 Kenichi Handa <handa@m17n.org>
11210
11211 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11212 the loop. When quitted, show a proper error message.
11213
112142008-02-01 Kenichi Handa <handa@m17n.org>
11215
11216 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11217 src->clip_head and src->clip_tail temporarily instead of src->hl.
11218
11219 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11220 character sequence.
11221 (Fccl_execute_on_string): Use ASET, not XSET.
11222
112232008-02-01 Kenichi Handa <handa@m17n.org>
11224
11225 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11226
112272008-02-01 Kenichi Handa <handa@m17n.org>
11228
11229 * coding.c (decode_coding): Fix the condition of terminating the
11230 decoding loop.
11231
112322008-02-01 Kenichi Handa <handa@m17n.org>
11233
11234 * data.c (Faset): On setting a character bigger than 255 in a
11235 unibyte string, signal an error instead of make the string multibyte.
11236
112372008-02-01 Kenichi Handa <handa@m17n.org>
11238
11239 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11240 made by a mapping table.
11241
112422008-02-01 Kenichi Handa <handa@m17n.org>
11243
11244 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11245 not.
11246 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11247 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11248
11249 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11250 s->face is NULL or not.
11251
112522008-02-01 Kenichi Handa <handa@m17n.org>
11253
11254 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11255 (x_draw_glyph_string): Fix drawing of right_overhang and
11256 left_overhang around/on cursor.
11257
11258 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11259
112602008-02-01 Kenichi Handa <handa@m17n.org>
11261
11262 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11263
112642008-02-01 Kenichi Handa <handa@m17n.org>
11265
11266 * coding.c (Fdefine_coding_system_internal)
11267 (Fdefine_coding_system_alias): Avoid a duplicated element in
11268 Vcoding_system_alist.
11269
112702008-02-01 Kenichi Handa <handa@m17n.org>
11271
11272 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11273
11274 * coding.c (Qcoding_system_define_form): New variable.
11275 (syms_of_coding): Intern and staticpro it.
11276 (Fcoding_system_p): Check Qcoding_system_define_form.
11277 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11278
11279 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11280 Fcoding_system_p.
11281 (CHECK_CODING_SYSTEM): If ID is not available, call
11282 Fcheck_coding_system.
11283 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11284 Try also Fcheck_coding_system.
11285
112862008-02-01 Kenichi Handa <handa@m17n.org>
11287
11288 * coding.c (code_conversion_restore): GCPRO arg.
11289
112902008-02-01 Kenichi Handa <handa@m17n.org>
11291
11292 * character.c (lisp_string_width): Check multibyteness of STRING.
11293
112942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11295
11296 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11297 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11298 (decode_mac_font_name): Use decode_coding_c_string instead of
11299 decode_coding.
11300 (x_load_font): Initialize fontp->fontset to -1. Set
11301 fontp->encoding_type.
11302
113032008-02-01 Kenichi Handa <handa@m17n.org>
11304
11305 * search.c (search_buffer): Give up BM search on case-fold-search
11306 if one of a target character has a case-equivalence of different
11307 byte length even if that target charcter is an ASCII.
11308 (simple_search): Fix calculation of byte length of matched text.
11309 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11310
113112008-02-01 Kenichi Handa <handa@m17n.org>
11312
11313 * coding.c (decode_coding): Fix handling of invalid bytes.
11314
113152008-02-01 Kenichi Handa <handa@m17n.org>
11316
11317 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11318 Unicode characters.
11319
113202008-02-01 Kenichi Handa <handa@m17n.org>
11321
11322 * coding.c (encode_coding_object): If a pre-write-conversion
11323 function makes a new buffer, kill it.
11324
113252008-02-01 Kenichi Handa <handa@m17n.org>
11326
11327 * coding.c (QCascii_compatible_p): New variable.
11328 (syms_of_coding): Initialize it.
11329 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11330 calling string_char.
11331 (record_conversion_result): Add `default:' case.
11332 (coding_charset_list): Delete unused variable `coding_type'.
11333 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11334 property in the plist of the coding system.
11335 (Fcoding_system_put): Check QCascii_compatible_p.
11336
113372008-02-01 Miles Bader <miles@gnu.org>
11338
11339 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11340 removed calculation of frame `f', as it's now used.
11341
113422008-02-01 Kenichi Handa <handa@m17n.org>
11343
11344 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11345 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11346 (UNIDATA): New variable.
11347 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11348 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11349 $(RUN_TEMACS) unconditionally.
11350
113512008-02-01 Kenichi Handa <handa@m17n.org>
11352
11353 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11354 (admindir): New variable.
11355 ($(lispsource)international/charprop.el): New target.
11356
113572008-02-01 Miles Bader <miles@gnu.org>
11358
11359 * character.c (chars-in-region): Remove obsolete function.
11360 (syms_of_character): Remove its initialization.
11361
113622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11363
11364 * w32select.c (validate_coding_system)
11365 (setup_windows_coding_system): New functions.
11366 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11367 setup_windows_coding_system.
11368 (setup_config, Fw32_get_clipboard_data): Use
11369 validate_coding_system.
11370 (Fx_selection_exists): Move call to setup_config to a place
11371 where signals are allowed.
11372
11373 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11374 (Fcheck_coding_system): Add declarations.
11375
113762008-02-01 Kenichi Handa <handa@m17n.org>
11377
11378 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11379
113802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11381
11382 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11383 string as the second argument for x_new_fontset.
11384
113852008-02-01 Kenichi Handa <handa@m17n.org>
11386
11387 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11388 (encode_coding_object): Use safe_call instead of call2.
11389
113902008-02-01 Kenichi Handa <handa@m17n.org>
11391
11392 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11393
11394 * Makefile.in (lisp): Include charprop.el.
11395
113962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11397
11398 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11399 Not sure if it's unnecessary.
11400
114012008-02-01 Steven Tamm <steventamm@mac.com>
11402
11403 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11404 some possibly unnecessary fontset checking code that crashed
11405 when creating a new frame.
11406
114072008-02-01 Kenichi Handa <handa@m17n.org>
11408
11409 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11410 lookup_face.
11411
11412 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11413
11414 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11415
114162008-02-01 Kenichi Handa <handa@m17n.org>
11417
11418 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11419 (coding_charset_list): New function.
11420
11421 * coding.h (coding_charset_list): Extern it.
11422
114232008-02-01 Kenichi Handa <handa@m17n.org>
11424
11425 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11426 concatenation of family and registry.
11427
114282008-02-01 Kenichi Handa <handa@m17n.org>
11429
11430 * character.h (BYTE8_STRING): Fix typo.
11431
11432 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11433 string to multibyte (sync to HEAD).
11434
11435 * casefiddle.c (casify_region): Handle changes in byte-length
11436 using replace_range_2 (sync to HEAD).
11437
114382008-02-01 Andreas Schwab <schwab@suse.de>
11439
11440 * chartab.c (map_char_table): GCPRO table and arg.
11441
114422008-02-01 Kenichi Handa <handa@m17n.org>
11443
11444 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11445 already at limit.
11446
114472008-02-01 Kenichi Handa <handa@m17n.org>
11448
11449 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11450 instead of fast_c_string_match_ignore_case.
11451 (find_font_encoding): Change argument to Lisp_Object. Use
11452 fast_string_match_ignore_case instead of
11453 fast_c_string_match_ignore_case. Change caller.
11454
114552008-02-01 Kenichi Handa <handa@m17n.org>
11456
11457 * xdisp.c (get_next_display_element): In unibyte case, decide to
11458 display in octal form by checking a character by
11459 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11460
11461 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11462
11463 * character.c (unibyte_has_multibyte_table): New variable.
11464
11465 * character.h (unibyte_has_multibyte_table): Extern it.
11466 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11467
114682008-02-01 Kenichi Handa <handa@m17n.org>
11469
11470 * coding.c (encode_coding_iso_2022): Fix handling of charset
11471 annotation.
11472
114732008-02-01 Kenichi Handa <handa@m17n.org>
11474
11475 * coding.c (setup_coding_system): If coding_system is nil, use
11476 Qundecided.
11477 (Fterminal_coding_system): Return nil if terminal coding system is
11478 `undecided'.
11479 (syms_of_coding): Define coding-system `undecided' here. Setup
11480 terminal_coding as `undecided'.
11481
114822008-02-01 Kenichi Handa <handa@m17n.org>
11483
11484 * xdisp.c (message_dolog, set_message_1): Call
11485 unibyte_char_to_multibyte with arg type int.
11486
11487 * lread.c (read1): Fix reading of a char-table.
11488
11489 * print.c (print_object): Include sub char-table in circularities
11490 detection.
11491
114922008-02-01 Kenichi Handa <handa@m17n.org>
11493
11494 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11495 Append the found sequences in car of ARGS instead of prepending.
11496
114972008-02-01 Kenichi Handa <handa@m17n.org>
11498
11499 * fileio.c (report_file_error): Make a unibyte string from
11500 strerror (errorno).
11501 (Fsubstitute_in_file_name): Fix the arg to
11502 unibyte_char_to_multibyte. It is evaluated twice.
11503
115042008-02-01 Kenichi Handa <handa@m17n.org>
11505
11506 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11507
115082008-02-01 Kenichi Handa <handa@m17n.org>
11509
11510 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11511 BOM is not found.
11512 (detect_coding, detect_coding_system): Optimization for ISO-2022
11513 when no 8-bit data is found.
11514
115152008-02-01 Jason Rumney <jasonr@gnu.org>
11516
11517 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11518
115192008-02-01 Kenichi Handa <handa@m17n.org>
11520
11521 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11522 CHARS.
11523
115242008-02-01 Steven Tamm <steventamm@mac.com>
11525
11526 * macterm.c (mac_encode_char): Add charset argument and update
11527 to use encoding_type.
11528 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11529 switch to pure fontset.
11530 (decode_mac_font_name): Temporarily remove decoding.
11531 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11532 (x_load_font): Temporarily remove encoding.
11533
115342008-02-01 Kenichi Handa <handa@m17n.org>
11535
11536 * xfaces.c (Fface_font): If frame is not on a window system,
11537 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11538 refer to face->font.
11539 (split_font_name_into_vector, build_font_name_from_vector)
11540 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11541 when HAVE_WINDOW_SYSTEM is defined.
11542
115432008-02-01 Kenichi Handa <handa@m17n.org>
11544
11545 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11546 (x_produce_glyphs): Fix setting of members of cmp in case
11547 cmp->glyph_len is zero.
11548
11549 * fontset.c (Fset_fontset_font): Fix docstring.
11550 (Ffontset_info): Make it backward compatible. New arg ALL.
11551
115522008-02-01 Kim F. Storm <storm@cua.dk>
11553
11554 * process.c (read_process_output): Grow decoding_buf when needed;
11555 this could cause a crash in allocate_string and compact_small_strings.
11556
115572008-02-01 Kenichi Handa <handa@m17n.org>
11558
11559 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11560
115612008-02-01 Kenichi Handa <handa@m17n.org>
11562
11563 * coding.c (setup_coding_system): Set coding->common_flags
11564 correctly for raw-text.
11565 (consume_chars): On encoding unibyte text by raw-text, don't check
11566 multibyte form.
11567 (encode_coding): On encoding by raw-text, never use translation tables.
11568
11569 * fileio.c (e_write): Short cut for the case of no encoding.
11570
115712008-02-01 Kenichi Handa <handa@m17n.org>
11572
11573 * coding.c (detect_coding, detect_coding_system): Delete unused
11574 variables.
11575
115762008-02-01 Kenichi Handa <handa@m17n.org>
11577
11578 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11579 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11580
115812008-02-01 Kenichi Handa <handa@m17n.org>
11582
11583 * coding.c (Ffind_coding_systems_region_internal): Include
11584 raw-text and no-conversion in the result.
11585
115862008-02-01 Kenichi Handa <handa@m17n.org>
11587
11588 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11589 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11590 FONT_DEF.
11591 (font_def_arg, add_arg, from_arg, to_arg): New args.
11592 (set_fontset_font): Change argument.
11593 (Fset_fontset_font): Fix for the case that TARGET is a script
11594 name and charset name.
11595 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11596
115972008-02-01 Kenichi Handa <handa@m17n.org>
11598
11599 * fontset.c (fontset_font): Rename from fontset_face. Change return
11600 value.
11601 (face_suitable_for_char_p, face_for_char): Adjust for the change
11602 of fontset_font.
11603 (make_fontset_for_ascii_face): Fix setting of the fontset element
11604 for ASCII.
11605 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11606 to get a font name.
11607 (Ffontset_info): Adjust for the change of fontset_font.
11608
11609 * coding.c (emacs_mule_char): Check invalid code more rigidly.
11610
11611 * character.h (LEADING_CODE_LATIN_1_MIN)
11612 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
11613
116142008-02-01 Kenichi Handa <handa@m17n.org>
11615
11616 * editfns.c (check_translation): New function.
11617 (Ftranslate_region_internal): Handle M:N mapping.
11618
116192008-02-01 Kenichi Handa <handa@m17n.org>
11620
11621 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
11622
116232008-02-01 Kenichi Handa <handa@m17n.org>
11624
11625 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
11626 goto invalid_code.
11627 (decode_coding_iso_2022): Fix handling of invalid designation.
11628
11629 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
11630 after calling code_conversion_save.
11631
116322008-02-01 Kenichi Handa <handa@m17n.org>
11633
11634 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
11635
11636 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
11637
11638 * fontset.c: Include "intervals.h".
11639 (fontset_face): Fix comparing of Lisp_Objects.
11640 (free_face_fontset, new_fontset_from_font_name): Fix
11641 Lisp_Object/int mixup.
11642
11643 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
11644
11645 * coding.c: Add many prototypes for static functions.
11646 (get_translation_table): Allow max_lookup to be NULL.
11647 (decode_coding, Ffind_coding_systems_region_internal)
11648 (Funencodable_char_position, Fcheck_coding_systems_region): Call
11649 get_translation_table with max_lookup NULL.
11650
116512008-02-01 Kenichi Handa <handa@m17n.org>
11652
11653 * coding.c (get_translation_table): Declare it as Lisp_Object.
11654 (LOOKUP_TRANSLATION_TABLE): New macro.
11655 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
11656 instead of CHAR_TABLE_REF.
11657
116582008-02-01 Kenichi Handa <handa@m17n.org>
11659
11660 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
11661 annotation data format.
11662 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
11663 Change arguments FROM and TO to single argument NCHARS. Change caller.
11664 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
11665 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11666 (decode_coding_ccl, decode_coding_charset): Pay attention to
11667 coding->charbuf_used.
11668 (get_translation): New function.
11669 (produce_chars): New arguments translation_table and last_block.
11670 Translate characters here. Return number of carryover chars.
11671 Change caller.
11672 (produce_composition): New argument pos. Change caller.
11673 Adjust for the change of annotation data format.
11674 (produce_charset, produce_annotation): Likewise.
11675 (decode_coding, encode_coding): Don't call translate_chars.
11676 (consume_chars): New arg translation_table. Change caller.
11677 (translate_chars): Delete.
11678 (syms_of_coding): Make translation-table's number of extra slots 2.
11679
116802008-02-01 Kenichi Handa <handa@m17n.org>
11681
11682 * search.c (simple_search): Fix setting this_pos_byte in backward
11683 search.
11684
11685 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
11686 byte sequence.
11687 (detect_coding_ccl): Fix setting of the variable valids.
11688
116892008-02-01 Kenichi Handa <handa@m17n.org>
11690
11691 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
11692
11693 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
11694
11695 * editfns.c (Ftranslate_region_internal): Rename from
11696 Ftranslate_region. Accept a char-table in TABLE.
11697 (syms_of_editfns): Defsubr Stranslate_region_internal.
11698
11699 * xfaces.c (set_lface_from_font_name): If a font is specified for
11700 a frame, generate a fontset from the font.
11701 (build_scalable_font_name): If the scalable font is requested for
11702 a specific size, don't change that size.
11703 (try_font_list): Try a scalable font also in the case that a
11704 pattern string is specified.
11705
117062008-02-01 Kenichi Handa <handa@m17n.org>
11707
11708 * xfaces.c (Fface_font): New optional arg CHARACTER.
11709
117102008-02-01 Kenichi Handa <handa@m17n.org>
11711
11712 * charset.h (CHARSET_OFFSET): New macro.
11713
117142008-02-01 Kenichi Handa <handa@m17n.org>
11715
11716 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
11717
11718 * fontset.c (fontset_face): Handle the case that repertory is a
11719 char-table.
11720 (find_font_encoding): Return nil for unknown encoding.
11721 (Fset_fontset_font): Ignore a font of unknown encoding.
11722
117232008-02-01 Kenichi Handa <handa@m17n.org>
11724
11725 * keymap.c (describe_vector): Handle default value of a char table.
11726
11727 * fontset.c (fontset_face): Handle fallback fonts correctly.
11728 (Ffontset_info): Return infomation about fallback fonts.
11729
117302008-02-01 Kenichi Handa <handa@m17n.org>
11731
11732 * fontset.c (FONTSET_DEFAULT): New macro.
11733 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
11734 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
11735 the case that it is nil.
11736 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
11737 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
11738
11739 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
11740 subset or superset.
11741
117422008-02-01 Kenichi Handa <handa@m17n.org>
11743
11744 * emacs.c (main): Call init_charset after syms_of_XXX.
11745
11746 * charset.c (Vcharset_map_directory): Delete.
11747 (Vcharset_map_path): New variable.
11748 (load_charset_map_from_file): Use Vcharset_map_path instead.
11749 (init_charset): Initialize Vcharset_map_path.
11750 (syms_of_charset): Delete declaration of "charset-map-directory",
11751 add declaration of "charset-map-path".
11752
117532008-02-01 Kenichi Handa <handa@m17n.org>
11754
11755 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
11756 ASCII only string.
11757
11758 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
11759
11760 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
11761 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
11762
117632008-02-01 Kenichi Handa <handa@m17n.org>
11764
11765 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
11766
11767 * coding.c (QCmnemonic, QCdefalut_char)
11768 (QCdecode_translation_table, QCencode_translation_table)
11769 (QCpost_read_conversion, QCpre_write_conversion): New variables.
11770 (get_translation_table): Return a list of translation tables if
11771 necessary.
11772 (decode_coding): Call get_translation_table with ENCODEP 0.
11773 (char_encodable_p): If translation_table is non-nil, always call
11774 translate_char.
11775 (Fdefine_coding_system_internal): Accept list of translation
11776 tables as :encode-translation-table and :decode-translation-table.
11777 (Fcoding_system_put): New function.
11778 (syms_of_coding): Declare new symbols. Defsubr
11779 Scoding_system_put.
11780 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
11781 typically JISX0212.
11782
11783 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
11784 when the charset is superset type.
11785
11786 * character.c (translate_char): Accept list of translation tables.
11787
117882008-02-01 Kenichi Handa <handa@m17n.org>
11789
11790 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
11791 (CODING_ATTR_TRANS_TBL): New macro.
11792
11793 * coding.c (get_translation_table): New function.
11794 (translate_chars): Fix the bug of skipping annotation data.
11795 (decode_coding, encode_coding): Utilize get_translation_table.
11796 (char_encodable_p, Funencodable_char_position): Translate char if
11797 necessary.
11798 (Ffind_coding_systems_region_internal)
11799 (Fcheck_coding_systems_region): Setup translation table for encode
11800 in a coding system attribute vector in advance.
11801 (Fdefine_coding_system_internal): Allow a symbol as translation
11802 table. For shift-jis type coding system, allow 4th charset.
11803
118042008-02-01 Kenichi Handa <handa@m17n.org>
11805
11806 * coding.c (decode_coding_sjis): Check the first byte rigidly.
11807
11808 * xdisp.c (get_next_display_element): Pass -1 as POS to
11809 FACE_FOR_CHAR if displaying a C-string.
11810
118112008-02-01 Kenichi Handa <handa@m17n.org>
11812
11813 * composite.c (get_composition_id): Handle xoff and yoff in a
11814 composition rule.
11815
11816 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
11817 (struct composition): New member lbearing and rbearing.
11818
11819 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
11820 (x_get_glyph_overhangs): Handle a composition glyph.
11821 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
11822
11823 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
11824 composition glyph.
11825
118262008-02-01 Kenichi Handa <handa@m17n.org>
11827
11828 * print.c: Include charset.h.
11829 (Vprint_charset_text_property): New variable.
11830 (Qdefault): Extern it.
11831 (PRINT_STRING_NON_CHARSET_FOUND)
11832 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
11833 (print_check_string_result): New variable.
11834 (print_check_string_charset_prop): New function.
11835 (print_prune_charset_plist): New variable.
11836 (print_prune_string_charset): New function.
11837 (print_object): Call print_prune_string_charset if
11838 Vprint_charset_text_property is not t.
11839 (print_interval): Print nothing if interval->plist is nil.
11840 (syms_of_print): Declare Vprint_charset_text_property as a lisp
11841 variable. Init and staticpro print_prune_charset_plist.
11842
118432008-02-01 Kenichi Handa <handa@m17n.org>
11844
11845 * fontset.c (new_fontset_from_font_name): Use the specified font
11846 for all characters in the new fontset.
11847
11848 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11849 OBJECT args.
11850
11851 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
11852 OBJECT args for composition too.
11853
11854 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11855 OBJECT args.
11856
118572008-02-01 Kenichi Handa <handa@m17n.org>
11858
11859 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
11860
11861 * fontset.c (reorder_font_vector): Adjust for the change of
11862 FONT_DEF format.
11863 (fontset_face): New arg id. Change caller.
11864 (face_for_char): New args pos and object.
11865 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
11866 (fs_query_fontset): Check NAME by Fassoc too.
11867 (Fset_fontset_font): Allow non-XLFD font name.
11868 (Ffontset_info): Adjust for the change of FONT_DEF format.
11869
11870 * fontset.h (face_for_char): Adjust prototype.
11871
11872 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
11873 (append_space, extend_face_to_end_of_line)
11874 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11875 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
11876
11877 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
11878 POS and OBJECT args.
11879
11880 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
11881 POS and OBJECT args.
11882
118832008-02-01 Jason Rumney <jasonr@gnu.org>
11884
11885 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
11886 of GlobalAlloc'ed memory.
11887
118882008-02-01 Kenichi Handa <handa@m17n.org>
11889
11890 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
11891
11892 * charset.h (charset_table_used): Delete extern.
11893
11894 * charset.c (charset_table_used): Make it static.
11895 (map_charset_chars): Fix args to c_function with.
11896
11897 * chartab.c (map_sub_char_table_for_charset): Fix args to
11898 c_function with.
11899
11900 * coding.h (enum coding_result_code): Delete
11901 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
11902
11903 * coding.c (Qinsufficient_source, Qinconsistent_eol)
11904 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
11905 (Vlast_code_conversion_error): New variables.
11906 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
11907 (ONE_MORE_BYTE): Record error if any instead of signaling an
11908 error. If non-ASCII multibyte char is found, return the negative
11909 value of the code. All callers changed to check it.
11910 (ONE_MORE_BYTE_NO_CHECK): Likewise.
11911 (record_conversion_result): New function. Change all codes setting
11912 coding->result to call this function.
11913 (detect_coding_utf_8, decode_coding_utf_8)
11914 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
11915 Don't use the local variable incomplete.
11916 (emacs_mule_char): Change the second arg to `const'.
11917 (decode_coding): Fix of flushing out unprocessed data.
11918 (make_conversion_work_buffer): Fix making of a work buffer.
11919 (decode_coding_object): Return coding->dst_object.
11920
11921 * fontset.c (set_fontset_font): Fix args.
11922
11923 * lisp.h (CHARACTERBITS): Define as 22.
11924
11925 * process.c (send_process): Be sure to set coding->src_multibyte.
11926
11927 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
11928
119292008-02-01 Kenichi Handa <handa@m17n.org>
11930
11931 * xdisp.c (handle_auto_composed_prop): Give limit to
11932 Fnext_single_char_property_change.
11933
119342008-02-01 Kenichi Handa <handa@m17n.org>
11935
11936 * composite.c (syms_of_composite): Don't make the composition hash
11937 table weak.
11938
11939 * fontset.c (Fset_fontset_font): Fix docstring.
11940
11941 * lisp.h (detect_coding_system): Adjust prototype.
11942
11943 * fileio.c (kill_workbuf_unwind): Delete this function.
11944 (Finsert_file_contents): Adjust the call of detect_coding_system.
11945 Get conversion_buffer by code_conversion_save. Use the macro
11946 CODING_MAY_REQUIRE_DECODING. After decoding, update
11947 coding_system.
11948
11949 * coding.h (make_conversion_work_buffer): Delete extern.
11950 (code_conversion_save): Extern it.
11951
11952 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
11953 (CODING_GET_INFO): Delete argument eol_type. Change callers.
11954 (decode_coding_utf_8): Don't do eol converion.
11955 (detect_coding_utf_16): Check coding->src_chars, not
11956 coding->src_bytes. Add heuristics for those that have no signature.
11957 (decode_coding_emacs_mule, decode_coding_iso_2022)
11958 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11959 Don't do eol converion.
11960 (adjust_coding_eol_type): Return a new coding system.
11961 (detect_coding): Don't detect eol. Fix for utf-16 detection.
11962 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
11963 each change.
11964 (decode_coding): Pay attention to undo_list. Do eol conversion for
11965 all types of coding-systems (if necessary).
11966 (Vcode_conversion_work_buf_list): Delete it.
11967 (Vcode_conversion_reused_workbuf): Rename from
11968 Vcode_conversion_reused_work_buf.
11969 (Vcode_conversion_workbuf_name): New variable.
11970 (reused_workbuf_in_use): New variable.
11971 (make_conversion_work_buffer): Delete the arg DEPTH.
11972 (code_conversion_restore): Change argument to cons.
11973 (code_conversion_save): Delete the argument BUFFER. Change callers.
11974 (detect_coding_system): New argument src_chars. Change callers.
11975 Fix for utf-16 detection.
11976 (init_coding_once): Don't use ISO_carriage_return.
11977 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
11978 reused_workbuf_in_use.
11979
119802008-02-01 Kenichi Handa <handa@m17n.org>
11981
11982 * keymap.c (store_in_keymap): Pay attention to the case that idx
11983 is a cons specifying a character range.
11984
119852008-02-01 Kenichi Handa <handa@m17n.org>
11986
11987 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
11988 HANDLED_RECOMPUTE_PROPS.
11989
11990 * coding.c (Fdefine_coding_system_internal): Fix checking of
11991 ascii compatibility.
11992
119932008-02-01 Kenichi Handa <handa@m17n.org>
11994
11995 * charset.c (find_charsets_in_text): Delete unused locale variable.
11996 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
11997
11998 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
11999 Resync charset_list to Vemacs_mule_charset_list.
12000
12001 * keymap.c (store_in_keymap): Pay attention to the case that idx
12002 is a cons specifying a character range.
12003
120042008-02-01 Kenichi Handa <handa@m17n.org>
12005
12006 * composite.c (update_compositions): Bind inhibit-read-only, etc
12007 to t before calling remove-list-of-text-properties.
12008
12009 * print.c (print_object): Always print ASCII chars as is.
12010
120112008-02-01 Kenichi Handa <handa@m17n.org>
12012
12013 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12014
12015 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12016 is a char table.
12017
120182008-02-01 Kenichi Handa <handa@m17n.org>
12019
12020 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12021
120222008-02-01 Kenichi Handa <handa@m17n.org>
12023
12024 * xfaces.c (set_lface_from_font_name): Fix for the case that
12025 FONTNAME is not fontset name.
12026
120272008-02-01 Kenichi Handa <handa@m17n.org>
12028
12029 * fns.c (base64_encode_1): Fix previous change.
12030
120312008-02-01 Kenichi Handa <handa@m17n.org>
12032
12033 * fontset.c (set_fontset_font): New function.
12034 (Fset_fontset_font): If a font is specified for a charset, use
12035 map_charset_chars to store the font spec in a fontset.
12036
120372008-02-01 Kenichi Handa <handa@m17n.org>
12038
12039 * fontset.c (fontset_face): Create a fallback fontset on demand.
12040 (make_fontset): Don't create a fallback fontset here.
12041 (free_face_fontset): Free a fallback fontset (if any) too.
12042 (n_auto_fontsets): Delete this variable.
12043 (auto_fontset_alist): New variable.
12044 (new_fontset_from_font_name): Check auto_fontset_alist.
12045 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12046 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12047 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12048 Defsubr Sfontset_list_all.
12049
120502008-02-01 Kenichi Handa <handa@m17n.org>
12051
12052 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12053
120542008-02-01 Kenichi Handa <handa@m17n.org>
12055
12056 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12057
120582008-02-01 Kenichi Handa <handa@m17n.org>
12059
12060 * editfns.c (Fgoto_char): Fix docstring.
12061
120622008-02-01 Kenichi Handa <handa@m17n.org>
12063
12064 * insdel.c (insert_from_gap): Adjust intervals correctly.
12065
120662008-02-01 Jason Rumney <jasonr@gnu.org>
12067
12068 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12069 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12070 (w32_initialize): Try to load it.
12071 (x_get_font_repertory): Use it if available.
12072 (w32_encode_char): Add shortcut for unicode output.
12073
12074 * w32fns.c (w32_load_system_font): Default charset to -1.
12075 (x_to_w32_charset): Match all fonts for unicode.
12076 (w32_to_x_charset): New parameter matching. Don't return partial
12077 or wildcard charsets.
12078 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12079 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12080 (w32_to_x_font): Match charset to real charset.
12081 (enum_font_cb2): Always list unicode versions.
12082
12083 * makefile.w32-in (temacs): Increase EMHEAP.
12084
120852008-02-01 Jason Rumney <jasonr@gnu.org>
12086
12087 * w32term.c (w32_encode_char): New charset parameter.
12088 font_info.encoding becomes encoding_type.
12089 (x_get_font_repertory): New function. Warning: stub only!
12090 (x_new_font): Return quickly if font already set.
12091 (x_new_fontset): fontsetname parameter is Lisp_Object.
12092 Use new fs_query_fontset. Try new_fontset_from_font_name.
12093 Use fontset_name for return value.
12094
12095 * w32term.h: Declare x_get_font_repertory.
12096
12097 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12098 place of find_charset_in_text. Use encode_coding_object in place
12099 of encode_coding.
12100 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12101 decode_coding.
12102
12103 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12104 of x_new_fontset.
12105 (w32_load_system_font): Initialize charset as unicode.
12106 font_info.encoding becomes encoding_type.
12107 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12108 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12109 (syms_of_w32fns): Set get_font_repertory_func.
12110
12111 * w32console.c: Include character.h. Use terminal_encode_buffer
12112 from term.c.
12113 (write_glyphs): Use new version of encode_terminal_code. Use
12114 encode_coding_object in place of encode_coding.
12115
12116 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12117 encoding becomes encoding_type.
12118
12119 * term.c (terminal_encode_buffer): Make externally visible.
12120
12121 * makefile.w32-in: Add character.h dependancies.
12122 (character.o, chartab.o): New targets.
12123
121242008-02-01 Kenichi Handa <handa@m17n.org>
12125
12126 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12127 CODING_ID_EOL_TYPE.
12128
121292008-02-01 Andreas Schwab <schwab@suse.de>
12130
12131 * coding.c (produce_chars): Revert last change.
12132
121332008-02-01 Kenichi Handa <handa@m17n.org>
12134
12135 * charset.h (charset_unicode): Extern it.
12136
12137 * charset.c (string_xstring_p): Check by (C >= 0x100).
12138 (find_charsets_in_text): Change format of the arc CHARSETS. New
12139 arg MULTIBYTE.
12140 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12141 change of find_charsets_in_text.
12142 (Fsplit_char): Fix doc. Never return unknown.
12143
12144 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12145
12146 * coding.c (Fdefine_coding_system_alias): Update
12147 Vcoding_system_list.
12148
12149 * fontset.c (load_font_get_repertory): Pay attention to the case
12150 that ENCODING of a font is specified by a char-table.
12151
12152 * xterm.c (x_get_font_repertory): Handle the case that the
12153 encoding of font is other than Unicode.
12154
121552008-02-01 Kenichi Handa <handa@m17n.org>
12156
12157 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12158 if a character is encodable by the terminal coding system. If
12159 not, produces proper number of `?'s. Update
12160 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12161 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12162
121632008-02-01 Kenichi Handa <handa@m17n.org>
12164
12165 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12166 variables.
12167 (encode_terminal_code): Change argument. Encode multiple
12168 characters at once. Store the result of encoding in
12169 terminal_encode_buffer.
12170 (write_glyphs, insert_glyphs): Adjust for the change of
12171 encode_terminal_code.
12172 (term_init): Initialize terminal_encode_buffer and
12173 terminal_encode_buf_size.
12174
12175 * coding.c (consume_chars): If coding->src_object is nil, don't
12176 check annotation.
12177
121782008-02-01 Kenichi Handa <handa@m17n.org>
12179
12180 * character.c (char_string): Use ASCII_CHAR_P instead of
12181 SINGLE_BYTE_CHAR_P.
12182
121832008-02-01 Kenichi Handa <handa@m17n.org>
12184
12185 * xdisp.c (handle_auto_composed_prop): Check if the last
12186 characters of auto-composed region is newly composed with the
12187 following characters.
12188 (handle_composition_prop): Fix checking of point being inside
12189 composition.
12190
121912008-02-01 Kenichi Handa <handa@m17n.org>
12192
12193 * fns.c (concat): Don't change multibyteness of the result by
12194 concatenating an 8-bit character.
12195
12196 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12197 multibyteness of the result when newelt is an 8-bit character.
12198
121992008-02-01 Dave Love <fx@gnu.org>
12200
12201 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12202 EMACS_INT.
12203
12204 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12205
12206 * xfaces.c (face_numeric_value): Declare dim size_t.
12207 (Finternal_lisp_face_equal_p): Remove unused f.
12208
12209 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12210 (MATRIX_ROW): Remove unused vars.
12211 (draw_glyphs, x_insert_glyphs, fast_find_position)
12212 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12213 byte/char counts.
12214
12215 * regex.c (regex_compile): Remove unused var.
12216
12217 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12218
12219 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12220 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12221
12222 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12223
12224 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12225
12226 * fileio.c (Fwrite_region): Remove unused var.
12227
12228 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12229 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12230
12231 * composite.c (Fremove_list_of_text_properties): Declare.
12232
12233 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12234 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12235 (coding_inherit_eol_type): Remove unused attrs.
12236 (detect_coding): Cast arg of detect_eol.
12237
12238 * charset.c (syms_of_charset): Remove unused var p.
12239 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12240 byte/char counts.
12241
12242 * casetab.c (set_case_table): Remove unused var.
12243
12244 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12245 unused vars.
12246
122472008-02-01 Dave Love <fx@gnu.org>
12248
12249 * xterm.c (x_bitmap_mask): Declare.
12250
122512008-02-01 Dave Love <fx@gnu.org>
12252
12253 * xterm.c (x_term_init): Fix type error.
12254
12255 * lisp.h: Add Funibyte_char_to_multibyte.
12256
12257 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12258 (Fset_coding_system_priority): Doc fix.
12259
12260 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12261
12262 * indent.c (check_composition): Make start and end EMACS_INT.
12263
12264 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12265
12266 * xdisp.c (handle_composition_prop, check_point_in_composition):
12267 Make buffer positions EMACS_INT.
12268
12269 * composite.c (find_composition, run_composition_function)
12270 (update_compositions, Ffind_composition_internal): Make buffer
12271 positions EMACS_INT.
12272
12273 * composite.h (find_composition, update_compositions): Make
12274 position args EMACS_INT.
12275
12276 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12277
12278 * intervals.c (get_property_and_range):
12279 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12280
12281 * unexalpha.c: Don't include varargs.h.
12282
122832008-02-01 Dave Love <fx@gnu.org>
12284
12285 * coding.h (ENCODE_UTF_8): New.
12286
12287 * Makefile.in (gtkutil.o): Depend on coding.h.
12288
12289 * coding.c (Fset_coding_system_priority): Doc fix.
12290
122912008-02-01 Kenichi Handa <handa@m17n.org>
12292
12293 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12294 the case of auto saving.
12295
122962008-02-01 Andreas Schwab <schwab@suse.de>
12297
12298 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12299 `range' from GC.
12300
123012008-02-01 Kenichi Handa <handa@m17n.org>
12302
12303 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12304
123052008-02-01 Kenichi Handa <handa@m17n.org>
12306
12307 * fileio.c (choose_write_coding_system): Return a decided coding system.
12308 (Fwrite_region): Set Vlast_coding_system_used to the return value
12309 of choose_write_coding_system.
12310
123112008-02-01 Kenichi Handa <handa@m17n.org>
12312
12313 * charset.c (Fset_charset_priority): Pay attention to duplicated
12314 arguments.
12315
12316 * coding.c (QCcategory): New variable.
12317 (syms_of_coding): Defsym it. Set all elements of
12318 Vcoding_category_table and their symbol values.
12319 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12320 coding-category-XXX, and coding-category-list.
12321 (Fdefine_coding_system_internal): Add category in the plist.
12322
123232008-02-01 Kenichi Handa <handa@m17n.org>
12324
12325 * callproc.c (Fcall_process): Handle carryover correctly.
12326
12327 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12328 (raw_text_coding_system): Check NILP (coding_system).
12329 (coding_inherit_eol_type): Check NILP (coding_system) and
12330 NILP (parent).
12331 (consume_chars): Fix for the case of raw-text.
12332
12333 * process.c (read_process_output): Handle carryover correctly.
12334
123352008-02-01 Dave Love <fx@gnu.org>
12336
12337 * regex.c (re_search_2): Fix last change.
12338
123392008-02-01 Kenichi Handa <handa@m17n.org>
12340
12341 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12342 target_multibyte. Even in a unibyte case, return a converted
12343 multibyte char.
12344 (GET_CHAR_AFTER): New macro.
12345 (PATFETCH): Translate via multibyte char.
12346 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12347 (SETUP_MULTIBYTE_RANGE): New macro.
12348 (regex_compile): Setup compiled code so that its multibyteness
12349 matches that of a target. Fix the handling of "[X-YZ]" using
12350 SETUP_MULTIBYTE_RANGE.
12351 (analyse_first) <charset>: For filling fastmap for all multibyte
12352 characters, don't check by BASE_LEADING_CODE_P.
12353 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12354 the same as RE_MULTIBYTE_P (bufp) now.
12355 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12356 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12357 (TRANSLATE_VIA_MULTIBYTE): New macro.
12358 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12359 It is the same as RE_MULTIBYTE_P (bufp) now.
12360 <exactn>: Translate via multibyte.
12361 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12362 translate it.
12363 <charset, charset_not>: Fetch a character by
12364 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12365 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12366 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12367 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12368 by GET_CHAR_AFTER.
12369 (bcmp_translate): Likewise.
12370
12371 * search.c (compile_pattern): Check the member target_multibyte,
12372 not the member multibyte of buf.
12373
12374 * lread.c (read1): While reading a string, set force_singlebyte
12375 and force_multibyte correctly.
12376
12377 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12378 up of unibyte_to_multibyte_table.
12379
123802008-02-01 Kenichi Handa <handa@m17n.org>
12381
12382 * coding.c (setup_coding_system): If coding has
12383 post-read-conversion or pre-write-conversion, set
12384 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12385 respectively.
12386 (decode_coding_gap): Run post-read-conversion if any.
12387
12388 * fileio.c (Finsert_file_contents): Even if we read into a
12389 unibyte buffer, check if we must decode the result or not.
12390
123912008-02-01 Kenichi Handa <handa@m17n.org>
12392
12393 * coding.c (make_conversion_work_buffer): Change the work buffer
12394 name to the same one as that of Emacs 21.
12395
123962008-02-01 Kenichi Handa <handa@m17n.org>
12397
12398 * coding.h (make_conversion_work_buffer): Adjust prototype.
12399 (code_conversion_restore): Don't extern it.
12400
12401 * coding.c (detected_mask): Delete unused variable.
12402 (decode_coding_iso_2022): Pay attention to the byte sequence of
12403 CTEXT extended segment, and retain those bytes as is.
12404 (decode_coding_ccl): Delete unused variable `valids'.
12405 (setup_coding_system): Delete unused variable `category'.
12406 (consume_chars): Delete unused variable `category'. Make it work
12407 for non-multibyte case.
12408 (make_conversion_work_buffer): Change argument.
12409 (saved_coding): Delete unused variable.
12410 (code_conversion_restore): Don't check saved_coding->destination.
12411 (code_conversion_save): New function.
12412 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12413 instead of record_unwind_protect.
12414 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12415 (detect_coding_system): Delete unused variable `mask'.
12416 (Fdefine_coding_system_internal): Delete unused variable id.
12417
12418 * fileio.c (kill_workbuf_unwind): New function.
12419 (Finsert_file_contents): On replacing, call
12420 make_conversion_work_buffer with correct args, and call
12421 record_unwind_protect with the first arg kill_workbuf_unwind.
12422
12423 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12424
124252008-02-01 Kenichi Handa <handa@m17n.org>
12426
12427 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12428 (fontset_add): Fix for the case that TO is less than TO1.
12429 (Ffontset_info): Don't use fallback fontset on checking the
12430 default fontset.
12431 (dump_fontset): New function for debugging.
12432
12433 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12434 coding_type is Qcharset.
12435
124362008-02-01 Kenichi Handa <handa@m17n.org>
12437
12438 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12439 (map_char_table): Don't inherit the value from the parent on
12440 initializing VAL. Adjust for the above change.
12441
124422008-02-01 Kenichi Handa <handa@m17n.org>
12443
12444 * coding.c (Qsignature, Qendian): Delete these variables.
12445 (syms_of_coding): Don't initialize them.
12446 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12447 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12448 detect_info->found.
12449 (decode_coding_utf_16): Don't detect BOM here.
12450 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12451 is NOT utf_16_without_bom.
12452 (setup_coding_system): For a coding system of type utf-16, check
12453 if the attribute :endian is Qbig or not (not nil or not), and set
12454 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12455 (detect_coding): If coding type is utf-16 and BOM detection is
12456 required, detect it.
12457 (Fdefine_coding_system_internal): For a coding system of type
12458 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12459
124602008-02-01 Kenichi Handa <handa@m17n.org>
12461
12462 * coding.c (coding_set_source): Fix for the case that the current
12463 buffer is different from coding->src_object.
12464 (decode_coding_object): Don't use the conversion work buffer if
12465 DST_OBJECT is a buffer.
12466
124672008-02-01 Dave Love <fx@gnu.org>
12468
12469 * lread.c (read_emacs_mule_char) [len==2]: Index
12470 emacs_mule_charset correctly.
12471
124722008-02-01 Dave Love <fx@gnu.org>
12473
12474 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12475 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12476 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12477 treated specially.)
12478 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12479 (detected_mask): Remove Big5 bits.
12480
124812008-02-01 Kenichi Handa <handa@m17n.org>
12482
12483 The following changes are to make the font rescaling facility
12484 compatible with Emacs 21.
12485
12486 * xfaces.c (Vface_font_rescale_alist): Rename from
12487 Vface_resizing_fonts.
12488 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12489 (font_rescale_ratio): Rename from font_resizing_ratio.
12490 (split_font_name): Set font->rescale_ratio.
12491 (better_font_p): Pay attention to font->rescale_ratio.
12492 (build_scalable_font_name): Likewise. Change RESX, and RESY
12493 fields.
12494 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12495
124962008-02-01 Kenichi Handa <handa@m17n.org>
12497
12498 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12499 (Qutf_16_le): Remove these variables.
12500 (syms_of_coding): Don't DEFSYM them.
12501 (decode_coding_utf_16): Fix handling of BOM.
12502 (encode_coding_utf_16): Fix handling of BOM.
12503
125042008-02-01 Kenichi Handa <handa@m17n.org>
12505
12506 * fileio.c (Finsert_file_contents): On replacing, before decoding
12507 the file into the work buffer, set point of the work buffer to the end.
12508
125092008-02-01 Dave Love <fx@gnu.org>
12510
12511 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12512
125132008-02-01 Dave Love <fx@gnu.org>
12514
12515 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12516 and fix C types.
12517
125182008-02-01 Kenichi Handa <handa@m17n.org>
12519
12520 * xdisp.c (SKIP_GLYPHS): New macro.
12521 (set_cursor_from_row): Pay attention to string display properties.
12522
12523 * category.c (copy_category_entry): Fix for the case that RANGE
12524 is an integer.
12525
12526 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12527
12528 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12529
125302008-02-01 Kenichi Handa <handa@m17n.org>
12531
12532 * charset.c (Fcharset_id_internal): New function.
12533 (syms_of_charset): Defsubr it.
12534
12535 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12536 with the last arg charset_list acquired from coding.
12537 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12538 the attribute coding_attr_ccl_valids.
12539
12540 * coding.h (enum define_coding_ccl_arg_index): Set the first
12541 member coding_arg_ccl_decoder to coding_arg_max.
12542
12543 * ccl.h (ccl_driver): Adjust prototype.
12544
12545 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12546 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12547 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12548 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12549 last arg Qnil.
12550
125512008-02-01 Kenichi Handa <handa@m17n.org>
12552
12553 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12554 call encode_char.
12555
12556 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12557
125582008-02-01 Dave Love <fx@gnu.org>
12559
12560 * composite.c (syms_of_composite): Make composition_hash_table weak.
12561
125622008-02-01 Kenichi Handa <handa@m17n.org>
12563
12564 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12565 (font_name_registry): Don't extern them.
12566 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12567
12568 * fontset.h (Qfontset): Don't extern it.
12569 (new_fontset_from_font_name): Extern it.
12570
12571 * fontset.c: Give 8 extra slots to fontset objects.
12572 (Qfontset_info): New variable.
12573 (syms_of_fontset): Defsym it.
12574 (FONTSET_FALLBACK): New macro.
12575 (fontset_face): Try also the default fontset.
12576 (make_fontset): Realize a fallback fontset from the default fontset.
12577 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12578 using split_font_name_into_vector and build_font_name_from_vector.
12579 (Fset_fontset_font): Access the elements of font_spec by enum
12580 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12581 name by using split_font_name_into_vector.
12582 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12583 generate a proper font name from the fontset name. Update
12584 Vfontset_alias_alist.
12585 (n_auto_fontsets): New variable.
12586 (new_fontset_from_font_name): New function.
12587 (Ffont_info): Store the information about fonts generated from the
12588 default fontset in the first extra slot of the returned char-table.
12589
12590 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12591 (font_name_registry): Delete function.
12592 (split_font_name_into_vector): New function.
12593 (build_font_name_from_vector): New function.
12594 (font_list): The argument REGISTRY is now a list of registry names.
12595 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12596 specifies an explicit font name, return the name as is. Make a
12597 list of registy names.
12598
12599 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12600 of x_new_fontset.
12601 (Fx_create_frame): Don't call x_new_fontset here. Just use
12602 x_list_fonts to check the existence of fonts.
12603
12604 * xterm.h (x_new_fontset): Adjust prototype.
12605
12606 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12607 string. Use new_fontset_from_font_name to create a fontset from a
12608 font name.
12609
126102008-02-01 Kenichi Handa <handa@m17n.org>
12611
12612 * syntax.c (Vfind_word_boundary_function_table): New name for
12613 Vnext_word_boundary_function_table.
12614 (find-word-boundary-function-table): New name for
12615 next-word-boundary-function-table.
12616
126172008-02-01 Dave Love <fx@gnu.org>
12618
12619 * Makefile.in: Fix some dependencies.
12620
12621 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
12622 set it to nil before returning.
12623
12624 * composite.c (update_compositions): Fix type error.
12625
12626 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
12627
126282008-02-01 Kenichi Handa <handa@m17n.org>
12629
12630 * xterm.c (x_new_font): Optimize for the case that the font is
12631 already set for the frame.
12632
126332008-02-01 Kenichi Handa <handa@m17n.org>
12634
12635 * chartab.c (char_table_ascii): Check if the char table contents
12636 is sub-char-table or not.
12637 (char_table_set, char_table_set_range): Fix argument to
12638 char_table_ascii.
12639
12640 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
12641 (detect_coding_utf_8, detect_coding_utf_16)
12642 (detect_coding_emacs_mule, detect_coding_iso_2022)
12643 (detect_coding_sjis, detect_coding_big5)
12644 (detect_coding_ccl, detect_coding_charset): Change argument MASK
12645 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
12646 sequence is valid in this coding system. Change callers.
12647 (MAX_ANNOTATION_LENGTH): New macro.
12648 (ADD_ANNOTATION_DATA): New macro.
12649 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
12650 ADD_ANNOTATION_DATA. Change the format of annotation data.
12651 (ADD_CHARSET_DATA): New macro.
12652 (emacs_mule_char): New argument ID. Change callers.
12653 (decode_coding_emacs_mule, decode_coding_iso_2022)
12654 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12655 Produce charset annotation data in coding->charbuf.
12656 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
12657 to charset annotation data in coding->charbuf.
12658 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
12659 coding->common_flags if the coding system is iso-2022 based and
12660 uses designation.
12661 (produce_composition): Adjust for the new annotation data format.
12662 (produce_charset): New function.
12663 (produce_annotation): Handle charset annotation.
12664 (handle_composition_annotation, handle_charset_annotation): New
12665 functions.
12666 (consume_chars): Handle charset annotation. Utilize the above two
12667 functions.
12668 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
12669 buffer, get the deleted text as a string and set
12670 coding->src_object to that string.
12671 (detect_coding, detect_coding_system): Use the new struct
12672 coding_detection_info.
12673
12674 * coding.h (struct coding_detection_info): New structure.
12675 (struct coding_system): Adjust prototype of the member `detector'.
12676 (CODING_ANNOTATE_CHARSET_MASK): New macro.
12677
126782008-02-01 Kenichi Handa <handa@m17n.org>
12679
12680 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
12681
126822008-02-01 Dave Love <fx@gnu.org>
12683
12684 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
12685 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
12686 to new local and nullify apropos_accumulate before returning.
12687 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
12688
126892008-02-01 Kenichi Handa <handa@m17n.org>
12690
12691 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
12692 correctly.
e3eea1fc 12693
aac0c6e3
MR
126942008-02-01 Dave Love <fx@gnu.org>
12695
12696 * fns.c (Flanginfo): Call synchronize_system_time_locale.
12697
126982008-02-01 Kenichi Handa <handa@m17n.org>
12699
12700 The following changes are to make character composition happen
12701 automatically on displaying.
12702
12703 * Makefile.in (lisp, shortlisp): Add composite.elc.
12704
12705 * composite.h (Qauto_composed, Vauto_composition_function)
12706 (Qauto_composition_function): Extern them.
12707
12708 * composite.c (Vcomposition_function_table)
12709 (Qcomposition_function_table): Delete variables.
12710 (Qauto_composed, Vauto_composition_function)
12711 (Qauto_composition_function): New variables.
12712 (run_composition_function): Don't call
12713 compose-chars-after-function.
12714 (update_compositions): Clear `auto-composed' text property.
12715 (compose_chars_in_text): Delete this function.
12716 (syms_of_composite): Staticpro Qauto_composed and
12717 Qauto_composition_function. Declare Vauto_composition_function as
12718 a Lisp variable.
12719
12720 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
12721
12722 * xdisp.c (it_props): Add an entry for Qauto_composed.
12723 (handle_auto_composed_prop): New function.
12724
12725 * xselect.c (selection_data_to_lisp_data): Don't call
12726 compose_chars_in_text.
12727
127282008-02-01 Dave Love <fx@gnu.org>
12729
12730 * keyboard.c (read_char): Modify checking around use of
12731 Vkeyboard_translate_table.
12732
12733 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12734 and fix C types.
12735
127362008-02-01 Kenichi Handa <handa@m17n.org>
12737
12738 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
12739 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12740 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
12741 the case that the last byte is '\r' correctly.
12742 (decode_coding): Flush out the unprocessed data correctly.
12743 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
12744
127452008-02-01 Dave Love <fx@gnu.org>
12746
12747 * xterm.c (XTread_socket): Fix changes for defined keysyms.
12748 Add XK_ISO... case.
12749 (xaw_scroll_callback): Revert last change.
12750
127512008-02-01 Kenichi Handa <handa@m17n.org>
12752
12753 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
12754
127552008-02-01 Kenichi Handa <handa@m17n.org>
12756
12757 * xfaces.c (Vface_resizing_fonts): New variable.
12758 (struct font_name): New member `resizing_ratio'.
12759 (font_resizing_ratio): New function.
12760 (split_font_name): Set font->resizing_ratio.
12761 (better_font_p): Pay attention to font->resizing_ratio.
12762 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
12763 RESX, and RESY fields.
12764 (try_alternative_families): Try scalable fonts if
12765 Vscalable_fonts_allowed is not Qt.
12766 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
12767
127682008-02-01 Dave Love <fx@gnu.org>
12769
12770 * xterm.c (xaw_scroll_callback): Cast correctly.
12771
127722008-02-01 Dave Love <fx@gnu.org>
12773
12774 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
12775 (lispy_kana_keys): Comment out.
12776 (make_lispy_event) [XK_kana_A]: Comment out.
12777
12778 * xterm.c (xaw_scroll_callback): Cast call_data.
12779 (XTread_socket): Deal with ASCII keysyms.
12780 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
12781
127822008-02-01 Dave Love <fx@gnu.org>
12783
12784 * xterm.c (Vx_keysym_table): New.
12785 (syms_of_xterm): Initialize it.
12786 (XTread_socket): Use it.
12787 From head: Eliminate incorrect optimization that tried to avoid
12788 decoding the output of X*LookupString.
12789 (x_get_font_repertory): Delete charset declaration.
12790
127912008-02-01 Kenichi Handa <handa@m17n.org>
12792
12793 * coding.c (detect_coding_charset): If only ASCII bytes are found,
12794 return 0.
12795 (Fdefine_coding_system_internal): Setup
12796 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
12797
127982008-02-01 Dave Love <fx@gnu.org>
12799
12800 * coding.c (Fcheck_coding_system): Doc fix.
12801
12802 * editfns.c (Finsert_byte): Return a proper value.
12803
128042008-02-01 Kenichi Handa <handa@m17n.org>
12805
12806 * coding.c (decode_coding): Fix args to translate_chars. Pay
12807 attention to Vstandard_translation_table_for_decode.
12808 (encode_coding): Fix args to translate_chars. Pay attention to
12809 Vstandard_translation_table_for_encode.
12810
12811 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
12812 SINGLE_BYTE_CHAR_P.
12813
12814 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
12815 not by SINGLE_BYTE_CHAR_P.
12816
12817 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
12818 SINGLE_BYTE_CHAR_P.
12819
12820 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
12821 SINGLE_BYTE_CHAR_P.
12822
12823 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
12824 by SINGLE_BYTE_CHAR_P.
12825
12826 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
12827 SINGLE_BYTE_CHAR_P.
12828
128292008-02-01 Dave Love <fx@gnu.org>
12830
12831 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
12832
128332008-02-01 Dave Love <fx@gnu.org>
12834
12835 * fns.c (Flanginfo): Fix typo.
12836
12837 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
12838
128392008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
12842 (detect_coding_emacs_mule, detect_coding_iso_2022)
12843 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
12844 incomplete byte sequence. Don't update *mask when correctly detected.
12845 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
12846 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
12847 (detect_coding, detect_coding_system): Adjust for the changes above.
12848
128492008-02-01 Kenichi Handa <handa@m17n.org>
12850
12851 * character.c (char_string): Rename from
12852 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
12853 (string_char): Rename from string_char.
12854
12855 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
12856 if C is greater than MAX_3_BYTE_CHAR.
12857 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
12858 string_char instead of string_char_with_unification.
12859
128602008-02-01 Dave Love <fx@gnu.org>
12861
12862 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
12863
128642008-02-01 Kenichi Handa <handa@m17n.org>
12865
12866 * keymap.c (push_key_description): Pay attention to force_multibyte.
12867
12868 * regex.c (re_search_2): Fix for the case of unibyte buffer.
12869
128702008-02-01 Dave Love <fx@gnu.org>
12871
12872 * charset.c (define_charset_internal): Rename `supprementary'.
12873
12874 * Makefile.in (lisp, shortlisp): Remove latin-N.
12875
128762008-02-01 Dave Love <fx@gnu.org>
12877
12878 * xfns.c (x_window, x_window): Use use_xim.
12879
12880 * xterm.c (use_xim): Initialize.
12881 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12882 (x_term_init): Maybe set use_xim.
12883
12884 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12885
128862008-02-01 Kenichi Handa <handa@m17n.org>
12887
12888 * search.c (search_buffer): Fix case-fold-search of multibyte
12889 characters.
12890 (boyer_moore): Rename the last argument to char_high_bits.
12891
128922008-02-01 Kenichi Handa <handa@m17n.org>
12893
12894 * xdisp.c (display_string): Fix for the case of zero width glyph.
12895
12896 * xfns.c (x_set_font): Change the error message of the case that
12897 x_new_fontset returns Qt.
12898
12899 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
12900 (Finternal_set_lisp_face_attribute): Use signal_error for the
12901 error of invalid fontset.
12902
12903 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
12904 fontset, return Qt.
12905
129062008-02-01 Dave Love <fx@gnu.org>
12907
12908 * unexelf.c (unexec): Make .got handling not SGI-specific.
12909
12910 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
12911
12912 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
12913
12914 * keyboard.c (read_key_sequence): Fix type error.
12915
12916 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
12917 type error.
12918
12919 * fontset.c (fontset_add): Return Lisp_Object.
12920
129212008-02-01 Dave Love <fx@gnu.org>
12922
12923 * charset.h (charset_ordered_list_tick): Declare extern.
12924
129252008-02-01 Kenichi Handa <handa@m17n.org>
12926
12927 The following changes (and some of 2008-02-01 changes of mine) are
12928 for handling syntax, category, and case conversion for unibyte
12929 characters by converting them to multibyte on the fly. With these
12930 changes, we don't have to setup syntax and case tables for unibyte
12931 characters in each language environment.
12932
12933 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
12934 multibyte if necessary.
12935
12936 * bytecode.c (Fbyte_code): Likewise.
12937
12938 * character.h (LEADING_CODE_LATIN_1_MIN)
12939 (LEADING_CODE_LATIN_1_MAX): New macros.
12940 (unibyte_to_multibyte_table): Extern it.
12941 (unibyte_char_to_multibyte): New macro.
12942 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
12943 (CHAR_LEADING_CODE): New macro.
12944 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
12945
12946 * character.c (unibyte_to_multibyte_table): New variable.
12947 (unibyte_char_to_multibyte): Move to character.h and define as macro.
12948 (multibyte_char_to_unibyte): If C is an eight-bit character,
12949 convert it to the corresponding byte value.
12950
12951 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
12952 not 1, signals an error. Update the elements of
12953 unibyte_to_multibyte_table.
12954 (init_charset_once): Initialize unibyte_to_multibyte_table.
12955 (syms_of_charset): Define the charset `iso-8859-1'.
12956
12957 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
12958 as is without converting it to unibyte. In a unibyte buffer,
12959 convert C to multibyte before checking the syntax.
12960
12961 * lisp.h (unibyte_char_to_multibyte): Delete extern.
12962
12963 * minibuf.c (Fminibuffer_complete_word): Use the macro
12964 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
12965
12966 * regex.h (struct re_pattern_buffer): New member target_multibyte.
12967
12968 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
12969 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
12970 that is zero, convert an eight-bit char to multibyte.
12971 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
12972 non-emacs case.
12973 (PATFETCH): Convert an eight-bit char to multibyte.
12974 (HANDLE_UNIBYTE_RANGE): New macro.
12975 (regex_compile): Setup the compiled pattern for multibyte chars
12976 even if the given regex string is unibyte. Use PATFETCH_RAW
12977 instead of PATFETCH in many places. To handle `charset'
12978 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
12979 only for ASCII chars.
12980 (analyse_first) <exactn>: Simplify because the compiled pattern
12981 is multibyte.
12982 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
12983 <charset>: Use CHAR_LEADING_CODE to get leading codes.
12984 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
12985 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
12986 multibyte always 1.
12987 (re_search_2): In emacs, set the locale variable multibyte to 1,
12988 otherwise to 0. New local variable target_multibyte. Check it
12989 to decide the multibyteness of STR1 and STR2. If
12990 target_multibyte is zero, convert unibyte chars to multibyte
12991 before translating and checking fastmap.
12992 (TARGET_CHAR_AND_LENGTH): New macro.
12993 (re_match_2_internal): In emacs, set the locale variable multibyte
12994 to 1, otherwise to 0. New local variable target_multibyte. Check
12995 it to decide the multibyteness of STR1 and STR2. Use
12996 TARGET_CHAR_AND_LENGTH to fetch a character from D.
12997 <charset, charset_not>: If multibyte is nonzero, check fastmap
12998 only for ASCII chars. Call bcmp_translate with
12999 target_multibyte, not with multibyte.
13000 <begline>: Declare the local variable C as `unsigned'.
13001 (bcmp_translate): Change the last arg name to target_multibyte.
13002
13003 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13004 the regexp pattern and the matching target. Set cp->buf.multibyte
13005 to the multibyteness of the regexp pattern. Set
13006 cp->but.target_multibyte to the multibyteness of the matching target.
13007 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13008 FETCH_STRING_CHAR_ADVANCE.
13009 (Freplace_match): Convert unibyte chars to multibyte.
13010
13011 * syntax.c (char_quoted, back_comment, scan_words)
13012 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13013 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13014 unibyte chars to multibyte.
13015 (skip_chars): Delete the arg syntaxp, and move the code for
13016 handling syntaxes to skip_syntaxes. Change callers.
13017 Fix the case that the multibyteness of STRING and the current
13018 buffer doesn't match.
13019 (skip_syntaxes): New function.
13020 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13021 SINGLE_BYTE_CHAR_P.
13022
130232008-02-01 Kenichi Handa <handa@m17n.org>
13024
13025 * xfaces.c (QCfontset): New variable.
13026 (LFACE_FONTSET): New macro.
13027 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13028 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13029 (Finternal_set_lisp_face_attribute)
13030 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13031 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13032 check also LFACE_FONTSET_INDEX.
13033 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13034 attrs[LFACE_FONT_INDEX].
13035 (syms_of_xfaces): Intern and staticpro QCfontset.
13036
13037 * dispextern.h (enum lface_attribute_index): New member
13038 LFACE_FONTSET_INDEX.
13039
13040 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13041
130422008-02-01 Kenichi Handa <handa@m17n.org>
13043
13044 * coding.c (coding_set_destination): Fix coding->destination for
13045 the case converting a region.
13046 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13047 (encode_coding_object): Fix coding->dst_pos and
13048 coding->dst_pos_byte for the case converting a region.
13049
13050 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13051
13052 * character.h (BYTE8_STRING): New macro.
13053
13054 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13055
130562008-02-01 Kenichi Handa <handa@m17n.org>
13057
13058 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13059 characters by octal form.
13060
13061 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13062
13063 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13064 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13065 _fetch_multibyte_char_len.
13066 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13067
13068 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13069
13070 * casefiddle.c (casify_object): Simplify. Handle the case that
13071 the case conversion change the byte length.
13072 (casify_region): Likewise.
13073
13074 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13075
13076 * character.c (_fetch_multibyte_char_len): Delete this variable.
13077 (syms_of_character): Setup Vprintable_chars.
13078
13079 * editfns.c (Fchar_equal): Fix for the unibyte case.
13080 (Finsert_byte): New function.
13081 (syms_of_editfns): Defsubr it.
13082
13083 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13084 of direct code 0x3ffff.
13085
13086 * search.c (Freplace_match): Fix for the unibyte case.
13087
130882008-02-01 Kenichi Handa <handa@m17n.org>
13089
13090 * lread.c (safe_to_load_p): Fix the logic.
13091
13092 * syntax.c (scan_words): Don't treat characters belonging to
13093 different scripts as constituting a word.
13094
13095 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13096
13097 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13098
13099 * emacs.c (main): In the case of --unibyte, instead of aborting on
13100 finding non-empty buffer, make it unibyte.
13101
131022008-02-01 Kenichi Handa <handa@m17n.org>
13103
13104 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13105 to create a fontset.
13106
131072008-02-01 Dave Love <fx@gnu.org>
13108
13109 * character.c (Funibyte_char_to_multibyte): Doc fix.
13110
13111 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13112
131132008-02-01 Kenichi Handa <handa@m17n.org>
13114
13115 * fontset.c (fontset_add): Make the type `int'.
13116 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13117
13118 * character.c (unibyte_char_to_multibyte)
13119 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13120 charset_unibyte, not charset_primary.
13121
13122 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13123
13124 * charset.c (charset_unibyte): Rename from charset_primary.
13125 (Funibyte_charset): Rename from Fprimary_charset.
13126 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13127 (syms_of_charset): Adjust for the above changes.
13128
13129 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13130 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13131 it->multibyte_p is zero.
13132
13133 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13134 Delete extern.
13135
131362008-02-01 Kenichi Handa <handa@m17n.org>
13137
13138 * coding.c (Fdefine_coding_system_internal): Fix category setting
13139 for a coding system of type iso-2022.
13140
131412008-02-01 Kenichi Handa <handa@m17n.org>
13142
13143 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13144
131452008-02-01 Kenichi Handa <handa@m17n.org>
13146
13147 * syntax.c (Vnext_word_boundary_function_table): New variable.
13148 (next-word-boundary-function-table): Declare it as a Lisp variable
13149 in syms_of_syntax.
13150 (scan_words): Call functions in Vnext_word_boundary_function_table
13151 if any.
13152
13153 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13154
13155 * fontset.c (fs_load_font): If fontp->charset is not negative,
13156 return fontp without setting its members.
13157
131582008-02-01 Dave Love <fx@gnu.org>
13159
13160 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13161
13162 * m/sparc.h (HAVE_ALLOCA): Delete.
13163
13164 * s/irix6-5.h: Don't include strings.h.
13165 (bcopy, bzero, bcmp): Don't undef.
13166
13167 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13168
13169 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13170 (TIOCSIGSEND): Don't test IRIX6.
13171 (bcopy, bzero, bcmp): Define conditionally.
13172
131732008-02-01 Kenichi Handa <handa@m17n.org>
13174
13175 * buffer.c (Qas, Qmake, Qto): New variables.
13176 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13177 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13178
13179 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13180 we are inserting a process output into a multibyte buffer.
13181
13182 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13183 multibyte_char_to_unibyte.
13184
13185 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13186 by the primary charset, make it eight-bit char.
13187 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13188
13189 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13190 (charset_8_bit__control, charset_8_bit_graphic)
13191 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13192 (define_charset_internal): New function.
13193 (syms_of_charset): Call define_charset_internal for pre-defined
13194 charsets.
13195
13196 * charset.h (charset_8_bit): Extern it.
13197
13198 * coding.c (make_conversion_work_buffer): Adjust for the change
13199 of Fset_buffer_multibyte.
13200 (encode_coding_raw_text): Increment p0 in the loop.
13201
13202 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13203
13204 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13205 for the change of Fset_buffer_multibyte.
13206
13207 * fns.c (Fstring_to_multibyte): New function.
13208 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13209
132102008-02-01 Dave Love <fx@gnu.org>
13211
13212 * xfns.c (x_put_x_image): Declare args.
13213
13214 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13215 (try_font_list): Declare an arg.
13216
13217 * xdisp.c (message2_nolog, set_message): Declare an arg.
13218
13219 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13220
13221 * syntax.c (scan_sexps_forward): Declare an arg.
13222
13223 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13224 Declare an arg.
13225
13226 * lisp.h (Fnew_fontset): Declare.
13227
13228 * keymap.c (push_key_description): Call CHARACTERP correctly.
13229
13230 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13231 (face_for_char): Delete unused vars.
13232 (Fset_fontset_font): Doc fix. Delete unused vars.
13233
13234 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13235
13236 * composite.c (update_compositions): Declare arg.
13237
13238 * cm.c (calccost, cmgoto): Declare args.
13239
13240 * charset.c: Remove `emacs' conditional. Doc fixes.
13241 (map_char_table_for_charset): Declare.
13242
13243 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13244
13245 * ccl.c: Remove `emacs' conditional.
13246
132472008-02-01 Kenichi Handa <handa@m17n.org>
13248
13249 The following changes are to allow specifying multiple font
13250 patterns for a character range (specified by script or charset).
13251
13252 * Makefile.in (abbrev.o): Depend on syntax.h.
13253 (xfaces.o): Depend on charset.h.
13254
13255 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13256 SINGLE_BYTE_CHAR_P.
13257
13258 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13259
13260 * character.h (Vchar_script_table): Extern it.
13261
13262 * character.c (Vscript_alist): Delete.
13263 (Vchar_script_table, Qchar_script_table): New variable.
13264 (syms_of_character): Declare Vchar_script_table as a lisp variable
13265 and initialize it.
13266
13267 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13268 have property char-table-extra-slots, make no extra slot.
13269
13270 * dispextern.h (struct face): Delete member `charset'.
13271 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13272 SINGLE_BYTE_CHAR_P.
13273 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13274 Add prototypes.
13275 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13276 (generate_ascii_font_name): Rename from generate_ascii_font.
13277
13278 * fontset.h (get_font_repertory_func): New prototype.
13279 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13280 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13281
13282 * fontset.c (Qprepend, Qappend): New variables.
13283 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13284 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13285 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13286 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13287 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13288 (load_font_get_repertory): New functions.
13289 (fontset_set): Delete.
13290 (fontset_face): New arg FACE. Return face ID, not face.
13291 Complete re-write to handle new fontset structure. Change caller.
13292 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13293 (face_for_char): Don't call lookup_face.
13294 (make_fontset_for_ascii_face): New arg FACE.
13295 (fs_load_font): New arg CHARSET_ID. Don't check
13296 Vfont_encoding_alist here.
13297 (find_font_encoding): New function.
13298 (list_fontsets): Use STRINGP, not ! NILP.
13299 (accumulate_script_ranges): New function.
13300 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13301 re-written to handle new fontset structure.
13302 (Ffontset_font): Return a copy of element.
13303 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13304 docstring of font-encoding-alist.
13305
13306 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13307 (Fset_fotset_font): Fix arguments to 5.
13308
13309 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13310
13311 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13312 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13313 (highlight_trailing_whitespace): Adjust for the change of
13314 lookup_named_face.
13315
13316 * xfaces.c: Include charset.h.
13317 (load_face_font): Delete argument C. Change caller.
13318 (generate_ascii_font_name): Rename from generate_ascii_font.
13319 (font_name_registry): New function.
13320 (cache_face): Store ascii faces before non-ascii faces in buckets.
13321 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13322 Lookup only ascii faces.
13323 (lookup_non_ascii_face): New function.
13324 (lookup_named_face): Delete argument C. Change caller.
13325 (lookup_derived_face): Delete argument C. Change caller.
13326 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13327 a string, just call font_list with it.
13328 (choose_face_font): Delete arguments FACE and C. New arg
13329 FONT_SPEC. Change caller.
13330 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13331 Change caller.
13332 (realize_non_ascii_face): New function.
13333 (realize_x_face): Call load_face_font here.
13334 (realize_tty_face): Delete argument C. Change caller.
13335 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13336 get a face ID.
13337 (dump_realized_face): Don't print charset of FACE.
13338
13339 * xfns.c (x_set_font): Always call x_new_fontset and
13340 store_frame_parameter.
13341 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13342 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13343
13344 * xterm.h (x_get_font_repertory): Extern it.
13345
13346 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13347 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13348 it->multibyte_p is zero.
13349 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13350 (x_new_fontset): If FONTSETNAME doesn't match any existing
13351 fontsets, create a new one.
13352 (x_get_font_repertory): New function.
13353
133542008-02-01 Kenichi Handa <handa@m17n.org>
13355
13356 * coding.c (Ffind_coding_systems_region_internal): Detect an
13357 ASCII only string correctly.
13358
13359 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13360 version is 0.
13361
133622008-02-01 Kenichi Handa <handa@m17n.org>
13363
13364 * lread.c: Include "coding.h".
13365 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13366 (load_each_byte, unread_char): New variables.
13367 (readchar_backlog): Delete.
13368 (readchar): Return a character unless load_each_byte is nonzero.
13369 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13370 cons. If unread_char is not -1, simply return it.
13371 (unreadchar): Handle the case that readcharfun is
13372 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13373 (read_multibyte): Delete.
13374 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13375 (read_emacs_mule_char): New functions.
13376 (Fload): Even if the file doesn't have the extension ".elc", if
13377 safe_to_load_p returns a positive version number, assume that the
13378 file contains bytecompiled code. If the version is less than 22,
13379 load the file while decoding multibyte sequences by emacs-mule.
13380 (readevalloop): Don't use readchar_backlog.
13381 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13382 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13383 (read_escape): Delete the arg BYTEREP.
13384 (read1): Set load_each_byte to 1 temporarily while handling
13385 #@NUMBER. Don't call read_multibyte.
13386 (read_vector): Call Fread with a cons. If readcharfun is
13387 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13388 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13389 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13390 and Qload_force_doc_strings.
13391
133922008-02-01 Kenichi Handa <handa@m17n.org>
13393
13394 * xdisp.c (face_before_or_after_it_pos): Call
13395 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13396
133972008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * character.h (TRAILING_CODE_P): New macro.
13400 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13401 (string_char_with_unification): Fix prototype.
13402 (Vscript_alist): Extern it.
13403
13404 * character.c (Vscript_alist): New variable.
13405 (string_char_with_unification, str_as_unibyte)
13406 (string_escape_byte8): Add `const' to local variables.
13407 (syms_of_character): Declare script-alist as a Lisp variable.
13408
13409 * charset.h (Vcharset_ordered_list): Extern it.
13410 (charset_ordered_list_tick): Extern it.
13411 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13412 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13413 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13414 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13415 (Funify_charset): Adjust for the change of Funify_charset.
13416
13417 * charset.c (charset_ordered_list_tick): New variable.
13418 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13419 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13420 deunify intead of unify a charset.
13421 (string_xstring_p): Add `const' to local variables.
13422 (find_charsets_in_text): Add `const' to arguments and local variables.
13423 (encode_char): Adjust for the change of Funify_charset. Fix
13424 detecting of invalid code.
13425 (Fset_charset_priority): Increment charset_ordered_list_tick.
13426 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13427 and TO_CODE.
13428
13429 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13430 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13431 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13432 (decode_coding_ccl, consume_chars)
13433 (Ffind_coding_systems_region_internal)
13434 (Fcheck_coding_systems_region): Add `const' to local variables.
13435
13436 * print.c (print_object): Use octal form for printing the
13437 contents of a bool vector.
13438
134392008-02-01 Dave Love <fx@gnu.org>
13440
13441 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13442 <version == 20>: Refuse to load.
13443
134442008-02-01 Dave Love <fx@gnu.org>
13445
13446 * fns.c: Move coding.h.
13447 (Qcodeset, Qdays, Qmonths): New.
13448 (concat): Use CHARACTERP instead of INTEGERP.
13449 (Flocale_codeset): Delete.
13450 (Flanginfo): New function.
13451 (syms_of_fns): Change accordingly.
13452
13453 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13454
134552008-02-01 Dave Love <fx@gnu.org>
13456
13457 * casetab.c (init_casetab_once, init_casetab_once): Fix
13458 CHAR_TABLE_SET call.
13459
13460 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13461
13462 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13463
13464 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13465 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13466 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13467
13468 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13469
13470 * coding.c (ENCODE_DESIGNATION, decode_eol)
13471 (make_conversion_work_buffer, code_conversion_restore)
13472 (Fdefine_coding_system_internal): Convert Lisp types.
13473 (code_conversion_restore): Use EQ, not ==.
13474 (Fencode_coding_string): Fix code_convert_string call.
13475
13476 * coding.h (code_convert_region): Fix prototype.
13477
13478 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13479
13480 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13481 (Ffontset_info): Convert Lisp types.
13482
13483 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13484
13485 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13486
13487 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13488
13489 * chartab.c: Include "...h", not <...h> in some cases.
13490
13491 * callproc.c (Fcall_process): Remove unused variables.
13492
134932008-02-01 Dave Love <fx@gnu.org>
13494
13495 * coding.c (Fset_coding_system_priority): Allow null arg list.
13496
134972008-02-01 Dave Love <fx@gnu.org>
13498
13499 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13500 (Fself_insert_and_exit): Use CHARACTERP.
13501
13502 * callproc.c (Fcall_process): Remove unused vars.
13503
13504 * xterm.c (XTread_socket): Add extra dead keysyms.
13505
13506 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13507
13508 * dispextern.h: Remove prototypes for redraw_frame,
13509 redraw_garbaged_frames.
13510
13511 * cmds.c (Fself_insert_command): Use CHARACTERP.
13512
13513 * chartab.c (make_sub_char_table): Remove unused var.
13514 (Fset_char_table_default, Fmap_char_table): Doc fix.
13515
13516 * keymap.c (access_keymap): Remove generic char code.
13517 (push_key_description): Use CHARACTERP.
13518
135192008-02-01 Dave Love <fx@gnu.org>
13520
13521 * charset.c: Doc fixes.
13522 (Funify_charset): Extra checking.
13523
135242008-02-01 Dave Love <fx@gnu.org>
13525
13526 * lread.c: Remove some unused variables.
13527 (safe_to_load_p): If safe, return the magic number version byte.
13528 (Fload): Maybe use load-with-code-conversion.
13529
135302008-02-01 Kenichi Handa <handa@m17n.org>
13531
13532 * category.c (Fmodify_category_entry): Don't modify the contents
13533 of category_set for characters out of the range. Avoid
13534 unnecessary modification.
13535
13536 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13537 Vchar_unify_table. The default value of the table is now nil.
13538
13539 * character.c (syms_of_character): Setup Vchar_width_table for
13540 eight-bit-control and raw-byte chars.
13541
13542 * charset.h (enum define_charset_arg_index): Delete
13543 charset_arg_parents and add charset_arg_subset and
13544 charset_arg_superset.
13545 (enum charset_attr_index): Delete charset_parents and add
13546 charset_subset and charset_superset.
13547 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13548 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13549 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13550 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13551 (CHARSET_SUPERSET): New macros.
13552 (charset_work): Extern it.
13553 (ENCODE_CHAR): Use charset_work.
13554 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13555 (map_charset_chars): Extern it.
13556
13557 * charset.c (load_charset_map): Set the default value of encoder
13558 and deunifier char-tables to nil.
13559 (map_charset_chars): Change argument. Change callers. Use
13560 map_char_table_for_charset instead of map_char_table.
13561 (Fmap_charset_chars): New optional args from_code and to_code.
13562 (Fdefine_charset_internal): Adjust for the change of
13563 `define-charset' (:parents -> :subset or :superset).
13564 (charset_work): New variable.
13565 (encode_char, syms_of_charset): Adjust for the change of
13566 Fdefine_charset_internal.
13567 (Ffind_charset_string): Setup the vector `charsets' correctly.
13568
13569 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13570 the previous change.
13571 (char_table_ref_and_range): Adjust for the above change.
13572 (map_sub_char_table_for_charset): New function.
13573 (map_char_table_for_charset): New function.
13574
13575 * keymap.c (describe_vector): Handle a char-table directly here.
13576 (describe_char_table): Delete.
13577
13578 * lisp.h (map_charset_chars): Delete.
13579
135802008-02-01 Dave Love <fx@gnu.org>
13581
13582 * fns.c (count_combining): Comment out (unused).
13583 (Flocale_codeset): New.
13584 (syms_of_fns): Defsubr it.
13585
13586 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13587 (size_t): Remove.
13588
135892008-02-01 Dave Love <fx@gnu.org>
13590
13591 * Makefile.in (chartab.o): Depend on charset.h.
13592
135932008-02-01 Kenichi Handa <handa@m17n.org>
13594
13595 * character.c (syms_of_character): Set the default value of
13596 Vprintable_chars to Qnil.
13597
135982008-02-01 Dave Love <fx@gnu.org>
13599
13600 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13601
136022008-02-01 Kenichi Handa <handa@m17n.org>
13603
13604 * charset.c (load_charset_map): Handle the case that from < to
13605 correctly.
13606
13607 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13608 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
13609 Pay attention to raw-8-bit chars.
13610
136112008-02-01 Kenichi Handa <handa@m17n.org>
13612
13613 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
13614 It is not bytecompiled now.
13615
13616 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
13617 (charset_jisx0208): New variables.
13618 (Fdefine_charset_internal): Setup them if appropriate.
13619 (init_charset_once): Initialize them to -1.
13620
13621 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
13622 (charset_jisx0208): Extern them.
13623
13624 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
13625 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
13626 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
13627 (setup_iso_safe_charsets): Fix arguments to Fassq.
13628 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
13629 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
13630 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
13631 (encode_coding_iso_2022): Change the 1st arg to
13632 ENCODE_ISO_CHARACTER to a variable.
13633
136342008-02-01 Kenichi Handa <handa@m17n.org>
13635
13636 * charset.h (enum define_charset_arg_index): New enums
13637 charset_arg_min_code and charset_arg_max_code.
13638 (struct charset): New member char_index_offset.
13639
13640 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
13641 Take charset->char_index_offset into account.
13642 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
13643 args[charset_arg_max_code]. Setup charset.char_index_offset.
13644 (syms_of_charset): Fix args to Fdefine_charset_internal.
13645
136462008-02-01 Dave Love <fx@gnu.org>
13647
13648 * coding.c (decode_coding_utf_8): Reject overlong sequences.
13649
136502008-02-01 Dave Love <fx@gnu.org>
13651
13652 * coding.c: Doc fixes.
13653 (Fcoding_system_aliases): Fix return value.
13654 (Qmac): Remove (duplicated) definition.
13655
136562008-02-01 Dave Love <fx@gnu.org>
13657
13658 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
13659 functions.
13660
13661 * character.c (Fstring): Doc fix.
13662
13663 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
13664
13665 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
13666 ids.
13667 (font-encoding-alist): Doc fix.
13668
136692008-02-01 Dave Love <fx@gnu.org>
13670
13671 * term.c (costs_set): Declare static, non-initialized for pcc.
13672 (encode_terminal_code): Remove unused var.
13673
13674 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13675 for K&R.
13676
13677 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
13678
13679 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
13680 (suffixes): Move out of make_subsidiaries for K&R.
13681
13682 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
13683
13684 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
13685
136862008-02-01 Dave Love <fx@gnu.org>
13687
13688 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
13689
13690 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
13691
136922008-02-01 Yong Lu <lyongu@asia-infonet.com>
13693
13694 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
13695
13696 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
13697
136982008-02-01 Kenichi Handa <handa@m17n.org>
13699
13700 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
13701 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
13702
137032008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * coding.c (decode_coding_charset): Adjust for the change of
13706 Fdefine_coding_system_internal.
13707 (Fdefine_coding_system_internal): For a coding system of
13708 `charset' type, store a list of charset IDs in
13709 `charset_attr_charset_valids' element of coding attributes.
13710
137112008-02-01 Kenichi Handa <handa@m17n.org>
13712
13713 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
13714 (emacs_mule_char): New arg src. Delete arg `composition'. Change
13715 caller. Handle 2-byte and 3-byte charsets correctly.
13716 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
13717 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
13718 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
13719 (DECODE_EMACS_MULE_21_COMPOSITION): Call
13720 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
13721 sequence.
13722 (decode_coding_emacs_mule): Handle composition correctly. Rewind
13723 `src' and `consumed_chars' correctly before calling emacs_mule_char.
13724 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
13725 and alt&rule composition.
13726 (decode_coding_iso_2022): Handle composition correctly.
13727 (init_coding_once): Setup emacs_mule_bytes for private charsets.
13728
13729 * charset.c (Fdefine_charset_internal): Fix bug for the case of
13730 re-defining a charset. If the charset has :emacs-mule-id, setup
13731 emacs_mule_bytes.
13732 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
13733
137342008-02-01 Kenichi Handa <handa@m17n.org>
13735
13736 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
13737 (encode_coding_big5, encode_coding_charset): If coding requires safe
13738 encoding, produce a character specified by
13739 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13740
137412008-02-01 Dave Love <fx@gnu.org>
13742
13743 * xterm.c (XSetIMValues): Declare.
13744
13745 * process.c: Conditionally include sys/wait.h, pty.h.
13746
13747 * print.c (print_object): Fix print format for 64-bit systems.
13748
13749 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
13750
13751 * buffer.c (emacs_strerror): Declare.
13752
13753 * fontset.c (Fclear_face_cache): Declare.
13754 (accumulate_font_info): Comment-out (unused).
13755 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
13756 variables.
13757
13758 * character.h (string_escape_byte8): Declare.
13759
13760 * charset.c (load_charset_map, load_charset_map_from_file): Remove
13761 unused vars.
13762 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
13763 (Fmap_charset_chars): Doc fix.
13764
13765 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
13766 (Fset_coding_system_priority, Fset_coding_system_priority)
13767 (Fdefine_coding_system_internal): Doc fix.
13768
137692008-02-01 Dave Love <fx@gnu.org>
13770
13771 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
13772
137732008-02-01 Kenichi Handa <handa@m17n.org>
13774
13775 * character.c (string_escape_byte8): Make multibyte string with
13776 correct size.
13777
13778 * charset.c (Fmake_char): Delete unnecessary code.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * xfns.c (x_encode_text): Allocate coding.destination here, and
13783 call encode_coding_object with dst_object Qnil.
13784
13785 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
13786 multibyte form correctly.
13787
13788 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
13789 against Vfont_encoding_alist.
13790
13791 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
13792 handling of charset list.
13793 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
13794 (decode_coding_object): Move point to coding->dst_pos before
13795 calling post-read-conversion function.
13796 (encode_coding_object): Give correct arguments to
13797 pre-write-conversion. Ignore the return value of
13798 pre-write-conversion function. Pay attention to the case that
13799 pre-write-conversion changes the current buffer. If dst_object is
13800 Qt, even if coding->src_bytes is zero, allocate at least one byte
13801 to coding->destination.
13802
13803 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
13804
13805 * charset.c (Fmake_char): Make it more backward compatible.
13806 (Fmap_charset_chars): Fix docstring.
13807
138082008-02-01 Dave Love <fx@gnu.org>
13809
13810 * coding.c: Doc fixes.
13811 (Fdefine_coding_system_alias): Use names, not symbols, in
13812 coding-system-alist.
13813
138142008-02-01 Kenichi Handa <handa@m17n.org>
13815
13816 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
13817 of calling free_realized_face.
13818
138192008-02-01 Yong Lu <lyongu@asia-infonet.com>
13820
13821 * charset.c (read_hex): Don't treat SPC as a comment starter.
13822 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
13823 (Fdecode_char): Fix typo.
13824
138252008-02-01 Kenichi Handa <handa@m17n.org>
13826
13827 * charset.h (struct charset): New member `code_space_mask'.
13828
13829 * coding.c (coding_set_source): Delete the local variable beg_byte.
13830 (encode_coding_charset, Fdefine_coding_system_internal):
13831 Delete the local variable charset.
13832 (Fdefine_coding_system_internal): Setup
13833 attrs[coding_attr_charset_valids] correctly.
13834
13835 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
13836 member to check if CODE is valid or not.
13837 (Fdefine_charset_internal): Initialize `code_space_mask' member.
13838 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
13839 is within the range of charset->min_code and carset->max_code.
13840
138412008-02-01 Dave Love <fx@gnu.org>
13842
13843 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
13844
13845 * dispextern.h (generate_ascii_font): Fix return type.
13846
13847 * xfaces.c (generate_ascii_font): Fix arg declaration.
13848
13849 * coding.c (coding_inherit_eol_type)
13850 (Fset_terminal_coding_system_internal)
13851 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
13852
138532008-02-01 Kenichi Handa <handa@m17n.org>
13854
13855 * coding.c (decode_coding_charset, encode_coding_charset): Handle
13856 multiple charsets correctly.
13857
138582008-02-01 Kenichi Handa <handa@m17n.org>
13859
13860 * search.c (boyer_moore): Fix handling of multibyte character
13861 translation.
13862
13863 * xdisp.c (display_mode_element): When the variable `elt' is
13864 changed, update `this' and `lisp_string'.
13865
138662008-02-01 Kenichi Handa <handa@m17n.org>
13867
13868 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
13869
13870 * callproc.c (Fcall_process): Be sure to give the current buffer
13871 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
13872
13873 * charset.c (struct charset_map_entries): New struct.
13874 (load_charset_map): Rename from parse_charset_map. New args
13875 entries and n_entries. Change caller.
13876 (load_charset_map_from_file): Rename from load_charset_map.
13877 Change caller. New arg control_flag. Call load_charset_map at
13878 the tail.
13879 (load_charset_map_from_vector): New function.
13880 (Fdefine_charset_internal): Setup charset.compact_codes_p.
13881 (encode_char): If the charset is compact, change a character index
13882 to a code point.
13883
13884 * coding.c (coding_alloc_by_making_gap): Check the case that the
13885 source and destination are the same correctly.
13886 (decode_coding_raw_text): Set coding->consumed_char and
13887 coding->consumed to 0.
13888 (produce_chars): If coding->chars_at_source is nonzero, update
13889 coding->consumed_char and coding->consumed before calling
13890 alloc_destination.
13891 (Fdefine_coding_system_alias): Register ALIAS in
13892 Vcoding_system_alist.
13893 (syms_of_coding): Define `no-conversion' coding system at the tail.
13894
13895 * fileio.c (Finsert_file_contents): Set coding_system instead of
13896 val. If the current buffer is multibyte, always call
13897 decode_coding_gap.
13898
13899 * xfaces.c (try_font_list): Give higher priority to fontset's
13900 family than face's family.
13901
139022008-02-01 Kenichi Handa <handa@m17n.org>
13903
13904 * callproc.c (Fcall_process): Be sure to give the current buffer
13905 to decode_coding_c_string.
13906
13907 * xfaces.c (try_font_list): Give a family specified in a fontset
13908 higher priority than a family specified in a face.
13909
139102008-02-01 Kenichi Handa <handa@m17n.org>
13911
13912 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
13913 Fix arguments to insert_from_buffer.
13914
13915 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
13916
139172008-02-01 Kenichi Handa <handa@m17n.org>
13918
13919 * coding.c (produce_chars): Set the variable `multibytep' correctly.
13920 (decode_coding_gap): Set coding->dst_multibyte correctly.
13921
139222008-02-01 Kenichi Handa <handa@m17n.org>
13923
13924 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
13925 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
13926 (encode_coding_utf_16): Substitute coding->default_char for
13927 non-Unicode characters.
13928 (decode_coding): Don't call record_insert here.
13929 (setup_coding_system): Initialize `surrogate' of
13930 coding->spec.utf_16 to 0.
13931 (EMIT_ONE_BYTE): Fix for multibyte case.
13932
13933 * insdel.c (insert_from_gap): Call record_insert.
13934
139352008-02-01 Kenichi Handa <handa@m17n.org>
13936
13937 * casefiddle.c (casify_region): Fix multibyte case.
13938
13939 * character.c (c_string_width): Add return type `int'.
13940 (char_string_with_unification): Delete arg ADVANCED.
13941
13942 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
13943 (CHAR_STRING): Adjust for the change of char_string_with_unification.
13944 (CHAR_STRING_ADVANCE): Make it do-while statement.
13945
13946 * chartab.c (sub_char_table_set_range): Optimize for the case
13947 DEPTH == 3. Add workaround code for a GCC optimization bug.
13948
13949 * charset.c (parse_charset_map): Remove an unused variable.
13950
13951 * coding.c: Delete unused variables.
13952
13953 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
13954 earlier. If inserted is zero and the coding system doesn't
13955 require flushing, don't call decode_coding_gap.
13956
13957 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
13958
139592008-02-01 Kenichi Handa <handa@m17n.org>
13960
13961 The following changes are for using Unicode as an internal
13962 character model, and use UTF-8 format for buffer/string
13963 representation.
13964
13965 * .gdbinit (xchartable): Adjust for the change of char table structure.
13966 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
13967
13968 * Makefile.in (obj): Add character.o and chartab.o.
13969 (lisp, shortlisp): Remove utf-8.elc.
13970 (*.o): For many files, change dependency on charset.h to
13971 character.h, and add dependency on character.h.
13972 (character.o, chartab.o): New targets.
13973
13974 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
13975 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
13976 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
13977 of "charset.h".
13978
13979 * dired.c, filelock.c: Include "character.h".
13980
13981 * alloc.c: Include "character.h" instead of "charset.h".
13982 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
13983 (syms_of_alloc): Remove defsubr for Smake_char_table.
13984
13985 * buffer.c: Include "character.h" instead of "charset.h", don't
13986 include "coding.h".
13987 (Fset_buffer_multibyte): Adjust for UTF-8.
13988
13989 * buffer.h: EXFUN Fbuffer_live_p.
13990
13991 * callproc.c: Include "character.h" instead of "charset.h".
13992 (Fcall_process): Big change for the new code-conversion APIs.
13993
13994 * casetab.c: Include "character.h" instead of "charset.h".
13995 (set_canon, set_identity, shuffle): Adjust for the new
13996 map_char_table spec.
13997 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
13998 accessing the char table structure.
13999
14000 * chartab.c: New file that implements char table.
14001
14002 * category.c: Include "character.h".
14003 (copy_category_entry): New function.
14004 (copy_category_table): Call map_char_table and copy_category_entry.
14005 (Fmake_category_table): Initialize all top-level slots.
14006 (char_category_set): New function.
14007 (modify_lower_category_set): Delete.
14008 (Fmodify_category_entry): Call char_table_ref_and_range.
14009
14010 * category.h (CATEGORY_SET): Just call char_category_set.
14011
14012 * ccl.c: Include "character.h".
14013 (Qccl, Qcclp): New variables.
14014 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14015 it's less than 256.
14016 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14017 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14018 and DST type.
14019 (ccl_driver): Change types of argument, adjust code accordingly.
14020 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14021 ccl_driver.
14022 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14023
14024 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14025 New members src_multibyte, dst_multibyte, consumed, and produced.
14026 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14027 (CODING_SPEC_CCL_PROGRAM): New macro.
14028 (ccl_driver): Update prototype.
14029 (Qccl, Qcclp, Fccl_program_p): Extern them.
14030 (CHECK_CCL_PROGRAM): New macro.
14031
14032 * character.c, character.h, chartab.c: New files.
14033
14034 * charset.c: Mostly re-written. Move character and multibyte sequence
14035 handling codes to character.c.
14036
14037 * charset.h: Mostly re-written. Move character and multibyte sequence
14038 handling codes to character.h.
14039
14040 * coding.c, coding.h: Mostly re-written.
14041
14042 * composite.c: Include "character.h" instead of "charset.h".
14043 (CHAR_WIDTH): Move to character.h.
14044 (HASH_KEY, HASH_VALUE): Delete.
14045
14046 * composite.h (enum composition_method): Change order of enumeration
14047 symbols.
14048
14049 * data.c: Include "character.h" instead of "charset.h".
14050 (Faref): Call CHAR_TABLE_REF for a char table.
14051 (Faset): Call CHAR_TABLE_SET for a char table.
14052
14053 * dispextern.h (free_realized_face, check_face_attribytes)
14054 (generate_ascii_font): Extern them.
14055 (free_realized_multibyte_face): Delete extern.
14056
14057 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14058 table structure.
14059
14060 * editfns.c: Include "character.h" instead of "charset.h".
14061 (Fchar_to_string): Always call CHAR_STRING.
14062
14063 * emacs.c (main): Call init_charset_once, init_charset,
14064 syms_of_chartab, and syms_of_character.
14065
14066 * fileio.c: Include "character.h" instead of "charset.h".
14067 (Finsert_file_contents): Big change for the new code-conversion API.
14068 (choose_write_coding_system, Fwrite_region): Likewise.
14069 (build_annotations_2): Delete.
14070 (e_write): Big change for the new code-conversion API.
14071
14072 * fns.c: Include "character.h" instead of "charset.h".
14073 (copy_sub_char_table): Move to chartab.c.
14074 (Fcopy_sequence): Call copy_char_table for a char table.
14075 (concat): Delete codes calling count_multibyte.
14076 (string_char_to_byte, string_byte_to_char): Adjust for the new
14077 multibyte form.
14078 (internal_equal): Adjust for the change of char table structure.
14079 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14080 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14081 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14082 (char_table_translate, optimize_sub_char_table)
14083 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14084 chartab.c.
14085 (char_table_ref_and_index): Delete.
14086 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14087 (Fmd5): Call preferred_coding_system instead of accessing
14088 Vcoding_category_list. Adjust for the new code-conversion API.
14089 (syms_of_fns): Move defsubr for char table related functions to
14090 chartab.c.
14091
14092 * fontset.c: Mostly re-written.
14093
14094 * fontset.h (struct font_info): Change type of the member encoding_type.
14095 (enum FONT_SPEC_INDEX): New enum.
14096 (fontset_font_pattern, fs_load_font): Update prototype.
14097 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14098
14099 * indent.c: Include "character.h" instead of "charset.h".
14100 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14101
14102 * insdel.c: Include "character.h" instead of "charset.h".
14103 (copy_text): Don't refer to Vnonascii_translation_table.
14104 (insert_from_gap): New function.
14105
14106 * keyboard.c: Include "character.h" instead of "charset.h".
14107 (command_loop_1): Never call direct_output_forward_char before
14108 a non-ASCII character.
14109 (read_char): If Vkeyboard_translate_table is a char table, always
14110 translate a character.
14111
14112 * keymap.c: Include "character.h".
14113 (store_in_keymap): Handle the case that IDX is a cons.
14114 (Fdefine_key): Handle the case that KEY is a cons and the car part
14115 is also a cons (range).
14116 (push_key_description): Adjust for the new character code.
14117 (describe_vector): Call describe_char_table for a char table.
14118 (describe_char_table): New function.
14119
14120 * keymap.h (describe_char_table): Extern it.
14121
14122 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14123 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14124 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14125 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14126 Delete.
14127 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14128 structure.
14129 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14130 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14131 (CHARTAB_SIZE_BITS_3): New macros.
14132 (chartab_size): Extern it.
14133 (struct Lisp_Char_Table): Re-design.
14134 (struct Lisp_Sub_Char_Table): New structure.
14135 (HASH_KEY, HASH_VALUE): Move from fns.c.
14136 (CHARACTERBITS): Define as 22.
14137 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14138 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14139 (GC_SUB_CHAR_TABLE_P): New macro.
14140 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14141 (code_convert_string_norecord): Deleted extern.
14142 (init_character_once, syms_of_character, init_charset)
14143 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14144
14145 * lread.c: Include "character.h".
14146 (read_multibyte): New arg NBYTES.
14147 (read_escape): Change the meaning of returned *BYTEREP.
14148 (to_multibyte): Delete.
14149 (read1): Adjust the handling of char table and string.
14150
14151 * print.c: Include "character.h" instead of "charset.h".
14152 (print_string): Convert 8-bit raw bytes to octal form by
14153 string_escape_byte8.
14154 (print_object): Adjust for the new multibyte form. Print 8-bit
14155 raw bytes always in octal form. Handle sub char table correctly.
14156
14157 * process.c: Include "character.h" instead of "charset.h".
14158 (read_process_output, send_process): Adjust for the new
14159 code-conversion API.
14160
14161 * puresize.h (BASE_PURESIZE): Increase.
14162
14163 * regex.c: Include "character.h" instead of "charset.h".
14164 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14165 (regex_compile): Accept a range whose starting and ending
14166 character have different leading bytes.
14167 (analyse_first): Adjust for the above change.
14168
14169 * search.c: Include "character.h" instead of "charset.h".
14170 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14171 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14172
14173 * syntax.c: Include "character.h" instead of "charset.h".
14174 (syntax_parent_lookup): Delete.
14175 (Fmodify_syntax_entry): Accept a cons as CHAR.
14176 (skip_chars): Adjust for the new multibyte form.
14177 (init_syntax_once): Call char_table_set_range instead of directly
14178 accessing the structure of a char table.
14179
14180 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14181 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14182 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14183 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14184
14185 * term.c: Include "buffer.h" and "character.h".
14186 (encode_terminal_code, write_glyphs): Adjust for the new
14187 code-conversion API.
14188 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14189
14190 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14191
14192 * xdisp.c: Include "character.h".
14193 (get_next_display_element): Adjust for the new multibyte form.
14194 (disp_char_vector): Adjust for the new char table structure.
14195 (decode_mode_spec_coding): Adjust for the new structure of
14196 coding system.
14197 (decode_mode_spec): Adjust for the new code-conversion API.
14198
14199 * xfaces.c: Include "character.h" instead of "charset.h".
14200 (load_face_font): Adjust for the change of choose_face_font and
14201 FS_LOAD_FONT.
14202 (generate_ascii_font): New function.
14203 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14204 (set_font_frame_param): Adjust for the change of choose_face_font.
14205 (free_realized_face): Make it public.
14206 (free_realized_faces_for_fontset): Rename from
14207 free_realized_multibyte_face. Free also faces realized for ASCII.
14208 (choose_face_font): Change arguments. Adjust for the change of
14209 fontset_font_pattern and FS_LOAD_FONT.
14210
14211 * xfns.c: Include "character.h".
14212 (x_encode_text): Adjust for the new code-conversion API.
14213
14214 * xselect.c: Don't include "charset.h".
14215 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14216
14217 * xterm.c: Include "character.h".
14218 (x_encode_char): New argument CHARSET. Change caller.
14219 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14220 Call ENCODE_CHAR instead of SPLIT_CHAR.
14221 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14222 CHAR_WIDTH instead of CHARSET_WIDTH.
14223 (XTread_socket): Adjust for the new code-conversion API.
14224 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14225 (x_load_font): Adjust for the change of struct font.
14226
142272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14228
14229 * xfaces.c (face_at_buffer_position): Remove unused vars.
14230
142312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14232
14233 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14234 Fix overflow checking.
14235
142362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14237
14238 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14239 Cancel previous change.
14240
142412008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14242
14243 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14244 ccl->eight_bit_control. Fix check for buffer overflow.
14245 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14246 (ccl_driver): Initialize extra_bytes to 0.
14247
142482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14249
14250 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14251 return it ORed with ctrl_modifier.
14252
142532008-01-29 Miles Bader <miles@gnu.org>
14254
14255 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14256
142572008-01-28 Jason Rumney <jasonr@gnu.org>
14258
14259 * w32.c (stat): Don't double check for networked drive.
14260
142612008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14262
14263 * window.c (run_window_configuration_change_hook): New function.
14264 Code extracted from set_window_buffer. Set the selected frame.
14265 (set_window_buffer): Use it.
14266 * window.h (run_window_configuration_change_hook): Declare.
14267 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14268
14269 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14270
142712008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14272
14273 * Makefile.in: Remove references to unused macros.
14274
142752008-01-26 Eli Zaretskii <eliz@gnu.org>
14276
14277 * w32.c (g_b_init_get_sid_sub_authority)
14278 (g_b_init_get_sid_sub_authority_count): New static variables.
14279 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14280 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14281 (init_user_info): Use them to retrieve uid and gid.
14282 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14283 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14284 st_uid and st_gid of the file.
14285
142862008-01-26 Jason Rumney <jasonr@gnu.org>
14287
14288 * w32.c (logon_network_drive): New function.
14289 (stat): Use it.
14290
142912008-01-26 Chong Yidong <cyd@stupidchicken.com>
14292
14293 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14294 invisible text covered with an ellipsis.
14295
142962008-01-25 Richard Stallman <rms@gnu.org>
14297
14298 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14299 jump back to beginning. Move some other initializations after that.
14300 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14301 New variables.
14302 (syms_of_xdisp): Init them.
14303
14304 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14305
14306 * buffer.c (reset_buffer_local_variables):
14307 Implement `permanent-local-hook'.
14308 (Qpermanent_local_hook): New variable.
14309 (syms_of_buffer): Init and staticpro it.
14310
143112008-01-25 Michael Albinus <michael.albinus@gmx.de>
14312
14313 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14314
143152008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14316
14317 * fns.c (Fclrhash): Return TABLE.
14318
143192008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14320
14321 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14322 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14323 is set even without positional changes.
14324 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14325
14326 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14327
143282008-01-23 Jason Rumney <jasonr@gnu.org>
14329
14330 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14331
14332 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14333 the unicode range available in MULE by locale-coding-system.
14334 Improve dbcs lead byte detection. Set event timestamp and modifiers
14335 earlier.
14336
143372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14338
14339 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14340 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14341 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14342 when used on child processes.
14343
143442008-01-21 Michael Albinus <michael.albinus@gmx.de>
14345
14346 * dbusbind.c (Fdbus_method_return_internal): Rename from
14347 Fdbus_method_return.
14348 (Fdbus_unregister_object): Move to dbus.el.
14349 (Fdbus_call_method, Fdbus_method_return_internal)
14350 (Fdbus_send_signal): Improve debug messages.
14351
143522008-01-20 Martin Rudalics <rudalics@gmx.at>
14353
14354 * undo.c (undo_inhibit_record_point): New variable.
14355 (syms_of_undo): Initialize it.
14356 (record_point): Don't record point when undo_inhibit_record_point
14357 is set.
14358
143592008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14360
14361 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14362
14363 * xdisp.c (Qauto_hscroll_mode): New var.
14364 (syms_of_xdisp): Initialize it.
14365 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14366 window's buffer.
14367 (hscroll_windows): Don't check automatic_hscrolling_p here.
14368
14369 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14370 vscroll if we're setting window-buffer to the value it already has.
14371
143722008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14373
14374 * m/intel386.h: Remove references to XENIX.
14375
143762008-01-17 Andreas Schwab <schwab@suse.de>
14377
14378 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14379 instead of HAVE_X86_64_LIB64_DIR.
14380 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14381
143822008-01-17 Glenn Morris <rgm@gnu.org>
14383
14384 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14385 to HAVE_X86_64_LIB64_DIR.
14386
143872008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14388
14389 * s/irix3-3.h:
14390 * s/irix4-0.h:
14391 * s/386-ix.h:
14392 * s/domain.h:
14393 * s/hpux9-x11r4.h:
14394 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14395
14396 * sysdep.c: Remove code containing references to symbols defined
14397 by unsupported systems.
14398
143992008-01-16 Glenn Morris <rgm@gnu.org>
14400
14401 * coding.c (select-safe-coding-system-function): Doc fix.
14402
144032008-01-15 Glenn Morris <rgm@gnu.org>
14404
14405 * config.in: Revert 2008-01-13 change: this is a generated file.
14406
144072008-01-13 Tom Tromey <tromey@redhat.com>
14408
14409 * lisp.h: Fix typo.
14410
144112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14412
14413 * m/sequent-ptx.h:
14414 * m/sequent.h:
14415 * s/ptx.h:
14416 * s/ptx4-2.h:
14417 * s/ptx4.h: Remove files for systems no longer supported.
14418
14419 * callproc.c (Fcall_process): Fix previous change.
14420
144212008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14422
14423 * unexsunos4.c: Remove file, system not supported anymore.
14424
14425 * m/mips.h:
14426 * m/intel386.h:
14427 * callproc.c:
14428 * config.in:
14429 * ecrt0.c:
14430 * emacs.c:
14431 * fileio.c:
14432 * frame.c:
14433 * getpagesize.h:
14434 * keyboard.c:
14435 * lread.c:
14436 * process.c:
14437 * puresize.h:
14438 * sysdep.c:
14439 * systty.h:
14440 * syswait.h:
14441 * unexec.c:
14442 * xdisp.c:
14443 * alloc.c: Remove code containing references to symbols defined by
14444 unsupported systems.
14445
144462008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14447
14448 * coding.c (detect_coding_mask): Fix previous change.
14449
144502008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14451
14452 * coding.c (detect_coding_iso2022): New arg
14453 latin_extra_code_state. Allow Latin extra codes only
14454 when *latin_extra_code_state is nonzero.
14455 (detect_coding_mask): If there is a NULL byte, detect the encoding
14456 as UTF-16 or binary. If Latin extra codes exist, detect the
14457 encoding as ISO-2022 only when there's no other proper encoding is
14458 found.
14459
144602008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14461
14462 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14463 #ifdef MAC_OS.
14464
144652008-01-08 Richard Stallman <rms@gnu.org>
14466
14467 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14468
144692008-01-06 Nick Roberts <nickrob@snap.net.nz>
14470
14471 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14472 menu bar in parentheses.
14473
144742008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14475
14476 * m/7300.h:
14477 * m/acorn.h:
14478 * m/alliant-2800.h:
14479 * m/alliant.h:
14480 * m/alliant1.h:
14481 * m/alliant4.h:
14482 * m/altos.h:
14483 * m/amdahl.h:
14484 * m/apollo.h:
14485 * m/att3b.h:
14486 * m/aviion-intel.h:
14487 * m/aviion.h:
14488 * m/celerity.h:
14489 * m/clipper.h:
14490 * m/cnvrgnt.h:
14491 * m/convex.h:
14492 * m/cydra5.h:
14493 * m/delta88k.h:
14494 * m/dpx2.h:
14495 * m/dual.h:
14496 * m/elxsi.h:
14497 * m/f301.h:
14498 * m/gould-np1.h:
14499 * m/gould.h:
14500 * m/i860.h:
14501 * m/ibmps2-aix.h:
14502 * m/ibmrt-aix.h:
14503 * m/ibmrt.h:
14504 * m/irist.h:
14505 * m/is386.h:
14506 * m/isi-ov.h:
14507 * m/mega68.h:
14508 * m/mg1.h:
14509 * m/news-r6.h:
14510 * m/news-risc.h:
14511 * m/news.h:
14512 * m/nh3000.h:
14513 * m/nh4000.h:
14514 * m/ns16000.h:
14515 * m/ns32000.h:
14516 * m/nu.h:
14517 * m/orion.h:
14518 * m/orion105.h:
14519 * m/paragon.h:
14520 * m/pfa50.h:
14521 * m/plexus.h:
14522 * m/pyramid.h:
14523 * m/pyrmips.h:
14524 * m/sh3el.h:
14525 * m/sps7.h:
14526 * m/sr2k.h:
14527 * m/stride.h:
14528 * m/sun1.h:
14529 * m/sun2.h:
14530 * m/sun3-68881.h:
14531 * m/sun3-fpa.h:
14532 * m/sun3-soft.h:
14533 * m/sun3.h:
14534 * m/sun386.h:
14535 * m/symmetry.h:
14536 * m/tad68k.h:
14537 * m/tahoe.h:
14538 * m/targon31.h:
14539 * m/tek4300.h:
14540 * m/tekxd88.h:
14541 * m/tower32.h:
14542 * m/tower32v3.h:
14543 * m/ustation.h:
14544 * m/wicat.h:
14545 * m/xps100.h:
14546 * s/cxux.h:
14547 * s/cxux7.h:
14548 * s/dgux.h:
14549 * s/dgux4.h:
14550 * s/dgux5-4-3.h:
14551 * s/dgux5-4r2.h:
14552 * s/esix.h:
14553 * s/esix5r4.h:
14554 * s/hiuxmpp.h:
14555 * s/hiuxwe2.h:
14556 * s/iris3-5.h:
14557 * s/iris3-6.h:
14558 * s/isc2-2.h:
14559 * s/isc3-0.h:
14560 * s/isc4-0.h:
14561 * s/isc4-1.h:
14562 * s/newsos5.h:
14563 * s/newsos6.h:
14564 * s/osf1.h:
14565 * s/osf5-0.h:
14566 * s/riscix1-1.h:
14567 * s/riscix12.h:
14568 * s/sco4.h:
14569 * s/sco5.h:
14570 * s/sunos4-0.h:
14571 * s/sunos4-1.h:
14572 * s/sunos413.h:
14573 * s/sunos4shr.h:
14574 * s/umax.h:
14575 * s/unipl5-2.h:
14576 * s/xenix.h:
14577 * cxux-crt0.s:
14578 * unexapollo.c:
14579 * unexconvex.c:
14580 * unexenix.c:
14581 * unexsni.c: Remove files for systems no longer supported.
14582
14583 * m/intel386.h: Remove references to unsupported systems.
14584
14585 * w32.c (get_emacs_configuration): Remove reference to i860.
14586
14587 * sysdep.c: Remove dead code.
14588
145892008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14590
14591 * s/rtu.h:
14592 * m/masscomp.h: Remove files. Platform is obsolete.
14593
145942008-01-04 Michael Albinus <michael.albinus@gmx.de>
14595
14596 * dbusbind.c (Fdbus_method_return): New function.
14597 (xd_read_message): Add the serial number to the event.
14598 (Fdbus_register_method): Activate the function.
14599
146002008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14601
14602 * keyboard.c (read_key_sequence): Fix typo.
14603
146042008-01-03 Michael Albinus <michael.albinus@gmx.de>
14605
14606 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14607 (xd_signature, xd_append_arg): Handle element type detection for
14608 empty arrays.
14609 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
14610 SDATA () calls; this must be solved more general.
14611 (Fdbus_register_signal): Use SBYTES instead of strlen.
14612
146132008-01-03 Magnus Henoch <magnus@zemdatav>
14614
14615 * dbusbind.c (xd_append_arg): Use unsigned char instead of
14616 unsigned int for byte values (necessary for big-endian platform).
14617 (Fdbus_call_method): Handle the case of no returned arguments.
14618
146192007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
14620
14621 * dbusbind.c (xd_read_message): Use non-static input_event struct.
14622
146232007-12-31 Magnus Henoch <mange@freemail.hu>
14624
14625 * dbusbind.c (xd_signature): Signature of variant is just "v".
14626
146272007-12-30 Michael Albinus <michael.albinus@gmx.de>
14628
14629 * dbusbind.c: Fix several errors and compiler warnings.
14630 Reported by Tom Tromey <tromey@redhat.com>.
14631 (XD_ERROR, XD_DEBUG_MESSAGE)
14632 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
14633 (xd_append_arg): Part for basic D-Bus types rewritten.
14634 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
14635 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
14636 appropriate.
14637 (xd_read_message): Return Qnil. Don't signal an error; it is not
14638 useful during event reading.
14639 (Fdbus_register_signal): Signal an error if the check for
14640 FUNCTIONP fails.
14641 (Fdbus_register_method): New function. The implementation is not
14642 complete, the call of the function signals an error therefore.
14643 (Fdbus_unregister_object): New function, renamed from
14644 Fdbus_unregister_signal. The initial check signals an error, if
14645 the object is not well formed.
14646
146472007-12-30 Richard Stallman <rms@gnu.org>
14648
14649 * textprop.c (get_char_property_and_overlay):
14650 Signal error if POSITION is out of range in a buffer.
14651
146522007-12-29 Martin Rudalics <rudalics@gmx.at>
14653
14654 * w32fns.c (Fx_create_frame): Make copy of frame parameters
14655 because the original parameters are in pure storage now.
14656
146572007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14658
14659 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
14660
146612007-12-22 Eli Zaretskii <eliz@gnu.org>
14662
14663 * callint.c (syms_of_callint) <command-history>: Add reference to
14664 history-length in the doc string.
14665
146662007-12-17 Jason Rumney <jasonr@gnu.org>
14667
14668 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
14669 before passing as wParam.
14670
146712007-12-22 Michael Albinus <michael.albinus@gmx.de>
14672
14673 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
14674 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
14675 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
14676 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
14677 as number.
14678 (Fdbus_call_method): Fix docstring.
14679
146802007-12-21 Michael Albinus <michael.albinus@gmx.de>
14681
14682 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
14683 New macros.
14684 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
14685 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
14686 Simplify.
14687 (xd_signature): New function.
14688 (xd_append_arg): Compute also signatures. Major rewrite.
14689 (xd_retrieve_arg): Make debug messages friendly.
14690 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
14691 Check for signatures of arguments.
14692
146932007-12-19 Michael Albinus <michael.albinus@gmx.de>
14694
14695 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
14696 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
14697 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
14698 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
14699 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
14700 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
14701 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
14702 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
14703 (xd_retrieve_value): Remove. Functionality included in ...
14704 (xd_append_arg): New function.
14705 (Fdbus_call_method, Fdbus_send_signal): Apply it.
14706
147072007-12-16 Michael Albinus <michael.albinus@gmx.de>
14708
14709 * dbusbind.c (top): Include <stdio.h>.
14710 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
14711 dbus_message_new_method_call and dbus_message_new_signal.
14712 (Fdbus_register_signal): Rename unique_name to uname.
14713 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
14714 non-existing unique name. Fix typos in matching rule. Return an
14715 object which is useful in Fdbus_unregister_signal.
14716 (Fdbus_unregister_signal): Reimplementation, in order to remove
14717 only the corresponding entry.
14718 (Vdbus_registered_functions_table): Change the order of entries.
14719 Apply these changes in xd_read_message and Fdbus_register_signal.
14720
147212007-12-16 Andreas Schwab <schwab@suse.de>
14722
14723 * fileio.c (Finsert_file_contents): Fix overflow check to not
14724 depend on undefined integer overflow.
14725
147262007-12-14 Jason Rumney <jasonr@gnu.org>
14727
14728 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
14729 for characters above 127.
14730
147312007-12-13 Jason Rumney <jasonr@gnu.org>
14732
14733 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
14734 before dereferencing array.
14735 (lookup_vk_code): Remove zero comparison.
14736
147372007-12-14 Michael Albinus <michael.albinus@gmx.de>
14738
14739 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
14740 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
14741 Use `unsigned int' instead of `uint'.
14742 (xd_read_message, Fdbus_register_signal): Split expressions into
14743 multiple lines before operators "&&" and "||", according to the
14744 GNU Coding Standards.
14745
147462007-12-14 Eli Zaretskii <eliz@gnu.org>
14747
14748 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
14749
147502007-12-12 Juri Linkov <juri@jurta.org>
14751
14752 * buffer.c (Frename_buffer): In interactive spec replace
14753 `read-buffer' with `read-string' that uses `buffer-name-history'
14754 as history, and the current buffer's name as default.
14755
147562007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
14757
14758 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
14759 manipulating the backtrace manually.
14760 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
14761 (struct backtrace, backtrace_list): Remove.
14762 (command_loop_1): Remove dead var `no_direct'.
14763
14764 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
14765 preserve non-built-in buffer-local variables.
14766 (Fkill_all_local_variables): Don't re-create&re-set permanent
14767 buffer-local variables.
14768
147692007-12-09 Juri Linkov <juri@jurta.org>
14770
14771 * buffer.c (Frename_buffer): Change interactive spec from "s" to
14772 Lisp code that uses `read-buffer' with current buffer as default.
14773
147742007-12-08 Michael Albinus <michael.albinus@gmx.de>
14775
14776 * dbusbind.c (xd_read_message): Generate an event for every
14777 registered handler. There might be several handlers registered
14778 for the same signal.
14779 (Fdbus_register_signal): Don't overwrite a registration for the
14780 same signal. Add a new registration if handlers are different.
14781 (Vdbus_registered_functions_table): Rework doc string.
14782
147832007-12-07 Michael Albinus <michael.albinus@gmx.de>
14784
14785 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
14786 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
14787 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
14788 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
14789 Unify argument lists.
14790 (xd_read_message, Fdbus_register_signal): Reorder and extend event
14791 arguments and hash table keys. Use unique name for service.
14792 (Fdbus_unregister_signal): Remove checks.
14793 (Vdbus_registered_functions_table): Fix doc string.
14794
147952007-12-05 Magnus Henoch <mange@freemail.hu>
14796
14797 * process.c (make_process): Initialize pty_flag to 0.
14798
147992007-12-05 Jason Rumney <jasonr@gnu.org>
14800
14801 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
14802 specified XBMs.
14803
148042007-12-05 Richard Stallman <rms@gnu.org>
14805
14806 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
14807
148082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14809
14810 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
14811 New variable.
14812 (mac_try_close_socket) [MAC_OSX]: New function.
14813 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
14814 Update cfsockets_for_select. Replace invalid CFRunLoop source.
14815
14816 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
14817 Use mac_try_close_socket.
14818
148192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14820
14821 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
14822 reloc_base.
14823 (copy_dysymtab): Compute relocation base here.
14824 (rebase_reloc_address) [__ppc64__]: New function.
14825 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
14826 changed.
14827
148282007-12-05 Jason Rumney <jasonr@gnu.org>
14829
14830 * w32proc.c (sys_spawnve): Quote args with wildcards.
14831
148322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14833
14834 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
14835 __objc_* sections.
14836 (unrelocate) [_LP64]: Set relocation base to address of data segment.
14837
148382007-12-05 Michael Albinus <michael.albinus@gmx.de>
14839
14840 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
14841 Move check for Vdbus_registered_functions_table to
14842 xd_read_queued_messages.
14843 (xd_read_queued_messages): Protect xd_read_message calls by
14844 internal_condition_case_1.
14845
148462007-12-04 Michael Albinus <michael.albinus@gmx.de>
14847
14848 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
14849 Qdbus_system_bus and Qdbus_session_bus, respectively.
14850 (Vdbus_intern_symbols): Remove.
14851 (Vdbus_registered_functions_table): New hash table.
14852 (XD_SYMBOL_INTERN_SYMBOL): Remove.
14853 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
14854 Rewrite in order to manage registered functions by hash table
14855 Vdbus_registered_functions_table.
14856
148572007-12-03 Jan Djärv <jan.h.d@swipnet.se>
14858
14859 * xterm.c: Update URL to Window Manager Specification in comment.
14860
148612007-12-02 Michael Albinus <michael.albinus@gmx.de>
14862
14863 * config.in (HAVE_DBUS): Add.
14864
14865 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
14866 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
14867 (obj): Add $(DBUS_OBJ).
14868 (LIBES): Add $(DBUS_LIBS).
14869 (dbusbind.o): New target.
14870
14871 * dbusbind.c: New file.
14872
14873 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
14874
14875 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
14876 (Qdbus_event): New Lisp symbol.
14877 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
14878 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 14879 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
14880
14881 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
14882
148832007-12-01 Richard Stallman <rms@gnu.org>
14884
14885 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
14886
148872007-11-30 Jason Rumney <jasonr@gnu.org>
14888
14889 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
14890 (w32con_reset_terminal_modes): Clear screen buffer.
14891 (w32_face_attributes): Don't use color indexes that are out of range.
14892 Only reverse the default colors.
14893
14894 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
14895 WINDOWSNT.
14896
14897 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
14898
148992007-11-29 Jason Rumney <jasonr@gnu.org>
14900
14901 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
14902 (w32_face_attributes): Use Vtty_defined_color_alist to determine
14903 if the terminal colors are initialized.
14904 (unspecified_fg, unspecified_bg): Remove unused declarations.
14905
149062007-11-29 Andreas Schwab <schwab@suse.de>
14907
14908 * keyboard.c (apply_modifiers): Fix typo.
14909
149102007-11-29 Richard Stallman <rms@gnu.org>
14911
14912 * keymap.c (Fcurrent_local_map): Doc fix.
14913
149142007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
14915
14916 * s/gnu-kfreebsd.h: New file.
14917
149182007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
14919
14920 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
14921 Don't cast redundantly.
14922
14923 * keyboard.c (KEY_TO_CHAR): New macro.
14924 (parse_modifiers, apply_modifiers): Accept integer arguments.
14925 (read_key_sequence): Use them to unify the "shift->unshift" mapping
14926 for chars and symbol keys.
14927 After doing such remapping, apply function-key-map again.
14928
149292007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
14930
14931 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
14932 compiled anymore.
14933
149342007-11-26 Andreas Schwab <schwab@suse.de>
14935
14936 * process.c (list_processes_1): Fix indentation level of the
14937 command column.
14938
149392007-11-23 Andreas Schwab <schwab@suse.de>
14940
14941 * editfns.c (Fformat): Handle %c specially since it requires the
14942 argument to be of type int.
14943
149442007-11-23 Markus Triska <markus.triska@gmx.at>
14945
14946 * emacs.c (main): Call init_editfns before init_process, since
14947 init_process sets Vprocess_connection_type depending on OS release.
14948
149492007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
14950
14951 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
14952 (find_symbol_value): Use do_symval_forwarding.
14953
14954 * data.c (set_internal): Set the value in the `cons-cell' (for
14955 Buffer_Local_values) not only for frame-local variables.
14956
149572007-11-22 Andreas Schwab <schwab@suse.de>
14958
14959 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
14960 values to sprintf.
14961 * keymap.c (Fsingle_key_description): Likewise.
14962 * print.c (print_object): Likewise.
14963
149642007-11-22 Jan Djärv <jan.h.d@swipnet.se>
14965
14966 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
14967 file for image is nil.
14968
149692007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
14970
14971 * term.c: Include stdarg.h.
14972 (fatal): Implement using varargs.
14973 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
14974
149752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14976
14977 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
14978 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
14979 Update call to buffer_slot_type_mismatch.
14980 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
14981 (buffer_slot_type_mismatch): Update.
14982 * buffer.c (buffer_local_types): Remove.
14983 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
14984 (defvar_per_buffer): Set the type in the buffer_objfwd.
14985
149862007-11-21 Jason Rumney <jasonr@gnu.org>
14987
14988 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
14989 CreateFileMapping returns NULL on failure.
14990
149912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14992
14993 * search.c (Fset_match_data): Remove the `evaporate' feature.
14994 (unwind_set_match_data): Don't use the `evaporate' feature.
14995
149962007-11-21 Jason Rumney <jasonr@gnu.org>
14997
14998 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
14999
15000 * w32console.c (w32con_write_glyphs): Remove unused variables.
15001
150022007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15003
15004 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15005
15006 * s/darwin.h (MULTI_KBOARD): Remove.
15007
15008 * macfns.c (x_create_tip_frame, Fx_create_frame)
15009 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15010
150112007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15012
15013 * buffer.c (Fbuffer_local_value): Remove redundant test.
15014 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15015 than in `current-buffer' to match the comment.
15016 Do the swap using swap_in_global_binding.
15017
15018 * data.c (store_symval_forwarding, set_internal):
15019 * eval.c (specbind): Remove dead code.
15020
15021 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15022 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15023 Since we do not want to see internal Lisp_*fwd objects here.
15024
150252007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15026
15027 * sysdep.c (init_system_name): Use getaddrinfo if available.
15028
15029 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15030 (x_scroll_bar_note_movement): start, end, with, height in struct
15031 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15032
150332007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15034
15035 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15036
150372007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15038
15039 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15040 This undoes Richard's change of 14-Oct-2002.
15041
15042 * alloc.c (allocate_other_vector):
15043 * lisp.h (allocate_other_vector): Remove.
15044
15045 * window.c (struct save_window_data): Move non-lisp data to the end
15046 and make it `int' rather than Lisp_Object.
15047 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15048 Done wrap/unwrap integer values.
15049 (Fset_window_configuration, compare_window_configurations):
15050 Update use of fields to their new types.
15051
15052 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15053 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15054 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15055 (SET_SCROLL_BAR_X_WINDOW): Remove.
15056 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15057 Access the new x_window field directly.
15058 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15059 Don't wrap/unwrap integers into Lisp_Objects.
15060 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15061 (x_scroll_bar_report_motion):
15062 Don't wrap/unwrap integers into Lisp_Objects.
15063 (x_term_init): Use SDATA.
15064 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15065 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15066 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15067 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15068 * xfns.c (x_set_background_color):
15069 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15070 Access the new x_window field directly.
15071
15072 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15073 (allocate_pseudovector): Make non-static.
15074
15075 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15076 (allocate_pseudovector): Declare.
15077 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15078
150792007-11-15 Andreas Schwab <schwab@suse.de>
15080
15081 * editfns.c (Fformat): Correctly format EMACS_INT values.
15082 Also take precision into account when formatting an integer.
15083
15084 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15085
150862007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15087
15088 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15089 (syms_of_keyboard): Defsubr it.
15090
15091 * data.c (swap_in_global_binding): Fix longstanding bug where
15092 store_symval_forwarding was not called with the right second argument,
15093 thus causing objfwd-ing from being dropped.
15094
150952007-11-14 Juanma Barranquero <lekktu@gmail.com>
15096
15097 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15098 (Fx_display_pixel_height, Fx_display_planes)
15099 (Fx_display_color_cells, Fx_server_max_request_size)
15100 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15101 (Fx_display_visual_class, Fx_display_save_under):
15102 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15103 (Fx_display_pixel_height, Fx_display_planes)
15104 (Fx_display_color_cells, Fx_server_max_request_size)
15105 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15106 (Fx_display_mm_height, Fx_display_mm_width)
15107 (Fx_display_backing_store, Fx_display_visual_class)
15108 (Fw32_select_font, Fx_display_save_under):
15109 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15110 (Fx_display_pixel_height, Fx_display_planes)
15111 (Fx_display_color_cells, Fx_server_max_request_size)
15112 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15113 (Fx_display_save_under): Fix typos in docstrings.
15114
151152007-11-14 Juanma Barranquero <lekktu@gmail.com>
15116
15117 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15118 corresponding to deleted entries; they are an implementation detail.
15119 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15120 Remove variables.
15121 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15122 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15123 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15124 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15125 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15126 (Fw32_define_rgb_color, Fw32_load_color_file)
15127 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15128 Fix typos in docstrings.
15129 (Fx_server_version): Reflow docstring.
15130 (Fw32_shell_execute): Doc fixes.
15131
151322007-11-13 Juanma Barranquero <lekktu@gmail.com>
15133
15134 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15135 if w32_parse_hot_key returned nil.
15136
151372007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15138
15139 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15140
151412007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15142
aac0c6e3
MR
15143 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15144
15145 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15146
15147 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15148 Remove W32_SCROLL_BAR_CLICK_EVENT.
15149
15150 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15151 Add MULTIMEDIA_KEY_EVENT.
15152
15153 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15154 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15155 (make_lispy_event) [WINDOWSNT]: Use it to translate
15156 MULTIMEDIA_KEY_EVENT.
15157
15158 * w32term.h (WM_APPCOMMAND): Define if not already.
15159 (GET_APPCOMMAND_LPARAM): Likewise.
15160
15161 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15162 WM_APPCOMMAND.
15163
15164 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15165 (syms_of_w32fns): Export and initialize it.
15166 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15167
151682007-11-09 Chong Yidong <cyd@stupidchicken.com>
15169
15170 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15171 twice.
15172
15173 * xdisp.c (handle_face_prop): Fix last change.
15174
151752007-11-09 Richard Stallman <rms@gnu.org>
15176
15177 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15178 not just for after-strings and before-strings.
15179 Call face_for_overlay_string and pass the overlay to it.
15180 (handle_display_prop): Determine whether property came from an overlay.
15181 Pass OVERLAY arg to handle_single_display_spec.
15182 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15183 (load_overlay_strings): Fill in it->string_overlays.
15184 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15185
15186 * xfaces.c (face_for_overlay_string): Function renamed from
15187 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15188
15189 * dispextern.h (struct it): New elt string_overlays.
15190 New elt from_overlay, also in stack.
15191 Rearrange a few elements.
15192 (face_for_overlay_string): Decl renamed from
15193 face_at_buffer_position_no_overlays, and add argument.
15194
151952007-11-09 Richard Stallman <rms@gnu.org>
15196
15197 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15198 to get the base face for an overlay string.
15199
15200 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15201
15202 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15203
15204 * xdisp.c (handle_stop): Move some code out of loop.
15205
152062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15207
15208 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15209 Fix conversion from Lisp object to ATSUFontID.
15210
152112007-11-09 Jason Rumney <jasonr@gnu.org>
15212
15213 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15214
152152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15216
15217 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15218 Don't assume regions are aligned to page boundary.
15219 (print_load_command_name): Add LC_UUID if defined.
15220
152212007-11-09 Richard Stallman <rms@gnu.org>
15222
15223 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15224
152252007-11-07 Jason Rumney <jasonr@gnu.org>
15226
15227 * s/windows95.h: Remove.
15228
152292007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15230
15231 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15232 abort with a message on unhandled store_type values.
15233
152342007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15235
15236 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15237 Remove HAVE_X11R5 and HAVE_X11R4.
15238
152392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15240
15241 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15242
152432007-11-01 Johan Bockgård <bojohan@gnu.org>
15244
15245 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15246 Don't set s->stippled_p here, since it has already been set by
15247 x_set_glyph_string_gc from x_draw_glyph_string.
15248
152492007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15250
15251 * sunfns.c: Remove file.
15252
15253 * m/sun386.h:
15254 * m/sun2.h:
15255 * m/sparc.h: Remove Sun windows code.
15256
152572007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15258
15259 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15260 (init_keyboard): Set current_kboard's window-system to nil.
15261 (tty_read_avail_input): Typo.
15262 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15263
152642007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15265
15266 * s/usg5-4.h:
15267 * s/usg5-3.h:
15268 * s/ptx.h:
15269 * m/is386.h:
15270 * m/ibmps2-aix.h:
15271 * Makefile.in: Remove all mentions of X10.
15272
15273 * dispnew.c (syms_of_display): Don't mention version 10.
15274
152752007-10-28 Juanma Barranquero <lekktu@gmail.com>
15276
15277 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15278 ($(BLD)/abbrev.$(O)): Remove.
15279
152802007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15281
15282 Rewrite abbrev.c in Elisp.
15283 * image.c (Qcount): Don't declare as extern.
15284 (syms_of_image): Initialize and staticpro `Qcount'.
15285 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15286 * emacs.c (main): Don't call syms_of_abbrev.
15287 * Makefile.in (obj): Remove abbrev.o.
15288 (abbrev.o): Remove.
15289 * abbrev.c: Remove.
15290
152912007-10-26 Martin Rudalics <rudalics@gmx.at>
15292
15293 * window.c (window_min_size_2): Don't count header-line.
15294
152952007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15296
15297 * frame.h (struct frame): Move all bit fields after the first bit
15298 field to take advantage of the available space. Group all the
15299 chars together to reduce wasted space due to padding.
15300
153012007-10-26 Juanma Barranquero <lekktu@gmail.com>
15302
15303 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15304
15305 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15306 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15307 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15308 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15309 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15310 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15311 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15312 (last_marked, mark_object_loop_halt): Make static.
15313
15314 * frame.c (syms_of_frame) <delete-frame-functions>:
15315 Fix typo in docstring.
15316
153172007-10-25 Juanma Barranquero <lekktu@gmail.com>
15318
15319 * w32.c (init_environment): Fix tiny memory leak.
15320 (w32_get_resource): Remove unused variable `ok'.
15321
153222007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15323
15324 Make `window-system' into a keyboard-local variable (rather than
15325 frame-local as done originally by multi-tty).
15326
15327 * keyboard.h (struct kboard): Add Vwindow_system.
15328 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15329 (mark_kboards): Mark Vwindow_system.
15330
15331 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15332 (init_display): Don't set the obsolete `window-system' frame-param.
15333
15334 * xterm.c (x_term_init):
15335 * w32term.c (w32_create_terminal):
15336 * term.c (init_tty): Set Vwindow_system.
15337 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15338 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15339
15340 * xfns.c (Fx_create_frame, x_create_tip_frame):
15341 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15342 * macfns.c (Fx_create_frame):
15343 Don't set the obsolete `window-system' frame-param.
15344
15345 * frame.h (Qwindow_system): Remove.
15346 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15347 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15348
153492007-10-24 Richard Stallman <rms@gnu.org>
15350
15351 * frame.c (x_figure_window_size): For fullscreen case,
15352 set USPosition | PPosition without clobbering rest of window_prompting.
15353
15354 * keyboard.c (Fcurrent_idle_time): Doc fix.
15355
15356 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15357
153582007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15359
15360 * process.c (unwind_request_sigio): Only define if __ultrix__.
15361
15362 * callproc.c (child_setup): Remove spurious *.
15363
15364 * lisp.h (Fget_text_property): Declare.
15365 (have_menus_p): Declare it here rather than in sys-dep header files.
15366 * macterm.h (have_menus_p):
15367 * msdos.h (have_menus_p):
15368 * xterm.h (have_menus_p): Remove.
15369
15370 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15371 (Fmake_variable_frame_local): Just check the variable's const-ness
15372 rather than checking nil or t.
15373
153742007-10-22 Jason Rumney <jasonr@gnu.org>
15375
15376 * w32fns.c: Include math.h.
15377 (w32_abort): Declaration moved to nt/config.nt.
15378
15379 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15380 (abort): Redefinition moved to nt/config.nt.
15381
15382 * m/windowsnt.h: Remove.
15383
153842007-10-22 Juanma Barranquero <lekktu@gmail.com>
15385
15386 * emacs.c (Fdump_emacs): Fix typo in message.
15387 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15388 <installation-directory>: Reflow docstring.
15389
153902007-10-22 Juri Linkov <juri@jurta.org>
15391
15392 * minibuf.c: Allow minibuffer default to be a list of default values.
15393 With empty input use the first element of this list as returned default.
15394 (string_to_object)
15395 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15396 (read_minibuf): If defalt is cons, set histstring to its car.
15397 (Fread_string): If default_value is cons, set val to its car.
15398 (Fread_buffer): If def is cons, use its car.
15399 (Fcompleting_read): If defalt is cons, set val to its car.
15400
154012007-10-21 Michael Albinus <michael.albinus@gmx.de>
15402
15403 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15404
154052007-10-20 Juanma Barranquero <lekktu@gmail.com>
15406
15407 * doc.c (Fdocumentation): Check for advice in all cases.
15408
154092007-10-19 Chong Yidong <cyd@stupidchicken.com>
15410
15411 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15412
154132007-10-19 Richard Stallman <rms@gnu.org>
15414
15415 * doc.c (Fdocumentation): Check for and handle an advised function.
15416
154172007-10-19 Juanma Barranquero <lekktu@gmail.com>
15418
15419 * process.c (Fset_process_filter): Doc fix.
15420
154212007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15422
15423 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15424 which caused key-translation-map to applied repeatedly (thus breaking
15425 double-mode).
15426
154272007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * xselect.c (x_own_selection, x_handle_selection_clear)
15430 (x_clear_frame_selections):
15431 * w32menu.c (list_of_panes, list_of_items):
15432 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15433 * textprop.c (validate_plist, interval_has_all_properties)
15434 (interval_has_some_properties, interval_has_some_properties_list)
15435 (add_properties, text_property_list):
15436 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15437 * minibuf.c (Fassoc_string):
15438 * macselect.c (x_own_selection, x_clear_frame_selections)
15439 (Fx_disown_selection_internal):
15440 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15441 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15442
154432007-10-17 Chong Yidong <cyd@stupidchicken.com>
15444
15445 * process.c: Link to libs for calling res_init() if available.
15446 (Fmake_network_process): Call res_init() before getaddrinfo or
15447 gethostbyname, if possible.
15448
154492007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15450
15451 * lread.c (read1): Set pvectype for char_tables.
15452
15453 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15454 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15455 Add type checks.
15456 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15457
15458 * alloc.c (free_misc): Use XMISCTYPE.
15459 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15460
154612007-10-17 Glenn Morris <rgm@gnu.org>
15462
15463 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15464 (syms_of_minibuf): Add Qcompletion_ignore_case.
15465 * dired.c (Qcompletion_ignore_case): Change to external.
15466 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15467 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15468 (Fread_file_name): Use it rather than intern'ing.
15469
15470 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15471 (Fread_coding_system): Ignore case of user input.
15472
154732007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15474
15475 * xdisp.c (handle_display_prop): Ignore display specs after
15476 replacing one when string text is being replaced.
15477 (handle_single_display_spec): Pretend as if characters with display
15478 property haven't been consumed only when buffer text is being replaced.
15479
154802007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15481
15482 * xfns.c (Fx_create_frame, Fx_display_list):
15483 * window.c (window_fixed_size_p, enlarge_window)
15484 (shrink_window_lowest_first):
15485 * macterm.c (init_font_name_table):
15486 * macfns.c (Fx_create_frame, Fx_display_list):
15487 * lread.c (close_load_descs):
15488 * keyboard.c (read_char_x_menu_prompt):
15489 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15490 * coding.c (code_convert_region_unwind): Test the type of an object
15491 rather than just !NILP before extracting data from it.
15492
15493 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15494
15495 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15496 (XMISCANY): New macro.
15497 (XMISCTYPE): Use it.
15498 (struct Lisp_Misc_Any): New type.
15499 (union Lisp_Misc): Use it.
15500 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15501 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15502 (find_symbol_value, set_internal, default_value, Fset_default)
15503 (Fmake_variable_buffer_local, Fmake_local_variable)
15504 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15505 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15506 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15507 * alloc.c (allocate_buffer): Set the size and tag.
15508 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15509 Use XMISCANY.
15510 (die): Follow the GNU convention for error messages.
15511 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15512 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15513 tag any more.
15514 (set_buffer_internal_1):
15515 * frame.c (store_frame_param):
15516 * eval.c (specbind):
15517 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15518
15519 * doc.c (Fsnarf_documentation): Simplify.
15520
155212007-10-14 Juanma Barranquero <lekktu@gmail.com>
15522
15523 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15524 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15525
155262007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15527
15528 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15529
155302007-10-14 Juanma Barranquero <lekktu@gmail.com>
15531
15532 * eval.c (do_autoload): Don't save autoloads.
15533
15534 * data.c (Ffset): Save autoload of the function being set.
15535
155362007-10-07 John Paul Wallington <jpw@pobox.com>
15537
15538 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15539 parameter before setting up faces.
15540
155412007-10-13 Eli Zaretskii <eliz@gnu.org>
15542
15543 * ccl.c (Fregister_code_conversion_map):
15544 * keyboard.c (append_tool_bar_item): Reformat last change.
15545
15546 * lisp.h (eabs): Rename from `abs'. All callers changed.
15547
155482007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15549
15550 * buffer.c (add_overlay_mod_hooklist):
15551 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15552 * fontset.c (make_fontset):
15553 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15554 (append_tool_bar_item):
15555 * macmenu.c (grow_menu_items):
15556 * w32menu.c (grow_menu_items):
15557 * xmenu.c (grow_menu_items): Use larger_vector.
15558
155592007-10-13 Eli Zaretskii <eliz@gnu.org>
15560
15561 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15562 selected frame'' on MSDOS).
15563
155642007-10-12 Martin Rudalics <rudalics@gmx.at>
15565
15566 * frame.c (Qexplicit_name): New variable.
15567 (x_report_frame_params): Report it in parameter alist.
15568 (syms_of_frame): Intern and staticpro it.
15569
155702007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15571
15572 * macfns.c (x_create_tip_frame): Set terminal for frame.
15573
155742007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15575
15576 * frame.c (Qenvironment): Remove.
15577 (syms_of_frame) <Qenvironment>: Don't initialize.
15578 (Fdelete_frame): Don't treat the `environment' param specially.
15579 * frame.h (Qenvironment): Don't declare.
15580 * callproc.c (set_initial_environment): Don't set unused frame param.
15581
15582 * frame.c (Fframe_with_environment): Remove.
15583 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15584
15585 * lisp.h (Fframe_with_environment): Don't declare.
15586
155872007-10-10 Juanma Barranquero <lekktu@gmail.com>
15588
15589 * indent.c (indent_tabs_mode, last_known_column)
15590 (last_known_column_modified): Make static.
15591 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15592
155932007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15594
15595 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15596
155972007-10-09 Jason Rumney <jasonr@gnu.org>
15598
15599 * w32term.c (x_set_window_size): Disable code that attempts to tell
15600 Lisp code about a size change before it actually happens.
15601
156022007-10-09 Richard Stallman <rms@gnu.org>
15603
15604 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15605 return HANDLED_RETURN.
15606
156072007-10-08 Martin Rudalics <rudalics@gmx.at>
15608
15609 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
15610 when there's an unread command event.
15611
15612 * frame.c (focus_follows_mouse): Move here from frame.el to allow
15613 window autoselection act appropriately when leaving selected frame.
15614 (syms_of_frame): Initialize focus_follows_mouse.
15615 * frame.h (focus_follows_mouse): Extern it.
15616 * macterm.c (XTread_socket): When focus_follows_mouse is nil
15617 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
15618 * msdos.c (dos_rawgetc): Likewise.
15619 * w32term.c (w32_read_socket): Likewise.
15620 * xterm.c (handle_one_xevent): Likewise.
15621 * xdisp.c (syms_of_xdisp): In doc-string of
15622 mouse-autoselect-window mention focus-follows-mouse.
15623
156242007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15625
15626 * macterm.c (mac_load_query_font): Fix missing return value.
15627 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
15628 Add BLOCK_INPUT.
15629
156302007-10-08 Richard Stallman <rms@gnu.org>
15631
15632 * xdisp.c (get_window_cursor_type): Implement documented behavior
15633 for cursor-in-non-selected-windows = t.
15634
156352007-10-08 Jason Rumney <jasonr@gnu.org>
15636
15637 * w32.c (w32_get_resource): Always close registry keys.
15638
156392007-10-08 Jason Rumney <jasonr@gnu.org>
15640
15641 * makefile.w32-in (LIBS): Add COMCTL32.
15642
15643 * w32fns.c (globals_of_w32fns): Init common controls.
15644
156452007-10-08 Richard Stallman <rms@gnu.org>
15646
15647 * image.c (our_memory_buffer): Rename from omfib_buffer.
15648
156492007-10-08 Richard Stallman <rms@gnu.org>
15650
15651 * buffer.c (Foverlays_at): Doc fix.
15652
156532007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
15654
15655 * fns.c (Fplist_put): Preserve uneven tail data.
15656
156572007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
15658
15659 * termhooks.h (enum event_kind): Remove trailing comma.
15660
15661 * frame.h (enum): Remove trailing comma.
15662
156632007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15664
15665 * w32proc.c (delete_child): Don't terminate threads of zombies.
15666
156672007-10-08 Martin Rudalics <rudalics@gmx.at>
15668
15669 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
15670
15671 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
15672 last-repeatable-command.
15673 (init_kboard): Initialize Vlast_repeatable_command.
15674 (command_loop_1): Set it to real_this_command unless that was
15675 bound to an input event.
15676 (mark_kboards): Mark it.
15677
156782007-10-08 Richard Stallman <rms@gnu.org>
15679
15680 * eval.c (condition-case): Doc fix.
15681
156822007-10-08 Masatake YAMATO <jet@gyve.org>
15683
15684 * xfaces.c (tty_supports_face_attributes_p): Fix code
15685 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
15686 was copied and not edited.
15687
156882007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
15689
15690 Add new `input-decode-map' keymap and use it for terminal
15691 escape sequences.
15692 * keyboard.h (struct kboard): Add Vinput_decode_map.
15693 Remove Vlocal_key_translation_map.
15694 * keyboard.c (read_key_sequence): Add support for input-decode-map.
15695 (init_kboard): Init input-decode-map.
15696 Replace local-key-translation-map back with key-translation-map.
15697 (syms_of_keyboard): Declare input-decode-map.
15698 Remove local-key-translation-map. Update docstrings.
15699 (mark_kboards): Mark Vinput_decode_map.
15700 Don't mark Vlocal_key_translation_map.
15701 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
15702 Replace local-key-translation-map back with key-translation-map.
15703 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
15704 Bind in input-decode-map rather than function-key-map.
15705
15706 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
15707 This was made redundant by the previous introduction of XSETPVECTYPE.
15708
157092007-10-09 Richard Stallman <rms@gnu.org>
15710
15711 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
15712
157132007-09-29 Richard Stallman <rms@gnu.org>
15714
15715 * eval.c (internal_condition_case_2, internal_condition_case_1)
15716 (internal_condition_case): Reenable abort if x_catching_errors ()
15717 to see if that really happens and why.
15718
157192007-10-06 Andreas Schwab <schwab@suse.de>
15720
15721 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
15722
157232007-10-04 Juanma Barranquero <lekktu@gmail.com>
15724
15725 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
15726
157272007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
15728
15729 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
15730
157312007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
15732
15733 * window.h (struct window):
15734 * window.c (struct save_window_data, struct saved_window):
15735 * termhooks.h (struct terminal):
15736 * process.h (struct Lisp_Process):
15737 * frame.h (struct frame):
15738 * buffer.h (struct buffer):
15739 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
15740 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
15741 The size field of (pseudo)vectors is now unsigned.
15742 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
15743
15744 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
15745 Turn `count' into an integer.
15746
15747 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
15748 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
15749 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
15750 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
15751 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
15752
15753 * alloc.c (allocate_pseudovector): New fun.
15754 (ALLOCATE_PSEUDOVECTOR): New macro.
15755 (allocate_window, allocate_terminal, allocate_frame)
15756 (allocate_process): Use it.
15757 (mark_vectorlike): New function.
15758 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
15759 (mark_terminals): Use it.
15760 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
15761 (Fmake_byte_code): Use XSETPVECTYPE.
15762
15763 * frame.c (Fframe_parameters): Minor simplification.
15764
15765 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
15766
15767 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
15768
15769 * buffer.c (Fget_buffer_create, init_buffer_once):
15770 * lread.c (defsubr):
15771 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
15772
15773 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
15774 defined differently in the m/*.h files.
15775 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
15776 (XSETPVECTYPE): New macro.
15777 (XSETPSEUDOVECTOR): Use it.
15778
15779 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
15780 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
15781
15782 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
15783 * lread.c (defvar_per_buffer):
15784 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
15785
15786 * window.c (candidate_window_p): Only consider as visible frames that
15787 are on the same terminal.
15788
15789 * m/ibms390x.h (MARKBIT): Remove unused macro.
15790
157912007-10-01 Juanma Barranquero <lekktu@gmail.com>
15792
15793 * lread.c (Fload): Fix typo in docstring.
15794
157952007-10-01 Michaël Cadilhac <michael@cadilhac.name>
15796
15797 * floatfns.c (Fexpt): Manually check for overflows, so that a power
15798 of a non-zero value can't yield zero.
15799
158002007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
15801
15802 * term.c (term_clear_mouse_face, term_mouse_highlight)
15803 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
15804
15805 * print.c (safe_debug_print): Use XHASH.
15806
15807 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
15808 Lisp elements such as tags.
15809 (XHASH): New macro.
15810 (EQ): Use it.
15811 (SREF, SSET, STRING_COPYIN): Use SDATA.
15812 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
15813
15814 * alloc.c (mark_terminal): Remove left-over declaration.
15815 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
15816 (allocate_vectorlike): Remove type argument. Adjust callers.
15817 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
15818 Only handle the one remaining MEM_TYPE_VECTORLIKE.
15819
15820 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
15821 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
15822 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
15823 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
15824 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
15825 Use them.
15826
15827 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
15828 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
15829 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
15830
158312007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15832
15833 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
15834 loaded by default.
15835
158362007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
15837
15838 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
15839 on this tty.
15840 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
15841
15842 * term.c (mouse_face_window): Rename from Qmouse_face_window.
15843 Update all users.
15844 (handle_one_term_event): Use Gpm_DrawPointer.
15845 (Fgpm_mouse_start): Rename from Fterm_open_connection.
15846 Signal errors instead of returning nil. Always return nil.
15847 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
15848 Make it a noop if gpm-mouse was not activated.
15849 (syms_of_term): Update names.
15850
158512007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
15852
15853 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
15854 (init_sys_modes): Check that gpm_tty is the current tty.
15855
15856 * alloc.c (allocate_terminal): Set the vector size to only count the
15857 lisp fields. Initialize those to nil.
15858 (mark_object): Don't treat terminals specially.
15859 (mark_terminal): Remove.
15860 (mark_terminals): Use mark_object instead.
15861
15862 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
15863 the GC to the beginning.
15864
15865 * indent.h:
15866 * indent.c: Use EMACS_INT for ints coming from Elisp data.
15867
15868 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
15869
158702007-09-25 Jason Rumney <jasonr@gnu.org>
15871
15872 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
15873
15874 * w32console.c (create_w32cons_output): Remove.
15875
15876 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
15877
15878 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
15879 (reset_sys_modes): Use reset_terminal_modes_hook.
15880
158812007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
15882
15883 * eval.c (do_autoload): Don't output any message.
15884
158852007-09-24 Juri Linkov <juri@jurta.org>
15886
15887 * emacs.c (standard_args): Change priority of "--no-splash"
15888 from 40 to 3. Add "--no-desktop" with the same priority.
15889
158902007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
15891
15892 * alloc.c (gc_sweep): Check cons cell mark bits word by word
15893 and optimize the case where they are all 1.
15894
158952007-09-23 Johannes Weiner <hannes@saeurebad.de>
15896
15897 * lisp.h (abs): Define if not defined.
15898 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
15899 Don't define `abs', since it's defined in lisp.h.
15900
159012007-09-22 Eli Zaretskii <eliz@gnu.org>
15902
15903 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
15904 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
15905 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
15906 (init_tty): Use DEV_TTY instead of "/dev/tty".
15907 [WINDOWSNT]: No need to protect from NAME arg being null.
15908
159092007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15910
15911 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
15912 up the tty state.
15913
159142007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15915
15916 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
15917 (gpm_tty): Change its type.
15918 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
15919 (gpm_tty): Change its type and initialize it.
15920 (Fterm_open_connection): Check the frame is indeed a tty.
15921 Use the new gpm_tty.
15922 (Fterm_close_connection): Use the new gpm_tty.
15923 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
15924 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
15925
159262007-09-21 Juanma Barranquero <lekktu@gmail.com>
15927
15928 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
15929 underline_color, to draw strike-through.
15930
159312007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15932
15933 * lisp.h (allocate_terminal): Declare.
15934
15935 * window.c (candidate_window_p): Consider frames that are being placed
15936 by the user as somewhere between visible and iconified.
15937 (window_loop): Prefer windows on the current frame.
15938 (Fselect_window): Move the use of select-frame to the beginning so we
15939 can just delegate all the work (it'll call us back anyway).
15940
15941 * frame.c (Qdisplay_environment_variable):
15942 * frame.h (Qdisplay_environment_variable): Delete.
15943
15944 * .gdbinit (xbacktrace): Print the arg's address rather than the value
15945 of the first arg, since that value may be a union.
15946
15947 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
15948 parameter rather than Qdisplay_environment_variable. If all else
15949 fails, look for DISPLAY in initial-environment.
15950
159512007-09-21 Glenn Morris <rgm@gnu.org>
15952
15953 * Makefile.in (emacstool): Remove target.
15954 (lisp, shortlisp): Remove termdev.elc.
15955
159562007-09-21 Markus Triska <markus.triska@gmx.at>
15957
15958 * xterm.c (x_delete_display): Compile session management conditionally.
15959
159602007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
15961
15962 * callproc.c (getenv_internal_1): New function.
15963 (getenv_internal): Use it.
15964 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
15965
15966 * terminal.c (get_terminal): Don't accept ints to represent terminals.
15967 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
15968 (Fset_terminal_parameter): Work with dead terminals as well.
15969 (Fmodify_terminal_parameters): Remove.
15970
15971 * terminal.c (get_terminal): Handle terminals.
15972 Make sure the terminal returned is live.
15973 (create_terminal): Use allocate_terminal.
15974 (mark_terminals): Move to alloc.c.
15975 (delete_terminal): Use terminal->name as liveness status.
15976 NULL out fields after freeing their contents.
15977 Don't deallocate the object.
15978 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
15979 rather than an int.
15980 (Fterminal_live_p): Accept non-integer arguments.
15981 (Fterminal_list): Return terminal objects rather than an ints.
15982
15983 * alloc.c (enum mem_type): New member for `terminal' objects.
15984 (allocate_terminal): New function.
15985 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
15986 Handle terminals.
15987 (mark_terminal): New fun.
15988 (mark_terminals): Move from terminal.c.
15989
15990 * term.c (get_tty_terminal): Don't treat output_initial specially.
15991 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
15992 (delete_tty): Use terminal->name as liveness status.
15993
15994 * termhooks.h (struct terminal): Make it into a pseudovector.
15995 Remove `deleted' replaced by checking `name's nullness.
15996
15997 * print.c (print_object): Handle terminals.
15998
15999 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16000 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16001
16002 * frame.c (make_terminal_frame):
16003 * keyboard.c (tty_read_avail_input):
16004 * w32term.c (x_delete_terminal):
16005 * xfns.c (Fx_create_frame, x_create_tip_frame):
16006 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16007
160082007-09-20 Glenn Morris <rgm@gnu.org>
16009
16010 * process.c (Fmake_network_process): Doc fix.
16011
160122007-09-19 Jason Rumney <jasonr@gnu.org>
16013
16014 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16015
160162007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16017
16018 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16019 Fix a C warning regarding variable constness.
16020
16021 * xterm.c (handle_one_xevent): Fix a C warning.
16022
160232007-09-18 Jason Rumney <jasonr@gnu.org>
16024
16025 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16026
160272007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16028
16029 * gtkutil.c (gdpy_def): New variable.
16030 (xg_initialize): Initialize gdpy_def.
16031 (xg_display_close): If no other display exists, set gdpy_def to a
16032 new connection.
16033
160342007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16035
16036 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16037 when we have no file name for the icon.
16038 (xg_tool_bar_expose_callback): Remove.
16039 (xg_create_tool_bar): Don't connect expose signal to
16040 xg_tool_bar_expose_callback.
16041 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16042
160432007-09-16 Andreas Schwab <schwab@suse.de>
16044
16045 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16046 values instead of zapping them.
16047
160482007-09-14 Glenn Morris <rgm@gnu.org>
16049
16050 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16051 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16052 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16053 scope and rename to omfib_buffer for clarity.
16054 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16055
160562007-09-14 Kenichi Handa <handa@m17n.org>
16057
16058 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16059
160602007-09-13 Jason Rumney <jasonr@gnu.org>
16061
16062 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16063
16064 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16065
16066 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16067 (mac_term_init): Call here instead, passing rif.
16068
160692007-09-13 Glenn Morris <rgm@gnu.org>
16070
16071 * s/hpux.h: No longer define `static' as nothing.
16072
160732007-09-13 Johan Bockgård <bojohan@gnu.org>
16074
16075 * callint.c (Fcall_interactively): Remove unused var `fun'.
16076
160772007-09-12 Romain Francoise <romain@orebokech.com>
16078
16079 * window.c (prefer_window_split_horizontally, display_buffer):
16080 Revert 2007-09-08 change.
16081
160822007-09-12 Glenn Morris <rgm@gnu.org>
16083
16084 * alloca.c: Remove file.
16085 * Makefile.in (alloca): Do not undef.
16086 (allocaobj, alloca.o): Remove.
16087 (otherobj): Remove allocaobj.
16088 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16089 * regex.c (C_ALLOCA): Remove all references and code that was only
16090 used when this was defined.
16091 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16092 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16093 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16094
16095 * Makefile.in (SOURCES, unlock, relock): Delete.
16096
16097 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16098 (menu_grab_callback): All uses changed.
16099
16100 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16101 (x_reply_selection_request): All uses changed.
16102
161032007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16104
16105 * lread.c (load_warn_old_style_backquotes): Change message to look
16106 better when it appears in the middle of byte-compiler messages.
16107
161082007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16109
16110 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16111
16112 * xterm.c (x_create_terminal): Add comment.
16113
16114 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16115
161162007-09-10 Richard Stallman <rms@gnu.org>
16117
16118 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16119
161202007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16121
16122 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16123 (DEFUN): Document `intspec', use it instead of `prompt'.
16124
16125 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16126
16127 * data.c (Finteractive_form): If the interactive specification starts
16128 with a `(', use it as a Lisp form.
16129
16130 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16131 name and file modes.
16132
16133 * callint.c (Fcall_interactively): Comment fixes.
16134
161352007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16136
16137 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16138 and compiled functions.
16139
161402007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16141
16142 * window.c (prefer_window_split_horizontally): New variable.
16143 (display_buffer): Consider splitting window horizontally depending
16144 on prefer_window_split_horizontally.
16145
161462007-09-08 Eli Zaretskii <eliz@gnu.org>
16147
16148 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16149
161502007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16151
16152 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16153
16154 * frame.c (x_set_frame_parameters): Check number is positive before
16155 using XFASTINT.
16156
16157 * window.c (freeze_window_start): Don't presume selected_window holds
16158 a window object.
16159 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16160
161612007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16162
16163 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16164
161652007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16166
16167 * window.c (Vsplit_window_preferred_function): New var.
16168 (Fdisplay_buffer): Use it.
16169 (syms_of_window): Export, and initialize it.
16170
161712007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16172
16173 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16174
161752007-09-06 Glenn Morris <rgm@gnu.org>
16176
16177 * gtkutil.c (menu_grab_callback) <cnt>:
16178 * xselect.c (x_reply_selection_request) <cnt>: Move static
16179 variable to file scope.
16180
161812007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16182
16183 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16184 consistent values of selected_frame and selected_window.
16185
161862007-09-04 Jason Rumney <jasonr@gnu.org>
16187
16188 * w32console.c (initialize_w32_display): Zero unused hooks.
16189
161902007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16191
16192 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16193 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16194
161952007-09-04 Jason Rumney <jasonr@gnu.org>
16196
16197 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16198 in w32console.c. Set up input. Remove XXX comments that have been
16199 confirmed as correct.
16200
16201 * s/ms-w32.h (MULTI_KBOARD): Define.
16202
16203 * w32console.c (one_and_only_w32cons): Remove.
16204 (initialize_w32_display): Take terminal argument.
16205
16206 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16207 initialize_w32_display.
16208 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16209
16210 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16211
16212 * keyboard.c (discard_mouse_events): Discard it.
16213 (make_lispy_event): Translate it to a lisp event.
16214 (lispy_wheel_names): Add wheel-left and right events.
16215 (syms_of_keyboard): Enlarge wheel_syms.
16216
16217 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16218 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16219
16220 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16221
16222 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16223 from WM_MOUSEHWHEEL.
16224 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16225
16226 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16227 terminal.
16228
16229 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16230 keyboard for the terminal.
16231
162322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16233
16234 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16235 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16236 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16237 and resume-tty-function to resume-tty-hook.
16238 (Fsuspend_tty, Fresume_tty): Use new names.
16239
162402007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16241
16242 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16243 if it starts with "n:".
16244
162452007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16246
16247 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16248
162492007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16250
16251 * frame.h:
16252 * frame.c (Qterm_environment_variable): Remove.
16253 (syms_of_frame): Don't init and staticpro it.
16254
16255 * callproc.c (getenv_internal): Remove special case for $TERM.
16256
16257 * callproc.c (Vinitial_environment): New variable.
16258 (set_initial_environment): Initialize it.
16259 (syms_of_callproc): Declare it.
16260 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16261 TERM under which a process runs is never related to the TERM in which
16262 Emacs is running.
16263
162642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16265
16266 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16267 * s/darwin.h: ... do it here.
16268
162692007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16270
16271 * lisp.h (set_initial_environment): Rename from set_global_environment.
16272
16273 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16274 removed by mistake on the multi-tty branch.
16275
16276 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16277 (Fmodify_frame_parameters): Return a value.
16278
16279 * image.c (png_load): Comment-out var only used in commented-out code.
16280
16281 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16282 before passing it to mark_object.
16283
16284 * xfaces.c (internal_resolve_face_name): Return a value.
16285 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16286
16287 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16288 (x_icon): Comment-out var only used in commented-out code.
16289
162902007-08-29 Romain Francoise <romain@orebokech.com>
16291
16292 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16293 QUIT hasn't been provided.
16294
162952007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16296
16297 * callproc.c (child_setup, getenv_internal): Use the
16298 display-environment-variable and term-environment-variable frame params.
16299 (set_initial_environment): Initialise Vprocess_environment.
16300
16301 * config.in: Disable multi-keyboard support on a mac.
16302
16303 * frame.c (Qterm_environment_variable)
16304 (Qdisplay_environment_variable): New variables.
16305 (syms_of_frame): Intern and staticpro them.
16306 (Fmake_terminal_frame): Disable output method test.
16307
16308 * frame.h: Declare them here.
16309
16310 * macfns.c (x_set_mouse_color): Get rif from the frame.
16311 (x_set_tool_bar_lines): Don't use updating_frame.
16312 (mac_window): Add 2 new parameters for consistency with other systems.
16313 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16314 frame parameters following what is done in X11 and w32. Don't use
16315 FRAME_MAC_DISPLAY_INFO.
16316 (Fx_open_connection, start_hourglass): Remove window-system check.
16317 (x_create_tip_frame): Get the keyboard from the terminal.
16318
16319 * macmenu.c: Reorder includes.
16320 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16321
16322 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16323 terminal parameter.
16324 (x_clear_frame): Add a frame parameter.
16325 (note_mouse_movement): Get rif from the frame.
16326 (mac_term_init): Initialize the terminal.
16327 (mac_initialize): Make static and move terminal initialization ...
16328 (mac_create_terminal): ... to this new function.
16329
16330 * macterm.h (struct mac_display_info): Add terminal.
16331 (mac_initialize): Delete declaration.
16332
16333 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16334
16335 * sysdep.c: Comment out text after #endif.
16336
16337 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16338 is defined. Better initialize ttys in windows. Use terminal
16339 specific mouse_position_hook.
16340
16341 * termhooks.h (union display_info): Add mac_display_info.
16342
16343 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16344 Set the default minibuffer frame, window_system and the rest of the
16345 frame parameters following what is done in X11.
16346
16347 * w32term.c (w32_initialize): Make static.
16348
16349 * xselect.c (x_handle_selection_clear): Only access
16350 terminal->kboard when MULTI_KBOARD is defined.
16351
16352 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16353 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16354
163552007-08-29 Jason Rumney <jasonr@gnu.org>
16356
16357 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16358 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16359
16360 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16361 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16362
16363 * keyboard.c (restore_kboard_configuration): Only define when
16364 MULTI_KBOARD defined.
16365
16366 * makefile.w32-in: Update dependancies from Makefile.in.
16367 (OBJ1): Add terminal.$(O)
16368
16369 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16370 Don't define function body.
16371 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16372
16373 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16374
16375 * w32.c (request_sigio, unrequest_sigio): Remove.
16376
16377 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16378 (w32con_clear_frame, w32con_clear_end_of_line)
16379 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16380 (w32con_delete_glyphs, w32con_set_terminal_window)
16381 (scroll_line, w32_sys_ring_bell): Add frame arg.
16382 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16383 Add terminal arg.
16384 (PICK_FRAME): Remove.
16385 (w32con_write_glyphs): Use frame specific terminal coding.
16386 (one_and_only_w32cons): New global variable.
16387 (initialize_w32_display): Use it for storing hooks.
16388 (create_w32cons_output): New function.
16389
16390 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16391 arg a frame.
16392
16393 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16394 Set window_system.
16395 (x_set_tool_bar_lines): Don't use updating_frame.
16396 (Fx_create_frame): Set terminal and ref count.
16397 (Fx_open_connection): Remove window-system check.
16398
16399 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16400
16401 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16402 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16403 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16404 Add frame arg.
16405 (x_delete_terminal, w32_create_terminal): New functions.
16406 (w32_term_init): Create a terminal.
16407 (w32_initialize): Move terminal specific initialization to
16408 w32_create_terminal.
16409
16410 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16411 (w32_clear_rect, w32_clear_area): Use background from frame.
16412 (w32_display_info): Add terminal.
16413 (w32_sys_ring_bell, x_delete_display): Declare here.
16414
16415 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16416
16417 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16418
164192007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16420
16421 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16422 Fix get_named_tty calls for the controlling tty.
16423
164242007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16425
16426 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16427
164282007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16429
16430 * term.c (tty_insert_glyphs): Add missing first parameter.
16431
164322007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16433
16434 * buffer.c (Fbuffer_list, Fbury_buffer):
16435 Take frame->buried_buffer_list into account.
16436
16437 * cm.c (current_tty): New variable, for cmputc().
16438 (cmputc): Use it.
16439 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16440 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16441 (cmgoto): Add tty parameter. Pass it on to calccost().
16442 Use emacs_tputs() instead of tputs().
16443
16444 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16445 tputs().
16446 (current_tty): New variable, for cmputc().
16447 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16448
16449 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16450 (internal_condition_case, internal_condition_case_1)
16451 (internal_condition_case_2): Don't abort when x_catching_errors.
16452
16453 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16454 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16455 prevent crashes caused by bogus longjmps in read_char.
16456
16457 * keymap.h (Fset_keymap_parent): Add EXFUN.
16458
16459 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16460 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16461 Remove redundant definition.
16462
16463 * macfns.c (x_set_mouse_color, x_make_gc):
16464 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16465
16466 * w32term.c (x_free_frame_resources):
16467 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16468 (w32_initialize): Use the accessor macros for terminal characteristics.
16469
16470 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16471 Use the accessor macros for terminal characteristics.
16472 * msdos.c (internal_terminal_init): Use the accessor macros for
16473 terminal characteristics.
16474 (ScreenVisualBell, internal_terminal_init):
16475 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16476
16477 * termopts.h (no_redraw_on_reenter): Declare.
16478
16479 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16480 (mark_terminals, mark_ttys): Declare.
16481 (Fgarbage_collect): Call them.
16482 (mark_object): Mark buried_buffer_list.
16483
16484 * prefix-args.c: Include stdlib.h for exit.
16485
16486 * syssignal.h: Add comment.
16487
16488 * indent.c: Include stdio.h.
16489
16490 * window.h (Vinitial_window_system): Declare.
16491 (Vwindow_system): Delete declaration.
16492
16493 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16494
16495 * image.c (lookup_image): Don't initialize `c' until the xasserts
16496 have been run.
16497
16498 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16499 FRAME_FOREGROUND_PIXEL.
16500
16501 * print.c (print_preprocess): Don't lose print_depth levels while
16502 iterating.
16503
16504 * widget.c (update_from_various_frame_slots):
16505 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16506
16507 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16508 frames.
16509 (window_internal_height): Remove bogus make_number call.
16510 (init_window_once): Call make_terminal_frame with two zero parameters.
16511
16512 * fileio.c (Fread_file_name): Update comment.
16513
16514 * callint.c (Fcall_interactively):
16515 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16516 Make sure it is correctly unwound.
16517
16518 * xsmfns.c (x_session_close): New function.
16519
16520 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16521 Delete declarations.
16522
16523 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16524 (x_output): Remove background_pixel and foreground_pixel fields.
16525 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16526 (x_delete_device, x_session_close): Declare.
16527
16528 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16529 (read_filtered_event): Call `read_char' with a local
16530 `wrong_kboard_jmpbuf'.
16531
16532 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16533 Don't call single_kboard_state. Use FRAME_RIF.
16534
16535 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16536 systems.
16537
16538 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16539 (Fframe_with_environment, Fset_input_meta_mode)
16540 (Fset_quit_char): EXFUN.
16541 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16542 (init_sys_modes, reset_sys_modes): Update prototypes.
16543 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16544
16545 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16546 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16547 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16548 Delete declarations.
16549 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16550 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16551 New declarations.
16552
16553 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16554 already does that during init_display(). Call syms_of_keymap
16555 before syms_of_keyboard. Call `syms_of_terminal'.
16556 Call set_initial_environment, not set_process_environment.
16557 (shut_down_emacs): Call reset_all_sys_modes() instead of
16558 reset_sys_modes().
16559
16560 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16561 (internal_resolve_face_name, resolve_face_name_error): New functions.
16562 (resolve_face_name): Protect against loops and errors thrown by Fget.
16563 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16564 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16565
16566 * scroll.c: Replace CURTTY() with local variables throughout the
16567 file (where applicable).
16568 (calculate_scrolling, calculate_direct_scrolling)
16569 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16570 characteristics.
16571
16572 * keymap.c (Vfunction_key_map): Remove.
16573 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16574 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16575 (Vkey_translation_map): Remove.
16576 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16577 (Fdescribe_buffer_bindings)
16578 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16579 Update for terminal-local key-translation-map.
16580
16581 * Makefile.in (callproc.o): Update dependencies.
16582 (lisp, shortlisp): Add termdev.elc.
16583 (obj): Add terminal.o.
16584 (terminal.o): Add dependencies.
16585 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16586 (data.o, fns.o): Add termhooks.h dependency.
16587 (SOME_MACHINE_LISP): Add dnd.elc.
16588 (minibuf.o): Fix typo.
16589 Update dependencies.
16590
16591 * data.c (do_symval_forwarding, store_symval_forwarding)
16592 (find_symbol_value): Use the selected frame's keyboard, not
16593 current_kboard.
16594
16595 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16596 Vwindow_system.
16597
16598 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16599 Fmenu_bar_open.
16600 (syms_of_xmenu): Update defsubr.
16601 (mouse_position_for_popup, Fx_popup_menu)
16602 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16603 (set_frame_menubar, free_frame_menubar)
b97439ce 16604 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16605 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16606 an X frame.
16607
16608 * xselect.c (x_own_selection): Abort if not an X frame.
16609 (some_frame_on_display): Check if it is an X frame.
16610 (x_handle_selection_clear): Deal with MULTI_KBOARD.
16611
16612 * coding.c: Include frame.h and termhooks.h.
16613 (terminal_coding, keyboard_coding): Delete.
16614 (Fset_terminal_coding_system_internal)
16615 (Fset_keyboard_coding_system_internal)
16616 (Fkeyboard_coding_system)
16617 (Fterminal_coding_system): Add a terminal parameter.
16618 Get terminal_coding from the terminal.
16619 (init_coding_once): Don't call setup_coding_system here.
16620
16621 * dispextern.h (set_scroll_region, turn_off_insert)
16622 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
16623 (tty_clear_end_of_line, tty_setup_colors)
16624 (delete_tty, updating_frame)
16625 (produce_special_glyphs, produce_glyphs, write_glyphs)
16626 (insert_glyphs): Remove.
16627 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
16628 (tty_turn_off_highlight, get_tty_size): Add declaration.
16629 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
16630
16631 * frame.h (enum output_method): Add output_initial.
16632 (struct x_output): Delete.
16633 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16634 Access foreground_pixel and background_pixel directly from the frame.
16635 (tty_display): Delete.
16636 (struct frame): Add buried_buffer_list, foreground_pixel,
16637 background_pixel and terminal. Delete kboard.
16638 (union output_data): Add tty.
16639 (FRAME_KBOARD): Get the kboard from the terminal.
16640 (FRAME_INITIAL_P): New macro.
16641 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
16642 (Qterm_environment_variable, Qdisplay_environment_variable)
16643 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
16644 New declarations.
16645
16646 * termchar.h (tty_output, tty_display_info): New structures.
16647 (tty_list): Declare.
16648 (FRAME_TTY, CURTTY): New macros.
16649 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
16650 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
16651 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
16652 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
16653
16654 * callproc.c: Include frame.h and termhooks.h, for terminal
16655 parameters.
16656 (add_env): New function.
16657 (child_setup): Use it.
16658 (child_setup, getenv_internal): Handle the new Vprocess_environment.
16659 (getenv_internal): Fix get_terminal_param call.
16660 (Fgetenv_internal, egetenv): Update doc.
16661 (syms_of_callproc): Initialize Vprocess_environment to nil.
16662 Register and initialize them. Remove obsolete defvars. Update doc
16663 strings.
16664 (child_setup): Handle Vlocal_environment_variables.
16665 (getenv_internal): Add terminal parameter.
16666 Handle Vlocal_environment_variables.
16667 (Fgetenv_internal): Add terminal parameter.
16668 (child_setup, getenv_internal, Fgetenv_internal): Store the local
16669 environment in a frame (not terminal) parameter. Update doc strings.
16670 (set_initial_environment): Rename from set_global_environment.
16671 Store Emacs environment in initial frame parameter.
16672
16673 * xdisp.c (redisplay_internal): Update references to
16674 `previous_terminal_frame'.
16675 (display_mode_line, Fformat_mode_line): Replace calls to
16676 `push_frame_kboard' with `push_kboard'.
16677 (get_glyph_string_clip_rects): Add extra parentheses and
16678 braces to prevent compiler warnings.
16679 (calc_pixel_width_or_height): Add xassert to check that the
16680 frame is alive. Don't call `lookup_image' on a termcap frame.
16681 (message2_nolog, message3_nolog, redisplay_internal)
16682 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
16683 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
16684 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
16685 (Fx_display_pixel_width, Fx_display_pixel_height)
16686 (Fx_display_planes, Fx_display_color_cells)
16687 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
16688 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
16689 (Fx_display_backing_store, Fx_display_visual_class)
16690 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
16691 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
16692
16693 * xfns.c (x_set_foreground_color x_set_background_color)
16694 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
16695 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16696 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
16697 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
16698 terminal that is being deleted.
16699 (Fx_create_frame): Use `store_frame_param' to set `window-system'
16700 frame parameter, and make sure it overrides any user-supplied setting.
16701 (Fx_close_connection, Fx_synchronize): Unify argument names with
16702 the rest of the DEFUNs.
16703
16704 * dispnew.c (Fsend_string_to_terminal): Update call to
16705 `get_tty_terminal'.
16706 (Fredraw_frame, Fsend_string_to_terminal)
16707 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
16708 FRAME_TERMCAP_P and FRAME_TTY.
16709 (window_change_signal): Don't believe width/height values that are
16710 impossibly small.
16711 (Vinitial_window_system): Rename from Vwindow_system.
16712 (termscript, Wcm, rif): Delete.
16713
16714 * termhooks.h (struct terminal): New struct containing the
16715 previously global text display hooks and new members NAME,
16716 DELETED and PARAM_ALIST.
16717 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
16718 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
16719 (FRAME_RIF): New macros.
16720 (get_terminal_param, get_device): New declarations.
16721 (termscript): Delete declaration.
16722
16723 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
16724 (XTflash, x_free_frame_resources, x_scroll_bar_create)
16725 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
16726 FRAME_FOREGROUND_PIXEL.
16727 (x_fully_uncatch_errors): Disable definition.
16728 (x_scroll_bar_expose): Fix reference to foreground pixel.
16729 (XTread_socket): Disable loop on all X displays.
16730 (x_delete_terminal): Don't set terminal->deleted and let
16731 delete_terminal delete the frames on the terminal.
16732 (x_delete_display): Doc update to reflect changes in
16733 delete_terminal.
16734 (x_display_info) <terminal>: Move member earlier in the struct.
16735 (deleting_tty): Remove old variable.
16736 (Fsuspend_tty): Call clear_tty_hooks.
16737 (Fresume_tty, init_tty): Call set_tty_hooks.
16738 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
16739 errors on X frames.
16740 (x_catch_errors_unwind): Abort if x_error_message is NULL.
16741 (handle_one_xevent): Initialize `f' to NULL.
16742 (x_delete_terminal, x_create_terminal): New functions.
16743 (XTset_terminal_modes, XTreset_terminal_modes)
16744 (XTread_socket, x_connection_closed, x_term_init)
16745 (x_term_init, x_delete_display): Add terminal parameter.
16746 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
16747 X connections.
16748
16749 * frame.c: Include termchar.h.
16750 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
16751 (Qwindow_system, Qenvironment, Qterm_environment_variable)
16752 (Qdisplay_environment_variable): New vars.
16753 (Fframep): Deal with output_initial.
16754 (Fframe-live-p): Doc fix.
16755 (Fwindow-system): New function.
16756 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
16757 (make_terminal_frame): Don't create frames on a terminal that is
16758 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16759 (store_frame_param): Check for found_for_frame before calling XFRAME.
16760 (Fmake_terminal_frame): Handle NULL tty names correctly.
16761 (syms_of_frame): Enhance doc string of `default-frame-alist'.
16762 (Fdelete_frame): Remove unused variable `count'. Don't allow other
16763 frames to refer to a deleted frame in their 'environment parameter.
16764 (Fframe_with_environment): New function.
16765 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
16766 (get_future_frame_param): New function.
16767 (Fmake_terminal_frame): Use it.
16768 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
16769
16770 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
16771 * sysdep.c (reset_sys_modes): Update for renames.
16772
16773 * keyboard.c (tty_read_avail_input): New function.
16774 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
16775 (syms_of_keyboard): Defsubr them.
16776 (Fset_input_meta_mode, Fset_quit_char): New functions.
16777 (Fset_input_mode): Split to above functions.
16778 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
16779 parameter. Use it in call to `read_char'.
16780 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
16781 Set wrong_kboard_jmpbuf correctly in recursive calls.
16782 Use current_kboard to access Vkeyboard_translate_table.
16783 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
16784 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
16785 Update longjmp invocations. Remember the original current_kboard,
16786 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
16787 changes it. Comment out unnecessary calls to
16788 `record_single_kboard_state' and `any_kboard_state'.
16789 Update recursive calls.
16790 (wrong_kboard_jmpbuf): Remove global variable.
16791 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
16792 Handle deleted interrupted_kboards correctly; that is a legal
16793 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
16794 and read_char calls. Abort if interrupted_kboard died in read_char.
16795 (any_kboard_state, single_kboard_state)
16796 (push_frame_kboard): Remove function.
16797 (pop_kboard): Switch out of single_kboard mode if the kboard has
16798 been deleted. Remove unused variable. Help debugging by not
16799 changing current_kboard unnecessarily. Set current_kboard to the
16800 kboard of the selected frame when the stored kboard object has
16801 been deleted before pop_kboard.
16802 (temporarily_switch_to_single_kboard): Change first parameter to a
16803 frame pointer. Throw an error when caller wants to change kboards
16804 while in single_kboard mode. Don't push_kboard if we weren't in
16805 single kboard state. Don't pop_kboard if we popped into any
16806 kboard state.
16807 (restore_kboard_configuration): Abort if pop_kboard changed the
16808 kboard in single_kboard mode. Call pop_kboard only after setting
16809 up single_kboard mode.
16810 (Frecursive_edit): Switch to single_kboard mode only in nested
16811 command loops.
16812 (cmd_error, command_loop, command_loop_1, timer_check):
16813 Comment out unnecessary call to `any_kboard_state' and
16814 `record_single_kboard_state'.
16815 (delete_kboard): Exit single_kboard mode if we have just deleted
16816 that kboard. Use FRAME_KBOARD.
16817 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
16818 `fatal_error_signal'.
16819 (record_single_kboard_state): Don't push_kboard if we weren't in
16820 single kboard state. Don't pop_kboard if we popped into any
16821 kboard state.
16822 (push_frame_kboard): Rename to push_kboard.
16823 (kbd_buffer_get_event): Use FRAME_TERMINAL.
16824 (read_avail_input): Read input from all terminals.
16825 (mark_kboards): Also mark Vkeyboard_translate_table.
16826 (kbd_buffer_store_event_hold): Simplify condition.
16827 (read_key_sequence): Reinitialize fkey and keytran at each replay.
16828 (Vkeyboard_translate_table): Move to struct kboard.
16829 (init_kboard): Initialize Vkeyboard_translate_table.
16830 (syms_of_keyboard): Use DEFVAR_KBOARD to define
16831 Vkeyboard_translate_table. Update doc strings. Update docs of
16832 local-function-key-map and function-key-map.
16833
16834 * terminal.c: New file.
16835
16836 * term.c: Include errno.h.
16837 (Vring_bell_function, device_list, initial_device)
16838 (next_device_id, ring_bell, update_begin, update_end)
16839 (set_terminal_window, cursor_to, raw_cursor_to)
16840 (clear_to_end, clear_frame, clear_end_of_line)
16841 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
16842 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
16843 (syms_of_term): Move their initialization to terminal.c.
16844 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
16845 (Ftty_display_color_cells)
16846 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
16847 (clear_tty_hooks, set_tty_hooks)
16848 (init_tty, maybe_fatal): New functions.
16849 (Ftty_type): Return nil if terminal is not on a tty instead of
16850 throwing an error. Doc update.
16851 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
16852 Doc update. Initialize new subrs and variables.
16853 (delete_tty): Use terminal->deleted.
16854 (tty_set_terminal_modes): Rename from set_terminal_modes.
16855 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
16856 (set_scroll_region): Rename to `tty_set_scroll_region'.
16857 (turn_on_insert): Rename to `tty_turn_on_insert'.
16858 (turn_off_insert): Rename to `tty_turn_off_insert'.
16859 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
16860 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
16861 (toggle_highligh): Rename to `tty_toggle_highlight'.
16862 (background_highlight): Rename to `tty_background_highlight'.
16863 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
16864 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
16865 (tty_set_scroll_region, tty_background_highlight)
16866 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
16867 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
16868 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
16869 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
16870 Add static modifier.
16871 (tty_reset_terminal_modes, tty_set_terminal_window)
16872 (tty_set_scroll_region, tty_background_highlight)
16873 (tty_highlight_if_desired, tty_cursor_to)
16874 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
16875 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
16876 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
16877 renames.
16878
168792007-08-28 Jan Djärv <jan.h.d@swipnet.se>
16880
16881 * keyboard.c: Qrtl is new.
16882 (parse_tool_bar_item): Handle :rtl keyword.
16883 (syms_of_keyboard): Intern :rtl keyword.
16884
16885 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
16886
16887 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
16888 so no Lisp code is executed.
16889 (file_for_image, find_rtl_image): New functions.
16890 (xg_get_image_for_pixmap): Use file_for_image.
16891 (update_frame_tool_bar): If direction is RTL, use RTL image if
16892 defined. Use Gtk stock images if defined.
16893
168942007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16895
16896 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
16897 for nonexistent or zero-width glyph in composition glyph.
16898
168992007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
16900
16901 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
16902
16903 * xdisp.c (Finvisible_p): New function.
16904 (syms_of_xdisp): defsubr it.
16905
169062007-08-24 Juanma Barranquero <lekktu@gmail.com>
16907
16908 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
16909 Doc fixes.
16910
169112007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16912
16913 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
16914
169152007-08-24 Martin Rudalics <rudalics@gmx.at>
16916
16917 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
16918 whether decoding has modified buffer contents.
16919
169202007-08-24 Jason Rumney <jasonr@gnu.org>
16921
16922 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
16923 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
16924 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
16925 (init_svg_functions) [HAVE_NTGUI]: New function.
16926 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
16927 (svg_load_image): Use them.
16928 (svg_load_image) [HAVE_NTGUI]: Implement background.
16929
169302007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16931
16932 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
16933 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
16934 (LIBX): Remove @RSVG_LIBS@.
16935 (LIBES): Add $(RSVG_LIBS).
16936
16937 * image.c (svg_load_image): Blend with specified background if exists.
16938 Use IMAGE_BACKGROUND. Add Mac OS Support.
16939
16940 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
16941 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
16942 Remove macros.
16943 [MAC_OSX] (socket_callback): Do nothing.
16944 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
16945 ReceiveNextEvent.
16946 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
16947 socket_callback.
16948 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
16949
169502007-08-22 Glenn Morris <rgm@gnu.org>
16951
16952 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
16953
169542007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
16955
16956 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
16957
16958 * image.c: Add support for SVG images. Some additional comments
16959 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
16960 (svg_image_p): New function to test for SVG image.
16961 (svg_load): New function to load SVG image.
16962 (svg_load_image): New function, helper for svg_load.
16963 (Qsvg): New Lisp_object.
16964 (svg_keyword_index): New enum.
16965 (svg_format): New static `image_keyword' struct.
16966 (svg_type): New static `image_type' struct.
16967 (librsvg/rsvg.h): Include it.
16968
169692007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
16970
16971 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
16972
169732007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
16974
16975 * lread.c (Qold_style_backquotes): New var.
16976 (syms_of_lread): Init and staticpro it.
16977 (load_warn_old_style_backquotes): New fun.
16978 (Fload): Use them to warn about old style backquotes.
16979 (end_of_file_error, Fload): Remove unused vars.
16980
16981 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
16982
16983 * lread.c (Vold_style_backquotes): New var.
16984 (syms_of_lread): Init and export it to Elisp.
16985 (read1): Set it when we find an old-style (back)quote.
16986
169872007-08-22 Jason Rumney <jasonr@gnu.org>
16988
16989 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
16990
169912007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
16992
16993 * puresize.h (BASE_PURESIZE): Increase to 1140000.
16994
169952007-08-19 Richard Stallman <rms@gnu.org>
16996
16997 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
16998
169992007-08-19 Andreas Schwab <schwab@suse.de>
17000
17001 * alloc.c (pure): Round PURESIZE up.
17002
170032007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17004
17005 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17006 active frame.
17007
170082007-08-16 Richard Stallman <rms@gnu.org>
17009
17010 * eval.c (Fcommandp): Add parens to clarify.
17011
17012 * minibuf.c (Fall_completions): Use enum for type of table.
17013
17014 * emacs.c (USAGE2): Improve text.
17015
170162007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17017
17018 * term.c (tty_default_color_capabilities): Declare static
17019 variables in file scope, to avoid HPUX compiler problem.
17020
170212007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17022
17023 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17024 to gtk_toolbar_insert.
17025
170262007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17027
17028 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17029
17030 * insdel.c (reset_var_on_error): New fun.
17031 (signal_before_change, signal_after_change):
17032 Use it to reset (after|before)-change-functions to nil in case of error.
17033 Bind inhibit-modification-hooks to t.
17034 Don't bind (after|before)-change-functions to nil while they run.
17035
170362007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17037
17038 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17039 filling pixmap with stippled background.
17040
170412007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17042
17043 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17044 Don't use invisible frame as parent window for repositioning.
17045
170462007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17047
17048 * print.c (new_backquote_output): Rename from old_backquote_output.
17049 (print): Inverse its logic (according to its name) so as to match the
17050 behavior of new_backquote_flag in lread.c.
17051
170522007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17053
17054 * gmalloc.c (posix_memalign): New function.
17055
17056 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17057 ActivateControl/DeactivateControl here.
17058 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17059 frame-notice-user-settings is non-nil.
17060 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17061 for kEventParamFMFontStyle.
17062 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17063 mac_pass_command_to_system and mac_pass_control_to_system here.
17064 (XTread_socket): Call ActivateControl/DeactivateControl here.
17065 (XTread_socket) [TARGET_API_MAC_CARBON]:
17066 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17067 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17068 for window repositioning.
17069
170702007-08-08 Glenn Morris <rgm@gnu.org>
17071
17072 * Replace `iff' in doc-strings and comments.
17073
170742007-08-07 Chong Yidong <cyd@stupidchicken.com>
17075
17076 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17077
170782007-08-07 Martin Rudalics <rudalics@gmx.at>
17079
17080 * fileio.c (Finsert_file_contents): Run format-decode and
17081 after_insert_file_functions on entire buffer when REPLACE is
17082 non-nil and inhibit modification_hooks and point_motion_hooks.
17083 For consistency, run after_insert_file_functions iff something
17084 got inserted. Move signal_after_change and update_compositions
17085 after code running after_insert_file_functions. Make sure that
17086 undo_list doesn't record intermediate steps of the decoding process.
17087
170882007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17089
17090 * emacs.c (main)
17091 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17092 Call malloc_enable_thread on interactive startup.
17093
17094 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17095 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17096 [USE_PTHREAD]: Conditionalize with it.
17097 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17098 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17099 New functions.
17100
171012007-08-06 Chong Yidong <cyd@stupidchicken.com>
17102
17103 * xdisp.c (redisplay_window): When restoring original buffer
17104 position, make sure it is still valid.
17105
17106 * image.c (png_load): Ignore png-supplied background color.
17107
171082007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17109
17110 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17111 Use kCFAbsoluteTimeIntervalSince1970.
17112
17113 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17114 New variable.
17115 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17116 event loop should be quit.
17117 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17118 Quit dialog event loop if quit_dialog_event_loop is set.
17119
17120 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17121 (Selection): New typedef. Use instead of ScrapRef.
17122 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17123 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17124 (mac_clear_selection): Rename from clear_scrap.
17125 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17126 scrap_has_target_type. All uses changed.
17127 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17128 (mac_selection_has_target_p): New functions.
17129 (mac_put_selection_value): Rename from put_scrap_string.
17130 (mac_get_selection_value): Rename from get_scrap_string.
17131 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17132 (put_scrap_private_timestamp, scrap_has_target_type)
17133 (get_scrap_private_timestamp): Remove functions.
17134 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17135 (x_own_selection, x_get_local_selection):
17136 Use mac_valid_selection_value_p.
17137 (x_own_selection): Don't use put_scrap_private_timestamp.
17138 Record OWNERSHIP-INFO into Vselection_alist instead.
17139 (x_get_local_selection): Don't check type if request is local.
17140 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17141 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17142
171432007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17144
17145 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17146 add comment explaining why.
17147
171482007-08-03 Richard Stallman <rms@gnu.org>
17149
17150 * fileio.c (Fvisited_file_modtime): Use make_time.
17151
171522007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17153
17154 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17155 build.
17156
171572007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17158
17159 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17160
171612007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17162
17163 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17164
171652007-07-30 Richard Stallman <rms@gnu.org>
17166
17167 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17168
171692007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17170
17171 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17172
171732007-07-28 Nick Roberts <nickrob@snap.net.nz>
17174
17175 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17176 remote default-directory.
17177
17178 * buffer.c (mode-line-format): Update doc string.
17179
171802007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17181
17182 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17183 scroll bar gap.
17184 (x_scroll_bar_create): Set bar->fringe_extended_p.
17185 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17186 on frame edge. Check fringe background extension. Don't clear
17187 extended fringe background area.
17188
17189 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17190 (w32_fill_area): Enclose multiple statements with do ... while (0).
17191
17192 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17193 Extend fringe background to scroll bar gap.
17194 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17195 Set bar->fringe_extended_p.
17196 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17197 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17198 background extension. Don't clear extended fringe background area.
17199
17200 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17201 New member fringe_extended_p.
17202
172032007-07-25 Glenn Morris <rgm@gnu.org>
17204
17205 * Relicense all FSF files to GPLv3 or later.
17206
17207 * COPYING: Switch to GPLv3.
17208
172092007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17210
17211 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17212
17213 * data.c (Finteractive_form): Check for the presence of an
17214 `interactive-form' symbol property more thoroughly.
17215
17216 * data.c (Finteractive_form): Use an `interactive-form' property if
17217 present, analogous to the function-documentation property.
17218
172192007-07-24 Jason Rumney <jasonr@gnu.org>
17220
17221 * w32fns.c (x_real_positions): Get real position from OS instead of
17222 calculating it.
17223
172242007-07-23 Jason Rumney <jasonr@gnu.org>
17225
17226 * filelock.c (current_lock_owner): Allow for @ sign in username.
17227
172282007-07-22 Nick Roberts <nickrob@snap.net.nz>
17229
17230 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17231 remote default-directory.
17232
17233 * buffer.c (mode-line-format): Describe above case in doc string.
17234
172352007-07-20 Eli Zaretskii <eliz@gnu.org>
17236
17237 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17238 Define if not defined.
17239
172402007-07-18 Jason Rumney <jasonr@gnu.org>
17241
17242 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17243
172442007-07-18 Richard Stallman <rms@gnu.org>
17245
17246 * data.c (Fsetq_default): Doc fix.
17247
17248 * eval.c (Fsetq): Doc fix.
17249
172502007-07-18 Juanma Barranquero <lekktu@gmail.com>
17251
17252 * coding.c (Ffind_operation_coding_system):
17253 * eval.c (For, Fand): Doc fixes.
17254 Reported by Johan Bockgård.
17255
172562007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17257
17258 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17259
17260 * xterm.h: Declare x_ewmh_activate_frame.
17261
17262 * xterm.c (x_ewmh_activate_frame): New function.
17263 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17264
172652007-07-17 Martin Rudalics <rudalics@gmx.at>
17266
17267 * window.c (Fdisplay_buffer): If largest or LRU window is the
17268 only window, split it even if it is not eligible for splitting.
17269 This restores the original behavior broken by the 2007-07-15
17270 change.
17271
172722007-07-17 Glenn Morris <rgm@gnu.org>
17273
17274 * abbrev.c (abbrev_check_chars): New function.
17275 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17276 Call abbrev_check_chars to check abbrev characters are word
17277 constituents. Doc fix.
17278
172792007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17280
17281 * process.c (Fstart_process, Fmake_network_process)
17282 (read_process_output): Fix up last changes.
17283
172842007-07-16 Eli Zaretskii <eliz@gnu.org>
17285
17286 * makefile.w32-in (clean): Don't delete *~.
17287
172882007-07-16 Andreas Schwab <schwab@suse.de>
17289
17290 * window.c (Fdisplay_buffer): Use NILP.
17291 (Fset_window_scroll_bars): Likewise.
17292
172932007-07-15 Martin Rudalics <rudalics@gmx.at>
17294
17295 * window.c (window_min_size_2): New function.
17296 (window_min_size_1, size_window, Fdisplay_buffer)
17297 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17298 windows without mode- or header-lines when window-min-height is
17299 too small.
17300 (size_window): Reset nodelete_p after testing it, following an
17301 earlier note by Kim F. Storm.
17302 (display_buffer): Do not set split_height_threshold to twice the
17303 value of window_min_height to avoid changing the value of a
17304 customizable variable. Rather explicitly check whether the
17305 height of the window that shall be splitted is at least as large
17306 as split_height_threshold.
17307 (Fwindow_full_width_p): New defun.
17308 (syms_of_window): Defsubr it.
17309
17310 * window.h: Add EXFUN for Fwindow_full_width_p.
17311
173122007-07-14 Jason Rumney <jasonr@gnu.org>
17313
17314 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17315
173162007-07-14 Richard Stallman <rms@gnu.org>
17317
17318 * eval.c (maybe_call_debugger): New function.
17319 (find_handler_clause): Use maybe_call_debugger.
17320 Call it when the handler says `debug'.
17321 Eliminate DEBUGGER_VALUE_PTR.
17322 (Fsignal): Eliminate debugger_value.
17323 (Qdebug): New variable.
17324 (syms_of_eval): Initialize it.
17325
173262007-07-14 Juanma Barranquero <lekktu@gmail.com>
17327
17328 * eval.c (Fprogn):
17329 * keyboard.c (Ftrack_mouse):
17330 * print.c (Fwith_output_to_temp_buffer):
17331 * window.c (Fsave_window_excursion): Doc fix.
17332
173332007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17334
17335 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17336
173372007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17338
17339 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17340 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17341 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17342 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17343 Remove unused encoding_carryover.
17344 * process.c: Adjust all functions accordingly.
17345
173462007-07-12 Richard Stallman <rms@gnu.org>
17347
17348 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17349
173502007-07-11 Jason Rumney <jasonr@gnu.org>
17351
17352 * makefile.w32-in (LIBS): Include OLE32.
17353
17354 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17355 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17356
173572007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17358
17359 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17360 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17361 from a Lisp_Object into a bare pointer.
17362 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17363 Adjust the code correspondingly.
17364
17365 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17366
17367 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17368 (term_show_mouse_face): Remove unused var `j'.
17369 (handle_one_term_event): Remove unused vars `i' and `j'.
17370 Don't cast return value of ttyname since it's not necessary.
17371
173722007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17373
17374 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17375 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17376
17377 * fns.c (map_char_table): Use an array of int for `indices' rather than
17378 an array of Lisp_Objects (which are only ever integers anyway).
17379 (Fmap_char_table): Update caller.
17380 * lisp.h: Update prototype.
17381 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17382 * fontset.c (Ffontset_info):
17383 * casetab.c (set_case_table): Update callers.
17384
17385 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17386
17387 * keymap.c (struct accessible_keymaps_data)
17388 (struct where_is_internal_data): New structures.
17389 (accessible_keymaps_1, where_is_internal_1): Use them to change
17390 interface to adhere to the one used by map_keymap.
17391 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17392 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17393
17394 * keymap.h (map_keymap_function_t): More informative prototype.
17395
173962007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17397
17398 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17399 (looking_at_1): Don't change search_regs and last_thing_searched
17400 if `inhibit-changing-match-data' is non-nil.
17401 (string_match_1, search_buffer, set_search_regs): Likewise.
17402 (syms_of_search): Add Lisp level definition for
17403 `inhibit-changing-match-data' and set it to nil.
17404 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17405 start and end of the match, instead of using values in search_regs.
17406
174072007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17408
17409 * minibuf.c (Fcompleting_read): New value `confirm-only'
17410 for `require-match'.
17411
174122007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17413
17414 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17415 part of the 2007-06-27 change to syms_of_fileio.
17416
174172007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17418
17419 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17420 Check WINDOWP before using XWINDOW. Consolidate return statements.
17421
174222007-06-27 Richard Stallman <rms@gnu.org>
17423
17424 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17425
174262007-06-27 Juanma Barranquero <lekktu@gmail.com>
17427
17428 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17429
174302007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17431
17432 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17433 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17434 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17435 (_free_internal, memalign): Use them.
17436 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17437 Initialize to PTHREAD_MUTEX_INITIALIZER.
17438 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17439 (morecore_nolock): Rename from morecore. All uses changed.
17440 Use only nolock versions of internal allocation functions.
17441 (_malloc_internal_nolock, _realloc_internal_nolock)
17442 (_free_internal_nolock): New functions created from
17443 _malloc_internal, _realloc_internal, and _free_internal.
17444 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17445 Copy hook value to automatic variable before its use.
17446 (memalign): Copy hook value to automatic variable before its use.
17447
174482007-06-26 Kenichi Handa <handa@m17n.org>
17449
17450 * coding.c (Ffind_operation_coding_system): Docstring improved.
17451 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17452
174532007-06-25 David Kastrup <dak@gnu.org>
17454
17455 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17456 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17457 cater for additional parameter.
17458
17459 * keymap.h: Adjust number of parameters to `current-active-maps'.
17460
17461 * doc.c (Fsubstitute_command_keys): Adjust call of
17462 `current-active-maps'.
17463
174642007-06-25 David Kastrup <dak@gnu.org>
17465
17466 * callint.c (Fcall_interactively): Make the parsing of interactive
17467 specs somewhat more readable.
17468
174692007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17470
17471 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17472 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17473 if extended background has already been filled.
17474
174752007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17476
17477 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17478 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17479
17480 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17481 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17482 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17483 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17484 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17485 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17486 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17487 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17488 Run timers during dialog popup.
17489 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17490
174912007-06-21 Jason Rumney <jasonr@gnu.org>
17492
17493 * image.c (convert_mono_to_color_image): Swap fore and background.
17494
174952007-06-20 Jason Rumney <jasonr@gnu.org>
17496
17497 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17498 (w32_free_bdf_font): Unmap memory not handle.
17499
175002007-06-20 Sam Steingold <sds@gnu.org>
17501
17502 * gmalloc.c (__morecore): Fix the declaration to comply with the
17503 definition.
17504
175052007-06-20 Juanma Barranquero <lekktu@gmail.com>
17506
17507 * w32term.c (w32_delete_display): Remove leftover declaration.
17508 (w32_define_cursor, w32_initialize): Make static.
17509
17510 * w32.c (_wsa_errlist): Fix typo in error message.
17511 (init_environment): Ignore any environment variable from the
17512 registry having a null value.
17513
175142007-06-20 Glenn Morris <rgm@gnu.org>
17515
17516 * Makefile.in (LIBGIF): Default to -lgif.
17517
175182007-06-17 Jason Rumney <jasonr@gnu.org>
17519
17520 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17521 unicode strings.
17522
175232007-06-16 Juanma Barranquero <lekktu@gmail.com>
17524
17525 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17526 Fix typo in docstring.
17527
175282007-06-16 Eli Zaretskii <eliz@gnu.org>
17529
17530 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17531 and their keybindings.
17532
175332007-06-15 Chong Yidong <cyd@stupidchicken.com>
17534
17535 * composite.c (update_compositions): Fix last fix.
17536
175372007-06-14 Jason Rumney <jasonr@gnu.org>
17538
17539 * w32.c (get_process_times_fn): New function pointer.
17540 (globals_of_w32): Intialize it if present in kernel32.dll.
17541 (w32_get_internal_run_time): New function.
17542
17543 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17544
175452007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17546
17547 * composite.c (update_compositions): Check the validness of
17548 compositions.
17549
175502007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17551
17552 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17553 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17554
17555 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17556 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17557
17558 * macgui.h (USE_MAC_TOOLBAR): New define.
17559
17560 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17561 Return immediately unless popup is activated.
17562
17563 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17564 background to scroll bar gap.
17565 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17566 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17567 scroll bars on frame edge. Check fringe background extension.
17568 Don't clear extended fringe background area.
17569 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17570 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17571 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17572 [USE_MAC_TOOLBAR]: New macros.
17573 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17574 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17575 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17576 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17577 [USE_MAC_TOOLBAR]: New functions.
17578 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17579 manually if previous repositioning has failed.
17580 (mac_handle_keyboard_event): Use precomputed event kind.
17581 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17582 as tool bar item click. Handle mouse movement over tool bar items.
17583
17584 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17585 toolbar_win_gravity.
17586 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17587 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17588 Add externs.
17589
17590 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17591 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17592
175932007-06-14 Chong Yidong <cyd@stupidchicken.com>
17594
17595 * image.c (search_image_cache): Remove unused variable.
17596
175972007-06-13 Chong Yidong <cyd@stupidchicken.com>
17598
17599 * xfns.c, xmenu.c: Link to xaw3d if available.
17600
176012007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17602
17603 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17604 frame_foreground and frame_background.
17605
17606 * image.c (lookup_image): Save frame foreground and background colors.
17607 (search_image_cache): Check if saved and current frame colors match.
17608
176092007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17610
17611 * regex.c (regex_compile): Remove the `regnum' counter.
17612 Use bufp->re_nsub instead. Add support for \(?N:RE\).
17613
176142007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17615
17616 * term.c: Include intervals.h to declare Fget_text_property.
17617
176182007-06-10 Jason Rumney <jasonr@gnu.org>
17619
17620 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
17621
176222007-06-08 Juanma Barranquero <lekktu@gmail.com>
17623
17624 * callint.c (Fcall_interactively):
17625 * editfns.c (Fdelete_and_extract_region):
17626 * fileio.c (Fread_file_name):
17627 * fns.c (Fmapconcat):
17628 * keyboard.c (cmd_error_internal):
17629 * keymap.c (Fkey_description):
17630 * lread.c (openp):
17631 * minibuf.c (read_minibuf):
17632 * search.c (wordify):
17633 * sunfns.c (sel_read):
17634 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
17635 * xfns.c (x_default_scroll_bar_color_parameter):
17636 * xmenu.c (menu_help_callback):
17637 * xselect.c (Fx_get_atom_name):
17638 * xterm.c (x_term_init): Use empty_unibyte_string.
17639
176402007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
17641
17642 * alloc.c (init_strings): Initialize canonical empty strings.
17643 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
17644 canonical empty string when the requested size is 0.
17645
17646 * emacs.c (empty_unibyte_string): Rename from empty_string.
17647 (empty_multibyte_string): New canonical empty string.
17648 (syms_of_emacs): Don't initialize empty_string.
17649
17650 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
17651 string, if appropriate.
17652 (empty_unibyte_string, empty_multibyte_string): New externs.
17653 (empty_string): Remove extern.
17654
17655 * lread.c (syms_of_lread): Use empty_unibyte_string.
17656
176572007-06-07 Jason Rumney <jasonr@gnu.org>
17658
17659 * s/ms-w32.h: Don't define HAVE_TZNAME.
17660
17661 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
17662
176632007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17664
17665 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
17666
17667 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
17668 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
17669
17670 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17671 Don't call next handler.
17672 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
17673 Remove argument. Install handler to application.
17674 (set_frame_menubar): Don't change deep_p.
17675 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
17676 FRAME_OUTER_TO_INNER_DIFF_Y.
17677 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17678 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17679 [HAVE_DIALOGS]: New macros.
17680 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
17681 Use them.
17682 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
17683
17684 * macselect.c [MAC_OSX] (install_service_handler): Rename from
17685 init_service_handler. All callers changed. Return OSStatus value.
17686
17687 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
17688 All callers changed so as not to call SetPortWindowPort.
17689 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
17690 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
17691 mac_draw_string_common.
17692 (mac_draw_image_string_qd): Likewise.
17693 (mac_draw_string_common): Use them. Add INLINE.
17694 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
17695 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
17696 GetGlobalMouse.
17697 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
17698 and FRAME_OUTER_TO_INNER_DIFF_Y.
17699 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
17700 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
17701 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
17702 repositioning window to mac_handle_window_event.
17703 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
17704 saving window location to mac_handle_window_event
17705 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
17706 (install_menu_target_item_handler): Remove argument in extern.
17707 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
17708 Also accept command events.
17709 (do_keystroke): New function created from XTread_socket.
17710 (init_command_handler): Remove functions.
17711 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
17712 and save window location by kEventWindowShowing and kEventWindowHiding
17713 handlers here. Don't call next handler for window state change and
17714 focus events.
17715 (mac_handle_application_event, mac_handle_keyboard_event)
17716 [TARGET_API_MAC_CARBON]: New functions.
17717 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
17718 kEventWindowShowing and kEventWindowHiding events. Move installation
17719 of mouse, font, text input and menu target item handlers to
17720 install_application_handler.
17721 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
17722 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17723 New function.
17724 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17725 Register it.
17726 (XTread_socket) [TARGET_API_MAC_CARBON]:
17727 Consolidate SendEventToEventTarget calls.
17728 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
17729 Move application activation handler to mac_handle_application_event.
17730 Move keyboard handler to mac_handle_keyboard_event.
17731 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
17732 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
17733 init_command_handler. Call install_application_handler.
17734
17735 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
17736 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
17737
177382007-06-07 Glenn Morris <rgm@gnu.org>
17739
17740 * emacs.c (main): Use `emacs-copyright' in --version output.
17741
177422007-06-06 Chong Yidong <cyd@stupidchicken.com>
17743
17744 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
17745
177462007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17747
17748 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
17749
17750 * macgui.h: Replace WindowPtr with WindowRef.
17751
17752 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17753 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17754 Replace ControlHandle with ControlRef.
17755 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
17756
17757 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17758 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17759 Replace ControlHandle with ControlRef.
17760 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
17761 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
17762
17763 * macterm.h (struct scroll_bar): Rename member control_handle_low
17764 and control_handle_high to control_ref_low and control_ref_high.
17765 All uses changed.
17766 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
17767 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
17768 respectively. All uses changed.
17769 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
17770 (install_window_handler, remove_window_handler): Replace WindowPtr
17771 with WindowRef in externs.
17772
177732007-06-05 Juanma Barranquero <lekktu@gmail.com>
17774
17775 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
17776
177772007-06-03 Nick Roberts <nickrob@snap.net.nz>
17778
17779 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
17780
17781 * frame.c (Fmouse_position, Fmouse_pixel_position):
17782 Condition on HAVE_GPM too.
17783
17784 * term.c (term_mouse_highlight): Remove unused variables.
17785 (Fterm_open_connection): Set gpm_zerobased to 1.
17786 (term_mouse_movement, term_mouse_click, handle_one_term_event):
17787 Use zero based co-ordinates.
17788 (handle_one_term_event): Report a drag as mouse movement too.
17789
17790 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
17791
177922007-06-03 Chong Yidong <cyd@stupidchicken.com>
17793
17794 * image.c (search_image_cache): New function. Require background
17795 color match if background color is unspecified in the image spec.
17796 (uncache_image, lookup_image): Use it.
17797
177982007-06-01 Juanma Barranquero <lekktu@gmail.com>
17799
17800 * window.c (Fshrink_window): Reflow docstring.
17801
178022007-06-02 Chong Yidong <cyd@stupidchicken.com>
17803
17804 * Version 22.1 released.
17805
178062007-06-01 Richard Stallman <rms@gnu.org>
17807
17808 * xfns.c (x_encode_text): Add GCPRO.
17809
178102007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17811
17812 * xfns.c (x_set_name_internal): Save encoded name before
17813 x_encode_text in case string data is relocated.
17814
178152007-05-31 Richard Stallman <rms@gnu.org>
17816
17817 * buffer.c (syms_of_buffer): Doc fix.
17818
178192007-05-30 Nick Roberts <nickrob@snap.net.nz>
17820
17821 * sysdep.c (init_sys_modes): Add rather than replace with
17822 O_NONBLOCK.
17823
17824 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
17825 term_mouse_moveto.
17826
17827 * termhooks.h (term_mouse_moveto): New extern.
17828
17829 * term.c (mouse_face_window): Rename...
17830 (Qmouse_face_window): ...to this.
17831 (term_show_mouse_face, term_clear_mouse_face)
17832 (term_mouse_highlight): Use Qmouse_face_window.
17833 (term_mouse_moveto): New function.
17834 (term_mouse_position): Make it work.
17835 (syms_of_term): Uncomment assignment to mouse_position_hook.
17836 Staticpro Qmouse_face_window.
17837
178382007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17839
17840 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
17841 around current_column call.
17842
178432007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
17844
17845 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
17846 * xdisp.c (next_element_from_buffer):
17847 * window.c (delete_window):
17848 * term.c (term_mouse_highlight):
17849 * msdos.c (getdefdir):
17850 * macterm.c (mac_create_bitmap_from_bitmap_data)
17851 (init_font_name_table):
17852 * fns.c (Fsxhash):
17853 * data.c (Fmake_local_variable):
17854 * ccl.c (ccl_driver): Likewise.
17855
178562007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17857
17858 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
17859 Call mac_wakeup_from_rne on window size change.
17860
178612007-05-25 Chong Yidong <cyd@stupidchicken.com>
17862
17863 * image.c (uncache_image): Fix typo.
17864
178652007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
17866
17867 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
17868
178692007-05-22 Richard Stallman <rms@gnu.org>
17870
17871 * xterm.c (x_connection_closed): Remove NO_RETURN.
17872
178732007-05-22 Martin Rudalics <rudalics@gmx.at>
17874
17875 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
17876
178772007-05-21 Chong Yidong <cyd@stupidchicken.com>
17878
17879 * image.c (uncache_image): New function.
17880 (Fimage_refresh): New function.
17881
178822007-05-20 Jan Djärv <jan.h.d@swipnet.se>
17883
17884 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
17885
178862007-05-20 Nick Roberts <nickrob@snap.net.nz>
17887
17888 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
17889 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
17890
178912007-05-20 Nick Roberts <nickrob@snap.net.nz>
17892
17893 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
17894 conditional on [HAVE_GPM_H].
17895
178962007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17897
17898 * syntax.c (skip_chars): Update syntax-table only after we checked that
17899 the new location is valid.
17900
179012007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17902
17903 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
17904 mac_get_window_bounds.
17905
179062007-05-20 Nick Roberts <nickrob@snap.net.nz>
17907
17908 * Makefile.in (LIBGPM): Allow it to be set from configure.
17909 If set then link Emacs with it.
17910
17911 * config.in: Regenerate.
17912
17913 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
17914 New externs.
17915
17916 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
17917 Include gpm.h.
17918 (handle_one_term_event, term_gpm): New externs.
17919
17920 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
17921 and allow it to be interrupted by SIGIO.
17922
17923 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
17924 (wait_reading_process_output): Wait on gpm_fd too.
17925 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
17926 (add_gpm_wait_descriptor_called_flag): New variable.
17927 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
17928
17929 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
17930 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
17931 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
17932 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
17933 (make_lispy_event): Add case GPM_CLICK_EVENT.
17934 (read_avail_input): Handle mouse input.
17935
17936 * term.c (write_glyphs_with_face): New function.
17937 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
17938 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
17939 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
17940 (mouse_face_face_id, term_gpm, pos_x, pos_y)
17941 (last_mouse_x, last_mouse_y): New variables.
17942 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
17943 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
17944 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
17945 (Fterm_close_connection): New functions.
17946 (term_init): Initialise mouse_face_window.
17947
179482007-05-19 Chong Yidong <cyd@stupidchicken.com>
17949
17950 * xdisp.c (redisplay_window): If first window line is a
17951 continuation line, recompute the new window start instead of
17952 recentering.
17953
179542007-05-18 Glenn Morris <rgm@gnu.org>
17955
17956 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
17957 Suggested by Alfred M. Szmidt <ams@gnu.org>.
17958
179592007-05-17 Glenn Morris <rgm@gnu.org>
17960
17961 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
17962
179632007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17964
17965 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
17966 dead key repeat and up events.
17967
179682007-05-14 Chong Yidong <cyd@stupidchicken.com>
17969
17970 * image.c (pbm_load): Check image size for monochrome pbm.
17971
179722007-05-13 Chong Yidong <cyd@stupidchicken.com>
17973
17974 * xterm.c (XTread_socket): Revert last change.
17975
179762007-05-12 Chong Yidong <cyd@stupidchicken.com>
17977
17978 * image.c (pbm_load): Correctly check image size for greyscale pbm.
17979
17980 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
17981
179822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17983
17984 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
17985 mixup (YAILOM).
17986
179872007-05-07 Andreas Schwab <schwab@suse.de>
17988
17989 * keymap.c (Flookup_key): Fix typo in last change.
17990
179912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17992
17993 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
17994 mapping for unibyte strings.
17995
179962007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17997
17998 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
17999 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18000
180012007-04-29 Richard Stallman <rms@gnu.org>
18002
18003 * insdel.c (replace_range): For undo, record insertion first.
18004
180052007-04-29 Andreas Schwab <schwab@suse.de>
18006
18007 * lisp.h (VECSIZE): Use OFFSETOF.
18008
180092007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18010
18011 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18012 disabled lines.
18013
180142007-04-28 Richard Stallman <rms@gnu.org>
18015
18016 * lread.c (read_escape): In a string, \s is always space.
18017
180182007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18019
18020 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18021
18022 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18023 submenu for menu bar items.
18024
18025See ChangeLog.10 for earlier changes.
18026
18027;; Local Variables:
18028;; coding: utf-8
18029;; add-log-time-zone-rule: t
aac0c6e3
MR
18030;; End:
18031
76b6f707 18032 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18033
18034 This file is part of GNU Emacs.
18035
18036 GNU Emacs is free software: you can redistribute it and/or modify
18037 it under the terms of the GNU General Public License as published by
18038 the Free Software Foundation, either version 3 of the License, or
18039 (at your option) any later version.
18040
18041 GNU Emacs is distributed in the hope that it will be useful,
18042 but WITHOUT ANY WARRANTY; without even the implied warranty of
18043 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18044 GNU General Public License for more details.
18045
18046 You should have received a copy of the GNU General Public License
18047 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18048
18049;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40