(vc-annotate): Use widened line number (Bug#2612).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dde2559c
KH
12009-03-09 Kenichi Handa <handa@m17n.org>
2
3 * charset.c (Qfile_name_handler_alist): Extern it.
4 (load_charset_map_from_file): Temporarily bind
5 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6
340e08a4
AR
72009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8
47f588bb
GM
9 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 11
4ddf94bd
AR
122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13
4c9bdfc2
AR
14 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
15 (x_set_window_size): Change back to calculated method of setting
16 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
17 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
18 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
19
fe41ae9e
AR
20 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
21
4c9bdfc2
AR
22 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
23 accelerator in parens under GNUstep.
24
825d0875
KH
252009-03-06 Kenichi Handa <handa@m17n.org>
26
27 These changes are to detect incorrect composition sequence without
f3b3be74 28 looking ahead the source. (Bug#2370)
825d0875
KH
29
30 * coding.h: Include "composite.h".
31 (enum compisition_state): New enum.
32 (struct compisition_status): New struct.
33 (struct iso_2022_spec): New member cmp_status.
34 (struct emacs_mule_spec): New struct.
35 (struct coding_system): New members ctext_extended_segment_len and
36 embedded_utf_8. Change the union member
37 spec.emacs_mule_full_support to spec.emacs_mule.
38
39 * coding.c (CODING_ISO_CMP_STATUS): New macro.
40 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
41 (MAX_ANNOTATION_LENGTH): Defined to 5.
42 (ADD_COMPOSITION_DATA): New arg nbytes.
43 (emacs_mule_char): New arg cmp_status.
44 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
45 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
46 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
47 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
48 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
49 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
50 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
51 (EMACS_MULE_COMPOSITION_END): New macro.
52 (emacs_mule_finish_composition): New function.
53 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
54 (decode_coding_emacs_mule): Avoid long looking ahead while
55 handling composition.
56 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
57 (ENCODE_COMPOSITION_RULE): New macro.
58 (finish_composition): New function.
59 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
60 (DECODE_COMPOSITION_START): New implementation.
61 (DECODE_COMPOSITION_END): Likewise.
62 (STORE_COMPOSITION_RULE): New macro.
63 (decode_coding_iso_2022): Avoid long looking ahead while handling
64 composition, CTEXT extended segment, and embedded UTF-8.
65 (setup_coding_system): For a coding of type iso-2022, reset
66 CODING_ISO_EXTSEGMENT_LEN (coding) and
67 CODING_ISO_EMBEDDED_UTF_8 (coding).
68 (get_translation): Delete arguments last_block, from_nchars,
69 to_nchars. Callers changed.
70 (produce_chars): Don't modify charbuf. Adjusted for the change of
71 get_translation.
72 (produce_composition): Adjusted for the new annotation sequence.
73 (handle_composition_annotation): Likewise.
74 (consume_chars): Adjusted for the change of get_translation.
75
ccbc4452
AR
762009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
77
4ddf94bd 78 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 79
988a7ddb
KH
802009-03-05 Kenichi Handa <handa@m17n.org>
81
82 * font.c (font_select_entity): New function.
83 (font_find_for_lface): Use font_select_entity to select a font.
84
85 * fontset.c (fontset_find_font): If a font found without
86 restricting of the characters C doen't support C, try to find a
87 font with C restriction.
88
be1bce46 892009-03-04 Nikolaj Schumacher <me@nschum.de> (tiny change)
2f462d73 90
be1bce46 91 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 92
10ea2b82
JR
932009-03-04 Jason Rumney <jasonr@gnu.org>
94
2c93b248 95 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 96 characters that have already been read. (Bug#2569)
2c93b248 97
10ea2b82
JR
98 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
99 Log an error message if check_image_size failed.
100 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 101 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 102
71a0c011
EZ
1032009-03-02 Eli Zaretskii <eliz@gnu.org>
104
105 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
106 when decoding process output.
107
2f63bba8
RS
1082009-03-01 Richard M Stallman <rms@gnu.org>
109
110 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
111
112 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
113
0a9564cb
EZ
1142009-02-28 Eli Zaretskii <eliz@gnu.org>
115
116 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
117 (decode_coding_emacs_mule, decode_coding_iso_2022)
118 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
119 (decode_coding_raw_text, decode_coding_charset)
120 (setup_coding_system, decode_eol, decode_coding, consume_chars):
121 Honor inhibit-eol-conversion. (Bug #2186)
122
449148b3
JR
1232009-02-28 Jason Rumney <jasonr@gnu.org>
124
125 * coding.c (detect_coding_charset): If not checking latin extra,
126 fail on characters between 0x80 and 0xA0. (Bug#2354)
127
a4aee864
EZ
1282009-02-28 Eli Zaretskii <eliz@gnu.org>
129
130 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 131 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 132
d88bee5a
GM
1332009-02-27 Glenn Morris <rgm@gnu.org>
134
135 * callint.c (Finteractive): Doc fix.
136
a808f22d
KH
1372009-02-27 Kenichi Handa <handa@m17n.org>
138
139 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
140
caf8d60c
CY
1412009-02-27 Chong Yidong <cyd@stupidchicken.com>
142
143 * font.c (font_style_to_value): Set value for unknown symbols to
144 100 instead of 255.
b61137ea
CY
145 (weight_table, slant_table, width_table): Treat "unspecified" as
146 the default value.
caf8d60c 147
1a0de25c
JB
1482009-02-26 Juanma Barranquero <lekktu@gmail.com>
149
150 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
151
8fc45744
JB
1522009-02-25 Juanma Barranquero <lekktu@gmail.com>
153
107bd7d1
JB
154 * lread.c (Fload): Stop checking Vloads_in_progress and signal
155 error as soon as a recursive load is detected.
8fc45744 156
f097e223
AR
1572009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
158
159 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
160 before caching.
161
8810a12f
KH
1622009-02-24 Kenichi Handa <handa@m17n.org>
163
164 * fontset.c (fontset_find_font): Fix the condition for checking
165 unavailable font.
166
2c7d1565
GM
1672009-02-24 Glenn Morris <rgm@gnu.org>
168
169 * xfaces.c (Finternal_set_font_selection_order): Remove leading
170 whitespace that confuses documentation.
171
a20878b6
MB
1722009-02-23 Miles Bader <miles@gnu.org>
173
174 * process.c (Flist_system_processes, Fprocess_attributes)
175 (syms_of_process): Rename `system-process-attributes' to
176 `process-attributes'.
177
b3b58c01
AS
1782009-02-22 Andreas Schwab <schwab@linux-m68k.org>
179
1b3b981b
AS
180 * coding.h (struct coding_system): Make safe_charsets a pointer to
181 unsigned char.
182 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
183 being 255.
184 (SAFE_CHARSET_P): Likewise.
185 (setup_iso_safe_charsets): Properly setup safe_charsets.
186 (Fdefine_coding_system_internal): Likewise.
187 (setup_coding_system): Likewise. Remove unneeded casts.
188 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
189 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
190 unneeded casts.
191
b3b58c01
AS
192 * insdel.c (del_range_2): Don't modify gap contents when called
193 from decode_coding_object. (Bug#1809)
194
0b6f228c
CY
1952009-02-21 Chong Yidong <cyd@stupidchicken.com>
196
197 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
198 Qfont_object.
199 (Ftype_of): Recognize font objects.
200
201 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
202
203 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
204 moved to data.c.
205
52f8870b
AR
2062009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
207
208 * nsterm.m (x_make_frame_invisible): Unset async_visible,
209 async_iconified. Based on a patch by Christian Lynbech
210 <christian.lynbech@tieto.com>.
211 (EmacsView-windowDidMiniaturize:): Unset async_visible.
212
7087d5e9
GM
2132009-02-20 Glenn Morris <rgm@gnu.org>
214
215 * syntax.c (Fskip_chars_forward): Fix doc typo.
216
41d2ceef
CY
2172009-02-20 Chong Yidong <cyd@stupidchicken.com>
218
219 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
220
1a3b7ca6
CY
2212009-02-19 Chong Yidong <cyd@stupidchicken.com>
222
223 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
224
73cce38d
KH
2252009-02-19 Kenichi Handa <handa@m17n.org>
226
227 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 228 Don't overflow coding->carryover. (Bug#2370)
73cce38d 229
a51092ee
DN
2302009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
231
232 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
233
c423ecca
KH
2342009-02-18 Kenichi Handa <handa@m17n.org>
235
236 * font.c (font_check_otf_features): Fix handling of `nil' element.
237 (Ffont_spec): Describe :lang and :otf in the docstring.
238
4c1958f4
AS
2392009-02-16 Andreas Schwab <schwab@suse.de>
240
241 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
242 string.
243
5704f39a
KH
2442009-02-16 Kenichi Handa <handa@m17n.org>
245
246 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 247 (Bug#1723)
5704f39a 248
8f0085aa
CY
2492009-02-14 Chong Yidong <cyd@stupidchicken.com>
250
a057d86a 251 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
252
253 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
254 (handle_line_prefix): Suppress wrapping of wrap prefixes.
255
aff01dd9
EZ
2562009-02-14 Eli Zaretskii <eliz@gnu.org>
257
258 * msdos.c (MAX_SCREEN_BUF): New macro.
259 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
260 Encode the entire run of glyphs sharing the same face, instead of
261 doing that one glyph at a time (fixes a bug with displaying
262 double-size characters).
263
ba301db3
AR
2642009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
265
266 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
267
268 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
269 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 270 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
271
272 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 273 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 274
51d861de
SM
2752009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
276
277 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
278 invisible areas.
279
7fed8996
JR
2802009-02-12 Jason Rumney <jasonr@gnu.org>
281
631ea4fb
JR
282 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
283 (add_font_entity_to_list): Call check_face_name even when family
284 is unspecified.
285
cb4a3e42
JR
286 * w32term.c (x_display_pixel_height, x_display_pixel_width):
287 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 288 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 289
7fed8996 290 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 291 raster fonts. (Bug#2219)
7fed8996 292
895416e3
KH
2932009-02-12 Kenichi Handa <handa@m17n.org>
294
295 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
296 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
297 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 298 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
299 (find_automatic_composition): While looking forward and backward,
300 check static composition. Fix where to stop looking forward.
301 (composition_adjust_point): Fix checking of static composition.
302 (Fcomposition_get_gstring): Pay attention to
1dacf998 303 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
304
305 * lisp.h (fast_looking_at): Extern it.
306
307 * search.c (fast_looking_at): New function.
308
51d861de 309 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
310 <struct glyph>.u.cmp.to.
311 (append_composite_glyph): Likewise.
312
51d861de 313 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
314 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
315 composition.
51d861de 316 (append_composite_glyph): Adjust for the change of
895416e3
KH
317 <strcut glyph>.u.cmp.to.
318
8510724d
JB
3192009-02-11 Juanma Barranquero <lekktu@gmail.com>
320
321 * casetab.c (init_casetab_once):
322 * coding.c (ALLOC_CONVERSION_WORK_AREA):
323 * font.c (font_update_lface):
324 * fontset.c (Fnew_fontset):
325 * ftfont.c (ftfont_drive_otf):
326 * xfont.c (xfont_open):
327 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
328
294fa707
SM
3292009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
330
331 * fileio.c (Fwrite_region): !NILP -> CONSP.
332
b5bfebec
AS
3332009-02-10 Andreas Schwab <schwab@suse.de>
334
335 * process.c (send_process): Properly relocate pointer into data
adab88bd 336 when using encoded data. (Bug#2272)
b5bfebec 337
cb84a2be
KH
3382009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
339
340 * coding.c (detect_coding_charset): Fix previous change.
341
89e09428
JR
3422009-02-08 Jason Rumney <jasonr@gnu.org>
343
344 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 345 disappeared while hourglass was displayed. (Bug #2193)
89e09428 346
4470a277
AS
3472009-02-07 Andreas Schwab <schwab@suse.de>
348
349 * unexelf.c (unexec): Fix error message.
350
3175b12a
AR
3512009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
352
353 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 354 when modal window is active. (Bug #2152)
3175b12a
AR
355 (applicationShouldTerminate:): Remove now-unneeded while loop
356 around NSRunAlertPanel.
357
358 * nsmenu.m (popupSession): New file-global variable.
359 (pop_down_menu): End the popupSession before closing dialog.
360 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
361 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
362 don't query NSApp for events (just sleep instead).
363
8434d0b8
EZ
3642009-02-07 Eli Zaretskii <eliz@gnu.org>
365
51d861de
SM
366 * coding.c (syms_of_coding) <translation-table-for-input>:
367 Modify doc string to discourage use for character code unification.
8434d0b8 368
aa82edfd
CY
3692009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
370
371 * atimer.c (run_timers): Update pending_atimers.
372
2d283c7c
CY
3732009-02-06 Chong Yidong <cyd@stupidchicken.com>
374
eb306cab
CY
375 * image.c (svg_load_image): Fix last change.
376
2d283c7c
CY
377 * xfns.c (Fx_create_frame): Signal an error if no font is
378 found (Bug#2147).
379
4d8e170e
JB
3802009-02-05 Juanma Barranquero <lekktu@gmail.com>
381
382 * character.c (syms_of_character) <script-representative-chars>:
383 Fix typo in docstring.
384
c96169a0
AR
3852009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
386
387 * nsmenu.m (pop_down_menu): New function.
388 (ns_popup_dialog): Call it on unwind.
389 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
390 call timer_check() (Bug#2154).
391 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
392 handling_signal is set.
393 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
394
395 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
396
397 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
398
399 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
400
51d861de
SM
401 * keyboard.c (poll_for_input_1, handle_async_input):
402 Set handling_signal under HAVE_NS.
c96169a0 403
aacd8ba1
GM
4042009-02-04 Glenn Morris <rgm@gnu.org>
405
406 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
407
4cb75c4b
KH
4082009-02-04 Kenichi Handa <handa@m17n.org>
409
410 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
411
412 * charset.c (Fchar_charset): New optional arg restriction.
413
414 * coding.h (coding_system_charset_list): Extern it.
415
416 * coding.c (coding_system_charset_list): New function.
417
418 * composite.c: Include coding.h and termhooks.h.
419 (composition_gstring_p): Fix for the terminal case.
420 (composition_gstring_width): Likewise.
421 (fill_gstring_body): Likewise.
422 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
423 the frame.
424 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
425 is within a composition.
867d4bb3 426 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
427
428 * term.c (encode_terminal_code): Fix handling of composition.
429 (produce_composite_glyph): For static composition, get pixel_width
430 from struct composition.
431
826ba17e
AS
4322009-02-02 Andreas Schwab <schwab@suse.de>
433
434 * unexelf.c (unexec): Handle unaligned bss offset.
435
8ad093db
AR
4362009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
437
438 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
439 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 440
8ad093db
AR
441 * keyboard.c (handle_interrupt): Don't call
442 quit_throw_to_read_char() under NS.
d0a76a6e 443
8ad093db
AR
444 * blockinput.h: Remove NS-specific code.
445
4d18a7a2
DN
4462009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
447
db878925
DN
448 * dispnew.c (window_change_signal): Don't try to get the size of a
449 suspended tty frame.
450 * term.c (Fresume_tty): Resize if the size has changed while the
451 tty was suspended.
452
4d18a7a2
DN
453 * alloc.c (mark_stack): Properly conditionalize previous change.
454
8984df7c
JB
4552009-01-30 Juanma Barranquero <lekktu@gmail.com>
456
457 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
458 * w32term.c (w32_read_socket) [SYNC_INPUT]:
459 Remove; this code is not used on Windows.
460
75f4f1ac
EZ
4612009-01-30 Eli Zaretskii <eliz@gnu.org>
462
463 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
464 EOLs that also has stray ^M characters.
465
07a1e794
JB
4662009-01-30 Juanma Barranquero <lekktu@gmail.com>
467
468 * atimer.c (run_timers, alarm_signal_handler):
469 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
470 * w32inevt.c (w32_console_read_socket):
471 * w32term.c (w32_read_socket):
472 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
473
a8b11cc9
CY
4742009-01-30 Chong Yidong <cyd@stupidchicken.com>
475
476 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
477 Initialize it as a relative filename pattern.
478 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
479 (Fcall_process_region): Simplify temp file creation using
480 temporary-file-directory.
481
c279587b
EZ
4822009-01-29 Eli Zaretskii <eliz@gnu.org>
483
484 * msdos.c: Rename pending_signals to msdos_pending_signals.
485 (sig_suspender, sigprocmask): Adjust.
486
a8fe3242
CY
4872009-01-29 Chong Yidong <cyd@stupidchicken.com>
488
489 * keyboard.c (pending_signals): New var.
490 (poll_for_input, input_available_signal, init_keyboard): Set it.
491 (process_pending_signals): New function.
492
493 * lisp.h (QUIT): Check pending_signals instead of
494 interrupt_input_pending. Use process_pending_signals.
495
51d861de 496 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 497
51d861de 498 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
499
500 * sysdep.c (emacs_write): Use process_pending_signals.
501
502 * xterm.c (XTread_socket): Update pending_signals.
503
504 * w32term.c (w32_read_socket): Update pending_signals.
505
506 * w32inevt.c (w32_console_read_socket): Update pending_signals.
507
6570a1c4
KH
5082009-01-29 Kenichi Handa <handa@m17n.org>
509
510 * xftfont.c (xftfont_has_char): New function.
511 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
512
d72a4afa
AR
5132009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
514
515 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
516 under GNUstep.
517 (ns_query_color): New declaration.
518
519 * nsterm.m (ns_confirm_quit): New variable.
520 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
521 (EmacsApp-applicationShouldTerminate:): Use it.
522 (EmacsPrefsController): Let user set it.
523 (ns_query_color): New function.
524 (ns_defined_color): Use it.
525 (ns_initialize): Drop.
526 (ns_term_init): Add two lines from ns_initialize(), and set
527 input_interrupt_mode to nil.
528
529 * image.c (svg_load_image): Don't right-shift background RGB when
530 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
531
9fe78804
KH
5322009-01-28 Kenichi Handa <handa@m17n.org>
533
534 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
535 (fontset_get_font_group): Remember that no font-group is specified
536 for C.
9fe78804 537
fa57de36
CY
5382009-01-27 Chong Yidong <cyd@stupidchicken.com>
539
930600e9
CY
540 * fns.c (concat): Check for string overflow (bug#1787).
541
fa57de36
CY
542 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
543 Quadruple undo limits (bug#1501).
544
7179ce7b
KH
5452009-01-27 Kenichi Handa <handa@m17n.org>
546
547 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
548 directly use GT_Get_Char_index.
549
550 * xftfont.c (struct xftfont_info): New member `index'.
551
552 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 553 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 554
5be8fcc0
CY
5552009-01-26 Kenichi Handa <handa@m17n.org>
556
557 * fontset.c (fontset_find_font): Fix handling of non-cons return
558 value of fontset_get_font_group.
559 (fontset_font): Revert last change.
560
19ae3e61
JR
5612009-01-26 Jason Rumney <jasonr@gnu.org>
562
563 * w32font.c (w32font_list_internal): Return quickly if registry is
564 unknown. Simplify final return.
565 (add_font_entity_to_list): Break complex logic down into more
566 manageable chunks. Move unknown registry check to
567 w32font_list_internal.
568
8612b71a
AR
5692009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
570
571 Changes to remove Feval calls from GUI under NS.
572
d8038940
JB
573 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
574 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
575 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
576
577 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
578 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
579 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
580 instead of NON_ASCII_KEYSTROKE_EVENT.
581 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
582 (EmacsApp-applicationShouldTerminate:): Query user.
583 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
584 instead of Feval.
585
586 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
587
588 * keyboard.c (kbd_buffer_get_event): Check for it.
589 (keys_of_keyboard): Define lispy keys for
590 ns-put/unput-working-text.
591
592 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
593 versions.
594 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
595
6288ae55
CY
5962009-01-25 Chong Yidong <cyd@stupidchicken.com>
597
598 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 599 setting current_buffer directly. (Bug#2044)
6288ae55 600
289e7f8f
CY
6012009-01-24 Chong Yidong <cyd@stupidchicken.com>
602
5ce87308 603 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 604 any work. (Bug#1952, bug#1990).
5ce87308 605
64cc3cf6 606 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 607
b3243e6f
AR
6082009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
609
610 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
611 (ns_no_defaults): New declaration.
612 (main): Use it.
e0d2e69a 613
d900b2af 614 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 615
d900b2af 616 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 617
d900b2af
AR
618 * nsterm.m (ns_no_defaults): New variable.
619 (ns_initialize): Don't read defaults when ns_no_defaults.
620 (EmacsView-readSelectionFromPasteboard:)
621 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 622 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
623 (ns_dumpglyphs_stretch): New function.
624 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 625 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 626
e0d2e69a
AR
627 * nsimage.m (setPixmapData:): Set to ignore image DPI.
628
3ac71f5d
CY
6292009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
630
631 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
632 call for Sparc64.
633
3fe53a83
AR
6342009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
635
636 * nsfns.m:
637 * nsgui.h:
638 * nsmenu.m:
639 * nsselect.m:
640 * nsterm.h:
641 * nsterm.m: Remove '23' comments that indicated code added during
642 update from emacs-20 -> emacs-23.
643
10f87c6f 6442009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
645
646 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 647 ns_alternate_modifier. (Bug#1217)
a3b53a85 648
c7cef62d
AR
649 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
650 Display all shortcuts, including those w/o super modifier.
651
575fb8bd
AR
652 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
653
918b848b
CY
6542009-01-22 Chong Yidong <cyd@stupidchicken.com>
655
656 * fileio.c (Vwrite_region_post_annotation_function)
657 (Vwrite_region_annotation_buffers): New vars.
658 (build_annotations_unwind): Just reset
659 Vwrite_region_annotation_buffers.
660 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
661 Call write-region-post-annotation-function.
662 (build_annotations): Add to Vwrite_region_annotation_buffers if
663 buffer changes.
664
a39e2539
AR
6652009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
666
667 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
668 Tiger.
51d861de
SM
669 * nsfns.m (ns_do_applescript):
670 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 671
35ed44db
AR
6722009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
673
674 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
675
cbe0b5bf
AR
6762009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
677
678 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 679
6049d3a0
AR
680 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
681
682 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
683 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
684 handle Ctrl-tab. (Bug#1841)
685 (ns_get_color): Use unsigned long long for scanned hex string value.
686 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 687 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6049d3a0 688 (EmacsPrefsController-setPanelFromDefaultValues) New function.
3a88a825 689 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 690 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 691 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 692 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 693
d3810c21 694 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 695 DPI. (Bug#1316)
d3810c21
AR
696 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
697 values in onTiger section.
4c7077c3 698
e301e634
CY
6992009-01-19 Chong Yidong <cyd@stupidchicken.com>
700
7f82490b
CY
701 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
702 Check return value of font_spec_from_name.
64cc3cf6 703 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
704
705 * font.c (font_spec_from_name): Return Qnil if font name could not
706 be parsed.
707 (font_parse_name): Treat a `?' character as part of an XLFD.
708
e301e634
CY
709 * fns.c (Fsubstring): Doc fix.
710
1c0db158
KH
7112009-01-19 Kenichi Handa <handa@m17n.org>
712
51d861de 713 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
714 (ftfont_list): Likewise.
715
acf20901
JB
7162009-01-18 Juanma Barranquero <lekktu@gmail.com>
717
fff4e459
JB
718 * dbusbind.c (Fdbus_register_signal):
719 * process.c (conv_sockaddr_to_lisp):
720 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
721
acf20901
JB
722 * callproc.c (Fgetenv_internal): Doc fix.
723
e7abcdfb
CY
7242009-01-16 Chong Yidong <cyd@stupidchicken.com>
725
726 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
727 it is not even used.
728
b60861e6
GM
7292009-01-16 Glenn Morris <rgm@gnu.org>
730
731 * font.c (Ffont_variation_glyphs): Silence compiler.
732
8db52afe
JB
7332009-01-15 Juanma Barranquero <lekktu@gmail.com>
734
735 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
736 Reported by David Robinow <drobinow@gmail.com>.
737
4cddb209
KH
7382009-01-15 Kenichi Handa <handa@m17n.org>
739
51d861de 740 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 741
f247f67b
JR
7422009-01-14 Jason Rumney <jasonr@gnu.org>
743
744 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 745 never a fontset. (Bug#1562)
f247f67b 746
f56a4450
KH
7472009-01-14 Kenichi Handa <handa@m17n.org>
748
749 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 750 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 751
4e99855e
CY
7522009-01-13 Chong Yidong <cyd@stupidchicken.com>
753
754 * font.c (font_clear_prop): If clearing the family, clear the font
755 width index too.
756
fff4e459 757 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 758
24f01470
JB
7592009-01-12 Juanma Barranquero <lekktu@gmail.com>
760
761 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
762 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
763 functions, use sizeof.
764
a41240a3
MR
7652009-01-12 Martin Rudalics <rudalics@gmx.at>
766
767 * keyboard.c (read_char): Fix case where last_nonmenu_event
768 returned a bad value with submenus. (Bug#447)
769
944636b8
CY
7702009-01-12 Chong Yidong <cyd@stupidchicken.com>
771
772 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
773 family, clear the font width index too.
774
0dad7c6f
JR
7752009-01-11 Jason Rumney <jasonr@gnu.org>
776
777 * keyboard.c (cmd_error_internal): Exit when errors occur before
778 frame creation and not in daemon mode. (Bug#1836)
779
7c2363af
CY
7802009-01-10 Chong Yidong <cyd@stupidchicken.com>
781
782 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
783 of a display vector, backtrack.
784 (try_window_reusing_current_matrix): Check glyph type before
785 referencing charpos member.
786
97b1b294
EZ
7872009-01-10 Eli Zaretskii <eliz@gnu.org>
788
789 Fix Bug #876:
790
791 * coding.c (inhibit_null_byte_detection): New variable.
792 (detect_coding, detect_coding_system): Don't pay attention to null
793 bytes if inhibit_null_byte_detection is non-zero.
51d861de 794 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
795 <inhibit-iso-escape-detection>: Doc fix.
796
4624b6e3
JR
7972009-01-09 Jason Rumney <jasonr@gnu.org>
798
799 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 800 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
801 Only report Unicode Plane 2 fonts as unicode-sip.
802
323b840c
CY
8032009-01-09 Chong Yidong <cyd@stupidchicken.com>
804
51d861de
SM
805 * xfaces.c (Fx_font_family_list): Delete function.
806 Move compatibility version to faces.el.
323b840c 807
51d861de 808 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 809
eba7400d
MR
8102009-01-09 Martin Rudalics <rudalics@gmx.at>
811
812 * frame.c (x_set_frame_parameters): Remember requested value for
813 fullscreen before it's reset by the parameter handler.
814
4b09796d
GM
8152009-01-09 Glenn Morris <rgm@gnu.org>
816
817 * keyboard.c (last_command_char): For clarity, rename to...
818 (last_command-event): ... and update all users.
819 (last_input_char): For clarity, rename to...
820 (last_input_event): ... and update all users.
821 (last-command-char, last-input-char): Move to subr.el as aliases.
822 * cmds.c, commands.h: Update for last_command_char rename.
823
14ccea62
CY
8242009-01-08 Chong Yidong <cyd@stupidchicken.com>
825
51d861de 826 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 827
5f004711
JR
8282009-01-08 Jason Rumney <jasonr@gnu.org>
829
830 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
831 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
832 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
833 Don't declare.
fff4e459 834 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
835 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
836
b71f6f73
KH
8372009-01-07 Kenichi Handa <handa@m17n.org>
838
50b06221 839 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 840 remember the coding system used for decoding in
50b06221
KH
841 coding_system (Bug#1039).
842
b71f6f73 843 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 844 breaking the loop. (Bug#870)
b71f6f73
KH
845 (decode_coding_utf_16, decode_coding_emacs_mule)
846 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
847 (decode_coding_charset): Likewise.
848
56f668f7
MR
8492009-01-05 Martin Rudalics <rudalics@gmx.at>
850
851 * frame.c (x_set_frame_parameters): Make sure height (width) get
852 applied when fullwidth (fullheight) is set. (Bug#1522)
853
5da9424d
JB
8542009-01-04 Juanma Barranquero <lekktu@gmail.com>
855
856 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
857 (utc_base): Declare as ULONGLONG, not long double.
858 (convert_time_raw): Delete.
859 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
860 (initialize_utc_base): New function.
861 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
862 (convert_from_time_t): Use initialize_utc_base; compute result with
863 64-bit arithmetic.
864 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
865
c4605e09
EZ
8662009-01-03 Eli Zaretskii <eliz@gnu.org>
867
9acef61c 868 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
869 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
870 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
871 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
872 [!subprocesses]: Define.
873 (syms_of_process) [!subprocesses]: Intern and staticpro them.
874 (Flist_system_processes, Fsystem_process_attributes)
875 [!subprocesses]: Call list_system_processes and
876 system_process_attributes instead of returning Qnil.
877
9acef61c
JB
878 * dosfns.c (system_process_attributes, list_system_processes):
879 New functions.
c4605e09
EZ
880
881 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
882
883 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
884 Don't use the default (no-op) implementation.
885
8b7d0a16
JR
8862009-01-03 Jason Rumney <jasonr@gnu.org>
887
a6d46bc1
JR
888 * keyboard.c (parse_modifiers_uncached): Wheel events are
889 clicks (bug#687).
890
8b7d0a16
JR
891 * w32term.c (x_query_colors, x_query_color): New functions.
892
893 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
894 (svg_load_image): Cast returned pointers from dynamically loaded
895 functions. Eliminate W32 specific code.
896
bfe11752
DN
8972009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
898
89e2438a
DN
899 * nsfns.m (x_set_foreground_color, x_set_background_color)
900 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
901 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
902 x_ prefix instead of ns_. Update references.
903 (syms_of_nsfns): Add a FIXME comment.
904
905 * nsterm.m (x_set_cursor_type): New prototype.
906 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
907
bfe11752
DN
908 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
909 for Solaris instead of incorrectly providing Qutime and Qcutime.
910
031da700
EZ
9112009-01-02 Eli Zaretskii <eliz@gnu.org>
912
913 * w32.c (process_times): Compute sum of utime and stime.
914 (system_process_attributes): Add Qtime to the alist.
915
916 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
917 and add them to the alist.
918
919 * process.c (top level) <Qtime, Qctime>: New variables.
920 (syms_of_process): staticpro them.
921 (Fsystem_process_attributes): Add their documentation to the doc
922 string.
923
924 * process.h: Declare Qtime and Qctime.
925
df23bf08
JR
9262009-01-02 Jason Rumney <jasonr@gnu.org>
927
9acef61c 928 * image.c (Qgobject): New symbol.
df23bf08
JR
929 (syms_of_image): Initialize it.
930 (init_svg_functions): Load some functions from gobject library.
931
5bbdf7aa
DN
9322009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
933
934 * frame.c (make_terminal_frame): Remove redundant code and useless
935 block.
936
63136da6
AS
9372009-01-01 Andreas Schwab <schwab@suse.de>
938
939 * process.c (conv_sockaddr_to_lisp): Add workaround for
940 getsockname bug on BSD.
941
9ef69046
CY
9422009-01-01 Chong Yidong <cyd@stupidchicken.com>
943
d6fafbe0
CY
944 * xfns.c (x_create_tip_frame): Set border width of the X window.
945
51d861de 946 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 947
f9c34147
JR
9482009-01-01 Jason Rumney <jasonr@gnu.org>
949
9acef61c 950 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
951 Don't block input, as per earlier xterm.c changes.
952
f5497e45
AR
9532008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
954
955 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
956 (ns_appkit_version_int): New function.
957 (x-server-version): Use ns_appkit_version_int and follow 21+
958 convention of returning 3 integers.
959
c19cab20
KH
9602008-12-30 Kenichi Handa <handa@m17n.org>
961
962 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
963 (CHAR_SURROGATE_PAIR_P): New macro.
964
965 * font.h (struct font_driver): New member get_variation_glyphs.
966
9acef61c 967 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
968 (Ffont_variation_glyphs): New function.
969 (syms_of_font): Defsubr it.
970
971 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
972 ftfont_variation_glyphs.
973 (setup_otf_gstring): New function.
974 (ftfont_drive_otf): Use it.
975 (ftfont_shape_by_flt): Handle variation selector.
976 (ftfont_variation_glyphs): New function.
977
28cd591f
MR
9782008-12-30 Martin Rudalics <rudalics@gmx.at>
979
980 * frame.c (Vemacs_iconified): Remove.
981
7f714baf
JR
9822008-12-30 Jason Rumney <jasonr@gnu.org>
983
984 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 985 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 986
9d2d22ab
CY
9872008-12-30 Chong Yidong <cyd@stupidchicken.com>
988
989 * indent.c (Fvertical_motion): Don't advance iterator if we have
990 reseated to the desired position.
991
992 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
993 checking for pos match.
994
545312c2
KH
9952008-12-30 Kenichi Handa <handa@m17n.org>
996
1ede3eb6
KH
997 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
998 just get the low 8-bit of the code.
999
545312c2
KH
1000 * font.c (font_intern_prop): Validate str as multibyte.
1001
bd7bbf29
DN
10022008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1003
31e0750e
DN
1004 * dispextern.h (struct face): Move lface and hash from the middle
1005 of bitfields.
1006
bd7bbf29
DN
1007 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1008
b5672e7c
DN
10092008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1010
1011 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1012 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1013 instead of intervals.h.
1014
d704470f
AS
10152008-12-26 Andreas Schwab <schwab@suse.de>
1016
1017 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1018 cons.
1019
54b33868
MR
10202008-12-26 Martin Rudalics <rudalics@gmx.at>
1021
1022 * textprop.c (Qminibuffer_prompt): New variable.
1023 (syms_of_textprop): Initialize it.
1024 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1025 in minibuffer-prompt face. (Bug#1662)
1026
40b615d6
JR
10272008-12-25 Jason Rumney <jasonr@gnu.org>
1028
1029 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1030
baae5c2d
JR
10312008-12-24 Jason Rumney <jasonr@gnu.org>
1032
1033 * ralloc.c (r_alloc_reset_variable): New function.
1034
1035 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1036 record of what points where. (Bug#716)
baae5c2d 1037
a9051c88
DN
10382008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1039
1040 * minibuf.c (read_minibuf): Follow the non-interactive case when
1041 running as a daemon, before detaching.
1042
8b146312
AS
10432008-12-22 Andreas Schwab <schwab@suse.de>
1044
1045 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1046 * gtkutil.c (free_widget_value): Use xfree instead of free.
1047
56f2de10
MR
10482008-12-22 Martin Rudalics <rudalics@gmx.at>
1049
1050 * frame.c (delete_frame): New function derived from
1051 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1052 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1053 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1054 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1055 * frame.h: Extern delete_frame.
1056 * window.c (window_loop):
1057 * terminal.c (delete_terminal):
1058 * xterm.c (x_connection_closed):
1059 * xfns.c (Fx_hide_tip):
9acef61c 1060 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1061
1fc200d6
JR
10622008-12-21 Jason Rumney <jasonr@gnu.org>
1063
1064 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1065 when character maps to .notdef character.
1066
5e252df2
SM
10672008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1068
1069 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1070
99b72cc4
JR
10712008-12-20 Jason Rumney <jasonr@gnu.org>
1072
1073 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1074 a graphical frame on Windows. (Bug#1325)
99b72cc4 1075
acc49a52
JD
10762008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1077
1078 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1079
6ea15123
CY
10802008-12-20 Chong Yidong <cyd@stupidchicken.com>
1081
1082 * minibuf.c (Fread_buffer): Doc fix.
1083
b2dab6c8
JR
10842008-12-20 Jason Rumney <jasonr@gnu.org>
1085
54ea0c87 1086 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1087 server name in UNC paths. (Bug#719)
54ea0c87 1088
b2dab6c8 1089 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1090 charbuf. (Bug#1035)
b2dab6c8 1091
6d1921be
DN
10922008-12-19 Daniel Engeler <engeler@gmail.com>
1093
1094 * sysdep.c (serial_configure): Fix typo.
1095
53934c98
DN
10962008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1097
1098 * sysdep.c: Include alloca.h.
f4f634e8
DN
1099 (system_process_attributes): Add implementation for Solaris.
1100
1101 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1102
06e111a6
DN
11032008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1104
1105 Reorganize implementation of Flist_system_processes and
1106 Fsystem_process_attributes. No functional changes.
1107 * process.c: Don't #include pwd.h, grp.h and limits.h.
1108 (Flist_system_processes): Just call list_system_processes.
1109 (Fsystem_process_attributes): Just call system_process_attributes.
1110 (procfs_list_system_processes, time_from_jiffies)
1111 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1112 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1113
1114 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1115 (list_system_processes): Rename from
1116 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1117 Provide a do nothing implementation.
1118 (system_process_attributes): Rename from
1119 procfs_list_system_processes.
1120 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1121 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1122
1123 * w32.c (list_system_processes): Rename from
1124 w32_list_system_processes.
1125 (system_process_attributes): Rename from
1126 w32_system_process_attributes.
1127
1128 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1129
1130 * process.h (w32_list_system_processes)
1131 (w32_system_process_attributes): Remove.
1132 (list_system_processes, system_process_attributes): New
1133 prototypes.
1134
6a705b23
KH
11352008-12-19 Kenichi Handa <handa@m17n.org>
1136
1137 * xfont.c (xfont_decode_coding_xlfd): New function.
1138 (xfont_encode_coding_xlfd): New function.
1139 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1140 (xfont_list): Decode and encode XLFD by iso-8859-1.
1141 (xfont_match): Likewise.
1142 (xfont_list_family): Likewise.
1143 (xfont_open): Likewise.
1144
d66c0241 1145 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1146 names are utf-8.
1147
d66c0241 1148 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1149 names are utf-8.
1150
5a130941
JD
11512008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1152
1153 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1154 changed.
bfd20325
JD
1155 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1156 clicked on a detached tool bar button.
5a130941 1157
fd95644b
DN
11582008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1159
1160 * emacs.c (main): Print and error and exit when no data is read
1161 from the pipe.
1162
e6eee6ae
JR
11632008-12-17 Jason Rumney <jasonr@gnu.org>
1164
1165 * w32font.c (w32font_has_char): Always return -1.
1166
a35dd56b
KH
11672008-12-16 Kenichi Handa <handa@m17n.org>
1168
1169 * font.c (font_open_entity): Fix previous change.
1170
0e3635c2
DN
11712008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1172
1173 * process.c: Include <limits.h>.
1174
d4835507 11752008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1176
1177 * font.c (font_update_drivers): Fix mistake in reconstructing the
1178 driver list.
1179
11802008-12-16 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * font.c (font_clear_cache): Fix format of font cache data.
1183
e2cbc401
CY
11842008-12-15 Chong Yidong <cyd@stupidchicken.com>
1185
1186 * xftfont.c (xftfont_open): Free Xft font pattern if
1187 XftFontOpenPattern fails.
1188
1189 * xterm.c (x_free_frame_resources): Remove extraneous call to
1190 free_frame_faces.
1191
b131d535
CY
11922008-12-13 Chong Yidong <cyd@stupidchicken.com>
1193
1194 * xterm.c (x_delete_display): Move xim_close_dpy call to
1195 x_delete_terminal.
1196 (x_delete_terminal): Call xim_close_dpy.
1197
e6df5336
JR
11982008-12-13 Jason Rumney <jasonr@gnu.org>
1199
1200 * w32font.c (intern_font_name): New function.
1201 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1202 (w32font_open_internal, Fx_select_font): Decode font name.
1203 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1204
1205 * w32font.h (intern_font_name): Declare new function.
1206
1207 * w32uniscribe.c (add_opentype_font_name_to_list):
1208 Use intern_font_name.
1209
20d68145
CY
12102008-12-13 Chong Yidong <cyd@stupidchicken.com>
1211
9f2554de
CY
1212 * frame.c (Fdelete_frame): Call free_font_driver_list.
1213
3d9bec9a
CY
1214 * font.c (free_font_driver_list): Implement missing function.
1215
20d68145
CY
1216 * w32term.c (w32_term_init): Don't initialize the image cache
1217 here; it will be done in init_frame_faces.
1218
1219 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1220 (struct x_display_info): Remove unused member null_pixel. New
1221 member xim_callback_data.
1222
1223 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1224 (xim_initialize): Save pointer to callback function data.
1225 (xim_close_dpy): Free callback function data. Call XCloseIM,
1226 reverting 2008-11-04 change by David Smith.
1227 (x_term_init): Don't initialize the image cache here; it will be
1228 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1229 (x_delete_display): Free x_dnd_atoms member.
1230
96f9306b
KH
12312008-12-13 Kenichi Handa <handa@m17n.org>
1232
6dec9044
JB
1233 * font.c (font_rescale_ratio): Moved from xfaces.c.
1234 Argument type changed. Handle a font-spec too.
96f9306b 1235 (font_score): Check Vface_font_rescale_alist.
6dec9044 1236 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1237
1238 * xfaces.c (font_rescale_ratio): Moved to font.c.
1239
8d5b4964
CY
12402008-12-13 Chong Yidong <cyd@stupidchicken.com>
1241
1242 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1243
e6df5336
JR
12442008-12-12 Jason Rumney <jasonr@gnu.org>
1245
1246 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1247 Vwindow_system_version to the real w32 major version.
1248
97c6058a
DN
12492008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1250
1251 * term.c (init_tty): Move setting the terminal name before the
1252 potential user: maybe_fatal.
1253
ec4e88d7
CY
12542008-12-11 Chong Yidong <cyd@stupidchicken.com>
1255
d4835507
JB
1256 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1257 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1258
b4233ec9
JR
12592008-12-11 Jason Rumney <jasonr@gnu.org>
1260
8ec71e23 1261 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1262 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1263
b4233ec9 1264 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1265 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1266
011a0143
JB
12672008-12-11 Juanma Barranquero <lekktu@gmail.com>
1268
1269 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1270
3c309f34
JB
12712008-12-11 Juanma Barranquero <lekktu@gmail.com>
1272
1273 * process.c (Fsystem_process_attributes, syms_of_process):
1274 Fix typo in name of Ssystem_process_attributes.
1275 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1276
fedc6ab5
JB
12772008-12-11 Juanma Barranquero <lekktu@gmail.com>
1278
1279 * syntax.c (Fmodify_syntax_entry): Doc fix.
1280
ba3de0e8
JB
12812008-12-10 Juanma Barranquero <lekktu@gmail.com>
1282
1283 * font.c (Ffont_spec): Move usage to end of docstring.
1284
174f1c74
JR
12852008-12-10 Jason Rumney <jasonr@gnu.org>
1286
1287 * w32font.c (Qcham): New symbol.
1288 (font_supported_scripts): Add cham, and comments for other new
1289 scripts in bitfield from OpenType spec.
9d32f818
JR
1290 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1291 contain characters beyond the bmp.
174f1c74 1292
7b649478
KH
12932008-12-10 Kenichi Handa <handa@m17n.org>
1294
1295 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1296 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1297 Qunicode_sip.
1298
2133e2d1
JB
12992008-12-10 Juanma Barranquero <lekktu@gmail.com>
1300
1301 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1302 (Fcoding_system_put): Use QCdefault_char.
1303 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1304
9af886ee
CY
13052008-12-09 Chong Yidong <cyd@stupidchicken.com>
1306
74d819eb
CY
1307 * xftfont.c (syms_of_xftfont): Fix typo.
1308
4ccfa1c0 1309 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1310
7c19d3ae
DN
13112008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1312
1313 * emacs.c (main): Close daemon_pipe on exec.
1314
567826bb
CY
13152008-12-08 Chong Yidong <cyd@stupidchicken.com>
1316
1317 * termchar.h (struct tty): New members termcap_term_buffer and
1318 termcap_strings_buffer.
1319
1320 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1321 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1322 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1323 All callers changed.
1324 (init_tty): Store termcap data and string buffers in new struct
1325 tty members termcap_term_buffer and termcap_strings_buffer.
1326 (delete_tty): Free them.
4ccfa1c0 1327 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1328
aa96c42b
SZ
13292008-12-07 Seiji Zenitani <zenitani@mac.com>
1330
1331 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1332 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1333
b7e1d896
CY
13342008-12-06 Chong Yidong <cyd@stupidchicken.com>
1335
1336 * coding.c (make_conversion_work_buffer): Disable buffer
1337 modification hooks in the work buffer.
1338
b5ec91a5
EZ
13392008-12-05 Eli Zaretskii <eliz@gnu.org>
1340
1341 * process.c (procfs_system_process_attributes): If `nread' has a
1342 negative value, assign zero to it.
1343
a5d2a52b
CY
13442008-12-05 Chong Yidong <cyd@stupidchicken.com>
1345
68c5540b 1346 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1347
7bf1bb21
KH
13482008-12-05 Kenichi Handa <handa@m17n.org>
1349
1350 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1351 second character is a combining character.
1352
2fdc7d00
EZ
13532008-12-05 Eli Zaretskii <eliz@gnu.org>
1354
1355 * process.c (procfs_system_process_attributes): Don't use cmd,
1356 cmdsize, and q without initializing them first.
1357
bf6bfba8
JR
13582008-12-04 Jason Rumney <jasonr@gnu.org>
1359
1360 * w32font.c (w32font_draw): Initialize orig_clip before getting
1361 it, and delete it when finished.
1362
a3b1a468
DN
13632008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1364
1365 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1366 case when running as a daemon before detaching.
1367
8b8be8eb
JB
13682008-12-03 Juanma Barranquero <lekktu@gmail.com>
1369
805f2638 1370 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1371
b1bde622
KH
13722008-12-03 Kenichi Handa <handa@m17n.org>
1373
e500c47d
KH
1374 * font.c (font_at): Set `multibyte' at first.
1375
ca516334
KH
1376 * coding.c (decode_coding_charset): Check type of an element of
1377 vector VALIDS.
7bf1bb21 1378 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1379
4ccfa1c0 1380 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1381 (font_for_char): Likewise.
1382
1e5ecd37
CY
13832008-12-03 Chong Yidong <cyd@stupidchicken.com>
1384
d5b01609 1385 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
1386 (font_update_lface): Handle fonts with corrupted size specs,
1387 i.e. non-int and non-float.
d5b01609 1388
11e3a6e4 1389 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 1390 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 1391 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 1392
ab06788b
CY
1393 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
1394
1e5ecd37 1395 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 1396 underline_minimum_offset for underline position.
1e5ecd37 1397
63c125ab
DN
13982008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
1399
1400 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
1401
1402 * character.c (c_string_width): Specify the type for LEN.
1403
3a8406e1
KH
14042008-12-03 Kenichi Handa <handa@m17n.org>
1405
4ccfa1c0 1406 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 1407 (decode_coding_utf_8): Likewise.
4ccfa1c0 1408 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 1409 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 1410
651df7d9
CY
14112008-12-02 Chong Yidong <cyd@stupidchicken.com>
1412
1413 * keyboard.c (make_lispy_position): Only use PT if the selected
1414 window is current.
1415
1f625c6c
AS
14162008-12-02 Andreas Schwab <schwab@suse.de>
1417
f7741ce9
AS
1418 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
1419
1f625c6c
AS
1420 * doprnt.c (doprnt1): Fix size of charbuf.
1421
92bc2678
CY
14222008-12-02 Chong Yidong <cyd@stupidchicken.com>
1423
1424 * keyboard.c (timer_check): Revert last change.
1425
93b9e8cc
JB
14262008-12-02 Juanma Barranquero <lekktu@gmail.com>
1427
1428 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
1429
fd7a37d5
JB
14302008-12-01 Juanma Barranquero <lekktu@gmail.com>
1431
1432 * makefile.w32-in: Update dependencies.
1433 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
1434
c115043b
AS
14352008-12-01 Andreas Schwab <schwab@suse.de>
1436
1437 * font.c (register_font_driver): Use xmalloc.
1438 (font_put_frame_data): Likewise.
1439
f5668d2a
CY
14402008-12-01 Chong Yidong <cyd@stupidchicken.com>
1441
860d96be
CY
1442 * xfaces.c (realize_x_face): Make abort condition clearer.
1443
f5668d2a
CY
1444 * gtkutil.c (update_frame_tool_bar): Initialize variable.
1445
379c17e7
CY
14462008-11-30 Chong Yidong <cyd@stupidchicken.com>
1447
1448 * keyboard.c (timer_check): After a timer runs, ensure that the
1449 selected window's buffer is current.
1450
35f36d65
JB
14512008-11-30 Juanma Barranquero <lekktu@gmail.com>
1452
f952c61c
JB
1453 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
1454 It was accidentally restored by the Unicode merge.
1455
35f36d65
JB
1456 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
1457
b23077df
JB
14582008-11-29 Juanma Barranquero <lekktu@gmail.com>
1459
1460 * w32proc.c: Include "coding.h".
1461 (Fw32_short_file_name): Encode filename passed to Windows API.
1462 (Fw32_long_file_name): Encode filename passed to Windows API and
1463 decode back the result. (Bug#1433)
1464
b8ebe9dd
KH
14652008-11-29 Kenichi Handa <handa@m17n.org>
1466
8cc53f96
KH
1467 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
1468 not before accessing it.
1469
b8ebe9dd
KH
1470 * charset.c (Fdefine_charset_internal): After calculating
1471 min_char, max_char, and fastmap, copy the charset structure again.
1472 (encode_char): Fix the previous change.
1473
59bc82c0
SZ
14742008-11-28 Seiji Zenitani <zenitani@mac.com>
1475
1476 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
1477
1478 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
1479
1480 * nsterm.m (x_set_frame_alpha): New function.
1481
32247e3d
EZ
14822008-11-27 Eli Zaretskii <eliz@gnu.org>
1483
1484 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
1485
b003e5ff
JB
14862008-11-27 Juanma Barranquero <lekktu@gmail.com>
1487
1488 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
1489 pointer to check_face_name.
1490
708550f5
KH
14912008-11-27 Kenichi Handa <handa@m17n.org>
1492
1493 * category.h (SET_CATEGORY_SET): Call set_category_set.
1494 (set_category_set): Extern it.
1495
1496 * category.c (hash_get_category_set): New function.
1497 (Fmodify_category_entry): Adjusted for the change of
1498 char_table_ref_and_range. Call hash_get_category_set to get a
1499 category set to store in the table.
1500
1501 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
1502 Funify_charset.
1503
2ae37cf0 1504 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
1505 (DECODE_CHAR): Check if the decoder vector is ready.
1506 (ENCODE_CHAR): Check if the encoder char-table is ready.
1507 (maybe_unify_char): Extern it.
1508
1509 * charset.c (Vchar_unified_charset_table): Delete it.
1510 (inhibit_load_charset_map): New variable.
1511 (temp_charset_work): New variable.
1512 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
1513 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
1514 New macros.
1515 (load_charset_map): Meaning of control_flag changed. If
1516 inhibit_load_charset_map is nonzero, setup a table in
1517 temp_charset_work.
1518 (load_charset): New argument control_flag.
1519 (map_charset_for_dump): New function.
1520 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
1521 map_charset_for_dump.
1522 (Fdefine_charset_internal): If the charset method is MAP, load
1523 mapping tables by calling load_charset.
1524 (Funify_charset): Don't load a mapping table but directly set
1525 Vchar_unify_table.
1526 (maybe_unify_char): New function.
1527 (decode_char): Don't handle the deleted method MAP_DEFERRED.
1528 Handle the case of inhibit_load_charset_map being nonzero.
1529 (encode_char): Don't handle the deleted method MAP_DEFERRED.
1530 Handle the case of inhibit_load_charset_map being nonzero.
1531 (Fclear_charset_maps): Just free temp_charset_work.
1532 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
1533 variable.
1534
1535 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
1536 change of char_table_ref_and_range.
1537 (char_table_ref_and_range): Change the meaning of argument FROM
1538 and TO. Now the caller must provide initial values for *FROM
1539 and *TO.
1540
1541 * fontset.c (fontset_add): Adjusted for the change of
1542 char_table_ref_and_range.
1543 (fontset_get_font_group): Likewise.
1544 (Ffontset_info): Likewise.
1545
1546 * keymap.c (describe_vector): Adjusted for the change of
1547 char_table_ref_and_range. For char-table, put boundary between
1548 non-ASCII and 8-bit characters.
1549
1550 * print.c (print_object): For bool-vector, delete unnecessary
1551 check of ASCII_BYTE_P.
1552
9196133b
JR
15532008-11-26 Jason Rumney <jasonr@gnu.org>
1554
1555 * w32font.c (w32font_open_internal): Don't include external
9acef61c 1556 leading in font height. (Bug#879)
9196133b 1557
9f688acf
GM
15582008-11-26 Glenn Morris <rgm@gnu.org>
1559
1560 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
1561 redefinition with ifdef. (Bug#1383)
1562
90d19aff
AR
15632008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1564
1565 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
1566
4ccfa1c0 15672008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
1568
1569 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
1570 New EmacsView methods.
1571 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
1572 Fixes bug #1048,1357,1414.
1573
15742008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1575
1576 Fix bug #1362.
1577 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
1578 is not an indexed color.
1579 * nsterm.m (free_indexed_color): Add argument checking.
1580 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
1581
e7d5ecb3
CY
15822008-11-24 Chong Yidong <cyd@stupidchicken.com>
1583
1584 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
1585 Document confirm-after-completion value for
1586 minibuffer-completion-confirm.
1587
c285743c
JR
15882008-11-24 Jason Rumney <jasonr@gnu.org>
1589
1590 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
1591 warning.
1592
b0857706
JR
15932008-11-23 Jason Rumney <jasonr@gnu.org>
1594
1595 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
1596 restored before returning.
1597
1598 * w32font.c (check_face_name): New function.
1599 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 1600 fonts. (Bug#642)
b0857706 1601
ee50ff07
MR
16022008-11-22 Martin Rudalics <rudalics@gmx.at>
1603
1604 * buffer.c (Fswitch_to_buffer): Reword and mention new option
1605 confirm-nonexistent-file-or-buffer in doc-string.
1606
b8ff72fa
SM
16072008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
1608
1609 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
1610 Fix copy/paste typo. Add checks.
1611
cee53ed4
KH
16122008-11-21 Kenichi Handa <handa@m17n.org>
1613
1614 * coding.c (detect_coding_iso_2022): Reject invalid composition
1615 sequence.
1616 (DECODE_COMPOSITION_START): If the current source is the last
1617 block, and the current composition doesn't end, regard this
1618 sequence as invalid.
1619 (decode_coding_iso_2022): Handle invalid composition sequence.
1620
f6ef1e65
MR
16212008-11-20 Martin Rudalics <rudalics@gmx.at>
1622
1623 * window.c (coordinates_in_window): Don't return
1624 ON_VERTICAL_BORDER for the rightmost position of a mode/header
1625 line when the window is not the rightmost one. (Bug#1372)
1626
e08b1705
MR
16272008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
1628
1629 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
1630
ad98e89f
EZ
16312008-11-15 Eli Zaretskii <eliz@gnu.org>
1632
1633 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
1634 and bright_bg if noninteractive is non-zero.
1635
fb098a4b
CY
16362008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1637
1638 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
1639 x_draw_glyph_string_background.
1640
1641 * w32term.c (x_draw_glyph_string): Likewise.
1642
ce952b6e
CY
16432008-11-15 Chong Yidong <cyd@stupidchicken.com>
1644
1645 * xterm.c (x_draw_glyph_string): Stop drawing the background of
1646 the next glyph string once past the overhang width.
1647
1648 * nsterm.m (ns_draw_glyph_string): Likewise.
1649
1650 * w32term.c (x_draw_glyph_string): Likewise.
1651
26ea7079
CY
16522008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
1653
1654 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
1655 double file close.
1656
1c33c906
MR
16572008-11-14 Martin Rudalics <rudalics@gmx.at>
1658
1659 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
1660 dedicated status of window before attempting to display another
1661 buffer in it.
1662
8fc29035
JB
16632008-11-14 Juanma Barranquero <lekktu@gmail.com>
1664
1665 * msdos.c (Fmsdos_long_file_names):
1666 (syms_of_msdos) <dos-unsupported-char-glyph>:
1667 * dosfns.c (Fint86): Fix typos in docstrings.
1668
55fb4286
EZ
16692008-11-14 Eli Zaretskii <eliz@gnu.org>
1670
1671 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
1672
3fda0315
KY
16732008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
1674
1675 * puresize.h (BASE_PURESIZE): Increase to 1260000.
1676
7e849c17
CY
16772008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
1678
1679 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
1680
1681 * frame.h: Negative alpha means "don't touch".
1682
1683 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
1684
1685 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
1686
b9fd67bd
DN
16872008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
1688
1689 * hftctl.c:
1690 * chpdef.h:
1691 * acldef.h: Remove files used only for systems no longer supported.
1692
1693 * Makefile.in: Fix .o alphabetical ordering.
1694 (hftctl.o): Remove dependency, file removed.
1695 (keymap.o, print.o): Depend on charset.h.
1696
d5998e03
KH
16972008-11-10 Kenichi Handa <handa@m17n.org>
1698
2ae37cf0 1699 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 1700
be70e183
CY
17012008-11-08 Chong Yidong <cyd@stupidchicken.com>
1702
1703 * dired.c (file_name_completion): If completion_ignore_case is
1704 enabled, ignore case when checking completion-regexp-list.
1705
7cf94eac
EZ
17062008-11-08 Eli Zaretskii <eliz@gnu.org>
1707
1708 * vm-limit.c (get_lim_data): Fix last change.
1709
ee107a89
KH
17102008-11-08 Kenichi Handa <handa@m17n.org>
1711
1712 * character.c (Fget_byte): New function.
1713 (syms_of_character): Defsubr Fget_byte.
1714
5fd15622
CY
17152008-11-07 Chong Yidong <cyd@stupidchicken.com>
1716
1717 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
1718 cursor position is valid after scrolling.
1719
13d62fad
JB
17202008-11-06 Juanma Barranquero <lekktu@gmail.com>
1721
1722 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
1723
a1dd2936
GM
17242008-11-06 Glenn Morris <rgm@gnu.org>
1725
1726 * xterm.c (handle_one_xevent): Don't let popup menus cause
1727 mouse-autoselect-window related window switching. (Bug#1261)
1728
860cd236
CY
17292008-11-04 David Smith <davidsmith@acm.org> (tiny change)
1730
1731 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
1732
653a3150
AS
17332008-11-04 Andreas Schwab <schwab@suse.de>
1734
1735 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
1736
870f5cac
CY
17372008-11-03 Chong Yidong <cyd@stupidchicken.com>
1738
1739 * xfns.c (Fx_wm_set_size_hint): New function.
1740
1e02f3cb
MR
17412008-11-03 Martin Rudalics <rudalics@gmx.at>
1742
1743 * textprop.c (Fprevious_single_char_property_change): Return 0
1744 when there's no change in a string. (Bug#1301)
1745
e630dfc6
MR
17462008-11-02 Martin Rudalics <rudalics@gmx.at>
1747
1748 * frame.c (do_switch_frame): New argument NORECORD passed to
1749 Fselect_window.
1750 (Fselect_frame): New argument NORECORD passed to
1751 do_switch_frame.
1752 (Fset_frame_selected_window): New argument NORECORD passed to
1753 Fselect_frame.
1754 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
1755 in call of do_switch_frame.
1756 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
1757 Handle NORECORD argument in call of Fselect_frame.
1758 * lisp.h (do_switch_frame, Fselect_frame)
1759 (Fset_frame_selected_window): Adjust declarations.
1760 * window.c (select_frame_norecord): New function.
1761 (run_window_configuration_change_hook): Use it and call
1762 Fselect_frame with NORECORD set.
1763 (Fselect_window): Pass NORECORD to Fselect_frame.
1764 (Fset_window_configuration): Handle NORECORD argument in call of
1765 do_switch_frame.
1766 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
1767 Fset_frame_selected_window.
1768 * keyboard.c (command_loop_1): Handle NORECORD in call of
1769 Fselect_frame (currently ifdefd).
1770
9020b223
GM
17712008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
1772
1773 * emacs.c (USAGE2): Untabify.
1774
793ffee8
SM
17752008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1776
1777 * composite.c (fill_gstring_header): Fix copy/paste typo.
1778
ab6d1131
MR
17792008-10-31 Martin Rudalics <rudalics@gmx.at>
1780
1781 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
1782 (Fother_window): Rename argument and rewrite doc-string.
1783 (select_window_norecord): Fix return value. (Bug#1276)
1784
601a9cf1
JB
17852008-10-30 Juanma Barranquero <lekktu@gmail.com>
1786
1787 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
1788 new frames overriding foreground for tooltips. Based on similar patch
1789 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
1790
813b0652
CY
17912008-10-29 Chong Yidong <cyd@stupidchicken.com>
1792
1793 * emacs.c (Fdaemon_initialized): Initialize nfd.
1794
4414f58f
MR
17952008-10-29 Martin Rudalics <rudalics@gmx.at>
1796
1797 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
1798 (Fwindow_text_height): Clarify doc-strings.
1799 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
1800 doc-string of window-scroll-functions.
1801
ecdcaa09
RS
18022008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
1803
1804 * category.c (syms_of_category): Fix typo in docstring.
1805
23fe745a
JB
18062008-10-28 Juanma Barranquero <lekktu@gmail.com>
1807
1808 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
1809 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
1810 Fix typos in docstrings.
1811
ff808935
DN
18122008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
1813
1814 * emacs.c (daemon_pipe): Make non-static.
1815 (IS_DAEMON): Move definition ...
1816 * lisp.h (IS_DAEMON): ... here.
1817 (daemon_pipe): Declare.
1818 (is_daemon): Remove.
1819 * dispnew.c (init_display): Use IS_DAEMON.
1820
fc012771
SM
18212008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1822
1823 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
1824 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
1825
1826 * emacs.c (is_daemon): Remove.
1827 (main): Don't set is_daemon.
1828 (IS_DAEMON): New macro.
1829 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 1830 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
1831 parent exits.
1832 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
1833
d8bdbe6f
CY
18342008-10-27 Chong Yidong <cyd@stupidchicken.com>
1835
d1a072bf
CY
1836 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
1837 over-sized glyph, draw it with the default glyph width.
1838
e2e325aa
CY
1839 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1840 glyph, draw it with the default glyph width.
1841
1842 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1843 glyph, draw it with the default glyph width.
1844
d8bdbe6f
CY
1845 * xdisp.c (try_scrolling): When computing the distance from the
1846 scroll margin to PT, try moving some distance past the window
1847 bottom before giving up.
1848
7bfac547
MR
18492008-10-27 Martin Rudalics <rudalics@gmx.at>
1850
1851 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
1852 (Fset_window_buffer): Explain in doc-string that a window can be
1853 "strongly" dedicated to its buffer.
1854
4ff029f6
DN
18552008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
1856
1857 * emacs.c (daemon_name): New variable.
1858 (main): Deal with --daemon=SERVER_NAME.
1859 (Fdaemonp): Return a name if one was passed to --daemon.
1860
5790ef40
DN
18612008-10-26 Romain Francoise <romain@orebokech.com>
1862
f9bd0df9 1863 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
1864 (main): Create a pipe before forking, make the parent exit only after
1865 the child has closed its end of the pipe. Move closing the
1866 descriptors ...
1867 (Fdaemon_initialized): ... here. New function.
1868
f5385255
SM
18692008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
1870
4d632321
SM
1871 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
1872 the previous unoptimized table.
1873
f5385255
SM
1874 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
1875 the distinction between non-nil and non-t value of `dedicated'.
1876
6c56a0f3
CY
18772008-10-25 Chong Yidong <cyd@stupidchicken.com>
1878
1879 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 1880 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 1881
fec89261
MR
18822008-10-25 Martin Rudalics <rudalics@gmx.at>
1883
1884 * window.c (Fget_buffer_window, Fdelete_windows_on)
1885 (Freplace_buffer_in_windows): Make buffer argument optional and
1886 rename to buffer_or_name.
1887
34fcddd0
CY
18882008-10-24 Chong Yidong <cyd@stupidchicken.com>
1889
f5385255
SM
1890 * xdisp.c (handle_single_display_spec, handle_display_prop):
1891 Undo 2005-05-16 change.
34fcddd0
CY
1892 (handle_stop): Pop iterator if it's loaded with an empty string.
1893 (get_overlay_strings_1): Don't save iterator if it's loaded with
1894 an empty string (bug#1201).
1895
064766f2
KH
18962008-10-24 Kenichi Handa <handa@m17n.org>
1897
1898 * ftfont.c (ftfont_otf_features): Fix previous change.
1899 (ftfont_otf_capability): Check FeatureList.FeatureCount before
1900 calling ftfont_otf_features.
1901
f9bd0df9 19022008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
1903
1904 * font.c (font_match_p): Fix for the case that a vector of
1905 characters is in script-representative-chars.
1906
1dae9197
MA
19072008-10-24 Michael Albinus <michael.albinus@gmx.de>
1908
1909 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 1910 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
1911 (xd_read_queued_messages): Catch Qdbus_error from the macros.
1912 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
1913 macro. (Bug#1186).
1914
f9bd0df9 19152008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
1916
1917 * s/sol2-10.h: New file.
1918
878a4584
JB
19192008-10-23 Juanma Barranquero <lekktu@gmail.com>
1920
1921 * xdisp.c (fill_glyph_string): Fix typo in source (though the
1922 poor beast has survived 9+ years and the jump from xterm.c!).
1923
cd265ca6
MR
19242008-10-23 Martin Rudalics <rudalics@gmx.at>
1925
1926 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
1927 Reword doc-string.
f5385255 1928 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 1929
472a4dc9
JB
19302008-10-23 Juanma Barranquero <lekktu@gmail.com>
1931
1932 * character.c (syms_of_character) <script-representative-chars>:
1933 <unicode-category-table>: Doc fixes.
1934
159bd5a2
NF
19352008-10-23 Noah Friedman <friedman@splode.com>
1936
1937 * coding.c (make_conversion_work_buffer): Check that
1938 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
1939 Fget_buffer_create.
1940
49f9c344
KH
19412008-10-23 Kenichi Handa <handa@m17n.org>
1942
1943 * font.c (font_add_log): Check the values of extra properties.
1944
12bb3111
MR
19452008-10-22 Martin Rudalics <rudalics@gmx.at>
1946
1947 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1948 Reword doc-string.
1949 (Fset_window_parameter): Use NILP.
1950 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 1951 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 1952
bbeb4e99
JB
19532008-10-22 Juanma Barranquero <lekktu@gmail.com>
1954
1955 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
1956
19572008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
1958
1959 * nsfns.m (ns_appkit_version): New function.
1960 (x-server-version): Use it.
1961 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
1962 (x-server-vendor): Don't check_ns().
1963
1964 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
1965
a9b555d3
JB
19662008-10-22 Juanma Barranquero <lekktu@gmail.com>
1967
1968 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
1969 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
1970
4626499f
KH
19712008-10-22 Kenichi Handa <handa@m17n.org>
1972
e3681952
KH
1973 * syntax.c (scan_words): Call word_boundary_p instead of comparing
1974 scripts.
1975
4626499f
KH
1976 * category.c (word_boundary_p): Check scripts instead of charset.
1977 Handle nil value in word-separating-categories and
1978 word-combining-categories.
1979 (syms_of_category): Fix docstrings of word-separating-categories
1980 and word-combining-categories.
1981
1560f91a
EZ
19822008-10-21 Eli Zaretskii <eliz@gnu.org>
1983
1984 * coding.c (Fencode_coding_region, Fdecode_coding_region)
1985 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
1986
f4668441
MR
19872008-10-21 Martin Rudalics <rudalics@gmx.at>
1988
1989 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
1990 Rename arg "buffer" to "buffer_or_name".
1991 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
1992 it optional.
1993 (no_switch_window): Remove since the return value is not used.
a9b555d3 1994 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
1995 Consider window as dedicated when Fwindow_dedicated_p returns a
1996 non-nil value.
1997 * lisp.h: Remove prototype for no_switch_window.
1998
fd75ddb2
JD
19992008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2000
2001 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2002 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2003
07295713
KH
20042008-10-21 Kenichi Handa <handa@m17n.org>
2005
2006 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2007 check Vlatin_extra_code_table.
2008
712adc82
EZ
20092008-10-20 Eli Zaretskii <eliz@gnu.org>
2010
2011 * fileio.c (Fset_file_modes): Doc fix.
2012
f549eb0b
MA
20132008-10-19 Michael Albinus <michael.albinus@gmx.de>
2014
2015 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2016 in arrays.
2017
aac0c6e3
MR
20182008-10-19 Martin Rudalics <rudalics@gmx.at>
2019
2020 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2021 Mention kill-buffer in doc-string.
2022 (Fset_window_buffer): Reinsert tem check removed in last commit.
2023 (Fenlarge_window, Fshrink_window): Have argument names and
2024 doc-string follow Elisp manual more closely.
2025
20262008-10-18 Eli Zaretskii <eliz@gnu.org>
2027
2028 * fileio.c (Fset_file_modes): Doc fix.
2029
20302008-10-18 Martin Rudalics <rudalics@gmx.at>
2031
2032 * window.c (Fwindow_width, Fset_window_start)
2033 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2034 (Fdelete_windows_on, Freplace_buffer_in_windows):
2035 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2036 (Fwindow_dedicated_p): Make window argument optional.
2037 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2038 (Fset_window_buffer): Respect any non-nil dedicated value for
2039 window. Rename "buffer" argument to "buffer_or_name".
2040
20412008-10-18 Ulrich Mueller <ulm@gentoo.org>
2042
2043 * m/sh3.h: New file, machine description for SuperH.
2044
20452008-10-17 Martin Rudalics <rudalics@gmx.at>
2046
2047 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2048
20492008-10-17 Kenichi Handa <handa@m17n.org>
2050
2051 * ftfont.c (ftfont_otf_features): Fix indexing
2052 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2053
20542008-10-16 Magnus Henoch <mange@freemail.hu>
2055
2056 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2057 (Fdbus_call_method_asynchronously): Ditto.
2058 This change makes C-h f display the argument list.
2059
20602008-10-16 Chong Yidong <cyd@stupidchicken.com>
2061
2062 * fileio.c (Fexpand_file_name): Doc fix.
2063
2064 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2065 of :foreground and :background equivalent to unspecified (20.x
2066 compatibility).
2067
20682008-10-15 Eli Zaretskii <eliz@gnu.org>
2069
2070 * buffer.c (syms_of_buffer): Doc fix.
2071
20722008-10-14 Kenichi Handa <handa@m17n.org>
2073
2074 * font.c (font_clear_prop): When clearing font width, clear the
2075 average width field too.
2076
20772008-10-12 Andreas Schwab <schwab@suse.de>
2078
2079 * ftfont.c (ftfont_shape_by_flt): Make static.
2080 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2081
2082 * font.c: Don't include <m17n-flt.h>.
2083
20842008-10-10 Eli Zaretskii <eliz@gnu.org>
2085
2086 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2087
20882008-10-09 Eli Zaretskii <eliz@gnu.org>
2089
2090 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2091 away code.
2092
20932008-10-09 Chong Yidong <cyd@stupidchicken.com>
2094
2095 * dispnew.c (update_text_area): Avoid looping due to large glyph
2096 overhangs (bug#1070).
2097
20982008-10-09 Kenichi Handa <handa@m17n.org>
2099
2100 * fontset.c (face_for_char): If face->fontset is negative, just
2101 return ascii_face.
2102
f5385255
SM
2103 * font.c (font_delete_unmatched): Fix previous change.
2104 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2105
21062008-10-09 Martin Rudalics <rudalics@gmx.at>
2107
2108 * frame.c (Fraise_frame): On text-only terminals select frame in
2109 order to make it visible. (Bug#1061)
2110
21112008-10-08 Chong Yidong <cyd@stupidchicken.com>
2112
2113 * fontset.c (fontset_find_font): Check frame validity.
2114
21152008-10-07 Chong Yidong <cyd@stupidchicken.com>
2116
a9b555d3 2117 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2118 (xg_display_close): Allow Emacs to close all displays (bug#985).
2119
21202008-10-06 Andreas Schwab <schwab@suse.de>
2121
f5385255 2122 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2123
21242008-10-06 Chong Yidong <cyd@stupidchicken.com>
2125
f5385255 2126 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2127
a9b555d3 2128 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2129
2130 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2131 during initialization.
2132
21332008-10-04 Eli Zaretskii <eliz@gnu.org>
2134
2135 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2136 whole thing on MSDOS frames as well as on a TTY.
2137
2138 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2139 well as for TTY.
2140 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2141 well as on a TTY.
2142
2143 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2144 as well as for TTY.
2145
2146 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2147
2148 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2149 MSDOS frames as well.
2150
21512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2152
2153 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2154 correct arguments.
2155 * menu.c (find_and_return_menu_selection) Add cast.
2156
21572008-10-03 Glenn Morris <rgm@gnu.org>
2158
2159 * emacs.c (USAGE1): Add --daemon.
2160
21612008-10-02 Eli Zaretskii <eliz@gnu.org>
2162
2163 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2164 100, so it's in percents as advertised.
2165
21662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2167
2168 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2169 (ns_output.current_cursor, ns_output.desired_cursor)
2170 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2171 (FRAME_NEW_CURSOR_COLOR): Remove.
2172
2173 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2174 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2175 enumeration (HOLLOW_BOX_CURSOR, etc.).
2176
2177 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2178 (draw_window_cursor): Simplify code.
f5385255
SM
2179 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2180 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2181 updates manually.
a9b555d3
JB
2182 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2183 Use core Emacs cursor types.
aac0c6e3 2184
b8ff72fa 2185 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2186
21872008-10-02 Martin Rudalics <rudalics@gmx.at>
2188
2189 * process.c (Faccept_process_output): Fix doc-string.
2190
21912008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2192
2193 * gmalloc.c (__sbrk): Also define for uClibc.
2194
2195 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2196 for uClibc.
2197
21982008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2199
2200 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2201 styles.
2202 (nsfont_open): Reenable the cache.
2203
22042008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2205
2206 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2207 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2208
22092008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2210
2211 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2212 a suspended terminal.
2213
22142008-09-30 Michael Albinus <michael.albinus@gmx.de>
2215
2216 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2217
22182008-09-30 Eli Zaretskii <eliz@gnu.org>
2219
2220 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2221
22222008-09-30 Chong Yidong <cyd@stupidchicken.com>
2223
2224 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2225 in a continued line coincides with a line beginning.
2226
22272008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2228
2229 * nsfont.m (nsfont_trait_distance): Fix bug.
2230 (nsfont_list): Return a list rather than a vector (syncs with Handa
2231 changes of 2008-05-14).
2232 (nsfont_open): Improve logging.
2233
22342008-09-29 Andreas Schwab <schwab@suse.de>
2235
2236 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2237
22382008-09-28 Martin Rudalics <rudalics@gmx.at>
2239
2240 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2241 name as char-resolve-modifiers.
2242 Reported by: Markus Triska <markus.triska@gmx.at>
2243
22442008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2245
2246 * dispnew.c (init_display): Return earlier when running as a daemon.
2247
22482008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2249
2250 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2251
22522008-09-27 Eli Zaretskii <eliz@gnu.org>
2253
2254 * composite.c (Fcomposition_get_gstring)
2255 (Fcompose_region_internal, Fcompose_string_internal)
2256 (Ffind_composition_internal): Doc fix.
2257 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2258 (syms_of_composite) <auto-composition-function>: Doc fix.
2259 (syms_of_composite) <composition-function-table>: Doc fix.
2260
22612008-09-25 Chong Yidong <cyd@stupidchicken.com>
2262
2263 * search.c (wordify): New argument for lax word-ends.
2264 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2265
22662008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2267
2268 * lisp.h (is_daemon): Declare.
2269 * dispnew.c (init_display): Do not try to initialize the terminal
2270 when running as a daemon.
2271
22722008-09-22 Chong Yidong <cyd@stupidchicken.com>
2273
2274 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2275 x_display_pixel_height.
2276
22772008-09-22 Martin Rudalics <rudalics@gmx.at>
2278
2279 * undo.c (record_point): Don't call Fundo_boundary for first
2280 change. (Bug#731)
2281
22822008-09-22 Juanma Barranquero <lekktu@gmail.com>
2283
2284 * emacs.c (Fdaemonp): Doc fix.
2285
22862008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2287
2288 * emacs.c (main): Place #ifdef in the proper place.
2289
22902008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2291
2292 * emacs.c (standard_args): Add --daemon.
2293 (main): Disconnect from the terminal when --daemon is passed.
2294 (is_daemon): New variable.
2295 (Fdaemonp): New function.
2296 (syms_of_emacs): Defsubr it.
2297
22982008-09-20 Chong Yidong <cyd@stupidchicken.com>
2299
2300 * xdisp.c (get_next_display_element): Handle string display
2301 correctly when checking for the end of a box run.
2302
23032008-09-20 Glenn Morris <rgm@gnu.org>
2304
2305 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2306 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2307 (Frename_file): Avoid copying to trash if a rename involves
2308 a delete. (Bug#964).
2309
23102008-09-20 Eli Zaretskii <eliz@gnu.org>
2311
2312 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2313 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2314 frames as well as termcap frames.
2315 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2316 get_named_tty.
2317
23182008-09-19 Eli Zaretskii <eliz@gnu.org>
2319
2320 * process.c (procfs_system_process_attributes): Fix cmdline in
2321 case /proc/PID/cmdline is empty.
2322
2323 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2324 x_display_pixel_height.
2325
23262008-09-19 Juanma Barranquero <lekktu@gmail.com>
2327
2328 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2329
2330 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2331 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2332
23332008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2334
2335 * dispextern.h (struct it): Move line_wrap away from the middle of
2336 bitfields. Move voffset in struct iterator_stack_entry after the
2337 bitfields. Move tab_width near after another short.
2338
23392008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2340
2341 * frame.h (struct frame): Move alpha from the middle of bitfields.
2342
2343 * window.h (struct window): Move frozen_window_start_p after the
2344 rest of the bitfields to reduce padding.
2345
23462008-09-18 Chong Yidong <cyd@stupidchicken.com>
2347
2348 * xterm.h (x_display_info): Remove `height' and `width' members.
2349
2350 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2351
2352 * w32term.h (w32_display_info): Remove `height', `width',
2353 `height_in', and `width_in' members.
2354
b8ff72fa
SM
2355 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2356 New functions.
aac0c6e3
MR
2357 (x_calc_absolute_position): Use them.
2358 (x_term_init): Omit removed `height' and `width' members.
2359
b8ff72fa
SM
2360 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2361 New functions.
aac0c6e3
MR
2362 (w32_read_socket, x_calc_absolute_position): Use them.
2363 (w32_initialize_display_info, w32_term_init): Omit removed members
2364 of w32_display_info.
2365
b8ff72fa
SM
2366 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2367 New functions.
2368 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2369
b8ff72fa
SM
2370 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2371 New functions.
aac0c6e3
MR
2372 (x_calc_absolute_position): Use them.
2373 (x_term_init): Omit removed `height' and `width' members.
2374
2375 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2376 (compute_tip_xy):
2377 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2378 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2379 x_display_pixel_width.
2380
23812008-09-18 Kenichi Handa <handa@m17n.org>
2382
2383 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2384 (composition_compute_stop_pos): Fix handling of static composition.
2385 (Fcomposition_get_gstring): Check FROM and TO at first.
2386
23872008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2388
2389 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
2390 mixup (YAILOM).
2391
23922008-09-17 Chong Yidong <cyd@stupidchicken.com>
2393
2394 * indent.c (Fvertical_motion): Use position reported by iterator
2395 instead of PT for determining screen motion (bug#943).
2396
23972008-09-17 Romain Francoise <romain@orebokech.com>
2398
2399 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
2400
24012008-09-17 Kenichi Handa <handa@m17n.org>
2402
2403 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
2404
2405 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
2406 if necessary.
2407
24082008-09-16 Kenichi Handa <handa@m17n.org>
2409
2410 * coding.c (make_conversion_work_buffer): Avoid calling
2411 Fget_buffer_create if it is not necessary.
2412
24132008-09-15 Martin Rudalics <rudalics@gmx.at>
2414
2415 * window.c (Fselect_window): Don't update window_select_count and
2416 use_time when norecord is not nil.
2417
24182008-09-14 Kenichi Handa <handa@m17n.org>
2419
2420 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
2421 specpdl_ptr.
2422
24232008-09-12 Kenichi Handa <handa@m17n.org>
2424
2425 * indent.c (scan_for_column): Don't handle automatic composition
2426 if the current buffer is not associated with a window.
2427
2428 * composite.c (composition_reseat_it): If the current buffer is
2429 not associated with a window, ignore the automatic composition.
2430 (find_automatic_composition): Likewise.
2431
24322008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2433
2434 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
2435 (Fgpm_mouse_stop): Use it.
2436 * termhooks.h (close_gpm): Declare.
2437 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
2438 connection if Gpm_GetEvent fails.
2439
2440 * window.c (set_window_buffer): Always preserve current-buffer.
2441
24422008-09-12 Glenn Morris <rgm@gnu.org>
2443
2444 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
2445
24462008-09-11 Glenn Morris <rgm@gnu.org>
2447
2448 * charset.c (charset-map-path): Doc fix.
2449
24502008-09-10 Kenichi Handa <handa@m17n.org>
2451
2452 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
2453
2454 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
2455 compose a grapheme cluster with the preceding base glyph.
2456
2457 * composite.c (composition_compute_stop_pos): Fix previous change.
2458 Reset cmp_it->id to -1 at first.
2459
24602008-09-10 Glenn Morris <rgm@gnu.org>
2461
2462 * Makefile.in (character.o, chartab.o): Fix config.h typo.
2463
24642008-09-09 Chong Yidong <cyd@stupidchicken.com>
2465
2466 * keyboard.c (read_key_sequence): Reapply translation maps when
2467 switching keyboards.
2468
24692008-09-09 Kenichi Handa <handa@m17n.org>
2470
2471 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
2472 characters.
2473
2474 * composite.c (FORWARD_CHAR): Fix calculation
2475 of (POSITION).pos_byte.
2476 (composition_compute_stop_pos): Limit the search of composition to
2477 at most 500 characters ahead. If we reach the limit or find a
2478 newline, set cmp_it->ch to -2 and return 0.
2479 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
2480
24812008-09-08 Kenichi Handa <handa@m17n.org>
2482
2483 * indent.c (Fvertical_motion): Be sure to set
2484 it_overshoot_expected if it.cmp_it.id is non-negative.
2485
24862008-09-07 Andreas Schwab <schwab@suse.de>
2487
2488 * callproc.c (Fcall_process): Don't hold references to string data
2489 across garbage collection. Move initialisation of new_argv down
2490 to avoid compiler bug.
2491
24922008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2493
2494 * process.c (Fsystem_process_attributes): Doc fix.
2495
24962008-09-07 Chong Yidong <cyd@stupidchicken.com>
2497
2498 * callproc.c (Fcall_process): Canonicalize current directory name.
2499
2500 * xdisp.c (move_it_to): When moving by vpos, ensure that the
2501 iterator advances to the next line if the current line ends in a
2502 continued tab.
2503
25042008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
2505
2506 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
2507 member to point to cmp_from.
2508
2509 * xdisp.c: Doc fix for references to gidx data member.
2510
25112008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2512
2513 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
2514
25152008-09-07 Kenichi Handa <handa@m17n.org>
2516
2517 * composite.c (FORWARD_CHAR): Check STOP after
2518 incrementing (POSITION).pos.
2519
25202008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2521
2522 * process.c (Fsystem_process_attributes): Doc fix.
2523
25242008-09-06 Chong Yidong <cyd@stupidchicken.com>
2525
2526 * keyboard.c (Ftop_level): Doc fix.
2527
25282008-09-06 Eli Zaretskii <eliz@gnu.org>
2529
2530 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
2531 minibuffer, don't let lower part of menu invade the echo area.
2532
2533 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
2534 "char *q" to access menu text and advance through it. Revert the
2535 change that displayed ">" instead of ASCII character 0x10.
2536
25372008-09-05 Eli Zaretskii <eliz@gnu.org>
2538
2539 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
2540 toggle boxes and radio buttons on MS-DOS as well.
2541
25422008-09-05 Kenichi Handa <handa@m17n.org>
2543
2544 * composite.c (autocmp_chars): Check lookback count.
2545 (composition_compute_stop_pos): Set cmp_it->lookback.
2546 (composition_reseat_it): Check lookback count.
2547 (struct position_record): New struct.
2548 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
2549 (find_automatic_composition): New function.
2550 (composition_adjust_point): Use find_automatic_composition.
2551
2552 * dispextern.h (struct composition_it): New member lookback.
2553
25542008-09-02 Chong Yidong <cyd@stupidchicken.com>
2555
2556 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
2557 if moving by a single line.
2558
25592008-09-02 Andreas Schwab <schwab@suse.de>
2560
2561 * xterm.c (x_delete_display): Fix merge error.
2562
2563 * fileio.c (Fexpand_file_name): Remove unused variables.
2564
25652008-09-02 Eli Zaretskii <eliz@gnu.org>
2566
2567 * fileio.c (Fexpand_file_name): Copy argument `name' into local
2568 storage on all platforms, not just on DOS_NT.
2569
25702008-09-02 Jason Rumney <jasonr@gnu.org>
2571
b8ff72fa
SM
2572 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
2573 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
2574
25752008-09-01 Chong Yidong <cyd@stupidchicken.com>
2576
2577 * xfaces.c (Finternal_set_alternative_font_family_alist)
2578 (Finternal_set_alternative_font_registry_alist): Properly copy
2579 entire alist structure.
2580
25812008-09-01 Kenichi Handa <handa@m17n.org>
2582
d66c0241 2583 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 2584 representative chars of the script is a vector.
d66c0241
JB
2585 (ftfont_list): Handle the case where the representative chars of
2586 the script is a vector.
aac0c6e3
MR
2587
2588 * character.c (syms_of_character): Docstring of
2589 script-representative-chars fixed.
2590
25912008-08-31 Eli Zaretskii <eliz@gnu.org>
2592
2593 * msdos.c (BUILD_CHAR_GLYPH): New macro.
2594 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
2595 the menu. Allocate larger buffer for `text', to account for
2596 possible ^C characters.
2597
25982008-08-31 Martin Rudalics <rudalics@gmx.at>
2599
2600 * xdisp.c (prepare_menu_bars): Don't call
2601 Vwindow_size_change_functions with arg Qt.
2602
26032008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2604
2605 * font.h (font_range):
2606 * fileio.c (report_file_error):
2607 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
2608
26092008-08-30 Glenn Morris <rgm@gnu.org>
2610
2611 * data.c (Fmake_variable_frame_local): Doc fix.
2612
2613 * frame.c (Fmodify_frame_parameters): Doc fix.
2614
26152008-08-30 Eli Zaretskii <eliz@gnu.org>
2616
2617 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
2618 needed by GetTokenInformation.
2619 (w32_system_process_attributes): Check return values of all system
2620 APIs.
2621
2622 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
2623 only when the state changes.
2624 (IT_update_begin, IT_update_end): Add termscript trace.
2625
2626 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
2627 clipboard is unavailable. Set dst to NULL if it doesn't point to
2628 malloc'ed data.
2629 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
2630 passing random values to xfree.
2631
2632 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 2633 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
2634
26352008-08-29 Jason Rumney <jasonr@gnu.org>
2636
2637 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
2638
26392008-08-29 Eli Zaretskii <eliz@gnu.org>
2640
2641 * composite.c (fill_gstring_body): Avoid compiler warnings.
2642
2643 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
2644 LGLYPH_SET_CODE to avoid compiler warnings.
2645
2ae37cf0 2646 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
2647
2648 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
2649
2650 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
2651 LGLYPH_SET_CODE.
2652
26532008-08-29 Kenichi Handa <handa@m17n.org>
2654
2655 * fileio.c (report_file_error): Don't downcase the first character
2656 of errstring if it is still unibyte.
2657
26582008-08-29 Kenichi Handa <handa@m17n.org>
2659
2660 These changes are to re-implement the automatic composition so
2661 that it doesn't use text properties.
2662
2663 * Makefile.in (ftfont.o): Depend on composite.h.
2664 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
2665
2666 * character.h (Vunicode_category_table): Extern it.
2667
2668 * character.c (Vunicode_category_table): New variable.
2669 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
2670
2671 * chartab.c (optimize_sub_char_table): Perform more greedy
2672 optimization.
2673
b8ff72fa
SM
2674 * composite.h (enum composition_method):
2675 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
2676 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
2677 (Vcomposition_function_table): Extern it.
2678 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
2679 (composition_gstring_put_cache, composition_gstring_from_id)
2680 (composition_gstring_p, composition_gstring_width)
2681 (composition_compute_stop_pos, composition_reseat_it)
2682 (composition_update_it, composition_adjust_point): Extern them.
2683 (Fcomposition_get_gstring): EXFUN it.
2684
d66c0241 2685 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
2686 (Vcomposition_function_table)
2687 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
2688 (gstring_hash_table, gstring_work, gstring_work_headers):
2689 New variables.
aac0c6e3
MR
2690 (gstring_lookup_cache, composition_gstring_put_cache)
2691 (composition_gstring_from_id, composition_gstring_p)
2692 (composition_gstring_width, fill_gstring_header)
2693 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
2694 (composition_reseat_it, composition_update_it)
b8ff72fa 2695 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
2696 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
2697 and gstring_work_headers. DEFVAR_LISP composition-function-table.
2698 Defsubr compostion_get_gstring.
2699
2700 * dispextern.h (struct glyph): New union u.cmp. Delete the member
2701 cmp_id.
2702 (struct glyph_string): Delete the member gidx. New members
2703 cmp_id, cmp_from, and cmp_to.
2704 (enum it_method): Delete GET_FROM_COMPOSITION.
2705 (struct composition_it): New struct.
2706 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
2707 Delete c, len, cmp_id, cmp_len in u.comp.
2708
2709 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 2710 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 2711 (enum lglyph_indices): Likewise.
b8ff72fa 2712 (font_range): Adjust extern.
aac0c6e3
MR
2713 (font_fill_lglyph_metrics): Extern it.
2714
2715 * font.c (QCf): New variable.
2716 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2717 (font_prepare_composition): Delete this function.
2718 (font_range): Type and arguments changed.
2719 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
2720 (font_fill_lglyph_metrics): New function.
b8ff72fa 2721 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 2722 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
2723 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
2724 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
2725
2726 * fontset.h (font_for_char): Extern it.
2727
2728 * fontset.c (font_for_char): New function.
2729
2730 * ftfont.c: Include composite.h.
2731 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 2732 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
2733
2734 * indent.c: Include composite.h and dispextern.h.
2735 (check_composition): Delete this function.
2736 (scan_for_column): Handle composition by
2737 composition_compute_stop_pos, composition_reseat_it, and
2738 composition_update_it.
2739 (compute_motion): Likewise.
2740 (Fvertical_motion): Fix checking of composition.
2741
2742 * keyboard.c (adjust_point_for_property): Check composition by
2743 composition_adjust_point.
2744
b8ff72fa 2745 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
2746 struct glyph_string.
2747
b8ff72fa
SM
2748 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
2749 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
2750 struct glyph.
2751 (produce_composite_glyph): Likewise.
2752
b8ff72fa
SM
2753 * w32term.c (x_draw_composite_glyph_string_foreground):
2754 Adjust for the change of struct glyph_string.
aac0c6e3
MR
2755 (x_draw_glyph_string): Likewise.
2756
2757 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
2758 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2759
2760 * xdisp.c: Include font.h.
2761 (it_props): Delete the entry for Qauto_composed.
2762 (init_iterator): Initialize it->cmp_it.id to -1.
2763 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 2764 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
2765 (handle_auto_composed_prop): Delete it.
2766 (handle_composition_prop): Handle only static composition.
2767 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
2768 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 2769 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
2770 (pop_it): Likewise.
2771 (get_next_element): Delete next_element_from_composition.
2772 (CHAR_COMPOSED_P): New macro.
2773 (get_next_display_element): For automatic composition, get a face
2774 from the font in the glyph-string.
2775 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 2776 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
2777 (next_element_from_string): Check if the character at the current
2778 position is composed by CHAR_COMPOSED_P.
2779 (next_element_from_buffer): Likewise.
d66c0241
JB
2780 (next_element_from_composition): Adjust for the change of struct it.
2781 Update it->cmp_it.
b8ff72fa
SM
2782 (dump_glyph): Adjust for the change of struct glyph.
2783 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
2784 it and struct glyph. Don't handle automatic composition here.
2785 (fill_gstring_glyph_string): New function.
2786 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 2787 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
2788 (BUILD_GSTRING_GLYPH_STRING): New macro.
2789 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
2790 automatic composition.
b8ff72fa 2791 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 2792 struct glyph.
b8ff72fa 2793 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 2794
b8ff72fa 2795 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
2796 the change of struct glyph_string.
2797 (x_draw_glyph_string): Likewise.
2798
27992008-08-29 Glenn Morris <rgm@gnu.org>
2800
2801 * buffer.c (word-wrap): Doc fix.
2802 * xdisp.c (truncate-partial-width-windows): Doc fix.
2803 Increase default to 50.
2804
28052008-08-29 Chong Yidong <cyd@stupidchicken.com>
2806
2807 * xdisp.c (update_tool_bar_unwind): New function.
2808 (update_tool_bar): Temporarily set selected frame before building
2809 tool-bar items.
2810
28112008-08-28 Michael Albinus <michael.albinus@gmx.de>
2812
2813 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
2814 snprintf, respectively.
2815 (xd_append_arg): Convert strings with Fstring_make_unibyte.
2816
28172008-08-28 Chong Yidong <cyd@stupidchicken.com>
2818
2819 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
2820 LDFLAGS to GNUstep CC invocation.
2821
28222008-08-27 Chong Yidong <cyd@stupidchicken.com>
2823
2824 * indent.c (Fvertical_motion): Revert last change. Handle the
2825 general case where we are moving forward, and PT spans multiple
2826 screen lines.
2827
2828 * eval.c (find_handler_clause): Temporarily increase
2829 max-lisp-eval-depth while printing the backtrace buffer, to
2830 guarantee that help-mode code can run.
2831
28322008-08-27 Eli Zaretskii <eliz@gnu.org>
2833
2834 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
2835 colors under -rv.
2836 (IT_set_frame_parameters): Don't swap foreground and background
2837 colors if `(reverse . t)' is present in the frame properties.
2838 (internal_terminal_init): Call init_frame_faces only for the
2839 initial frame.
2840
28412008-08-27 Andreas Schwab <schwab@suse.de>
2842
2843 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
2844
28452008-08-27 Andreas Schwab <schwab@suse.de>
2846
2847 * search.c (search_buffer): Set char_base to zero only at the end.
2848
28492008-08-27 Kenichi Handa <handa@m17n.org>
2850
b8ff72fa 2851 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
2852
28532008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
2854
2855 * xterm.c (x_term_init): Temporarily hide the partially
2856 initialized terminal while calling vendor-specific-keysyms.
2857
28582008-08-26 Eli Zaretskii <eliz@gnu.org>
2859
2860 * msdos.c (internal_terminal_init): Most initializations done only
2861 once, especially initial_screen_colors[] and termscript open.
2862
28632008-08-26 Chong Yidong <cyd@stupidchicken.com>
2864
2865 * eval.c (Fcondition_case): Doc fix.
2866
2867 * widgetprv.h (EmacsFramePart): Change font member to the new font
2868 struct.
2869
2870 * widget.c: Include character.h and font.h for XSETFONT.
2871 (setup_frame_gcs): Compute X font id from font struct, just once.
2872
28732008-08-26 Eli Zaretskii <eliz@gnu.org>
2874
2875 * term.c (get_named_tty): Fix last change.
2876
28772008-08-26 Chong Yidong <cyd@stupidchicken.com>
2878
2879 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 2880 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
2881
28822008-08-25 Eli Zaretskii <eliz@gnu.org>
2883
2884 * frame.c (do_switch_frame): Mark previously displayed frame as
2885 obscured for FRAME_MSDOS_P frames as well.
2886
28872008-08-24 Eli Zaretskii <eliz@gnu.org>
2888
2889 * frame.c (make_terminal_frame): Initialize f->terminal,
2890 f->terminal->reference_count, and scroll bars on MS-DOS as well.
2891 Set the top frame to newly created frame.
2892 (Fmake_terminal_frame): Reuse the_only_display_info.
2893
2894 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
2895 estimating available memory.
2896
b97439ce 28972008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
2898
2899 * nsterm.m (ns_draw_window_cursor): Don't call
2900 NSDisableScreenUpdates and NSEnableScreenUpdates on
2901 non-NS_IMPL_COCOA systems.
2902
29032008-08-23 Andreas Schwab <schwab@suse.de>
2904
2905 * process.c (procfs_system_process_attributes): Fix use of
2906 uninitialized variables.
2907
29082008-08-23 Eli Zaretskii <eliz@gnu.org>
2909
2910 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
2911
2912 * dispnew.c (init_display): Remove MS-DOS specific conditions for
2913 calling tty-set-up-initial-frame-faces.
2914
b8ff72fa
SM
2915 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
2916 Allow MSDOS frames along with X frames.
aac0c6e3
MR
2917
2918 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
2919 addition to output_termcap.
2920
2921 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
2922
2923 * termchar.h (FRAME_TTY): Support output_msdos_raw.
2924 (struct tty_display_info) [MSDOS]: Add fields related to mouse
2925 highlight.
2926
2927 * process.c [!subprocesses]: Define QCname.
2928 (syms_of_process): Intern and staticpro it.
2929
2930 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
2931 Adjust for changes in encoding/decoding routines.
2932 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
2933 encode_coding and decode_coding.
2934
b8ff72fa 2935 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
2936
2937 * dosfns.c: Include frame.h before termhooks.h.
2938 (dos_cleanup): Use CURTTY ()->termscript instead of a global
2939 variable termscript.
2940
2941 * s/msdos.h (USER_FULL_NAME): Define.
2942 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
2943
2944 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
2945 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
2946 pw->pw_gecos.
2947
2948 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
2949 SELECTED_FRAME as additional (1st) argument.
2950 (tty_read_avail_input): Handle output_msdos_raw in
2951 addition to output_termcap.
2952
2953 * msdos.c: Include frame.h before termhooks.h.
2954 (mouse_on, mouse_off, mouse_moveto, mouse_init)
2955 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
2956 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
2957 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
2958 (IT_set_terminal_modes, IT_reset_terminal_modes)
2959 (IT_set_frame_parameters): Use tty->termscript instead of a global
2960 variable termscript.
2961 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
2962 global variable terminal_coding. Don't refer to
2963 Vnonascii_translation_table.
2964 (internal_terminal_init): Set Vwindow_system in current_kboard.
2965 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
2966 Announce date and time of session start, if termscript is open.
2967 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
2968 term.c:init_tty). Open termscript only of not already open.
2969 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
2970 here instead of dos_ttraw. Don't initialize display if this is an
2971 initial tty. Don't set FRAME_FONT.
2972 (Vwindow_system_version): Bump to 23.
2973 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
2974 is available, set up mouse_position_hook.
2975 (dos_ttraw, IT_set_terminal_modes): If called with initial
2976 terminal, do nothing.
2977 (IT_set_frame_parameters): Handle the Qtty_type frame
2978 parameter by calling internal_terminal_init.
2979 (dos_set_window_size, show_mouse_face)
2980 (clear_mouse_face, IT_note_mode_line_highlight)
2981 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
2982 (dos_rawgetc): Use tty_display_info instead of x_display_info.
2983 (initialize_msdos_display): New function.
2984 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
2985 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
2986 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
2987 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 2988 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
2989 (request_sigio, unrequest_sigio): Don't define, now defined on
2990 sysdep.c.
2991 (IT_write_glyphs): Rewrite to use encode_terminal_code.
2992
2993 * term.c [MSDOS]: Include msdos.h.
2994 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
2995 conditional to DOS_NT. Allow only one call to this function in a
2996 session. Don't allocate a new struct tty_display_info; instead,
2997 reuse the_only_display_info. Call get_tty_size to get screen
2998 dimensions. Call init_baud_rate to set bad_rate.
2999 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3000 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3001 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3002 (get_tty_terminal, get_named_tty, Ftty_type)
3003 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3004 output_termcap.
b8ff72fa
SM
3005 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3006 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3007 only when subprocesses are supported.
aac0c6e3
MR
3008
3009 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3010 f->output_data.x.
3011 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3012 terminal devices.
3013
5582fbc7 3014 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3015 x_output.
3016 (FRAME_FONT): Use output_data.tty.
3017 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3018 (struct x_display_info): Rename from display_info. Update all users in
3019 msdos.c.
aac0c6e3 3020 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3021 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3022 (dos_ttraw): Update prototype.
3023
3024 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3025 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3026
30272008-08-23 Jason Rumney <jasonr@gnu.org>
3028
3029 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3030 (fn_TIFFSetDirectory): New library function used.
3031 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3032 (tiff_load): Use :index to select among multiple images. Set count
3033 property when multiple images exist.
3034 (gif_format): Use :index, not :image.
3035
30362008-08-23 Chong Yidong <cyd@stupidchicken.com>
3037
3038 * xdisp.c (try_scrolling): Check INT_MAX instead of
3039 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3040 to obtain INT_MAX.
3041
30422008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3043
3044 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3045
30462008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3047
3048 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3049 GNUstep library location.
3050
30512008-08-21 Chong Yidong <cyd@stupidchicken.com>
3052
3053 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3054 before using it.
3055
3056 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3057
30582008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3059
3060 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3061 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3062 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3063 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3064 (EmacsApp-cursor_blink_handler): Remove declaration.
3065 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3066 match 01 Feb 2008 changes in xterm.c.
3067 (ns_read_socket): Add cast to avoid warning.
3068 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3069 GNUstep.
3070
30712008-08-20 Chong Yidong <cyd@stupidchicken.com>
3072
3073 * xselect.c (x_get_foreign_selection): Return nil if desired
3074 selection could not be obtained, instead of signalling an error.
3075
30762008-08-20 David Reitter <david.reitter@gmail.com>
3077
3078 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3079 * nsterm.m: Remove ns-specific code for cursor blinking.
3080 (ns_draw_window_cursor): Clear cursor properly rather than
3081 redrawing the area. Respect width of bar cursors.
3082 These changes enable the use of generic blink-cursor-mode and
3083 generic cursor types in NS and support smooth cursor movements (do
3084 not blink off after command).
3085 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3086 Nextstep, too.
3087
30882008-08-19 Kenichi Handa <handa@m17n.org>
3089
3090 * font.c (Vfont_log_deferred): New variable.
3091 (font_add_log): Check Vfont_log_deferred.
3092 (font_deferred_log): New function.
3093
3094 * font.h (font_deferred_log): Extern it.
3095
3096 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3097 for sorting.
3098 (face_for_char): Use deferred log.
3099
31002008-08-18 Kenichi Handa <handa@m17n.org>
3101
3102 * fontset.c (face_for_char): Add font log.
3103
3104 * font.c (font_add_log): Add the font properties :script, :lang,
3105 and :otf in the log.
3106
31072008-08-17 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * xdisp.c: Remove dead code.
3110 (handle_invisible_prop, next_overlay_string): Defer call to
3111 setup_for_ellipsis.
3112 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3113
31142008-08-15 Chong Yidong <cyd@stupidchicken.com>
3115
3116 * xfaces.c (lookup_derived_face): Properly handle possible zero
3117 return value of get_lface_attributes.
3118 (merge_faces): Don't tell lookup_derived_face to signal an error
3119 if face is not found.
3120
3121 * dired.c (Fdirectory_files): Doc fix.
3122
3123 * process.c (make_process): Initialize kill_without_query struct
3124 member.
3125
31262008-08-15 Eli Zaretskii <eliz@gnu.org>
3127
3128 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3129 Alternative calculation of totphys for Visual Studio 6.
3130
3131 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3132
3133 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3134 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3135 All users changed.
3136 (stat): Only root directory passed to GetDriveType. Allow RAM
3137 disk as well as local fixed disk when w32-get-true-file-attributes
3138 is set to `local'.
3139 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3140 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3141 (w32_cached_id, w32_add_to_cache): New functions.
3142 (get_name_and_id): Look account names in the cache before calling
3143 lookup_account_sid.
3144 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3145 New initialization flags.
3146 (globals_of_w32): Initialize them to zero.
3147 (w32_system_process_attributes): Use w32_cached_id and
3148 w32_add_to_cache.
3149
31502008-08-14 Lawrence Mitchell <wence@gmx.li>
3151
3152 * lread.c (Fread_char, Fread_char_exclusive): If no character
3153 event is read before timeout is reached, return nil, rather than
3154 converting to a number.
3155
31562008-08-14 Chong Yidong <cyd@stupidchicken.com>
3157
3158 * fns.c (use_dialog_box): Doc fix.
3159
3160 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3161 on OS X.
3162
31632008-08-13 Chong Yidong <cyd@stupidchicken.com>
3164
3165 * frame.c (Qns_parse_geometry): New var.
3166 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3167
31682008-08-11 Chong Yidong <cyd@stupidchicken.com>
3169
3170 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3171 space character in calculating tabs.
3172
31732008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3174
3175 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3176
31772008-08-10 Glenn Morris <rgm@gnu.org>
3178
3179 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3180 silence gcc "limited range of data type" warnings in some
3181 make_fixnum_or_float calls.
3182
31832008-08-09 Eli Zaretskii <eliz@gnu.org>
3184
3185 * w32.c (w32_system_process_attributes): If the process does not
3186 exist, return nil.
3187
3188 * w32.c: Include thelp32.h, psapi.h and coding.h.
3189 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3190 declarations.
3191 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3192 (Process32Next_Proc): New typedefs.
3193 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3194 (g_b_init_process32_next, g_b_init_open_thread_token)
3195 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3196 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3197 (g_b_init_get_process_working_set_size)
3198 (g_b_init_global_memory_status_ex): New static variables.
3199 (globals_of_w32): Initialize them.
3200 (create_toolhelp32_snapshot, process32_first, process32_next)
3201 (open_thread_token, impersonate_self, revert_to_self)
3202 (get_process_memory_info, get_process_working_set_size)
3203 (global_memory_status, global_memory_status_ex): New wrapper
3204 functions.
3205 (w32_list_system_processes, w32_system_process_attributes)
3206 (enable_privilege, restore_privilege, ltime, process_times):
3207 New functions.
3208 (convert_time_raw): New function.
3209 (convert_time): Remove conversion of FILETIME into time in 100
3210 nsec units, call convert_time_raw instead.
3211
3212 * process.h (w32_list_system_processes, w32_system_process_attributes):
3213 Add prototypes.
3214 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3215 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3216 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3217 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3218
3219 * process.c (Fsystem_process_attributes): Doc fix.
3220
32212008-08-08 Chong Yidong <cyd@stupidchicken.com>
3222
3223 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3224 a continued multi-char glyph; if so, advance to the actual glyph.
3225
32262008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3227
3228 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3229
3230 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3231 (.m.o): Use it.
3232 * config.in: Regenerate.
3233
32342008-08-07 Chong Yidong <cyd@stupidchicken.com>
3235
3236 * xdisp.c (redisplay_window): Revert last change.
3237 (try_window): Check bottom scroll margin too.
3238
32392008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3240
3241 * config.in: Regenerate.
3242
3243 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3244 -list-load-path-shadows'.
3245 (nsgui.h): Reduce number of things depending on it.
3246
32472008-08-06 Chong Yidong <cyd@stupidchicken.com>
3248
3249 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3250 instead of window-end which does the wrong thing at eob.
3251 (try_cursor_movement): Minor optimization.
3252 (redisplay_window): If scroll margin is defined, don't assume
3253 window doesn't need scrolling.
3254
32552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3256
3257 * config.in: Regenerate.
3258
3259 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3260 (mostlyclean): Don't delete *.d under NS.
3261
3262 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3263
32642008-08-06 Kenichi Handa <handa@m17n.org>
3265
3266 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3267
32682008-08-06 Andreas Schwab <schwab@suse.de>
3269
3270 * config.in: Regenerate.
3271
32722008-08-05 Chong Yidong <cyd@stupidchicken.com>
3273
3274 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3275 forcing a window start.
3276
3277 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3278 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3279
32802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3281
3282 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3283 argument.
3284
32852008-08-05 Juanma Barranquero <lekktu@gmail.com>
3286
3287 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3288 <scroll-down-aggressively, before-change-functions>:
3289 <after-change-functions>: Reflow docstrings.
3290
32912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3292 Ken Raeburn <raeburn@gnu.org>
3293
3294 Dock menu customization, based on a patch by Ken Raeburn, plus some
3295 other fixes.
3296 * nsmenu.m (dockMenu): New variable.
3297 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3298
3299 * nsterm.h (dockMenu): Declare.
3300
3301 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3302 (ns_term_init): Initialize dockMenu.
3303 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3304 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3305 left.
3306
3307 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3308
33092008-08-04 Chong Yidong <cyd@stupidchicken.com>
3310
3311 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3312
3313 * config.in: Regenerate.
3314
33152008-08-04 Seiji Zenitani <zenitani@mac.com>
3316
3317 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3318
33192008-08-04 Chong Yidong <cyd@stupidchicken.com>
3320
3321 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3322
33232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3324
3325 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3326
3327 * keyboard.h: Comment an #endif.
3328
3329 * lisp.h (have_menus_p): Adjust comment.
3330
3331 * menu.c (find_and_return_menu_selection): Fix comparison with
3332 client_data.
3333
3334 * nsmenu.m (popup_activated_flag): New variable.
3335 (popup_activated): New function.
3336 (menu-or-popup-active-p): New exported lisp definition.
3337 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3338 when popup done.
3339 (ns_popup_dialog): Set popup_activated_flag.
3340
3341 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3342 version for GNUstep (handled by conditional typedef in nsterm.m).
3343 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3344 in rgb.txt).
3345
3346 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3347
3348 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3349
3350 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3351
3352 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3353 shortcircuit if popup_activated like GTK and X toolkit.
3354
3355 * m/inter386.h: Change DARWIN to DARWIN_OS.
3356
3357 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3358 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3359 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3360 comment on NO_SOCK_SIGIO.
3361
33622008-08-03 Chong Yidong <cyd@stupidchicken.com>
3363
3364 * nsterm.m (windowDidResize): Remove stopModal call.
3365
33662008-08-03 Andreas Schwab <schwab@suse.de>
3367
3368 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3369 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3370
33712008-08-02 Chong Yidong <cyd@stupidchicken.com>
3372
3373 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3374 Don't use uninitialized pointer variable when using getrlimit.
3375
33762008-08-02 Jason Rumney <jasonr@gnu.org>
3377
3378 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3379
33802008-08-02 Eli Zaretskii <eliz@gnu.org>
3381
3382 * alloc.c (NSTATICS): Bump to 0x640.
3383
3384 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
3385
3386 * lisp.h: Add prototype for directory_files_internal.
3387
3388 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
3389 New functions.
3390 (syms_of_process): Defsubr them. Add initializations for various
3391 Q* symbols used in procfs_system_process_attributes.
3392 (procfs_list_system_processes, procfs_system_process_attributes)
3393 [HAVE_PROCFS]: New functions.
3394 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
3395 (procfs_get_total_memory): New functions.
3396
33972008-08-01 Juanma Barranquero <lekktu@gmail.com>
3398
3399 * xfaces.c (Fx_load_color_file): Fix previous change;
3400 it is #ifdef WINDOWSNT, not WINDOWS_NT.
3401
34022008-08-01 Michael Albinus <michael.albinus@gmx.de>
3403
3404 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
3405
34062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3407
3408 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
3409
34102008-08-01 Chong Yidong <cyd@stupidchicken.com>
3411
3412 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
3413
3414 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
3415 define NSApplicationDelegateReplySuccess.
3416 (EmacsView -converstationIdentifier): Use long instead of
3417 NSInteger for GNUstep, since it doesn't have NSInteger.
3418
3419 * xmenu.c: Revert last change.
3420
3421 * keyboard.h: Fix last change.
3422
34232008-08-01 Juanma Barranquero <lekktu@gmail.com>
3424
3425 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
3426 on Windows.
3427
34282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3429
3430 Warning clearing and clean-up in NS port.
3431 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3432 Add prototypes.
3433 * nsgui.h (FACE_DEFAULT): Remove, unused.
3434 (XGCValues): Change colors to unsigned long.
3435 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
3436 nsterm.m.
3437 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
3438 (ns_list_fonts): Remove, unused.
3439 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
3440 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
3441 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
3442 (nsfont_draw): Compare face colors to 0, not nil.
3443 * nsmenu.m (struct widget_value): Drop unneeded declaration.
3444 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
3445 (-addSubmenuWithTitle:): Use NSMenuItem class.
3446 (ns_popup_menu): Use NO, not NULL, for enabled setting.
3447 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
3448 (ns_clip_to_row): Make gc arg a BOOL.
3449 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
3450 ns_clip_to_row() call.
3451 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
3452 used). Cast FRAME_FONT assignments.
3453 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
3454 (ns_string_to_lispmod): Change arg to const char.
3455 (ns_term_init): Use NSMenuItem class.
3456 (EmacsApp -openFile:): Move to different section of file.
3457 (EmacsApp -application:openFiles:): Don't return a value, call
3458 -replyToOpenOrPrint:.
3459 (EmacsView -keyDown:): Fix up cast.
3460 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
3461 (EmacsView -menuDown:): Cast tag in call to
3462 find_and_call_menu_selection().
3463 (ns_list_fonts): Remove, unused.
3464 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
3465 (ns_fontname_to_xlfd): Make static.
3466 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
3467 Remove prototypes (now in keyboard.h).
3468 (next_menubar_widget_id): Remove, unused.
3469 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
3470 Remove prototypes (now in keyboard.h).
3471 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
3472
34732008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
3474
3475 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
3476 (floatfns.o): Depend on syssignal.h.
3477 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
3478
3479 * systty.h: Fix previous change that removed BSD_TERMIOS.
3480 Add comments to #ifdefs.
3481
34822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3483
3484 * w32fns.c (w32-load-color-file): Remove.
3485 (x-open-connection): Use renamed Fx_load_color_file.
3486 * xfaces.c (x-load-color-file): Add.
3487 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
3488 Emacs.clr.
3489 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
3490
34912008-07-31 Michael Albinus <michael.albinus@gmx.de>
3492
3493 * dbusbind.c (Fdbus_call_method_asynchronously)
3494 (Fdbus_method_error_internal): New defuns.
3495 (xd_read_message): Handle also reply messages.
3496 (Vdbus_registered_functions_table): Extend docstring.
3497
34982008-07-31 Juanma Barranquero <lekktu@gmail.com>
3499
3500 * keyboard.c (gobble_input): Fix previous change.
3501
35022008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3503
3504 * bitmaps/README:
3505 * xfns.c:
3506 * termcap.c:
3507 * term.c:
3508 * syswait.h:
3509 * systty.h:
3510 * systime.h:
3511 * syssignal.h:
3512 * sysdep.c:
3513 * process.h:
3514 * process.c:
3515 * print.c:
3516 * ndir.h:
3517 * lread.c:
3518 * keyboard.c:
3519 * getpagesize.h:
3520 * floatfns.c:
3521 * fileio.c:
3522 * emacs.c:
3523 * doc.c:
3524 * dispnew.c:
3525 * dired.c:
3526 * data.c:
3527 * callproc.c:
3528 * buffer.c:
3529 * README:
3530 * Makefile.in:
3531 * s/template.h:
3532 * s/msdos.h:
3533 * m/vax.h: Remove VMS support.
3534 * s/vms.h:
3535 * vlimit.h:
3536 * uaf.h:
3537 * temacs.opt:
3538 * param.h:
3539 * ioctl.h: Remove file.
3540
35412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3542
3543 * s/ms-w32.h (MULTI_KBOARD): Remove.
3544 * xterm.c:
3545 * xselect.c:
3546 * xfns.c:
3547 * window.c:
3548 * w32term.c:
3549 * w32fns.c:
3550 * terminal.c:
3551 * termhooks.h:
3552 * term.c:
3553 * sysdep.c:
3554 * keyboard.h:
3555 * keyboard.c:
3556 * frame.h:
3557 * frame.c:
3558 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
3559 * config.in: Regenerate.
3560
35612008-07-30 Jason Rumney <jasonr@gnu.org>
3562
3563 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
3564
3565 * w32font.c (w32font_encode_char): Leave as unicode if in range.
3566 (w32font_open_internal): Get unicode version of textmetrics.
3567 Don't enable or disable glyph indices here.
3568 (w32font_open): Disable use of glyph indices.
3569
3570 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
3571
35722008-07-30 Chong Yidong <cyd@stupidchicken.com>
3573
3574 * minibuf.c (Vread_buffer_function): Doc fix.
3575
35762008-07-30 John Paul Wallington <jpw@pobox.com>
3577
3578 * minibuf.c (read_buffer_completion_ignore_case): New var.
3579 (Fread_buffer): Use it.
3580
35812008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3582
3583 * systty.h (sensemode): Remove empty #if. Remove reference to
3584 BSD_TERMIOS, unused.
3585
3586 * sysdep.c: Remove reference to DGUX.
3587 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
3588
3589 * config.in: Regenerate.
3590
35912008-07-30 Jason Rumney <jasonr@gnu.org>
3592
3593 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
3594
35952008-07-29 Jason Rumney <jasonr@gnu.org>
3596
3597 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
3598 is populated.
3599 (uniscribe_encode_char): Always use uniscribe.
3600 Avoid using context if cache is populated.
3601
36022008-07-29 Jan Djärv <jan.h.d@swipnet.se>
3603
3604 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
3605 open menu.
3606
3607 * gtkutil.c (menu_nav_ended): Remove.
3608 (create_menus): Remove signal connect for menu_nav_ended.
3609
36102008-07-28 Chong Yidong <cyd@stupidchicken.com>
3611
3612 * xdisp.c (redisplay_window): Check return value of
3613 compute_window_start_on_continuation_line before forcing a window
3614 start.
3615
36162008-07-28 Jason Rumney <jasonr@gnu.org>
3617
3618 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
3619
3620 * w32term.c (w32_enable_unicode_output, cleartype_active):
3621 Remove obsolete display options.
3622 (x_draw_glyph_string_background): Don't use old cleartype_active
3623 workaround.
3624 (w32_initialize): Remove cleartype_active initialization.
3625 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
3626
36272008-07-28 Andreas Schwab <schwab@suse.de>
3628
3629 * lisp.h (init_weak_hash_tables, syms_of_font)
3630 (xd_read_queued_messages, syms_of_dbusbind): Declare.
3631 (remove_hash_entry): Don't declare.
3632 * eval.c (maybe_call_debugger): Make static and move before use.
3633 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
3634 * xdisp.c: Include "gtkutil.h" if USE_GTK.
3635 * xterm.h (x_set_frame_alpha): Declare.
3636
36372008-07-28 Jan Djärv <jan.h.d@swipnet.se>
3638
3639 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
3640 (create_menus): Connect selection-done to menu_nav_ended.
3641
36422008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3643
3644 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
3645 Set Vx_resource_name to a fallback. Replace read of 'buffered'
3646 parameter with read of 'alpha' one.
3647 (Qns_frame_parameter): Remove.
5582fbc7 3648 * nsselect.m (selection-coding-system)
aac0c6e3
MR
3649 (next-selection-coding-system, Vselection_coding_system)
3650 (Vnext_selection_coding_system): Drop.
3651
36522008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3653
3654 * nsfns.m (do-applescript, do_applescript): Rename to
3655 ns-do-applescript, ns_do_applescript, and move within file.
3656
36572008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3658
3659 Remove support for Mac Carbon.
3660 * mactoolbox.c:
3661 * macterm.h:
3662 * macterm.c:
3663 * macselect.c:
3664 * macmenu.c:
3665 * macgui.h:
3666 * macfns.c:
3667 * mac.c: Remove file.
3668 * s/darwin.h:
3669 * m/intel386.h:
3670 * xfaces.c:
3671 * xdisp.c:
3672 * window.c:
3673 * tparam.c:
3674 * termhooks.h:
3675 * termcap.c:
3676 * term.c:
3677 * syssignal.h:
3678 * sysselect.h:
3679 * sysdep.c:
3680 * process.c:
3681 * lread.c:
3682 * lisp.h:
3683 * keyboard.c:
3684 * image.c:
3685 * fringe.c:
3686 * frame.h:
3687 * frame.c:
3688 * fontset.c:
3689 * font.h:
3690 * font.c:
3691 * fns.c:
3692 * fileio.c:
3693 * emacs.c:
3694 * dispnew.c:
3695 * dispextern.h:
3696 * config.in:
3697 * atimer.c:
2ae37cf0 3698 * Makefile.in: Remove code for Carbon.
aac0c6e3 3699
f0131492 37002008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
3701
3702 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
3703
37042008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3705
3706 * macterm.h (kCGBitmapByteOrder32Host): New define for
3707 non-universal SDKs.
3708
3709 * image.c (mac_create_cg_image_from_image, image_load_image_io)
3710 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3711
3712 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
3713 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3714
37152008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
3716
3717 * w32inevt.c: Include dispextern.h.
3718
37192008-07-26 Andreas Schwab <schwab@suse.de>
3720
3721 * print.c (print_object): Fix off-by-one in last change.
3722
37232008-07-25 Juanma Barranquero <lekktu@gmail.com>
3724
3725 * term.c (syms_of_term): Don't initialize default_orig_pair,
3726 default_set_foreground and default_set_background on Windows.
3727
37282008-07-25 Jason Rumney <jasonr@gnu.org>
3729
3730 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
3731 ScriptItemize. Clean up return value checking. Remove unused
3732 variables.
3733 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
3734 shaping engine.
3735
3736 * w32font.c (w32font_has_char): Handle the case where we can't
3737 determine the script for a character.
3738
37392008-07-25 Chong Yidong <cyd@stupidchicken.com>
3740
3741 * term.c (syms_of_term): Initialize default_orig_pair,
3742 default_set_foreground, and default_set_background.
3743
3744 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3745 clash (bug#86).
3746 (getloadavg): Callers changed.
3747
3748 * image.c (svg_load_image): Fix last change.
3749 (svg_load_image): Use rsvg_handle_get_dimensions to check that
3750 image size is valid. Use g_object_unref instead of deprecated
3751 rsvg_handle_free to free rsvg handle.
3752 (x_from_xcolors): Don't initialize pixmap (silence compiler).
3753
37542008-07-25 Jason Rumney <jasonr@gnu.org>
3755
3756 * w32font.c (w32font_encode_char): Encode characters outside BMP as
3757 surrogates before looking up glyph index.
3758 (w32font_text_extents): Encode as surrogates if falling back to
3759 functions that need UTF-16 wide chars.
3760
3761 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
3762 BMP as surrogates before looking up glyph index.
3763
37642008-07-25 Chong Yidong <cyd@stupidchicken.com>
3765
3766 * image.c (svg_load_image): Check for failure in return value of
3767 rsvg_handle_get_pixbuf. Free rsvg handle when done.
3768
37692008-07-25 Jason Rumney <jasonr@gnu.org>
3770
3771 * w32font.c (Fx_select_font): Reverse sense of second arg.
3772
37732008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
3774
3775 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
3776 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
3777
3778 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
3779 (PURESIZE): Use it.
3780
37812008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3782
3783 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
3784 * m/alpha.h (TEXT_END):
3785 * m/ibmrs6000.h (TEXT_END):
3786 * m/macppc.h (TEXT_END):
3787 * s/darwin.h (TEXT_END):
3788 * s/msdos.h (TEXT_END): Remove, unused.
3789 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
3790 * s/cygwin.h: Remove comment.
3791
3792 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
3793 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
3794 * m/intel386.h (DOT_GLOBAL_START):
3795 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
3796 (USG): Remove, file not used on USG platforms.
3797
3798 * Makefile.in (HAVE_X11): Remove empty #else.
3799
38002008-07-24 Andreas Schwab <schwab@suse.de>
3801
3802 * fileio.c (Finsert_file_contents): Properly adjust undo list
3803 after format conversion.
3804
38052008-07-24 Jan Djärv <jan.h.d@swipnet.se>
3806
3807 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
3808 (menu_nav_ended): Remove.
3809 (create_menus): Remove signal connect for menu_nav_ended.
3810 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
3811 create_menus.
3812 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
3813
38142008-07-23 Jason Rumney <jasonr@gnu.org>
3815
3816 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
3817 with opened font.
3818 (w32font_open): Set font type to gdi.
3819
3820 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
3821
38222008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
3823
3824 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
3825 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
3826 defines it.
3827 * unexec.c (ADDR_CORRECT): Define unconditionally.
3828
3829 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
3830
3831 * unexec.c: Remove code depending on !COFF and USG, the file is
3832 not used for such systems.
3833
3834 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
3835 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
3836 (LD_SWITCH_SYSTEM_1): Remove, update users.
3837
3838 * s/darwin.h (DATA_END):
3839 * m/intel386.h (DATA_END):
3840 * m/ibmrs6000.h (DATA_END):
3841 * m/alpha.h (DATA_END): Remove, unused.
3842
3843 * config.in: Regenerate.
3844 * s/ms-w32.h (subprocesses): Define unconditionally.
3845 * s/template.h (subprocesses): Update comment.
3846 * s/vms.h (subprocesses):
3847 * s/usg5-4.h (subprocesses):
3848 * s/hpux10-20.h (subprocesses):
3849 * s/gnu-linux.h (subprocesses):
3850 * s/cygwin.h (subprocesses):
3851 * s/bsd-common.h (subprocesses):
3852 * s/aix4-2.h (subprocesses):
3853 * s/darwin.h (subprocesses): Do not define, defined by default now.
3854
3855 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
3856 Remove all references.
3857 (temacs): Add GNUstep specific ld flags.
3858
3859 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
3860 similarly to what X does.
3861
38622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3863
3864 * nsfns.m (x-list-fonts): Remove.
3865 (syms_of_nsfns): Drop the x-list-fonts declaration.
3866 * nsterm.m: Get rid of remaining "//" comments.
3867
38682008-07-22 Chong Yidong <cyd@stupidchicken.com>
3869
3870 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
3871
3872 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
3873 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
3874 (Fns_own_selection_internal, Fx_disown_selection_internal)
3875 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
3876
3877 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
3878 ... */' style of docstrings. Doc fixes.
3879
38802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3881
3882 * terminfo.c (UP, BC, PC): Undo previous change.
3883
3884 * nsfns.m: Rename ns prefixed functions/variables to the
3885 corresponding x versions. Update references.
3886
38872008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3888
3889 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
3890
38912008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3892
3893 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
3894 Remove forwarding functions.
3895 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
3896 non-static.
3897 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
3898 non-static.
3899 (ns_frame_parm_handlers): Use the new names.
3900 (syms_of_nsfns): Move to the end of file.
3901
3902 * nsterm.m (syms_of_nsterm): Move to the end of file.
3903
3904 * dispnew.c (init_display): Remove code for X10.
3905
39062008-07-22 Jason Rumney <jasonr@gnu.org>
3907
3908 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
3909 bare drive.
3910
39112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3912
3913 * nsterm.m (syms_of_nsterm): Remove debugging println.
3914
39152008-07-22 David Reitter <david.reitter@gmail.com>
3916
3917 * nsfns.m (do_applescript, F_do_applescript): NS version of the
3918 Carbon implementation of the same functionality: execute arbitrary
3919 AppleScript code.
3920
39212008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3922
3923 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
3924 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
3925 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3926 (Fx_display_mm_height, Fx_display_mm_width)
3927 (Fx_display_backing_store, Fx_display_visual_class)
3928 (Fx_display_save_under, Fx_open_connection)
3929 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
3930 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
3931 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3932 (Fx_display_pixel_width, Fx_display_pixel_height)
3933 (Fx_display_usable_bounds, Fx_display_planes)
3934 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
3935 ... */' style of docstrings.
3936
39372008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
3938
3939 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
3940 on this platform.
3941 (mips):
3942 * m/iris4d.h (mips): Do not define.
3943 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
3944
3945 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
3946
3947 * image.c:
3948 * nsfns.m:
3949 * nsselect.m:
3950 * nsterm.h:
3951 * nsterm.m: Rename ns prefixed functions/variables to the
3952 corresponding x versions. Update references.
3953
3954 * m/ibms390x.h (NO_REMAP): Do not undefine.
3955
3956 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
3957
39582008-07-21 Chong Yidong <cyd@stupidchicken.com>
3959
3960 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
3961 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
3962 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
3963 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
3964 (Fns_display_mm_height, Fns_display_mm_width)
3965 (Fns_display_backing_store, Fns_display_visual_class)
3966 (Fns_display_save_under, Fns_open_connection)
3967 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
3968 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
3969 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3970 (Fns_display_pixel_width, Fns_display_pixel_height)
3971 (Fns_display_usable_bounds, Fx_display_planes)
3972 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
3973
39742008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3975
3976 * print.c (print_object): Check print_depth before searching for
3977 circularities.
3978
39792008-07-21 Michael Albinus <michael.albinus@gmx.de>
3980
3981 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
3982 only sprintf.
3983
39842008-07-21 Kenichi Handa <handa@m17n.org>
3985
3986 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
3987
39882008-07-20 Andreas Schwab <schwab@suse.de>
3989
3990 * syntax.c (find_start_pos, find_start_value)
3991 (find_start_value_byte, find_start_begv, find_defun_start)
3992 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
3993
39942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3995
3996 * s/sol2-3.h: Insert contents of s/sol2.h.
3997 (LD_SWITCH_SYSTEM): Remove redundant definition.
3998 * s/sol2.h: Remove, unused.
3999
40002008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4001
4002 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4003
40042008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4005
4006 * Makefile.in (ns_appdir): Fix typo in find command.
4007
40082008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4009
4010 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4011
4012 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4013 added not supported anymore.
4014
4015 * s/usg5-4-2.h (LIBS_SYSTEM):
4016 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4017
4018 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4019 * s/lynxos.h (GETPGRP_NO_ARG):
4020 * s/hpux10-20.h (NO_SIOCTL_H):
4021 * s/gnu.h (GETPGRP_NO_ARG):
4022 * s/gnu-linux.h (NO_SIOCTL_H):
4023 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4024 * s/cygwin.h (GETPGRP_NO_ARG):
4025 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4026 (C_DEBUG_SWITCH): Remove duplicate definition.
4027
4028 * m/ibms390.h: Remove boilerplate comments.
4029
4030 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4031
4032 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4033 (wait_reading_process_output): Remove code for SunOS, platform not
4034 supported anymore. Use SOLARIS2 instead of sun.
4035
40362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4037
4038 * font.c (font_open_by_name): Under NS, default lface height to zero.
4039 (font_open_for_lface): Under NS, set size based on frame fontsize.
4040 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4041 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4042
40432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4044
4045 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4046 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4047 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4048 YES/NO.
4049 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4050 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4051 * Makefile.in (clean): Clear out build destination dir.
4052
40532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4054
4055 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4056 xterm, xselect.
4057 * lisp.h: Remove declaration of hash_remove.
4058 * nsgui.h: Remove redefinitions of hash_remove.
4059 * fns.c (hash_remove): Rename to hash_remove_from_table.
4060
40612008-07-19 Seiji Zenitani <zenitani@mac.com>
4062
4063 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4064 strdup() the family UTF8String before modifying it.
4065
40662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4067
4068 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4069 NS_FACE_BACKGROUND with 0 instead of nil.
4070 * nsfont.m (nsfont_draw): Same.
4071
40722008-07-19 Chong Yidong <cyd@stupidchicken.com>
4073
4074 * nsfns.m (ns_set_background_color): Fix crash.
4075
40762008-07-18 Chong Yidong <cyd@stupidchicken.com>
4077
4078 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4079
40802008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4081
4082 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4083
40842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4085
4086 * gtkutil.c: Include <config.h> instead of "config.h".
4087
4088 * lisp.h (Foverlay_buffer): Add EXFUN.
4089
4090 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4091 child process to complete child_setup. Undo 2005-09-21 change.
4092
4093 * s/darwin.h: Mention setsid after vfork.
4094
40952008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4096
4097 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4098 Depend on macgui.h.
4099
4100 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4101 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4102
4103 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4104 and f19.
4105 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4106
4107 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4108 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4109 Remove enumerators.
4110
4111 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4112 Check if FACE_FROM_ID returns NULL.
4113
41142008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4115
4116 * w32inevt.c (change_frame_size): Remove extern declaration.
4117 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4118 change_frame_size.
4119
41202008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4121
4122 * getloadavg.c: Revert last change (2008-07-15).
4123
41242008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4125
4126 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4127 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4128 from configure.
4129
41302008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4131
4132 * s/sol2.h:
4133 * s/sol2-4.h: Reorganize conditionals.
4134
4135 * ecrt0.c: Remove code depending on m68000, not used anymore.
4136
4137 * fns.c (hash_remove): Make static.
4138 * lisp.h (hash_remove): Don't prototype.
4139
4140 * m/ibmrs6000.h:
4141 * m/ibms390x.h:
4142 * m/macppc.h: Remove boilerplate comments.
4143
4144 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4145 Solaris, which does not need them.
4146
4147 * m/vax.h: Remove comments about unsupported systems.
4148
4149 * s/darwin.h: Reorganize ifdefs.
4150
41512008-07-17 Andreas Schwab <schwab@suse.de>
4152
4153 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4154
41552008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4156
4157 Use SDATA. Follow coding convention of placing operators at
4158 beginning of next line rather than end of previous line, and placing
4159 spaces around infix operators.
4160
4161 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4162 in case it was defined already.
4163 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4164 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4165 ns_default.
4166 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4167 Lisp_Objects.
4168 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4169 (ns_defined_color, ns_color_to_lisp): Declare.
4170 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4171 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4172 it's accepted even with USE_LISP_UNION_TYPE.
4173 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4174 (update_frame_tool_bar): Remove apparently obsolete tests for
4175 non-integerness of f->tool_bar_lines.
4176 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4177 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4178 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4179 (nsfont_open): Don't confuse NULL for Qnil.
4180 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4181 * menu.h (find_and_call_menu_selection):
4182 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4183 (find_and_return_menu_selection): Always return something.
4184 * frame.h: Include dispextern.h for Display_Info.
4185 (display_x_get_resource): Declare.
4186
41872008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4188
4189 * syntax.c: Remove stdio.h include accidentally introduced in
4190 Emacs.app commit.
4191 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4192 NS_IMPL_COCOA.
4193 * keyboard.c (handle_async_input, input_available_signal): Remove
4194 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4195
41962008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4197
4198 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4199 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4200 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4201 Use SDATA.
4202
4203 * keymap.c: Remove all NS-specific code.
4204 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4205 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4206 where_is_preferred_modifier, return a different value depending on how
4207 preferred is the binding.
4208 (where_is_internal): Adjust accordingly.
4209 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4210 Adjust to new preferred_sequence_p.
4211 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4212 * keyboard.c (parse_solitary_modifier): Not static any more.
4213 * keyboard.h (parse_solitary_modifier): Declare.
4214
42152008-07-16 Andreas Schwab <schwab@suse.de>
4216
4217 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4218 of easymenu.
4219
42202008-07-16 Chong Yidong <cyd@stupidchicken.com>
4221
4222 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4223 that we don't move off the line.
4224
42252008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4226
4227 * keyboard.c (Qsuper): Remove.
4228 (parse_menu_item): Don't call where_is_internal specially for NS.
4229
42302008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4231
4232 * s/gnu-linux.h: Remove boilerplate comments.
4233
4234 * m/alpha.h (__ELF__): Consolidate conditions.
4235
4236 * m/m68k.h (linux): Use GNU_LINUX instead.
4237 Remove boilerplate comments.
4238
4239 * m/intel386.h: Undo refactoring from previous change.
4240 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4241 too, remove dead code.
4242 (linux): Use GNU_LINUX instead.
4243
42442008-07-16 Jason Rumney <jasonr@gnu.org>
4245
4246 * w32gui.h: Repeat 26 June changes lost by last change.
4247
42482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4249
4250 * systty.h: Remove code for Aix on 386, unsupported platform.
4251
4252 * s/ms-w32.h: Remove boilerplate comments.
4253 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4254
4255 * s/gnu-linux.h (TERM): Remove support.
4256 (HAVE_SYSVIPC): Remove, unused.
4257 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4258 for this system.
4259
4260 * process.c: Remove support for IRIS, unused.
4261 Remove support for TERM, not relevant anymore.
4262
4263 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4264 used with the definition.
4265
4266 * s/aix4-2.h (static): Do not undef.
4267
4268 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4269 only used on Aix.
4270 (HAVE_SYSVIPC): Remove, unused.
4271
4272 * m/hp800.h (CANNOT_DUMP): Do not undef.
4273
4274 * m/alpha.h: Fix comment.
4275
4276 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4277 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4278 used by this configuration.
4279 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4280 * unexec.c: Remove code depending on HPUX and
4281 USG_SHARED_LIBRARIES, not used with this file. Remove code
4282 depending on IRIS, unused. Remove if 0-ed code.
4283
4284 * s/template.h: Remove comments about static.
4285
4286 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4287 Remove if 0-ed code.
4288 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4289 were the same as the default.
4290 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4291 Remove boilerplate comments.
4292 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4293 (HAVE_SYSVIPC): Remove, unused.
4294 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4295
4296 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4297 Remove boilerplate comments.
4298 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4299 Remove boilerplate comments.
4300 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4301 Remove boilerplate comments.
4302 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4303
4304 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4305 USG systems which do not use DATA_SEG_BITS.
4306 Refactor code. Remove boilerplate comments.
4307
4308 * m/ibms390.h:
4309 * m/m68k.h:
4310 * s/bsd-common.h:
4311 * s/cygwin.h:
4312 * s/darwin.h:
4313 * s/freebsd.h:
4314 * s/gnu.h:
4315 * s/msdos.h: Remove boilerplate comments.
4316
4317 * m/iris4d.h: Remove boilerplate comments and code for systems that
4318 do not use this file.
4319 (IRIS_4D): Remove, unused.
4320
4321 * m/mips.h: Remove boilerplate comments and code for systems that
4322 do not use this file.
4323 (SIGN_EXTEND_CHAR):
4324 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4325 * unexmips.c: Remove file, unused.
4326
4327 * editfns.c (Fuser_full_name): Replace the only use of
4328 USER_FULL_NAME with its value.
4329 * config.in: Regenerate.
4330
43312008-07-16 David Reitter <david.reitter@gmail.com>
4332
4333 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4334 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4335
43362008-07-16 Glenn Morris <rgm@gnu.org>
4337
4338 * emacs.c (system-type): Doc fix.
4339
43402008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4341
4342 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4343 If the cache doesn't work, let's fix it, rather than work around it.
4344
43452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4346
4347 * Makefile.in: Correct additions for nsfont.o in last commit.
4348 * nsfont.m: New file (forgot last commit).
4349
43502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4351
4352 * callproc.c (set_initial_environment): Initialize
4353 Vprocess_environment under CANNOT_DUMP (fixes crash when
4354 batch-compiling for bootstrap).
4355
43562008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4357 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4358
4359 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4360 fix crash due to different init order.
4361
43622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4363
4364 Changes and additions for NeXTstep windowing system (Cocoa and
4365 GNUstep) support.
4366
4367 * Makefile.in:
4368 * config.in: Support defines and build commands for NS port.
4369 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4370 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4371 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4372 windowing.
4373 (struct face): Add synth_ital field.
4374 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4375 (init_display): Initialize Vinitial_window_system to "ns" when so
4376 compiled.
4377 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4378 (display_arg): Use under NS.
4379 (main): Under NS, allocate autorelease pool and handle command line
4380 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4381 (standard_args): Add NS-specific args.
4382 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4383 * font.c (DEFAULT_ENCODING): New variable.
4384 (font_find_for_lface): Use it.
4385 (syms_of_font): Load syms_of_nsfont under NS.
4386 * font.h: Declare nsfont_driver when compiled under NS.
4387 * fontset.c: When compiling under NS, include nsterm.h.
4388 (fontset_from_font): Autoconstruct fontset under NS.
4389 * frame.c (various): Under NS, include nsterm.h, add Qns window system
4390 symbol, document and use it.
4391 (do_switch_frame): When for_deletion under Cocoa, add
4392 Fraise_frame(Qnil).
4393 (x_set_frame_parameters): Ensure font attribute changes are picked up.
4394 (x_get_arg): Allow "yes" and "no" as boolean values.
4395 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
4396 Qright under Cocoa.
4397 (focus-follows-mouse): Default to 0 under NS.
4398 * frame.h (enum output_method): Add output_ns.
4399 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
4400 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
4401 (FRAME_WINDOW_P): NS-specific definition.
4402 * fringe.c (max_used_fringe_bitmap): Make public.
4403 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
4404 (getloadavg): Use NeXT code under descendant OS's.
4405 * image.c (includes and header section, x_create_bitmap_from_data)
4406 (x_create_bitmap_from_file, free_bitmap_record, image_background)
4407 (image_background_transparent, x_clear_image_1)
4408 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4409 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
4410 (x_to_xcolors, x_from_xcolors, x_disable_image)
4411 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
4412 other GUIs, including XPM support using code originally written for
4413 Carbon GUI.
4414 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
4415 using NS API.
4416 (image_ascent): Use font metrics macros instead of direct struct field
4417 access.
4418 * keyboard.c (includes): Add nsterm.h when compiling under NS.
4419 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
4420 Also, handle NS as GTK for menu bar purposes.
4421 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
4422 toolkit where they differ.
4423 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
4424 use cachelist, still needed under NS.
4425 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
4426 (struct widget_value): Define it here for menu.c.
4427 * keymap.c (includes): Include modifier internals.
4428 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
4429 NS.
4430 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
4431 support for preferring sequences using certain modifiers, specified by
4432 the FIRSTONLY argument.
4433 * lisp.h (hash_remove): Rename to avoid name clash when compiling
4434 under NS GNUstep implementation.
4435 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
4436 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
4437 * menu.c: Include nsterm.h under NS.
4438 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
4439 (free_menubar_widget_tree_value, update_submenu_strings)
4440 (find_and_call_menu_selection): Treat NS as X and NT.
4441 (find_and_return_menu_selection): New function, used for popup menus.
4442 * nsgui.h:
4443 * nsterm.h:
4444 * nsfns.m:
4445 * nsimage.m:
4446 * nsmenu.m:
4447 * nsselect.m:
4448 * nsterm.m: New files.
4449 * process.c (wait_reading_process_output): Under NS, call ns_select()
4450 instead of plain select().
4451 * syntax.c (char_quoted): Under NS, avoid a crash when called near
4452 beginning of buffer.
4453 * sysselect.h (init_process): Rename when compiling under Cocoa to
4454 avoid name conflict.
4455 * termhooks.h (display_info): Add ns_display_info to union.
4456 * terminal.c (Fterminal_live_p): Add ns to terminal types.
4457 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
4458 COCOA environment.
4459 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
4460 unexec() signature. (Note, this will dump, but the resulting file
4461 crashes; unexosx is used instead; keeping around for reference and
4462 possible aid in getting dump working under GNUstep.)
4463 * w32gui.h (button_type, widget_value): Remove definitions (now in
4464 keyboard.h).
4465 * window.c: Include nsterm.h when compiling under NS.
4466 * xdisp.c (includes): Include nsterm.h when compiling under NS.
4467 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
4468 other GUI windowing systems.
4469 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
4470 GTK.
4471 (x_consider_frame_title): Under NS, set icon type and frame
4472 modified-state indicator; use ns_set_name_as_filename() when using
4473 formatted title.
4474 (update_window_cursor): Make public when compiling under NS.
4475 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
4476 (hourglass_atimer, Vhourglass_delay
4477 * xfaces.c (header section, init_frame_faces, clear_font_table)
4478 (defined_color, unload_color, x_face_list_fonts)
4479 (prepare_face_for_display): Add NS support parallel to other GUIs.
4480 Emulate GCs like other non-X GUIs.
4481 (split_font_name): Don't lowercase font name under NS.
4482 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
4483 under NS.
4484 * s/darwin.h: Add support for compilation under NS.
4485
44862008-07-15 Jason Rumney <jasonr@gnu.org>
4487
4488 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
4489 (w32_show_hourglass): Rename from show_hourglass.
4490 (w32_hide_hourglass): Rename from hide_hourglass.
4491 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
4492 (Vhourglass_delay): Declare extern.
4493 (hourglass_started): Remove.
4494
4495 * xdisp.c (Vhourglass_delay): Remove static.
4496 (hourglass_started, start_hourglass, cancel_hourglass):
4497 Don't include these versions on WINDOWSNT.
4498
44992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4500
4501 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
4502 variables (formerly in xfns.c).
4503 (show_hourglass, hide_hourglass): New prototypes (same).
4504 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
4505 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
4506 in xfns.c).
4507 (syms_of_xdisp): Declare/initialize display-hourglass,
4508 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
4509 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
4510 formerly in xfns.c.
4511 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4512 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4513 (start_hourglass, cancel_hourglass): Remove.
4514 (show_hourglass, hide_hourglass): Remove prototypes and static
4515 modifiers.
4516 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
4517 hourglass_atimer, hourglass_shown_p declaration/initialization.
4518 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4519 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4520 (start_hourglass, cancel_hourglass): Remove.
4521 (show_hourglass, hide_hourglass): Remove prototypes and static
4522 modifiers.
4523 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
4524 hourglass_atimer, hourglass_shown_p declaration/initialization.
4525 * w32fns.c (display_hourglass_p, Vhourglass_delay)
4526 (DEFAULT_HOURGLASS_DELAY): Remove.
4527 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
4528 hourglass_shown_p declaration/initialization.
4529
45302008-07-14 Jason Rumney <jasonr@gnu.org>
4531
4532 * w32fns.c (w32_get_arg): Remove wrapper function.
4533 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
4534 directly.
4535 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
4536
45372008-07-14 Kenichi Handa <handa@m17n.org>
4538
4539 * xfont.c (xfont_open): Add workaround for X's bug.
4540
45412008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4542
4543 * fontset.c: Include <stdio.h> unconditionally.
4544
45452008-07-13 Michael Albinus <michael.albinus@gmx.de>
4546
4547 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
4548 for filtering.
4549
45502008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4551
4552 * s/vms.h: Use __GNUC__ instead of _GNUC_.
4553
4554 * m/macppc.h:
4555 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
4556
4557 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
4558 (SPECIAL_EMACS_INT):
4559 * m/ia64.h (SPECIAL_EMACS_INT):
4560 * m/amdx86-64.h (SPECIAL_EMACS_INT):
4561 * s/gnu.h (NLIST_STRUCT):
4562 * s/aix4-2.h (X11R5_INHIBIT_I18N):
4563 * s/gnu-linux.h (LINUX):
4564 * s/msdos.h (HAVE_FACES):
4565 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
4566
4567 * systty.h:
4568 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
4569 anymore.
4570
45712008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4572
4573 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
4574 always defined as int.
4575
4576 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
4577 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
4578 * s/gnu-linux.h (HAVE_WAIT_HEADER):
4579 * s/freebsd.h (HAVE_WAIT_HEADER):
4580 * s/bsd-common.h (HAVE_UNION_WAIT):
4581 * s/aix4-2.h (HAVE_WAIT_HEADER):
4582 * m/mips.h (HAVE_UNION_WAIT):
4583 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
4584 (COFF, static): Do not define, they are undefined later in the file.
4585
4586 * process.c (update_status): Don't use a union.
4587 (status_convert):
4588 (sigchld_handler): Use int instead of WAITTYPE.
4589
45902008-07-12 Chong Yidong <cyd@stupidchicken.com>
4591
4592 * indent.c (Fvertical_motion): Restore hscroll before moving to
4593 goal column.
4594
45952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4596
4597 * lisp.h: Remove left over code.
4598
45992008-07-11 Andreas Schwab <schwab@suse.de>
4600
4601 * lisp.h: Fix logic in last change.
4602
4603 * menu.h: New file.
4604 * menu.c: Include it.
4605 * xmenu.c: Likewise.
4606 * Makefile.in: Update dependencies.
4607
46082008-07-11 Kenichi Handa <handa@m17n.org>
4609
4610 * fontset.c (fontset_from_font): Cancel the previous change.
4611
46122008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4613
4614 * lisp.h:
4615 * w32heap.c:
4616 * emacs.c:
4617 * alloc.c: Replace all references of NO_UNION_TYPE with
4618 USE_LISP_UNION_TYPE.
4619
4620 * m/xtensa.h (NO_UNION_TYPE):
4621 * m/vax.h (NO_UNION_TYPE):
4622 * m/template.h (NO_UNION_TYPE):
4623 * m/sparc.h (NO_UNION_TYPE):
4624 * m/mips.h (NO_UNION_TYPE):
4625 * m/macppc.h (NO_UNION_TYPE):
4626 * m/m68k.h (NO_UNION_TYPE):
4627 * m/iris4d.h (NO_UNION_TYPE):
4628 * m/intel386.h (NO_UNION_TYPE):
4629 * m/ibms390x.h (NO_UNION_TYPE):
4630 * m/ibms390.h (NO_UNION_TYPE):
4631 * m/ibmrs6000.h (NO_UNION_TYPE):
4632 * m/ia64.h (NO_UNION_TYPE):
4633 * m/hp800.h (NO_UNION_TYPE):
4634 * m/arm.h (NO_UNION_TYPE):
4635 * m/amdx86-64.h (NO_UNION_TYPE):
4636 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
4637 defining it the same.
4638
46392008-07-10 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
4642
46432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4644
4645 * fileio.c:
4646 * sysdep.c
4647 * systty.h:
4648 * m/ibmrs6000.h:
4649 * m/iris4d.h:
4650 * s/aix4-2.h:
4651 * s/freebsd.h:
4652 * s/gnu-linux.h:
4653 * s/hpux10-20.h:
4654 * s/hpux11.h:
4655 * s/netbsd.h:
4656 * s/sol2-3.h:
4657 * s/sol2-4.h:
4658 * s/sol2.h:
4659 * s/usg5-4.h:
4660 * s/vms.h: Remove references to unused variables.
4661
46622008-07-10 Andreas Schwab <schwab@suse.de>
4663
4664 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
4665 pattern before matching the generic family.
4666
46672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4668
4669 * unexec.c:
4670 * s/vms.h:
4671 * s/usg5-4-2.h:
4672 * s/sol2-5.h:
4673 * s/freebsd.h:
4674 * s/darwin.h: Remove dead code.
4675
4676 * m/template.h:
4677 * m/sparc.h:
4678 * m/mips.h:
4679 * m/m68k.h:
4680 * m/iris4d.h:
4681 * m/intel386.h:
4682 * m/ibms390x.h:
4683 * m/ibms390.h:
4684 * m/ia64.h:
4685 * m/hp800.h:
4686 * m/arm.h:
4687 * m/amdx86-64.h: Remove dead code and references to unused
4688 and compiler defined symbols.
4689
4690 * unexmips.c:
4691 * unexelf.c: Remove references to desupported systems.
4692
4693 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
4694
4695 * m/powermac.h: Remove boilerplate comments.
4696 (NO_REMAP): Remove unused definition.
4697
4698 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
4699 define them.
4700
47012008-07-10 Kenichi Handa <handa@m17n.org>
4702
4703 * xfont.c (xfont_open): Log the reason of failure.
4704
47052008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4706
4707 * fontset.c (fontset_get_font_group):
4708 * font.c (font_check_otf): Specify argument types.
4709
47102008-07-09 Kenichi Handa <handa@m17n.org>
4711
4712 * coding.c (detect_coding_utf_8): Set detect_info->found only when
4713 non-ASCII char is found.
4714
4715 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
4716 (reorder_font_vector): Change the arg preferred_family to font.
4717 Prefer the spec matching with font.
4718 (fontset_get_font_group): New function.
4719 (fontset_find_font): Change the format of an element of a realized
4720 fontset. Use fontset_get_font_group.
4721 (fontset_font): Try the current fontset, the default fontset, the
4722 fallbacks of the current fontset, and the fallbacks of the default
4723 fontset in this order.
4724 (face_for_char): Delete the shortcut to use the current font.
4725 (fontset_from_font): Don't set fonts for Latin in the fontset.
4726
4727 * font.h (font_make_object, font_match_p): Adjust prototypes.
4728
4729 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
4730
4731 * font.c (font_make_object): New arg entity and pixelsize.
4732 (font_check_otf_features, font_check_otf): New functions.
4733 (font_match_p): Check :lang, :script, and :otf properties.
4734
4735 * xfont.c (xfont_open): Adjust it for the change of
4736 font_make_object.
4737 (xfont_text_extents): Fix initial setting of metrics.
4738
4739 * ftfont.c (struct ftfont_info): New member index, delete member
4740 fc_charset_idx. Make the member order compatible with struct
4741 xftfont_info.
4742 (fc_charset_table): Change charset names to registry names.
4743 (ftfont_pattern_entity): Delete the args registry and
4744 fc_charset_idx. Change the value of :font-entity property
4745 to (FONTNAME . INDEX). Always set :registry property to
4746 `iso10646-1'.
4747 (struct ftfont_cache_data): New struct.
4748 (ftfont_lookup_cache): New arg for_face.
4749 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
4750 (ftfont_driver): Set the member otf_capability.
4751 (ftfont_get_charset): Adjust it for the change of
4752 fc_charset_table.
4753 (OTF_TAG_SYM): New macro.
4754 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
4755 for the change of fc_charset_table.
4756 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
4757 ftfont_pattern_entity. Add FC_INDEX to objset.
4758 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
4759 and ftfont_pattern_entity.
4760 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
4761 font_make_object, struct ftfont_info.
4762 (ftfont_has_char): Use ftfont_get_fc_charset.
4763 (ftfont_otf_features, ftfont_otf_capability): New functions.
4764 (ftfont_shape): Use ftfont_get_otf.
4765 (ftfont_text_extents): Fix initial setting of metrics.
4766
4767 * xftfont.c (struct xftfont_info): New member ft_size. Make the
4768 member order compatible with struct ftfont_info.
4769 (xftfont_open): Add FC_CHARSET to the pattern. Set
4770 xftfont_info->ft_size. Don't unlock the face. Check BDF
4771 properties if appropriate.
4772 (xftfont_close): Unlock the face.
4773 (xftfont_anchor_point, xftfont_shape): Deleted.
4774 (syms_of_xftfont): Don't set members anchor_point and shape of
4775 xftfont_driver.
4776
4777 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
4778 font_make_object.
4779
4780 * w32font.c (w32font_open): Adjust it for the change of
4781 font_make_object.
4782 (w32font_open_internal): Don't set properties of font_object here.
4783
47842008-07-08 Chong Yidong <cyd@stupidchicken.com>
4785
4786 * macfns.c (x_create_tip_frame):
4787 * w32fns.c (x_create_tip_frame):
4788 * xfns.c (x_create_tip_frame): Pass parameter argument to
4789 face-set-after-frame-default.
4790
4791 * xfaces.c (Finternal_merge_in_global_face): Save merged
4792 attributes for the default face back into the face vector.
4793
47942008-07-08 Andreas Schwab <schwab@suse.de>
4795
4796 * fontset.h: Declare fontset_from_font. Don't declare
4797 new_fontset_from_font and fontset_from_font_name.
4798 * xterm.c: Include "fontset.h".
4799 * Makefile.in (xterm.o): Update dependencies.
4800
48012008-07-08 Glenn Morris <rgm@gnu.org>
4802
4803 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
4804 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
4805
48062008-07-07 Chong Yidong <cyd@stupidchicken.com>
4807
4808 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
4809 (x_set_frame_parameters): Don't bind it.
4810
48112008-07-07 Juanma Barranquero <lekktu@gmail.com>
4812
4813 * w32fns.c (map_w32_filename): Declare extern.
4814
48152008-07-07 Jason Rumney <jasonr@gnu.org>
4816
4817 * w32term.c (WS_EX_LAYERED): Define if not already.
4818
48192008-07-06 Chong Yidong <cyd@stupidchicken.com>
4820
4821 * xfaces.c (set_font_frame_param): Don't try to set the font
4822 parameter if it is still unspecified in the lface.
4823
48242008-07-05 Chong Yidong <cyd@stupidchicken.com>
4825
4826 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
4827 face if it didn't already exist.
4828
4829 * xdisp.c (try_window_id): Give up if word-wrapping is on.
4830
48312008-07-05 Andreas Schwab <schwab@suse.de>
4832
4833 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
4834
48352008-07-05 Chong Yidong <cyd@stupidchicken.com>
4836
4837 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
4838 word-wrapping.
4839 (IT_DISPLAYING_WHITESPACE): New macro.
4840 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
4841 when word-wrapping. Simplify word-wrapping logic. Use correct
4842 pixel positions when saving copies of the iterator.
4843 (display_line): Use proper wrap point if the last character on a
4844 line was preceded by whitespace.
4845
48462008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
4847
4848 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
4849
48502008-07-04 Kenichi Handa <handa@m17n.org>
4851
4852 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
4853
4854 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
4855
48562008-07-02 Jason Rumney <jasonr@gnu.org>
4857
4858 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 4859 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
4860
4861 * xdisp.c (next_element_from_display_vector): Move assignment out
4862 of if statement.
4863
48642008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
4865
4866 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
4867
4868 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
4869 (syms_of_fileio): Initialize and export them.
4870 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
4871
4872 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
4873 (Fsystem_move_file_to_trash): New function.
4874 (syms_of_w32fns): Export it to lisp.
4875
48762008-07-01 Jason Rumney <jasonr@gnu.org>
4877
4878 * w32font.c (w32font_text_extents): Don't count overhang as part
4879 of width.
4880
48812008-06-30 Miles Bader <miles@gnu.org>
4882
4883 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
4884 Add `avoid_cursor_p' field.
4885
4886 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
4887 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
4888 (append_glyph, append_composite_glyph, produce_image_glyph)
4889 (append_stretch_glyph): Initialize avoid_cursor_p.
4890 (get_it_property): Rename from `get_line_height_property'.
4891 (x_produce_glyphs): Use get_it_property.
4892 (handle_line_prefix, push_display_prop): New functions.
4893 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
4894 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
4895 New variables.
4896 (syms_of_xdisp): Initialize them.
4897
48982008-06-30 Kenichi Handa <handa@m17n.org>
4899
4900 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
4901 XftDefaultSubstitute (they are called in XftFontMatch).
4902 (xftfont_open): Fix args to ftfont_font_format.
4903
4904 * ftfont.c (fc_charset_table): New member lang.
4905 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 4906 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
4907 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
4908 (ftfont_open): Fix args to ftfont_font_format.
4909 (ftfont_font_format): New arg filename.
4910
49112008-06-30 Chong Yidong <cyd@stupidchicken.com>
4912
4913 * xfaces.c (Finternal_merge_in_global_face): If default face was
4914 modified, realize it again. Update the font face attribute.
4915
49162008-06-29 Jason Rumney <jasonr@gnu.org>
4917
4918 * w32term.c (x_set_frame_alpha): Fix logic.
4919
49202008-06-29 Kenichi Handa <handa@m17n.org>
4921
4922 * fontset.c (Finternal_char_font): Return font-object instead of
4923 font-name.
4924
4925 * composite.c (get_composition_id): Fix the width calculation for TAB.
4926
49272008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
4928
4929 * indent.c (Fvertical_motion): Properly handle float column arg.
4930
49312008-06-28 Jason Rumney <jasonr@gnu.org>
4932
4933 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
4934 (pfnSetLayeredWindowAttributes): New function pointer.
4935 (w32_initialize): Initialize it when supported.
4936 (x_set_frame_alpha): New function.
4937
4938 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
4939 (w32_frame_parm_handlers): Set alpha handler.
4940
4941 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
4942
49432008-06-27 Jason Rumney <jasonr@gnu.org>
4944
4945 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
4946 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
4947 (w32_to_x_charset, x_to_w32_charset)
4948 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4949 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4950 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4951 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4952 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4953 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4954 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
4955 (Qw32_charset_unicode): Remove.
4956 (syms_of_w32fns): Update for above changes.
4957
4958 * w32font.c (w32_to_x_charset, x_to_w32_charset)
4959 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4960 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4961 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4962 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4963 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4964 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4965 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
4966 (syms_of_w32font): Update for above changes.
4967
49682008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4969
4970 * s/usg5-4.h: Fix previous change: keep the correct branch of a
4971 removed #if.
4972 (USG_SHARED_LIBRARIES): Remove duplicate definition.
4973
49742008-06-26 Juanma Barranquero <lekktu@gmail.com>
4975 Eli Zaretskii <eliz@gnu.org>
4976
4977 * makefile.w32-in (LOCAL_FLAGS):
4978 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
4979
4980 * sysdep.c (_spawnlp, _getpid):
4981 Declare with explicit _cdecl instead of _CRTAPI1.
4982
4983 * editfns.c (Fget_internal_run_time):
4984 Check for WINDOWSNT with #ifdef, not #if.
4985
49862008-06-26 Jason Rumney <jasonr@gnu.org>
4987
4988 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
4989
4990 * w32term.c (x_draw_glyph_string_foreground)
4991 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
4992 Use FONT_HANDLE macro.
4993 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
4994
4995 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4996 (uniscribe_encode_char): Use FONT_HANDLE macro.
4997
4998 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
4999 (w32font_text_extents): Use precast w32_font.
5000 (w32font_close): Free cached metrics.
5001 (w32font_open_internal): Allocate space for name on stack.
5002
50032008-06-26 Chong Yidong <cyd@stupidchicken.com>
5004
5005 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5006
50072008-06-26 Jason Rumney <jasonr@gnu.org>
5008
5009 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5010 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5011
50122008-06-26 Juanma Barranquero <lekktu@gmail.com>
5013
5014 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5015
50162008-06-26 Jason Rumney <jasonr@gnu.org>
5017
5018 * w32bdf.c, w32bdf.h: Remove obsolete files.
5019
5020 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5021
5022 * w32gui.h: Don't include w32bdf.h.
5023 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5024 Remove obsolete font support.
5025
5026 * w32font.h (struct w32font_info): Remove compat_w32_font.
5027 Add hfont member.
5028 (FONT_COMPAT): Remove obsolete macro.
5029
5030 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5031 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5032 (w32font_open_internal): Remove compat code. Set new hfont member.
5033 (Fx_select_font): Use new hfont member.
5034
5035 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5036 (uniscribe_encode_char): Use new hfont member.
5037
5038 * w32term.c (x_draw_glyph_string_foreground)
5039 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5040 (x_draw_glyph_string): Use metrics in w32font_info.
5041
50422008-06-26 Kenichi Handa <handa@m17n.org>
5043
5044 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5045
50462008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5047
5048 * unexnext.c:
5049 * m/ews4800.h:
5050 * m/hp9000s300.h:
5051 * m/ibm370aix.h:
5052 * m/mips-siemens.h:
5053 * m/ncr386.h:
5054 * m/next.h:
5055 * m/pmax.h:
5056 * m/powerpcle.h:
5057 * m/tandem-s2.h:
5058 * s/386bsd.h:
5059 * s/bsd386.h:
5060 * s/bsd4-1.h:
5061 * s/bsd4-2.h:
5062 * s/bsdos2-1.h:
5063 * s/bsdos2.h:
5064 * s/bsdos3.h:
5065 * s/bsdos4.h:
5066 * s/nextstep.h:
5067 * s/ultrix4-3.h:
5068 * s/usg5-0.h:
5069 * s/usg5-2-2.h:
5070 * s/usg5-2.h:
5071 * s/usg5-4-3.h:
5072 * s/ux4800.h:
5073 * s/uxpds.h:
5074 * s/uxpv.h: Remove support for obsolete systems.
5075 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5076 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5077 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5078 Remove, insert contents in s/aix4-2.h.
5079 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5080 * s/bsd4-3.h: Rename to ...
5081 * s/bsd-common.h: ... this.
5082 * data.c:
5083 * doc.c:
5084 * ecrt0.c:
5085 * emacs.c:
5086 * fileio.c:
5087 * floatfns.c:
5088 * keyboard.c:
5089 * mem-limits.h:
5090 * print.c:
5091 * process.c:
5092 * sysdep.c:
5093 * syssignal.h:
5094 * systty.h:
5095 * syswait.h:
5096 * term.c:
5097 * unexec.c:
5098 * unexelf.c:
5099 * unexhp9k800.c:
5100 * m/hp800.h:
5101 * m/ibmrs6000.h:
5102 * m/mips.h:
5103 * m/vax.h:
5104 * s/darwin.h:
5105 * s/freebsd.h:
5106 * s/gnu.h:
5107 * s/ms-w32.h:
5108 * s/msdos.h:
5109 * s/netbsd.h:
5110 * s/template.h: Remove references to obsolete variables.
5111
5112 * Makefile.in: Add dependencies for all unexec files.
5113 (admindir): Remove unused variable.
5114 (UNEXEC_SRC): Remove references.
5115
51162008-06-25 Chong Yidong <cyd@stupidchicken.com>
5117
5118 * xfns.c (x_default_font_parameter): If Xft is available, first
5119 try Monospace-12 for the default font.
5120
51212008-06-25 Jason Rumney <jasonr@gnu.org>
5122
5123 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5124
51252008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5126
5127 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5128
5129 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5130
51312008-06-25 Juanma Barranquero <lekktu@gmail.com>
5132
5133 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5134 <scroll-conservatively>: Fix typo in docstring.
5135
5136 * xselect.c (Fx_send_client_event): Doc fix.
5137
51382008-06-25 Kenichi Handa <handa@m17n.org>
5139
5140 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5141
5142 * font.c (font_parse_fcname): Remove unused variables.
5143 (font_sort_entites): Delete the arg SPEC. Caller changed.
5144 Fix for the case of ! best_only.
5145 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5146
5147 * lisp.h (Fstring_to_unibyte): EXFUN it.
5148
5149 * character.h (str_to_unibyte): Extern it.
5150
5151 * character.c (str_to_unibyte): New function.
5152
5153 * fns.c (Fstring_to_unibyte): New function.
5154 (syms_of_fns): Defsubr it.
5155
51562008-06-24 Kenichi Handa <handa@m17n.org>
5157
5158 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5159 DPI too.
5160 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5161
51622008-06-24 Andreas Schwab <schwab@suse.de>
5163
5164 * Makefile.in (${lispsource}loaddefs.el): Rename from
5165 ../lisp/loaddefs.el.
5166 (bootstrap-clean): Do what distclean does but don't remove
5167 Makefile.
5168 (distclean): Depend on bootstrap-clean and remove Makefile.
5169
51702008-06-24 Chong Yidong <cyd@stupidchicken.com>
5171
5172 * buffer.h (struct buffer): New member word_wrap.
5173
5174 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5175 word-wrap.
5176 (init_buffer_once): Initialize them.
5177
5178 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5179 line_wrap enum possessing three possible values.
5180
5181 * termopts.h: Replace truncate_partial_width_windows with
5182 Vtruncate_partial_width_windows.
5183
5184 * dispnew.c (direct_output_for_insert): Avoid direct output when
5185 inserting a space with word wrap on.
5186
5187 * indent.c (compute_motion): Obey integer values of
5188 truncate-partial-width-windows.
5189
5190 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5191 replacing truncate_partial_width_windows.
5192 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5193 truncate only if the window width is below that integer.
5194 (start_display, resize_mini_window, produce_stretch_glyph)
5195 (display_string, move_it_in_display_line_to): Use line_wrap.
5196 (back_to_previous_visible_line_start, reseat_1): Reset
5197 string_from_display_prop_p.
5198 (display_line): Extend default face to end of line when wrapping.
5199
52002008-06-24 Kim F. Storm <storm@cua.dk>
5201
5202 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5203 to wrap continued lines at word boundaries.
5204
52052008-06-24 Jason Rumney <jasonr@gnu.org>
5206
5207 * font.c (Ffont_face_attributes): Multiply pixel size before point
5208 conversion to avoid multiplying rounding error.
5209
52102008-06-23 Jason Rumney <jasonr@gnu.org>
5211
5212 * w32term.c (x_draw_glyph_string_background)
5213 (x_draw_glyph_string): Remove old bdf font code.
5214
5215 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5216
52172008-06-22 Kenichi Handa <handa@m17n.org>
5218
5219 * font.c (font_find_for_lface): Try the adstyle specified in
5220 the property of LFACE_FONT of LFACE (if any).
5221
52222008-06-21 Seiji Zenitani <zenitani@mac.com>
5223 Ryo Yoshitake <ryo@shiftmode.net>
5224
5225 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5226
52272008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5228
5229 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5230 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5231 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5232 (witness-emacs): Remove.
5233 (lisp, shortlisp): Move loaddefs.el earlier.
5234 (mostlyclean): Forget about witness-emacs.
5235
52362008-06-22 Glenn Morris <rgm@gnu.org>
5237
5238 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5239 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5240
52412008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5242
5243 * Makefile.in (PRECOMP): Remove.
5244 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5245 (witness-emacs): Run `compile-first'.
5246 (.el.elc): Use the new compile-onefile target.
5247
52482008-06-21 Kenichi Handa <handa@m17n.org>
5249
5250 * xftfont.c (xftfont_open): Handle QCembolden only when
5251 FC_EMBOLDEN is defined.
5252
52532008-06-21 Andreas Schwab <schwab@suse.de>
5254
5255 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5256 (.el.elc): Likewise.
5257
52582008-06-21 Miles Bader <miles@gnu.org>
5259
5260 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5261 build dir, not the lisp source dir.
5262
52632008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5264
5265 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5266 (bootstrapclean): Remove.
5267 (.el.elc): New rule.
5268 (PRECOMP): New var.
5269 (../lisp/subdirs.el): Remove.
5270 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5271 (witness-emacs): New target.
5272 (mostlyclean): Remove witness-emacs as well.
5273 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5274 Add witness-emacs dependency.
5275
52762008-06-20 Chong Yidong <cyd@stupidchicken.com>
5277
5278 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5279 defined by the font.
5280
52812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5282
5283 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5284 (bootstrap-clean): New target that keeps TAGS around.
5285 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5286 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5287
52882008-06-20 Jason Rumney <jasonr@gnu.org>
5289
5290 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5291 Remove obsolete font code.
5292
5293 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5294 to determine language support.
5295
52962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5297
5298 * sysdep.c (cfsetspeed): New fun extracted from the code.
5299 (cfmakeraw): Move before first use.
5300
53012008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5302
5303 * sysdep.c (cfmakeraw): Provide fallback implementation.
5304 (serial_configure): Provide fallback implementation of cfsetspeed.
5305
53062008-06-20 Kenichi Handa <handa@m17n.org>
5307
5308 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5309 the pattern.
5310
5311 * fontset.c (fontset_from_font): Copy font_spec before changing
5312 the elements.
5313
5314 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5315
53162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5317
5318 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5319 for explicit `font' parameters.
5320
5321 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5322
53232008-06-19 Kenichi Handa <handa@m17n.org>
5324
5325 * frame.c: Include <ctype.h>.
5326 (x_set_font_backend): Allow spacing characters in the X resource
5327 for FontBackend.
5328
53292008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5330
5331 * w32fns.c, xfns.c (Qfont_param): New var.
5332 (syms_of_w32fns): Initialize it.
5333 (x_default_font_parameter): Record explicit `font' into
5334 `font-parameter'.
5335
53362008-06-18 Kenichi Handa <handa@m17n.org>
5337
5338 * font.c (font_parse_xlfd): Fix previous change.
5339 (font_parse_fcname): Don't use :fc-unknown-spec.
5340 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5341 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5342 (font_add_log): Prepend the driver name to the resulting fonts.
5343
5344 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5345 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5346 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5347
5348 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5349 (QCembolden): New variables.
5350 (syms_of_xftfont): DEFSYM them.
5351 (xftfont_open): Call XftFontMatch. Don't trust the result of
5352 XftTextExtents8 if the pixel_size is less than 5.
5353
53542008-06-18 Andreas Schwab <schwab@suse.de>
5355
5356 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5357 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5358
53592008-06-18 Jason Rumney <jasonr@gnu.org>
5360
5361 * w32font.c (w32font_list, w32font_match): Add logging.
5362
5363 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5364
53652008-06-17 Chong Yidong <cyd@stupidchicken.com>
5366
5367 * font.c (font_parse_fcname): Store divider characters for
5368 unknown-spec list. For known key symbols, intern using correct
5369 symbol name.
5370
53712008-06-17 Kenichi Handa <handa@m17n.org>
5372
5373 * xfaces.c (realize_default_face): If the frame is not on window
5374 system, set the fontset of face to nil.
5375
53762008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5377
5378 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5379
53802008-06-16 Juanma Barranquero <lekktu@gmail.com>
5381
5382 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5383 (build_font_name_from_vector): Delete externs.
5384
5385 * xfaces.c (struct font_name): Don't declare.
5386
53872008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5388
5389 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
5390
53912008-06-16 Chong Yidong <cyd@stupidchicken.com>
5392
5393 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
5394
53952008-06-16 Juanma Barranquero <lekktu@gmail.com>
5396
5397 * font.c (Ffont_spec): Fix usage in docstring.
5398 (Ffont_face_attributes): Doc fix.
5399
54002008-06-16 Andreas Schwab <schwab@suse.de>
5401
5402 * font.c (Ffont_face_attributes): Fix definition.
5403
54042008-06-16 Jason Rumney <jasonr@gnu.org>
5405
5406 * font.h (font_style_symbolic_from_value): Remove.
5407
5408 * font.c (font_style_symbolic_from_value): Remove.
5409 (font_style_symbolic): Revert to pre 2008-06-13 version.
5410
5411 * w32font.c (w32_to_fc_weight): New function.
5412 (w32font_full_name, logfont_to_fcname): Use it.
5413
54142008-06-16 Kenichi Handa <handa@m17n.org>
5415
5416 * font.c (font_check_object): Delete it.
5417 (font_clear_cache): Check if a font-object is alive.
5418 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
5419 font-object to nil.
5420 (font_close_object): Don't check FONT_CLOSE_OBJECT.
5421 (font_at): Don't call font_check_object.
5422 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5423
54242008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
5425
5426 * puresize.h (BASE_PURESIZE): Increase to 1230000.
5427
54282008-06-16 Chong Yidong <cyd@stupidchicken.com>
5429
5430 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
5431
54322008-06-15 Chong Yidong <cyd@stupidchicken.com>
5433
5434 * font.c (font_parse_fcname): Only one decimal point.
5435 (font_unparse_fcname): Handle data in family and foundry indices
5436 as symbols, not strings.
5437 (font_unparse_gtkname, Ffont_face_attributes): New functions.
5438
5439 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
5440
5441 * font.h (font_unparse_gtkname): Add prototype.
5442
54432008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5444
5445 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
5446
54472008-06-15 Andreas Schwab <schwab@suse.de>
5448
5449 * font.c (font_update_drivers): Fix crash when no drivers match.
5450
54512008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
5452
5453 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
5454 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
5455
54562008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
5457
5458 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
5459
54602008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5461
5462 * process.c (Fserial_process_configure, Fprocess_send_eof):
5463 Use EQ to compare Lisp_Objects.
5464
54652008-06-13 Jason Rumney <jasonr@gnu.org>
5466
5467 * w32fns.c (Fw32_select_font): Remove old font API function.
5468
5469 * w32font.c (logfont_to_fcname): New function.
5470 (Fx_select_font): New font dialog function compatible with
5471 GTK/fontconfig version.
5472
5473 * font.c (font_style_symbolic_from_value): New function.
5474 (font_style_symbolic): Use it.
5475
5476 * font.h (font_style_symbolic_from_value): Declare new function.
5477
54782008-06-13 Juanma Barranquero <lekktu@gmail.com>
5479
5480 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
5481 <font-width-table>: Fix typos in docstrings.
5482
54832008-06-13 Daniel Engeler <engeler@gmail.com>
5484
5485 These changes add serial port access.
5486 * process.c: Add HAVE_SERIAL.
5487 (Fdelete_process, Fprocess_status, Fset_process_buffer)
5488 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
5489 (list_processes_1, select_wrapper, Fstop_process)
5490 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
5491 (status_notify): Modify to handle serial processes.
5492 [HAVE_SERIAL] (Fserial_process_configure)
5493 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
5494 New functions.
5495 * process.h (struct Lisp_Process): Add `type'.
5496 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
5497 New functions.
5498 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
5499 serial ports.
5500 (serial_open, serial_configure) New functions.
5501 * w32.h: Add FILE_SERIAL.
5502 (struct _child_process): Add ovl_read, ovl_write.
5503
55042008-06-13 Kenichi Handa <handa@m17n.org>
5505
5506 * dispextern.h (enum lface_attribute_index): New member
5507 LFACE_FOUNDRY_INDEX.
5508
5509 * font.c (font_score): Delete arg alternate_families. Check only
5510 weight, slant, width, and size. Ignore the difference of alias
5511 style symbols.
5512 (font_sort_entites): Adjust for the above change. Reflect the
5513 order of font-driver to scores.
5514 (font_list_entities): Don't check alternate_familes here.
5515 (font_clear_prop): Handle foundry.
5516 (font_update_lface): Don't parse "foundry-family" form here.
5517 Handle FONT_FOUNDRY_INDEX.
5518 (font_find_for_lface): Likewise. Handle alternate families here.
5519 If registry is nil, try iso8859-1 and ascii-0.
5520 (font_open_for_lface): Pay attention to size in ENTITY.
5521 (font_open_by_name): Simplify by calling font_load_for_lface.
5522 (free_font_driver_list): Delete it.
5523 (font_update_drivers): Preserve the order of backends.
5524 (syms_of_font): Setting of sort_shift_bits adjusted for the change
5525 of font_score and font_sort_entites.
5526 (font_update_sort_order): Likewise.
5527
5528 * xfaces.c (LFACE_FOUNDRY): New macro.
5529 (check_lface_attrs): Check foundry.
5530 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
5531 (merge_face_vectors): Check foundry.
5532 (merge_face_ref): Likewise.
5533 (Finternal_set_lisp_face_attribute): Likewise.
5534 (x_update_menu_appearance): Likewise.
5535 (Finternal_get_lisp_face_attribute): Likewise.
5536 (lface_hash): Likewise.
5537 (lface_same_font_attributes_p): Likewise.
5538 (x_supports_face_attributes_p): Likewise.
5539 (tty_supports_face_attributes_p): Likewise.
5540 (Finternal_set_alternative_font_family_alist): Intern strings.
5541 (Finternal_set_alternative_font_registry_alist): Downcase strings.
5542 (realize_default_face): Set LFACE_FOUNDRY (lface).
5543
5544 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
5545 font-driver at first.
5546
5547 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
5548
55492008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5550
5551 * lread.c (Fload): Use xfree, not free on saved_doc_string.
5552
55532008-06-12 Jim Meyering <meyering@redhat.com>
5554
5555 Make unexec_free handle NULL the same way free does.
5556 * unexmacosx.c (unexec_free): Ignore a NULL argument.
5557
55582008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
5559
5560 * character.h (CHAR_TO_BYTE_SAFE): New macro.
5561 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
5562 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
5563 (WEAK_ALIAS): Simplify.
5564 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
5565 when searching a unibyte buffer.
5566
55672008-06-12 Chong Yidong <cyd@stupidchicken.com>
5568
5569 * xfns.c (Fx_select_font): Rename from x-font-dialog.
5570
55712008-06-12 Juanma Barranquero <lekktu@gmail.com>
5572
5573 * w32font.c: Include ctype.h.
5574
55752008-06-11 Jason Rumney <jasonr@gnu.org>
5576
5577 * w32font.c (w32font_encode_char): Detect missing glyphs that are
5578 misreported as space.
5579 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
5580 as aliases for registry iso10646-1.
5581
55822008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
5583
5584 * buffer.c (clone_per_buffer_values): Skip `name'.
5585
55862008-06-11 Chong Yidong <cyd@stupidchicken.com>
5587
5588 * font.c (font_parse_fcname): Fix last change; accept decimal
5589 points in font size.
5590
55912008-06-10 Jason Rumney <jasonr@gnu.org>
5592
5593 * w32uniscribe.c (add_opentype_font_name_to_list):
5594 Skip non unicode fonts.
5595
55962008-06-10 Chong Yidong <cyd@stupidchicken.com>
5597
5598 * xfns.c (Fx_font_dialog): New function.
5599
5600 * gtkutil.c (xg_dialog_response_cb): Rename from
5601 xg_file_response_callback.
5602 (pop_down_dialog): Rename from pop_down_file_dialog.
5603 (xg_get_file_name): Callers changed.
5604 (xg_get_font_name): New function.
5605
5606 * gtkutil.h (xg_get_font_name): Insert prototype.
5607
56082008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5609
5610 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
5611 x_underline_minimum_display_offset.
5612 (syms_of_xdisp): Declare it here rather than in xterm.c.
5613 * dispextern.h (underline_minimum_offset): Declare it.
5614 * w32term.c (x_draw_glyph_string): Use it.
5615 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
5616 (syms_of_xterm): Don't declare it any more.
5617 (x_draw_glyph_string): Adjust to the new name.
5618
56192008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
5620
5621 * xterm.c (x_underline_minimum_display_offset): New var.
5622 (x_draw_glyph_string): Use it.
5623 (syms_of_xterm): Declare it.
5624
56252008-06-10 Chong Yidong <cyd@stupidchicken.com>
5626
5627 * font.c (font_parse_fcname): Accept GTK-style font names too.
5628
56292008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5630
5631 * dired.c (file_name_completion): Don't return t if the match is exact
5632 but with different capitalization.
5633 * minibuf.c (Ftry_completion): Simplify.
5634
5635 * window.c (Vwindow_point_insertion_type): New var.
5636 (set_window_buffer): Use it.
5637 (syms_of_window): Init and export it to Lisp.
5638
56392008-06-10 Kenichi Handa <handa@m17n.org>
5640
5641 * font.h (font_intern_prop): Prototype adjusted.
5642
5643 * font.c (font_intern_prop): New arg force_symbol.
5644 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
5645 Adjust for the change of font_intern_prop.
5646
5647 * ftfont.c (ftfont_pattern_entity):
5648 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
5649 (w32_registry):
5650 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
5651 the change of font_intern_prop.
5652
56532008-06-09 Juanma Barranquero <lekktu@gmail.com>
5654
5655 * w32menu.c (digest_single_submenu): Declare extern.
5656
56572008-06-09 Jason Rumney <jasonr@gnu.org>
5658
5659 * w32term.c (x_make_frame_visible): Use alternate restore flags.
5660
5661 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
5662 (parse_single_submenu): Remove.
5663 (digest_single_submenu): Remove.
5664 (syms_of_w32menu): Don't initialise variables that have moved
5665 to menu.c.
5666 (set_frame_menubar): Sync with version in xmenu.c.
5667 (w32_menu_show): Sync with xmenu_show in xmenu.c.
5668
5669 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
5670 Make static again.
5671
56722008-06-09 Jason Rumney <jasonr@gnu.org>
5673
5674 Changes to w32 files related to the move of common menu code
5675 to menu.c on 2008-06-08 by Chong Yidong.
5676
5677 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
5678 defs to w32gui.h.
5679 (single_keymap_panes, push_menu_item, push_menu_pane):
5680 Make globally visible.
5681
5682 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
5683 (local_free, malloc_widget_value, free_widget_value)
5684 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
5685 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
5686 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
5687 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
5688 (menu_items, menu_items_allocated, menu_items_used)
5689 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
5690 (init_menu_items, finish_menu_items, discard_menu_items)
5691 (grow_menu_items, push_submenu_start, push_submenu_end)
5692 (push_left_right_boundary, push_menu_pane, push_menu_item)
5693 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
5694 (free_menubar_widget_tree_value, parse_single_submenu)
5695 (update_submenu_strings): Remove functions.
5696 (xmalloc_widget_value): Remove and declare extern.
5697
5698 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
5699 (OBJ1): Build it.
5700
5701 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
5702 (local_heap, local_alloc, local_free, malloc_widget_value)
5703 (free_widget_value): Define here.
5704
57052008-06-09 Kenichi Handa <handa@m17n.org>
5706
5707 * font.h (Qascii_0): Extern it.
5708
5709 * font.c (Qascii_0): New variable.
5710 (syms_of_font): DEFSYM it.
5711 (font_open_by_name): If the registry "iso8859-1" fails, try also
5712 "ascii-0".
5713
5714 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
5715
57162008-06-08 Kenichi Handa <handa@m17n.org>
5717
5718 * .gdbinit (xfont): New command.
5719
57202008-06-08 Andreas Schwab <schwab@suse.de>
5721
5722 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
5723 * Makefile.in (menu.o): Update dependencies.
5724
5725 * Makefile.in (obj): Always add menu.o.
5726 * emacs.c (main): Always call syms_of_menu.
5727 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
5728
57292008-06-08 Chong Yidong <cyd@stupidchicken.com>
5730
5731 * Makefile.in: Compile menu.c.
5732
5733 * lisp.h: Declare syms_of_menu.
5734
5735 * emacs.c (main): Call syms_of_menu.
5736
5737 * keyboard.h: Relocate platform-independent menu definitions from
5738 xmenu.c.
5739
5740 * menu.c: New file. Relocate platform-independent menu
5741 definitions from xmenu.c. Suggested by Adrian Robert.
5742
5743 * xmenu.c: Remove platform-independent menu definitions.
5744 (menu_items menu_items_inuse, menu_items_allocated)
5745 (menu_items_used, menu_items_n_panes)
5746 (menu_items_submenu_depth): Move to keyboard.h.
5747 (init_menu_items, finish_menu_items, unuse_menu_items)
5748 (discard_menu_items, restore_menu_items, save_menu_items)
5749 (grow_menu_items, push_submenu_start, push_submenu_end)
5750 (push_left_right_boundary, push_menu_pane, push_menu_item)
5751 (keymap_panes, single_keymap_panes, single_menu_item)
5752 (list_of_panes, list_of_items, find_and_call_menu_selection)
5753 (xmalloc_widget_value, free_menubar_widget_value_tree)
5754 (parse_single_submenu, digest_single_submenu)
5755 (update_submenu_strings): Move to menu.c.
5756
57572008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
5758
5759 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
5760
57612008-06-06 Miles Bader <miles@gnu.org>
5762
5763 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
5764 face, not frame default.
5765
57662008-06-05 Martin Rudalics <rudalics@gmx.at>
5767
5768 * window.c (pop_up_windows, pop_up_frames)
5769 (display_buffer_reuse_frames, Vpop_up_frame_function)
5770 (Vdisplay_buffer_function, Veven_window_heights)
5771 (Vspecial_display_buffer_names, Vspecial_display_regexps)
5772 (Vspecial_display_function, Vsame_window_buffer_names)
5773 (Vsame_window_regexps, split_height_threshold)
5774 (Vsplit_window_preferred_function): Move those vars to window.el.
5775 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
5776 (Fdisplay_buffer): Move those functions to window.el.
5777 (syms_of_window): Remove corresponding declarations.
5778 (display_buffer): New function.
5779 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
5780 * dispnew.c (Flast_nonminibuf_frame): New function.
5781 * buffer.c (Fpop_to_buffer): Move to window.el.
5782
57832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5784
5785 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
5786
57872008-06-05 Kenichi Handa <handa@m17n.org>
5788
5789 * coding.c (detect_coding): Fix previous change.
5790 (detect_coding_system): Likewise.
5791
57922008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5793
5794 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
5795
5796 * keymap.c (Vminibuffer_local_filename_must_match_map):
5797 Rename from Vminibuffer_local_must_match_filename_map.
5798 (syms_of_keymap):
5799 * minibuf.c (Fcompleting_read): Adjust accordingly.
5800 * commands.h: Rename declaration as well.
5801
58022008-06-05 Kenichi Handa <handa@m17n.org>
5803
5804 * font.c (Ffont_spec): Don't use font_parse_family_registry for
5805 family name.
5806 (Ffont_put): Likewise.
5807
5808 * fontset.c (fontset_find_font): Call font_open_for_lface with the
5809 current font-spec.
5810
5811 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
5812 is unspecified.
5813
5814 * xfaces.c (realize_x_face): If the font-related face attributes
5815 are the same as those of default face, realize a new fontset from
5816 default->fontset.
5817 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
5818
58192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5820
5821 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
5822 (move_it_in_display_line): New wrapper.
5823
5824 * window.c (window_scroll_pixel_based_preserve_x)
5825 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
5826 (window_scroll_pixel_based, window_scroll_line_based):
5827 Use them to preserve column positions.
5828 (syms_of_window): Initialize them.
5829
5830 * indent.c (Fvertical_motion): Extend first arg to allow passing an
5831 (HPOS . VPOS) pair.
5832
5833 * dispextern.h (move_it_in_display_line): Declare.
5834
58352008-06-05 Juanma Barranquero <lekktu@gmail.com>
5836
5837 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
5838 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
5839 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
5840
58412008-06-04 Juanma Barranquero <lekktu@gmail.com>
5842
5843 * window.c (Fset_window_parameter): Doc fix.
5844 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
5845
58462008-06-04 Joakim Verona <joakim@verona.se>
5847
5848 * window.h (struct window): Add new member window_parameters.
5849
5850 * window.c (Fwindow_parameters, Fwindow_parameter)
5851 (Fset_window_parameter): New defuns.
5852 (syms_of_window): Defsubr the new defuns.
5853 (make_window): Initialize window_parameters to nil.
5854
58552008-06-04 John Paul Wallington <jpw@pobox.com>
5856
5857 * eval.c (Fdefmacro): Doc fix.
5858
58592008-06-04 Kenichi Handa <handa@m17n.org>
5860
5861 * coding.c (detect_coding): Fix handling of coding->head_ascii.
5862 Be sure to call setup_coding_system when we find a proper coding system.
5863 (detect_coding_system): Fix handling of coding->head_ascii.
5864
58652008-06-03 Andreas Schwab <schwab@suse.de>
5866
5867 * font.c (font_prop_validate_spacing): Fix last change.
5868
58692008-06-03 Kenichi Handa <handa@m17n.org>
5870
5871 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
5872 (font_parse_fcname): Fix handling of unknown key.
5873
5874 * xfont.c (xfont_list): Try an alias.
5875
5876 * charset.c (char_charset): Return NULL if the arg charset_list is
5877 specified and C doesn't belong to any of them.
5878
58792008-06-02 Chip Coldwell <coldwell@redhat.com>
5880
5881 * font.c (font_pixel_size): Don't take cdr of an integer.
5882
58832008-06-02 Jim Meyering <meyering@redhat.com>
5884
5885 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
5886 * alloc.c (xfree): Return right away for a NULL arg.
5887 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
5888 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
5889 * mac.c (create_apple_event_from_event_ref): Likewise.
5890 (create_apple_event_from_drag_ref, cfstring_create_normalized):
5891 Likewise.
5892 * doprnt.c (doprnt1): Likewise.
5893 * frame.c (frame): Likewise.
5894 * keyboard.c (wipe_kboard): Likewise.
5895 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
5896 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
5897 * term.c (tty_default_color_capabilities, maybe_fatal)
5898 (delete_tty): Likewise.
5899 * w16select.c (string): Likewise.
5900 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
5901 * w32bdf.c (w32_free_bdf_font): Likewise.
5902 * w32fns.c (w32_unload_font): Likewise.
5903 * w32font.c (w32font_close): Likewise.
5904 * window.c (size_window): Likewise.
5905 * xselect.c (receive_incremental_selection): Likewise.
5906 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
5907 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
5908 * w32.c (stat): Likewise.
5909
5910 Remove useless if-before-free tests.
5911 * editfns.c (Fset_time_zone_rule): Likewise.
5912 * lread.c (nosuffix): Likewise.
5913 * ralloc.c (get_bloc): Likewise.
5914 * regex.c (reg_free): Likewise.
5915 * xftfont.c (xftfont_open, xftfont_close): Likewise.
5916 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
5917 * xsmfns.c (smc_save_yourself_CB): Likewise.
5918
59192008-06-02 Kenichi Handa <handa@m17n.org>
5920
5921 * font.c (font_find_for_lface): Handle float font size.
5922 (font_open_for_lface): Likewise.
5923
5924 * xfaces.c (x_supports_face_attributes_p): Check face->font before
5925 comparing the properties.
5926
59272008-06-01 Jason Rumney <jasonr@gnu.org>
5928
5929 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
5930 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
5931 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
5932 Don't add empty script list.
5933 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
5934
59352008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
5936
5937 * Makefile.in (dot, dotdot): Remove, update users.
5938 ".." has been used elsewhere in the file for a long time.
5939 (LIBXT_STATIC): Remove conditional based on unused variable.
5940
59412008-06-01 Miles Bader <miles@gnu.org>
5942
5943 * xfaces.c (Vface_remapping_alist): New variable.
5944 (syms_of_xfaces): Initialize it.
5945 (enum named_merge_point_kind): New type.
5946 (struct named_merge_point): Add `named_merge_point_kind' field.
5947 (push_named_merge_point): Make cycle detection respect different
5948 named-merge-point kinds.
5949 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
5950 Remove face-name alias resolution.
5951 (lface_from_face_name): New definition using
5952 `lface_from_face_name_no_resolve'.
5953 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
5954 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
5955 (get_lface_attributes): New definition that layers face-remapping on
5956 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
5957 (lookup_basic_face): New function.
5958 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
5959 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
5960 `get_lface_attributes'.
5961 (face_at_buffer_position): Use `lookup_basic_face' to lookup
5962 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
5963 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
5964
5965 * xdisp.c (init_iterator): Pass base_face_id through
5966 `lookup_basic_face' when we actually use it as a face-id.
5967 (handle_single_display_prop): Use `lookup_basic_face' to lookup
5968 DEFAULT_FACE_ID.
5969
5970 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
5971 lookup the initial face-id.
5972
5973 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
5974
59752008-06-01 Juanma Barranquero <lekktu@gmail.com>
5976
5977 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
5978 (Fremove_text_properties): Fix typos in docstrings.
5979
59802008-05-31 Kenichi Handa <handa@m17n.org>
5981
5982 * font.c (font_list_entities): Fix the car part of data to be
5983 stored in the cache.
5984
5985 * ftfont.c (ftfont_font_format): Don't use strcasestr.
5986
59872008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5988
5989 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
5990 Add a `test' argument so another predicate than `equal' can be used.
5991 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
5992 (map_char_table): Remove unused vars `c' and `i'.
5993 * lisp.h (Foptimize_char_table): Adjust declaration.
5994 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
5995
59962008-05-30 Kenichi Handa <handa@m17n.org>
5997
5998 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
5999 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6000 defined.
6001
60022008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6003
6004 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6005 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6006 frame-local settings for the same variable.
6007
60082008-05-30 Kenichi Handa <handa@m17n.org>
6009
6010 * fontset.c (Ffont_info): Move to font.c.
6011 (syms_of_fontset): Delete defsubr of Sfont_info.
6012
6013 * font.c (font_style_to_value, font_score): Delete casting of the
6014 args to xstcasecmp.
6015 (register_font_driver): Increment num_font_drivers only when
6016 registering the driver globally.
6017 (Ffont_info): Move from fontset.c. Handle a font object too.
6018 (syms_of_font): Defsubr Sfont_info.
6019
60202008-05-29 Kenichi Handa <handa@m17n.org>
6021
6022 * coding.h (enum define_coding_utf8_arg_index): New enum.
6023 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6024 coding_attr_utf_bom.
6025 (enum utf_bom_type): Rename from utf_16_bom_type.
6026 (struct utf_16_spec): Adjust for the above change.
6027 (struct coding_system): Add utf_8_bom in `spec' union.
6028
6029 * coding.c (CODING_UTF_8_BOM): New macro.
6030 (enum coding_category): Delete coding_category_utf_8, add
6031 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6032 coding_category_utf_8_sig.
6033 (CATEGORY_MASK_UTF_8): Delete it.
6034 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6035 (CATEGORY_MASK_UTF_8_SIG): New macros.
6036 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6037 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6038 CATEGORY_MASK_UTF_8_SIG.
6039 (CATEGORY_MASK_UTF_8): New macro.
6040 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6041 (detect_coding_utf_8): Check BOM.
6042 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6043 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6044 (encode_coding_utf_16): Likewise.
6045 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6046 (detect_coding, detect_coding_system): Handle utf-8-auto.
6047 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6048 (syms_of_coding): Fix setting up of Vcoding_category_table.
6049
60502008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6051
6052 * process.c (Faccept_process_output): If `millisec' is non-nil,
6053 `seconds' default to 0.
6054 (wait_reading_process_output): Also return non-nil if we read output
6055 from a non-running process.
6056
60572008-05-29 Jason Rumney <jasonr@gnu.org>
6058
6059 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6060 `raster' specified.
6061 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6062 in the uniscribe backend, but disallow any font that has no
6063 unicode subrange support.
6064
60652008-05-29 Juanma Barranquero <lekktu@gmail.com>
6066
6067 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6068 Fix typos in docstrings.
6069
60702008-05-29 Kenichi Handa <handa@m17n.org>
6071
6072 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6073 (Fx_family_fonts): Set frame correctly.
6074
60752008-05-28 Jason Rumney <jasonr@gnu.org>
6076
6077 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6078
60792008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6080
6081 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6082 calling build_annotations.
6083
60842008-05-28 Juanma Barranquero <lekktu@gmail.com>
6085
6086 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6087 (Fencode_coding_string):
6088 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6089 <latin-extra-code-table>: Fix typos in docstrings.
6090 (syms_of_coding) <coding-system-alist>: Doc fix.
6091 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6092
60932008-05-28 Kenichi Handa <handa@m17n.org>
6094
6095 * fontset.c (Ffont_info): Don't call font_close_object.
6096
6097 * font.c (font_parse_family_registry): Use Ffont_put to validate
6098 foundry and family.
6099 (font_delete_unmatched): Don't check spacing.
6100 (font_list_entities): Add spacing to the spec to list fonts.
6101
6102 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6103 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6104
6105 * coding.c (encode_coding_raw_text): Fix previous change.
6106 (encode_coding_object): When the dst_object is a buffer and is
6107 different from src_object, move gap to PT.
6108
61092008-05-27 Chong Yidong <cyd@stupidchicken.com>
6110
6111 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6112
61132008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6114
6115 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6116 all branches. Compute it differently.
6117
6118 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6119
61202008-05-27 Juanma Barranquero <lekktu@gmail.com>
6121
6122 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6123 into "else if () ... else ...".
6124
61252008-05-27 Jason Rumney <jasonr@gnu.org>
6126
6127 * w32font.c (w32font_open_internal): Determine if glyph indices
6128 are likely to work here.
6129
61302008-05-27 Chong Yidong <cyd@stupidchicken.com>
6131
6132 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6133 draw overlap glyphs with appropriate highlighting.
6134
61352008-05-27 Kenichi Handa <handa@m17n.org>
6136
6137 * xfont.c (xfont_open): Fix calculation of font->average_width.
6138
61392008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6140
6141 * casefiddle.c (casify_object): Try to guess better whether the
6142 argument is a byte or a char.
6143
61442008-05-26 Andreas Schwab <schwab@suse.de>
6145
6146 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6147 Always send multiples of format size.
6148
6149 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6150
61512008-05-26 Jason Rumney <jasonr@gnu.org>
6152
6153 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6154 (compute_metrics): Don't set failure if we just cleared the cache.
6155 (w32_weight_table): Remove unused variable.
6156 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6157 backwards compatibility.
6158
61592008-05-25 Kenichi Handa <handa@m17n.org>
6160
6161 * w32term.c (x_draw_glyph_string):
6162 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6163
6164 * xfaces.c: Delete unused function prototypes.
6165 (xstrlwr, font_frame): Delete them.
6166 (clear_face_cache): Delete unused variable.
6167
6168 * xftfont.c (xftfont_open): Delete unused variable.
6169 If underline_thickness is not 1, adjust underline_position.
6170
6171 * ftxfont.c (ftxfont_open): Delete unused variable.
6172
6173 * fontset.c (face_for_char): Optimize for the case of no charset
6174 property.
6175
6176 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6177 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6178 (otf_open, font_otf_capability, generate_otf_features)
6179 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6180 Comment out by surrounding "#if 0" and "#endif" for the moment.
6181 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6182 (syms_of_font): Codes for accessing above commented out.
6183
61842008-05-24 Eli Zaretskii <eliz@gnu.org>
6185
6186 * w32proc.c: Include dispextern.h.
6187
6188 * w32.c: Include dispextern.h.
6189
61902008-05-23 Juanma Barranquero <lekktu@gmail.com>
6191
6192 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6193 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6194 Fix typos in docstrings.
6195
61962008-05-23 Jason Rumney <jasonr@gnu.org>
6197
6198 * xsmfns.c: Remove includes that are already included by config.h.
6199
62002008-05-23 Kenichi Handa <handa@m17n.org>
6201
6202 * charset.c (Qemacs, charset_emacs): New variables.
6203 (char_charset): Fix for non-Unicode characters.
6204 (syms_of_charset): Define charset_emacs.
6205
6206 * w32term.c (x_draw_glyph_string): Be sure to update
6207 s->underline_thickness and s->underline_position. Be sure to draw
6208 underline within the current line area.
6209
6210 * xterm.c (x_draw_glyph_string): Be sure to update
6211 s->underline_thickness and s->underline_position. Be sure to draw
6212 underline within the current line area.
6213
6214 * fontset.c: Delete unused variables and add casting for char *
6215 throughout the file.
6216 (fontset_font): Try the fallback fonts of the current fontset
6217 before consulting the default fontset.
6218
6219 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6220
6221 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6222
62232008-05-22 Jason Rumney <jasonr@gnu.org>
6224
6225 * font.c: Don't include strings.h.
6226
6227 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6228
6229 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6230 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6231 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6232 to call xstrcasecmp.
6233
6234 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6235
6236 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6237
6238 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6239
6240 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6241
62422008-05-22 Kenichi Handa <handa@m17n.org>
6243
6244 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6245
6246 * font.c (font_prop_validate_style): Adjust for the format
6247 change of font_style_table.
6248
6249 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6250 two args.
6251
6252 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6253 two args.
6254
62552008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6256
6257 * minibuf.c (keys_of_minibuf): Delete.
6258 * lisp.h (keys_of_minibuf): Delete.
6259 * emacs.c (main): Don't call keys_of_minibuf.
6260
62612008-05-22 Kenichi Handa <handa@m17n.org>
6262
6263 * ftfont.c (ftfont_resolve_generic_family): Rename from
6264 ftfont_list_generic_family. Return a single family for each
6265 generic family.
6266 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6267 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6268 Call font_add_log.
6269 (ftfont_match): Call font_add_log.
6270
6271 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6272 (FONT_DEBUG): Define it.
6273 (font_add_log): Extern it.
6274 (font_assert): Rename from xassert.
6275
6276 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6277 (xfont_list_family): Call font_add_log.
6278 (xfont_match): Likewise.
6279 (memq_no_quit): Delete.
6280
6281 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6282 call of Ffont_xlfd_name.
6283
6284 * xfaces.c (struct table_entry, slant_table, weight_table)
6285 (swidth_table): Move to font.c.
6286
6287 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6288 xassert are changed to font_assert. Delete many unused variables.
6289 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6290 New variables.
6291 (struct table_entry): Move from xfaces.c and modified.
6292 (weight_table, slant_table, width_table): Move from xfaces.c and
6293 contents adjusted for the change of struct table_entry.
6294 (font_style_to_value, font_style_symbolic): Adjust for the
6295 format change of font_style_table.
6296 (font_parse_family_registry): Don't overwrite existing foundry and
6297 family of font_spec.
6298 (font_score): Fix calculation of diff for sizes.
6299 (font_sort_entites): Call font_add_log.
6300 (font_delete_unmatched): Return a newly created list.
6301 (font_list_entities): Fix previous change. Call font_add_log.
6302 (font_matching_entity, font_open_entity, font_close_entity):
6303 Call font_add_log.
6304 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6305 (Finternal_set_font_style_table): Delete.
6306 (BUILD_STYLE_TABLE): New macro.
6307 (build_style_table): New function.
6308 (Vfont_log, font_log_env_checked): New variables.
6309 (font_add_log): New function.
6310 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6311 Declare Lisp variables "font-weight-table", "font-slant-table",
6312 "font-width-table", and "font-log". Initialize font_style_table.
6313
63142008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6315
6316 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6317
63182008-05-21 Seiji Zenitani <zenitani@mac.com>
6319 Ryo Yoshitake <ryo@shiftmode.net>
6320
6321 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6322 (Vframe_alpha_lower_limit): New variable.
6323 (x_set_alpha): New function.
6324
6325 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6326
6327 * xfns.c (x-create-frame, Qalpha):
6328 Initialize the frame parameter `alpha'.
6329 * xterm.c (OPAQUE, OPACITY): New.
6330 (x_set_frame_alpha): New function.
6331 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6332
6333 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6334 * w32fns.c (w32_frame_parm_handlers): Likewise.
6335
63362008-05-20 Jason Rumney <jasonr@gnu.org>
6337
6338 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6339 truetype fonts to opentype list.
6340
63412008-05-20 Juanma Barranquero <lekktu@gmail.com>
6342
6343 * fontset.c (Ffontset_info): Doc fix.
6344 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6345 <ignore-relative-composition>: Fix typos in docstrings.
6346
6347 * font.c (syms-of-font) <font-encoding-alist>:
6348 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6349 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6350 (Ffont_otf_alternates): Doc fixes.
6351
63522008-05-20 Kenichi Handa <handa@m17n.org>
6353
6354 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6355 font.h through out the file.
6356 (FONT_DRIVERS): Rename from FONTOBJ.
6357 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6358 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6359
6360 * emacs.c (main): Call syms_of_font unconditionally.
6361
6362 * font.h (find_font_encoding): Extern it.
6363
6364 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6365 fontset.c.
6366 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6367 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6368 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6369 only when HAVE_WINDOW_SYSTEM is defined.
6370 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6371 when HAVE_WINDOW_SYSTEM is defined.
6372
6373 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6374 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6375
6376 * xfaces.c: Include font.h unconditionally.
6377 (merge_face_ref, merge_face_vectors)
6378 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6379
63802008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6381
6382 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6383 indirect_variable.
6384 * eval.c (lisp_indirect_variable): New fun.
6385 (Fuser_variable_p): Use it.
6386
63872008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6388
6389 * lisp.h (indirect_variable):
6390 * data.c (indirect_variable, let_shadows_buffer_binding_p):
6391 Use Lisp_Symbol pointers rather than Lisp_Object.
6392 Adjust callers.
6393 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
6394 To this end, change calling-convention.
6395
6396 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
6397 if some non-hidden buffers are selected by string&pred.
6398
63992008-05-19 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * process.c (wait_reading_process_output): Always check status
6402 when in batch mode.
6403
64042008-05-19 Kenichi Handa <handa@m17n.org>
6405
6406 * font.c (font_list_entities): Fix handling of cache.
6407 (font_matching_entity): Likewise.
6408
6409 * ftfont.c (cs_iso8859_1): Delete.
6410 (ft_face_cache): New variable.
6411 (struct ftfont_info): New member fc_charset_idx.
6412 (ftfont_build_basic_charsets): Delete.
6413 (fc_charset_table): New variable.
6414 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
6415 . FC_CHARSET_IDX) as :font-entity property in the font entity.
6416 Callers changed.
6417 (ftfont_lookup_cache, ftfont_get_charset): New functions.
6418 (ftfont_spec_pattern): New argument fc_charset_idx.
6419 Check registry more rigidly. Change callers.
6420 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
6421 change of :font-entity property of the font.
6422
6423 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
6424 property of the font.
6425
64262008-05-18 Juanma Barranquero <lekktu@gmail.com>
6427
6428 * coding.c (Fcoding_system_p): Rename argument to match docstring.
6429 (Funencodable_char_position, Fcheck_coding_systems_region)
6430 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
6431 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
6432 (Ffind_operation_coding_system, Fset_coding_system_priority)
6433 (Fcoding_system_eol_type): Doc fixes.
6434
64352008-05-17 Glenn Morris <rgm@gnu.org>
6436
6437 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
6438
64392008-05-16 Eli Zaretskii <eliz@gnu.org>
6440
6441 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
6442 and st_gid.
6443
6444 * frame.c (Fdelete_frame): Don't call font_update_drivers if
6445 HAVE_WINDOW_SYSTEM is not defined.
6446
6447 * xfaces.c (merge_face_ref, merge_face_vectors)
6448 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
6449 HAVE_WINDOW_SYSTEM is defined.
6450 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
6451
64522008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
6453
6454 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
6455
64562008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6457
6458 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6459
64602008-05-15 Kenichi Handa <handa@m17n.org>
6461
6462 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
6463 preference.
6464
64652008-05-15 Glenn Morris <rgm@gnu.org>
6466
6467 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
6468
64692008-05-15 Chong Yidong <cyd@stupidchicken.com>
6470
6471 * fns.c (init_fns): Don't initialize weak_hash_tables here.
6472 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
6473
6474 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
6475
64762008-05-15 Kenichi Handa <handa@m17n.org>
6477
6478 * ftfont.c (ftfont_list): Downcase family name to check generic
6479 families.
6480
6481 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
6482 font-spec for QCfont value.
6483
6484 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
6485 buffer. Check the return value of it.
6486
64872008-05-14 Jason Rumney <jasonr@gnu.org>
6488
6489 * w32term.c (w32_get_glyph_overhangs): Remove.
6490 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
6491
64922008-05-14 Kenichi Handa <handa@m17n.org>
6493
6494 * font.c (font_prop_validate): Make nil a valid value.
6495 (font_clear_cache): Check if the cached vector of entities is nil
6496 or not.
6497
64982008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6499
6500 * emacs.c (main_thread): Conditionalize on
6501 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6502 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
6503
6504 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
6505 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
6506 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6507
65082008-05-14 Kenichi Handa <handa@m17n.org>
6509
6510 * coding.c (detect_coding_iso_2022): Ignore a coding category that
6511 has no corresponding coding system.
6512
65132008-05-14 Jason Rumney <jasonr@gnu.org>
6514
6515 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
6516
6517 * w32font.h (w32font_open_internal): Update declaration.
6518
6519 * w32font.c (w32font_open_internal): Change last argument from
6520 w32font_info struct to font object. Fill in font object from
6521 font_entity. Get Outline metrics if possible. Use them to
6522 calculate underline position and thickness. Use xlfd name as name
6523 property. Don't set codepage.
6524 (w32font_open): Pass font_object to w32font_open_internal. Don't
6525 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
6526 (w32font_draw): Use s->font.
6527 (clear_cached_metrics): Don't clear non-existent blocks.
6528
6529 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
6530 font was not found.
6531 (x_draw_glyph_string): Use underline position and thickness from font.
6532
6533 * w32uniscribe.c (uniscribe_open): Pass font_object to
6534 w32font_open_internal.
6535
65362008-05-14 Kenichi Handa <handa@m17n.org>
6537
6538 These changes are to delete all legacy font-handling codes, and
6539 make Emacs use only font-backends.
6540
6541 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
6542 (frame.o, image.o, print.o): Depend on $(FONTSRC).
6543
6544 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
6545
6546 * charset.h (Vcharset_non_preferred_head)
6547 (Vcurrent_iso639_language): Extern them.
6548
6549 * charset.c (Vcharset_non_preferred_head): New variable.
6550 (Vcurrent_iso639_language): New variable.
6551 (syms_of_charset): Declare it as a Lisp variable.
6552 (char_charset): Don't check non preferred charsets. As a last
6553 resort, return charset_unicode.
6554 (Fset_charset_priority): Update Vcharset_non_preferred_head.
6555
6556 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
6557 conditionals. Don't check enable_font_backend. Delete all codes
6558 used only when USE_FONT_BACKEND is not defined.
6559
6560 * dispextern.h (struct glyph_string): Change type of `font' to
6561 `struct font *'.
6562 (struct glyph_string): New member underline_position and
6563 underline_thickness.
6564 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
6565 (struct face): Change type of `font' to `struct font *'. Remove
6566 members `font_name', `font_info_id'.
6567 (per_char_metric, encode_char): Delete externs.
6568 (calc_pixel_width_or_height): Adjust the prototype.
6569
6570 * emacs.c (enable_font_backend): Delete extern.
6571 (main): Don't set enable_font_backend. Don't check the command
6572 line argument "-disable-font-backend".
6573
6574 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
6575 (enum font_property_index): New members FONT_DPI_INDEX,
6576 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
6577 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
6578 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
6579 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
6580 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
6581 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
6582 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
6583 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
6584 (struct font_spec, struct font_entity): New structs.
6585 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
6586 (struct font): Many members from old "struct font_info" moved to
6587 here. Members font and entity deleted.
6588 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
6589 the new font-related objects.
6590 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
6591 (CHECK_FONT_GET_OBJECT): Likewise.
6592 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
6593 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
6594 (struct font_driver): New members case_sensitive anc check. Type
6595 of the member list and open changed.
6596 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
6597 (font_symbolic_width, font_find_object, font_get_spec)
6598 (font_set_lface_from_name): Delete extern.
6599 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
6600
6601 * font.c: Include <strings.h>.
6602 (enable_font_backend): Delete it.
6603 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
6604 (CHECK_VALIDATE_FONT_SPEC): Delete it.
6605 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
6606 (null_string): Delete it.
6607 (null_vector): Make it static.
6608 (font_family_alist): Delete it.
6609 (Qnormal): Extern it.
6610 (QCextra, QClanguage): Delete it.
6611 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
6612 (font_make_spec, font_make_entity, font_make_object)
6613 (font_intern_prop): Renamed from intern_downcase. Don't downcase
6614 the string. Callers changed.
6615 (font_pixel_size): Adjusted for the format change of font-related
6616 objects.
6617 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
6618 (font_style_to_value, font_style_symbolic): New function.
6619 (build_font_family_alist): Delete it.
6620 (font_registry_charsets): Use Fassoc_string instead of
6621 assq_no_quit.
6622 (font_prop_validate_symbol): Don't return null_string.
6623 (font_prop_validate_style): Adjusted for the change of
6624 style-related values in a font vector.
6625 (font_property_table): Delete entries for QClanguage and
6626 QCantialias, add entries for QCavgwidth.
6627 (get_font_prop_index): Delete the 2nd argument FROM.
6628 (font_prop_validate): Arguments changed.
6629 (font_put_extra): Adjusted for the change of font-related objects.
6630 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
6631 (font_parse_fcname, font_unparse_fcname)
6632 (font_prepare_composition): Likewise.
6633 (font_parse_family_registry): Renamed from font_merge_old_spec.
6634 (otf_open): Delete the 1st arg entity.
6635 (font_otf_capability): Adjusted for the above change.
6636 (font_score): New arg alternate_families. Adjusted for the change
6637 of font-related objects.
6638 (font_sort_entites): New arg best_only.
6639 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
6640 Delete them.
6641 (font_match_p): Check alternate families.
6642 (font_find_object): Delete it.
6643 (font_check_object): New function.
6644 (font_clear_cache): Adjusted for the change of font-related objects.
6645 (font_delete_unmatched): New arg.
6646 (font_list_entities): Call font_driver->list with a spec that
6647 doesn't specify style-related properties.
6648 (font_matching_entity): Arguments changed. Caller changed.
6649 (font_open_entity): Adjusted for the change of font-related objects.
6650 (font_close_object, font_has_char, font_encode_char)
6651 (font_get_name, font_get_spec): Likewise.
6652 (font_spec_from_name, font_clear_prop, font_update_lface):
6653 New functions.
6654 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
6655 (font_prepare_for_face, font_done_for_face, font_open_by_name)
6656 (font_at): Adjusted for the change of font-related objects.
6657 (font_range): New function.
6658 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
6659 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
6660 (Fcopy_font_spec, Fmerge_font_spec): New function.
6661 (Ffont_family_list): Renamed from list-families.
6662 (Finternal_set_font_style_table): Arguments changed.
6663 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
6664 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
6665 change of font-related objects.
6666 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
6667
6668 * fontset.h (struct font_info): Delete it. Most members go to
6669 struct font.
6670 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
6671 (enum FONT_SPEC_INDEX): Delete it.
6672 (font_info, list_fonts_func, load_font_func, query_font_func)
6673 (set_frame_fontset_func, find_ccl_program_func)
6674 (get_font_repertory_func, new_fontset_from_font_name): Delete
6675 externs.
6676 (fontset_from_font_name): Extern it.
6677 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
6678 (FONT_INFO_FROM_FACE): Deleted.
6679 (face_for_font): Adjust prototype.
6680
6681 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
6682 conditionals. Don't check enable_font_backend. Delete all codes
6683 used only when USE_FONT_BACKEND is not defined.
6684 (get_font_info_func, list_font_func, load_font_func)
6685 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
6686 (get_font_repertory_func): Delete them.
6687 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
6688 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
6689 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
6690 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
6691 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
6692 (fontset_compare_rfontdef): New function.
6693 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
6694 rfont-defs by qsort. Adjusted for the change of font-group vector.
6695 (load_font_get_repertory): Deleted.
6696 (fontset_find_font): Use new macros to ref/set elements of
6697 font-def and rfont-def.
6698 (fontset_font): Fix the timing of remembering that no font for C.
6699 (free_face_fontset): Do nothing if the face has no fontset.
6700 (face_suitable_for_char_p): Use new macros to ref/set elements of
6701 rfont-def.
6702 (face_for_char): Likewise. Call face_for_char with font_object.
6703 (fs_load_font): Delete. Delete #pragma surrounding it.
6704 (fs_query_fontset): Use strcasecmp instead of strcmp.
6705 (generate_ascii_font_name): Adjusted for the format change of
6706 font-spec.
6707 (Fset_fontset_font): Likewise. Use new macros to set elements of
6708 font-def.
6709 (Fnew_fontset): Use font_unparse_xlfd to generate
6710 FONTSET_ASCII (fontset).
6711 (new_fontset_from_font_name): Deleted.
6712 (fontset_from_font): Renamed from new_fontset_from_font. Check if
6713 a fontset is already created for the font. FIx updating of
6714 Vfontset_alias_alist.
6715 (fontset_ascii_font): Deleted.
6716 (Ffont_info): Adjusted for the format change of font-spec.
6717 (Finternal_char_font): Likewise.
6718 (Ffontset_info): Likewise.
6719 (syms_of_fontset): Don't check load_font_func.
6720
6721 * fns.c (internal_equal): Handle PREV_FONT.
6722
6723 * frame.h: Delete USE_FONT_BACKEND conditional.
6724
6725 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
6726 conditionals. Don't check enable_font_backend. Delete all codes
6727 used only when USE_FONT_BACKEND is not defined.
6728 (x_set_font): Call x_new_font, not x_new_fontset2.
6729 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
6730 already set for the frame.
6731
6732 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
6733 a font-entity by font_make_entity. Use font_intern_prop instead
6734 of intern_downcase. Use FONT_SET_STYLE to set a style-related
6735 font property. If a font is scalable, set avgwidth property to 0.
6736 Set font-entity property by font_put_extra.
6737 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
6738 (ffont_driver): Adjusted for the change of struct font_driver.
6739 (ftfont_spec_pattern): New function.
6740 (ftfont_list): Return a list, not vector.
6741 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
6742 (ftfont_list_family): Don't downcase names.
6743 (ftfont_free_entity): Deleted.
6744 (ftfont_open): Return a font-object. Adjusted for the change of
6745 struct font. Get underline_thickness and underline_position from
6746 font property. Don't update dpyinfo->smallest_font_height and
6747 dpyinfo->smallest_char_width.
6748 (ftfont_close): Don't free `struct font'.
6749 (ftfont_has_char): Adjusted for the format change of font-entity.
6750 (ftfont_encode_char, ftfont_text_extents): Likewise.
6751
6752 * ftxfont.c (ftxfont_list): Return a list, not vector.
6753 (ftxfont_open): Return a font-object. Adjusted for the change of
6754 struct font. Get underline_thickness and underline_position from
6755 font property. Don't update dpyinfo->smallest_font_height and
6756 dpyinfo->smallest_char_width.
6757 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
6758 (ftxfont_draw): Adjusted for the change of struct font.
6759
6760 * image.c (image_ascent): Don't include "charset.h". Include
6761 "character.h" and "font.h".
6762
6763 * lisp.h (enum pvec_type): New member PREV_FONT.
6764 (Fassoc_string): EXFUN it.
6765
6766 * print.c: Include font.h.
6767 (print_object): Handle font-related objects.
6768
6769 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
6770 conditionals. Don't check enable_font_backend. Delete all codes
6771 used only when USE_FONT_BACKEND is not defined.
6772 (handle_auto_composed_prop): Do nothing if it->f is not on a
6773 window system. Check how many following characters can be
6774 displayed by the same font.
6775 (calc_pixel_width_or_height): Type of the 4th arg is changed to
6776 'struct font *'.
6777 (get_char_face_and_encoding): Assign the whole encoding task to
6778 the `encode-char' method of a font driver.
6779 (fill_composite_glyph_string): Adjusted for the change of `struct
6780 face' and `struct glyph_string'.
6781 (fill_glyph_string): Likewise.
6782 (get_per_char_metric): Arguments changed.
6783 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
6784 and `struct glyph_string'.
6785 (produce_stretch_glyph, calc_line_height_property)
6786 (x_produce_glyphs): Likewise.
6787
6788 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
6789 conditionals. Don't check enable_font_backend. Delete all codes
6790 used only when USE_FONT_BACKEND is not defined. Use
6791 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
6792 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
6793 (Qp): Extern them.
6794 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
6795 Deleted.
6796 (struct font_name): Deleted.
6797 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
6798 (compare_fonts_by_sort_order): New function.
6799 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
6800 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
6801 Deleted.
6802 (Fx_family_fonts): Use font_list_entities, and sort fonts by
6803 compare_fonts_by_sort_order.
6804 (Fx_font_family_list): Call Ffont_family_list.
6805 (face_numeric_value, face_numeric_weight, face_numeric_slant)
6806 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
6807 (face_symbolic_slant, face_symbolic_swidth)
6808 (split_font_name_into_vector, build_font_name_from_vector)
6809 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
6810 (font_rescale_ratio, split_font_name, build_font_name)
6811 (free_font_names, sort_fonts, x_face_list_fonts)
6812 (face_font_available_p, sorted_font_list, cmp_font_names)
6813 (font_list_1, concat_font_list, font_list, remove_duplicates):
6814 Deleted.
6815 (Fx_list_fonts): Use Ffont_list.
6816 (LFACE_AVGWIDTH): Deleted.
6817 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
6818 by FONTP.
6819 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6820 (set_lface_from_font_name): Delete it.
6821 (set_lface_from_font): Renamed from
6822 set_lface_from_font_and_fontset. Caller changed. Don't set
6823 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
6824 for face.
6825 (merge_face_vectors): Copy font-spec if necessary.
6826 Clear properties of the font-spec if necessary.
6827 (merge_face_ref): Clear properties of the font-spec if necessary.
6828 (Finternal_set_lisp_face_attribute): Likewise.
6829 (set_font_frame_param): Use font_load_for_lface to load a
6830 font-object, and call Fmodify_frame_parameters with it.
6831 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
6832 font name by Ffont_xlfd_name.
6833 (Finternal_lisp_face_attribute_values): Don't check QCweight,
6834 QCslant, and QCwidth.
6835 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
6836 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
6837 Compare fonts by EQ.
6838 (lookup_non_ascii_face): Deleted.
6839 (face_for_font): The 2nd argument changed.
6840 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
6841 Check atomic font properties by case insensitive.
6842 (realize_non_ascii_face): Set face->overstrike correctly.
6843 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
6844 (dump_realized_face): Get font name from
6845 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
6846
6847 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
6848 conditionals. Don't check enable_font_backend. Delete all codes
6849 used only when USE_FONT_BACKEND is not defined.
6850 (xic_create_xfontset): Original code deleted and renamed from
6851 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
6852 (x_make_gc): Don't set GCFont in GCs.
6853 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
6854 opened by "fixed".
6855 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
6856 find_ccl_program_func, query_font_func, set_frame_fontset_func,
6857 get_font_repertory_func.
6858
6859 * xfont.c: Include <stdlib.h> and "ccl.h".
6860 (struct xfont_info): New structure.
6861 (xfont_query_font): Deleted.
6862 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
6863 moved from xterm.c.
6864 (xfont_driver): Adjusted for the change of struct font_driver.
6865 (compare_font_names): New function.
6866 (xfont_list_pattern): Sort font names case insensitively. Make
6867 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
6868 (xfont_list): Return a list, not vector.
6869 (xfont_match): If the font doesn't have QCname property, generate
6870 a name from the other font properties.
6871 (xfont_open): Return a font-object. Adjusted for the change of
6872 struct font. Get underline_thickness and underline_position from
6873 font property. Don't update dpyinfo->smallest_font_height and
6874 dpyinfo->smallest_char_width.
6875 (xfont_close): Don't free struct font.
6876 (xfont_prepare_face): Adjusted for the change of struct font.
6877 (xfont_done_face): Deleted.
6878 (xfont_has_char): Adjusted for the change of struct font.
6879 (xfont_encode_char, xfont_draw): Likewise.
6880 (xfont_check): New function.
6881
6882 * xftfont.c (xftfont_list): Adjusted for the change of `list'
6883 callback function.
6884 (xftfont_match): Adjusted for the format change of font-entity.
6885 (xftfont_open): Adjusted for the format change of font-entity and
6886 font-object. Adjusted for the change of struct font. Return a
6887 font-object. Don't update dpyinfo->smallest_font_height and
6888 dpyinfo->smallest_char_width.
6889 (xftfont_close): Block input while calling XftFontClose.
6890 (xftfont_prepare_face): Don't block input while calling
6891 xftfont_get_colors. Adjusted for the change of struct font.
6892 (xftfont_shape): Return value of error case fixed.
6893
6894 * xrdb.c (x_load_resources): Don't setup a fontset resource.
6895
6896 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
6897 conditionals.
6898 (FONT_WIDTH): Return (f)->max_width.
6899 (struct x_display_info): Delete member `font'.
6900 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
6901 (x_find_ccl_program, x_get_font_repertory): Delete externs.
6902 (struct x_output): Change type of `font' to `struct font *'.
6903
6904 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
6905 conditionals. Don't check enable_font_backend. Delete all codes
6906 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
6907 (x_per_char_metric, x_encode_char): Deleted.
6908 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
6909 (x_compute_glyph_string_overhangs): Adjusted for the change of
6910 `struct face'.
6911 (x_draw_glyph_string_foreground)
6912 (x_draw_composite_glyph_string_foreground): Likewise.
6913 (x_draw_glyph_string): Likewise. Use font->underline_position and
6914 font->underline_thickness.
6915 (x_new_font): Renamed from x_new_fontset2.
6916 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
6917 (x_check_font): Call `check' method of a font driver.
6918 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
6919 (x_query_font, x_get_font_repertory): Deleted.
6920 (x_find_ccl_program): Renamed and moved to xfont.c.
6921 (x_redisplay_interface): Adjusted for the change of `struct
6922 redisplay_interface'.
6923
6924 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
6925 conditionals. Don't check enable_font_backend. Delete all codes
6926 used only when USE_FONT_BACKEND is not defined. Surround non-used
6927 code by "#ifdef OLD_FONT" and "endif".
6928 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
6929
6930 * w32font.h (struct w32font_info): New member.
6931 (FONT_COMPAT): New macro.
6932 (w32font_open_internal): Prototype adjusted.
6933
6934 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
6935 OLD_FONT" and "endif".
6936
6937 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
6938 conditionals. Don't check enable_font_backend. Delete all codes
6939 used only when USE_FONT_BACKEND is not defined.
6940 (w32font_open): Return a font-object. Make a font-object by
6941 font_make_object. Adjusted for the change of struct w32font_info.
6942 (w32font_close): Don't free struct font. Adjusted for the change
6943 of struct w32font_info.
6944 (w32font_encode_char, w32font_text_extents, w32font_draw):
6945 Adjusted for the change of struct w32font_info.
6946 (w32font_draw): Likewise.
6947 (w32font_list_internal): Return a list, not vector.
6948 (w32font_open_internal): Change the 4th arg to font-object.
6949 Adjusted for the change of struct w32font_info and font-object format.
6950 (add_font_name_to_list): Don't downcase names.
6951 (w32_enumfont_pattern_entity): Make a font-entity by
6952 font_make_entity. Adjusted for the format change of font-entity.
6953 Use FONT_SET_STYLE to set a style-related font property. If a
6954 font is scalable, set avgwidth property to 0. Set font-entity
6955 property by font_put_extra.
6956 (font_matches_spec): Adjusted for the format change of font-entity.
6957 (w32_weight_table, w32_decode_weight): New variables.
6958 (w32_encode_weight): New function.
6959 (fill_in_logfont): Adjusted for the format change of font-spec.
6960 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
6961 weight value.
6962 (w32font_driver): Adjusted for the change of struct font_driver.
6963
6964 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
6965 conditionals. Don't check enable_font_backend. Surround non-used
6966 code by "#ifdef OLD_FONT" and "endif".
6967 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
6968 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
6969
6970 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
6971 conditionals. Don't check enable_font_backend. Delete all codes
6972 used only when USE_FONT_BACKEND is not defined. Surround non-used
6973 code by "#ifdef OLD_FONT" and "endif".
6974
6975 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
6976 (uniscribe_open): Return value changed to font-object.
6977 Adjusted for the format change of font-object.
6978 (uniscribe_otf_capability): Adjusted for the change of struct font.
6979 (add_opentype_font_name_to_list): Don't downcase names.
6980 (uniscribe_font_driver): Adjusted for the change of struct
6981 font_driver.
6982
69832008-05-13 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * dispnew.c (update_frame_1): Check if tty output is still valid
6986 before flushing it.
6987
69882008-05-13 Jan Djärv <jan.h.d@swipnet.se>
6989
6990 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
6991 to Gtk+ menus.
6992
69932008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6994
6995 * dired.c (file_name_completion): Tweak the code so as to always do it
6996 in a single pass. Tighten the scope of some variables.
6997
6998 * dired.c (Qdefault_directory): New var.
6999 (file_name_completion): Use it instead of Fexpand_file_name.
7000 (syms_of_dired): Initialize it.
7001
70022008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7003
7004 * fileio.c (double_dollars): Remove dead code.
7005
70062008-05-10 Eli Zaretskii <eliz@gnu.org>
7007
7008 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7009 Mention w32-get-true-file-attributes in doc string.
7010
7011 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7012
70132008-05-09 Glenn Morris <rgm@gnu.org>
7014
7015 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7016 2008-04-23.
7017
70182008-05-09 Eli Zaretskii <eliz@gnu.org>
7019
7020 Support for reporting owner and group of each file on MS-Windows:
7021 * dired.c (stat_uname, stat_gname): New functions, with special
7022 implementation for w32.
7023 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7024
7025 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7026 (dflt_group_name): New static variable.
7027 (dflt_group): Rename from the_group.
7028 (init_user_info): Init dflt_group fields. Get user's group name
7029 from LookupAccountSid.
7030 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7031 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7032 New initialization states.
7033 (globals_of_w32): Initialize them to zero. Initialize the default
7034 group name to "None".
7035 (GetFileSecurity_Name): New global var, the name of the function
7036 to call for GetFileSecurity.
7037 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7038 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7039 (get_file_security, get_security_descriptor_owner)
7040 (get_security_descriptor_group, is_valid_sid)
7041 (get_file_security_desc, get_rid, get_name_and_id)
7042 (get_file_owner_and_group): New functions.
7043 (stat): Use get_file_security_desc and get_file_owner_and_group to
7044 report the owner and primary group of each file. Don't ignore the
7045 high 32 bits of file's size, now that st_size is 64-bit wide.
7046 Fix test when to get true file attributes.
7047 (init_user_info): Use get_rid instead of equivalent inline code.
7048 (fstat): Don't ignore the high 32 bits of file's size.
7049
70502008-05-09 Chong Yidong <cyd@stupidchicken.com>
7051
7052 * image.c (png_load): Use correct bit-depth for setting background
7053 color.
7054
70552008-05-08 Eli Zaretskii <eliz@gnu.org>
7056
7057 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7058 epa-hook.elc.
7059
70602008-05-08 Juanma Barranquero <lekktu@gmail.com>
7061
7062 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7063
70642008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7065
7066 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7067 because the original parameters are in pure storage now.
7068 (mac_window): Remove unused params. Update callers.
7069
70702008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7071
7072 * lread.c (substitute_object_recurse): Use lower-level primitives.
7073 Don't signal errors when traversing sub-char-tables.
7074 Don't loop over all the possible characters when traversing char-tables.
7075
7076 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7077 just like we do in print.c.
7078
70792008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7080
7081 * minibuf.c (Ftry_completion): Remove code left over from when we used
7082 scmp instead of Fcompare_strings.
7083
70842008-05-04 Juanma Barranquero <lekktu@gmail.com>
7085
7086 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7087
70882008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7089
7090 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7091 Create bitmap context in native byte order.
7092
7093 * macterm.c (XDrawLine)
7094 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7095 context in native byte order.
7096
70972008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7098
7099 * config.in: Regenerate.
7100
7101 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7102 New definitions for Image I/O support.
7103 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7104 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7105 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7106 (mac_data_provider_release_data, image_load_image_io)
7107 [USE_MAC_IMAGE_IO]: New functions.
7108 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7109 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7110 (init_image_func_pointer) [MAC_OSX]: Remove function.
7111 (image_load_quartz2d) [MAC_OSX]: Check availability of
7112 CGImageCreateWithPNGDataProvider at compile time.
7113 Use lowercase `false' for boolean constant.
7114 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7115 Use image_load_image_io.
7116 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7117 Don't check MyCGImageCreateWithPNGDataProvider.
7118 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7119 Don't call init_image_func_pointer.
7120
7121 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7122
7123 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7124 Make variable non-static.
7125 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7126 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7127
7128 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7129 (RED_FROM_ULONG): Mask off higher bits.
7130 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7131
7132 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7133 Include AvailabilityMacros.h.
7134 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7135 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7136
71372008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7138
7139 * chartab.c (Fset_char_table_range): If range is t, really set all
7140 chars to that value.
7141
71422008-05-03 Eli Zaretskii <eliz@gnu.org>
7143
7144 * dired.c (Ffile_attributes): Don't allow the device number become
7145 negative.
7146
71472008-05-02 Daiki Ueno <ueno@unixuser.org>
7148
7149 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7150
71512008-05-02 Juri Linkov <juri@jurta.org>
7152
7153 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7154 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7155 DEFAULT argument as a list of default values in docstrings.
7156
71572008-05-01 Chong Yidong <cyd@stupidchicken.com>
7158
7159 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7160
71612008-05-01 Martin Rudalics <rudalics@gmx.at>
7162
7163 * dispnew.c (change_frame_size_1): Preserve small windows when
7164 shrinking frames by calling set_window_height|width with third
7165 arg 2.
7166
7167 * window.h (struct window): Replace field too_small_ok by field
7168 resize_proportionally.
7169
7170 * window.c (make_window): Initialize resize_proportionally.
7171 (enlarge_window): Temporarily set resize_proportionally to make
7172 sure that shrink_windows does scale the window proportionally.
7173 (shrink_windows): When window has resize_proportionally set try
7174 to shrink it proportionally by stealing from other windows.
7175 (struct saved_window, Fset_window_configuration)
7176 (compare_window_configurations): Handle resize_proportionally.
7177 (WINDOW_TOTAL_SIZE): New macro.
7178 (window_min_size, shrink_windows, size_window): Use it.
7179 (check_min_window_sizes): Remove. Invalid values of
7180 window-min-height|width are handled by window_min_size_2 now.
7181 (size_window, Fsplit_window, enlarge_window)
7182 (adjust_window_trailing_edge, grow_mini_window): Don't call
7183 check_min_window_sizes.
7184 (window_min_size_2, window_min_size_1, window_min_size):
7185 New argument safe_p for retrieving "safe" minimum sizes.
7186 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7187 (adjust_window_trailing_edge, grow_mini_window):
7188 Adjust arguments of window_min_size... functions.
7189 (shrink_windows): Argument min_size removed. New argument
7190 safe_p allows shrinking windows to their safe minimum sizes.
7191 Calculate minimum size and decide whether a window shall be
7192 deleted for each window individually.
7193 (size_window): When nodelete_p equals 2, tell shrink_windows to
7194 delete windows only if their new minimum size is no more safe.
7195 (shrink_window_lowest_first): Call window_min_size_1 to make
7196 sure to preserve modeline of bottom-most window when resizing
7197 the minibuffer.
7198 (Fset_window_configuration, Fcurrent_window_configuration)
7199 (compare_window_configurations): Do not handle
7200 window-min-height|width any more.
7201 (syms_of_window): Clarify window-min-height|width doc-strings.
7202
72032008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7204
7205 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7206 some more. Copy some of the code from Ftry_completions.
7207 Remove special case code that dates back to initial revision when the
7208 slash was only added when necessary and that can't trigger nowadays.
7209
72102008-04-27 Kenichi Handa <handa@m17n.org>
7211
7212 * font.c (font_prop_validate): Signal `error' instead of `font'.
7213
72142008-04-29 Jason Rumney <jasonr@gnu.org>
7215
7216 * w32fns.c (Fw32_battery_status): New defun.
7217 (syms_of_w32fns): Defsubr it.
7218
72192008-04-28 Andreas Schwab <schwab@suse.de>
7220
7221 * dired.c (file_name_completion): Fix another mixing of encoded
7222 and decoded names.
7223
72242008-04-28 Juanma Barranquero <lekktu@gmail.com>
7225
7226 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7227
72282008-04-27 Juanma Barranquero <lekktu@gmail.com>
7229
7230 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7231
72322008-04-27 Andreas Schwab <schwab@suse.de>
7233
7234 * dired.c (file_name_completion): Fix inappropriate mixing of
7235 encoded and decoded names.
7236
7237 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7238
7239 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7240
72412008-04-26 Eli Zaretskii <eliz@gnu.org>
7242
7243 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7244 2008-03-31, it's not needed anymore with `struct stat' definition
7245 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7246 for the same reasons.
7247
72482008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7249
7250 * m/sparc.h: Additional redefinitions for GNU/Linux.
7251
72522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7253
7254 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7255 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7256 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7257 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7258 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7259 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7260 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7261 Likewise.
7262
7263 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7264 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7265 (mac_ax_number_of_characters): Add externs.
7266 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7267 [USE_MAC_TSM]: Likewise.
7268 (mac_handle_text_input_event) [MAC_OSX]:
7269 Handle kEventTextInputOffsetToPos for no active input area case.
7270 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7271 (mac_handle_document_access_event)
7272 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7273 (install_application_handler) [MAC_OSX]: Register handlers for
7274 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7275 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7276 Register mac_handle_document_access_event.
7277
7278 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7279 Make functions non-static.
7280
72812008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7282
7283 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7284 (read_file_name_completion_ignore_case, insert_default_directory)
7285 (Qdefault_directory): Move to minibuffer.el.
7286 (Fread_file_name): Call the new `read-file-name' instead.
7287
72882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7289
7290 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7291 Make function non-static.
7292 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7293 Remove function.
7294 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7295 Move to mactoolbox.c.
7296 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7297
7298 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7299 (mac_rect_make): New macro.
7300
7301 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7302 instead of float.
7303 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7304 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7305 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7306 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7307 CGRectMake.
7308 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7309 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7310 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7311 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7312 instead of WindowRef in argument type.
7313 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7314 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7315 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7316 instead of DISPLAY. All uses changed.
7317 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7318 (x_calc_absolute_position): Simplify so as not to use
7319 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7320
7321 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7322 instead of WindowRef in argument type.
7323 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7324 [TARGET_API_MAC_CARBON]: Remove externs.
7325 (create_apple_event, mac_event_parameters_to_lisp)
7326 [TARGET_API_MAC_CARBON]: Add externs.
7327
7328 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7329 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7330 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7331 is clicked.
7332 (x_activate_menubar): Remove extern for saved_menu_event_location.
7333 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7334 Move from mac.c.
7335
73362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7337
7338 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7339 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7340
73412008-04-23 Jason Rumney <jasonr@gnu.org>
7342
7343 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7344 attributes only for local files.
7345
7346 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7347 default to Qlocal.
7348
73492008-04-22 Juri Linkov <juri@jurta.org>
7350
7351 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7352 read-buffer-to-switch instead of using the letter "B".
7353
73542008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7355
7356 * fileio.c (Qdefault_directory): New variable.
7357 (Fread_file_name): Use it to pass `dir' to the completion functions.
7358
73592008-04-20 Chong Yidong <cyd@stupidchicken.com>
7360
7361 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7362
73632008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7364
7365 * keyboard.c (Vpre_help_message): Remove.
7366 (show_help_echo): Remove default C code.
7367
7368 * dired.c (directory_files_internal, file_name_completion):
7369 Only call ENCODE_FILE if the string is indeed decoded.
7370
73712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7372
7373 * Makefile.in (TOOLKIT_DEFINES): Remove.
7374 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7375
73762008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7377
7378 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7379 (mactoolbox.o): New target.
7380
7381 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7382 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7383
7384 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
7385 Use mac_set_frame_window_background instead of XSetWindowBackground.
7386 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
7387 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
7388 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
7389 instead of SetWindowTitleWithCFString.
7390 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
7391 Move function to mactoolbox.c.
7392 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
7393 Use mac_set_window_modified instead of SetWindowModified.
7394 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
7395 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
7396 (Fx_focus_frame): Use mac_front_non_floating_window instead of
7397 FrontNonFloatingWindow. Use mac_activate_window instead of
7398 ActivateWindow. Use mac_active_non_floating_window instead of
7399 ActiveNonFloatingWindow.
7400 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
7401 Use mac_show_hourglass and mac_hide_hourglass.
7402 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
7403 instead of GetGlobalMouse.
7404 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
7405 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
7406 Use mac_bring_window_to_front instead of BringToFront.
7407 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
7408 mactoolbox.c.
7409 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
7410 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
7411 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
7412 mactoolbox.c.
7413
7414 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
7415 (XtPointer): Move typedef from macmenu.c.
7416 (enum button_type): Move enum from macmenu.c.
7417 (widget_value): Move typedef from macmenu.c.
7418 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
7419 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7420 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7421 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7422 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7423 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7424 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7425 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
7426 (Selection): Move typedef from macselect.c.
7427 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
7428 macterm.c.
7429 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
7430 (mac_is_window_collapsed, mac_bring_window_to_front)
7431 (mac_send_window_behind, mac_hide_window, mac_show_window)
7432 (mac_collapse_window, mac_front_non_floating_window)
7433 (mac_active_non_floating_window, mac_activate_window)
7434 (mac_move_window_structure, mac_move_window, mac_size_window)
7435 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
7436
7437 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
7438 (enum mac_menu_kind): Move enum to mactoolbox.c.
7439 (min_menu_id): Move variable to mactoolbox.c.
7440 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
7441 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
7442 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
7443 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
7444 [TARGET_API_MAC_CARBON]: Likewise.
7445 (XtPointer): Move typedef to macgui.h.
7446 (enum button_type): Move enum to macgui.h.
7447 (widget_value): Move typedef to macgui.h.
7448 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7449 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7450 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7451 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7452 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7453 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7454 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
7455 (popup_activated_flag): Make variable non-static.
7456 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
7457 (add_menu_item, fill_menu, dispose_menus):
7458 Move functions to mactoolbox.c.
7459 (restore_show_help_function, menu_target_item_handler)
7460 (install_menu_target_item_handler, mac_handle_dialog_event)
7461 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
7462 [TARGET_API_MAC_CARBON]: Likewise.
7463 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
7464 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7465 (find_and_call_menu_selection, name_is_separator): Make function
7466 non-static.
7467 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
7468 to mactoolbox.c.
7469 (set_frame_menubar): Don't call install_menu_quit_handler.
7470 (menu_item_selection): New variable.
7471 (mac_menu_show): Use create_and_show_popup_menu.
7472 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
7473 selection but set variable menu_item_selection. All uses changed.
7474 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
7475 Call install_menu_quit_handler. Move to mactoolbox.c.
7476
7477 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
7478 (Selection): Move typedef to macgui.h.
7479 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
7480 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
7481 Make variables non-static.
7482 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7483 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
7484 Make functions non-static.
7485 (Vmac_service_selection) [MAC_OSX]: Likewise.
7486 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
7487 (mac_valid_selection_target_p, mac_clear_selection)
7488 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7489 (mac_put_selection_value, mac_selection_has_target_p)
7490 (mac_get_selection_value, mac_get_selection_target_list)
7491 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
7492 Move functions to mactoolbox.c.
7493 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
7494 Likewise.
7495 (copy_scrap_flavor_data, mac_handle_service_event)
7496 (install_service_handler) [MAC_OSX]: Likewise.
7497 (syms_of_macselect) <Vmac_dnd_known_types>:
7498 Use mac_dnd_default_known_types.
7499
7500 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
7501 Move to mactoolbox.c.
7502 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
7503 (Fx_selection_owner_p): Add EXFUN.
7504 (install_window_handler, remove_window_handler, XSetWindowBackground):
7505 Remove externs.
7506 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
7507 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
7508 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
7509 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
7510 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
7511 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
7512 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
7513 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
7514 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
7515 (create_and_show_popup_menu, mac_get_selection_from_symbol)
7516 (mac_valid_selection_target_p, mac_clear_selection)
7517 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7518 (mac_put_selection_value, mac_selection_has_target_p)
7519 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
7520 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
7521 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
7522 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7523 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
7524 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7525 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
7526 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7527 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7528
7529 * mactoolbox.c: New file.
7530
75312008-04-18 Jason Rumney <jasonr@gnu.org>
7532
7533 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
7534
75352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7536
7537 * character.c (Fmultibyte_char_to_unibyte):
7538 Return latin1 chars unchanged.
7539
7540 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
7541 relocated if it points to `name'.
7542
75432008-04-17 Kenichi Handa <handa@m17n.org>
7544
7545 * data.c (Faset): Allow setting a multibyte character in an
7546 ASCII-only unibyte string.
7547
7548 * lisp.h (STRING_SET_MULTIBYTE): New macro.
7549
75502008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
7551
7552 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
7553 done in config.h.
7554
75552008-04-16 Juanma Barranquero <lekktu@gmail.com>
7556
7557 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
7558 (Fchar_direction): Add usage in the docstring.
7559
75602008-04-15 Chong Yidong <cyd@stupidchicken.com>
7561
7562 * keyboard.c (read_key_sequence): Remove always-true checks.
7563
75642008-04-14 Jason Rumney <jasonr@gnu.org>
7565
7566 * w32font.c (w32font_open_internal): Set max_bounds.descent in
7567 compatibility struct, for better underline positioning.
7568
75692008-04-13 David Hansen <david.hansen@gmx.net>
7570
7571 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
7572 string.
7573
75742008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7575
7576 * m/hp800.h (XUINT, XSET): Remove.
7577
75782008-04-12 Juanma Barranquero <lekktu@gmail.com>
7579
7580 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
7581 previous change.
7582
75832008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7584
7585 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
7586 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
7587
75882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7589
7590 * keymap.h (map_keymap_canonical): Declare.
7591 * xmenu.c (single_keymap_panes): Use it.
7592
75932008-04-11 Glenn Morris <rgm@gnu.org>
7594
7595 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
7596 set the target's value to that of the alias.
7597
75982008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7599
7600 * term.c (set_tty_color_mode): Left over typo.
7601
76022008-04-10 Michael Albinus <michael.albinus@gmx.de>
7603
7604 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
7605 only after check for file name handler functions. Signal, when
7606 native functionality is not supported.
7607 (syms_of_fileio): Declare it unconditionally.
7608
76092008-04-10 Jason Rumney <jasonr@gnu.org>
7610
7611 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
7612 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
7613
7614 * w32.c (logon_network_drive): Also logon to remote drives that
7615 are mapped to drive letters.
7616
76172008-04-10 Glenn Morris <rgm@gnu.org>
7618
7619 * xdisp.c (truncate-partial-width-windows): Doc fix.
7620
76212008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
7622
7623 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
7624 Move functions to minibuffer.el.
7625 (syms_of_fileio): Don't declare them.
7626
76272008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7628
7629 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
7630 (syms_of_minibuf): Remove its initialization.
7631
7632 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
7633
76342008-04-09 Juanma Barranquero <lekktu@gmail.com>
7635
7636 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
7637
76382008-04-09 Jason Rumney <jasonr@gnu.org>
7639
7640 * makefile.w32-in (distclean): Delete makefile too.
7641 (maintainer-clean): New target.
7642
7643 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
7644
7645 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
7646 for new font backend and composite cases.
7647
76482008-04-09 Jan Djärv <jan.h.d@swipnet.se>
7649
7650 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
7651 Most of the code moved to run_timers.
7652 (do_pending_atimers): Call run_timers.
7653 (run_timers): New function.
7654
7655 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
7656 run atimers.
7657
7658 * process.c (wait_reading_process_output): The same as above.
7659
76602008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7661
7662 * minibuf.c (last_exact_completion): Remove variable.
7663 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
7664 (complete_and_exit_1, complete_and_exit_2)
7665 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
7666 (Fdisplay_completion_list, display_completion_list_1)
7667 (Fminibuffer_completion_help, Fself_insert_and_exit)
7668 (Fexit_minibuffer, Fminibuffer_message): Move functions to
7669 minibuffer.el.
7670 (syms_of_minibuf): Remove corresponding initializations.
7671
7672 * keyboard.c (Qdeactivate_mark): New var.
7673 (command_loop_1): Use it to call `deactivate-mark'.
7674 (syms_of_keyboard): Initialize it.
7675
7676 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
7677 to another frame.
7678 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
7679 Don't call set_tty_color_mode.
7680 (store_frame_param): Reset previous_frame rather than call
7681 set_tty_color_mode.
7682 * term.c (set_tty_color_mode): Rewrite.
7683 * dispextern.h (set_tty_color_mode): New type.
7684 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
7685
76862008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
7687
7688 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
7689 for generic chars, which do not exist any more in emacs-unicode.
7690
76912008-04-08 Michael Albinus <michael.albinus@gmx.de>
7692
7693 * coding.c (detect_coding_emacs_mule)
7694 (Ffind_operation_coding_system): Fix typo.
7695
76962008-04-08 Jason Rumney <jasonr@gnu.org>
7697
7698 * w32uniscribe.c (SNAME): Extract only symbol name.
7699
7700 * w32font.h (struct w32_metric_cache): New struct.
7701 (w32font_info): Use it.
7702 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
7703 (CACHE_BLOCKSIZE): New constants.
7704
7705 * w32font.c (Qja, Qko, Qzh): New symbols.
7706 (syms_of_w32font): Initialise them.
7707 (font_matches_spec): Use them to filter by language.
7708 (recompute_cached_metrics): Remove function.
7709 (compute_metrics, clear_cached_metrics): New functions.
7710 (w32font_encode_char): Use them to manage metric cache.
7711 (w32font_text_extents): Cache metrics for all glyphs on demand.
7712 Delay converting glyph indices to WORD until needed.
7713 (w32font_open_internal): Initialize metric cache to empty.
7714 (registry_to_w32_charset): Charset should always be a symbol.
7715 (fill_in_logfont, list_all_matching_fonts): Family should
7716 always be a symbol.
7717
77182008-04-06 Jason Rumney <jasonr@gnu.org>
7719
7720 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
7721 Give up if glyph indices not supported. Use uniscribe obtained
7722 ABC widths for individual metrics. Map glyph clusters back to
7723 characters using fClusterStart flag. Return number of glyphs
7724 produced, not chars processed.
7725 (uniscribe_shape): Map char at FROM to current glyph.
7726
77272008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7728
7729 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
7730 Use SetMenuItemHierarchicalMenu.
7731
77322008-04-05 Jason Rumney <jasonr@gnu.org>
7733
7734 * image.c (pbm_load): Allow color values up to 65535.
7735 Throw an error if max_color_idx is outside the supported range.
7736 Report an error when image size is invalid.
7737 Read two bytes at a time when raw images have max_color_idx above 255.
7738
77392008-04-05 Eli Zaretskii <eliz@gnu.org>
7740
7741 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7742 cFileName a file name that includes `?' characters, use the 8+3
7743 alias in cAlternateFileName instead.
7744
77452008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
7746
7747 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
7748 append "CCL: Quitted" when the CCL program is quitted.
7749 (setup_ccl_program): Initialize ccl->quit_silently to zero.
7750
7751 * ccl.h (struct ccl_program): New member quit_silently.
7752
77532008-04-05 Chong Yidong <cyd@stupidchicken.com>
7754
7755 * search.c (compile_pattern_1): Treat non-nil and non-string of
7756 search-spaces-regexp as nil.
7757
7758 * minibuf.c (Fassoc_string): Tweak docstring.
7759
77602008-04-05 Eli Zaretskii <eliz@gnu.org>
7761
7762 * dired.c (Ffile_attributes): Support inode numbers wider than 32
7763 bits. Remove ugly WINDOWSNT-specific kludge introduced on
7764 2008-03-14 to force inode be positive.
7765
7766 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
7767 _S_* ones, since we now use our own sys/stat.h.
7768 (stat, fstat): Don't mangle the inode number.
7769 (init_user_info): Don't restrict UID and GID to 0-60000 range.
7770
77712008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
7772
7773 * frame.h (struct frame): Give one more bit to `visible' since we use
7774 values larger than 1 to indicate obscured frames on ttys.
7775
7776 * keymap.c (Qkeymap_canonicalize): New var.
7777 (Fmap_keymap_internal): New fun.
7778 (describe_map): Use keymap-canonicalize.
7779
7780 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
7781 (Fundo_boundary): Set them.
7782 (syms_of_undo): Initialize them.
7783 (record_point): Use them instead of last_point_position*.
7784 (last_undo_buffer): Change type.
7785
77862008-04-04 Jason Rumney <jasonr@gnu.org>
7787
7788 * w32font.c (w32font_text_extents): Use font's ascent and descent.
7789 (recompute_cached_metrics): Don't set ascent and descent per char.
7790
7791 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
7792 (uniscribe_check_otf): Add GC protection before consing.
7793 Rearrange loop for counting features.
7794
77952008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
7796
7797 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
7798 buffer with byte-size of source buffer.
7799
78002008-04-03 Chong Yidong <cyd@stupidchicken.com>
7801
7802 * callint.c (Fcall_interactively): Handle temporary region even
7803 when shift-select-mode is off.
7804
78052008-04-03 Jason Rumney <jasonr@gnu.org>
7806
7807 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
7808
78092008-04-03 Kenichi Handa <handa@m17n.org>
7810
7811 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
7812 (CATEGORY_MASK_UTF_16): Likewise.
7813 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
7814 binary file.
7815 (detect_coding): Add null-byte detection for a binary file.
7816 (detect_coding_system): Likewise.
7817
78182008-04-03 Jason Rumney <jasonr@gnu.org>
7819
7820 * w32uniscribe.c: New file.
7821
7822 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
7823
7824 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
7825
7826 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
7827 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
7828 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
7829 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
7830 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
7831 (Qphonetic): New symbols.
7832 (syms_of_w32font): Initialize them.
7833 (font_supported_scripts): Use them.
7834 (w32font_list_family): List all charsets.
7835 (w32font_text_extents, recompute_cached_metrics): Fix metric
7836 calculations.
7837 (w32_enumfont_pattern_entity): Make full_type a DWORD.
7838 Give opentype fonts their own format.
7839 (font_matches_spec): New arguments backend and logfont.
7840 Handle :otf spec for uniscribe backend.
7841 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
7842 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
7843
7844 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
7845 font backend.
7846 (globals_of_w32fns): Initialize uniscribe font backend.
7847
7848 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
7849 dependencies.
7850 (w32uniscribe.$(O)): New file to build.
7851 (FONT_OBJ): Include w32uniscribe.$(O).
7852 (LIBS): Add uniscribe libraries.
7853
7854 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
7855
78562008-04-02 Chong Yidong <cyd@stupidchicken.com>
7857
7858 * callint.c (Vshift_select_mode): New var.
7859 (Finteractive): Document new ^ spec.
7860 (Fcall_interactively): Call handle-shift-selection if the ^ spec
7861 is present.
7862
7863 * keyboard.c (Vthis_command_keys_shift_translated): New var.
7864 (command_loop_1): Avoid running the direct display versions of
7865 forward-char and backward-char if shift-selection may occur.
7866 (read_key_sequence): Set Vthis_command_keys_shift_translated if
7867 shift-translation takes place.
7868
7869 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
7870 avoid clobbering by define-minor-mode.
7871
7872 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
7873 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
7874
7875 * syntax.c (Fforward_word): Add ^ interactive spec.
7876
7877 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
7878 (Fscroll_right): Add ^ interactive spec.
7879
78802008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
7881
7882 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
7883
7884 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
7885
7886 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
7887
78882008-03-31 Juri Linkov <juri@jurta.org>
7889
7890 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
7891
78922008-03-30 Jan Djärv <jan.h.d@swipnet.se>
7893
7894 * gtkutil.c (xg_set_geometry): Fix indentation.
7895 (xg_resize_outer_widget): Remove.
7896 (x_wm_size_hint_off): Fix indentation.
7897 (xg_frame_set_char_size): Call flush_and_sync after
7898 gtk_window_resize.
7899 (x_wm_set_size_hint): Pass NULL as geometry window to
7900 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
7901 Add menu bar and tool bar height to base height.
7902 (xg_update_frame_menubar, free_frame_menubar)
7903 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7904 (update_frame_tool_bar, free_frame_tool_bar):
7905 Change xg_resize_outer_widget to xg_frame_set_char_size.
7906
79072008-03-30 Michael Albinus <michael.albinus@gmx.de>
7908
7909 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
7910 (Fdbus_call_method): New parameter TIMEOUT.
7911 (dbus-send-signal): Optimize UNGCPRO call.
7912
79132008-03-29 Juri Linkov <juri@jurta.org>
7914
7915 * window.c (Fdisplay_buffer): Move call to
7916 Vsplit_window_preferred_function out of conditions that check
7917 if window is eligible for vertical splitting.
7918 When Vsplit_window_preferred_function is non-nil, call it and use
7919 its non-nil return value as window. Otherwise, continue doing
7920 vertical splitting using Fsplit_window with arg horflag=nil.
7921 (syms_of_window) <Vsplit_window_preferred_function>: Change the
7922 default value from `split-window' to nil.
7923
79242008-03-29 Juri Linkov <juri@jurta.org>
7925
7926 * callint.c (Fcall_interactively): Revert 2008-03-16 change
7927 for interactive code letters 'b' and 'B'.
7928
79292008-03-29 Eli Zaretskii <eliz@gnu.org>
7930
7931 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
7932 multibyte string.
7933
79342008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
7935
7936 * keyboard.c (pending_funcalls): New var.
7937 (timer_check): Run it.
7938 (syms_of_keyboard): Initialize it.
7939 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
7940 (Vdelete_terminal_functions): New vars.
7941 (syms_of_terminal): Initialize them.
7942 (Fdelete_terminal): Run delete-terminal-functions.
7943 * xdisp.c (safe_eval): Rewrite.
7944 (safe_call2): New fun.
7945 * frame.c (Qdelete_frame_functions): New var.
7946 (syms_of_frame): Initialize it.
7947 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
7948 * lisp.h (safe_call2, pending_funcalls): Declare.
7949
79502008-03-28 Andreas Schwab <schwab@suse.de>
7951
7952 * indent.c (Fmove_to_column): Move declaration before statements.
7953
79542008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
7955
7956 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
7957 (struct frame): Use bit fields for boolean vars.
7958
7959 * process.c (server_accept_connection): Simplify naming.
7960 (emacs_get_tty_pgrp): Use SDATA.
7961
7962 * coding.c (decode_coding_object): Fix last change.
7963
79642008-03-27 Jason Rumney <jasonr@gnu.org>
7965
7966 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
7967
79682008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
7969
7970 * charset.c (Fdefine_charset_internal): Change the way of
7971 registering charsets in Vcharset_order_list.
7972 (syms_of_charset): Make the charset `eight-bit' supplementary.
7973
79742008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
7975
7976 * regex.c (EXTEND_BUFFER): Change order of pointer addition
7977 operations, to avoid having the difference between pointers
7978 overflow.
7979
79802008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7981
7982 * indent.c (check_display_width): New fun.
7983 (scan_for_column): Use it.
7984
7985 * data.c (syms_of_data): Mark most-positive-fixnum and
7986 most-negative-fixnum as constants.
7987
7988 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
7989
7990 * indent.c (scan_for_column): Extract from current_column_1.
7991 Merge with the same code from Fmove_to_column.
7992 (current_column_1, Fmove_to_column): Use it.
7993
79942008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7995
7996 * keymap.c (map_keymap_internal): New fun.
7997 (map_keymap): Use it.
7998 (Fmap_keymap_internal): New fun.
7999 (Fmap_keymap): Remove left-out test from before make_save_value.
8000
8001 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8002
8003 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8004 Use XCAR/XCDR.
8005
8006 * process.h (struct Lisp_Process): Remove filter_multibyte.
8007 * process.c (QCfilter_multibyte): Remove.
8008 (setup_process_coding_systems): Don't use filter_multibyte.
8009 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8010 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8011 (Fset_process_filter_multibyte): Change the coding-system to
8012 approximate the previous behavior.
8013 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8014 coding-system.
8015
8016 * coding.c (decode_coding_object): When not decoding into a buffer,
8017 obey the coding system's preference of (uni|multi)byte.
8018
80192008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8020
8021 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8022 every char is changed and has a different byte-length.
8023 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8024 Fix int -> EMACS_INT.
8025
80262008-03-23 David Hansen <david.hansen@gmx.net>
8027
8028 * dbusbind.c (xd_read_message): Remove extra copying of message
8029 strings. Check for NULL `interface' or `member'.
8030
80312008-03-22 Eli Zaretskii <eliz@gnu.org>
8032
8033 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8034 cFileName a file name that includes `?' characters, use the 8+3
8035 alias in cAlternateFileName instead.
8036
80372008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8038
8039 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8040
80412008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8042
8043 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8044 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8045 work on current_buffer only instead (that was already the case
8046 for some of the code anyway).
8047 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8048 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8049 (SET_PT, SET_PT_BOTH): Adjust.
8050 * intervals.h (set_point, temp_set_point, set_point_both)
8051 (temp_set_point_both): Remove redundant declarations.
8052
80532008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 * fileio.c (Finsert_file_contents):
8056 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8057 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8058 when buffer != current_buffer anyway.
8059
80602008-03-20 Andreas Schwab <schwab@suse.de>
8061
8062 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8063 as default.
8064
80652008-03-19 Jason Rumney <jasonr@gnu.org>
8066
8067 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8068 (syms_of_w32fns): Initialize them.
8069 (HOURGLASS_ID): New constant.
8070 (x_window_to_frame): Don't check hourglass_window.
8071 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8072 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8073 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8074 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8075 Only change the cursor if hourglass is not active.
8076 (Fx_create_frame): Initialize frame's current_cursor.
8077 (hourglass_atimer): Remove.
8078 (hourglass_started): New function.
8079 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8080 (show_hourglass): Adapt to w32, changing argument to frame.
8081
8082 * w32term.h (struct w32_output): Remove hourglass_window.
8083 Add current_cursor.
8084
8085 * eval.c (call_debugger, Fsignal):
8086 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8087 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8088 (Fexecute_extended_command, cancel_hourglass_unwind):
8089 * minibuf.c (read_minibuf):
8090 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8091
80922008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8093
8094 * window.c (run_funs): New fun.
8095 (run_window_configuration_change_hook): Use it to run the buffer-local
8096 and the global part of the hook.
8097
8098 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8099 (unwind_format_mode_line): Restore selected window.
8100 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8101
81022008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8103
8104 * editfns.c (Fchar_equal): Check they are valid characters.
8105
8106 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8107
81082008-03-17 Andreas Schwab <schwab@suse.de>
8109
8110 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8111 against a charset.
8112
8113 * lisp.h (Fbuffer_list): Declare.
8114
81152008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8116
aac0c6e3
MR
8117 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8118 handlebox_widget is != 0.
8119
81202008-03-16 Juri Linkov <juri@jurta.org>
8121
8122 * callint.c (Fcall_interactively): For interactive code letters
8123 'b' and 'B' put the buffer list into the list of default "future"
8124 values of the minibuffer.
8125
81262008-03-16 Andreas Schwab <schwab@suse.de>
8127
8128 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8129 modifiers.
8130
8131 * regex.c (re_match_2_internal): Correct matching of a charset
8132 against latin-1 characters.
8133
81342008-03-16 Kenichi Handa <handa@m17n.org>
8135
8136 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8137 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8138 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8139 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8140 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8141 CHAR_STRING_ADVANCE.
8142 (produce_chars): Fix for the case that the source and the
8143 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8144 instead of CHAR_STRING_ADVANCE.
8145 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8146 STRING_CHAR_ADVANCE.
8147
81482008-03-15 Andreas Schwab <schwab@suse.de>
8149
8150 * regex.c (re_match_2_internal): Correct matching of eight bit
8151 characters in unibyte strings.
8152
81532008-03-15 Martin Rudalics <rudalics@gmx.at>
8154
8155 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8156 at end of range when it coincides with the end of the buffer.
8157
81582008-03-14 Eli Zaretskii <eliz@gnu.org>
8159
8160 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8161
8162 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8163
81642008-03-14 Jason Rumney <jasonr@gnu.org>
8165
8166 * editfns.c (initial_tz): New variable.
8167 (syms_of_editfns): Initialize it.
8168 (Fset_time_zone_rule): Set it when first called.
8169 Use it when TZSTRING is nil.
8170
8171 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8172 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8173 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8174 (globals_of_w32fns): Initialize them.
8175 (compute_tip_xy): Use them to position tooltips.
8176
81772008-03-14 Glenn Morris <rgm@gnu.org>
8178
8179 * emacs.c (main): Revert previous change.
8180 (standard_args): Revert -internal-script back to -scriptload,
8181 and remove the long-option form.
8182
81832008-03-13 Glenn Morris <rgm@gnu.org>
8184
8185 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8186 Remove option -enable-font-backend.
8187
81882008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8189
8190 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8191
81922008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8193
8194 * xterm.c (x_connection_closed): For GTK: If this is the last
8195 terminal just exit without closing the display.
8196
81972008-03-11 Jason Rumney <jasonr@gnu.org>
8198
8199 * w32font.c (w32font_full_name): Use floor to round.
8200
f0131492 82012008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8202
8203 * sound.c (alsa_configure): Declare vol at beginning of block.
8204
8205 * fontset.c (Ffontset_info): Remove extra semicolon.
8206
82072008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8208
8209 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8210 size of resulting string.
8211
82122008-03-10 Jason Rumney <jasonr@gnu.org>
8213
8214 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8215
82162008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8217
8218 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8219 Don't pretend as if characters with display property haven't been
8220 consumed for string-replacing-string case.
8221
82222008-03-08 Kim F. Storm <storm@cua.dk>
8223
8224 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8225 (get_next_display_element, next_element_from_string)
8226 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8227
82282008-03-08 Andreas Schwab <schwab@suse.de>
8229
8230 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8231
82322008-03-06 Jason Rumney <jasonr@gnu.org>
8233
8234 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8235 when charset not specified. Only translate ANSI to unicode when
8236 font_type is truetype.
8237 (w32font_coverage_ok): New function.
8238 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8239
82402008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8241
8242 * lread.c (Fread_char): Resolve modifiers.
8243 (Fread_char_exclusive): Likewise.
8244
8245 * character.c (char_resolve_modifier_mask): New function.
8246 (char_string): Use char_resolve_modifier_mask.
8247 (Fchar_resolve_modifiers): New function.
8248 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8249 function.
8250
82512008-03-04 Jason Rumney <jasonr@gnu.org>
8252
8253 * makefile.w32-in: Always include w32font.c in the build.
8254 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8255
82562008-03-04 Andreas Schwab <schwab@suse.de>
8257
8258 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8259 (versionclean): Likewise.
8260
82612008-03-04 Juanma Barranquero <lekktu@gmail.com>
8262
8263 * .cvsignore: Add oo.
8264
82652008-03-03 Andreas Schwab <schwab@suse.de>
8266
8267 * coding.c (decode_coding_object): Inhibit gap shrinking while
8268 decoding in place.
8269
82702008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8271
8272 * w32term.c: Remove unused include "gnu.h".
8273 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8274
8275 * gnu.h: Rename to ...
8276 * emacs-icon.h: ... this.
8277 * xterm.c: Use emacs-icon.h instead of gnu.h.
8278 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8279
82802008-03-03 Juanma Barranquero <lekktu@gmail.com>
8281
8282 * w32font.c: Include math.h.
8283
82842008-03-03 Jason Rumney <jasonr@gnu.org>
8285
8286 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8287 Compute options separately.
8288 (w32font_open_internal): Set glyph_idx before caching metrics.
8289
8290 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8291 Define if system headers don't.
8292 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8293 (w32font_encode_char): Don't declare here.
8294
8295 * w32font.c (Quniscribe, QCformat): New symbols.
8296 (syms_of_w32font): Define them.
8297 (w32font_has_char): Indicate uncertainty.
8298 (w32font_encode_char): Encode as glyph point. Make static.
8299 (recompute_cached_metrics): New function.
8300 (w32font_open_internal): Use it. Set font to use glyph points
8301 initially. Set format based on type of font.
8302 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8303 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8304 on it. Set format based on information available here.
8305 (add_font_entity_to_list): Identify backend based on opentype_only.
8306
83072008-03-02 Andreas Schwab <schwab@suse.de>
8308
8309 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8310
8311 * coding.c (decode_coding_big5, produce_chars):
8312 Fix typos in last change.
8313
83142008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8315
8316 * gnu.h: New icon.
8317
83182008-03-02 Kenichi Handa <handa@m17n.org>
8319
8320 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8321 `dos', don't decode '\r' if that is the last in the source.
8322 (decode_coding_utf_16, decode_coding_emacs_mule)
8323 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8324 (decode_coding_raw_text, decode_coding_charset): Likewise.
8325 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8326
83272008-03-01 Jason Rumney <jasonr@gnu.org>
8328
8329 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8330
83312008-03-01 Kim F. Storm <storm@cua.dk>
8332
8333 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8334
83352008-03-01 Jason Rumney <jasonr@gnu.org>
8336
8337 * w32font.c (w32font_full_name): New function.
8338 (w32font_open_internal): Use it.
8339
83402008-03-01 Kim F. Storm <storm@cua.dk>
8341
8342 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8343
83442008-03-01 Jason Rumney <jasonr@gnu.org>
8345
8346 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8347
83482008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8349
8350 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8351 xg_frame_resized when the event is for the edit widget.
8352
8353 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8354
8355 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8356 set_char_size.
8357 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8358 operations on widgets here. Just set frame size if needed.
8359 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8360 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8361 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8362 the whole frame.
8363 (xg_create_tool_bar): Move attachment of the tool bar to
8364 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8365 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8366
83672008-03-01 Jason Rumney <jasonr@gnu.org>
8368
8369 * w32fns.c (w32_msg_pump): Disable debug code.
8370
83712008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8372
8373 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8374
83752008-02-29 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * xdisp.c (next_overlay_string): Don't set
8378 overlay_strings_at_end_processed_p if we're currently reading from
8379 a display string.
8380
83812008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8382
8383 * xdisp.c (get_overlay_strings_1): Fix typo.
8384
83852008-02-29 Chong Yidong <cyd@stupidchicken.com>
8386
8387 * xdisp.c (get_overlay_strings_1): Add missing argument type.
8388
83892008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
8390
8391 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
8392
8393 * xdisp.c (display_mode_element): Cancel the previous change.
8394 (decode_mode_spec): Likewise.
8395 (handle_auto_composed_prop): Don't make composition if it->string
8396 is a string.
8397
83982008-02-27 Kim F. Storm <storm@cua.dk>
8399
8400 * lisp.h (GLYPH): Change type from int to struct with separate char
8401 and face_id members.
8402 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
8403 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
8404 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
8405 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
8406 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
8407 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
8408 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
8409 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
8410 handle new Lisp glyph code encoding, either an integer or a cons.
8411
8412 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
8413 (GLYPH_ALIAS): Delete.
8414 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
8415 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
8416 (GLYPH_FROM_CHAR): Replace macro by ...
8417 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
8418
8419 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
8420 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
8421 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
8422 (GLYPH_INVALID_P): New macro.
8423 (spec_glyph_lookup_face): Update prototype.
8424
8425 * dispnew.c (line_draw_cost): Adapt to new glyph type.
8426 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
8427 new glyph code encoding.
8428 (spec_glyph_lookup_face): No return value; update passed glyph instead.
8429 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
8430
8431 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8432 Adapt to new glyph type and new glyph code encoding.
8433
8434 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
8435
8436 * indent.c (current_column, current_column_1, Fmove_to_column)
8437 (compute_motion): Adapt to new glyph code encoding.
8438
8439 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
8440
84412008-02-27 Chong Yidong <cyd@stupidchicken.com>
8442
8443 * process.c (wait_reading_process_output): Check for window
8444 changes caused by timers.
8445 Suggested by Johan Bockgård.
8446
84472008-02-27 Glenn Morris <rgm@gnu.org>
8448
8449 * emacs.c (USAGE1): Add `--disable-font-backend'.
8450
84512008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
8452
8453 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
8454 is made to the buffer.
8455
84562008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
8457
8458 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
8459 (face_at_string_position):
8460 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
8461 (face_at_string_position):
8462 * xdisp.c (display_string, next_overlay_change):
8463 * buffer.h (overlays_at):
8464 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
8465 Update callers.
8466
84672008-02-26 Chong Yidong <cyd@stupidchicken.com>
8468
8469 * editfns.c (Fformat): Doc fix.
8470
84712008-02-26 Juanma Barranquero <lekktu@gmail.com>
8472
8473 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
8474 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
8475 (Ffont_otf_alternates, Fquery_font): Doc fixes.
8476
84772008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8478
8479 * buffer.c (Fbuffer_swap_text): New function.
8480 (syms_of_buffer): Defsubr it.
8481
84822008-02-25 Chong Yidong <cyd@stupidchicken.com>
8483
8484 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
8485
84862008-02-25 Jason Rumney <jasonr@gnu.org>
8487
8488 * w32font.c (w32font_draw): Draw one character at a time when padding.
8489
84902008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8491
8492 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
8493 Handle a nil arg. Use run_window_configuration_change_hook.
8494 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
8495 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
8496 Use run_window_configuration_change_hook.
8497
84982008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8499
8500 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
8501 1-pixel width.
8502
85032008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8504
8505 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
8506 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
8507 if the glyph in the font is zero pixel with.
8508
8509 * dispextern.h (struct glyph_string): New member padding_p.
8510
8511 * w32font.c (w32font_draw): Pay attention to s->padding_p.
8512
8513 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
8514
8515 * xfont.c (xfont_draw): Pay attention to s->padding_p.
8516
8517 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
8518
8519 * font.c: If the font driver doesn't have `shape' function, return Qnil.
8520
85212008-02-25 Jason Rumney <jasonr@gnu.org>
8522
8523 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
8524
85252008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
8526
8527 Allow fine-grained image-cache flushing.
8528 * dispextern.h (struct image): Add `dependencies' field.
8529 (clear_image_caches): Change arg to Lisp_Object.
8530 * image.c (make_image): Initialize `dependencies' field.
8531 (clear_image_cache): Change arg to allow fine-grained flushing.
8532 Perform the flush even if image-cache-eviction-delay is nil.
8533 (clear_image_caches): Change arg to Lisp_Object.
8534 (Fclear_image_cache): Expand meaning of the argument.
8535 (mark_image): Mark `dependencies' field.
8536 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
8537 (lface_hash): Use XHASH rather than XFASTINT.
8538 (face_at_buffer_position): Fix int -> EMACS_INT position.
8539 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
8540 (select_frame_for_redisplay): Remove code duplication.
8541 (redisplay_internal): Adapt arg to call to clear_image_caches.
8542
85432008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
8544
8545 * s/vms4-0.h:
8546 * s/vms4-2.h:
8547 * s/vms4-4.h:
8548 * s/vms5-5.h: Remove, unused.
8549
8550 * s/irix5-2.h:
8551 * s/irix6-0.h:
8552 * s/riscos5.h:
8553 * s/mach-bsd4-3.h:
8554 * m/mips4.h: Remove files for obsolete systems.
8555
8556 * Makefile.in:
8557 * filelock.c:
8558 * unexmips.c:
8559 * m/hp9000s300.h:
8560 * m/iris4d.h:
8561 * s/aix3-1.h:
8562 * s/hpux.h:
8563 * s/msdos.h:
8564 * s/usg5-0.h:
8565 * s/usg5-2-2.h:
8566 * s/usg5-2.h:
8567 * s/usg5-3.h: Remove references to obsolete variables.
8568
8569 * s/irix5-0.h: Remove, move all the contents ...
8570 * s/irix6-5.h: ... here. Simplify.
8571 * config.in: Regenerate.
8572
85732008-02-24 Jason Rumney <jasonr@gnu.org>
8574
8575 * w32term.c (x_draw_glyph_string_background): Clear the background
8576 manually when cleartype is in use.
8577 (x_draw_glyph_string_foreground): Draw text transparently when
8578 cleartype is in use.
8579
8580 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
8581 a font into it unless we have to.
8582
85832008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8584
8585 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
8586 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 8587
aac0c6e3
MR
85882008-02-18 Jason Rumney <jasonr@gnu.org>
8589
8590 * w32fns.c (Fw32_shell_execute): Encode parameters.
8591
85922008-02-09 Eli Zaretskii <eliz@gnu.org>
8593
8594 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
8595
85962008-02-05 Juanma Barranquero <lekktu@gmail.com>
8597
8598 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
8599
86002008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
8601
8602 * xterm.c (x_set_offset): Don't change the gravity if
8603 CHANGE_GRAVITY is -1.
8604
86052008-02-23 Chong Yidong <cyd@stupidchicken.com>
8606
8607 * fileio.c (auto_save_error_occurred): New var.
8608 (auto_save_error): Set it.
8609 (Fdo_auto_save): Don't overwrite the error message if an auto-save
8610 error occurred.
8611
86122008-02-23 Eli Zaretskii <eliz@gnu.org>
8613
8614 * w32.c (globals_of_w32): Add initializations for
8615 g_b_init_get_sid_sub_authority and
8616 g_b_init_get_sid_sub_authority_count.
8617
86182008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
8619
8620 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
8621 (font_parse_xlfd): Use them for sanity check.
8622 (Finternal_set_font_style_table): Make sure the table is bijective.
8623
8624 Consolidate the image_cache to the terminal struct.
8625 * termhooks.h (P_): Remove redundant def.
8626 (struct terminal): New field `image_cache'.
8627 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
8628 of FRAME_X_IMAGE_CACHE.
8629 * xterm.h (struct x_display_info): Remove image_cache field.
8630 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8631 * w32term.h (struct w32_display_info): Remove image_cache field.
8632 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8633 * macterm.h (struct mac_display_info): Remove image_cache field.
8634 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8635 * xterm.c (x_term_init):
8636 * w32term.c (w32_term_init):
8637 * macterm.c (mac_term_init): Set the image_cache in the terminal.
8638 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
8639 Remove declarations.
8640 (clear_image_caches, mark_image_cache): New declarations.
8641 * xfaces.c (clear_face_cache):
8642 * xdisp.c (redisplay_internal): Use clear_image_caches.
8643 * image.c (clear_image_cache): Don't check that a frame is on
8644 a window-system before checking if it shares the same cache.
8645 (clear_image_caches): New function.
8646 (Fclear_image_cache): Use it.
8647 (mark_image): Move from allo.c.
8648 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
8649 * alloc.c (mark_image, mark_image_cache): Move to image.c.
8650 (mark_object): Don't call mark_image_cache for frames.
8651 (mark_terminals): Call mark_image_cache.
8652
8653 * lisp.h (Fdelete_terminal): Declare.
8654
8655 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
8656 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
8657 wrong_type_argument.
8658
86592008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
8660
8661 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
8662 malayalam.el, and tamil.el. Add sinhala.el.
8663
86642008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8665
8666 * xterm.c (x_connection_closed): Consolidate identical tests.
8667 (x_delete_terminal): Don't crash if called via x_connection_closed.
8668
86692008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
8670
8671 * xdisp.c (decode_mode_spec): New arg string.
8672 (display_mode_element): Adjust for the above change.
8673
86742008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8675
8676 * callint.c (Fcall_interactively): Use AREF.
8677
86782008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8679
8680 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
8681
86822008-02-18 Jan Djärv <jan.h.d@swipnet.se>
8683
8684 * xfns.c (Fx_show_tip): Set string to " " if empty.
8685
86862008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
8687
8688 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
8689 with Qt.
8690
86912008-02-17 Kenichi Handa <handa@m17n.org>
8692
8693 * ftfont.c (ftfont_shape): Return Lispy number.
8694
8695 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
8696 for GCs.
8697 (Finternal_set_font_selection_order): Call font_update_sort_order
8698 only when enable_font_backend is set.
8699 (realize_x_face): Set face->font_info to that of default face only
8700 when enable_font_backend is set.
8701
8702 * xdisp.c (handle_composition_prop): Set it->c to the fist
8703 character of the composed region.
8704 (fill_composite_glyph_string): Set base_face->font_info to
8705 s->font_info. Get a face for ascii from base_face->ascii_face.
8706 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
8707 with a face already decided.
8708 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
8709 non-negative.
8710 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
8711 call font_prepare_composition unconditionally.
8712
8713 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
8714
8715 * xterm.h (struct x_display_info): New member font.
8716
8717 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
8718 (x_set_mouse_face_gc, x_new_font): Likewise.
8719 (x_term_init): Setup display_info->font.
8720 (x_delete_terminal): Free display_info->font.
8721
8722 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
8723
8724 * ftxfont.c (ftxfont_default_fid): Delete it.
8725 (ftxfont_open): Set xfont->fid to 0.
8726 (ftxfont_end_for_frame): Clear data specific to the frame and the
8727 font-driver.
8728
8729 * xftfont.c (xftfont_default_fid): Delete it.
8730 (xftfont_open): Set xfont->fid to 0.
8731
8732 * fontset.c (FONTSET_OBJLIST): New macro.
8733 (fontset_find_font): Update font-object list of the fontset.
8734 (free_realized_fontset): New function.
8735 (free_face_fontset): Call free_realized_fontset.
8736 (Ffont_info): Call font_close_object only when enable_font_backend
8737 is set.
8738
8739 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
8740 [HAVE_NTGUI]: Include w32term.h.
8741 [MAC_OS]: Include macterm.ch.
8742 (font_otf_ValueRecord): Use make_number.
8743 (font_finish_cache): Fix handling of reference count.
8744 (font_clear_cache): Update num_fonts.
8745 (font_open_entity): Update smallest_char_width and
8746 smallest_font_height of the frame.
8747 (font_close_object): Update num_fonts.
8748 (Fclear_font_cache): Fix finding the target cache data.
8749
87502008-02-16 Glenn Morris <rgm@gnu.org>
8751
8752 * fontset.c (Finternal_char_font): Fix compilation warning.
8753
87542008-02-16 Eli Zaretskii <eliz@gnu.org>
8755
8756 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
8757 instead of char arrays. Enlarge the size of array passed to
8758 get_token_information.
8759
8760 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
8761 warnings.
8762
87632008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
8764
8765 * .gdbinit: Don't set `args', it breaks gdb --args.
8766
87672008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
8768
8769 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
8770 within a narrowed buffer.
8771
87722008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
8773
8774 * coding.c (decode_coding_object, encode_coding_object):
8775 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
8776
87772008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8778
8779 * coding.c (coding_set_destination): Use BEG_BYTE rather than
8780 hardcoding 1.
8781 (detect_coding_system):
8782 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
8783 (string_char_to_byte, string_byte_to_char, insert_from_gap):
8784 * insdel.c (insert_from_gap):
8785 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
8786 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
8787 (string_to_multibyte):
8788 * character.c (chars_in_text, multibyte_chars_in_text):
8789 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
8790
8791 * character.h (FETCH_STRING_CHAR_ADVANCE)
8792 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
8793 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
8794 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
8795
8796 * casefiddle.c (casify_region): Only call after-change and composition
8797 functions on the part of the region that was changed.
8798
8799 * keyboard.c (read_avail_input):
8800 * frame.c (Fdelete_frame): Call Fdelete_terminal.
8801
88022008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8803
8804 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
8805 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
8806
88072008-02-11 Juanma Barranquero <lekktu@gmail.com>
8808
8809 * w32menu.c (push_submenu_start, push_submenu_end)
8810 (push_left_right_boundary, push_menu_pane, push_menu_item):
8811 * keyboard.c (read_key_sequence): Don't pass args with side effects
8812 to AREF, it fails when compiling with -DENABLE_CHECKING.
8813
88142008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
8815
8816 * Makefile.in (${lispsource}international/charprop.el):
8817 Delete this target.
8818
8819 * search.c (boyer_moore): Fix incorrect synching of the trunk and
8820 emacs-unicode-2.
8821
88222008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8823
8824 * terminal.c (Fdelete_terminal): Clean up the `force' path.
8825
88262008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8827
8828 * frame.c (Qnoelisp): New symbol.
8829 (syms_of_frame): Initialize it.
8830 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
8831 harmless Elisp code, from a strong `force' from x_connection_closed.
8832 * frame.h (Qnoelisp): Declare.
8833 * xterm.c (x_connection_closed): Pass `noelisp'.
8834
8835 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
8836 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
8837 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
8838 rather than `int' for the type of `type'.
8839
88402008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
8841
8842 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
8843
8844 * Makefile.in (GNUC): Remove support for gcc-1.x.
8845
88462008-02-10 Richard Stallman <rms@gnu.org>
8847
8848 * lisp.h (ASET): Use AREF, not ASLOT.
8849
88502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8851
8852 * lisp.h (ASET): Check bounds.
8853
88542008-02-10 Glenn Morris <rgm@gnu.org>
8855
8856 * buffer.c (mode-name): Doc fix.
8857
88582008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8859
8860 * Makefile.in:
8861 * emacs.c:
8862 * gmalloc.c:
8863 * keyboard.c:
8864 * lisp.h:
8865 * m/ibm370aix.h:
8866 * process.c:
8867 * regex.c:
8868 * s/hpux.h:
8869 * sysdep.c:
8870 * sysselect.h:
8871 * systty.h:
8872 * unexec.c:
8873 * w32term.c:
8874 * xsmfns.c:
8875 * xterm.c: Remove code that deals with obsolete variables.
8876
8877 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
8878
8879 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
8880 nothing else needs it anymore.
8881
88822008-02-09 Eli Zaretskii <eliz@gnu.org>
8883
8884 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
8885 instead of unibyte_char_to_multibyte.
8886
88872008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8888
8889 * s/gnu-linux.h: Remove commented out code.
8890
8891 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
8892
8893 * Makefile.in: Update what RMS says about using autoconf.
8894 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
8895 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
8896 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
8897 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
8898
88992008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8900
8901 * keymap.c (Fkey_description): Move side effect outside of macro call.
8902
8903 * xfaces.c (Finternal_make_lisp_face):
8904 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
8905
8906 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
8907 (syms_of_fontset): Use ASET.
8908
8909 * fns.c (concat): Move side effect outside of macro call.
8910 (hash_clear): Use ASET.
8911
89122008-02-08 Richard Stallman <rms@gnu.org>
8913
8914 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
8915 If FORCE, and frame has a surrogate minibuffer for another frame,
8916 delete the other frame first.
8917
89182008-02-07 Timo Savola <timo.savola@iki.fi>
8919
8920 * xterm.c (x_detect_focus_change): Handle embed client message.
8921 (handle_one_xevent): Ditto.
8922 (handle_one_xevent): If embedded and we get a button press/release,
8923 request focus.
8924 (xembed_set_info, xembed_send_message): New functions.
8925 (x_make_frame_visible): Call xembed_set_info if embedded.
8926 (x_make_frame_invisible): Call xembed_set_info if embedded.
8927 (x_term_init): Initialize Xatom_XEMBED.
8928 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
8929 (x_iconify_frame): Ditto.
8930
8931 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
8932 (enum xembed_info, enum xembed_message, enum xembed_focus)
8933 (enum xembed_modifier, enum xembed_accelerator): New.
8934 (xembed_set_info, xembed_send_message): Declare.
8935 (FRAME_X_EMBEDDED_P): New.
8936
8937 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
8938 gtk_plug_new.
8939
8940 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
8941 window ID of a frame.
8942 (x_window): Reparent frame if embedded.
8943 (Fx_create_frame): Don't set border width if embedded.
8944
8945 * emacs.c (USAGE3): Add --parent-id.
8946 (standard_args): Ditto.
8947
89482008-02-07 Jan Djärv <jan.h.d@swipnet.se>
8949
8950 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
8951
89522008-02-07 Jim Meyering <meyering@redhat.com>
8953
8954 Use "do...while (0)", not "if (1)...else" in macro definitions.
8955 The latter provokes a warning from gcc about the empty else, when
8956 followed by ";". Also, without that trailing semicolon, it would
8957 silently swallow up any following statement.
8958 * syntax.h (SETUP_SYNTAX_TABLE)
8959 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
8960 * buffer.h (DECODE_POSITION): Likewise.
8961 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
8962 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
8963 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
8964 (FETCH_CHAR_ADVANCE): Likewise.
8965 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
8966
89672008-02-07 Jim Meyering <meyering@redhat.com>
8968
8969 * lread.c [lint]: Don't include <sys/inode.h>.
8970
89712008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
8972
8973 * xselect.c (x_handle_dnd_message):
8974 * xmenu.c (digest_single_submenu, xmenu_show):
8975 * xdisp.c (with_echo_area_buffer_unwind_data)
8976 (format_mode_line_unwind_data, unwind_format_mode_line)
8977 (display_menu_bar):
8978 * eval.c (Ffetch_bytecode):
8979 * doc.c (store_function_docstring):
8980 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
8981 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
8982 * buffer.c (add_overlay_mod_hooklist): Use ASET.
8983
89842008-02-07 Kenichi Handa <handa@m17n.org>
8985
8986 * ftxfont.c (ftxfont_open): Don't set
8987 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
8988
8989 * ftfont.c (ftfont_open): Fix previous change.
8990
89912008-02-06 Jason Rumney <jasonr@gnu.org>
8992
8993 * w32font.c (w32font_text_extents): Fill in lbearing metric.
8994 Use cached metrics for ASCII characters.
8995 (w32font_open_internal): Don't set font's owning_frame.
8996 Cache metrics for ASCII characters.
8997
8998 * w32font.h (struct w32font_info): Add ascii_metrics.
8999 Remove owning_frame.
9000
90012008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9002
9003 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9004 to negative value.
9005
9006 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9007
9008 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9009
9010 * charset.c (syms_of_charset): Set QCtest and Qeq.
9011
90122008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9013
9014 * process.c (Fstart_process):
9015 * callproc.c (Fcall_process): Handle the case where
9016 Funhandled_file_name_directory returns nil.
9017
9018 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9019 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9020 * font.c (check_gstring): Use them and AREF to access the vector before
9021 we know it's really a gstring.
9022 (Ffont_shape_text): Fix typo.
9023 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
9024
9025 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9026 Declare.
9027
9028 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9029
90302008-02-05 Jason Rumney <jasonr@gnu.org>
9031
9032 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9033 Set smallest_font_height and smallest_char_width in display info.
9034
90352008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9036
9037 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9038
90392008-02-05 Miles Bader <miles@gnu.org>
9040
9041 * xfaces.c (get_lface_attributes, merge_named_face)
9042 (lookup_named_face, lookup_derived_face, realize_named_face):
9043 Revert 2008-02-01 change by cyd@stupidchicken.com.
9044
90452008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9046
9047 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9048 fallback fonts.
9049 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9050
90512008-02-04 Jason Rumney <jasonr@gnu.org>
9052
9053 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9054 set full_name.
9055 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9056
90572008-02-03 Jason Rumney <jasonr@gnu.org>
9058
9059 * makefile.w32-in (OBJ1): Include font.o here.
9060 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9061
90622008-02-02 Jason Rumney <jasonr@gnu.org>
9063
9064 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9065
90662008-02-01 Jason Rumney <jasonr@gnu.org>
9067
9068 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9069
9070 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9071
90722008-02-01 Andreas Schwab <schwab@suse.de>
9073
9074 * Makefile.in (shortlisp, lisp): Update for rename of
9075 ../lisp/language/myanmar.el.
9076
90772008-02-01 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * xfaces.c (get_lface_attributes): Delete function.
9080 (merge_named_face, lookup_named_face, lookup_derived_face)
9081 (realize_named_face): Call lface_from_face_name directly, and use
9082 the fact that merge_face_vectors does not alter its FROM argument.
9083
90842008-02-01 Jason Rumney <jasonr@gnu.org>
9085
9086 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9087 input in the default locale. Handle non-Unicode multibyte input.
9088
90892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9090
9091 * fontset.c (reorder_font_vector): Exclude nil elements from the
9092 font group. Don't try multiple fonts.
9093 (fontset_font): Adjust for the above change.
9094 (Finternal_char_font): Return nil if the found font doesn't
9095 contain the character ch.
9096
9097 * Makefile.in (lisp, shortlisp): Add cham.el.
9098
90992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9100
9101 * font.h (FONTP): Make it return 1 also for a font-object.
9102
9103 * .gdbinit (xfontset): New function.
9104
9105 * font.c (font_find_for_lface): Check if the character C is
9106 supported or not only for the first font.
9107
9108 * fontset.c (reorder_font_vector): Fix typo.
9109 (fontset_find_font): Don't add a font-spec specifying a script.
9110 Use 0 (not Qt) for the indication of empty font-group. Change the
9111 format of RFONT-DEF. Return Qt if no font in the font-group
9112 support the character.
9113 (fontset_font): Adjust for the above change. If no font was
9114 found the character, remember that.
9115 (face_for_char): Adjust for the change of RFONT-DEF.
9116 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9117 no font for the target.
9118 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9119
91202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9121
9122 * font.c (font_load_for_face): Handle the case that the font in
9123 face->lface is a string.
9124
91252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9126
9127 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9128
91292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9130
9131 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9132 Fix previous change. If the frame is not on a window system,
9133 signal an error.
9134
91352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9136
9137 * coding.c (decode_coding_object, encode_coding_object): Adjust
9138 marker positions after conversion.
9139
9140 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9141
91422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9143
9144 * font.c (font_find_for_lface): Fix the handling of the return
9145 value of font_has_char.
9146 (Ffont_shape_text): Fix previous change.
9147
9148 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9149 (fontset_ref_and_range): Delete it.
9150 (fontset_find_font): Call char_table_ref_and_range instead of
9151 FONTSET_REF_AND_RANGE.
9152 (make_fontset): Don't setup font groups of Latin here.
9153 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9154 (new_fontset_from_font): Make the specified font the default for
9155 all Latin characters.
9156
91572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9158
9159 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9160 is on a window system before accessing the fontset of the frame.
9161
91622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9163
9164 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9165
9166 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9167 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9168
9169 * font.c (Ffont_shape_text): If the font driver doesn't have a
9170 shaper function, make zero-width glyphs to have at least one-pixel
9171 width. Fix setting of `to' field of glyphs.
9172
91732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9174
9175 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9176 glyphs.
9177
9178 * font.h (struct font_driver): Improve docstring of member `shape'.
9179
91802008-02-01 Kenichi Handa <handa@m17n.org>
9181
9182 * composite.c (syms_of_composite): Fix docstring of
9183 auto-composition-function.
9184
9185 * font.h (LGLYPH_SIZE): New macro.
9186
9187 * font.c (Ffont_fill_gstring): Stop filling when a character not
9188 supported by the font is found.
9189 (Ffont_shape_text): When a shape callback function returns nil,
9190 try at most two more times with larger gstring.
9191 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9192
9193 * xdisp.c (handle_auto_composed_prop): Change the argument to
9194 auto-composition-function.
9195
9196 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9197 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9198 Lispy glyph and store it in the lgstring.
9199
9200 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9201
9202 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9203
92042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9205
9206 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9207
9208 * fontset.c (Vfont_encoding_charset_alist): New variable.
9209 (syms_of_fontset): DEFVAR it.
9210 (reorder_font_vector, fontset_find_font): Optimize for the case of
9211 no need of reordering.
9212 (face_for_char): Map the charset property by
9213 Vfont_encoding_charset_alist.
9214
92152008-02-01 Jason Rumney <jasonr@gnu.org>
9216
9217 * w32font.c (logfonts_match): Don't check adstyle here.
9218 (font_matches_spec): Check here against physical font instead.
9219 (add_font_entity_to_list): Avoid some substitutions.
9220
9221 * font.c (font_parse_fcname): Default weight and slant to normal.
9222 (font_score): Prefer normal fonts if weight or slant unspecified.
9223 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9224 match freetype scores.
9225
92262008-02-01 Jason Rumney <jasonr@gnu.org>
9227
9228 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9229 font, as it may have been deleted.
9230 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9231 most common hyphenless variation.
9232 (logfonts_match): Check generic family.
9233 (font_matches_spec): Don't check generic family here.
9234 (fill_in_logfont): Set generic family based on adstyle.
9235
9236 * w32font.h (w32font_get_cache): Update declaration.
9237
92382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9239
9240 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9241
9242 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9243 If none of the new drivers are available, call font_update_drivers
9244 with the old drivers.
9245
9246 * w32font.c (w32font_get_cache): Adjust the argument type.
9247
9248 * xfont.c (xfont_get_cache): Adjust the argument type.
9249
9250 * font.h (struct font_driver): Change argument type of get_cache.
9251
9252 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9253
9254 * font.c (Ffont_get): Fix arguments to Fassoc.
9255 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9256 (font_clear_cache): New function.
9257 (font_list_entities, font_matching_entity): Use font_get_cache.
9258 (font_update_drivers): Call font_clear_cache when finishing a driver.
9259
9260 * fontset.c (fontset_find_font): Fix previous change.
9261
92622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9263
9264 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9265 dpyinfo->font_table.
9266 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9267 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9268
9269 * font.c (font_at): Handle the case that the arg C is negative.
9270 Handle the unibyte case.
9271 (Ffont_at): Call font_at with the arg C -1.
9272
9273 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9274 the position here, and call font_at with the arg C -1.
9275 Don't check the range of the existing composition at the point.
9276
92772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9278
9279 * fontset.c (fontset_add): New args charset_id and family.
9280 Change caller.
9281 (load_font_get_repertory, fontset_find_font): Assume that
9282 font_spec is always a font-spec object.
9283 (Fset_fontset_font): Always store a font-spec object in a fontset.
9284
9285 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9286 instead of get_property_and_range.
9287
92882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9289
9290 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9291 (xftfont_open): Don't keep locking face.
9292 (xftfont_close): Don't unlock face.
9293 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9294
9295 * fontset.c (fontset_find_font): Don't prefer a font of
9296 supplementary charset.
9297
92982008-02-01 Kenichi Handa <handa@m17n.org>
9299
9300 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9301 script, langsys_tag to langsys, new member script.
9302 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9303 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9304 listing to the script specified in that property. Fix arg to
9305 OTF_check_features.
9306
93072008-02-01 Jason Rumney <jasonr@gnu.org>
9308
9309 * w32font.h: New file.
9310
9311 * w32font.c: Include it.
9312 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9313 (w32font_open): Set owning_frame.
9314 (w32font_text_extents): Use owning_frame.
9315 (struct font_callback_data): Add opentype_only field.
9316 (add_font_entity_to_list): Use it to filter fonts.
9317 Don't check against full name.
9318 (w32font_list_internal): New function.
9319 (w32font_list): Use it.
9320 (w32font_match_internal): New function.
9321 (w32font_match): Use it.
9322 (w32font_open_internal): New function.
9323 (w32font_open): Use it.
9324 (w32font_get_cache, w32font_close, w32font_has_char)
9325 (w32font_encode_char, w32font_text_extents, w32font_draw):
9326 Make non-static.
9327
9328 * makefile.w32-in (w32font.o): Depend on w32font.h.
9329
93302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9331
9332 * charset.c (Fdefine_charset_internal): Record a supplementary
9333 charset at the tail of Vcharset_order_list.
9334
9335 * font.c (Ffont_shape_text): Fix the return value.
9336
9337 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9338
9339 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9340
93412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9342
9343 * ftfont.c (struct OpenTypeSpec): New struct.
9344 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9345 (ftfont_get_open_type_spec): New function.
9346 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9347
9348 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9349
93502008-02-01 Jason Rumney <jasonr@gnu.org>
9351
9352 * w32font.c (add_font_entity_to_list): Compare only the beginning
9353 of full name.
9354
93552008-02-01 Kenichi Handa <handa@m17n.org>
9356
9357 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9358 Never return HANDLED_RECOMPUTE_PROPS.
9359
93602008-02-01 Kenichi Handa <handa@m17n.org>
9361
9362 * font.c (font_gstring_produce): Delete it.
9363
9364 * composite.h (COMPOSITION_METHOD):
9365 Handle COMPOSITION_WITH_GLYPH_STRING.
9366
93672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9368
9369 * xfont.c (Qx): Delete.
9370 (syms_of_xfont): Don't initialize Qx.
9371
9372 * composite.h (enum composition_method):
9373 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9374
93752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9376
9377 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9378 (choose_face_font): Accept new form of font-spec.
9379
9380 * frame.h (font_driver_list): Declare it unconditionally.
9381 (struct frame): Define members font_driver_list and font_data_list
9382 unconditionally.
9383
9384 * fontset.c: Include "font.h" unconditionally.
9385 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
9386 (Fset_fontset_font): Accept a font-spec object.
9387
9388 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
9389 PIXEL_SIZE part a wild card.
9390
9391 * dispextern.h (struct glyph_string): Define members clip and
9392 num_clips unconditionally.
9393 (struct face): Define members font_info and extra unconditionally.
9394
9395 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
9396 ftfont_info only when HAVE_LIBOTF is defined.
9397
93982008-02-01 Andreas Schwab <schwab@suse.de>
9399
9400 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
9401 and end.
9402
94032008-02-01 Jason Rumney <jasonr@gnu.org>
9404
9405 * w32font.c (w32font_driver): Add new fields.
9406
94072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9408
9409 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
9410 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
9411 (LIBES): Add @M17N_FLT_CFLAGS@.
9412
9413 * composite.c (compose_text): Don't treat the new style
9414 composition specially.
9415
9416 * emacs.c (main): Call syms_of_font unconditionally.
9417
9418 * font.h (FONT_ENTITY_NOT_LOADABLE)
9419 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
9420 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
9421 (struct font_driver): New member shape.
9422 (font_registry_charsets): Extern it.
9423 (font_find_for_lface, font_prepare_composition): Adjust prototype.
9424 (font_otf_capability, font_drive_otf): Delete their externs.
9425
9426 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
9427 (font_charset_alist, font_registry_charsets): Move from xfont.c
9428 and rename.
9429 (font_prop_validate_otf): New function.
9430 (font_property_table): Register it for QCotf.
9431 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
9432 (font_drive_otf): Delete.
9433 (font_prepare_composition): New arg F. Adjust for the change of
9434 lispy gstring.
9435 (font_find_for_lface): New arg C.
9436 (font_load_for_face): Adjust for the change of font_find_for_lface.
9437 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
9438 lispy gstring.
9439 (Ffont_shape_text): New function.
9440 (Fopen_font): If the font size is not given, use 12-pixel.
9441 (Ffont_at): New arg STRING.
9442 (syms_of_font): Initalize font_charset_alist.
9443 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
9444 conditionally.
9445
9446 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
9447 fonts of the same font-spec. Change the format of RFONT-DEF.
9448 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
9449 Adjust for the change of RFONT-DEF.
9450 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
9451
9452 * ftfont.h: New file.
9453
9454 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
9455 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9456 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9457 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
9458 font_otf_capability and font_drive_otf, set ftfont_shape.
9459 (ftfont_list): Adjust for the change of :otf property value.
9460 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
9461 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
9462 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
9463 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9464 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
9465 (otf_gstring, gstring, m17n_flt_initialized): New variables.
9466
9467 * w32term.c (x_draw_composite_glyph_string_foreground):
9468 Adjust for the change of lispy gstring.
9469
9470 * xdisp.c (handle_composition_prop): Adjust for the change of
9471 lispy gstring. Call a function for auto-composition with the
9472 third arg it->window.
9473 (fill_composite_glyph_string): Adjust for the change of lispy string.
9474 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
9475
9476 * xfaces.c (set_font_frame_param): Adjust for the change of
9477 font_find_for_lface.
9478
9479 * xfont.c (x_font_charset_alist): Move to font.c and rename.
9480 (xfont_registry_charsets): Likewise. Change caller.
9481 (syms_of_xfont): Don't handle x_font_charset_alist.
9482
9483 * xftfont.c: Include "ftfont.h".
9484 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9485 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9486 (xftfont_close) [HAVE_LIBOTF]: Close otf.
9487 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9488 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
9489 Set xftfont_driver.shape to xftfont_shape.
9490
9491 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9492 the change of lispy gstring.
9493
94942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9495
9496 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
9497
94982008-02-01 Jason Rumney <jasonr@gnu.org>
9499
9500 * w32font.c (w32font_draw): Fill background manually.
9501
95022008-02-01 Jason Rumney <jasonr@gnu.org>
9503
9504 * font.c (Qfontp): Remove unused symbol.
9505 (QCantialias): New symbol.
9506 (syms_of_font): Define it.
9507 (font_property_table): Set a validator for QCantialias.
9508
9509 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
9510 Define if not already.
9511 (QCfamily): Share with xfaces.c.
9512 (Qstandard, Qsubpixel, Qnatural): New symbols.
9513 (syms_of_w32font): Define them. Don't define QCfamily here.
9514 (w32_antialias_type, lispy_antialias_type): New functions.
9515 (w32_enumfont_pattern_entity): New arg requested_font.
9516 Set antialias parameter if non-default was requested.
9517 (fill_in_logfont): Fill in lfQuality if :antialias specified.
9518
95192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9520
9521 * lread.c (read1): Undo the previous change.
9522
95232008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
9524
9525 * frame.c (Fdelete_frame): Call font_update_drivers only when
9526 USE_FONT_BACKEND is defined.
9527
95282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9529
9530 * font.h (struct font_bitmap): New member bits_per_pixel.
9531 (struct font_driver): New members start_for_frame and end_for_frame.
9532 (struct font_data_list): New struct.
9533 (font_put_frame_data, font_get_frame_data): Extern them.
9534
9535 * frame.h (struct frame): New member font_data_list.
9536
9537 * font.c (font_update_drivers): Call driver->start_for_frame and
9538 driver->end_for_frame at proper timings.
9539 (font_put_frame_data, font_get_frame_data): New functions.
9540 (Ffont_spec): Add usage in the docstring.
9541
9542 * frame.c (make_frame): Initialize f->font_data_list to NULL.
9543 (Fdelete_frame): Call font_update_drivers.
9544
9545 * xftfont.c (struct xftface_info): Delete the member xft_draw.
9546 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
9547 (xftfont_get_xft_draw): New function.
9548 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
9549 (xftfont_end_for_frame): New function.
9550 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
9551
9552 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
9553 Change argument. Cache GCs in the per-frame data.
9554 (struct ftxfont_frame_data): New struct.
9555 (ftxfont_draw_bitmap): New arg gc_fore and flush.
9556 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
9557 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
9558 (ftxfont_end_for_frame): New function.
9559 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
9560
9561 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
9562
95632008-02-01 Kenichi Handa <handa@m17n.org>
9564
9565 * xselect.c (Vselection_coding_system)
9566 (Vnext_selection_coding_system): Delete them.
9567 (syms_of_xselect): Don't declare selection-coding-system and
9568 next-selection-coding-system. They are declared in select.el.
9569
95702008-02-01 Jason Rumney <jasonr@gnu.org>
9571
9572 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
9573
9574 * w32fns.c: Include imm.h.
9575 (get_composition_string_fn, get_ime_context_fn): New optional
9576 system functions.
9577 (globals_of_w32fns): Load them from imm32.dll.
9578 (ignore_ime_char): New flag.
9579 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
9580 WM_IME_ENDCOMPOSITION messages.
9581
9582 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
9583 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
9584
95852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9586
9587 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
9588 (READCHAR_REPORT_MULTIBYTE): New macro.
9589 (readchar): New 2nd arg MULTIBYTE.
9590 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
9591 Make symbol's name multibyte according to the multibyteness of the
9592 source.
9593
95942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9595
9596 * xfaces.c (face_for_overlay_string): Call lookup_face with
9597 correct arguments (fix of synching with the trunk).
9598
95992008-02-01 Kenichi Handa <handa@m17n.org>
9600
9601 * font.c (font_prop_validate_symbol, font_prop_validate_style)
9602 (font_prop_validate_non_neg, font_prop_validate_spacing):
9603 Delete argument prop_index.
9604 (font_property_table): Change arguments to validater. Change Callers.
9605 (font_lispy_object): Delete.
9606 (font_at): Use font_find_object instead fo font_lispy_object.
9607
96082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9609
9610 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
9611 and file names.
9612
96132008-02-01 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
9616 (font_matches_spec): Remove debug output.
9617 (add_font_entity_to_list): Avoid using substituted fonts.
9618
96192008-02-01 Jason Rumney <jasonr@gnu.org>
9620
9621 * doc.c (Fsnarf_documentation):
9622 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
9623
96242008-02-01 Miles Bader <miles@gnu.org>
9625
9626 * dispextern.h (struct glyph_row): Only define "clip" field if
9627 HAVE_WINDOW_SYSTEM is defined.
9628
96292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 Fix up multi-tty merge.
9632
9633 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
9634 and indentation.
9635
9636 * xfaces.c (free_realized_face, clear_face_gcs):
9637 Include font_done_for_face in the input_blocked section, just in case.
9638
9639 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
9640 (get_char_face_and_encoding): Undo last change and remove the *other*
9641 duplicate definition (i.e. keep the one that's better scoped and that
9642 includes code for the font-backend).
9643
9644 * terminal.c (create_terminal): Default keyboard_coding to
9645 `no-conversion' and terminal_coding to `undecided'.
9646
9647 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
9648
9649 * fontset.c (free_realized_fontsets): Check that the table entry does
9650 contain a fontset before trying to compare it to `base'.
9651
9652 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
9653 syms_of_charset, and syms_of_coding earlier because init_window_once
9654 now needs Vcoding_system_hash_table to be setup.
9655
9656 * coding.h (default_buffer_file_coding): Remove.
9657
9658 * coding.c (default_buffer_file_coding): Remove.
9659 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
9660 than ->symbol, and use the terminal-local coding system.
9661 (syms_of_coding): Don't setup the coding-systems that are not
9662 terminal-local.
9663 (Fdefine_coding_system_internal): Use XCAR/XCDR.
9664
9665 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
9666 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
9667
9668 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
9669 in chartab.c and were re-added here by mistake.
9670 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
9671
9672 * doc.c (Fsnarf_documentation):
9673 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
9674 src to etc.
9675
9676 * ChangeLog.10: Add mistakenly removed entry.
9677
96782008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
9679
9680 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
9681
96822008-02-01 Miles Bader <miles@gnu.org>
9683
9684 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
9685 Add extra args to FACE_FOR_CHAR.
9686
96872008-02-01 Kenichi Handa <handa@m17n.org>
9688
9689 * keymap.c (where_is_internal_1): If key is a cons, store the copy
9690 in sequence.
9691
9692 * chartab.c (map_sub_char_table, map_char_table): If the range
9693 contains just one character, call the function with that character
9694 even if the depth is not 3.
9695
96962008-02-01 Jason Rumney <jasonr@gnu.org>
9697
9698 * w32font.c (w32font_text_extents): Calculate metrics for the
9699 whole string.
9700
97012008-02-01 Jason Rumney <jasonr@gnu.org>
9702
9703 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
9704
97052008-02-01 Jason Rumney <jasonr@gnu.org>
9706
9707 * w32term.c (x_set_glyph_string_clipping): Use
9708 get_glyph_string_clip_rects.
9709 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9710 Adjust for the change of struct glyph_string.
9711
9712 * w32font.c (w32font_draw): Do clipping here.
9713
97142008-02-01 Kenichi Handa <handa@m17n.org>
9715
9716 * xftfont.c (xftfont_draw): Adjust for the change of struct
9717 glyph_string.
9718
9719 * xterm.c (x_set_glyph_string_clipping): Use
9720 get_glyph_string_clip_rects.
9721 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9722 Adjust for the change of struct glyph_string.
9723
9724 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
9725 the resulting clip(s}.
9726 (expose_overlaps): Add arg r. Change callers. Set it to
9727 row->clip temporarily.
9728 (expose_window): Redraw rows overlapping the exposed area.
9729
9730 * dispextern.h (struct glyph_row): New member clip.
9731 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
9732 clip_height, new member clip, and num_clips.
9733
97342008-02-01 Kenichi Handa <handa@m17n.org>
9735
9736 * data.c (Fchar_or_string_p): Fix docstring.
9737
97382008-02-01 Kenichi Handa <handa@m17n.org>
9739
9740 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
9741 create a temporary XftDraw object.
9742
97432008-02-01 Kenichi Handa <handa@m17n.org>
9744
9745 * font.c (Ffontp): Fix docstring.
9746
9747 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
9748 strong evidence of ISO-2022.
9749
97502008-02-01 Kenichi Handa <handa@m17n.org>
9751
9752 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
9753 SYNTAX_ENTRY_FOLLOW_PARENT.
9754
97552008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9756
9757 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
9758 its type.
9759 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
9760 Update to the new type of weak_hash_tables and next_weak.
9761
9762 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
9763 a plain C pointer to Lisp_Hash_Table.
9764
9765 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
9766 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
9767 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
9768 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
9769 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
9770 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
9771 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
9772 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
9773 (GC_EQ): Remove since they've been identical to their non-GC_
9774 alter-egos ever since the markbit was eradicated.
9775
9776 * alloc.c:
9777 * buffer.c:
9778 * buffer.h:
9779 * data.c:
9780 * fileio.c:
9781 * filelock.c:
9782 * fns.c:
9783 * frame.h:
9784 * lisp.h:
9785 * macterm.c:
9786 * print.c:
9787 * process.c:
9788 * w32fns.c:
9789 * w32menu.c:
9790 * w32term.c:
9791 * xfns.c:
9792 * xmenu.c:
9793 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
9794
97952008-02-01 Kenichi Handa <handa@m17n.org>
9796
9797 * chartab.c (map_sub_char_table): Make it work for the top-level
9798 char-table. Fix handling of parent char-table.
9799 (map_char_table): Adjust for the above change.
9800
98012008-02-01 Jason Rumney <jasonr@gnu.org>
9802
9803 * w32font.c (Qgdi): Rename from Qw32.
9804
98052008-02-01 Jason Rumney <jasonr@gnu.org>
9806
9807 * w32bdf.c (get_quoted_string): Make function static.
9808
98092008-02-01 Kenichi Handa <handa@m17n.org>
9810
9811 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
9812 bigger ascent and descent than those of the font, use them as
9813 font's ascent and descent.
9814
98152008-02-01 Kenichi Handa <handa@m17n.org>
9816
9817 * Makefile.in (${lispsource}international/charprop.el): Move this
9818 target within "#ifdef HAVE_UNIDATA" and "#endif".
9819
98202008-02-01 Kenichi Handa <handa@m17n.org>
9821
9822 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
9823 (shortlisp): Add ../lisp/language/tai-viet.el.
9824
98252008-02-01 Ulrich Mueller <ulm@gentoo.org>
9826
9827 * Makefile.in (${lispsource}international/charprop.el): Depend on
9828 temacs${EXEEXT}.
9829
98302008-02-01 Jason Rumney <jasonr@gnu.org>
9831
9832 * w32font.c (w32font_close): Delete the GDI font object.
9833
9834 * w32menu.c: Include character.h.
9835
9836 * w32proc.c: Likewise.
9837
9838 * w32select.c: Likewise.
9839
9840 * makefile.w32-in (w32proc.o): Depend on character.h.
9841
98422008-02-01 Jason Rumney <jasonr@gnu.org>
9843
9844 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
9845
9846 * w32menu.c (syms_of_w32menu): Likewise.
9847
9848 * w32proc.c (syms_of_ntproc): Likewise.
9849
9850 * w32select.c (syms_of_w32select): Likewise.
9851
9852 * w32term.c (syms_of_w32term): Likewise.
9853
98542008-02-01 Jason Rumney <jasonr@gnu.org>
9855
9856 * w32font.c (w32font_draw): Delete brush after using it.
9857
98582008-02-01 Jason Rumney <jasonr@gnu.org>
9859
9860 * w32font.c (w32font_open): Don't set font_idx.
9861 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
9862 to font settings.
9863 (w32font_draw): Fill background explicitly.
9864
98652008-02-01 Jason Rumney <jasonr@gnu.org>
9866
9867 * w32term.c (w32_initialize): Don't call w32font_initialize.
9868
9869 * w32font.c (w32font_info): Remove subranges.
9870 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
9871 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
9872 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
9873 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
9874 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
9875 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
9876 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
9877 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
9878 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
9879 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
9880 New symbols.
9881 (font_callback_data): New struct.
9882 (w32font_list, w32font_match): Use it.
9883 (w32font_open): Don't populate subranges.
9884 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
9885 (w32font_encode_char): Always return unicode code-point as-is.
9886 (w32font_text_extents): Supply a transformation matrix to
9887 GetGlyphOutline. Never look up by glyph index. Avoid looping
9888 twice. Use unicode version of GetTexExtentPoint32 instead of
9889 glyph index version.
9890 (set_fonts_frame): Remove.
9891 (w32_enumfont_pattern_entity): Add frame parameter, use it to
9892 set frame parameter. Use backward compatible fake foundries.
9893 Save generic family in extra slot under QCfamily. Make width slot
9894 constant. Save QCspacing value. Save list of scripts instead of
9895 binary subranges.
9896 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
9897 (add_font_entity_to_list): Use font_callback_data struct. Filter
9898 unwanted fonts.
9899 (add_one_font_entity_to_list): Use font_callback_data struct.
9900 (w32_registry): Default to iso10646_1.
9901 (fill_in_logfont): Use dpi from extra slot. Don't bother with
9902 string font registries. Don't fill in font name if it is a generic
9903 family name, fill family instead. Use spacing, family and script
9904 extra info to fill pitch, family and charset fields.
9905 (list_all_matching_fonts): Use font_callback_data struct.
9906 (unicode_range_for_char): Remove.
9907 (font_supported_scripts): New function.
9908 (w32font_initialize): Remove.
9909 (syms_of_w32font): Update which symbols are defined.
9910
99112008-02-01 Jason Rumney <jasonr@gnu.org>
9912
9913 * font.c (font_pixel_size): Reverse assq_no_quit args.
9914
9915 * w32term.h (FONT_WIDTH): Report max width, not average.
9916 (FONT_MAX_WIDTH): Remove.
9917 (FONT_AVG_WIDTH): New macro.
9918
9919 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
9920 redefinition of FONT_WIDTH.
9921
9922 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
9923 (w32_cache_char_metrics): Use FONT_WIDTH.
9924
9925 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
9926
99272008-02-01 Jason Rumney <jasonr@gnu.org>
9928
9929 * w32font.c (w32font_open): Make lfHeight negative.
9930
9931 * w32fns.c (x_default_font_parameter): Use new style font name.
9932 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
9933
99342008-02-01 Jason Rumney <jasonr@gnu.org>
9935
9936 * w32font.c (QCsubranges): New symbol.
9937 (w32font_open, w32font_has_char): Get subranges from subproperty
9938 of extra.
9939 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
9940 (syms_of_w32font): Define :subranges symbol.
9941
9942 * font.c (font_put_extra): Expose externally.
9943
9944 * font.h (font_put_extra): Move declaration from font.c.
9945
9946 * font.c (Ffont_get): Use font driver to determine otf capability.
9947 (adjust_anchor): Check if driver defines anchor_point before using.
9948
9949 * w32font.c (w32font_open): Handle size, height and pixel_size better.
9950 (w32font_draw): Use options.
9951 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
9952 Fix detection of truetype fonts.
9953 (registry_to_w32_charset): Handle charsets other than iso8859-1
9954 expressed as lisp symbols.
9955 (w32_registry): Express charset as lisp symbol.
9956 (fill_in_logfont): Reverse pixel and point height logic.
9957 Don't set width here. Set quality to default.
9958
9959 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
9960 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
9961
9962 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9963 Remove redundant loop and allocation.
9964
9965 * makefile.w32-in (font.o, w32font.o): New objects.
9966 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
9967 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
9968
9969 * xdisp.c (fill_composite_glyph_string): Make the first arg to
9970 STORE_XCHARB a valid l-value.
9971
9972 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
9973 calculations for non-Truetype fonts.
9974 (x_draw_glyph_string): Sync with xterm.c.
9975 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9976 Remove redundant code.
9977 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
9978
9979 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
9980 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
9981
9982 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
9983 (x_to_w32_charset, w32_to_x_charset): Expose externally.
9984
9985 * w32font.c: New file for w32 font backend.
9986
99872008-02-01 Kenichi Handa <handa@m17n.org>
9988
9989 * term.c: Don't include "buffer.h" twice.
9990
99912008-02-01 Kenichi Handa <handa@m17n.org>
9992
9993 * character.c (Funibyte_string): New function.
9994 (syms_of_character): Defsubr it.
9995
99962008-02-01 Jason Rumney <jasonr@gnu.org>
9997
9998 * w32term.c [USE_FONT_BACKEND]:
9999 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10000 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10001 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10002 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10003 (x_free_frame_resources): Sync with xterm.c.
10004
100052008-02-01 Andreas Schwab <schwab@suse.de>
10006
10007 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10008 char-table size.
10009
100102008-02-01 Kenichi Handa <handa@m17n.org>
10011
10012 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10013
100142008-02-01 Kenichi Handa <handa@m17n.org>
10015
10016 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10017 font_otf_gpos, add font_drive_otf.
10018
10019 * fontset.c (fontset_find_font): Pay attention to font size
10020 specified for a font.
10021 (reorder_font_vector): Check contents of font_def.
10022
10023 * font.c (struct otf_list): Delete it.
10024 (otf_list): Make it a lisp variable.
10025 (otf_open): Use lispy otf_list.
10026 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10027 (check_otf_features): New function.
10028 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10029 New functions.
10030 (font_drive_otf): New function merging font_otf_gsub and
10031 font_otf_gpos.
10032 (font_open_for_lface): New arg spec. Change argument order.
10033 (font_load_for_face): Adjust for the change of font_open_for_lface.
10034 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10035 Ffont_otf_gpos.
10036 (syms_of_font): Staticpro otf_list. Delete defsubr of
10037 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10038
10039 * xfaces.c (set_font_frame_param): Adjust for the change of
10040 font_open_for_lface.
10041
10042 * font.h (font_open_for_lface): Adjust prototype.
10043 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10044 member otf_drive.
10045 (font_otf_gsub, font_otf_gpos): Delete externs.
10046 (font_drive_otf): Extern it.
10047
100482008-02-01 Kenichi Handa <handa@m17n.org>
10049
10050 * font.c (font_at): If the window W is not on a window system,
10051 return Qnil.
10052
10053 * coding.c (produce_chars, encode_coding): Don't call
10054 insert_from_gap if no characters to produce.
10055
100562008-02-01 Kenichi Handa <handa@m17n.org>
10057
10058 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10059 Fclear_face_cache.
10060
10061 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10062
100632008-02-01 Miles Bader <miles@gnu.org>
10064
10065 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10066 Parse "--disable-font-backend" option.
10067 (standard_args): Add "--disable-font-backend" option.
10068
100692008-02-01 Kenichi Handa <handa@m17n.org>
10070
10071 * fontset.c (fontset_find_font): New function.
10072 (fontset_font): Use fontset_find_font.
10073 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10074 Register the specified font for all Latin characters.
10075 (new_fontset_from_font): Register the specified font for all Latin
10076 characters.
10077 (dump_fontset): For a realized fontset, include the base fontset
10078 name in the returned vector.
10079
100802008-02-01 Kenichi Handa <handa@m17n.org>
10081
10082 * character.h (CHAR_STRING): Cast C to unsigned on calling
10083 char_string.
10084
10085 * character.c (char_string): Type of arg C changed to unsigned.
10086 Signal an error if C is an invalid character code.
10087
10088 * editfns.c (general_insert_function, Fchar_to_string):
10089 Use CHARACTERP, not INTEGERP.
10090
100912008-02-01 Kenichi Handa <handa@m17n.org>
10092
10093 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10094 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10095
10096 * regex.c (analyse_first): Fix for multibyte characters in "case
10097 charset:" and "case categoryspec:".
10098
100992008-02-01 Andreas Schwab <schwab@suse.de>
10100
10101 * Makefile.in (LIBES): Move standard libraries to the end.
10102
101032008-02-01 Kenichi Handa <handa@m17n.org>
10104
10105 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10106 nonzero, don't shrink the buffer nextb.
10107
10108 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10109
10110 * coding.c (coding_alloc_by_making_gap): New arg offset.
10111 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10112 offset.
10113 (decode_coding_iso_2022): Update coding->safe_charsets.
10114 (decode_coding_gap): Temporarily set
10115 current_buffer->text->inhibit_shrinking to 1.
10116
101172008-02-01 Kenichi Handa <handa@m17n.org>
10118
10119 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10120 indexing into elements of s->cmp and s->char2b.
10121
101222008-02-01 Juanma Barranquero <lekktu@gmail.com>
10123
10124 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10125
101262008-02-01 Kenichi Handa <handa@m17n.org>
10127
10128 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10129 target_multibyte instead of multibyte.
10130 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10131 (bcmp_translate): Change the argument name from multibyte to
10132 target_multibyte.
10133
101342008-02-01 Kenichi Handa <handa@m17n.org>
10135
10136 These changes are to compile a regexp into a pattern that can be
10137 used both for multibyte and unibyte targets.
10138
10139 * Makefile.in (search.o): Depend on charset.h.
10140
10141 * character.c (multibyte_char_to_unibyte_safe): New function.
10142
10143 * search.c: Include "charset.h".
10144 (compile_pattern_1): Delete argument multibyte. Don't set
10145 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10146 (compile_pattern): Don't compare cp->buf.target_multibyte.
10147 Compare cp->buf.charset_unibyte.
10148 (compile_pattern): Set cp->buf.target_multibyte.
10149
10150 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10151
10152 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10153
10154 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10155 multibyte. Change callers.
10156 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10157 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10158 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10159 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10160 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10161 (regex_compile): Make the compiled pattern usable both for
10162 multibyte and unibyte targets.
10163 (analyse_first): Make the fastmap usable both for multibyte and
10164 unibyte targets.
10165 (TRANSLATE_VIA_MULTIBYTE): Delete.
10166 (re_match_2_internal): Pay attention to the case that the
10167 multibyteness of bufp and target may be different.
10168
101692008-02-01 Kenichi Handa <handa@m17n.org>
10170
10171 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10172 empty box occupy at least one column width.
10173
101742008-02-01 Miles Bader <miles@gnu.org>
10175
10176 * Makefile.in: Remove redundant HAVE_XFT clause.
10177
101782008-02-01 Kenichi Handa <handa@m17n.org>
10179
10180 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10181
101822008-02-01 Kenichi Handa <handa@m17n.org>
10183
10184 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10185 being nil.
10186
101872008-02-01 Kenichi Handa <handa@m17n.org>
10188
10189 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10190
101912008-02-01 Kenichi Handa <handa@m17n.org>
10192
10193 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10194
101952008-02-01 Kenichi Handa <handa@m17n.org>
10196
10197 * search.c (simple_search): Fix previous change.
10198
101992008-02-01 Kenichi Handa <handa@m17n.org>
10200
10201 * xftfont.c (ftfont_font_format): Extern declaration.
10202
10203 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10204
10205 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10206 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10207
10208 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10209 (ftfont_font_format): Fix previous change.
10210
10211 * font.h (Ffont_xlfd_name): EXFUN it.
10212
10213 * font.c (font_parse_xlfd): Fix the array size of `f'.
10214 (register_font_driver): Use EQ to compare driver->type.
10215
10216 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10217 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10218 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10219
102202008-02-01 Kenichi Handa <handa@m17n.org>
10221
10222 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10223 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10224
102252008-02-01 Kenichi Handa <handa@m17n.org>
10226
10227 * xfont.c (xfont_open): Set font->format.
10228
10229 * xftfont.c (xftfont_open): Set font->format.
10230
10231 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10232 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10233 (ftfont_open): Set font->format.
10234 (ftfont_font_format): New function.
10235
10236 * font.h (struct font): New member format.
10237
10238 * font.c (Qopentype): New variable.
10239 (syms_of_font): Defsym it.
10240 (Fquery_font): Change the format of the last element of the return
10241 value.
10242
102432008-02-01 Kenichi Handa <handa@m17n.org>
10244
10245 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10246 last resort.
10247
102482008-02-01 Kenichi Handa <handa@m17n.org>
10249
10250 * coding.c (detect_coding_charset): Fix detection of multi-byte
10251 charset.
10252
102532008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10254
10255 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10256
102572008-02-01 Kenichi Handa <handa@m17n.org>
10258
10259 * xdisp.c (get_next_display_element): Set it->face_id for the
10260 first component of a composition.
10261 (x_produce_glyphs): Check if the font is changed or not for composition.
10262
102632008-02-01 Kenichi Handa <handa@m17n.org>
10264
10265 * fontset.c (Qlatin): New variable.
10266 (syms_of_fontset): Define it as a lisp symbol.
10267 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10268
102692008-02-01 Kenichi Handa <handa@m17n.org>
10270
10271 * font.c (font_unparse_fcname): Pay attention to the case that
10272 some of font property is a null string.
10273
102742008-02-01 Kenichi Handa <handa@m17n.org>
10275
10276 * term.c: Include "composite.h".
10277 (encode_terminal_code): Output all components of composition.
10278 Check the size of encode_terminal_src.
10279 (produce_glyphs): For composition, call produce_composite_glyph.
10280 (append_composite_glyph, produce_composite_glyph): New functions.
10281
10282 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10283 is not found, get font_info from the current ascii face.
10284
102852008-02-01 Kenichi Handa <handa@m17n.org>
10286
10287 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10288 buffer-file-name to Qnil before calling insert_from_buffer.
10289
10290 * font.c (font_unparse_fcname): Pay attention to the case that
10291 foundry is a null string.
10292
102932008-02-01 Kenichi Handa <handa@m17n.org>
10294
10295 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10296
10297 * font.c (Qunicode_sip): New variable.
10298 (syms_of_font): Declare it as a Lisp symbol.
10299
10300 * font.h (Qunicode_sip): Extern it.
10301
103022008-02-01 Kenichi Handa <handa@m17n.org>
10303
10304 * composite.c (get_composition_id): Pay attention to TAB component.
10305
10306 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10307 TAB. Adjust for the change of s->char2b which always points to
10308 the first element of allocated memory.
10309
10310 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10311
10312 * xdisp.c (handle_composition_prop): Set it->c to the first
10313 non-TAB component.
10314 (fill_composite_glyph_string): Change argument.
10315 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10316 (x_produce_glyphs): Fix handling of left/right padding.
10317
103182008-02-01 Kenichi Handa <handa@m17n.org>
10319
10320 * coding.c (detect_coding_system): Fix for handling off
10321 inhibit_iso_escape_detection. Fix for the case that no coding
10322 system is defined for a specific coding category.
10323
103242008-02-01 Kenichi Handa <handa@m17n.org>
10325
10326 * font.c (font_matching_entity): Delete unused local var.
10327
10328 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10329 opening a font.
10330
10331 * fileio.c (Finsert_file_contents): On recovering a file, assume
10332 Unix-like eol.
10333 (choose_write_coding_system): On auto-saving a file, force
10334 Unix-like eol.
10335
10336 * coding.c (setup_coding_system): Fix setting of
10337 coding->common_flags based on eol_type.
10338 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10339 inherit from it.
10340
103412008-02-01 Kenichi Handa <handa@m17n.org>
10342
10343 * alloc.c (NSTATICS): Increas to 0x600.
10344
103452008-02-01 Kenichi Handa <handa@m17n.org>
10346
10347 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10348 (ftfont_list): Don't check :name property.
10349 (ftfont_match): New function.
10350 (ftfont_pattern_entity): If the pattern doesn't contain
10351 FC_SPACING, don't assume FC_MONO.
10352
10353 * font.h (struct font_driver): New member `match'.
10354 (font_update_drivers): Adjust prototype.
10355
10356 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10357 property of FONT.
10358 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10359 them unconditionally.
10360 (font_matching_entity): New function.
10361 (font_open_by_name): Try font_matching_entity if exact match is
10362 not found.
10363 (font_update_drivers): Delete the arg FONT. Return a list of
10364 actually used backends. Don't free faces, font caches here.
10365 Don't store data in frame parameters. Don't call x_set_font.
10366 (Ffont_spec): Store :name property as is.
10367 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10368 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10369 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10370 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10371 Call font->driver->otf_gsub instead of font_otf_gsub.
10372
10373 * frame.c (x_set_font_backend): Do more works that were done in
10374 font_update_drivers before.
10375
10376 * xfont.c (xfont_match): New function.
10377 (xfont_driver): Set xfont_driver.match to xfont_match.
10378 (xfont_draw): Set font in GC if necessary.
10379
10380 * ftxfont.c (ftxfont_match): New function.
10381 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10382
10383 * xftfont.c (xftfont_match): New function.
10384 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
10385
103862008-02-01 Kenichi Handa <handa@m17n.org>
10387
10388 * font.h (struct font): New member scalable.
10389 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
10390 (font_otf_gsub): Adjust prototype.
10391
10392 * font.c (font_otf_capability): Fix handling of the default langsys.
10393 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
10394 Check the contents of SPEC.
10395 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
10396 (check_gstring): New function.
10397 (REPLACEMENT_CHARACTER): New macro.
10398 (font_otf_gsub): New arg alternate_subst. Be sure to set all
10399 glyph codes of GSTRING.
10400 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
10401 (font_prepare_composition): Set cmp->glyph_len.
10402 (font_open_entity): Set font->scalable.
10403 (Ffont_get): Handle :otf property.
10404 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
10405 functions.
10406 (Fquery_font): Use font->font.full_name.
10407 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
10408 Sfont_otf_alternates.
10409
10410 * ftfont.c (ftfont_open): Set font->font.full_name and
10411 font->font.name properly. Fix calculation of font->font.height
10412 and font->min_width.
10413
10414 * ftxfont.c (ftxfont_create_gcs): New function.
10415 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
10416 (ftxfont_draw_backgrond): Fix filling region.
10417 (ftxfont_default_fid): New function.
10418 (ftxfont_open): Set xfont->fid to the return value of
10419 ftxfont_default_fid.
10420 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
10421 (ftxfont_done_face): Free only GCs that are created by
10422 ftxfont_create_gcs.
10423 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
10424
10425 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
10426 Clip to src->width, etc (not src->clip_XXX).
10427
10428 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
10429 FontBackend frame parameter.
10430
104312008-02-01 Kenichi Handa <handa@m17n.org>
10432
10433 * font.h (struct font_driver_list): New member `on'.
10434 (Fclear_font_cache): EXFUN it.
10435 (font_update_drivers): Extern it.
10436
10437 * font.c (font_unparse_fcname): Fix typo (swidth->width).
10438 (font_list_entities): Check driver_list->on.
10439 (register_font_driver): Initalize `on' member to 0.
10440 (font_update_drivers): New function.
10441 (Fclear_font_cache): Check driver_list->on.
10442
10443 * frame.h (Qfont_backend): Extern it.
10444 (x_set_font_backend): Extern it.
10445
10446 * frame.c (Qfont_backend): New variable.
10447 (frame_parms): New element for font-backend.
10448 (x_set_font_backend): New function.
10449
10450 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
10451 FontBackend frame parameter.
10452 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
10453 x_set_font_backend.
10454
10455 * xfont.c (xfont_list): Don't try listing by :name property if the
10456 name is not for XLFD.
10457
104582008-02-01 Kenichi Handa <handa@m17n.org>
10459
10460 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
10461 (LGLYPH_SET_TO): New macros.
10462 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
10463 element of G is vector or not.
10464 (font_at): Extern it.
10465
10466 * font.c: Include window.h.
10467 (font_lispy_object): New function.
10468 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
10469 end of valid glyph.
10470 (font_close_object): Fix getting (struct font *).
10471 (font_at): New function.
10472 (Ffont_get): If FONT is a font-object, get entity from it.
10473 (Ffont_make_gstring): Initialize elements of glyphs with nil.
10474 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
10475 range check.
10476 (Ffont_at): New function.
10477 (syms_of_font): Defsubr Sfont_at.
10478
10479 * xdisp.c (it_props): Move the entry for Qauto_composed to just
10480 before the entry for Qcomposition.
10481 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
10482 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
10483 the font in gstring.
10484 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
10485 LGLYPH_FORM (g) to detect the end of valid glyph.
10486 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
10487 we are composing with gstring.
10488
10489 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
10490 Check if adjustment is vector or not.
10491
10492 * Makefile.in (font.o): Make it depends on window.h.
10493
104942008-02-01 Kenichi Handa <handa@m17n.org>
10495
10496 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
10497 adjustment is vector or not.
10498
104992008-02-01 Miles Bader <miles@gnu.org>
10500
10501 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
10502
105032008-02-01 Kenichi Handa <handa@m17n.org>
10504
10505 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
10506 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
10507 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
10508
10509 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
10510 (DEVICE_DELTA): Fix typo.
10511 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
10512 LGLYPH format.
10513
10514 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10515 the change of LGLYPH format.
10516
105172008-02-01 Kenichi Handa <handa@m17n.org>
10518
10519 * ftfont.c (ftfont_list): Fix typo.
10520 (ftfont_build_basic_charsets): Don't include letters with diacritics.
10521
105222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10523
10524 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
10525
10526 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
10527 xftface_info is non-NULL.
10528
105292008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10530
10531 * ftfont.c (ftfont_list): Move misplaced #endif.
10532
105332008-02-01 Kenichi Handa <handa@m17n.org>
10534
10535 * ftfont.c (ftfont_list): Pay attention to the case that
10536 FC_CAPABILITY is not defined.
10537
105382008-02-01 Kenichi Handa <handa@m17n.org>
10539
10540 * xftfont.c (xftfont_open): Set charset related members to -1.
10541
10542 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
10543 QCname.
10544 (ftfont_open): Set charset related members to -1.
10545
10546 * fontset.c (Votf_script_alist): New variable.
10547 (syms_of_fontset): Initialize it.
10548 (fontset_font): Delete unused variable.
10549
10550 * fontset.h (Votf_script_alist): Extern it.
10551
10552 * font.c (font_find_for_lface): Optimize code.
10553
10554 * font.h (font_close_object, font_merge_old_spec): Extern them.
10555
105562008-02-01 Kenichi Handa <handa@m17n.org>
10557
10558 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
10559 (syms_of_font): Initialize them.
10560 (font_pixel_size): Allow float value in dpi.
10561 (font_prop_validate_type): Delete.
10562 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
10563 Change caller.
10564 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
10565 (font_prop_validate_extra): Delete.
10566 (font_prop_validate_spacing): New function.
10567 (font_property_table): Add elements for all known properties.
10568 (get_font_prop_index): Rename from check_font_prop_name. New
10569 argument FROM. Change caller.
10570 (font_prop_validate): Validate all known properties.
10571 (font_put_extra): Delete argument force. Change caller.
10572 (font_expand_wildcards): Make it static. Fix the way of shrinking
10573 the possible range.
10574 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
10575 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
10576 Change caller.
10577 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
10578 (font_parse_fcname): Delete argument merge. Fix parsing of point
10579 size. Don't validate properties values here. Change caller.
10580 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
10581 (font_open_by_name): Delete unused variable.
10582 (Ffont_spec): Likewise. Validate property values.
10583 (Ffont_match_p): New function.
10584
10585 * font.h (QCscalable): Extern it.
10586 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
10587
10588 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
10589
10590 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
10591 (xfont_list_pattern): New function.
10592 (xfont_list): Use xfont_list_pattern.
10593
105942008-02-01 Kenichi Handa <handa@m17n.org>
10595
10596 * font.h (Flist_fonts): EXFUN it.
10597
105982008-02-01 Jason Rumney <jasonr@gnu.org>
10599
10600 * w32term.c (w32_initialize): Add back smoothing_type and
10601 smoothing_enabled definitions.
10602
106032008-02-01 Kenichi Handa <handa@m17n.org>
10604
10605 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
10606 s->face->font on determining underline position.
10607
106082008-02-01 Kenichi Handa <handa@m17n.org>
10609
10610 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
10611 (font_has_char): Accept font-object too.
10612 (font_find_for_lface): Try at first with a size specified in face.
10613
106142008-02-01 Kenichi Handa <handa@m17n.org>
10615
10616 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
10617 font_open_by_name.
10618
106192008-02-01 Kenichi Handa <handa@m17n.org>
10620
10621 * font.h (QCspacing, QCdpi): Extern them.
10622 (enum font_spacing): New enum.
10623 (FONT_PIXEL_SIZE_QUANTUM): New macro.
10624
10625 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
10626 (QCspacing, QCdpi): New variables.
10627 (syms_of_font): Initialize them.
10628 (font_pixel_size): New function.
10629 (font_put_extra): New function.
10630 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
10631 in FONT_EXTRA.
10632 (font_parse_fcname): Handle enumerated values (e.g. bold).
10633 Fix handling font size. Add QCname property that contains only
10634 unknown properties.
10635 (font_score): Change argument. Change caller. Pay attention to
10636 FONT_PIXEL_SIZE_QUANTUM.
10637 (font_sort_entites, font_list_entities, font_find_for_lface)
10638 (font_open_for_lface, font_open_by_name): Fix handling of font size.
10639 (Ffont_spec): Add QCname property that contains only unknown properties.
10640
10641 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
10642 include weight in listing pattern, instead check weight of each
10643 listed font. Don't include scalable in pattern. Pay attention to
10644 FONT_PIXEL_SIZE_QUANTUM.
10645
106462008-02-01 Kenichi Handa <handa@m17n.org>
10647
10648 * font.c (font_parse_fcname): Fix parsing of point-size.
10649 (font_unparse_fcname): Produce symbolic names for style properties.
10650 (font_list_entities): Handle float size correctly.
10651 (font_open_by_name): Prefer `normal' property values if the name
10652 doesn't specify them.
10653
10654 * fontset.c (Finternal_char_font): Use font_get_name, not
10655 Ffont_xlfd_name.
10656
10657 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
10658 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
10659 pattern. Don't force scalable.
10660
10661 * xftfont.c (xftfont_open): For generating a name, start from
10662 96-byte buffer.
10663
106642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10665
10666 * frame.h (x_new_fontset2): Fix prototype.
10667
106682008-02-01 Kenichi Handa <handa@m17n.org>
10669
10670 * font.h (struct font_driver): Delete member parse_name.
10671 (font_match_p, font_get_spec, font_parse_fcname)
10672 (font_unparse_fcname): Extern them.
10673 (font_get_name): Adjust prototype.
10674
10675 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
10676 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
10677 (font_expand_wildcards): Fix handling ENCODING field. Avoid
10678 unnecessary checks for weight, slant, and swidth.
10679 (font_parse_fcname): New function.
10680 (font_unparse_fcname): New function.
10681 (font_parse_name): New function.
10682 (font_match_p): New function.
10683 (font_get_name): Change return value to Lisp string.
10684 (font_get_spec): New function.
10685 (Qunspecified, Qignore_defface): Don't extern them.
10686 (font_find_for_lface): Assume that LFACE is fully specified.
10687 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
10688 object, use it for FACE.
10689 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
10690 driver->parse_name.
10691 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
10692
10693 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
10694 prototype.
10695
10696 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
10697 argument F. Don't call Fnew_fontset. Instead, directly call
10698 make_fontset.
10699
10700 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
10701
10702 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
10703 of x_new_fontset2.
10704
10705 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
10706 (Qsans__serif): New variables.
10707 (ftfont_generic_family_list): New variable.
10708 (syms_of_ftfont): Initialize the above variables.
10709 (ftfont_pattern_entity): Delete argument NAME.
10710 (ftfont_list_generic_family): New function.
10711 (ftfont_parse_name): Delete this function.
10712 (ftfont_list): Try generic family only when FcFontList found no font.
10713 (ftfont_list_family): Fix args to FcObjectSetBuild.
10714
10715 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
10716 object in attrs[LFACE_FONT_INDEX].
10717 (set_lface_from_font_name): Cancel all changes for font-backend.
10718 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
10719 function.
10720 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
10721 font object in QCfont attribute.
10722 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
10723 (realize_default_face) [USE_FONT_BACKEND]: Call
10724 set_lface_from_font_and_fontset.
10725
10726 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
10727 "fixed", and signal error here if no suitable font was found.
10728
10729 * xfont.c (xfont_parse_name): Delete this function.
10730
10731 * xftfont.c (xftfont_open): Change coding style of error
10732 handling. Generate fontconfig's fontname pattern.
10733
10734 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
10735 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
10736
10737 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
10738 Both args FONTSET and FONT_OBJECT must be existing ones.
10739
107402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10741
10742 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
10743
107442008-02-01 Kenichi Handa <handa@m17n.org>
10745
10746 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
10747
10748 * font.h (struct font): Fix typo.
10749
10750 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
10751 XLFD_XXX_INDEX.
10752 (enum xlfd_field_mask): New enum.
10753 (intern_font_field): Changed argument. Change caller. If digits
10754 are followed by non-digits, return a symbol.
10755 (font_expand_wildcards): New function.
10756 (font_parse_xlfd): Fix wildcard handling.
10757 (Ffont_spec): If :name is specified, reflect the info in the other
10758 properties.
10759
10760 * ftfont.c (ftfont_pattern_entity): Fix typo.
10761 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
10762 locale.
10763
107642008-02-01 Kenichi Handa <handa@m17n.org>
10765
10766 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
10767
10768 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
10769 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
10770 registry doesn't specify encoding part.
10771 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
10772 (font_open_by_name): At first try parsing the name.
10773 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
10774 as Lisp symbols.
10775
10776 * fontset.c (reorder_font_vector): Pay attention to the case that
10777 the 3rd element of font_def is nil.
10778 (fontset_font): For the default fontset, append one more fontset
10779 elements for a script-based font specification. Don't add script
10780 attribute on finding a font.
10781 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
10782 font name.
10783 (fontset_ascii_font): If a font can't be opened, return nil.
10784
10785 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
10786 (ftfont_pattern_entity): New function.
10787 (ftfont_get_cache): Assume that freetype_font_cache is already
10788 initialized.
10789 (ftfont_list): Handle the case that a file is specified in font
10790 name. Use ftfont_pattern_entity to generate entities.
10791 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
10792 (syms_of_ftfont): Initialize freetype_font_cache.
10793
10794 * xftfont.c (xftfont_open): Make the font name fontconfig's
10795 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
10796 (xftfont_close): Free font->font.name if not NULL.
10797
10798 * xfont.c (xfont_list): If script is specified for a font, return
10799 null_vector.
10800 (xfont_list_family): Declare argument type.
10801
10802 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
10803 name, set LFACE_FONT (lface) to nil.
10804
10805 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
10806 return Qnil.
10807
108082008-02-01 Kenichi Handa <handa@m17n.org>
10809
10810 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
10811 (standard_args): Add "-enable-font-backend".
10812
108132008-02-01 Kenichi Handa <handa@m17n.org>
10814
10815 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
10816 (struct xftdraw_list, xftdraw_list): Delete them.
10817 (register_xftdraw, check_xftdraw): Delete them.
10818 (xftfont_prepare_face): Don't call register_xftdraw.
10819 (xftfont_done_face): Don't call check_xftdraw.
10820 (xftfont_draw): Get background color only when with_background is
10821 nonzero.
10822
10823 * xfont.c (xfont_encode_char): Fix calculation of char2b.
10824
108252008-02-01 Kenichi Handa <handa@m17n.org>
10826
10827 These changes are for the new font handling codes.
10828
10829 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
10830 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
10831 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
10832 (FONTSRC, FONTOBJ): New variables.
10833 (obj): Add $(FONTOBJ).
10834 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
10835 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
10836 @LIBOTF_LIBS@.
10837 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
10838 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
10839
10840 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
10841
10842 * character.h (Vscript_representative_chars): Extern it.
10843
10844 * character.c (Vscript_representative_chars): New variable.
10845 (syms_of_character): Declare it as a Lisp variable.
10846
10847 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
10848 enable_font_backend is nonzero, accept the composition method
10849 COMPOSITION_WITH_GLYPH_STRING.
10850
10851 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
10852 enumeration COMPOSITION_WITH_GLYPH_STRING.
10853
10854 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
10855 members clip_x, clip_y, clip_width, and clip_height.
10856 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
10857
10858 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
10859 --enable-font-backend. Call syms_of_font.
10860
10861 * fns.c (assoc_no_quit): New function.
10862
10863 * fontset.h (FONT_INFO_FROM_FACE): New macro.
10864 (face_for_font, new_fontset_from_font)
10865 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
10866
10867 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
10868 (fontset_font, fontset_ascii, face_for_char)
10869 (make_fontset_for_ascii_face, Ffont_info)
10870 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
10871 is nonzero, use font-backend mechanism.
10872 (find_font_encoding): Make it non-static.
10873 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
10874 New functions.
10875
10876 * frame.h (struct frame): New members resx and resy.
10877 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
10878 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
10879
10880 * frame.c [USE_FONT_BACKEND]: Include "font.h".
10881 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
10882
10883 * lisp.h (assoc_no_quit): Extern it.
10884
10885 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
10886 Through out the file, use FONT_INFO_FROM_FACE instead of
10887 FONT_INFO_FROM_ID, use get_per_char_metric instead of
10888 rif->per_char_metric.
10889 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
10890 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
10891 (get_glyph_face_and_encoding, fill_composite_glyph_string)
10892 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
10893 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
10894 nonzero, use font-backend mechanism.
10895 (get_per_char_metric): New function.
10896
10897 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
10898 (set_lface_from_font_name)
10899 (set_font_frame_param, free_realized_face)
10900 (prepare_face_for_display, clear_face_gcs)
10901 (Finternal_set_font_selection_order, realize_x_face)
10902 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
10903 font-backend mechanism.
10904 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
10905 (load_face_font) [USE_FONT_BACKEND]: Abort.
10906 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
10907 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
10908
10909 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
10910 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
10911 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
10912 nonzero, register all available font drivers. Call
10913 x_default_font_parameter for deciding a font.
10914 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
10915
10916 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
10917 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
10918 (x_set_glyph_string_clipping_exactly)
10919 (x_compute_glyph_string_overhangs)
10920 (x_draw_glyph_string_foreground)
10921 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
10922 (x_free_frame_resources) [USE_FONT_BACKEND]: If
10923 enable_font_backend is nonzero, use font-backend mechanism.
10924 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
10925
109262008-02-01 Kenichi Handa <handa@m17n.org>
10927
10928 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
10929 system_eol_type.
10930 (syms_of_coding): Initialize system_eol_type.
10931
10932 * process.c (Fset_process_coding_system): Inherit system's eol
10933 format if necessary.
10934
109352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10936
10937 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
10938
109392008-02-01 Kenichi Handa <handa@m17n.org>
10940
10941 * coding.c (decode_eol): Pay attention to buffer relocation in
10942 del_range_2.
10943 (decode_coding): Call decode_eol before restoring undo_list.
10944
109452008-02-01 Kenichi Handa <handa@m17n.org>
10946
10947 * charset.c (Fdefine_charset_internal): Fix setting of
10948 emacs_mule_bytes.
10949
109502008-02-01 Kenichi Handa <handa@m17n.org>
10951
10952 * keyboard.c (read_char): Check if C is a character or not before
10953 looking up Vkeyboard_translate_table.
10954
109552008-02-01 Kenichi Handa <handa@m17n.org>
10956
10957 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
10958 condition to terminate the loop.
10959
109602008-02-01 Kenichi Handa <handa@m17n.org>
10961
10962 * coding.c (produce_composition): Compare charbuf[i] instead of
10963 args[i] against 0.
10964 (Fterminal_coding_system): Use EQ to compare Lisp objects.
10965
109662008-02-01 Kenichi Handa <handa@m17n.org>
10967
10968 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
10969 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
10970 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
10971 detect_coding.
10972 (emacs_mule_char): Handle old style (Emacs 20) component character
10973 of a composition.
10974 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
10975 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
10976 composition rule.
10977 (decode_coding_emacs_mule): Handle invalid bytes correctly.
10978
109792008-02-01 Kenichi Handa <handa@m17n.org>
10980
10981 * coding.c (encode_coding_ccl): Allocate destination dynamically
10982 when necessary.
10983
109842008-02-01 Kenichi Handa <handa@m17n.org>
10985
10986 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
10987 the loop. When quitted, show a proper error message.
10988
109892008-02-01 Kenichi Handa <handa@m17n.org>
10990
10991 * xterm.c (x_set_glyph_string_clipping_exactly): Set
10992 src->clip_head and src->clip_tail temporarily instead of src->hl.
10993
10994 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
10995 character sequence.
10996 (Fccl_execute_on_string): Use ASET, not XSET.
10997
109982008-02-01 Kenichi Handa <handa@m17n.org>
10999
11000 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11001
110022008-02-01 Kenichi Handa <handa@m17n.org>
11003
11004 * coding.c (decode_coding): Fix the condition of terminating the
11005 decoding loop.
11006
110072008-02-01 Kenichi Handa <handa@m17n.org>
11008
11009 * data.c (Faset): On setting a character bigger than 255 in a
11010 unibyte string, signal an error instead of make the string multibyte.
11011
110122008-02-01 Kenichi Handa <handa@m17n.org>
11013
11014 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11015 made by a mapping table.
11016
110172008-02-01 Kenichi Handa <handa@m17n.org>
11018
11019 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11020 not.
11021 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11022 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11023
11024 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11025 s->face is NULL or not.
11026
110272008-02-01 Kenichi Handa <handa@m17n.org>
11028
11029 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11030 (x_draw_glyph_string): Fix drawing of right_overhang and
11031 left_overhang around/on cursor.
11032
11033 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11034
110352008-02-01 Kenichi Handa <handa@m17n.org>
11036
11037 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11038
110392008-02-01 Kenichi Handa <handa@m17n.org>
11040
11041 * coding.c (Fdefine_coding_system_internal)
11042 (Fdefine_coding_system_alias): Avoid a duplicated element in
11043 Vcoding_system_alist.
11044
110452008-02-01 Kenichi Handa <handa@m17n.org>
11046
11047 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11048
11049 * coding.c (Qcoding_system_define_form): New variable.
11050 (syms_of_coding): Intern and staticpro it.
11051 (Fcoding_system_p): Check Qcoding_system_define_form.
11052 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11053
11054 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11055 Fcoding_system_p.
11056 (CHECK_CODING_SYSTEM): If ID is not available, call
11057 Fcheck_coding_system.
11058 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11059 Try also Fcheck_coding_system.
11060
110612008-02-01 Kenichi Handa <handa@m17n.org>
11062
11063 * coding.c (code_conversion_restore): GCPRO arg.
11064
110652008-02-01 Kenichi Handa <handa@m17n.org>
11066
11067 * character.c (lisp_string_width): Check multibyteness of STRING.
11068
110692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11070
11071 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11072 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11073 (decode_mac_font_name): Use decode_coding_c_string instead of
11074 decode_coding.
11075 (x_load_font): Initialize fontp->fontset to -1. Set
11076 fontp->encoding_type.
11077
110782008-02-01 Kenichi Handa <handa@m17n.org>
11079
11080 * search.c (search_buffer): Give up BM search on case-fold-search
11081 if one of a target character has a case-equivalence of different
11082 byte length even if that target charcter is an ASCII.
11083 (simple_search): Fix calculation of byte length of matched text.
11084 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11085
110862008-02-01 Kenichi Handa <handa@m17n.org>
11087
11088 * coding.c (decode_coding): Fix handling of invalid bytes.
11089
110902008-02-01 Kenichi Handa <handa@m17n.org>
11091
11092 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11093 Unicode characters.
11094
110952008-02-01 Kenichi Handa <handa@m17n.org>
11096
11097 * coding.c (encode_coding_object): If a pre-write-conversion
11098 function makes a new buffer, kill it.
11099
111002008-02-01 Kenichi Handa <handa@m17n.org>
11101
11102 * coding.c (QCascii_compatible_p): New variable.
11103 (syms_of_coding): Initialize it.
11104 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11105 calling string_char.
11106 (record_conversion_result): Add `default:' case.
11107 (coding_charset_list): Delete unused variable `coding_type'.
11108 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11109 property in the plist of the coding system.
11110 (Fcoding_system_put): Check QCascii_compatible_p.
11111
111122008-02-01 Miles Bader <miles@gnu.org>
11113
11114 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11115 removed calculation of frame `f', as it's now used.
11116
111172008-02-01 Kenichi Handa <handa@m17n.org>
11118
11119 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11120 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11121 (UNIDATA): New variable.
11122 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11123 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11124 $(RUN_TEMACS) unconditionally.
11125
111262008-02-01 Kenichi Handa <handa@m17n.org>
11127
11128 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11129 (admindir): New variable.
11130 ($(lispsource)international/charprop.el): New target.
11131
111322008-02-01 Miles Bader <miles@gnu.org>
11133
11134 * character.c (chars-in-region): Remove obsolete function.
11135 (syms_of_character): Remove its initialization.
11136
111372008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11138
11139 * w32select.c (validate_coding_system)
11140 (setup_windows_coding_system): New functions.
11141 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11142 setup_windows_coding_system.
11143 (setup_config, Fw32_get_clipboard_data): Use
11144 validate_coding_system.
11145 (Fx_selection_exists): Move call to setup_config to a place
11146 where signals are allowed.
11147
11148 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11149 (Fcheck_coding_system): Add declarations.
11150
111512008-02-01 Kenichi Handa <handa@m17n.org>
11152
11153 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11154
111552008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11156
11157 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11158 string as the second argument for x_new_fontset.
11159
111602008-02-01 Kenichi Handa <handa@m17n.org>
11161
11162 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11163 (encode_coding_object): Use safe_call instead of call2.
11164
111652008-02-01 Kenichi Handa <handa@m17n.org>
11166
11167 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11168
11169 * Makefile.in (lisp): Include charprop.el.
11170
111712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11172
11173 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11174 Not sure if it's unnecessary.
11175
111762008-02-01 Steven Tamm <steventamm@mac.com>
11177
11178 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11179 some possibly unnecessary fontset checking code that crashed
11180 when creating a new frame.
11181
111822008-02-01 Kenichi Handa <handa@m17n.org>
11183
11184 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11185 lookup_face.
11186
11187 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11188
11189 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11190
111912008-02-01 Kenichi Handa <handa@m17n.org>
11192
11193 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11194 (coding_charset_list): New function.
11195
11196 * coding.h (coding_charset_list): Extern it.
11197
111982008-02-01 Kenichi Handa <handa@m17n.org>
11199
11200 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11201 concatenation of family and registry.
11202
112032008-02-01 Kenichi Handa <handa@m17n.org>
11204
11205 * character.h (BYTE8_STRING): Fix typo.
11206
11207 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11208 string to multibyte (sync to HEAD).
11209
11210 * casefiddle.c (casify_region): Handle changes in byte-length
11211 using replace_range_2 (sync to HEAD).
11212
112132008-02-01 Andreas Schwab <schwab@suse.de>
11214
11215 * chartab.c (map_char_table): GCPRO table and arg.
11216
112172008-02-01 Kenichi Handa <handa@m17n.org>
11218
11219 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11220 already at limit.
11221
112222008-02-01 Kenichi Handa <handa@m17n.org>
11223
11224 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11225 instead of fast_c_string_match_ignore_case.
11226 (find_font_encoding): Change argument to Lisp_Object. Use
11227 fast_string_match_ignore_case instead of
11228 fast_c_string_match_ignore_case. Change caller.
11229
112302008-02-01 Kenichi Handa <handa@m17n.org>
11231
11232 * xdisp.c (get_next_display_element): In unibyte case, decide to
11233 display in octal form by checking a character by
11234 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11235
11236 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11237
11238 * character.c (unibyte_has_multibyte_table): New variable.
11239
11240 * character.h (unibyte_has_multibyte_table): Extern it.
11241 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11242
112432008-02-01 Kenichi Handa <handa@m17n.org>
11244
11245 * coding.c (encode_coding_iso_2022): Fix handling of charset
11246 annotation.
11247
112482008-02-01 Kenichi Handa <handa@m17n.org>
11249
11250 * coding.c (setup_coding_system): If coding_system is nil, use
11251 Qundecided.
11252 (Fterminal_coding_system): Return nil if terminal coding system is
11253 `undecided'.
11254 (syms_of_coding): Define coding-system `undecided' here. Setup
11255 terminal_coding as `undecided'.
11256
112572008-02-01 Kenichi Handa <handa@m17n.org>
11258
11259 * xdisp.c (message_dolog, set_message_1): Call
11260 unibyte_char_to_multibyte with arg type int.
11261
11262 * lread.c (read1): Fix reading of a char-table.
11263
11264 * print.c (print_object): Include sub char-table in circularities
11265 detection.
11266
112672008-02-01 Kenichi Handa <handa@m17n.org>
11268
11269 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11270 Append the found sequences in car of ARGS instead of prepending.
11271
112722008-02-01 Kenichi Handa <handa@m17n.org>
11273
11274 * fileio.c (report_file_error): Make a unibyte string from
11275 strerror (errorno).
11276 (Fsubstitute_in_file_name): Fix the arg to
11277 unibyte_char_to_multibyte. It is evaluated twice.
11278
112792008-02-01 Kenichi Handa <handa@m17n.org>
11280
11281 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11282
112832008-02-01 Kenichi Handa <handa@m17n.org>
11284
11285 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11286 BOM is not found.
11287 (detect_coding, detect_coding_system): Optimization for ISO-2022
11288 when no 8-bit data is found.
11289
112902008-02-01 Jason Rumney <jasonr@gnu.org>
11291
11292 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11293
112942008-02-01 Kenichi Handa <handa@m17n.org>
11295
11296 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11297 CHARS.
11298
112992008-02-01 Steven Tamm <steventamm@mac.com>
11300
11301 * macterm.c (mac_encode_char): Add charset argument and update
11302 to use encoding_type.
11303 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11304 switch to pure fontset.
11305 (decode_mac_font_name): Temporarily remove decoding.
11306 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11307 (x_load_font): Temporarily remove encoding.
11308
113092008-02-01 Kenichi Handa <handa@m17n.org>
11310
11311 * xfaces.c (Fface_font): If frame is not on a window system,
11312 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11313 refer to face->font.
11314 (split_font_name_into_vector, build_font_name_from_vector)
11315 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11316 when HAVE_WINDOW_SYSTEM is defined.
11317
113182008-02-01 Kenichi Handa <handa@m17n.org>
11319
11320 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11321 (x_produce_glyphs): Fix setting of members of cmp in case
11322 cmp->glyph_len is zero.
11323
11324 * fontset.c (Fset_fontset_font): Fix docstring.
11325 (Ffontset_info): Make it backward compatible. New arg ALL.
11326
113272008-02-01 Kim F. Storm <storm@cua.dk>
11328
11329 * process.c (read_process_output): Grow decoding_buf when needed;
11330 this could cause a crash in allocate_string and compact_small_strings.
11331
113322008-02-01 Kenichi Handa <handa@m17n.org>
11333
11334 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11335
113362008-02-01 Kenichi Handa <handa@m17n.org>
11337
11338 * coding.c (setup_coding_system): Set coding->common_flags
11339 correctly for raw-text.
11340 (consume_chars): On encoding unibyte text by raw-text, don't check
11341 multibyte form.
11342 (encode_coding): On encoding by raw-text, never use translation tables.
11343
11344 * fileio.c (e_write): Short cut for the case of no encoding.
11345
113462008-02-01 Kenichi Handa <handa@m17n.org>
11347
11348 * coding.c (detect_coding, detect_coding_system): Delete unused
11349 variables.
11350
113512008-02-01 Kenichi Handa <handa@m17n.org>
11352
11353 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11354 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11355
113562008-02-01 Kenichi Handa <handa@m17n.org>
11357
11358 * coding.c (Ffind_coding_systems_region_internal): Include
11359 raw-text and no-conversion in the result.
11360
113612008-02-01 Kenichi Handa <handa@m17n.org>
11362
11363 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11364 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11365 FONT_DEF.
11366 (font_def_arg, add_arg, from_arg, to_arg): New args.
11367 (set_fontset_font): Change argument.
11368 (Fset_fontset_font): Fix for the case that TARGET is a script
11369 name and charset name.
11370 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11371
113722008-02-01 Kenichi Handa <handa@m17n.org>
11373
11374 * fontset.c (fontset_font): Rename from fontset_face. Change return
11375 value.
11376 (face_suitable_for_char_p, face_for_char): Adjust for the change
11377 of fontset_font.
11378 (make_fontset_for_ascii_face): Fix setting of the fontset element
11379 for ASCII.
11380 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11381 to get a font name.
11382 (Ffontset_info): Adjust for the change of fontset_font.
11383
11384 * coding.c (emacs_mule_char): Check invalid code more rigidly.
11385
11386 * character.h (LEADING_CODE_LATIN_1_MIN)
11387 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
11388
113892008-02-01 Kenichi Handa <handa@m17n.org>
11390
11391 * editfns.c (check_translation): New function.
11392 (Ftranslate_region_internal): Handle M:N mapping.
11393
113942008-02-01 Kenichi Handa <handa@m17n.org>
11395
11396 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
11397
113982008-02-01 Kenichi Handa <handa@m17n.org>
11399
11400 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
11401 goto invalid_code.
11402 (decode_coding_iso_2022): Fix handling of invalid designation.
11403
11404 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
11405 after calling code_conversion_save.
11406
114072008-02-01 Kenichi Handa <handa@m17n.org>
11408
11409 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
11410
11411 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
11412
11413 * fontset.c: Include "intervals.h".
11414 (fontset_face): Fix comparing of Lisp_Objects.
11415 (free_face_fontset, new_fontset_from_font_name): Fix
11416 Lisp_Object/int mixup.
11417
11418 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
11419
11420 * coding.c: Add many prototypes for static functions.
11421 (get_translation_table): Allow max_lookup to be NULL.
11422 (decode_coding, Ffind_coding_systems_region_internal)
11423 (Funencodable_char_position, Fcheck_coding_systems_region): Call
11424 get_translation_table with max_lookup NULL.
11425
114262008-02-01 Kenichi Handa <handa@m17n.org>
11427
11428 * coding.c (get_translation_table): Declare it as Lisp_Object.
11429 (LOOKUP_TRANSLATION_TABLE): New macro.
11430 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
11431 instead of CHAR_TABLE_REF.
11432
114332008-02-01 Kenichi Handa <handa@m17n.org>
11434
11435 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
11436 annotation data format.
11437 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
11438 Change arguments FROM and TO to single argument NCHARS. Change caller.
11439 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
11440 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11441 (decode_coding_ccl, decode_coding_charset): Pay attention to
11442 coding->charbuf_used.
11443 (get_translation): New function.
11444 (produce_chars): New arguments translation_table and last_block.
11445 Translate characters here. Return number of carryover chars.
11446 Change caller.
11447 (produce_composition): New argument pos. Change caller.
11448 Adjust for the change of annotation data format.
11449 (produce_charset, produce_annotation): Likewise.
11450 (decode_coding, encode_coding): Don't call translate_chars.
11451 (consume_chars): New arg translation_table. Change caller.
11452 (translate_chars): Delete.
11453 (syms_of_coding): Make translation-table's number of extra slots 2.
11454
114552008-02-01 Kenichi Handa <handa@m17n.org>
11456
11457 * search.c (simple_search): Fix setting this_pos_byte in backward
11458 search.
11459
11460 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
11461 byte sequence.
11462 (detect_coding_ccl): Fix setting of the variable valids.
11463
114642008-02-01 Kenichi Handa <handa@m17n.org>
11465
11466 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
11467
11468 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
11469
11470 * editfns.c (Ftranslate_region_internal): Rename from
11471 Ftranslate_region. Accept a char-table in TABLE.
11472 (syms_of_editfns): Defsubr Stranslate_region_internal.
11473
11474 * xfaces.c (set_lface_from_font_name): If a font is specified for
11475 a frame, generate a fontset from the font.
11476 (build_scalable_font_name): If the scalable font is requested for
11477 a specific size, don't change that size.
11478 (try_font_list): Try a scalable font also in the case that a
11479 pattern string is specified.
11480
114812008-02-01 Kenichi Handa <handa@m17n.org>
11482
11483 * xfaces.c (Fface_font): New optional arg CHARACTER.
11484
114852008-02-01 Kenichi Handa <handa@m17n.org>
11486
11487 * charset.h (CHARSET_OFFSET): New macro.
11488
114892008-02-01 Kenichi Handa <handa@m17n.org>
11490
11491 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
11492
11493 * fontset.c (fontset_face): Handle the case that repertory is a
11494 char-table.
11495 (find_font_encoding): Return nil for unknown encoding.
11496 (Fset_fontset_font): Ignore a font of unknown encoding.
11497
114982008-02-01 Kenichi Handa <handa@m17n.org>
11499
11500 * keymap.c (describe_vector): Handle default value of a char table.
11501
11502 * fontset.c (fontset_face): Handle fallback fonts correctly.
11503 (Ffontset_info): Return infomation about fallback fonts.
11504
115052008-02-01 Kenichi Handa <handa@m17n.org>
11506
11507 * fontset.c (FONTSET_DEFAULT): New macro.
11508 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
11509 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
11510 the case that it is nil.
11511 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
11512 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
11513
11514 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
11515 subset or superset.
11516
115172008-02-01 Kenichi Handa <handa@m17n.org>
11518
11519 * emacs.c (main): Call init_charset after syms_of_XXX.
11520
11521 * charset.c (Vcharset_map_directory): Delete.
11522 (Vcharset_map_path): New variable.
11523 (load_charset_map_from_file): Use Vcharset_map_path instead.
11524 (init_charset): Initialize Vcharset_map_path.
11525 (syms_of_charset): Delete declaration of "charset-map-directory",
11526 add declaration of "charset-map-path".
11527
115282008-02-01 Kenichi Handa <handa@m17n.org>
11529
11530 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
11531 ASCII only string.
11532
11533 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
11534
11535 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
11536 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
11537
115382008-02-01 Kenichi Handa <handa@m17n.org>
11539
11540 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
11541
11542 * coding.c (QCmnemonic, QCdefalut_char)
11543 (QCdecode_translation_table, QCencode_translation_table)
11544 (QCpost_read_conversion, QCpre_write_conversion): New variables.
11545 (get_translation_table): Return a list of translation tables if
11546 necessary.
11547 (decode_coding): Call get_translation_table with ENCODEP 0.
11548 (char_encodable_p): If translation_table is non-nil, always call
11549 translate_char.
11550 (Fdefine_coding_system_internal): Accept list of translation
11551 tables as :encode-translation-table and :decode-translation-table.
11552 (Fcoding_system_put): New function.
11553 (syms_of_coding): Declare new symbols. Defsubr
11554 Scoding_system_put.
11555 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
11556 typically JISX0212.
11557
11558 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
11559 when the charset is superset type.
11560
11561 * character.c (translate_char): Accept list of translation tables.
11562
115632008-02-01 Kenichi Handa <handa@m17n.org>
11564
11565 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
11566 (CODING_ATTR_TRANS_TBL): New macro.
11567
11568 * coding.c (get_translation_table): New function.
11569 (translate_chars): Fix the bug of skipping annotation data.
11570 (decode_coding, encode_coding): Utilize get_translation_table.
11571 (char_encodable_p, Funencodable_char_position): Translate char if
11572 necessary.
11573 (Ffind_coding_systems_region_internal)
11574 (Fcheck_coding_systems_region): Setup translation table for encode
11575 in a coding system attribute vector in advance.
11576 (Fdefine_coding_system_internal): Allow a symbol as translation
11577 table. For shift-jis type coding system, allow 4th charset.
11578
115792008-02-01 Kenichi Handa <handa@m17n.org>
11580
11581 * coding.c (decode_coding_sjis): Check the first byte rigidly.
11582
11583 * xdisp.c (get_next_display_element): Pass -1 as POS to
11584 FACE_FOR_CHAR if displaying a C-string.
11585
115862008-02-01 Kenichi Handa <handa@m17n.org>
11587
11588 * composite.c (get_composition_id): Handle xoff and yoff in a
11589 composition rule.
11590
11591 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
11592 (struct composition): New member lbearing and rbearing.
11593
11594 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
11595 (x_get_glyph_overhangs): Handle a composition glyph.
11596 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
11597
11598 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
11599 composition glyph.
11600
116012008-02-01 Kenichi Handa <handa@m17n.org>
11602
11603 * print.c: Include charset.h.
11604 (Vprint_charset_text_property): New variable.
11605 (Qdefault): Extern it.
11606 (PRINT_STRING_NON_CHARSET_FOUND)
11607 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
11608 (print_check_string_result): New variable.
11609 (print_check_string_charset_prop): New function.
11610 (print_prune_charset_plist): New variable.
11611 (print_prune_string_charset): New function.
11612 (print_object): Call print_prune_string_charset if
11613 Vprint_charset_text_property is not t.
11614 (print_interval): Print nothing if interval->plist is nil.
11615 (syms_of_print): Declare Vprint_charset_text_property as a lisp
11616 variable. Init and staticpro print_prune_charset_plist.
11617
116182008-02-01 Kenichi Handa <handa@m17n.org>
11619
11620 * fontset.c (new_fontset_from_font_name): Use the specified font
11621 for all characters in the new fontset.
11622
11623 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11624 OBJECT args.
11625
11626 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
11627 OBJECT args for composition too.
11628
11629 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11630 OBJECT args.
11631
116322008-02-01 Kenichi Handa <handa@m17n.org>
11633
11634 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
11635
11636 * fontset.c (reorder_font_vector): Adjust for the change of
11637 FONT_DEF format.
11638 (fontset_face): New arg id. Change caller.
11639 (face_for_char): New args pos and object.
11640 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
11641 (fs_query_fontset): Check NAME by Fassoc too.
11642 (Fset_fontset_font): Allow non-XLFD font name.
11643 (Ffontset_info): Adjust for the change of FONT_DEF format.
11644
11645 * fontset.h (face_for_char): Adjust prototype.
11646
11647 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
11648 (append_space, extend_face_to_end_of_line)
11649 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11650 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
11651
11652 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
11653 POS and OBJECT args.
11654
11655 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
11656 POS and OBJECT args.
11657
116582008-02-01 Jason Rumney <jasonr@gnu.org>
11659
11660 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
11661 of GlobalAlloc'ed memory.
11662
116632008-02-01 Kenichi Handa <handa@m17n.org>
11664
11665 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
11666
11667 * charset.h (charset_table_used): Delete extern.
11668
11669 * charset.c (charset_table_used): Make it static.
11670 (map_charset_chars): Fix args to c_function with.
11671
11672 * chartab.c (map_sub_char_table_for_charset): Fix args to
11673 c_function with.
11674
11675 * coding.h (enum coding_result_code): Delete
11676 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
11677
11678 * coding.c (Qinsufficient_source, Qinconsistent_eol)
11679 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
11680 (Vlast_code_conversion_error): New variables.
11681 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
11682 (ONE_MORE_BYTE): Record error if any instead of signaling an
11683 error. If non-ASCII multibyte char is found, return the negative
11684 value of the code. All callers changed to check it.
11685 (ONE_MORE_BYTE_NO_CHECK): Likewise.
11686 (record_conversion_result): New function. Change all codes setting
11687 coding->result to call this function.
11688 (detect_coding_utf_8, decode_coding_utf_8)
11689 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
11690 Don't use the local variable incomplete.
11691 (emacs_mule_char): Change the second arg to `const'.
11692 (decode_coding): Fix of flushing out unprocessed data.
11693 (make_conversion_work_buffer): Fix making of a work buffer.
11694 (decode_coding_object): Return coding->dst_object.
11695
11696 * fontset.c (set_fontset_font): Fix args.
11697
11698 * lisp.h (CHARACTERBITS): Define as 22.
11699
11700 * process.c (send_process): Be sure to set coding->src_multibyte.
11701
11702 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
11703
117042008-02-01 Kenichi Handa <handa@m17n.org>
11705
11706 * xdisp.c (handle_auto_composed_prop): Give limit to
11707 Fnext_single_char_property_change.
11708
117092008-02-01 Kenichi Handa <handa@m17n.org>
11710
11711 * composite.c (syms_of_composite): Don't make the composition hash
11712 table weak.
11713
11714 * fontset.c (Fset_fontset_font): Fix docstring.
11715
11716 * lisp.h (detect_coding_system): Adjust prototype.
11717
11718 * fileio.c (kill_workbuf_unwind): Delete this function.
11719 (Finsert_file_contents): Adjust the call of detect_coding_system.
11720 Get conversion_buffer by code_conversion_save. Use the macro
11721 CODING_MAY_REQUIRE_DECODING. After decoding, update
11722 coding_system.
11723
11724 * coding.h (make_conversion_work_buffer): Delete extern.
11725 (code_conversion_save): Extern it.
11726
11727 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
11728 (CODING_GET_INFO): Delete argument eol_type. Change callers.
11729 (decode_coding_utf_8): Don't do eol converion.
11730 (detect_coding_utf_16): Check coding->src_chars, not
11731 coding->src_bytes. Add heuristics for those that have no signature.
11732 (decode_coding_emacs_mule, decode_coding_iso_2022)
11733 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11734 Don't do eol converion.
11735 (adjust_coding_eol_type): Return a new coding system.
11736 (detect_coding): Don't detect eol. Fix for utf-16 detection.
11737 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
11738 each change.
11739 (decode_coding): Pay attention to undo_list. Do eol conversion for
11740 all types of coding-systems (if necessary).
11741 (Vcode_conversion_work_buf_list): Delete it.
11742 (Vcode_conversion_reused_workbuf): Rename from
11743 Vcode_conversion_reused_work_buf.
11744 (Vcode_conversion_workbuf_name): New variable.
11745 (reused_workbuf_in_use): New variable.
11746 (make_conversion_work_buffer): Delete the arg DEPTH.
11747 (code_conversion_restore): Change argument to cons.
11748 (code_conversion_save): Delete the argument BUFFER. Change callers.
11749 (detect_coding_system): New argument src_chars. Change callers.
11750 Fix for utf-16 detection.
11751 (init_coding_once): Don't use ISO_carriage_return.
11752 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
11753 reused_workbuf_in_use.
11754
117552008-02-01 Kenichi Handa <handa@m17n.org>
11756
11757 * keymap.c (store_in_keymap): Pay attention to the case that idx
11758 is a cons specifying a character range.
11759
117602008-02-01 Kenichi Handa <handa@m17n.org>
11761
11762 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
11763 HANDLED_RECOMPUTE_PROPS.
11764
11765 * coding.c (Fdefine_coding_system_internal): Fix checking of
11766 ascii compatibility.
11767
117682008-02-01 Kenichi Handa <handa@m17n.org>
11769
11770 * charset.c (find_charsets_in_text): Delete unused locale variable.
11771 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
11772
11773 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
11774 Resync charset_list to Vemacs_mule_charset_list.
11775
11776 * keymap.c (store_in_keymap): Pay attention to the case that idx
11777 is a cons specifying a character range.
11778
117792008-02-01 Kenichi Handa <handa@m17n.org>
11780
11781 * composite.c (update_compositions): Bind inhibit-read-only, etc
11782 to t before calling remove-list-of-text-properties.
11783
11784 * print.c (print_object): Always print ASCII chars as is.
11785
117862008-02-01 Kenichi Handa <handa@m17n.org>
11787
11788 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
11789
11790 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
11791 is a char table.
11792
117932008-02-01 Kenichi Handa <handa@m17n.org>
11794
11795 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
11796
117972008-02-01 Kenichi Handa <handa@m17n.org>
11798
11799 * xfaces.c (set_lface_from_font_name): Fix for the case that
11800 FONTNAME is not fontset name.
11801
118022008-02-01 Kenichi Handa <handa@m17n.org>
11803
11804 * fns.c (base64_encode_1): Fix previous change.
11805
118062008-02-01 Kenichi Handa <handa@m17n.org>
11807
11808 * fontset.c (set_fontset_font): New function.
11809 (Fset_fontset_font): If a font is specified for a charset, use
11810 map_charset_chars to store the font spec in a fontset.
11811
118122008-02-01 Kenichi Handa <handa@m17n.org>
11813
11814 * fontset.c (fontset_face): Create a fallback fontset on demand.
11815 (make_fontset): Don't create a fallback fontset here.
11816 (free_face_fontset): Free a fallback fontset (if any) too.
11817 (n_auto_fontsets): Delete this variable.
11818 (auto_fontset_alist): New variable.
11819 (new_fontset_from_font_name): Check auto_fontset_alist.
11820 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
11821 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
11822 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
11823 Defsubr Sfontset_list_all.
11824
118252008-02-01 Kenichi Handa <handa@m17n.org>
11826
11827 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11828
118292008-02-01 Kenichi Handa <handa@m17n.org>
11830
11831 * fontset.c (Fnew_fontset): Check NAME more rigidly.
11832
118332008-02-01 Kenichi Handa <handa@m17n.org>
11834
11835 * editfns.c (Fgoto_char): Fix docstring.
11836
118372008-02-01 Kenichi Handa <handa@m17n.org>
11838
11839 * insdel.c (insert_from_gap): Adjust intervals correctly.
11840
118412008-02-01 Jason Rumney <jasonr@gnu.org>
11842
11843 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
11844 (pfnGetFontUnicodeRanges): New dynamically loaded function.
11845 (w32_initialize): Try to load it.
11846 (x_get_font_repertory): Use it if available.
11847 (w32_encode_char): Add shortcut for unicode output.
11848
11849 * w32fns.c (w32_load_system_font): Default charset to -1.
11850 (x_to_w32_charset): Match all fonts for unicode.
11851 (w32_to_x_charset): New parameter matching. Don't return partial
11852 or wildcard charsets.
11853 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
11854 (w32_codepage_for_font): Return CP_UNICODE for unicode.
11855 (w32_to_x_font): Match charset to real charset.
11856 (enum_font_cb2): Always list unicode versions.
11857
11858 * makefile.w32-in (temacs): Increase EMHEAP.
11859
118602008-02-01 Jason Rumney <jasonr@gnu.org>
11861
11862 * w32term.c (w32_encode_char): New charset parameter.
11863 font_info.encoding becomes encoding_type.
11864 (x_get_font_repertory): New function. Warning: stub only!
11865 (x_new_font): Return quickly if font already set.
11866 (x_new_fontset): fontsetname parameter is Lisp_Object.
11867 Use new fs_query_fontset. Try new_fontset_from_font_name.
11868 Use fontset_name for return value.
11869
11870 * w32term.h: Declare x_get_font_repertory.
11871
11872 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
11873 place of find_charset_in_text. Use encode_coding_object in place
11874 of encode_coding.
11875 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
11876 decode_coding.
11877
11878 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
11879 of x_new_fontset.
11880 (w32_load_system_font): Initialize charset as unicode.
11881 font_info.encoding becomes encoding_type.
11882 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
11883 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
11884 (syms_of_w32fns): Set get_font_repertory_func.
11885
11886 * w32console.c: Include character.h. Use terminal_encode_buffer
11887 from term.c.
11888 (write_glyphs): Use new version of encode_terminal_code. Use
11889 encode_coding_object in place of encode_coding.
11890
11891 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
11892 encoding becomes encoding_type.
11893
11894 * term.c (terminal_encode_buffer): Make externally visible.
11895
11896 * makefile.w32-in: Add character.h dependancies.
11897 (character.o, chartab.o): New targets.
11898
118992008-02-01 Kenichi Handa <handa@m17n.org>
11900
11901 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
11902 CODING_ID_EOL_TYPE.
11903
119042008-02-01 Andreas Schwab <schwab@suse.de>
11905
11906 * coding.c (produce_chars): Revert last change.
11907
119082008-02-01 Kenichi Handa <handa@m17n.org>
11909
11910 * charset.h (charset_unicode): Extern it.
11911
11912 * charset.c (string_xstring_p): Check by (C >= 0x100).
11913 (find_charsets_in_text): Change format of the arc CHARSETS. New
11914 arg MULTIBYTE.
11915 (Ffind_charset_region, Ffind_charset_string): Adjust for the
11916 change of find_charsets_in_text.
11917 (Fsplit_char): Fix doc. Never return unknown.
11918
11919 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
11920
11921 * coding.c (Fdefine_coding_system_alias): Update
11922 Vcoding_system_list.
11923
11924 * fontset.c (load_font_get_repertory): Pay attention to the case
11925 that ENCODING of a font is specified by a char-table.
11926
11927 * xterm.c (x_get_font_repertory): Handle the case that the
11928 encoding of font is other than Unicode.
11929
119302008-02-01 Kenichi Handa <handa@m17n.org>
11931
11932 * term.c (encode_terminal_code): Don't handle glyph-table. Check
11933 if a character is encodable by the terminal coding system. If
11934 not, produces proper number of `?'s. Update
11935 terminal_encode_buffer and terminal_encode_buf_size if necessary.
11936 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
11937
119382008-02-01 Kenichi Handa <handa@m17n.org>
11939
11940 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
11941 variables.
11942 (encode_terminal_code): Change argument. Encode multiple
11943 characters at once. Store the result of encoding in
11944 terminal_encode_buffer.
11945 (write_glyphs, insert_glyphs): Adjust for the change of
11946 encode_terminal_code.
11947 (term_init): Initialize terminal_encode_buffer and
11948 terminal_encode_buf_size.
11949
11950 * coding.c (consume_chars): If coding->src_object is nil, don't
11951 check annotation.
11952
119532008-02-01 Kenichi Handa <handa@m17n.org>
11954
11955 * character.c (char_string): Use ASCII_CHAR_P instead of
11956 SINGLE_BYTE_CHAR_P.
11957
119582008-02-01 Kenichi Handa <handa@m17n.org>
11959
11960 * xdisp.c (handle_auto_composed_prop): Check if the last
11961 characters of auto-composed region is newly composed with the
11962 following characters.
11963 (handle_composition_prop): Fix checking of point being inside
11964 composition.
11965
119662008-02-01 Kenichi Handa <handa@m17n.org>
11967
11968 * fns.c (concat): Don't change multibyteness of the result by
11969 concatenating an 8-bit character.
11970
11971 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
11972 multibyteness of the result when newelt is an 8-bit character.
11973
119742008-02-01 Dave Love <fx@gnu.org>
11975
11976 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
11977 EMACS_INT.
11978
11979 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
11980
11981 * xfaces.c (face_numeric_value): Declare dim size_t.
11982 (Finternal_lisp_face_equal_p): Remove unused f.
11983
11984 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
11985 (MATRIX_ROW): Remove unused vars.
11986 (draw_glyphs, x_insert_glyphs, fast_find_position)
11987 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
11988 byte/char counts.
11989
11990 * regex.c (regex_compile): Remove unused var.
11991
11992 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11993
11994 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
11995 (Faccessible_keymaps, where_is_internal): Remove unused vars.
11996
11997 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
11998
11999 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12000
12001 * fileio.c (Fwrite_region): Remove unused var.
12002
12003 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12004 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12005
12006 * composite.c (Fremove_list_of_text_properties): Declare.
12007
12008 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12009 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12010 (coding_inherit_eol_type): Remove unused attrs.
12011 (detect_coding): Cast arg of detect_eol.
12012
12013 * charset.c (syms_of_charset): Remove unused var p.
12014 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12015 byte/char counts.
12016
12017 * casetab.c (set_case_table): Remove unused var.
12018
12019 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12020 unused vars.
12021
120222008-02-01 Dave Love <fx@gnu.org>
12023
12024 * xterm.c (x_bitmap_mask): Declare.
12025
120262008-02-01 Dave Love <fx@gnu.org>
12027
12028 * xterm.c (x_term_init): Fix type error.
12029
12030 * lisp.h: Add Funibyte_char_to_multibyte.
12031
12032 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12033 (Fset_coding_system_priority): Doc fix.
12034
12035 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12036
12037 * indent.c (check_composition): Make start and end EMACS_INT.
12038
12039 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12040
12041 * xdisp.c (handle_composition_prop, check_point_in_composition):
12042 Make buffer positions EMACS_INT.
12043
12044 * composite.c (find_composition, run_composition_function)
12045 (update_compositions, Ffind_composition_internal): Make buffer
12046 positions EMACS_INT.
12047
12048 * composite.h (find_composition, update_compositions): Make
12049 position args EMACS_INT.
12050
12051 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12052
12053 * intervals.c (get_property_and_range):
12054 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12055
12056 * unexalpha.c: Don't include varargs.h.
12057
120582008-02-01 Dave Love <fx@gnu.org>
12059
12060 * coding.h (ENCODE_UTF_8): New.
12061
12062 * Makefile.in (gtkutil.o): Depend on coding.h.
12063
12064 * coding.c (Fset_coding_system_priority): Doc fix.
12065
120662008-02-01 Kenichi Handa <handa@m17n.org>
12067
12068 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12069 the case of auto saving.
12070
120712008-02-01 Andreas Schwab <schwab@suse.de>
12072
12073 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12074 `range' from GC.
12075
120762008-02-01 Kenichi Handa <handa@m17n.org>
12077
12078 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12079
120802008-02-01 Kenichi Handa <handa@m17n.org>
12081
12082 * fileio.c (choose_write_coding_system): Return a decided coding system.
12083 (Fwrite_region): Set Vlast_coding_system_used to the return value
12084 of choose_write_coding_system.
12085
120862008-02-01 Kenichi Handa <handa@m17n.org>
12087
12088 * charset.c (Fset_charset_priority): Pay attention to duplicated
12089 arguments.
12090
12091 * coding.c (QCcategory): New variable.
12092 (syms_of_coding): Defsym it. Set all elements of
12093 Vcoding_category_table and their symbol values.
12094 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12095 coding-category-XXX, and coding-category-list.
12096 (Fdefine_coding_system_internal): Add category in the plist.
12097
120982008-02-01 Kenichi Handa <handa@m17n.org>
12099
12100 * callproc.c (Fcall_process): Handle carryover correctly.
12101
12102 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12103 (raw_text_coding_system): Check NILP (coding_system).
12104 (coding_inherit_eol_type): Check NILP (coding_system) and
12105 NILP (parent).
12106 (consume_chars): Fix for the case of raw-text.
12107
12108 * process.c (read_process_output): Handle carryover correctly.
12109
121102008-02-01 Dave Love <fx@gnu.org>
12111
12112 * regex.c (re_search_2): Fix last change.
12113
121142008-02-01 Kenichi Handa <handa@m17n.org>
12115
12116 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12117 target_multibyte. Even in a unibyte case, return a converted
12118 multibyte char.
12119 (GET_CHAR_AFTER): New macro.
12120 (PATFETCH): Translate via multibyte char.
12121 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12122 (SETUP_MULTIBYTE_RANGE): New macro.
12123 (regex_compile): Setup compiled code so that its multibyteness
12124 matches that of a target. Fix the handling of "[X-YZ]" using
12125 SETUP_MULTIBYTE_RANGE.
12126 (analyse_first) <charset>: For filling fastmap for all multibyte
12127 characters, don't check by BASE_LEADING_CODE_P.
12128 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12129 the same as RE_MULTIBYTE_P (bufp) now.
12130 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12131 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12132 (TRANSLATE_VIA_MULTIBYTE): New macro.
12133 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12134 It is the same as RE_MULTIBYTE_P (bufp) now.
12135 <exactn>: Translate via multibyte.
12136 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12137 translate it.
12138 <charset, charset_not>: Fetch a character by
12139 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12140 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12141 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12142 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12143 by GET_CHAR_AFTER.
12144 (bcmp_translate): Likewise.
12145
12146 * search.c (compile_pattern): Check the member target_multibyte,
12147 not the member multibyte of buf.
12148
12149 * lread.c (read1): While reading a string, set force_singlebyte
12150 and force_multibyte correctly.
12151
12152 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12153 up of unibyte_to_multibyte_table.
12154
121552008-02-01 Kenichi Handa <handa@m17n.org>
12156
12157 * coding.c (setup_coding_system): If coding has
12158 post-read-conversion or pre-write-conversion, set
12159 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12160 respectively.
12161 (decode_coding_gap): Run post-read-conversion if any.
12162
12163 * fileio.c (Finsert_file_contents): Even if we read into a
12164 unibyte buffer, check if we must decode the result or not.
12165
121662008-02-01 Kenichi Handa <handa@m17n.org>
12167
12168 * coding.c (make_conversion_work_buffer): Change the work buffer
12169 name to the same one as that of Emacs 21.
12170
121712008-02-01 Kenichi Handa <handa@m17n.org>
12172
12173 * coding.h (make_conversion_work_buffer): Adjust prototype.
12174 (code_conversion_restore): Don't extern it.
12175
12176 * coding.c (detected_mask): Delete unused variable.
12177 (decode_coding_iso_2022): Pay attention to the byte sequence of
12178 CTEXT extended segment, and retain those bytes as is.
12179 (decode_coding_ccl): Delete unused variable `valids'.
12180 (setup_coding_system): Delete unused variable `category'.
12181 (consume_chars): Delete unused variable `category'. Make it work
12182 for non-multibyte case.
12183 (make_conversion_work_buffer): Change argument.
12184 (saved_coding): Delete unused variable.
12185 (code_conversion_restore): Don't check saved_coding->destination.
12186 (code_conversion_save): New function.
12187 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12188 instead of record_unwind_protect.
12189 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12190 (detect_coding_system): Delete unused variable `mask'.
12191 (Fdefine_coding_system_internal): Delete unused variable id.
12192
12193 * fileio.c (kill_workbuf_unwind): New function.
12194 (Finsert_file_contents): On replacing, call
12195 make_conversion_work_buffer with correct args, and call
12196 record_unwind_protect with the first arg kill_workbuf_unwind.
12197
12198 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12199
122002008-02-01 Kenichi Handa <handa@m17n.org>
12201
12202 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12203 (fontset_add): Fix for the case that TO is less than TO1.
12204 (Ffontset_info): Don't use fallback fontset on checking the
12205 default fontset.
12206 (dump_fontset): New function for debugging.
12207
12208 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12209 coding_type is Qcharset.
12210
122112008-02-01 Kenichi Handa <handa@m17n.org>
12212
12213 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12214 (map_char_table): Don't inherit the value from the parent on
12215 initializing VAL. Adjust for the above change.
12216
122172008-02-01 Kenichi Handa <handa@m17n.org>
12218
12219 * coding.c (Qsignature, Qendian): Delete these variables.
12220 (syms_of_coding): Don't initialize them.
12221 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12222 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12223 detect_info->found.
12224 (decode_coding_utf_16): Don't detect BOM here.
12225 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12226 is NOT utf_16_without_bom.
12227 (setup_coding_system): For a coding system of type utf-16, check
12228 if the attribute :endian is Qbig or not (not nil or not), and set
12229 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12230 (detect_coding): If coding type is utf-16 and BOM detection is
12231 required, detect it.
12232 (Fdefine_coding_system_internal): For a coding system of type
12233 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12234
122352008-02-01 Kenichi Handa <handa@m17n.org>
12236
12237 * coding.c (coding_set_source): Fix for the case that the current
12238 buffer is different from coding->src_object.
12239 (decode_coding_object): Don't use the conversion work buffer if
12240 DST_OBJECT is a buffer.
12241
122422008-02-01 Dave Love <fx@gnu.org>
12243
12244 * lread.c (read_emacs_mule_char) [len==2]: Index
12245 emacs_mule_charset correctly.
12246
122472008-02-01 Dave Love <fx@gnu.org>
12248
12249 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12250 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12251 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12252 treated specially.)
12253 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12254 (detected_mask): Remove Big5 bits.
12255
122562008-02-01 Kenichi Handa <handa@m17n.org>
12257
12258 The following changes are to make the font rescaling facility
12259 compatible with Emacs 21.
12260
12261 * xfaces.c (Vface_font_rescale_alist): Rename from
12262 Vface_resizing_fonts.
12263 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12264 (font_rescale_ratio): Rename from font_resizing_ratio.
12265 (split_font_name): Set font->rescale_ratio.
12266 (better_font_p): Pay attention to font->rescale_ratio.
12267 (build_scalable_font_name): Likewise. Change RESX, and RESY
12268 fields.
12269 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12270
122712008-02-01 Kenichi Handa <handa@m17n.org>
12272
12273 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12274 (Qutf_16_le): Remove these variables.
12275 (syms_of_coding): Don't DEFSYM them.
12276 (decode_coding_utf_16): Fix handling of BOM.
12277 (encode_coding_utf_16): Fix handling of BOM.
12278
122792008-02-01 Kenichi Handa <handa@m17n.org>
12280
12281 * fileio.c (Finsert_file_contents): On replacing, before decoding
12282 the file into the work buffer, set point of the work buffer to the end.
12283
122842008-02-01 Dave Love <fx@gnu.org>
12285
12286 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12287
122882008-02-01 Dave Love <fx@gnu.org>
12289
12290 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12291 and fix C types.
12292
122932008-02-01 Kenichi Handa <handa@m17n.org>
12294
12295 * xdisp.c (SKIP_GLYPHS): New macro.
12296 (set_cursor_from_row): Pay attention to string display properties.
12297
12298 * category.c (copy_category_entry): Fix for the case that RANGE
12299 is an integer.
12300
12301 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12302
12303 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12304
123052008-02-01 Kenichi Handa <handa@m17n.org>
12306
12307 * charset.c (Fcharset_id_internal): New function.
12308 (syms_of_charset): Defsubr it.
12309
12310 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12311 with the last arg charset_list acquired from coding.
12312 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12313 the attribute coding_attr_ccl_valids.
12314
12315 * coding.h (enum define_coding_ccl_arg_index): Set the first
12316 member coding_arg_ccl_decoder to coding_arg_max.
12317
12318 * ccl.h (ccl_driver): Adjust prototype.
12319
12320 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12321 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12322 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12323 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12324 last arg Qnil.
12325
123262008-02-01 Kenichi Handa <handa@m17n.org>
12327
12328 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12329 call encode_char.
12330
12331 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12332
123332008-02-01 Dave Love <fx@gnu.org>
12334
12335 * composite.c (syms_of_composite): Make composition_hash_table weak.
12336
123372008-02-01 Kenichi Handa <handa@m17n.org>
12338
12339 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12340 (font_name_registry): Don't extern them.
12341 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12342
12343 * fontset.h (Qfontset): Don't extern it.
12344 (new_fontset_from_font_name): Extern it.
12345
12346 * fontset.c: Give 8 extra slots to fontset objects.
12347 (Qfontset_info): New variable.
12348 (syms_of_fontset): Defsym it.
12349 (FONTSET_FALLBACK): New macro.
12350 (fontset_face): Try also the default fontset.
12351 (make_fontset): Realize a fallback fontset from the default fontset.
12352 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12353 using split_font_name_into_vector and build_font_name_from_vector.
12354 (Fset_fontset_font): Access the elements of font_spec by enum
12355 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12356 name by using split_font_name_into_vector.
12357 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12358 generate a proper font name from the fontset name. Update
12359 Vfontset_alias_alist.
12360 (n_auto_fontsets): New variable.
12361 (new_fontset_from_font_name): New function.
12362 (Ffont_info): Store the information about fonts generated from the
12363 default fontset in the first extra slot of the returned char-table.
12364
12365 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12366 (font_name_registry): Delete function.
12367 (split_font_name_into_vector): New function.
12368 (build_font_name_from_vector): New function.
12369 (font_list): The argument REGISTRY is now a list of registry names.
12370 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12371 specifies an explicit font name, return the name as is. Make a
12372 list of registy names.
12373
12374 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12375 of x_new_fontset.
12376 (Fx_create_frame): Don't call x_new_fontset here. Just use
12377 x_list_fonts to check the existence of fonts.
12378
12379 * xterm.h (x_new_fontset): Adjust prototype.
12380
12381 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12382 string. Use new_fontset_from_font_name to create a fontset from a
12383 font name.
12384
123852008-02-01 Kenichi Handa <handa@m17n.org>
12386
12387 * syntax.c (Vfind_word_boundary_function_table): New name for
12388 Vnext_word_boundary_function_table.
12389 (find-word-boundary-function-table): New name for
12390 next-word-boundary-function-table.
12391
123922008-02-01 Dave Love <fx@gnu.org>
12393
12394 * Makefile.in: Fix some dependencies.
12395
12396 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
12397 set it to nil before returning.
12398
12399 * composite.c (update_compositions): Fix type error.
12400
12401 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
12402
124032008-02-01 Kenichi Handa <handa@m17n.org>
12404
12405 * xterm.c (x_new_font): Optimize for the case that the font is
12406 already set for the frame.
12407
124082008-02-01 Kenichi Handa <handa@m17n.org>
12409
12410 * chartab.c (char_table_ascii): Check if the char table contents
12411 is sub-char-table or not.
12412 (char_table_set, char_table_set_range): Fix argument to
12413 char_table_ascii.
12414
12415 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
12416 (detect_coding_utf_8, detect_coding_utf_16)
12417 (detect_coding_emacs_mule, detect_coding_iso_2022)
12418 (detect_coding_sjis, detect_coding_big5)
12419 (detect_coding_ccl, detect_coding_charset): Change argument MASK
12420 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
12421 sequence is valid in this coding system. Change callers.
12422 (MAX_ANNOTATION_LENGTH): New macro.
12423 (ADD_ANNOTATION_DATA): New macro.
12424 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
12425 ADD_ANNOTATION_DATA. Change the format of annotation data.
12426 (ADD_CHARSET_DATA): New macro.
12427 (emacs_mule_char): New argument ID. Change callers.
12428 (decode_coding_emacs_mule, decode_coding_iso_2022)
12429 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12430 Produce charset annotation data in coding->charbuf.
12431 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
12432 to charset annotation data in coding->charbuf.
12433 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
12434 coding->common_flags if the coding system is iso-2022 based and
12435 uses designation.
12436 (produce_composition): Adjust for the new annotation data format.
12437 (produce_charset): New function.
12438 (produce_annotation): Handle charset annotation.
12439 (handle_composition_annotation, handle_charset_annotation): New
12440 functions.
12441 (consume_chars): Handle charset annotation. Utilize the above two
12442 functions.
12443 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
12444 buffer, get the deleted text as a string and set
12445 coding->src_object to that string.
12446 (detect_coding, detect_coding_system): Use the new struct
12447 coding_detection_info.
12448
12449 * coding.h (struct coding_detection_info): New structure.
12450 (struct coding_system): Adjust prototype of the member `detector'.
12451 (CODING_ANNOTATE_CHARSET_MASK): New macro.
12452
124532008-02-01 Kenichi Handa <handa@m17n.org>
12454
12455 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
12456
124572008-02-01 Dave Love <fx@gnu.org>
12458
12459 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
12460 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
12461 to new local and nullify apropos_accumulate before returning.
12462 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
12463
124642008-02-01 Kenichi Handa <handa@m17n.org>
12465
12466 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
12467 correctly.
e3eea1fc 12468
aac0c6e3
MR
124692008-02-01 Dave Love <fx@gnu.org>
12470
12471 * fns.c (Flanginfo): Call synchronize_system_time_locale.
12472
124732008-02-01 Kenichi Handa <handa@m17n.org>
12474
12475 The following changes are to make character composition happen
12476 automatically on displaying.
12477
12478 * Makefile.in (lisp, shortlisp): Add composite.elc.
12479
12480 * composite.h (Qauto_composed, Vauto_composition_function)
12481 (Qauto_composition_function): Extern them.
12482
12483 * composite.c (Vcomposition_function_table)
12484 (Qcomposition_function_table): Delete variables.
12485 (Qauto_composed, Vauto_composition_function)
12486 (Qauto_composition_function): New variables.
12487 (run_composition_function): Don't call
12488 compose-chars-after-function.
12489 (update_compositions): Clear `auto-composed' text property.
12490 (compose_chars_in_text): Delete this function.
12491 (syms_of_composite): Staticpro Qauto_composed and
12492 Qauto_composition_function. Declare Vauto_composition_function as
12493 a Lisp variable.
12494
12495 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
12496
12497 * xdisp.c (it_props): Add an entry for Qauto_composed.
12498 (handle_auto_composed_prop): New function.
12499
12500 * xselect.c (selection_data_to_lisp_data): Don't call
12501 compose_chars_in_text.
12502
125032008-02-01 Dave Love <fx@gnu.org>
12504
12505 * keyboard.c (read_char): Modify checking around use of
12506 Vkeyboard_translate_table.
12507
12508 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12509 and fix C types.
12510
125112008-02-01 Kenichi Handa <handa@m17n.org>
12512
12513 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
12514 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12515 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
12516 the case that the last byte is '\r' correctly.
12517 (decode_coding): Flush out the unprocessed data correctly.
12518 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
12519
125202008-02-01 Dave Love <fx@gnu.org>
12521
12522 * xterm.c (XTread_socket): Fix changes for defined keysyms.
12523 Add XK_ISO... case.
12524 (xaw_scroll_callback): Revert last change.
12525
125262008-02-01 Kenichi Handa <handa@m17n.org>
12527
12528 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
12529
125302008-02-01 Kenichi Handa <handa@m17n.org>
12531
12532 * xfaces.c (Vface_resizing_fonts): New variable.
12533 (struct font_name): New member `resizing_ratio'.
12534 (font_resizing_ratio): New function.
12535 (split_font_name): Set font->resizing_ratio.
12536 (better_font_p): Pay attention to font->resizing_ratio.
12537 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
12538 RESX, and RESY fields.
12539 (try_alternative_families): Try scalable fonts if
12540 Vscalable_fonts_allowed is not Qt.
12541 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
12542
125432008-02-01 Dave Love <fx@gnu.org>
12544
12545 * xterm.c (xaw_scroll_callback): Cast correctly.
12546
125472008-02-01 Dave Love <fx@gnu.org>
12548
12549 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
12550 (lispy_kana_keys): Comment out.
12551 (make_lispy_event) [XK_kana_A]: Comment out.
12552
12553 * xterm.c (xaw_scroll_callback): Cast call_data.
12554 (XTread_socket): Deal with ASCII keysyms.
12555 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
12556
125572008-02-01 Dave Love <fx@gnu.org>
12558
12559 * xterm.c (Vx_keysym_table): New.
12560 (syms_of_xterm): Initialize it.
12561 (XTread_socket): Use it.
12562 From head: Eliminate incorrect optimization that tried to avoid
12563 decoding the output of X*LookupString.
12564 (x_get_font_repertory): Delete charset declaration.
12565
125662008-02-01 Kenichi Handa <handa@m17n.org>
12567
12568 * coding.c (detect_coding_charset): If only ASCII bytes are found,
12569 return 0.
12570 (Fdefine_coding_system_internal): Setup
12571 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
12572
125732008-02-01 Dave Love <fx@gnu.org>
12574
12575 * coding.c (Fcheck_coding_system): Doc fix.
12576
12577 * editfns.c (Finsert_byte): Return a proper value.
12578
125792008-02-01 Kenichi Handa <handa@m17n.org>
12580
12581 * coding.c (decode_coding): Fix args to translate_chars. Pay
12582 attention to Vstandard_translation_table_for_decode.
12583 (encode_coding): Fix args to translate_chars. Pay attention to
12584 Vstandard_translation_table_for_encode.
12585
12586 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
12587 SINGLE_BYTE_CHAR_P.
12588
12589 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
12590 not by SINGLE_BYTE_CHAR_P.
12591
12592 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
12593 SINGLE_BYTE_CHAR_P.
12594
12595 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
12596 SINGLE_BYTE_CHAR_P.
12597
12598 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
12599 by SINGLE_BYTE_CHAR_P.
12600
12601 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
12602 SINGLE_BYTE_CHAR_P.
12603
126042008-02-01 Dave Love <fx@gnu.org>
12605
12606 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
12607
126082008-02-01 Dave Love <fx@gnu.org>
12609
12610 * fns.c (Flanginfo): Fix typo.
12611
12612 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
12613
126142008-02-01 Kenichi Handa <handa@m17n.org>
12615
12616 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
12617 (detect_coding_emacs_mule, detect_coding_iso_2022)
12618 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
12619 incomplete byte sequence. Don't update *mask when correctly detected.
12620 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
12621 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
12622 (detect_coding, detect_coding_system): Adjust for the changes above.
12623
126242008-02-01 Kenichi Handa <handa@m17n.org>
12625
12626 * character.c (char_string): Rename from
12627 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
12628 (string_char): Rename from string_char.
12629
12630 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
12631 if C is greater than MAX_3_BYTE_CHAR.
12632 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
12633 string_char instead of string_char_with_unification.
12634
126352008-02-01 Dave Love <fx@gnu.org>
12636
12637 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
12638
126392008-02-01 Kenichi Handa <handa@m17n.org>
12640
12641 * keymap.c (push_key_description): Pay attention to force_multibyte.
12642
12643 * regex.c (re_search_2): Fix for the case of unibyte buffer.
12644
126452008-02-01 Dave Love <fx@gnu.org>
12646
12647 * charset.c (define_charset_internal): Rename `supprementary'.
12648
12649 * Makefile.in (lisp, shortlisp): Remove latin-N.
12650
126512008-02-01 Dave Love <fx@gnu.org>
12652
12653 * xfns.c (x_window, x_window): Use use_xim.
12654
12655 * xterm.c (use_xim): Initialize.
12656 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12657 (x_term_init): Maybe set use_xim.
12658
12659 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12660
126612008-02-01 Kenichi Handa <handa@m17n.org>
12662
12663 * search.c (search_buffer): Fix case-fold-search of multibyte
12664 characters.
12665 (boyer_moore): Rename the last argument to char_high_bits.
12666
126672008-02-01 Kenichi Handa <handa@m17n.org>
12668
12669 * xdisp.c (display_string): Fix for the case of zero width glyph.
12670
12671 * xfns.c (x_set_font): Change the error message of the case that
12672 x_new_fontset returns Qt.
12673
12674 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
12675 (Finternal_set_lisp_face_attribute): Use signal_error for the
12676 error of invalid fontset.
12677
12678 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
12679 fontset, return Qt.
12680
126812008-02-01 Dave Love <fx@gnu.org>
12682
12683 * unexelf.c (unexec): Make .got handling not SGI-specific.
12684
12685 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
12686
12687 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
12688
12689 * keyboard.c (read_key_sequence): Fix type error.
12690
12691 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
12692 type error.
12693
12694 * fontset.c (fontset_add): Return Lisp_Object.
12695
126962008-02-01 Dave Love <fx@gnu.org>
12697
12698 * charset.h (charset_ordered_list_tick): Declare extern.
12699
127002008-02-01 Kenichi Handa <handa@m17n.org>
12701
12702 The following changes (and some of 2008-02-01 changes of mine) are
12703 for handling syntax, category, and case conversion for unibyte
12704 characters by converting them to multibyte on the fly. With these
12705 changes, we don't have to setup syntax and case tables for unibyte
12706 characters in each language environment.
12707
12708 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
12709 multibyte if necessary.
12710
12711 * bytecode.c (Fbyte_code): Likewise.
12712
12713 * character.h (LEADING_CODE_LATIN_1_MIN)
12714 (LEADING_CODE_LATIN_1_MAX): New macros.
12715 (unibyte_to_multibyte_table): Extern it.
12716 (unibyte_char_to_multibyte): New macro.
12717 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
12718 (CHAR_LEADING_CODE): New macro.
12719 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
12720
12721 * character.c (unibyte_to_multibyte_table): New variable.
12722 (unibyte_char_to_multibyte): Move to character.h and define as macro.
12723 (multibyte_char_to_unibyte): If C is an eight-bit character,
12724 convert it to the corresponding byte value.
12725
12726 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
12727 not 1, signals an error. Update the elements of
12728 unibyte_to_multibyte_table.
12729 (init_charset_once): Initialize unibyte_to_multibyte_table.
12730 (syms_of_charset): Define the charset `iso-8859-1'.
12731
12732 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
12733 as is without converting it to unibyte. In a unibyte buffer,
12734 convert C to multibyte before checking the syntax.
12735
12736 * lisp.h (unibyte_char_to_multibyte): Delete extern.
12737
12738 * minibuf.c (Fminibuffer_complete_word): Use the macro
12739 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
12740
12741 * regex.h (struct re_pattern_buffer): New member target_multibyte.
12742
12743 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
12744 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
12745 that is zero, convert an eight-bit char to multibyte.
12746 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
12747 non-emacs case.
12748 (PATFETCH): Convert an eight-bit char to multibyte.
12749 (HANDLE_UNIBYTE_RANGE): New macro.
12750 (regex_compile): Setup the compiled pattern for multibyte chars
12751 even if the given regex string is unibyte. Use PATFETCH_RAW
12752 instead of PATFETCH in many places. To handle `charset'
12753 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
12754 only for ASCII chars.
12755 (analyse_first) <exactn>: Simplify because the compiled pattern
12756 is multibyte.
12757 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
12758 <charset>: Use CHAR_LEADING_CODE to get leading codes.
12759 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
12760 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
12761 multibyte always 1.
12762 (re_search_2): In emacs, set the locale variable multibyte to 1,
12763 otherwise to 0. New local variable target_multibyte. Check it
12764 to decide the multibyteness of STR1 and STR2. If
12765 target_multibyte is zero, convert unibyte chars to multibyte
12766 before translating and checking fastmap.
12767 (TARGET_CHAR_AND_LENGTH): New macro.
12768 (re_match_2_internal): In emacs, set the locale variable multibyte
12769 to 1, otherwise to 0. New local variable target_multibyte. Check
12770 it to decide the multibyteness of STR1 and STR2. Use
12771 TARGET_CHAR_AND_LENGTH to fetch a character from D.
12772 <charset, charset_not>: If multibyte is nonzero, check fastmap
12773 only for ASCII chars. Call bcmp_translate with
12774 target_multibyte, not with multibyte.
12775 <begline>: Declare the local variable C as `unsigned'.
12776 (bcmp_translate): Change the last arg name to target_multibyte.
12777
12778 * search.c (compile_pattern_1): Don't adjust the multibyteness of
12779 the regexp pattern and the matching target. Set cp->buf.multibyte
12780 to the multibyteness of the regexp pattern. Set
12781 cp->but.target_multibyte to the multibyteness of the matching target.
12782 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
12783 FETCH_STRING_CHAR_ADVANCE.
12784 (Freplace_match): Convert unibyte chars to multibyte.
12785
12786 * syntax.c (char_quoted, back_comment, scan_words)
12787 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
12788 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
12789 unibyte chars to multibyte.
12790 (skip_chars): Delete the arg syntaxp, and move the code for
12791 handling syntaxes to skip_syntaxes. Change callers.
12792 Fix the case that the multibyteness of STRING and the current
12793 buffer doesn't match.
12794 (skip_syntaxes): New function.
12795 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
12796 SINGLE_BYTE_CHAR_P.
12797
127982008-02-01 Kenichi Handa <handa@m17n.org>
12799
12800 * xfaces.c (QCfontset): New variable.
12801 (LFACE_FONTSET): New macro.
12802 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
12803 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
12804 (Finternal_set_lisp_face_attribute)
12805 (Finternal_get_lisp_face_attribute): Handle QCfontset.
12806 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
12807 check also LFACE_FONTSET_INDEX.
12808 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
12809 attrs[LFACE_FONT_INDEX].
12810 (syms_of_xfaces): Intern and staticpro QCfontset.
12811
12812 * dispextern.h (enum lface_attribute_index): New member
12813 LFACE_FONTSET_INDEX.
12814
12815 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
12816
128172008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 * coding.c (coding_set_destination): Fix coding->destination for
12820 the case converting a region.
12821 (encode_coding_utf_8): Encode eight-bit chars as single byte.
12822 (encode_coding_object): Fix coding->dst_pos and
12823 coding->dst_pos_byte for the case converting a region.
12824
12825 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
12826
12827 * character.h (BYTE8_STRING): New macro.
12828
12829 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
12830
128312008-02-01 Kenichi Handa <handa@m17n.org>
12832
12833 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
12834 characters by octal form.
12835
12836 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12837
12838 * buffer.h (_fetch_multibyte_char_len): Delete extern.
12839 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
12840 _fetch_multibyte_char_len.
12841 (FETCH_CHAR_AS_MULTIBYTE): New macro.
12842
12843 * casetab.c (set_canon, set_identity, shuffle): Simplify.
12844
12845 * casefiddle.c (casify_object): Simplify. Handle the case that
12846 the case conversion change the byte length.
12847 (casify_region): Likewise.
12848
12849 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
12850
12851 * character.c (_fetch_multibyte_char_len): Delete this variable.
12852 (syms_of_character): Setup Vprintable_chars.
12853
12854 * editfns.c (Fchar_equal): Fix for the unibyte case.
12855 (Finsert_byte): New function.
12856 (syms_of_editfns): Defsubr it.
12857
12858 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
12859 of direct code 0x3ffff.
12860
12861 * search.c (Freplace_match): Fix for the unibyte case.
12862
128632008-02-01 Kenichi Handa <handa@m17n.org>
12864
12865 * lread.c (safe_to_load_p): Fix the logic.
12866
12867 * syntax.c (scan_words): Don't treat characters belonging to
12868 different scripts as constituting a word.
12869
12870 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12871
12872 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
12873
12874 * emacs.c (main): In the case of --unibyte, instead of aborting on
12875 finding non-empty buffer, make it unibyte.
12876
128772008-02-01 Kenichi Handa <handa@m17n.org>
12878
12879 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
12880 to create a fontset.
12881
128822008-02-01 Dave Love <fx@gnu.org>
12883
12884 * character.c (Funibyte_char_to_multibyte): Doc fix.
12885
12886 * xfns.c [HAVE_STDLIB_H]: Fix last change.
12887
128882008-02-01 Kenichi Handa <handa@m17n.org>
12889
12890 * fontset.c (fontset_add): Make the type `int'.
12891 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
12892
12893 * character.c (unibyte_char_to_multibyte)
12894 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
12895 charset_unibyte, not charset_primary.
12896
12897 * charset.h (charset_unibyte): Extern it instead of charset_primary.
12898
12899 * charset.c (charset_unibyte): Rename from charset_primary.
12900 (Funibyte_charset): Rename from Fprimary_charset.
12901 (Fset_unibyte_charset): Rename from Fset_primary_charset.
12902 (syms_of_charset): Adjust for the above changes.
12903
12904 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12905 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12906 it->multibyte_p is zero.
12907
12908 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
12909 Delete extern.
12910
129112008-02-01 Kenichi Handa <handa@m17n.org>
12912
12913 * coding.c (Fdefine_coding_system_internal): Fix category setting
12914 for a coding system of type iso-2022.
12915
129162008-02-01 Kenichi Handa <handa@m17n.org>
12917
12918 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * syntax.c (Vnext_word_boundary_function_table): New variable.
12923 (next-word-boundary-function-table): Declare it as a Lisp variable
12924 in syms_of_syntax.
12925 (scan_words): Call functions in Vnext_word_boundary_function_table
12926 if any.
12927
12928 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
12929
12930 * fontset.c (fs_load_font): If fontp->charset is not negative,
12931 return fontp without setting its members.
12932
129332008-02-01 Dave Love <fx@gnu.org>
12934
12935 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
12936
12937 * m/sparc.h (HAVE_ALLOCA): Delete.
12938
12939 * s/irix6-5.h: Don't include strings.h.
12940 (bcopy, bzero, bcmp): Don't undef.
12941
12942 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
12943
12944 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
12945 (TIOCSIGSEND): Don't test IRIX6.
12946 (bcopy, bzero, bcmp): Define conditionally.
12947
129482008-02-01 Kenichi Handa <handa@m17n.org>
12949
12950 * buffer.c (Qas, Qmake, Qto): New variables.
12951 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
12952 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
12953
12954 * callproc.c (Fcall_process): Don't call insert_1_both directly if
12955 we are inserting a process output into a multibyte buffer.
12956
12957 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
12958 multibyte_char_to_unibyte.
12959
12960 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
12961 by the primary charset, make it eight-bit char.
12962 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
12963
12964 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
12965 (charset_8_bit__control, charset_8_bit_graphic)
12966 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
12967 (define_charset_internal): New function.
12968 (syms_of_charset): Call define_charset_internal for pre-defined
12969 charsets.
12970
12971 * charset.h (charset_8_bit): Extern it.
12972
12973 * coding.c (make_conversion_work_buffer): Adjust for the change
12974 of Fset_buffer_multibyte.
12975 (encode_coding_raw_text): Increment p0 in the loop.
12976
12977 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
12978
12979 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
12980 for the change of Fset_buffer_multibyte.
12981
12982 * fns.c (Fstring_to_multibyte): New function.
12983 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
12984
129852008-02-01 Dave Love <fx@gnu.org>
12986
12987 * xfns.c (x_put_x_image): Declare args.
12988
12989 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
12990 (try_font_list): Declare an arg.
12991
12992 * xdisp.c (message2_nolog, set_message): Declare an arg.
12993
12994 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
12995
12996 * syntax.c (scan_sexps_forward): Declare an arg.
12997
12998 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12999 Declare an arg.
13000
13001 * lisp.h (Fnew_fontset): Declare.
13002
13003 * keymap.c (push_key_description): Call CHARACTERP correctly.
13004
13005 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13006 (face_for_char): Delete unused vars.
13007 (Fset_fontset_font): Doc fix. Delete unused vars.
13008
13009 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13010
13011 * composite.c (update_compositions): Declare arg.
13012
13013 * cm.c (calccost, cmgoto): Declare args.
13014
13015 * charset.c: Remove `emacs' conditional. Doc fixes.
13016 (map_char_table_for_charset): Declare.
13017
13018 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13019
13020 * ccl.c: Remove `emacs' conditional.
13021
130222008-02-01 Kenichi Handa <handa@m17n.org>
13023
13024 The following changes are to allow specifying multiple font
13025 patterns for a character range (specified by script or charset).
13026
13027 * Makefile.in (abbrev.o): Depend on syntax.h.
13028 (xfaces.o): Depend on charset.h.
13029
13030 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13031 SINGLE_BYTE_CHAR_P.
13032
13033 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13034
13035 * character.h (Vchar_script_table): Extern it.
13036
13037 * character.c (Vscript_alist): Delete.
13038 (Vchar_script_table, Qchar_script_table): New variable.
13039 (syms_of_character): Declare Vchar_script_table as a lisp variable
13040 and initialize it.
13041
13042 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13043 have property char-table-extra-slots, make no extra slot.
13044
13045 * dispextern.h (struct face): Delete member `charset'.
13046 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13047 SINGLE_BYTE_CHAR_P.
13048 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13049 Add prototypes.
13050 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13051 (generate_ascii_font_name): Rename from generate_ascii_font.
13052
13053 * fontset.h (get_font_repertory_func): New prototype.
13054 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13055 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13056
13057 * fontset.c (Qprepend, Qappend): New variables.
13058 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13059 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13060 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13061 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13062 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13063 (load_font_get_repertory): New functions.
13064 (fontset_set): Delete.
13065 (fontset_face): New arg FACE. Return face ID, not face.
13066 Complete re-write to handle new fontset structure. Change caller.
13067 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13068 (face_for_char): Don't call lookup_face.
13069 (make_fontset_for_ascii_face): New arg FACE.
13070 (fs_load_font): New arg CHARSET_ID. Don't check
13071 Vfont_encoding_alist here.
13072 (find_font_encoding): New function.
13073 (list_fontsets): Use STRINGP, not ! NILP.
13074 (accumulate_script_ranges): New function.
13075 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13076 re-written to handle new fontset structure.
13077 (Ffontset_font): Return a copy of element.
13078 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13079 docstring of font-encoding-alist.
13080
13081 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13082 (Fset_fotset_font): Fix arguments to 5.
13083
13084 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13085
13086 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13087 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13088 (highlight_trailing_whitespace): Adjust for the change of
13089 lookup_named_face.
13090
13091 * xfaces.c: Include charset.h.
13092 (load_face_font): Delete argument C. Change caller.
13093 (generate_ascii_font_name): Rename from generate_ascii_font.
13094 (font_name_registry): New function.
13095 (cache_face): Store ascii faces before non-ascii faces in buckets.
13096 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13097 Lookup only ascii faces.
13098 (lookup_non_ascii_face): New function.
13099 (lookup_named_face): Delete argument C. Change caller.
13100 (lookup_derived_face): Delete argument C. Change caller.
13101 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13102 a string, just call font_list with it.
13103 (choose_face_font): Delete arguments FACE and C. New arg
13104 FONT_SPEC. Change caller.
13105 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13106 Change caller.
13107 (realize_non_ascii_face): New function.
13108 (realize_x_face): Call load_face_font here.
13109 (realize_tty_face): Delete argument C. Change caller.
13110 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13111 get a face ID.
13112 (dump_realized_face): Don't print charset of FACE.
13113
13114 * xfns.c (x_set_font): Always call x_new_fontset and
13115 store_frame_parameter.
13116 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13117 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13118
13119 * xterm.h (x_get_font_repertory): Extern it.
13120
13121 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13122 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13123 it->multibyte_p is zero.
13124 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13125 (x_new_fontset): If FONTSETNAME doesn't match any existing
13126 fontsets, create a new one.
13127 (x_get_font_repertory): New function.
13128
131292008-02-01 Kenichi Handa <handa@m17n.org>
13130
13131 * coding.c (Ffind_coding_systems_region_internal): Detect an
13132 ASCII only string correctly.
13133
13134 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13135 version is 0.
13136
131372008-02-01 Kenichi Handa <handa@m17n.org>
13138
13139 * lread.c: Include "coding.h".
13140 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13141 (load_each_byte, unread_char): New variables.
13142 (readchar_backlog): Delete.
13143 (readchar): Return a character unless load_each_byte is nonzero.
13144 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13145 cons. If unread_char is not -1, simply return it.
13146 (unreadchar): Handle the case that readcharfun is
13147 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13148 (read_multibyte): Delete.
13149 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13150 (read_emacs_mule_char): New functions.
13151 (Fload): Even if the file doesn't have the extension ".elc", if
13152 safe_to_load_p returns a positive version number, assume that the
13153 file contains bytecompiled code. If the version is less than 22,
13154 load the file while decoding multibyte sequences by emacs-mule.
13155 (readevalloop): Don't use readchar_backlog.
13156 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13157 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13158 (read_escape): Delete the arg BYTEREP.
13159 (read1): Set load_each_byte to 1 temporarily while handling
13160 #@NUMBER. Don't call read_multibyte.
13161 (read_vector): Call Fread with a cons. If readcharfun is
13162 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13163 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13164 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13165 and Qload_force_doc_strings.
13166
131672008-02-01 Kenichi Handa <handa@m17n.org>
13168
13169 * xdisp.c (face_before_or_after_it_pos): Call
13170 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13171
131722008-02-01 Kenichi Handa <handa@m17n.org>
13173
13174 * character.h (TRAILING_CODE_P): New macro.
13175 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13176 (string_char_with_unification): Fix prototype.
13177 (Vscript_alist): Extern it.
13178
13179 * character.c (Vscript_alist): New variable.
13180 (string_char_with_unification, str_as_unibyte)
13181 (string_escape_byte8): Add `const' to local variables.
13182 (syms_of_character): Declare script-alist as a Lisp variable.
13183
13184 * charset.h (Vcharset_ordered_list): Extern it.
13185 (charset_ordered_list_tick): Extern it.
13186 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13187 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13188 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13189 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13190 (Funify_charset): Adjust for the change of Funify_charset.
13191
13192 * charset.c (charset_ordered_list_tick): New variable.
13193 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13194 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13195 deunify intead of unify a charset.
13196 (string_xstring_p): Add `const' to local variables.
13197 (find_charsets_in_text): Add `const' to arguments and local variables.
13198 (encode_char): Adjust for the change of Funify_charset. Fix
13199 detecting of invalid code.
13200 (Fset_charset_priority): Increment charset_ordered_list_tick.
13201 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13202 and TO_CODE.
13203
13204 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13205 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13206 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13207 (decode_coding_ccl, consume_chars)
13208 (Ffind_coding_systems_region_internal)
13209 (Fcheck_coding_systems_region): Add `const' to local variables.
13210
13211 * print.c (print_object): Use octal form for printing the
13212 contents of a bool vector.
13213
132142008-02-01 Dave Love <fx@gnu.org>
13215
13216 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13217 <version == 20>: Refuse to load.
13218
132192008-02-01 Dave Love <fx@gnu.org>
13220
13221 * fns.c: Move coding.h.
13222 (Qcodeset, Qdays, Qmonths): New.
13223 (concat): Use CHARACTERP instead of INTEGERP.
13224 (Flocale_codeset): Delete.
13225 (Flanginfo): New function.
13226 (syms_of_fns): Change accordingly.
13227
13228 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13229
132302008-02-01 Dave Love <fx@gnu.org>
13231
13232 * casetab.c (init_casetab_once, init_casetab_once): Fix
13233 CHAR_TABLE_SET call.
13234
13235 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13236
13237 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13238
13239 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13240 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13241 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13242
13243 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13244
13245 * coding.c (ENCODE_DESIGNATION, decode_eol)
13246 (make_conversion_work_buffer, code_conversion_restore)
13247 (Fdefine_coding_system_internal): Convert Lisp types.
13248 (code_conversion_restore): Use EQ, not ==.
13249 (Fencode_coding_string): Fix code_convert_string call.
13250
13251 * coding.h (code_convert_region): Fix prototype.
13252
13253 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13254
13255 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13256 (Ffontset_info): Convert Lisp types.
13257
13258 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13259
13260 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13261
13262 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13263
13264 * chartab.c: Include "...h", not <...h> in some cases.
13265
13266 * callproc.c (Fcall_process): Remove unused variables.
13267
132682008-02-01 Dave Love <fx@gnu.org>
13269
13270 * coding.c (Fset_coding_system_priority): Allow null arg list.
13271
132722008-02-01 Dave Love <fx@gnu.org>
13273
13274 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13275 (Fself_insert_and_exit): Use CHARACTERP.
13276
13277 * callproc.c (Fcall_process): Remove unused vars.
13278
13279 * xterm.c (XTread_socket): Add extra dead keysyms.
13280
13281 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13282
13283 * dispextern.h: Remove prototypes for redraw_frame,
13284 redraw_garbaged_frames.
13285
13286 * cmds.c (Fself_insert_command): Use CHARACTERP.
13287
13288 * chartab.c (make_sub_char_table): Remove unused var.
13289 (Fset_char_table_default, Fmap_char_table): Doc fix.
13290
13291 * keymap.c (access_keymap): Remove generic char code.
13292 (push_key_description): Use CHARACTERP.
13293
132942008-02-01 Dave Love <fx@gnu.org>
13295
13296 * charset.c: Doc fixes.
13297 (Funify_charset): Extra checking.
13298
132992008-02-01 Dave Love <fx@gnu.org>
13300
13301 * lread.c: Remove some unused variables.
13302 (safe_to_load_p): If safe, return the magic number version byte.
13303 (Fload): Maybe use load-with-code-conversion.
13304
133052008-02-01 Kenichi Handa <handa@m17n.org>
13306
13307 * category.c (Fmodify_category_entry): Don't modify the contents
13308 of category_set for characters out of the range. Avoid
13309 unnecessary modification.
13310
13311 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13312 Vchar_unify_table. The default value of the table is now nil.
13313
13314 * character.c (syms_of_character): Setup Vchar_width_table for
13315 eight-bit-control and raw-byte chars.
13316
13317 * charset.h (enum define_charset_arg_index): Delete
13318 charset_arg_parents and add charset_arg_subset and
13319 charset_arg_superset.
13320 (enum charset_attr_index): Delete charset_parents and add
13321 charset_subset and charset_superset.
13322 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13323 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13324 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13325 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13326 (CHARSET_SUPERSET): New macros.
13327 (charset_work): Extern it.
13328 (ENCODE_CHAR): Use charset_work.
13329 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13330 (map_charset_chars): Extern it.
13331
13332 * charset.c (load_charset_map): Set the default value of encoder
13333 and deunifier char-tables to nil.
13334 (map_charset_chars): Change argument. Change callers. Use
13335 map_char_table_for_charset instead of map_char_table.
13336 (Fmap_charset_chars): New optional args from_code and to_code.
13337 (Fdefine_charset_internal): Adjust for the change of
13338 `define-charset' (:parents -> :subset or :superset).
13339 (charset_work): New variable.
13340 (encode_char, syms_of_charset): Adjust for the change of
13341 Fdefine_charset_internal.
13342 (Ffind_charset_string): Setup the vector `charsets' correctly.
13343
13344 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13345 the previous change.
13346 (char_table_ref_and_range): Adjust for the above change.
13347 (map_sub_char_table_for_charset): New function.
13348 (map_char_table_for_charset): New function.
13349
13350 * keymap.c (describe_vector): Handle a char-table directly here.
13351 (describe_char_table): Delete.
13352
13353 * lisp.h (map_charset_chars): Delete.
13354
133552008-02-01 Dave Love <fx@gnu.org>
13356
13357 * fns.c (count_combining): Comment out (unused).
13358 (Flocale_codeset): New.
13359 (syms_of_fns): Defsubr it.
13360
13361 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13362 (size_t): Remove.
13363
133642008-02-01 Dave Love <fx@gnu.org>
13365
13366 * Makefile.in (chartab.o): Depend on charset.h.
13367
133682008-02-01 Kenichi Handa <handa@m17n.org>
13369
13370 * character.c (syms_of_character): Set the default value of
13371 Vprintable_chars to Qnil.
13372
133732008-02-01 Dave Love <fx@gnu.org>
13374
13375 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13376
133772008-02-01 Kenichi Handa <handa@m17n.org>
13378
13379 * charset.c (load_charset_map): Handle the case that from < to
13380 correctly.
13381
13382 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13383 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
13384 Pay attention to raw-8-bit chars.
13385
133862008-02-01 Kenichi Handa <handa@m17n.org>
13387
13388 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
13389 It is not bytecompiled now.
13390
13391 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
13392 (charset_jisx0208): New variables.
13393 (Fdefine_charset_internal): Setup them if appropriate.
13394 (init_charset_once): Initialize them to -1.
13395
13396 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
13397 (charset_jisx0208): Extern them.
13398
13399 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
13400 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
13401 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
13402 (setup_iso_safe_charsets): Fix arguments to Fassq.
13403 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
13404 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
13405 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
13406 (encode_coding_iso_2022): Change the 1st arg to
13407 ENCODE_ISO_CHARACTER to a variable.
13408
134092008-02-01 Kenichi Handa <handa@m17n.org>
13410
13411 * charset.h (enum define_charset_arg_index): New enums
13412 charset_arg_min_code and charset_arg_max_code.
13413 (struct charset): New member char_index_offset.
13414
13415 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
13416 Take charset->char_index_offset into account.
13417 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
13418 args[charset_arg_max_code]. Setup charset.char_index_offset.
13419 (syms_of_charset): Fix args to Fdefine_charset_internal.
13420
134212008-02-01 Dave Love <fx@gnu.org>
13422
13423 * coding.c (decode_coding_utf_8): Reject overlong sequences.
13424
134252008-02-01 Dave Love <fx@gnu.org>
13426
13427 * coding.c: Doc fixes.
13428 (Fcoding_system_aliases): Fix return value.
13429 (Qmac): Remove (duplicated) definition.
13430
134312008-02-01 Dave Love <fx@gnu.org>
13432
13433 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
13434 functions.
13435
13436 * character.c (Fstring): Doc fix.
13437
13438 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
13439
13440 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
13441 ids.
13442 (font-encoding-alist): Doc fix.
13443
134442008-02-01 Dave Love <fx@gnu.org>
13445
13446 * term.c (costs_set): Declare static, non-initialized for pcc.
13447 (encode_terminal_code): Remove unused var.
13448
13449 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13450 for K&R.
13451
13452 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
13453
13454 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
13455 (suffixes): Move out of make_subsidiaries for K&R.
13456
13457 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
13458
13459 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
13460
134612008-02-01 Dave Love <fx@gnu.org>
13462
13463 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
13464
13465 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
13466
134672008-02-01 Yong Lu <lyongu@asia-infonet.com>
13468
13469 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
13470
13471 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
13472
134732008-02-01 Kenichi Handa <handa@m17n.org>
13474
13475 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
13476 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
13477
134782008-02-01 Kenichi Handa <handa@m17n.org>
13479
13480 * coding.c (decode_coding_charset): Adjust for the change of
13481 Fdefine_coding_system_internal.
13482 (Fdefine_coding_system_internal): For a coding system of
13483 `charset' type, store a list of charset IDs in
13484 `charset_attr_charset_valids' element of coding attributes.
13485
134862008-02-01 Kenichi Handa <handa@m17n.org>
13487
13488 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
13489 (emacs_mule_char): New arg src. Delete arg `composition'. Change
13490 caller. Handle 2-byte and 3-byte charsets correctly.
13491 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
13492 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
13493 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
13494 (DECODE_EMACS_MULE_21_COMPOSITION): Call
13495 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
13496 sequence.
13497 (decode_coding_emacs_mule): Handle composition correctly. Rewind
13498 `src' and `consumed_chars' correctly before calling emacs_mule_char.
13499 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
13500 and alt&rule composition.
13501 (decode_coding_iso_2022): Handle composition correctly.
13502 (init_coding_once): Setup emacs_mule_bytes for private charsets.
13503
13504 * charset.c (Fdefine_charset_internal): Fix bug for the case of
13505 re-defining a charset. If the charset has :emacs-mule-id, setup
13506 emacs_mule_bytes.
13507 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
13508
135092008-02-01 Kenichi Handa <handa@m17n.org>
13510
13511 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
13512 (encode_coding_big5, encode_coding_charset): If coding requires safe
13513 encoding, produce a character specified by
13514 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13515
135162008-02-01 Dave Love <fx@gnu.org>
13517
13518 * xterm.c (XSetIMValues): Declare.
13519
13520 * process.c: Conditionally include sys/wait.h, pty.h.
13521
13522 * print.c (print_object): Fix print format for 64-bit systems.
13523
13524 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
13525
13526 * buffer.c (emacs_strerror): Declare.
13527
13528 * fontset.c (Fclear_face_cache): Declare.
13529 (accumulate_font_info): Comment-out (unused).
13530 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
13531 variables.
13532
13533 * character.h (string_escape_byte8): Declare.
13534
13535 * charset.c (load_charset_map, load_charset_map_from_file): Remove
13536 unused vars.
13537 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
13538 (Fmap_charset_chars): Doc fix.
13539
13540 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
13541 (Fset_coding_system_priority, Fset_coding_system_priority)
13542 (Fdefine_coding_system_internal): Doc fix.
13543
135442008-02-01 Dave Love <fx@gnu.org>
13545
13546 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
13547
135482008-02-01 Kenichi Handa <handa@m17n.org>
13549
13550 * character.c (string_escape_byte8): Make multibyte string with
13551 correct size.
13552
13553 * charset.c (Fmake_char): Delete unnecessary code.
13554
135552008-02-01 Kenichi Handa <handa@m17n.org>
13556
13557 * xfns.c (x_encode_text): Allocate coding.destination here, and
13558 call encode_coding_object with dst_object Qnil.
13559
13560 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
13561 multibyte form correctly.
13562
13563 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
13564 against Vfont_encoding_alist.
13565
13566 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
13567 handling of charset list.
13568 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
13569 (decode_coding_object): Move point to coding->dst_pos before
13570 calling post-read-conversion function.
13571 (encode_coding_object): Give correct arguments to
13572 pre-write-conversion. Ignore the return value of
13573 pre-write-conversion function. Pay attention to the case that
13574 pre-write-conversion changes the current buffer. If dst_object is
13575 Qt, even if coding->src_bytes is zero, allocate at least one byte
13576 to coding->destination.
13577
13578 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
13579
13580 * charset.c (Fmake_char): Make it more backward compatible.
13581 (Fmap_charset_chars): Fix docstring.
13582
135832008-02-01 Dave Love <fx@gnu.org>
13584
13585 * coding.c: Doc fixes.
13586 (Fdefine_coding_system_alias): Use names, not symbols, in
13587 coding-system-alist.
13588
135892008-02-01 Kenichi Handa <handa@m17n.org>
13590
13591 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
13592 of calling free_realized_face.
13593
135942008-02-01 Yong Lu <lyongu@asia-infonet.com>
13595
13596 * charset.c (read_hex): Don't treat SPC as a comment starter.
13597 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
13598 (Fdecode_char): Fix typo.
13599
136002008-02-01 Kenichi Handa <handa@m17n.org>
13601
13602 * charset.h (struct charset): New member `code_space_mask'.
13603
13604 * coding.c (coding_set_source): Delete the local variable beg_byte.
13605 (encode_coding_charset, Fdefine_coding_system_internal):
13606 Delete the local variable charset.
13607 (Fdefine_coding_system_internal): Setup
13608 attrs[coding_attr_charset_valids] correctly.
13609
13610 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
13611 member to check if CODE is valid or not.
13612 (Fdefine_charset_internal): Initialize `code_space_mask' member.
13613 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
13614 is within the range of charset->min_code and carset->max_code.
13615
136162008-02-01 Dave Love <fx@gnu.org>
13617
13618 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
13619
13620 * dispextern.h (generate_ascii_font): Fix return type.
13621
13622 * xfaces.c (generate_ascii_font): Fix arg declaration.
13623
13624 * coding.c (coding_inherit_eol_type)
13625 (Fset_terminal_coding_system_internal)
13626 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
13627
136282008-02-01 Kenichi Handa <handa@m17n.org>
13629
13630 * coding.c (decode_coding_charset, encode_coding_charset): Handle
13631 multiple charsets correctly.
13632
136332008-02-01 Kenichi Handa <handa@m17n.org>
13634
13635 * search.c (boyer_moore): Fix handling of multibyte character
13636 translation.
13637
13638 * xdisp.c (display_mode_element): When the variable `elt' is
13639 changed, update `this' and `lisp_string'.
13640
136412008-02-01 Kenichi Handa <handa@m17n.org>
13642
13643 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
13644
13645 * callproc.c (Fcall_process): Be sure to give the current buffer
13646 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
13647
13648 * charset.c (struct charset_map_entries): New struct.
13649 (load_charset_map): Rename from parse_charset_map. New args
13650 entries and n_entries. Change caller.
13651 (load_charset_map_from_file): Rename from load_charset_map.
13652 Change caller. New arg control_flag. Call load_charset_map at
13653 the tail.
13654 (load_charset_map_from_vector): New function.
13655 (Fdefine_charset_internal): Setup charset.compact_codes_p.
13656 (encode_char): If the charset is compact, change a character index
13657 to a code point.
13658
13659 * coding.c (coding_alloc_by_making_gap): Check the case that the
13660 source and destination are the same correctly.
13661 (decode_coding_raw_text): Set coding->consumed_char and
13662 coding->consumed to 0.
13663 (produce_chars): If coding->chars_at_source is nonzero, update
13664 coding->consumed_char and coding->consumed before calling
13665 alloc_destination.
13666 (Fdefine_coding_system_alias): Register ALIAS in
13667 Vcoding_system_alist.
13668 (syms_of_coding): Define `no-conversion' coding system at the tail.
13669
13670 * fileio.c (Finsert_file_contents): Set coding_system instead of
13671 val. If the current buffer is multibyte, always call
13672 decode_coding_gap.
13673
13674 * xfaces.c (try_font_list): Give higher priority to fontset's
13675 family than face's family.
13676
136772008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * callproc.c (Fcall_process): Be sure to give the current buffer
13680 to decode_coding_c_string.
13681
13682 * xfaces.c (try_font_list): Give a family specified in a fontset
13683 higher priority than a family specified in a face.
13684
136852008-02-01 Kenichi Handa <handa@m17n.org>
13686
13687 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
13688 Fix arguments to insert_from_buffer.
13689
13690 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
13691
136922008-02-01 Kenichi Handa <handa@m17n.org>
13693
13694 * coding.c (produce_chars): Set the variable `multibytep' correctly.
13695 (decode_coding_gap): Set coding->dst_multibyte correctly.
13696
136972008-02-01 Kenichi Handa <handa@m17n.org>
13698
13699 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
13700 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
13701 (encode_coding_utf_16): Substitute coding->default_char for
13702 non-Unicode characters.
13703 (decode_coding): Don't call record_insert here.
13704 (setup_coding_system): Initialize `surrogate' of
13705 coding->spec.utf_16 to 0.
13706 (EMIT_ONE_BYTE): Fix for multibyte case.
13707
13708 * insdel.c (insert_from_gap): Call record_insert.
13709
137102008-02-01 Kenichi Handa <handa@m17n.org>
13711
13712 * casefiddle.c (casify_region): Fix multibyte case.
13713
13714 * character.c (c_string_width): Add return type `int'.
13715 (char_string_with_unification): Delete arg ADVANCED.
13716
13717 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
13718 (CHAR_STRING): Adjust for the change of char_string_with_unification.
13719 (CHAR_STRING_ADVANCE): Make it do-while statement.
13720
13721 * chartab.c (sub_char_table_set_range): Optimize for the case
13722 DEPTH == 3. Add workaround code for a GCC optimization bug.
13723
13724 * charset.c (parse_charset_map): Remove an unused variable.
13725
13726 * coding.c: Delete unused variables.
13727
13728 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
13729 earlier. If inserted is zero and the coding system doesn't
13730 require flushing, don't call decode_coding_gap.
13731
13732 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
13733
137342008-02-01 Kenichi Handa <handa@m17n.org>
13735
13736 The following changes are for using Unicode as an internal
13737 character model, and use UTF-8 format for buffer/string
13738 representation.
13739
13740 * .gdbinit (xchartable): Adjust for the change of char table structure.
13741 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
13742
13743 * Makefile.in (obj): Add character.o and chartab.o.
13744 (lisp, shortlisp): Remove utf-8.elc.
13745 (*.o): For many files, change dependency on charset.h to
13746 character.h, and add dependency on character.h.
13747 (character.o, chartab.o): New targets.
13748
13749 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
13750 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
13751 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
13752 of "charset.h".
13753
13754 * dired.c, filelock.c: Include "character.h".
13755
13756 * alloc.c: Include "character.h" instead of "charset.h".
13757 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
13758 (syms_of_alloc): Remove defsubr for Smake_char_table.
13759
13760 * buffer.c: Include "character.h" instead of "charset.h", don't
13761 include "coding.h".
13762 (Fset_buffer_multibyte): Adjust for UTF-8.
13763
13764 * buffer.h: EXFUN Fbuffer_live_p.
13765
13766 * callproc.c: Include "character.h" instead of "charset.h".
13767 (Fcall_process): Big change for the new code-conversion APIs.
13768
13769 * casetab.c: Include "character.h" instead of "charset.h".
13770 (set_canon, set_identity, shuffle): Adjust for the new
13771 map_char_table spec.
13772 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
13773 accessing the char table structure.
13774
13775 * chartab.c: New file that implements char table.
13776
13777 * category.c: Include "character.h".
13778 (copy_category_entry): New function.
13779 (copy_category_table): Call map_char_table and copy_category_entry.
13780 (Fmake_category_table): Initialize all top-level slots.
13781 (char_category_set): New function.
13782 (modify_lower_category_set): Delete.
13783 (Fmodify_category_entry): Call char_table_ref_and_range.
13784
13785 * category.h (CATEGORY_SET): Just call char_category_set.
13786
13787 * ccl.c: Include "character.h".
13788 (Qccl, Qcclp): New variables.
13789 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
13790 it's less than 256.
13791 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
13792 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
13793 and DST type.
13794 (ccl_driver): Change types of argument, adjust code accordingly.
13795 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
13796 ccl_driver.
13797 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
13798
13799 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
13800 New members src_multibyte, dst_multibyte, consumed, and produced.
13801 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
13802 (CODING_SPEC_CCL_PROGRAM): New macro.
13803 (ccl_driver): Update prototype.
13804 (Qccl, Qcclp, Fccl_program_p): Extern them.
13805 (CHECK_CCL_PROGRAM): New macro.
13806
13807 * character.c, character.h, chartab.c: New files.
13808
13809 * charset.c: Mostly re-written. Move character and multibyte sequence
13810 handling codes to character.c.
13811
13812 * charset.h: Mostly re-written. Move character and multibyte sequence
13813 handling codes to character.h.
13814
13815 * coding.c, coding.h: Mostly re-written.
13816
13817 * composite.c: Include "character.h" instead of "charset.h".
13818 (CHAR_WIDTH): Move to character.h.
13819 (HASH_KEY, HASH_VALUE): Delete.
13820
13821 * composite.h (enum composition_method): Change order of enumeration
13822 symbols.
13823
13824 * data.c: Include "character.h" instead of "charset.h".
13825 (Faref): Call CHAR_TABLE_REF for a char table.
13826 (Faset): Call CHAR_TABLE_SET for a char table.
13827
13828 * dispextern.h (free_realized_face, check_face_attribytes)
13829 (generate_ascii_font): Extern them.
13830 (free_realized_multibyte_face): Delete extern.
13831
13832 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
13833 table structure.
13834
13835 * editfns.c: Include "character.h" instead of "charset.h".
13836 (Fchar_to_string): Always call CHAR_STRING.
13837
13838 * emacs.c (main): Call init_charset_once, init_charset,
13839 syms_of_chartab, and syms_of_character.
13840
13841 * fileio.c: Include "character.h" instead of "charset.h".
13842 (Finsert_file_contents): Big change for the new code-conversion API.
13843 (choose_write_coding_system, Fwrite_region): Likewise.
13844 (build_annotations_2): Delete.
13845 (e_write): Big change for the new code-conversion API.
13846
13847 * fns.c: Include "character.h" instead of "charset.h".
13848 (copy_sub_char_table): Move to chartab.c.
13849 (Fcopy_sequence): Call copy_char_table for a char table.
13850 (concat): Delete codes calling count_multibyte.
13851 (string_char_to_byte, string_byte_to_char): Adjust for the new
13852 multibyte form.
13853 (internal_equal): Adjust for the change of char table structure.
13854 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
13855 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
13856 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
13857 (char_table_translate, optimize_sub_char_table)
13858 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
13859 chartab.c.
13860 (char_table_ref_and_index): Delete.
13861 (HASH_KEY, HASH_VALUE): Move to lisp.h.
13862 (Fmd5): Call preferred_coding_system instead of accessing
13863 Vcoding_category_list. Adjust for the new code-conversion API.
13864 (syms_of_fns): Move defsubr for char table related functions to
13865 chartab.c.
13866
13867 * fontset.c: Mostly re-written.
13868
13869 * fontset.h (struct font_info): Change type of the member encoding_type.
13870 (enum FONT_SPEC_INDEX): New enum.
13871 (fontset_font_pattern, fs_load_font): Update prototype.
13872 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
13873
13874 * indent.c: Include "character.h" instead of "charset.h".
13875 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
13876
13877 * insdel.c: Include "character.h" instead of "charset.h".
13878 (copy_text): Don't refer to Vnonascii_translation_table.
13879 (insert_from_gap): New function.
13880
13881 * keyboard.c: Include "character.h" instead of "charset.h".
13882 (command_loop_1): Never call direct_output_forward_char before
13883 a non-ASCII character.
13884 (read_char): If Vkeyboard_translate_table is a char table, always
13885 translate a character.
13886
13887 * keymap.c: Include "character.h".
13888 (store_in_keymap): Handle the case that IDX is a cons.
13889 (Fdefine_key): Handle the case that KEY is a cons and the car part
13890 is also a cons (range).
13891 (push_key_description): Adjust for the new character code.
13892 (describe_vector): Call describe_char_table for a char table.
13893 (describe_char_table): New function.
13894
13895 * keymap.h (describe_char_table): Extern it.
13896
13897 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
13898 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
13899 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
13900 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
13901 Delete.
13902 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
13903 structure.
13904 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
13905 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
13906 (CHARTAB_SIZE_BITS_3): New macros.
13907 (chartab_size): Extern it.
13908 (struct Lisp_Char_Table): Re-design.
13909 (struct Lisp_Sub_Char_Table): New structure.
13910 (HASH_KEY, HASH_VALUE): Move from fns.c.
13911 (CHARACTERBITS): Define as 22.
13912 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
13913 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
13914 (GC_SUB_CHAR_TABLE_P): New macro.
13915 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
13916 (code_convert_string_norecord): Deleted extern.
13917 (init_character_once, syms_of_character, init_charset)
13918 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
13919
13920 * lread.c: Include "character.h".
13921 (read_multibyte): New arg NBYTES.
13922 (read_escape): Change the meaning of returned *BYTEREP.
13923 (to_multibyte): Delete.
13924 (read1): Adjust the handling of char table and string.
13925
13926 * print.c: Include "character.h" instead of "charset.h".
13927 (print_string): Convert 8-bit raw bytes to octal form by
13928 string_escape_byte8.
13929 (print_object): Adjust for the new multibyte form. Print 8-bit
13930 raw bytes always in octal form. Handle sub char table correctly.
13931
13932 * process.c: Include "character.h" instead of "charset.h".
13933 (read_process_output, send_process): Adjust for the new
13934 code-conversion API.
13935
13936 * puresize.h (BASE_PURESIZE): Increase.
13937
13938 * regex.c: Include "character.h" instead of "charset.h".
13939 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
13940 (regex_compile): Accept a range whose starting and ending
13941 character have different leading bytes.
13942 (analyse_first): Adjust for the above change.
13943
13944 * search.c: Include "character.h" instead of "charset.h".
13945 (search_buffer, boyer_moore): Adjust for the new multibyte form.
13946 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
13947
13948 * syntax.c: Include "character.h" instead of "charset.h".
13949 (syntax_parent_lookup): Delete.
13950 (Fmodify_syntax_entry): Accept a cons as CHAR.
13951 (skip_chars): Adjust for the new multibyte form.
13952 (init_syntax_once): Call char_table_set_range instead of directly
13953 accessing the structure of a char table.
13954
13955 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
13956 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
13957 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
13958 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
13959
13960 * term.c: Include "buffer.h" and "character.h".
13961 (encode_terminal_code, write_glyphs): Adjust for the new
13962 code-conversion API.
13963 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
13964
13965 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
13966
13967 * xdisp.c: Include "character.h".
13968 (get_next_display_element): Adjust for the new multibyte form.
13969 (disp_char_vector): Adjust for the new char table structure.
13970 (decode_mode_spec_coding): Adjust for the new structure of
13971 coding system.
13972 (decode_mode_spec): Adjust for the new code-conversion API.
13973
13974 * xfaces.c: Include "character.h" instead of "charset.h".
13975 (load_face_font): Adjust for the change of choose_face_font and
13976 FS_LOAD_FONT.
13977 (generate_ascii_font): New function.
13978 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
13979 (set_font_frame_param): Adjust for the change of choose_face_font.
13980 (free_realized_face): Make it public.
13981 (free_realized_faces_for_fontset): Rename from
13982 free_realized_multibyte_face. Free also faces realized for ASCII.
13983 (choose_face_font): Change arguments. Adjust for the change of
13984 fontset_font_pattern and FS_LOAD_FONT.
13985
13986 * xfns.c: Include "character.h".
13987 (x_encode_text): Adjust for the new code-conversion API.
13988
13989 * xselect.c: Don't include "charset.h".
13990 (selection_data_to_lisp_data): Adjust for the new code conversion API.
13991
13992 * xterm.c: Include "character.h".
13993 (x_encode_char): New argument CHARSET. Change caller.
13994 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
13995 Call ENCODE_CHAR instead of SPLIT_CHAR.
13996 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
13997 CHAR_WIDTH instead of CHARSET_WIDTH.
13998 (XTread_socket): Adjust for the new code-conversion API.
13999 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14000 (x_load_font): Adjust for the change of struct font.
14001
140022008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14003
14004 * xfaces.c (face_at_buffer_position): Remove unused vars.
14005
140062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14007
14008 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14009 Fix overflow checking.
14010
140112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14012
14013 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14014 Cancel previous change.
14015
140162008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14017
14018 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14019 ccl->eight_bit_control. Fix check for buffer overflow.
14020 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14021 (ccl_driver): Initialize extra_bytes to 0.
14022
140232008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14024
14025 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14026 return it ORed with ctrl_modifier.
14027
140282008-01-29 Miles Bader <miles@gnu.org>
14029
14030 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14031
140322008-01-28 Jason Rumney <jasonr@gnu.org>
14033
14034 * w32.c (stat): Don't double check for networked drive.
14035
140362008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14037
14038 * window.c (run_window_configuration_change_hook): New function.
14039 Code extracted from set_window_buffer. Set the selected frame.
14040 (set_window_buffer): Use it.
14041 * window.h (run_window_configuration_change_hook): Declare.
14042 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14043
14044 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14045
140462008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14047
14048 * Makefile.in: Remove references to unused macros.
14049
140502008-01-26 Eli Zaretskii <eliz@gnu.org>
14051
14052 * w32.c (g_b_init_get_sid_sub_authority)
14053 (g_b_init_get_sid_sub_authority_count): New static variables.
14054 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14055 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14056 (init_user_info): Use them to retrieve uid and gid.
14057 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14058 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14059 st_uid and st_gid of the file.
14060
140612008-01-26 Jason Rumney <jasonr@gnu.org>
14062
14063 * w32.c (logon_network_drive): New function.
14064 (stat): Use it.
14065
140662008-01-26 Chong Yidong <cyd@stupidchicken.com>
14067
14068 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14069 invisible text covered with an ellipsis.
14070
140712008-01-25 Richard Stallman <rms@gnu.org>
14072
14073 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14074 jump back to beginning. Move some other initializations after that.
14075 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14076 New variables.
14077 (syms_of_xdisp): Init them.
14078
14079 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14080
14081 * buffer.c (reset_buffer_local_variables):
14082 Implement `permanent-local-hook'.
14083 (Qpermanent_local_hook): New variable.
14084 (syms_of_buffer): Init and staticpro it.
14085
140862008-01-25 Michael Albinus <michael.albinus@gmx.de>
14087
14088 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14089
140902008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14091
14092 * fns.c (Fclrhash): Return TABLE.
14093
140942008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14095
14096 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14097 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14098 is set even without positional changes.
14099 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14100
14101 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14102
141032008-01-23 Jason Rumney <jasonr@gnu.org>
14104
14105 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14106
14107 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14108 the unicode range available in MULE by locale-coding-system.
14109 Improve dbcs lead byte detection. Set event timestamp and modifiers
14110 earlier.
14111
141122008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14113
14114 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14115 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14116 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14117 when used on child processes.
14118
141192008-01-21 Michael Albinus <michael.albinus@gmx.de>
14120
14121 * dbusbind.c (Fdbus_method_return_internal): Rename from
14122 Fdbus_method_return.
14123 (Fdbus_unregister_object): Move to dbus.el.
14124 (Fdbus_call_method, Fdbus_method_return_internal)
14125 (Fdbus_send_signal): Improve debug messages.
14126
141272008-01-20 Martin Rudalics <rudalics@gmx.at>
14128
14129 * undo.c (undo_inhibit_record_point): New variable.
14130 (syms_of_undo): Initialize it.
14131 (record_point): Don't record point when undo_inhibit_record_point
14132 is set.
14133
141342008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14135
14136 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14137
14138 * xdisp.c (Qauto_hscroll_mode): New var.
14139 (syms_of_xdisp): Initialize it.
14140 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14141 window's buffer.
14142 (hscroll_windows): Don't check automatic_hscrolling_p here.
14143
14144 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14145 vscroll if we're setting window-buffer to the value it already has.
14146
141472008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14148
14149 * m/intel386.h: Remove references to XENIX.
14150
141512008-01-17 Andreas Schwab <schwab@suse.de>
14152
14153 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14154 instead of HAVE_X86_64_LIB64_DIR.
14155 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14156
141572008-01-17 Glenn Morris <rgm@gnu.org>
14158
14159 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14160 to HAVE_X86_64_LIB64_DIR.
14161
141622008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14163
14164 * s/irix3-3.h:
14165 * s/irix4-0.h:
14166 * s/386-ix.h:
14167 * s/domain.h:
14168 * s/hpux9-x11r4.h:
14169 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14170
14171 * sysdep.c: Remove code containing references to symbols defined
14172 by unsupported systems.
14173
141742008-01-16 Glenn Morris <rgm@gnu.org>
14175
14176 * coding.c (select-safe-coding-system-function): Doc fix.
14177
141782008-01-15 Glenn Morris <rgm@gnu.org>
14179
14180 * config.in: Revert 2008-01-13 change: this is a generated file.
14181
141822008-01-13 Tom Tromey <tromey@redhat.com>
14183
14184 * lisp.h: Fix typo.
14185
141862008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14187
14188 * m/sequent-ptx.h:
14189 * m/sequent.h:
14190 * s/ptx.h:
14191 * s/ptx4-2.h:
14192 * s/ptx4.h: Remove files for systems no longer supported.
14193
14194 * callproc.c (Fcall_process): Fix previous change.
14195
141962008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14197
14198 * unexsunos4.c: Remove file, system not supported anymore.
14199
14200 * m/mips.h:
14201 * m/intel386.h:
14202 * callproc.c:
14203 * config.in:
14204 * ecrt0.c:
14205 * emacs.c:
14206 * fileio.c:
14207 * frame.c:
14208 * getpagesize.h:
14209 * keyboard.c:
14210 * lread.c:
14211 * process.c:
14212 * puresize.h:
14213 * sysdep.c:
14214 * systty.h:
14215 * syswait.h:
14216 * unexec.c:
14217 * xdisp.c:
14218 * alloc.c: Remove code containing references to symbols defined by
14219 unsupported systems.
14220
142212008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14222
14223 * coding.c (detect_coding_mask): Fix previous change.
14224
142252008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14226
14227 * coding.c (detect_coding_iso2022): New arg
14228 latin_extra_code_state. Allow Latin extra codes only
14229 when *latin_extra_code_state is nonzero.
14230 (detect_coding_mask): If there is a NULL byte, detect the encoding
14231 as UTF-16 or binary. If Latin extra codes exist, detect the
14232 encoding as ISO-2022 only when there's no other proper encoding is
14233 found.
14234
142352008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14236
14237 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14238 #ifdef MAC_OS.
14239
142402008-01-08 Richard Stallman <rms@gnu.org>
14241
14242 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14243
142442008-01-06 Nick Roberts <nickrob@snap.net.nz>
14245
14246 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14247 menu bar in parentheses.
14248
142492008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14250
14251 * m/7300.h:
14252 * m/acorn.h:
14253 * m/alliant-2800.h:
14254 * m/alliant.h:
14255 * m/alliant1.h:
14256 * m/alliant4.h:
14257 * m/altos.h:
14258 * m/amdahl.h:
14259 * m/apollo.h:
14260 * m/att3b.h:
14261 * m/aviion-intel.h:
14262 * m/aviion.h:
14263 * m/celerity.h:
14264 * m/clipper.h:
14265 * m/cnvrgnt.h:
14266 * m/convex.h:
14267 * m/cydra5.h:
14268 * m/delta88k.h:
14269 * m/dpx2.h:
14270 * m/dual.h:
14271 * m/elxsi.h:
14272 * m/f301.h:
14273 * m/gould-np1.h:
14274 * m/gould.h:
14275 * m/i860.h:
14276 * m/ibmps2-aix.h:
14277 * m/ibmrt-aix.h:
14278 * m/ibmrt.h:
14279 * m/irist.h:
14280 * m/is386.h:
14281 * m/isi-ov.h:
14282 * m/mega68.h:
14283 * m/mg1.h:
14284 * m/news-r6.h:
14285 * m/news-risc.h:
14286 * m/news.h:
14287 * m/nh3000.h:
14288 * m/nh4000.h:
14289 * m/ns16000.h:
14290 * m/ns32000.h:
14291 * m/nu.h:
14292 * m/orion.h:
14293 * m/orion105.h:
14294 * m/paragon.h:
14295 * m/pfa50.h:
14296 * m/plexus.h:
14297 * m/pyramid.h:
14298 * m/pyrmips.h:
14299 * m/sh3el.h:
14300 * m/sps7.h:
14301 * m/sr2k.h:
14302 * m/stride.h:
14303 * m/sun1.h:
14304 * m/sun2.h:
14305 * m/sun3-68881.h:
14306 * m/sun3-fpa.h:
14307 * m/sun3-soft.h:
14308 * m/sun3.h:
14309 * m/sun386.h:
14310 * m/symmetry.h:
14311 * m/tad68k.h:
14312 * m/tahoe.h:
14313 * m/targon31.h:
14314 * m/tek4300.h:
14315 * m/tekxd88.h:
14316 * m/tower32.h:
14317 * m/tower32v3.h:
14318 * m/ustation.h:
14319 * m/wicat.h:
14320 * m/xps100.h:
14321 * s/cxux.h:
14322 * s/cxux7.h:
14323 * s/dgux.h:
14324 * s/dgux4.h:
14325 * s/dgux5-4-3.h:
14326 * s/dgux5-4r2.h:
14327 * s/esix.h:
14328 * s/esix5r4.h:
14329 * s/hiuxmpp.h:
14330 * s/hiuxwe2.h:
14331 * s/iris3-5.h:
14332 * s/iris3-6.h:
14333 * s/isc2-2.h:
14334 * s/isc3-0.h:
14335 * s/isc4-0.h:
14336 * s/isc4-1.h:
14337 * s/newsos5.h:
14338 * s/newsos6.h:
14339 * s/osf1.h:
14340 * s/osf5-0.h:
14341 * s/riscix1-1.h:
14342 * s/riscix12.h:
14343 * s/sco4.h:
14344 * s/sco5.h:
14345 * s/sunos4-0.h:
14346 * s/sunos4-1.h:
14347 * s/sunos413.h:
14348 * s/sunos4shr.h:
14349 * s/umax.h:
14350 * s/unipl5-2.h:
14351 * s/xenix.h:
14352 * cxux-crt0.s:
14353 * unexapollo.c:
14354 * unexconvex.c:
14355 * unexenix.c:
14356 * unexsni.c: Remove files for systems no longer supported.
14357
14358 * m/intel386.h: Remove references to unsupported systems.
14359
14360 * w32.c (get_emacs_configuration): Remove reference to i860.
14361
14362 * sysdep.c: Remove dead code.
14363
143642008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14365
14366 * s/rtu.h:
14367 * m/masscomp.h: Remove files. Platform is obsolete.
14368
143692008-01-04 Michael Albinus <michael.albinus@gmx.de>
14370
14371 * dbusbind.c (Fdbus_method_return): New function.
14372 (xd_read_message): Add the serial number to the event.
14373 (Fdbus_register_method): Activate the function.
14374
143752008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14376
14377 * keyboard.c (read_key_sequence): Fix typo.
14378
143792008-01-03 Michael Albinus <michael.albinus@gmx.de>
14380
14381 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14382 (xd_signature, xd_append_arg): Handle element type detection for
14383 empty arrays.
14384 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
14385 SDATA () calls; this must be solved more general.
14386 (Fdbus_register_signal): Use SBYTES instead of strlen.
14387
143882008-01-03 Magnus Henoch <magnus@zemdatav>
14389
14390 * dbusbind.c (xd_append_arg): Use unsigned char instead of
14391 unsigned int for byte values (necessary for big-endian platform).
14392 (Fdbus_call_method): Handle the case of no returned arguments.
14393
143942007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
14395
14396 * dbusbind.c (xd_read_message): Use non-static input_event struct.
14397
143982007-12-31 Magnus Henoch <mange@freemail.hu>
14399
14400 * dbusbind.c (xd_signature): Signature of variant is just "v".
14401
144022007-12-30 Michael Albinus <michael.albinus@gmx.de>
14403
14404 * dbusbind.c: Fix several errors and compiler warnings.
14405 Reported by Tom Tromey <tromey@redhat.com>.
14406 (XD_ERROR, XD_DEBUG_MESSAGE)
14407 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
14408 (xd_append_arg): Part for basic D-Bus types rewritten.
14409 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
14410 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
14411 appropriate.
14412 (xd_read_message): Return Qnil. Don't signal an error; it is not
14413 useful during event reading.
14414 (Fdbus_register_signal): Signal an error if the check for
14415 FUNCTIONP fails.
14416 (Fdbus_register_method): New function. The implementation is not
14417 complete, the call of the function signals an error therefore.
14418 (Fdbus_unregister_object): New function, renamed from
14419 Fdbus_unregister_signal. The initial check signals an error, if
14420 the object is not well formed.
14421
144222007-12-30 Richard Stallman <rms@gnu.org>
14423
14424 * textprop.c (get_char_property_and_overlay):
14425 Signal error if POSITION is out of range in a buffer.
14426
144272007-12-29 Martin Rudalics <rudalics@gmx.at>
14428
14429 * w32fns.c (Fx_create_frame): Make copy of frame parameters
14430 because the original parameters are in pure storage now.
14431
144322007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14433
14434 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
14435
144362007-12-22 Eli Zaretskii <eliz@gnu.org>
14437
14438 * callint.c (syms_of_callint) <command-history>: Add reference to
14439 history-length in the doc string.
14440
144412007-12-17 Jason Rumney <jasonr@gnu.org>
14442
14443 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
14444 before passing as wParam.
14445
144462007-12-22 Michael Albinus <michael.albinus@gmx.de>
14447
14448 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
14449 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
14450 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
14451 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
14452 as number.
14453 (Fdbus_call_method): Fix docstring.
14454
144552007-12-21 Michael Albinus <michael.albinus@gmx.de>
14456
14457 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
14458 New macros.
14459 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
14460 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
14461 Simplify.
14462 (xd_signature): New function.
14463 (xd_append_arg): Compute also signatures. Major rewrite.
14464 (xd_retrieve_arg): Make debug messages friendly.
14465 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
14466 Check for signatures of arguments.
14467
144682007-12-19 Michael Albinus <michael.albinus@gmx.de>
14469
14470 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
14471 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
14472 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
14473 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
14474 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
14475 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
14476 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
14477 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
14478 (xd_retrieve_value): Remove. Functionality included in ...
14479 (xd_append_arg): New function.
14480 (Fdbus_call_method, Fdbus_send_signal): Apply it.
14481
144822007-12-16 Michael Albinus <michael.albinus@gmx.de>
14483
14484 * dbusbind.c (top): Include <stdio.h>.
14485 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
14486 dbus_message_new_method_call and dbus_message_new_signal.
14487 (Fdbus_register_signal): Rename unique_name to uname.
14488 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
14489 non-existing unique name. Fix typos in matching rule. Return an
14490 object which is useful in Fdbus_unregister_signal.
14491 (Fdbus_unregister_signal): Reimplementation, in order to remove
14492 only the corresponding entry.
14493 (Vdbus_registered_functions_table): Change the order of entries.
14494 Apply these changes in xd_read_message and Fdbus_register_signal.
14495
144962007-12-16 Andreas Schwab <schwab@suse.de>
14497
14498 * fileio.c (Finsert_file_contents): Fix overflow check to not
14499 depend on undefined integer overflow.
14500
145012007-12-14 Jason Rumney <jasonr@gnu.org>
14502
14503 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
14504 for characters above 127.
14505
145062007-12-13 Jason Rumney <jasonr@gnu.org>
14507
14508 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
14509 before dereferencing array.
14510 (lookup_vk_code): Remove zero comparison.
14511
145122007-12-14 Michael Albinus <michael.albinus@gmx.de>
14513
14514 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
14515 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
14516 Use `unsigned int' instead of `uint'.
14517 (xd_read_message, Fdbus_register_signal): Split expressions into
14518 multiple lines before operators "&&" and "||", according to the
14519 GNU Coding Standards.
14520
145212007-12-14 Eli Zaretskii <eliz@gnu.org>
14522
14523 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
14524
145252007-12-12 Juri Linkov <juri@jurta.org>
14526
14527 * buffer.c (Frename_buffer): In interactive spec replace
14528 `read-buffer' with `read-string' that uses `buffer-name-history'
14529 as history, and the current buffer's name as default.
14530
145312007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
14532
14533 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
14534 manipulating the backtrace manually.
14535 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
14536 (struct backtrace, backtrace_list): Remove.
14537 (command_loop_1): Remove dead var `no_direct'.
14538
14539 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
14540 preserve non-built-in buffer-local variables.
14541 (Fkill_all_local_variables): Don't re-create&re-set permanent
14542 buffer-local variables.
14543
145442007-12-09 Juri Linkov <juri@jurta.org>
14545
14546 * buffer.c (Frename_buffer): Change interactive spec from "s" to
14547 Lisp code that uses `read-buffer' with current buffer as default.
14548
145492007-12-08 Michael Albinus <michael.albinus@gmx.de>
14550
14551 * dbusbind.c (xd_read_message): Generate an event for every
14552 registered handler. There might be several handlers registered
14553 for the same signal.
14554 (Fdbus_register_signal): Don't overwrite a registration for the
14555 same signal. Add a new registration if handlers are different.
14556 (Vdbus_registered_functions_table): Rework doc string.
14557
145582007-12-07 Michael Albinus <michael.albinus@gmx.de>
14559
14560 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
14561 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
14562 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
14563 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
14564 Unify argument lists.
14565 (xd_read_message, Fdbus_register_signal): Reorder and extend event
14566 arguments and hash table keys. Use unique name for service.
14567 (Fdbus_unregister_signal): Remove checks.
14568 (Vdbus_registered_functions_table): Fix doc string.
14569
145702007-12-05 Magnus Henoch <mange@freemail.hu>
14571
14572 * process.c (make_process): Initialize pty_flag to 0.
14573
145742007-12-05 Jason Rumney <jasonr@gnu.org>
14575
14576 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
14577 specified XBMs.
14578
145792007-12-05 Richard Stallman <rms@gnu.org>
14580
14581 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
14582
145832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14584
14585 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
14586 New variable.
14587 (mac_try_close_socket) [MAC_OSX]: New function.
14588 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
14589 Update cfsockets_for_select. Replace invalid CFRunLoop source.
14590
14591 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
14592 Use mac_try_close_socket.
14593
145942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14595
14596 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
14597 reloc_base.
14598 (copy_dysymtab): Compute relocation base here.
14599 (rebase_reloc_address) [__ppc64__]: New function.
14600 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
14601 changed.
14602
146032007-12-05 Jason Rumney <jasonr@gnu.org>
14604
14605 * w32proc.c (sys_spawnve): Quote args with wildcards.
14606
146072007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14608
14609 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
14610 __objc_* sections.
14611 (unrelocate) [_LP64]: Set relocation base to address of data segment.
14612
146132007-12-05 Michael Albinus <michael.albinus@gmx.de>
14614
14615 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
14616 Move check for Vdbus_registered_functions_table to
14617 xd_read_queued_messages.
14618 (xd_read_queued_messages): Protect xd_read_message calls by
14619 internal_condition_case_1.
14620
146212007-12-04 Michael Albinus <michael.albinus@gmx.de>
14622
14623 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
14624 Qdbus_system_bus and Qdbus_session_bus, respectively.
14625 (Vdbus_intern_symbols): Remove.
14626 (Vdbus_registered_functions_table): New hash table.
14627 (XD_SYMBOL_INTERN_SYMBOL): Remove.
14628 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
14629 Rewrite in order to manage registered functions by hash table
14630 Vdbus_registered_functions_table.
14631
146322007-12-03 Jan Djärv <jan.h.d@swipnet.se>
14633
14634 * xterm.c: Update URL to Window Manager Specification in comment.
14635
146362007-12-02 Michael Albinus <michael.albinus@gmx.de>
14637
14638 * config.in (HAVE_DBUS): Add.
14639
14640 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
14641 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
14642 (obj): Add $(DBUS_OBJ).
14643 (LIBES): Add $(DBUS_LIBS).
14644 (dbusbind.o): New target.
14645
14646 * dbusbind.c: New file.
14647
14648 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
14649
14650 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
14651 (Qdbus_event): New Lisp symbol.
14652 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
14653 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 14654 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
14655
14656 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
14657
146582007-12-01 Richard Stallman <rms@gnu.org>
14659
14660 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
14661
146622007-11-30 Jason Rumney <jasonr@gnu.org>
14663
14664 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
14665 (w32con_reset_terminal_modes): Clear screen buffer.
14666 (w32_face_attributes): Don't use color indexes that are out of range.
14667 Only reverse the default colors.
14668
14669 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
14670 WINDOWSNT.
14671
14672 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
14673
146742007-11-29 Jason Rumney <jasonr@gnu.org>
14675
14676 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
14677 (w32_face_attributes): Use Vtty_defined_color_alist to determine
14678 if the terminal colors are initialized.
14679 (unspecified_fg, unspecified_bg): Remove unused declarations.
14680
146812007-11-29 Andreas Schwab <schwab@suse.de>
14682
14683 * keyboard.c (apply_modifiers): Fix typo.
14684
146852007-11-29 Richard Stallman <rms@gnu.org>
14686
14687 * keymap.c (Fcurrent_local_map): Doc fix.
14688
146892007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
14690
14691 * s/gnu-kfreebsd.h: New file.
14692
146932007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
14694
14695 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
14696 Don't cast redundantly.
14697
14698 * keyboard.c (KEY_TO_CHAR): New macro.
14699 (parse_modifiers, apply_modifiers): Accept integer arguments.
14700 (read_key_sequence): Use them to unify the "shift->unshift" mapping
14701 for chars and symbol keys.
14702 After doing such remapping, apply function-key-map again.
14703
147042007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
14705
14706 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
14707 compiled anymore.
14708
147092007-11-26 Andreas Schwab <schwab@suse.de>
14710
14711 * process.c (list_processes_1): Fix indentation level of the
14712 command column.
14713
147142007-11-23 Andreas Schwab <schwab@suse.de>
14715
14716 * editfns.c (Fformat): Handle %c specially since it requires the
14717 argument to be of type int.
14718
147192007-11-23 Markus Triska <markus.triska@gmx.at>
14720
14721 * emacs.c (main): Call init_editfns before init_process, since
14722 init_process sets Vprocess_connection_type depending on OS release.
14723
147242007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
14725
14726 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
14727 (find_symbol_value): Use do_symval_forwarding.
14728
14729 * data.c (set_internal): Set the value in the `cons-cell' (for
14730 Buffer_Local_values) not only for frame-local variables.
14731
147322007-11-22 Andreas Schwab <schwab@suse.de>
14733
14734 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
14735 values to sprintf.
14736 * keymap.c (Fsingle_key_description): Likewise.
14737 * print.c (print_object): Likewise.
14738
147392007-11-22 Jan Djärv <jan.h.d@swipnet.se>
14740
14741 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
14742 file for image is nil.
14743
147442007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
14745
14746 * term.c: Include stdarg.h.
14747 (fatal): Implement using varargs.
14748 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
14749
147502007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14751
14752 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
14753 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
14754 Update call to buffer_slot_type_mismatch.
14755 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
14756 (buffer_slot_type_mismatch): Update.
14757 * buffer.c (buffer_local_types): Remove.
14758 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
14759 (defvar_per_buffer): Set the type in the buffer_objfwd.
14760
147612007-11-21 Jason Rumney <jasonr@gnu.org>
14762
14763 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
14764 CreateFileMapping returns NULL on failure.
14765
147662007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14767
14768 * search.c (Fset_match_data): Remove the `evaporate' feature.
14769 (unwind_set_match_data): Don't use the `evaporate' feature.
14770
147712007-11-21 Jason Rumney <jasonr@gnu.org>
14772
14773 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
14774
14775 * w32console.c (w32con_write_glyphs): Remove unused variables.
14776
147772007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
14778
14779 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
14780
14781 * s/darwin.h (MULTI_KBOARD): Remove.
14782
14783 * macfns.c (x_create_tip_frame, Fx_create_frame)
14784 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
14785
147862007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
14787
14788 * buffer.c (Fbuffer_local_value): Remove redundant test.
14789 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
14790 than in `current-buffer' to match the comment.
14791 Do the swap using swap_in_global_binding.
14792
14793 * data.c (store_symval_forwarding, set_internal):
14794 * eval.c (specbind): Remove dead code.
14795
14796 * coding.c (detect_coding, Fupdate_coding_systems_internal):
14797 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
14798 Since we do not want to see internal Lisp_*fwd objects here.
14799
148002007-11-18 Jan Djärv <jan.h.d@swipnet.se>
14801
14802 * sysdep.c (init_system_name): Use getaddrinfo if available.
14803
14804 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
14805 (x_scroll_bar_note_movement): start, end, with, height in struct
14806 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
14807
148082007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
14809
14810 * puresize.h (BASE_PURESIZE): Increase to 1190000.
14811
148122007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
14813
14814 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
14815 This undoes Richard's change of 14-Oct-2002.
14816
14817 * alloc.c (allocate_other_vector):
14818 * lisp.h (allocate_other_vector): Remove.
14819
14820 * window.c (struct save_window_data): Move non-lisp data to the end
14821 and make it `int' rather than Lisp_Object.
14822 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
14823 Done wrap/unwrap integer values.
14824 (Fset_window_configuration, compare_window_configurations):
14825 Update use of fields to their new types.
14826
14827 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
14828 Turn integer fields into `int'. Merge x_window_low and x_window_high.
14829 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
14830 (SET_SCROLL_BAR_X_WINDOW): Remove.
14831 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
14832 Access the new x_window field directly.
14833 * xterm.c (x_scroll_bar_create): Use a pseudovector.
14834 Don't wrap/unwrap integers into Lisp_Objects.
14835 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
14836 (x_scroll_bar_report_motion):
14837 Don't wrap/unwrap integers into Lisp_Objects.
14838 (x_term_init): Use SDATA.
14839 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
14840 (x_scroll_bar_set_handle, x_scroll_bar_remove)
14841 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
14842 (x_scroll_bar_report_motion, x_scroll_bar_clear):
14843 * xfns.c (x_set_background_color):
14844 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
14845 Access the new x_window field directly.
14846
14847 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
14848 (allocate_pseudovector): Make non-static.
14849
14850 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
14851 (allocate_pseudovector): Declare.
14852 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
14853
148542007-11-15 Andreas Schwab <schwab@suse.de>
14855
14856 * editfns.c (Fformat): Correctly format EMACS_INT values.
14857 Also take precision into account when formatting an integer.
14858
14859 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
14860
148612007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
14862
14863 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
14864 (syms_of_keyboard): Defsubr it.
14865
14866 * data.c (swap_in_global_binding): Fix longstanding bug where
14867 store_symval_forwarding was not called with the right second argument,
14868 thus causing objfwd-ing from being dropped.
14869
148702007-11-14 Juanma Barranquero <lekktu@gmail.com>
14871
14872 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
14873 (Fx_display_pixel_height, Fx_display_planes)
14874 (Fx_display_color_cells, Fx_server_max_request_size)
14875 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14876 (Fx_display_visual_class, Fx_display_save_under):
14877 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
14878 (Fx_display_pixel_height, Fx_display_planes)
14879 (Fx_display_color_cells, Fx_server_max_request_size)
14880 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14881 (Fx_display_mm_height, Fx_display_mm_width)
14882 (Fx_display_backing_store, Fx_display_visual_class)
14883 (Fw32_select_font, Fx_display_save_under):
14884 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
14885 (Fx_display_pixel_height, Fx_display_planes)
14886 (Fx_display_color_cells, Fx_server_max_request_size)
14887 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14888 (Fx_display_save_under): Fix typos in docstrings.
14889
148902007-11-14 Juanma Barranquero <lekktu@gmail.com>
14891
14892 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
14893 corresponding to deleted entries; they are an implementation detail.
14894 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
14895 Remove variables.
14896 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
14897 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
14898 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
14899 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
14900 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
14901 (Fw32_define_rgb_color, Fw32_load_color_file)
14902 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
14903 Fix typos in docstrings.
14904 (Fx_server_version): Reflow docstring.
14905 (Fw32_shell_execute): Doc fixes.
14906
149072007-11-13 Juanma Barranquero <lekktu@gmail.com>
14908
14909 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
14910 if w32_parse_hot_key returned nil.
14911
149122007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
14913
14914 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
14915
149162007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 14917
aac0c6e3
MR
14918 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
14919
14920 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
14921
14922 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
14923 Remove W32_SCROLL_BAR_CLICK_EVENT.
14924
14925 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
14926 Add MULTIMEDIA_KEY_EVENT.
14927
14928 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
14929 (lispy_multimedia_keys) [WINDOWSNT]: New array.
14930 (make_lispy_event) [WINDOWSNT]: Use it to translate
14931 MULTIMEDIA_KEY_EVENT.
14932
14933 * w32term.h (WM_APPCOMMAND): Define if not already.
14934 (GET_APPCOMMAND_LPARAM): Likewise.
14935
14936 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
14937 WM_APPCOMMAND.
14938
14939 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
14940 (syms_of_w32fns): Export and initialize it.
14941 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
14942
149432007-11-09 Chong Yidong <cyd@stupidchicken.com>
14944
14945 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
14946 twice.
14947
14948 * xdisp.c (handle_face_prop): Fix last change.
14949
149502007-11-09 Richard Stallman <rms@gnu.org>
14951
14952 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
14953 not just for after-strings and before-strings.
14954 Call face_for_overlay_string and pass the overlay to it.
14955 (handle_display_prop): Determine whether property came from an overlay.
14956 Pass OVERLAY arg to handle_single_display_spec.
14957 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
14958 (load_overlay_strings): Fill in it->string_overlays.
14959 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
14960
14961 * xfaces.c (face_for_overlay_string): Function renamed from
14962 face_at_buffer_position_no_overlays, and add arg OVERLAY.
14963
14964 * dispextern.h (struct it): New elt string_overlays.
14965 New elt from_overlay, also in stack.
14966 Rearrange a few elements.
14967 (face_for_overlay_string): Decl renamed from
14968 face_at_buffer_position_no_overlays, and add argument.
14969
149702007-11-09 Richard Stallman <rms@gnu.org>
14971
14972 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
14973 to get the base face for an overlay string.
14974
14975 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
14976
14977 * xfaces.c (face_at_buffer_position_no_overlays): New function.
14978
14979 * xdisp.c (handle_stop): Move some code out of loop.
14980
149812007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14982
14983 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
14984 Fix conversion from Lisp object to ATSUFontID.
14985
149862007-11-09 Jason Rumney <jasonr@gnu.org>
14987
14988 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
14989
149902007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14991
14992 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
14993 Don't assume regions are aligned to page boundary.
14994 (print_load_command_name): Add LC_UUID if defined.
14995
149962007-11-09 Richard Stallman <rms@gnu.org>
14997
14998 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
14999
150002007-11-07 Jason Rumney <jasonr@gnu.org>
15001
15002 * s/windows95.h: Remove.
15003
150042007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15005
15006 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15007 abort with a message on unhandled store_type values.
15008
150092007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15010
15011 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15012 Remove HAVE_X11R5 and HAVE_X11R4.
15013
150142007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15015
15016 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15017
150182007-11-01 Johan Bockgård <bojohan@gnu.org>
15019
15020 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15021 Don't set s->stippled_p here, since it has already been set by
15022 x_set_glyph_string_gc from x_draw_glyph_string.
15023
150242007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15025
15026 * sunfns.c: Remove file.
15027
15028 * m/sun386.h:
15029 * m/sun2.h:
15030 * m/sparc.h: Remove Sun windows code.
15031
150322007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15033
15034 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15035 (init_keyboard): Set current_kboard's window-system to nil.
15036 (tty_read_avail_input): Typo.
15037 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15038
150392007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15040
15041 * s/usg5-4.h:
15042 * s/usg5-3.h:
15043 * s/ptx.h:
15044 * m/is386.h:
15045 * m/ibmps2-aix.h:
15046 * Makefile.in: Remove all mentions of X10.
15047
15048 * dispnew.c (syms_of_display): Don't mention version 10.
15049
150502007-10-28 Juanma Barranquero <lekktu@gmail.com>
15051
15052 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15053 ($(BLD)/abbrev.$(O)): Remove.
15054
150552007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15056
15057 Rewrite abbrev.c in Elisp.
15058 * image.c (Qcount): Don't declare as extern.
15059 (syms_of_image): Initialize and staticpro `Qcount'.
15060 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15061 * emacs.c (main): Don't call syms_of_abbrev.
15062 * Makefile.in (obj): Remove abbrev.o.
15063 (abbrev.o): Remove.
15064 * abbrev.c: Remove.
15065
150662007-10-26 Martin Rudalics <rudalics@gmx.at>
15067
15068 * window.c (window_min_size_2): Don't count header-line.
15069
150702007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15071
15072 * frame.h (struct frame): Move all bit fields after the first bit
15073 field to take advantage of the available space. Group all the
15074 chars together to reduce wasted space due to padding.
15075
150762007-10-26 Juanma Barranquero <lekktu@gmail.com>
15077
15078 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15079
15080 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15081 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15082 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15083 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15084 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15085 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15086 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15087 (last_marked, mark_object_loop_halt): Make static.
15088
15089 * frame.c (syms_of_frame) <delete-frame-functions>:
15090 Fix typo in docstring.
15091
150922007-10-25 Juanma Barranquero <lekktu@gmail.com>
15093
15094 * w32.c (init_environment): Fix tiny memory leak.
15095 (w32_get_resource): Remove unused variable `ok'.
15096
150972007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15098
15099 Make `window-system' into a keyboard-local variable (rather than
15100 frame-local as done originally by multi-tty).
15101
15102 * keyboard.h (struct kboard): Add Vwindow_system.
15103 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15104 (mark_kboards): Mark Vwindow_system.
15105
15106 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15107 (init_display): Don't set the obsolete `window-system' frame-param.
15108
15109 * xterm.c (x_term_init):
15110 * w32term.c (w32_create_terminal):
15111 * term.c (init_tty): Set Vwindow_system.
15112 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15113 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15114
15115 * xfns.c (Fx_create_frame, x_create_tip_frame):
15116 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15117 * macfns.c (Fx_create_frame):
15118 Don't set the obsolete `window-system' frame-param.
15119
15120 * frame.h (Qwindow_system): Remove.
15121 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15122 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15123
151242007-10-24 Richard Stallman <rms@gnu.org>
15125
15126 * frame.c (x_figure_window_size): For fullscreen case,
15127 set USPosition | PPosition without clobbering rest of window_prompting.
15128
15129 * keyboard.c (Fcurrent_idle_time): Doc fix.
15130
15131 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15132
151332007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15134
15135 * process.c (unwind_request_sigio): Only define if __ultrix__.
15136
15137 * callproc.c (child_setup): Remove spurious *.
15138
15139 * lisp.h (Fget_text_property): Declare.
15140 (have_menus_p): Declare it here rather than in sys-dep header files.
15141 * macterm.h (have_menus_p):
15142 * msdos.h (have_menus_p):
15143 * xterm.h (have_menus_p): Remove.
15144
15145 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15146 (Fmake_variable_frame_local): Just check the variable's const-ness
15147 rather than checking nil or t.
15148
151492007-10-22 Jason Rumney <jasonr@gnu.org>
15150
15151 * w32fns.c: Include math.h.
15152 (w32_abort): Declaration moved to nt/config.nt.
15153
15154 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15155 (abort): Redefinition moved to nt/config.nt.
15156
15157 * m/windowsnt.h: Remove.
15158
151592007-10-22 Juanma Barranquero <lekktu@gmail.com>
15160
15161 * emacs.c (Fdump_emacs): Fix typo in message.
15162 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15163 <installation-directory>: Reflow docstring.
15164
151652007-10-22 Juri Linkov <juri@jurta.org>
15166
15167 * minibuf.c: Allow minibuffer default to be a list of default values.
15168 With empty input use the first element of this list as returned default.
15169 (string_to_object)
15170 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15171 (read_minibuf): If defalt is cons, set histstring to its car.
15172 (Fread_string): If default_value is cons, set val to its car.
15173 (Fread_buffer): If def is cons, use its car.
15174 (Fcompleting_read): If defalt is cons, set val to its car.
15175
151762007-10-21 Michael Albinus <michael.albinus@gmx.de>
15177
15178 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15179
151802007-10-20 Juanma Barranquero <lekktu@gmail.com>
15181
15182 * doc.c (Fdocumentation): Check for advice in all cases.
15183
151842007-10-19 Chong Yidong <cyd@stupidchicken.com>
15185
15186 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15187
151882007-10-19 Richard Stallman <rms@gnu.org>
15189
15190 * doc.c (Fdocumentation): Check for and handle an advised function.
15191
151922007-10-19 Juanma Barranquero <lekktu@gmail.com>
15193
15194 * process.c (Fset_process_filter): Doc fix.
15195
151962007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15197
15198 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15199 which caused key-translation-map to applied repeatedly (thus breaking
15200 double-mode).
15201
152022007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15203
15204 * xselect.c (x_own_selection, x_handle_selection_clear)
15205 (x_clear_frame_selections):
15206 * w32menu.c (list_of_panes, list_of_items):
15207 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15208 * textprop.c (validate_plist, interval_has_all_properties)
15209 (interval_has_some_properties, interval_has_some_properties_list)
15210 (add_properties, text_property_list):
15211 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15212 * minibuf.c (Fassoc_string):
15213 * macselect.c (x_own_selection, x_clear_frame_selections)
15214 (Fx_disown_selection_internal):
15215 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15216 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15217
152182007-10-17 Chong Yidong <cyd@stupidchicken.com>
15219
15220 * process.c: Link to libs for calling res_init() if available.
15221 (Fmake_network_process): Call res_init() before getaddrinfo or
15222 gethostbyname, if possible.
15223
152242007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15225
15226 * lread.c (read1): Set pvectype for char_tables.
15227
15228 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15229 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15230 Add type checks.
15231 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15232
15233 * alloc.c (free_misc): Use XMISCTYPE.
15234 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15235
152362007-10-17 Glenn Morris <rgm@gnu.org>
15237
15238 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15239 (syms_of_minibuf): Add Qcompletion_ignore_case.
15240 * dired.c (Qcompletion_ignore_case): Change to external.
15241 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15242 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15243 (Fread_file_name): Use it rather than intern'ing.
15244
15245 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15246 (Fread_coding_system): Ignore case of user input.
15247
152482007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15249
15250 * xdisp.c (handle_display_prop): Ignore display specs after
15251 replacing one when string text is being replaced.
15252 (handle_single_display_spec): Pretend as if characters with display
15253 property haven't been consumed only when buffer text is being replaced.
15254
152552007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15256
15257 * xfns.c (Fx_create_frame, Fx_display_list):
15258 * window.c (window_fixed_size_p, enlarge_window)
15259 (shrink_window_lowest_first):
15260 * macterm.c (init_font_name_table):
15261 * macfns.c (Fx_create_frame, Fx_display_list):
15262 * lread.c (close_load_descs):
15263 * keyboard.c (read_char_x_menu_prompt):
15264 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15265 * coding.c (code_convert_region_unwind): Test the type of an object
15266 rather than just !NILP before extracting data from it.
15267
15268 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15269
15270 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15271 (XMISCANY): New macro.
15272 (XMISCTYPE): Use it.
15273 (struct Lisp_Misc_Any): New type.
15274 (union Lisp_Misc): Use it.
15275 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15276 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15277 (find_symbol_value, set_internal, default_value, Fset_default)
15278 (Fmake_variable_buffer_local, Fmake_local_variable)
15279 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15280 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15281 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15282 * alloc.c (allocate_buffer): Set the size and tag.
15283 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15284 Use XMISCANY.
15285 (die): Follow the GNU convention for error messages.
15286 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15287 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15288 tag any more.
15289 (set_buffer_internal_1):
15290 * frame.c (store_frame_param):
15291 * eval.c (specbind):
15292 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15293
15294 * doc.c (Fsnarf_documentation): Simplify.
15295
152962007-10-14 Juanma Barranquero <lekktu@gmail.com>
15297
15298 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15299 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15300
153012007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15302
15303 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15304
153052007-10-14 Juanma Barranquero <lekktu@gmail.com>
15306
15307 * eval.c (do_autoload): Don't save autoloads.
15308
15309 * data.c (Ffset): Save autoload of the function being set.
15310
153112007-10-07 John Paul Wallington <jpw@pobox.com>
15312
15313 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15314 parameter before setting up faces.
15315
153162007-10-13 Eli Zaretskii <eliz@gnu.org>
15317
15318 * ccl.c (Fregister_code_conversion_map):
15319 * keyboard.c (append_tool_bar_item): Reformat last change.
15320
15321 * lisp.h (eabs): Rename from `abs'. All callers changed.
15322
153232007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15324
15325 * buffer.c (add_overlay_mod_hooklist):
15326 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15327 * fontset.c (make_fontset):
15328 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15329 (append_tool_bar_item):
15330 * macmenu.c (grow_menu_items):
15331 * w32menu.c (grow_menu_items):
15332 * xmenu.c (grow_menu_items): Use larger_vector.
15333
153342007-10-13 Eli Zaretskii <eliz@gnu.org>
15335
15336 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15337 selected frame'' on MSDOS).
15338
153392007-10-12 Martin Rudalics <rudalics@gmx.at>
15340
15341 * frame.c (Qexplicit_name): New variable.
15342 (x_report_frame_params): Report it in parameter alist.
15343 (syms_of_frame): Intern and staticpro it.
15344
153452007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15346
15347 * macfns.c (x_create_tip_frame): Set terminal for frame.
15348
153492007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15350
15351 * frame.c (Qenvironment): Remove.
15352 (syms_of_frame) <Qenvironment>: Don't initialize.
15353 (Fdelete_frame): Don't treat the `environment' param specially.
15354 * frame.h (Qenvironment): Don't declare.
15355 * callproc.c (set_initial_environment): Don't set unused frame param.
15356
15357 * frame.c (Fframe_with_environment): Remove.
15358 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15359
15360 * lisp.h (Fframe_with_environment): Don't declare.
15361
153622007-10-10 Juanma Barranquero <lekktu@gmail.com>
15363
15364 * indent.c (indent_tabs_mode, last_known_column)
15365 (last_known_column_modified): Make static.
15366 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15367
153682007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15369
15370 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15371
153722007-10-09 Jason Rumney <jasonr@gnu.org>
15373
15374 * w32term.c (x_set_window_size): Disable code that attempts to tell
15375 Lisp code about a size change before it actually happens.
15376
153772007-10-09 Richard Stallman <rms@gnu.org>
15378
15379 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15380 return HANDLED_RETURN.
15381
153822007-10-08 Martin Rudalics <rudalics@gmx.at>
15383
15384 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
15385 when there's an unread command event.
15386
15387 * frame.c (focus_follows_mouse): Move here from frame.el to allow
15388 window autoselection act appropriately when leaving selected frame.
15389 (syms_of_frame): Initialize focus_follows_mouse.
15390 * frame.h (focus_follows_mouse): Extern it.
15391 * macterm.c (XTread_socket): When focus_follows_mouse is nil
15392 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
15393 * msdos.c (dos_rawgetc): Likewise.
15394 * w32term.c (w32_read_socket): Likewise.
15395 * xterm.c (handle_one_xevent): Likewise.
15396 * xdisp.c (syms_of_xdisp): In doc-string of
15397 mouse-autoselect-window mention focus-follows-mouse.
15398
153992007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15400
15401 * macterm.c (mac_load_query_font): Fix missing return value.
15402 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
15403 Add BLOCK_INPUT.
15404
154052007-10-08 Richard Stallman <rms@gnu.org>
15406
15407 * xdisp.c (get_window_cursor_type): Implement documented behavior
15408 for cursor-in-non-selected-windows = t.
15409
154102007-10-08 Jason Rumney <jasonr@gnu.org>
15411
15412 * w32.c (w32_get_resource): Always close registry keys.
15413
154142007-10-08 Jason Rumney <jasonr@gnu.org>
15415
15416 * makefile.w32-in (LIBS): Add COMCTL32.
15417
15418 * w32fns.c (globals_of_w32fns): Init common controls.
15419
154202007-10-08 Richard Stallman <rms@gnu.org>
15421
15422 * image.c (our_memory_buffer): Rename from omfib_buffer.
15423
154242007-10-08 Richard Stallman <rms@gnu.org>
15425
15426 * buffer.c (Foverlays_at): Doc fix.
15427
154282007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
15429
15430 * fns.c (Fplist_put): Preserve uneven tail data.
15431
154322007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
15433
15434 * termhooks.h (enum event_kind): Remove trailing comma.
15435
15436 * frame.h (enum): Remove trailing comma.
15437
154382007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15439
15440 * w32proc.c (delete_child): Don't terminate threads of zombies.
15441
154422007-10-08 Martin Rudalics <rudalics@gmx.at>
15443
15444 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
15445
15446 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
15447 last-repeatable-command.
15448 (init_kboard): Initialize Vlast_repeatable_command.
15449 (command_loop_1): Set it to real_this_command unless that was
15450 bound to an input event.
15451 (mark_kboards): Mark it.
15452
154532007-10-08 Richard Stallman <rms@gnu.org>
15454
15455 * eval.c (condition-case): Doc fix.
15456
154572007-10-08 Masatake YAMATO <jet@gyve.org>
15458
15459 * xfaces.c (tty_supports_face_attributes_p): Fix code
15460 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
15461 was copied and not edited.
15462
154632007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
15464
15465 Add new `input-decode-map' keymap and use it for terminal
15466 escape sequences.
15467 * keyboard.h (struct kboard): Add Vinput_decode_map.
15468 Remove Vlocal_key_translation_map.
15469 * keyboard.c (read_key_sequence): Add support for input-decode-map.
15470 (init_kboard): Init input-decode-map.
15471 Replace local-key-translation-map back with key-translation-map.
15472 (syms_of_keyboard): Declare input-decode-map.
15473 Remove local-key-translation-map. Update docstrings.
15474 (mark_kboards): Mark Vinput_decode_map.
15475 Don't mark Vlocal_key_translation_map.
15476 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
15477 Replace local-key-translation-map back with key-translation-map.
15478 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
15479 Bind in input-decode-map rather than function-key-map.
15480
15481 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
15482 This was made redundant by the previous introduction of XSETPVECTYPE.
15483
154842007-10-09 Richard Stallman <rms@gnu.org>
15485
15486 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
15487
154882007-09-29 Richard Stallman <rms@gnu.org>
15489
15490 * eval.c (internal_condition_case_2, internal_condition_case_1)
15491 (internal_condition_case): Reenable abort if x_catching_errors ()
15492 to see if that really happens and why.
15493
154942007-10-06 Andreas Schwab <schwab@suse.de>
15495
15496 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
15497
154982007-10-04 Juanma Barranquero <lekktu@gmail.com>
15499
15500 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
15501
155022007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
15503
15504 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
15505
155062007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
15507
15508 * window.h (struct window):
15509 * window.c (struct save_window_data, struct saved_window):
15510 * termhooks.h (struct terminal):
15511 * process.h (struct Lisp_Process):
15512 * frame.h (struct frame):
15513 * buffer.h (struct buffer):
15514 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
15515 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
15516 The size field of (pseudo)vectors is now unsigned.
15517 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
15518
15519 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
15520 Turn `count' into an integer.
15521
15522 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
15523 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
15524 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
15525 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
15526 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
15527
15528 * alloc.c (allocate_pseudovector): New fun.
15529 (ALLOCATE_PSEUDOVECTOR): New macro.
15530 (allocate_window, allocate_terminal, allocate_frame)
15531 (allocate_process): Use it.
15532 (mark_vectorlike): New function.
15533 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
15534 (mark_terminals): Use it.
15535 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
15536 (Fmake_byte_code): Use XSETPVECTYPE.
15537
15538 * frame.c (Fframe_parameters): Minor simplification.
15539
15540 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
15541
15542 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
15543
15544 * buffer.c (Fget_buffer_create, init_buffer_once):
15545 * lread.c (defsubr):
15546 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
15547
15548 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
15549 defined differently in the m/*.h files.
15550 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
15551 (XSETPVECTYPE): New macro.
15552 (XSETPSEUDOVECTOR): Use it.
15553
15554 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
15555 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
15556
15557 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
15558 * lread.c (defvar_per_buffer):
15559 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
15560
15561 * window.c (candidate_window_p): Only consider as visible frames that
15562 are on the same terminal.
15563
15564 * m/ibms390x.h (MARKBIT): Remove unused macro.
15565
155662007-10-01 Juanma Barranquero <lekktu@gmail.com>
15567
15568 * lread.c (Fload): Fix typo in docstring.
15569
155702007-10-01 Michaël Cadilhac <michael@cadilhac.name>
15571
15572 * floatfns.c (Fexpt): Manually check for overflows, so that a power
15573 of a non-zero value can't yield zero.
15574
155752007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
15576
15577 * term.c (term_clear_mouse_face, term_mouse_highlight)
15578 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
15579
15580 * print.c (safe_debug_print): Use XHASH.
15581
15582 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
15583 Lisp elements such as tags.
15584 (XHASH): New macro.
15585 (EQ): Use it.
15586 (SREF, SSET, STRING_COPYIN): Use SDATA.
15587 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
15588
15589 * alloc.c (mark_terminal): Remove left-over declaration.
15590 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
15591 (allocate_vectorlike): Remove type argument. Adjust callers.
15592 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
15593 Only handle the one remaining MEM_TYPE_VECTORLIKE.
15594
15595 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
15596 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
15597 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
15598 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
15599 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
15600 Use them.
15601
15602 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
15603 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
15604 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
15605
156062007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15607
15608 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
15609 loaded by default.
15610
156112007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
15612
15613 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
15614 on this tty.
15615 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
15616
15617 * term.c (mouse_face_window): Rename from Qmouse_face_window.
15618 Update all users.
15619 (handle_one_term_event): Use Gpm_DrawPointer.
15620 (Fgpm_mouse_start): Rename from Fterm_open_connection.
15621 Signal errors instead of returning nil. Always return nil.
15622 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
15623 Make it a noop if gpm-mouse was not activated.
15624 (syms_of_term): Update names.
15625
156262007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
15627
15628 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
15629 (init_sys_modes): Check that gpm_tty is the current tty.
15630
15631 * alloc.c (allocate_terminal): Set the vector size to only count the
15632 lisp fields. Initialize those to nil.
15633 (mark_object): Don't treat terminals specially.
15634 (mark_terminal): Remove.
15635 (mark_terminals): Use mark_object instead.
15636
15637 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
15638 the GC to the beginning.
15639
15640 * indent.h:
15641 * indent.c: Use EMACS_INT for ints coming from Elisp data.
15642
15643 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
15644
156452007-09-25 Jason Rumney <jasonr@gnu.org>
15646
15647 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
15648
15649 * w32console.c (create_w32cons_output): Remove.
15650
15651 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
15652
15653 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
15654 (reset_sys_modes): Use reset_terminal_modes_hook.
15655
156562007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
15657
15658 * eval.c (do_autoload): Don't output any message.
15659
156602007-09-24 Juri Linkov <juri@jurta.org>
15661
15662 * emacs.c (standard_args): Change priority of "--no-splash"
15663 from 40 to 3. Add "--no-desktop" with the same priority.
15664
156652007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
15666
15667 * alloc.c (gc_sweep): Check cons cell mark bits word by word
15668 and optimize the case where they are all 1.
15669
156702007-09-23 Johannes Weiner <hannes@saeurebad.de>
15671
15672 * lisp.h (abs): Define if not defined.
15673 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
15674 Don't define `abs', since it's defined in lisp.h.
15675
156762007-09-22 Eli Zaretskii <eliz@gnu.org>
15677
15678 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
15679 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
15680 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
15681 (init_tty): Use DEV_TTY instead of "/dev/tty".
15682 [WINDOWSNT]: No need to protect from NAME arg being null.
15683
156842007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15685
15686 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
15687 up the tty state.
15688
156892007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15690
15691 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
15692 (gpm_tty): Change its type.
15693 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
15694 (gpm_tty): Change its type and initialize it.
15695 (Fterm_open_connection): Check the frame is indeed a tty.
15696 Use the new gpm_tty.
15697 (Fterm_close_connection): Use the new gpm_tty.
15698 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
15699 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
15700
157012007-09-21 Juanma Barranquero <lekktu@gmail.com>
15702
15703 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
15704 underline_color, to draw strike-through.
15705
157062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15707
15708 * lisp.h (allocate_terminal): Declare.
15709
15710 * window.c (candidate_window_p): Consider frames that are being placed
15711 by the user as somewhere between visible and iconified.
15712 (window_loop): Prefer windows on the current frame.
15713 (Fselect_window): Move the use of select-frame to the beginning so we
15714 can just delegate all the work (it'll call us back anyway).
15715
15716 * frame.c (Qdisplay_environment_variable):
15717 * frame.h (Qdisplay_environment_variable): Delete.
15718
15719 * .gdbinit (xbacktrace): Print the arg's address rather than the value
15720 of the first arg, since that value may be a union.
15721
15722 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
15723 parameter rather than Qdisplay_environment_variable. If all else
15724 fails, look for DISPLAY in initial-environment.
15725
157262007-09-21 Glenn Morris <rgm@gnu.org>
15727
15728 * Makefile.in (emacstool): Remove target.
15729 (lisp, shortlisp): Remove termdev.elc.
15730
157312007-09-21 Markus Triska <markus.triska@gmx.at>
15732
15733 * xterm.c (x_delete_display): Compile session management conditionally.
15734
157352007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
15736
15737 * callproc.c (getenv_internal_1): New function.
15738 (getenv_internal): Use it.
15739 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
15740
15741 * terminal.c (get_terminal): Don't accept ints to represent terminals.
15742 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
15743 (Fset_terminal_parameter): Work with dead terminals as well.
15744 (Fmodify_terminal_parameters): Remove.
15745
15746 * terminal.c (get_terminal): Handle terminals.
15747 Make sure the terminal returned is live.
15748 (create_terminal): Use allocate_terminal.
15749 (mark_terminals): Move to alloc.c.
15750 (delete_terminal): Use terminal->name as liveness status.
15751 NULL out fields after freeing their contents.
15752 Don't deallocate the object.
15753 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
15754 rather than an int.
15755 (Fterminal_live_p): Accept non-integer arguments.
15756 (Fterminal_list): Return terminal objects rather than an ints.
15757
15758 * alloc.c (enum mem_type): New member for `terminal' objects.
15759 (allocate_terminal): New function.
15760 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
15761 Handle terminals.
15762 (mark_terminal): New fun.
15763 (mark_terminals): Move from terminal.c.
15764
15765 * term.c (get_tty_terminal): Don't treat output_initial specially.
15766 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
15767 (delete_tty): Use terminal->name as liveness status.
15768
15769 * termhooks.h (struct terminal): Make it into a pseudovector.
15770 Remove `deleted' replaced by checking `name's nullness.
15771
15772 * print.c (print_object): Handle terminals.
15773
15774 * lisp.h (enum pvec_type): New `terminal' pseudovector.
15775 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
15776
15777 * frame.c (make_terminal_frame):
15778 * keyboard.c (tty_read_avail_input):
15779 * w32term.c (x_delete_terminal):
15780 * xfns.c (Fx_create_frame, x_create_tip_frame):
15781 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
15782
157832007-09-20 Glenn Morris <rgm@gnu.org>
15784
15785 * process.c (Fmake_network_process): Doc fix.
15786
157872007-09-19 Jason Rumney <jasonr@gnu.org>
15788
15789 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
15790
157912007-09-19 Michaël Cadilhac <michael@cadilhac.name>
15792
15793 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
15794 Fix a C warning regarding variable constness.
15795
15796 * xterm.c (handle_one_xevent): Fix a C warning.
15797
157982007-09-18 Jason Rumney <jasonr@gnu.org>
15799
15800 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
15801
158022007-09-17 Jan Djärv <jan.h.d@swipnet.se>
15803
15804 * gtkutil.c (gdpy_def): New variable.
15805 (xg_initialize): Initialize gdpy_def.
15806 (xg_display_close): If no other display exists, set gdpy_def to a
15807 new connection.
15808
158092007-09-16 Jan Djärv <jan.h.d@swipnet.se>
15810
15811 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
15812 when we have no file name for the icon.
15813 (xg_tool_bar_expose_callback): Remove.
15814 (xg_create_tool_bar): Don't connect expose signal to
15815 xg_tool_bar_expose_callback.
15816 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
15817
158182007-09-16 Andreas Schwab <schwab@suse.de>
15819
15820 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
15821 values instead of zapping them.
15822
158232007-09-14 Glenn Morris <rgm@gnu.org>
15824
15825 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
15826 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
15827 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
15828 scope and rename to omfib_buffer for clarity.
15829 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
15830
158312007-09-14 Kenichi Handa <handa@m17n.org>
15832
15833 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
15834
158352007-09-13 Jason Rumney <jasonr@gnu.org>
15836
15837 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
15838
15839 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
15840
15841 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
15842 (mac_term_init): Call here instead, passing rif.
15843
158442007-09-13 Glenn Morris <rgm@gnu.org>
15845
15846 * s/hpux.h: No longer define `static' as nothing.
15847
158482007-09-13 Johan Bockgård <bojohan@gnu.org>
15849
15850 * callint.c (Fcall_interactively): Remove unused var `fun'.
15851
158522007-09-12 Romain Francoise <romain@orebokech.com>
15853
15854 * window.c (prefer_window_split_horizontally, display_buffer):
15855 Revert 2007-09-08 change.
15856
158572007-09-12 Glenn Morris <rgm@gnu.org>
15858
15859 * alloca.c: Remove file.
15860 * Makefile.in (alloca): Do not undef.
15861 (allocaobj, alloca.o): Remove.
15862 (otherobj): Remove allocaobj.
15863 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
15864 * regex.c (C_ALLOCA): Remove all references and code that was only
15865 used when this was defined.
15866 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
15867 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
15868 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
15869
15870 * Makefile.in (SOURCES, unlock, relock): Delete.
15871
15872 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
15873 (menu_grab_callback): All uses changed.
15874
15875 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
15876 (x_reply_selection_request): All uses changed.
15877
158782007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15879
15880 * lread.c (load_warn_old_style_backquotes): Change message to look
15881 better when it appears in the middle of byte-compiler messages.
15882
158832007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
15884
15885 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
15886
15887 * xterm.c (x_create_terminal): Add comment.
15888
15889 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
15890
158912007-09-10 Richard Stallman <rms@gnu.org>
15892
15893 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
15894
158952007-09-10 Michaël Cadilhac <michael@cadilhac.name>
15896
15897 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
15898 (DEFUN): Document `intspec', use it instead of `prompt'.
15899
15900 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
15901
15902 * data.c (Finteractive_form): If the interactive specification starts
15903 with a `(', use it as a Lisp form.
15904
15905 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
15906 name and file modes.
15907
15908 * callint.c (Fcall_interactively): Comment fixes.
15909
159102007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
15911
15912 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
15913 and compiled functions.
15914
159152007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
15916
15917 * window.c (prefer_window_split_horizontally): New variable.
15918 (display_buffer): Consider splitting window horizontally depending
15919 on prefer_window_split_horizontally.
15920
159212007-09-08 Eli Zaretskii <eliz@gnu.org>
15922
15923 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
15924
159252007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15926
15927 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
15928
15929 * frame.c (x_set_frame_parameters): Check number is positive before
15930 using XFASTINT.
15931
15932 * window.c (freeze_window_start): Don't presume selected_window holds
15933 a window object.
15934 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
15935
159362007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
15937
15938 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
15939
159402007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15941
15942 * window.c (Vsplit_window_preferred_function): New var.
15943 (Fdisplay_buffer): Use it.
15944 (syms_of_window): Export, and initialize it.
15945
159462007-09-06 Pixel <pixel@mandriva.com> (tiny change)
15947
15948 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
15949
159502007-09-06 Glenn Morris <rgm@gnu.org>
15951
15952 * gtkutil.c (menu_grab_callback) <cnt>:
15953 * xselect.c (x_reply_selection_request) <cnt>: Move static
15954 variable to file scope.
15955
159562007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
15957
15958 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
15959 consistent values of selected_frame and selected_window.
15960
159612007-09-04 Jason Rumney <jasonr@gnu.org>
15962
15963 * w32console.c (initialize_w32_display): Zero unused hooks.
15964
159652007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15966
15967 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
15968 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
15969
159702007-09-04 Jason Rumney <jasonr@gnu.org>
15971
15972 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
15973 in w32console.c. Set up input. Remove XXX comments that have been
15974 confirmed as correct.
15975
15976 * s/ms-w32.h (MULTI_KBOARD): Define.
15977
15978 * w32console.c (one_and_only_w32cons): Remove.
15979 (initialize_w32_display): Take terminal argument.
15980
15981 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
15982 initialize_w32_display.
15983 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
15984
15985 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
15986
15987 * keyboard.c (discard_mouse_events): Discard it.
15988 (make_lispy_event): Translate it to a lisp event.
15989 (lispy_wheel_names): Add wheel-left and right events.
15990 (syms_of_keyboard): Enlarge wheel_syms.
15991
15992 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
15993 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
15994
15995 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
15996
15997 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
15998 from WM_MOUSEHWHEEL.
15999 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16000
16001 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16002 terminal.
16003
16004 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16005 keyboard for the terminal.
16006
160072007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16008
16009 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16010 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16011 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16012 and resume-tty-function to resume-tty-hook.
16013 (Fsuspend_tty, Fresume_tty): Use new names.
16014
160152007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16016
16017 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16018 if it starts with "n:".
16019
160202007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16021
16022 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16023
160242007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16025
16026 * frame.h:
16027 * frame.c (Qterm_environment_variable): Remove.
16028 (syms_of_frame): Don't init and staticpro it.
16029
16030 * callproc.c (getenv_internal): Remove special case for $TERM.
16031
16032 * callproc.c (Vinitial_environment): New variable.
16033 (set_initial_environment): Initialize it.
16034 (syms_of_callproc): Declare it.
16035 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16036 TERM under which a process runs is never related to the TERM in which
16037 Emacs is running.
16038
160392007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16040
16041 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16042 * s/darwin.h: ... do it here.
16043
160442007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16045
16046 * lisp.h (set_initial_environment): Rename from set_global_environment.
16047
16048 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16049 removed by mistake on the multi-tty branch.
16050
16051 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16052 (Fmodify_frame_parameters): Return a value.
16053
16054 * image.c (png_load): Comment-out var only used in commented-out code.
16055
16056 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16057 before passing it to mark_object.
16058
16059 * xfaces.c (internal_resolve_face_name): Return a value.
16060 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16061
16062 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16063 (x_icon): Comment-out var only used in commented-out code.
16064
160652007-08-29 Romain Francoise <romain@orebokech.com>
16066
16067 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16068 QUIT hasn't been provided.
16069
160702007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16071
16072 * callproc.c (child_setup, getenv_internal): Use the
16073 display-environment-variable and term-environment-variable frame params.
16074 (set_initial_environment): Initialise Vprocess_environment.
16075
16076 * config.in: Disable multi-keyboard support on a mac.
16077
16078 * frame.c (Qterm_environment_variable)
16079 (Qdisplay_environment_variable): New variables.
16080 (syms_of_frame): Intern and staticpro them.
16081 (Fmake_terminal_frame): Disable output method test.
16082
16083 * frame.h: Declare them here.
16084
16085 * macfns.c (x_set_mouse_color): Get rif from the frame.
16086 (x_set_tool_bar_lines): Don't use updating_frame.
16087 (mac_window): Add 2 new parameters for consistency with other systems.
16088 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16089 frame parameters following what is done in X11 and w32. Don't use
16090 FRAME_MAC_DISPLAY_INFO.
16091 (Fx_open_connection, start_hourglass): Remove window-system check.
16092 (x_create_tip_frame): Get the keyboard from the terminal.
16093
16094 * macmenu.c: Reorder includes.
16095 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16096
16097 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16098 terminal parameter.
16099 (x_clear_frame): Add a frame parameter.
16100 (note_mouse_movement): Get rif from the frame.
16101 (mac_term_init): Initialize the terminal.
16102 (mac_initialize): Make static and move terminal initialization ...
16103 (mac_create_terminal): ... to this new function.
16104
16105 * macterm.h (struct mac_display_info): Add terminal.
16106 (mac_initialize): Delete declaration.
16107
16108 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16109
16110 * sysdep.c: Comment out text after #endif.
16111
16112 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16113 is defined. Better initialize ttys in windows. Use terminal
16114 specific mouse_position_hook.
16115
16116 * termhooks.h (union display_info): Add mac_display_info.
16117
16118 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16119 Set the default minibuffer frame, window_system and the rest of the
16120 frame parameters following what is done in X11.
16121
16122 * w32term.c (w32_initialize): Make static.
16123
16124 * xselect.c (x_handle_selection_clear): Only access
16125 terminal->kboard when MULTI_KBOARD is defined.
16126
16127 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16128 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16129
161302007-08-29 Jason Rumney <jasonr@gnu.org>
16131
16132 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16133 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16134
16135 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16136 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16137
16138 * keyboard.c (restore_kboard_configuration): Only define when
16139 MULTI_KBOARD defined.
16140
16141 * makefile.w32-in: Update dependancies from Makefile.in.
16142 (OBJ1): Add terminal.$(O)
16143
16144 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16145 Don't define function body.
16146 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16147
16148 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16149
16150 * w32.c (request_sigio, unrequest_sigio): Remove.
16151
16152 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16153 (w32con_clear_frame, w32con_clear_end_of_line)
16154 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16155 (w32con_delete_glyphs, w32con_set_terminal_window)
16156 (scroll_line, w32_sys_ring_bell): Add frame arg.
16157 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16158 Add terminal arg.
16159 (PICK_FRAME): Remove.
16160 (w32con_write_glyphs): Use frame specific terminal coding.
16161 (one_and_only_w32cons): New global variable.
16162 (initialize_w32_display): Use it for storing hooks.
16163 (create_w32cons_output): New function.
16164
16165 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16166 arg a frame.
16167
16168 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16169 Set window_system.
16170 (x_set_tool_bar_lines): Don't use updating_frame.
16171 (Fx_create_frame): Set terminal and ref count.
16172 (Fx_open_connection): Remove window-system check.
16173
16174 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16175
16176 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16177 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16178 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16179 Add frame arg.
16180 (x_delete_terminal, w32_create_terminal): New functions.
16181 (w32_term_init): Create a terminal.
16182 (w32_initialize): Move terminal specific initialization to
16183 w32_create_terminal.
16184
16185 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16186 (w32_clear_rect, w32_clear_area): Use background from frame.
16187 (w32_display_info): Add terminal.
16188 (w32_sys_ring_bell, x_delete_display): Declare here.
16189
16190 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16191
16192 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16193
161942007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16195
16196 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16197 Fix get_named_tty calls for the controlling tty.
16198
161992007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16200
16201 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16202
162032007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16204
16205 * term.c (tty_insert_glyphs): Add missing first parameter.
16206
162072007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16208
16209 * buffer.c (Fbuffer_list, Fbury_buffer):
16210 Take frame->buried_buffer_list into account.
16211
16212 * cm.c (current_tty): New variable, for cmputc().
16213 (cmputc): Use it.
16214 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16215 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16216 (cmgoto): Add tty parameter. Pass it on to calccost().
16217 Use emacs_tputs() instead of tputs().
16218
16219 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16220 tputs().
16221 (current_tty): New variable, for cmputc().
16222 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16223
16224 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16225 (internal_condition_case, internal_condition_case_1)
16226 (internal_condition_case_2): Don't abort when x_catching_errors.
16227
16228 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16229 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16230 prevent crashes caused by bogus longjmps in read_char.
16231
16232 * keymap.h (Fset_keymap_parent): Add EXFUN.
16233
16234 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16235 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16236 Remove redundant definition.
16237
16238 * macfns.c (x_set_mouse_color, x_make_gc):
16239 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16240
16241 * w32term.c (x_free_frame_resources):
16242 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16243 (w32_initialize): Use the accessor macros for terminal characteristics.
16244
16245 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16246 Use the accessor macros for terminal characteristics.
16247 * msdos.c (internal_terminal_init): Use the accessor macros for
16248 terminal characteristics.
16249 (ScreenVisualBell, internal_terminal_init):
16250 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16251
16252 * termopts.h (no_redraw_on_reenter): Declare.
16253
16254 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16255 (mark_terminals, mark_ttys): Declare.
16256 (Fgarbage_collect): Call them.
16257 (mark_object): Mark buried_buffer_list.
16258
16259 * prefix-args.c: Include stdlib.h for exit.
16260
16261 * syssignal.h: Add comment.
16262
16263 * indent.c: Include stdio.h.
16264
16265 * window.h (Vinitial_window_system): Declare.
16266 (Vwindow_system): Delete declaration.
16267
16268 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16269
16270 * image.c (lookup_image): Don't initialize `c' until the xasserts
16271 have been run.
16272
16273 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16274 FRAME_FOREGROUND_PIXEL.
16275
16276 * print.c (print_preprocess): Don't lose print_depth levels while
16277 iterating.
16278
16279 * widget.c (update_from_various_frame_slots):
16280 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16281
16282 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16283 frames.
16284 (window_internal_height): Remove bogus make_number call.
16285 (init_window_once): Call make_terminal_frame with two zero parameters.
16286
16287 * fileio.c (Fread_file_name): Update comment.
16288
16289 * callint.c (Fcall_interactively):
16290 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16291 Make sure it is correctly unwound.
16292
16293 * xsmfns.c (x_session_close): New function.
16294
16295 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16296 Delete declarations.
16297
16298 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16299 (x_output): Remove background_pixel and foreground_pixel fields.
16300 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16301 (x_delete_device, x_session_close): Declare.
16302
16303 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16304 (read_filtered_event): Call `read_char' with a local
16305 `wrong_kboard_jmpbuf'.
16306
16307 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16308 Don't call single_kboard_state. Use FRAME_RIF.
16309
16310 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16311 systems.
16312
16313 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16314 (Fframe_with_environment, Fset_input_meta_mode)
16315 (Fset_quit_char): EXFUN.
16316 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16317 (init_sys_modes, reset_sys_modes): Update prototypes.
16318 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16319
16320 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16321 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16322 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16323 Delete declarations.
16324 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16325 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16326 New declarations.
16327
16328 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16329 already does that during init_display(). Call syms_of_keymap
16330 before syms_of_keyboard. Call `syms_of_terminal'.
16331 Call set_initial_environment, not set_process_environment.
16332 (shut_down_emacs): Call reset_all_sys_modes() instead of
16333 reset_sys_modes().
16334
16335 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16336 (internal_resolve_face_name, resolve_face_name_error): New functions.
16337 (resolve_face_name): Protect against loops and errors thrown by Fget.
16338 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16339 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16340
16341 * scroll.c: Replace CURTTY() with local variables throughout the
16342 file (where applicable).
16343 (calculate_scrolling, calculate_direct_scrolling)
16344 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16345 characteristics.
16346
16347 * keymap.c (Vfunction_key_map): Remove.
16348 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16349 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16350 (Vkey_translation_map): Remove.
16351 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16352 (Fdescribe_buffer_bindings)
16353 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16354 Update for terminal-local key-translation-map.
16355
16356 * Makefile.in (callproc.o): Update dependencies.
16357 (lisp, shortlisp): Add termdev.elc.
16358 (obj): Add terminal.o.
16359 (terminal.o): Add dependencies.
16360 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16361 (data.o, fns.o): Add termhooks.h dependency.
16362 (SOME_MACHINE_LISP): Add dnd.elc.
16363 (minibuf.o): Fix typo.
16364 Update dependencies.
16365
16366 * data.c (do_symval_forwarding, store_symval_forwarding)
16367 (find_symbol_value): Use the selected frame's keyboard, not
16368 current_kboard.
16369
16370 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16371 Vwindow_system.
16372
16373 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16374 Fmenu_bar_open.
16375 (syms_of_xmenu): Update defsubr.
16376 (mouse_position_for_popup, Fx_popup_menu)
16377 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16378 (set_frame_menubar, free_frame_menubar)
b97439ce 16379 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16380 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16381 an X frame.
16382
16383 * xselect.c (x_own_selection): Abort if not an X frame.
16384 (some_frame_on_display): Check if it is an X frame.
16385 (x_handle_selection_clear): Deal with MULTI_KBOARD.
16386
16387 * coding.c: Include frame.h and termhooks.h.
16388 (terminal_coding, keyboard_coding): Delete.
16389 (Fset_terminal_coding_system_internal)
16390 (Fset_keyboard_coding_system_internal)
16391 (Fkeyboard_coding_system)
16392 (Fterminal_coding_system): Add a terminal parameter.
16393 Get terminal_coding from the terminal.
16394 (init_coding_once): Don't call setup_coding_system here.
16395
16396 * dispextern.h (set_scroll_region, turn_off_insert)
16397 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
16398 (tty_clear_end_of_line, tty_setup_colors)
16399 (delete_tty, updating_frame)
16400 (produce_special_glyphs, produce_glyphs, write_glyphs)
16401 (insert_glyphs): Remove.
16402 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
16403 (tty_turn_off_highlight, get_tty_size): Add declaration.
16404 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
16405
16406 * frame.h (enum output_method): Add output_initial.
16407 (struct x_output): Delete.
16408 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16409 Access foreground_pixel and background_pixel directly from the frame.
16410 (tty_display): Delete.
16411 (struct frame): Add buried_buffer_list, foreground_pixel,
16412 background_pixel and terminal. Delete kboard.
16413 (union output_data): Add tty.
16414 (FRAME_KBOARD): Get the kboard from the terminal.
16415 (FRAME_INITIAL_P): New macro.
16416 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
16417 (Qterm_environment_variable, Qdisplay_environment_variable)
16418 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
16419 New declarations.
16420
16421 * termchar.h (tty_output, tty_display_info): New structures.
16422 (tty_list): Declare.
16423 (FRAME_TTY, CURTTY): New macros.
16424 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
16425 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
16426 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
16427 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
16428
16429 * callproc.c: Include frame.h and termhooks.h, for terminal
16430 parameters.
16431 (add_env): New function.
16432 (child_setup): Use it.
16433 (child_setup, getenv_internal): Handle the new Vprocess_environment.
16434 (getenv_internal): Fix get_terminal_param call.
16435 (Fgetenv_internal, egetenv): Update doc.
16436 (syms_of_callproc): Initialize Vprocess_environment to nil.
16437 Register and initialize them. Remove obsolete defvars. Update doc
16438 strings.
16439 (child_setup): Handle Vlocal_environment_variables.
16440 (getenv_internal): Add terminal parameter.
16441 Handle Vlocal_environment_variables.
16442 (Fgetenv_internal): Add terminal parameter.
16443 (child_setup, getenv_internal, Fgetenv_internal): Store the local
16444 environment in a frame (not terminal) parameter. Update doc strings.
16445 (set_initial_environment): Rename from set_global_environment.
16446 Store Emacs environment in initial frame parameter.
16447
16448 * xdisp.c (redisplay_internal): Update references to
16449 `previous_terminal_frame'.
16450 (display_mode_line, Fformat_mode_line): Replace calls to
16451 `push_frame_kboard' with `push_kboard'.
16452 (get_glyph_string_clip_rects): Add extra parentheses and
16453 braces to prevent compiler warnings.
16454 (calc_pixel_width_or_height): Add xassert to check that the
16455 frame is alive. Don't call `lookup_image' on a termcap frame.
16456 (message2_nolog, message3_nolog, redisplay_internal)
16457 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
16458 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
16459 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
16460 (Fx_display_pixel_width, Fx_display_pixel_height)
16461 (Fx_display_planes, Fx_display_color_cells)
16462 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
16463 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
16464 (Fx_display_backing_store, Fx_display_visual_class)
16465 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
16466 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
16467
16468 * xfns.c (x_set_foreground_color x_set_background_color)
16469 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
16470 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16471 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
16472 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
16473 terminal that is being deleted.
16474 (Fx_create_frame): Use `store_frame_param' to set `window-system'
16475 frame parameter, and make sure it overrides any user-supplied setting.
16476 (Fx_close_connection, Fx_synchronize): Unify argument names with
16477 the rest of the DEFUNs.
16478
16479 * dispnew.c (Fsend_string_to_terminal): Update call to
16480 `get_tty_terminal'.
16481 (Fredraw_frame, Fsend_string_to_terminal)
16482 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
16483 FRAME_TERMCAP_P and FRAME_TTY.
16484 (window_change_signal): Don't believe width/height values that are
16485 impossibly small.
16486 (Vinitial_window_system): Rename from Vwindow_system.
16487 (termscript, Wcm, rif): Delete.
16488
16489 * termhooks.h (struct terminal): New struct containing the
16490 previously global text display hooks and new members NAME,
16491 DELETED and PARAM_ALIST.
16492 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
16493 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
16494 (FRAME_RIF): New macros.
16495 (get_terminal_param, get_device): New declarations.
16496 (termscript): Delete declaration.
16497
16498 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
16499 (XTflash, x_free_frame_resources, x_scroll_bar_create)
16500 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
16501 FRAME_FOREGROUND_PIXEL.
16502 (x_fully_uncatch_errors): Disable definition.
16503 (x_scroll_bar_expose): Fix reference to foreground pixel.
16504 (XTread_socket): Disable loop on all X displays.
16505 (x_delete_terminal): Don't set terminal->deleted and let
16506 delete_terminal delete the frames on the terminal.
16507 (x_delete_display): Doc update to reflect changes in
16508 delete_terminal.
16509 (x_display_info) <terminal>: Move member earlier in the struct.
16510 (deleting_tty): Remove old variable.
16511 (Fsuspend_tty): Call clear_tty_hooks.
16512 (Fresume_tty, init_tty): Call set_tty_hooks.
16513 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
16514 errors on X frames.
16515 (x_catch_errors_unwind): Abort if x_error_message is NULL.
16516 (handle_one_xevent): Initialize `f' to NULL.
16517 (x_delete_terminal, x_create_terminal): New functions.
16518 (XTset_terminal_modes, XTreset_terminal_modes)
16519 (XTread_socket, x_connection_closed, x_term_init)
16520 (x_term_init, x_delete_display): Add terminal parameter.
16521 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
16522 X connections.
16523
16524 * frame.c: Include termchar.h.
16525 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
16526 (Qwindow_system, Qenvironment, Qterm_environment_variable)
16527 (Qdisplay_environment_variable): New vars.
16528 (Fframep): Deal with output_initial.
16529 (Fframe-live-p): Doc fix.
16530 (Fwindow-system): New function.
16531 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
16532 (make_terminal_frame): Don't create frames on a terminal that is
16533 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16534 (store_frame_param): Check for found_for_frame before calling XFRAME.
16535 (Fmake_terminal_frame): Handle NULL tty names correctly.
16536 (syms_of_frame): Enhance doc string of `default-frame-alist'.
16537 (Fdelete_frame): Remove unused variable `count'. Don't allow other
16538 frames to refer to a deleted frame in their 'environment parameter.
16539 (Fframe_with_environment): New function.
16540 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
16541 (get_future_frame_param): New function.
16542 (Fmake_terminal_frame): Use it.
16543 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
16544
16545 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
16546 * sysdep.c (reset_sys_modes): Update for renames.
16547
16548 * keyboard.c (tty_read_avail_input): New function.
16549 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
16550 (syms_of_keyboard): Defsubr them.
16551 (Fset_input_meta_mode, Fset_quit_char): New functions.
16552 (Fset_input_mode): Split to above functions.
16553 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
16554 parameter. Use it in call to `read_char'.
16555 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
16556 Set wrong_kboard_jmpbuf correctly in recursive calls.
16557 Use current_kboard to access Vkeyboard_translate_table.
16558 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
16559 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
16560 Update longjmp invocations. Remember the original current_kboard,
16561 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
16562 changes it. Comment out unnecessary calls to
16563 `record_single_kboard_state' and `any_kboard_state'.
16564 Update recursive calls.
16565 (wrong_kboard_jmpbuf): Remove global variable.
16566 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
16567 Handle deleted interrupted_kboards correctly; that is a legal
16568 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
16569 and read_char calls. Abort if interrupted_kboard died in read_char.
16570 (any_kboard_state, single_kboard_state)
16571 (push_frame_kboard): Remove function.
16572 (pop_kboard): Switch out of single_kboard mode if the kboard has
16573 been deleted. Remove unused variable. Help debugging by not
16574 changing current_kboard unnecessarily. Set current_kboard to the
16575 kboard of the selected frame when the stored kboard object has
16576 been deleted before pop_kboard.
16577 (temporarily_switch_to_single_kboard): Change first parameter to a
16578 frame pointer. Throw an error when caller wants to change kboards
16579 while in single_kboard mode. Don't push_kboard if we weren't in
16580 single kboard state. Don't pop_kboard if we popped into any
16581 kboard state.
16582 (restore_kboard_configuration): Abort if pop_kboard changed the
16583 kboard in single_kboard mode. Call pop_kboard only after setting
16584 up single_kboard mode.
16585 (Frecursive_edit): Switch to single_kboard mode only in nested
16586 command loops.
16587 (cmd_error, command_loop, command_loop_1, timer_check):
16588 Comment out unnecessary call to `any_kboard_state' and
16589 `record_single_kboard_state'.
16590 (delete_kboard): Exit single_kboard mode if we have just deleted
16591 that kboard. Use FRAME_KBOARD.
16592 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
16593 `fatal_error_signal'.
16594 (record_single_kboard_state): Don't push_kboard if we weren't in
16595 single kboard state. Don't pop_kboard if we popped into any
16596 kboard state.
16597 (push_frame_kboard): Rename to push_kboard.
16598 (kbd_buffer_get_event): Use FRAME_TERMINAL.
16599 (read_avail_input): Read input from all terminals.
16600 (mark_kboards): Also mark Vkeyboard_translate_table.
16601 (kbd_buffer_store_event_hold): Simplify condition.
16602 (read_key_sequence): Reinitialize fkey and keytran at each replay.
16603 (Vkeyboard_translate_table): Move to struct kboard.
16604 (init_kboard): Initialize Vkeyboard_translate_table.
16605 (syms_of_keyboard): Use DEFVAR_KBOARD to define
16606 Vkeyboard_translate_table. Update doc strings. Update docs of
16607 local-function-key-map and function-key-map.
16608
16609 * terminal.c: New file.
16610
16611 * term.c: Include errno.h.
16612 (Vring_bell_function, device_list, initial_device)
16613 (next_device_id, ring_bell, update_begin, update_end)
16614 (set_terminal_window, cursor_to, raw_cursor_to)
16615 (clear_to_end, clear_frame, clear_end_of_line)
16616 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
16617 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
16618 (syms_of_term): Move their initialization to terminal.c.
16619 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
16620 (Ftty_display_color_cells)
16621 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
16622 (clear_tty_hooks, set_tty_hooks)
16623 (init_tty, maybe_fatal): New functions.
16624 (Ftty_type): Return nil if terminal is not on a tty instead of
16625 throwing an error. Doc update.
16626 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
16627 Doc update. Initialize new subrs and variables.
16628 (delete_tty): Use terminal->deleted.
16629 (tty_set_terminal_modes): Rename from set_terminal_modes.
16630 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
16631 (set_scroll_region): Rename to `tty_set_scroll_region'.
16632 (turn_on_insert): Rename to `tty_turn_on_insert'.
16633 (turn_off_insert): Rename to `tty_turn_off_insert'.
16634 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
16635 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
16636 (toggle_highligh): Rename to `tty_toggle_highlight'.
16637 (background_highlight): Rename to `tty_background_highlight'.
16638 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
16639 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
16640 (tty_set_scroll_region, tty_background_highlight)
16641 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
16642 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
16643 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
16644 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
16645 Add static modifier.
16646 (tty_reset_terminal_modes, tty_set_terminal_window)
16647 (tty_set_scroll_region, tty_background_highlight)
16648 (tty_highlight_if_desired, tty_cursor_to)
16649 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
16650 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
16651 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
16652 renames.
16653
166542007-08-28 Jan Djärv <jan.h.d@swipnet.se>
16655
16656 * keyboard.c: Qrtl is new.
16657 (parse_tool_bar_item): Handle :rtl keyword.
16658 (syms_of_keyboard): Intern :rtl keyword.
16659
16660 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
16661
16662 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
16663 so no Lisp code is executed.
16664 (file_for_image, find_rtl_image): New functions.
16665 (xg_get_image_for_pixmap): Use file_for_image.
16666 (update_frame_tool_bar): If direction is RTL, use RTL image if
16667 defined. Use Gtk stock images if defined.
16668
166692007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16670
16671 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
16672 for nonexistent or zero-width glyph in composition glyph.
16673
166742007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
16675
16676 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
16677
16678 * xdisp.c (Finvisible_p): New function.
16679 (syms_of_xdisp): defsubr it.
16680
166812007-08-24 Juanma Barranquero <lekktu@gmail.com>
16682
16683 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
16684 Doc fixes.
16685
166862007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16687
16688 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
16689
166902007-08-24 Martin Rudalics <rudalics@gmx.at>
16691
16692 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
16693 whether decoding has modified buffer contents.
16694
166952007-08-24 Jason Rumney <jasonr@gnu.org>
16696
16697 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
16698 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
16699 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
16700 (init_svg_functions) [HAVE_NTGUI]: New function.
16701 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
16702 (svg_load_image): Use them.
16703 (svg_load_image) [HAVE_NTGUI]: Implement background.
16704
167052007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16706
16707 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
16708 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
16709 (LIBX): Remove @RSVG_LIBS@.
16710 (LIBES): Add $(RSVG_LIBS).
16711
16712 * image.c (svg_load_image): Blend with specified background if exists.
16713 Use IMAGE_BACKGROUND. Add Mac OS Support.
16714
16715 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
16716 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
16717 Remove macros.
16718 [MAC_OSX] (socket_callback): Do nothing.
16719 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
16720 ReceiveNextEvent.
16721 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
16722 socket_callback.
16723 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
16724
167252007-08-22 Glenn Morris <rgm@gnu.org>
16726
16727 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
16728
167292007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
16730
16731 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
16732
16733 * image.c: Add support for SVG images. Some additional comments
16734 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
16735 (svg_image_p): New function to test for SVG image.
16736 (svg_load): New function to load SVG image.
16737 (svg_load_image): New function, helper for svg_load.
16738 (Qsvg): New Lisp_object.
16739 (svg_keyword_index): New enum.
16740 (svg_format): New static `image_keyword' struct.
16741 (svg_type): New static `image_type' struct.
16742 (librsvg/rsvg.h): Include it.
16743
167442007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
16745
16746 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
16747
167482007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
16749
16750 * lread.c (Qold_style_backquotes): New var.
16751 (syms_of_lread): Init and staticpro it.
16752 (load_warn_old_style_backquotes): New fun.
16753 (Fload): Use them to warn about old style backquotes.
16754 (end_of_file_error, Fload): Remove unused vars.
16755
16756 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
16757
16758 * lread.c (Vold_style_backquotes): New var.
16759 (syms_of_lread): Init and export it to Elisp.
16760 (read1): Set it when we find an old-style (back)quote.
16761
167622007-08-22 Jason Rumney <jasonr@gnu.org>
16763
16764 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
16765
167662007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
16767
16768 * puresize.h (BASE_PURESIZE): Increase to 1140000.
16769
167702007-08-19 Richard Stallman <rms@gnu.org>
16771
16772 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
16773
167742007-08-19 Andreas Schwab <schwab@suse.de>
16775
16776 * alloc.c (pure): Round PURESIZE up.
16777
167782007-08-17 Jan Djärv <jan.h.d@swipnet.se>
16779
16780 * xterm.c (handle_one_xevent): Remove check that mouse click is in
16781 active frame.
16782
167832007-08-16 Richard Stallman <rms@gnu.org>
16784
16785 * eval.c (Fcommandp): Add parens to clarify.
16786
16787 * minibuf.c (Fall_completions): Use enum for type of table.
16788
16789 * emacs.c (USAGE2): Improve text.
16790
167912007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
16792
16793 * term.c (tty_default_color_capabilities): Declare static
16794 variables in file scope, to avoid HPUX compiler problem.
16795
167962007-08-13 Jan Djärv <jan.h.d@swipnet.se>
16797
16798 * gtkutil.c (update_frame_tool_bar): Use -1 as index
16799 to gtk_toolbar_insert.
16800
168012007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
16802
16803 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
16804
16805 * insdel.c (reset_var_on_error): New fun.
16806 (signal_before_change, signal_after_change):
16807 Use it to reset (after|before)-change-functions to nil in case of error.
16808 Bind inhibit-modification-hooks to t.
16809 Don't bind (after|before)-change-functions to nil while they run.
16810
168112007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16812
16813 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
16814 filling pixmap with stippled background.
16815
168162007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16817
16818 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
16819 Don't use invisible frame as parent window for repositioning.
16820
168212007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
16822
16823 * print.c (new_backquote_output): Rename from old_backquote_output.
16824 (print): Inverse its logic (according to its name) so as to match the
16825 behavior of new_backquote_flag in lread.c.
16826
168272007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16828
16829 * gmalloc.c (posix_memalign): New function.
16830
16831 * macterm.c (frame_highlight, frame_unhighlight): Don't call
16832 ActivateControl/DeactivateControl here.
16833 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
16834 frame-notice-user-settings is non-nil.
16835 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
16836 for kEventParamFMFontStyle.
16837 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
16838 mac_pass_command_to_system and mac_pass_control_to_system here.
16839 (XTread_socket): Call ActivateControl/DeactivateControl here.
16840 (XTread_socket) [TARGET_API_MAC_CARBON]:
16841 Check mac_pass_command_to_system and mac_pass_control_to_system here.
16842 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
16843 for window repositioning.
16844
168452007-08-08 Glenn Morris <rgm@gnu.org>
16846
16847 * Replace `iff' in doc-strings and comments.
16848
168492007-08-07 Chong Yidong <cyd@stupidchicken.com>
16850
16851 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
16852
168532007-08-07 Martin Rudalics <rudalics@gmx.at>
16854
16855 * fileio.c (Finsert_file_contents): Run format-decode and
16856 after_insert_file_functions on entire buffer when REPLACE is
16857 non-nil and inhibit modification_hooks and point_motion_hooks.
16858 For consistency, run after_insert_file_functions iff something
16859 got inserted. Move signal_after_change and update_compositions
16860 after code running after_insert_file_functions. Make sure that
16861 undo_list doesn't record intermediate steps of the decoding process.
16862
168632007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16864
16865 * emacs.c (main)
16866 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
16867 Call malloc_enable_thread on interactive startup.
16868
16869 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
16870 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
16871 [USE_PTHREAD]: Conditionalize with it.
16872 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
16873 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
16874 New functions.
16875
168762007-08-06 Chong Yidong <cyd@stupidchicken.com>
16877
16878 * xdisp.c (redisplay_window): When restoring original buffer
16879 position, make sure it is still valid.
16880
16881 * image.c (png_load): Ignore png-supplied background color.
16882
168832007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16884
16885 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
16886 Use kCFAbsoluteTimeIntervalSince1970.
16887
16888 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
16889 New variable.
16890 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
16891 event loop should be quit.
16892 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
16893 Quit dialog event loop if quit_dialog_event_loop is set.
16894
16895 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
16896 (Selection): New typedef. Use instead of ScrapRef.
16897 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
16898 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
16899 (mac_clear_selection): Rename from clear_scrap.
16900 (get_flavor_type_from_symbol): New argument SEL and subsume function of
16901 scrap_has_target_type. All uses changed.
16902 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16903 (mac_selection_has_target_p): New functions.
16904 (mac_put_selection_value): Rename from put_scrap_string.
16905 (mac_get_selection_value): Rename from get_scrap_string.
16906 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
16907 (put_scrap_private_timestamp, scrap_has_target_type)
16908 (get_scrap_private_timestamp): Remove functions.
16909 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
16910 (x_own_selection, x_get_local_selection):
16911 Use mac_valid_selection_value_p.
16912 (x_own_selection): Don't use put_scrap_private_timestamp.
16913 Record OWNERSHIP-INFO into Vselection_alist instead.
16914 (x_get_local_selection): Don't check type if request is local.
16915 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
16916 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
16917
169182007-08-04 Jan Djärv <jan.h.d@swipnet.se>
16919
16920 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
16921 add comment explaining why.
16922
169232007-08-03 Richard Stallman <rms@gnu.org>
16924
16925 * fileio.c (Fvisited_file_modtime): Use make_time.
16926
169272007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
16928
16929 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
16930 build.
16931
169322007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
16933
16934 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
16935
169362007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
16937
16938 * puresize.h (BASE_PURESIZE): Increase to 1130000.
16939
169402007-07-30 Richard Stallman <rms@gnu.org>
16941
16942 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
16943
169442007-07-29 Jan Djärv <jan.h.d@swipnet.se>
16945
16946 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
16947
169482007-07-28 Nick Roberts <nickrob@snap.net.nz>
16949
16950 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
16951 remote default-directory.
16952
16953 * buffer.c (mode-line-format): Update doc string.
16954
169552007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16956
16957 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
16958 scroll bar gap.
16959 (x_scroll_bar_create): Set bar->fringe_extended_p.
16960 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
16961 on frame edge. Check fringe background extension. Don't clear
16962 extended fringe background area.
16963
16964 * w32term.h (struct scroll_bar): New member fringe_extended_p.
16965 (w32_fill_area): Enclose multiple statements with do ... while (0).
16966
16967 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
16968 Extend fringe background to scroll bar gap.
16969 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
16970 Set bar->fringe_extended_p.
16971 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16972 Put leftmost/rightmost scroll bars on frame edge. Check fringe
16973 background extension. Don't clear extended fringe background area.
16974
16975 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16976 New member fringe_extended_p.
16977
169782007-07-25 Glenn Morris <rgm@gnu.org>
16979
16980 * Relicense all FSF files to GPLv3 or later.
16981
16982 * COPYING: Switch to GPLv3.
16983
169842007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
16985
16986 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
16987
16988 * data.c (Finteractive_form): Check for the presence of an
16989 `interactive-form' symbol property more thoroughly.
16990
16991 * data.c (Finteractive_form): Use an `interactive-form' property if
16992 present, analogous to the function-documentation property.
16993
169942007-07-24 Jason Rumney <jasonr@gnu.org>
16995
16996 * w32fns.c (x_real_positions): Get real position from OS instead of
16997 calculating it.
16998
169992007-07-23 Jason Rumney <jasonr@gnu.org>
17000
17001 * filelock.c (current_lock_owner): Allow for @ sign in username.
17002
170032007-07-22 Nick Roberts <nickrob@snap.net.nz>
17004
17005 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17006 remote default-directory.
17007
17008 * buffer.c (mode-line-format): Describe above case in doc string.
17009
170102007-07-20 Eli Zaretskii <eliz@gnu.org>
17011
17012 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17013 Define if not defined.
17014
170152007-07-18 Jason Rumney <jasonr@gnu.org>
17016
17017 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17018
170192007-07-18 Richard Stallman <rms@gnu.org>
17020
17021 * data.c (Fsetq_default): Doc fix.
17022
17023 * eval.c (Fsetq): Doc fix.
17024
170252007-07-18 Juanma Barranquero <lekktu@gmail.com>
17026
17027 * coding.c (Ffind_operation_coding_system):
17028 * eval.c (For, Fand): Doc fixes.
17029 Reported by Johan Bockgård.
17030
170312007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17032
17033 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17034
17035 * xterm.h: Declare x_ewmh_activate_frame.
17036
17037 * xterm.c (x_ewmh_activate_frame): New function.
17038 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17039
170402007-07-17 Martin Rudalics <rudalics@gmx.at>
17041
17042 * window.c (Fdisplay_buffer): If largest or LRU window is the
17043 only window, split it even if it is not eligible for splitting.
17044 This restores the original behavior broken by the 2007-07-15
17045 change.
17046
170472007-07-17 Glenn Morris <rgm@gnu.org>
17048
17049 * abbrev.c (abbrev_check_chars): New function.
17050 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17051 Call abbrev_check_chars to check abbrev characters are word
17052 constituents. Doc fix.
17053
170542007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17055
17056 * process.c (Fstart_process, Fmake_network_process)
17057 (read_process_output): Fix up last changes.
17058
170592007-07-16 Eli Zaretskii <eliz@gnu.org>
17060
17061 * makefile.w32-in (clean): Don't delete *~.
17062
170632007-07-16 Andreas Schwab <schwab@suse.de>
17064
17065 * window.c (Fdisplay_buffer): Use NILP.
17066 (Fset_window_scroll_bars): Likewise.
17067
170682007-07-15 Martin Rudalics <rudalics@gmx.at>
17069
17070 * window.c (window_min_size_2): New function.
17071 (window_min_size_1, size_window, Fdisplay_buffer)
17072 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17073 windows without mode- or header-lines when window-min-height is
17074 too small.
17075 (size_window): Reset nodelete_p after testing it, following an
17076 earlier note by Kim F. Storm.
17077 (display_buffer): Do not set split_height_threshold to twice the
17078 value of window_min_height to avoid changing the value of a
17079 customizable variable. Rather explicitly check whether the
17080 height of the window that shall be splitted is at least as large
17081 as split_height_threshold.
17082 (Fwindow_full_width_p): New defun.
17083 (syms_of_window): Defsubr it.
17084
17085 * window.h: Add EXFUN for Fwindow_full_width_p.
17086
170872007-07-14 Jason Rumney <jasonr@gnu.org>
17088
17089 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17090
170912007-07-14 Richard Stallman <rms@gnu.org>
17092
17093 * eval.c (maybe_call_debugger): New function.
17094 (find_handler_clause): Use maybe_call_debugger.
17095 Call it when the handler says `debug'.
17096 Eliminate DEBUGGER_VALUE_PTR.
17097 (Fsignal): Eliminate debugger_value.
17098 (Qdebug): New variable.
17099 (syms_of_eval): Initialize it.
17100
171012007-07-14 Juanma Barranquero <lekktu@gmail.com>
17102
17103 * eval.c (Fprogn):
17104 * keyboard.c (Ftrack_mouse):
17105 * print.c (Fwith_output_to_temp_buffer):
17106 * window.c (Fsave_window_excursion): Doc fix.
17107
171082007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17109
17110 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17111
171122007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17113
17114 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17115 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17116 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17117 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17118 Remove unused encoding_carryover.
17119 * process.c: Adjust all functions accordingly.
17120
171212007-07-12 Richard Stallman <rms@gnu.org>
17122
17123 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17124
171252007-07-11 Jason Rumney <jasonr@gnu.org>
17126
17127 * makefile.w32-in (LIBS): Include OLE32.
17128
17129 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17130 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17131
171322007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17133
17134 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17135 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17136 from a Lisp_Object into a bare pointer.
17137 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17138 Adjust the code correspondingly.
17139
17140 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17141
17142 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17143 (term_show_mouse_face): Remove unused var `j'.
17144 (handle_one_term_event): Remove unused vars `i' and `j'.
17145 Don't cast return value of ttyname since it's not necessary.
17146
171472007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17148
17149 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17150 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17151
17152 * fns.c (map_char_table): Use an array of int for `indices' rather than
17153 an array of Lisp_Objects (which are only ever integers anyway).
17154 (Fmap_char_table): Update caller.
17155 * lisp.h: Update prototype.
17156 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17157 * fontset.c (Ffontset_info):
17158 * casetab.c (set_case_table): Update callers.
17159
17160 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17161
17162 * keymap.c (struct accessible_keymaps_data)
17163 (struct where_is_internal_data): New structures.
17164 (accessible_keymaps_1, where_is_internal_1): Use them to change
17165 interface to adhere to the one used by map_keymap.
17166 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17167 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17168
17169 * keymap.h (map_keymap_function_t): More informative prototype.
17170
171712007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17172
17173 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17174 (looking_at_1): Don't change search_regs and last_thing_searched
17175 if `inhibit-changing-match-data' is non-nil.
17176 (string_match_1, search_buffer, set_search_regs): Likewise.
17177 (syms_of_search): Add Lisp level definition for
17178 `inhibit-changing-match-data' and set it to nil.
17179 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17180 start and end of the match, instead of using values in search_regs.
17181
171822007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17183
17184 * minibuf.c (Fcompleting_read): New value `confirm-only'
17185 for `require-match'.
17186
171872007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17188
17189 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17190 part of the 2007-06-27 change to syms_of_fileio.
17191
171922007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17193
17194 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17195 Check WINDOWP before using XWINDOW. Consolidate return statements.
17196
171972007-06-27 Richard Stallman <rms@gnu.org>
17198
17199 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17200
172012007-06-27 Juanma Barranquero <lekktu@gmail.com>
17202
17203 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17204
172052007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17206
17207 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17208 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17209 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17210 (_free_internal, memalign): Use them.
17211 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17212 Initialize to PTHREAD_MUTEX_INITIALIZER.
17213 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17214 (morecore_nolock): Rename from morecore. All uses changed.
17215 Use only nolock versions of internal allocation functions.
17216 (_malloc_internal_nolock, _realloc_internal_nolock)
17217 (_free_internal_nolock): New functions created from
17218 _malloc_internal, _realloc_internal, and _free_internal.
17219 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17220 Copy hook value to automatic variable before its use.
17221 (memalign): Copy hook value to automatic variable before its use.
17222
172232007-06-26 Kenichi Handa <handa@m17n.org>
17224
17225 * coding.c (Ffind_operation_coding_system): Docstring improved.
17226 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17227
172282007-06-25 David Kastrup <dak@gnu.org>
17229
17230 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17231 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17232 cater for additional parameter.
17233
17234 * keymap.h: Adjust number of parameters to `current-active-maps'.
17235
17236 * doc.c (Fsubstitute_command_keys): Adjust call of
17237 `current-active-maps'.
17238
172392007-06-25 David Kastrup <dak@gnu.org>
17240
17241 * callint.c (Fcall_interactively): Make the parsing of interactive
17242 specs somewhat more readable.
17243
172442007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17245
17246 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17247 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17248 if extended background has already been filled.
17249
172502007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17251
17252 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17253 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17254
17255 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17256 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17257 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17258 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17259 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17260 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17261 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17262 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17263 Run timers during dialog popup.
17264 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17265
172662007-06-21 Jason Rumney <jasonr@gnu.org>
17267
17268 * image.c (convert_mono_to_color_image): Swap fore and background.
17269
172702007-06-20 Jason Rumney <jasonr@gnu.org>
17271
17272 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17273 (w32_free_bdf_font): Unmap memory not handle.
17274
172752007-06-20 Sam Steingold <sds@gnu.org>
17276
17277 * gmalloc.c (__morecore): Fix the declaration to comply with the
17278 definition.
17279
172802007-06-20 Juanma Barranquero <lekktu@gmail.com>
17281
17282 * w32term.c (w32_delete_display): Remove leftover declaration.
17283 (w32_define_cursor, w32_initialize): Make static.
17284
17285 * w32.c (_wsa_errlist): Fix typo in error message.
17286 (init_environment): Ignore any environment variable from the
17287 registry having a null value.
17288
172892007-06-20 Glenn Morris <rgm@gnu.org>
17290
17291 * Makefile.in (LIBGIF): Default to -lgif.
17292
172932007-06-17 Jason Rumney <jasonr@gnu.org>
17294
17295 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17296 unicode strings.
17297
172982007-06-16 Juanma Barranquero <lekktu@gmail.com>
17299
17300 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17301 Fix typo in docstring.
17302
173032007-06-16 Eli Zaretskii <eliz@gnu.org>
17304
17305 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17306 and their keybindings.
17307
173082007-06-15 Chong Yidong <cyd@stupidchicken.com>
17309
17310 * composite.c (update_compositions): Fix last fix.
17311
173122007-06-14 Jason Rumney <jasonr@gnu.org>
17313
17314 * w32.c (get_process_times_fn): New function pointer.
17315 (globals_of_w32): Intialize it if present in kernel32.dll.
17316 (w32_get_internal_run_time): New function.
17317
17318 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17319
173202007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17321
17322 * composite.c (update_compositions): Check the validness of
17323 compositions.
17324
173252007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17326
17327 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17328 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17329
17330 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17331 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17332
17333 * macgui.h (USE_MAC_TOOLBAR): New define.
17334
17335 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17336 Return immediately unless popup is activated.
17337
17338 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17339 background to scroll bar gap.
17340 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17341 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17342 scroll bars on frame edge. Check fringe background extension.
17343 Don't clear extended fringe background area.
17344 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17345 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17346 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17347 [USE_MAC_TOOLBAR]: New macros.
17348 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17349 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17350 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17351 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17352 [USE_MAC_TOOLBAR]: New functions.
17353 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17354 manually if previous repositioning has failed.
17355 (mac_handle_keyboard_event): Use precomputed event kind.
17356 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17357 as tool bar item click. Handle mouse movement over tool bar items.
17358
17359 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17360 toolbar_win_gravity.
17361 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17362 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17363 Add externs.
17364
17365 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17366 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17367
173682007-06-14 Chong Yidong <cyd@stupidchicken.com>
17369
17370 * image.c (search_image_cache): Remove unused variable.
17371
173722007-06-13 Chong Yidong <cyd@stupidchicken.com>
17373
17374 * xfns.c, xmenu.c: Link to xaw3d if available.
17375
173762007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17377
17378 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17379 frame_foreground and frame_background.
17380
17381 * image.c (lookup_image): Save frame foreground and background colors.
17382 (search_image_cache): Check if saved and current frame colors match.
17383
173842007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17385
17386 * regex.c (regex_compile): Remove the `regnum' counter.
17387 Use bufp->re_nsub instead. Add support for \(?N:RE\).
17388
173892007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17390
17391 * term.c: Include intervals.h to declare Fget_text_property.
17392
173932007-06-10 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
17396
173972007-06-08 Juanma Barranquero <lekktu@gmail.com>
17398
17399 * callint.c (Fcall_interactively):
17400 * editfns.c (Fdelete_and_extract_region):
17401 * fileio.c (Fread_file_name):
17402 * fns.c (Fmapconcat):
17403 * keyboard.c (cmd_error_internal):
17404 * keymap.c (Fkey_description):
17405 * lread.c (openp):
17406 * minibuf.c (read_minibuf):
17407 * search.c (wordify):
17408 * sunfns.c (sel_read):
17409 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
17410 * xfns.c (x_default_scroll_bar_color_parameter):
17411 * xmenu.c (menu_help_callback):
17412 * xselect.c (Fx_get_atom_name):
17413 * xterm.c (x_term_init): Use empty_unibyte_string.
17414
174152007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
17416
17417 * alloc.c (init_strings): Initialize canonical empty strings.
17418 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
17419 canonical empty string when the requested size is 0.
17420
17421 * emacs.c (empty_unibyte_string): Rename from empty_string.
17422 (empty_multibyte_string): New canonical empty string.
17423 (syms_of_emacs): Don't initialize empty_string.
17424
17425 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
17426 string, if appropriate.
17427 (empty_unibyte_string, empty_multibyte_string): New externs.
17428 (empty_string): Remove extern.
17429
17430 * lread.c (syms_of_lread): Use empty_unibyte_string.
17431
174322007-06-07 Jason Rumney <jasonr@gnu.org>
17433
17434 * s/ms-w32.h: Don't define HAVE_TZNAME.
17435
17436 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
17437
174382007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17439
17440 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
17441
17442 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
17443 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
17444
17445 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17446 Don't call next handler.
17447 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
17448 Remove argument. Install handler to application.
17449 (set_frame_menubar): Don't change deep_p.
17450 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
17451 FRAME_OUTER_TO_INNER_DIFF_Y.
17452 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17453 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17454 [HAVE_DIALOGS]: New macros.
17455 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
17456 Use them.
17457 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
17458
17459 * macselect.c [MAC_OSX] (install_service_handler): Rename from
17460 init_service_handler. All callers changed. Return OSStatus value.
17461
17462 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
17463 All callers changed so as not to call SetPortWindowPort.
17464 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
17465 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
17466 mac_draw_string_common.
17467 (mac_draw_image_string_qd): Likewise.
17468 (mac_draw_string_common): Use them. Add INLINE.
17469 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
17470 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
17471 GetGlobalMouse.
17472 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
17473 and FRAME_OUTER_TO_INNER_DIFF_Y.
17474 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
17475 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
17476 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
17477 repositioning window to mac_handle_window_event.
17478 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
17479 saving window location to mac_handle_window_event
17480 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
17481 (install_menu_target_item_handler): Remove argument in extern.
17482 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
17483 Also accept command events.
17484 (do_keystroke): New function created from XTread_socket.
17485 (init_command_handler): Remove functions.
17486 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
17487 and save window location by kEventWindowShowing and kEventWindowHiding
17488 handlers here. Don't call next handler for window state change and
17489 focus events.
17490 (mac_handle_application_event, mac_handle_keyboard_event)
17491 [TARGET_API_MAC_CARBON]: New functions.
17492 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
17493 kEventWindowShowing and kEventWindowHiding events. Move installation
17494 of mouse, font, text input and menu target item handlers to
17495 install_application_handler.
17496 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
17497 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17498 New function.
17499 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17500 Register it.
17501 (XTread_socket) [TARGET_API_MAC_CARBON]:
17502 Consolidate SendEventToEventTarget calls.
17503 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
17504 Move application activation handler to mac_handle_application_event.
17505 Move keyboard handler to mac_handle_keyboard_event.
17506 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
17507 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
17508 init_command_handler. Call install_application_handler.
17509
17510 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
17511 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
17512
175132007-06-07 Glenn Morris <rgm@gnu.org>
17514
17515 * emacs.c (main): Use `emacs-copyright' in --version output.
17516
175172007-06-06 Chong Yidong <cyd@stupidchicken.com>
17518
17519 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
17520
175212007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17522
17523 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
17524
17525 * macgui.h: Replace WindowPtr with WindowRef.
17526
17527 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17528 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17529 Replace ControlHandle with ControlRef.
17530 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
17531
17532 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17533 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17534 Replace ControlHandle with ControlRef.
17535 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
17536 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
17537
17538 * macterm.h (struct scroll_bar): Rename member control_handle_low
17539 and control_handle_high to control_ref_low and control_ref_high.
17540 All uses changed.
17541 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
17542 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
17543 respectively. All uses changed.
17544 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
17545 (install_window_handler, remove_window_handler): Replace WindowPtr
17546 with WindowRef in externs.
17547
175482007-06-05 Juanma Barranquero <lekktu@gmail.com>
17549
17550 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
17551
175522007-06-03 Nick Roberts <nickrob@snap.net.nz>
17553
17554 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
17555
17556 * frame.c (Fmouse_position, Fmouse_pixel_position):
17557 Condition on HAVE_GPM too.
17558
17559 * term.c (term_mouse_highlight): Remove unused variables.
17560 (Fterm_open_connection): Set gpm_zerobased to 1.
17561 (term_mouse_movement, term_mouse_click, handle_one_term_event):
17562 Use zero based co-ordinates.
17563 (handle_one_term_event): Report a drag as mouse movement too.
17564
17565 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
17566
175672007-06-03 Chong Yidong <cyd@stupidchicken.com>
17568
17569 * image.c (search_image_cache): New function. Require background
17570 color match if background color is unspecified in the image spec.
17571 (uncache_image, lookup_image): Use it.
17572
175732007-06-01 Juanma Barranquero <lekktu@gmail.com>
17574
17575 * window.c (Fshrink_window): Reflow docstring.
17576
175772007-06-02 Chong Yidong <cyd@stupidchicken.com>
17578
17579 * Version 22.1 released.
17580
175812007-06-01 Richard Stallman <rms@gnu.org>
17582
17583 * xfns.c (x_encode_text): Add GCPRO.
17584
175852007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17586
17587 * xfns.c (x_set_name_internal): Save encoded name before
17588 x_encode_text in case string data is relocated.
17589
175902007-05-31 Richard Stallman <rms@gnu.org>
17591
17592 * buffer.c (syms_of_buffer): Doc fix.
17593
175942007-05-30 Nick Roberts <nickrob@snap.net.nz>
17595
17596 * sysdep.c (init_sys_modes): Add rather than replace with
17597 O_NONBLOCK.
17598
17599 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
17600 term_mouse_moveto.
17601
17602 * termhooks.h (term_mouse_moveto): New extern.
17603
17604 * term.c (mouse_face_window): Rename...
17605 (Qmouse_face_window): ...to this.
17606 (term_show_mouse_face, term_clear_mouse_face)
17607 (term_mouse_highlight): Use Qmouse_face_window.
17608 (term_mouse_moveto): New function.
17609 (term_mouse_position): Make it work.
17610 (syms_of_term): Uncomment assignment to mouse_position_hook.
17611 Staticpro Qmouse_face_window.
17612
176132007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17614
17615 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
17616 around current_column call.
17617
176182007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
17619
17620 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
17621 * xdisp.c (next_element_from_buffer):
17622 * window.c (delete_window):
17623 * term.c (term_mouse_highlight):
17624 * msdos.c (getdefdir):
17625 * macterm.c (mac_create_bitmap_from_bitmap_data)
17626 (init_font_name_table):
17627 * fns.c (Fsxhash):
17628 * data.c (Fmake_local_variable):
17629 * ccl.c (ccl_driver): Likewise.
17630
176312007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17632
17633 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
17634 Call mac_wakeup_from_rne on window size change.
17635
176362007-05-25 Chong Yidong <cyd@stupidchicken.com>
17637
17638 * image.c (uncache_image): Fix typo.
17639
176402007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
17641
17642 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
17643
176442007-05-22 Richard Stallman <rms@gnu.org>
17645
17646 * xterm.c (x_connection_closed): Remove NO_RETURN.
17647
176482007-05-22 Martin Rudalics <rudalics@gmx.at>
17649
17650 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
17651
176522007-05-21 Chong Yidong <cyd@stupidchicken.com>
17653
17654 * image.c (uncache_image): New function.
17655 (Fimage_refresh): New function.
17656
176572007-05-20 Jan Djärv <jan.h.d@swipnet.se>
17658
17659 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
17660
176612007-05-20 Nick Roberts <nickrob@snap.net.nz>
17662
17663 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
17664 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
17665
176662007-05-20 Nick Roberts <nickrob@snap.net.nz>
17667
17668 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
17669 conditional on [HAVE_GPM_H].
17670
176712007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * syntax.c (skip_chars): Update syntax-table only after we checked that
17674 the new location is valid.
17675
176762007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17677
17678 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
17679 mac_get_window_bounds.
17680
176812007-05-20 Nick Roberts <nickrob@snap.net.nz>
17682
17683 * Makefile.in (LIBGPM): Allow it to be set from configure.
17684 If set then link Emacs with it.
17685
17686 * config.in: Regenerate.
17687
17688 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
17689 New externs.
17690
17691 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
17692 Include gpm.h.
17693 (handle_one_term_event, term_gpm): New externs.
17694
17695 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
17696 and allow it to be interrupted by SIGIO.
17697
17698 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
17699 (wait_reading_process_output): Wait on gpm_fd too.
17700 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
17701 (add_gpm_wait_descriptor_called_flag): New variable.
17702 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
17703
17704 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
17705 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
17706 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
17707 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
17708 (make_lispy_event): Add case GPM_CLICK_EVENT.
17709 (read_avail_input): Handle mouse input.
17710
17711 * term.c (write_glyphs_with_face): New function.
17712 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
17713 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
17714 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
17715 (mouse_face_face_id, term_gpm, pos_x, pos_y)
17716 (last_mouse_x, last_mouse_y): New variables.
17717 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
17718 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
17719 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
17720 (Fterm_close_connection): New functions.
17721 (term_init): Initialise mouse_face_window.
17722
177232007-05-19 Chong Yidong <cyd@stupidchicken.com>
17724
17725 * xdisp.c (redisplay_window): If first window line is a
17726 continuation line, recompute the new window start instead of
17727 recentering.
17728
177292007-05-18 Glenn Morris <rgm@gnu.org>
17730
17731 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
17732 Suggested by Alfred M. Szmidt <ams@gnu.org>.
17733
177342007-05-17 Glenn Morris <rgm@gnu.org>
17735
17736 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
17737
177382007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17739
17740 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
17741 dead key repeat and up events.
17742
177432007-05-14 Chong Yidong <cyd@stupidchicken.com>
17744
17745 * image.c (pbm_load): Check image size for monochrome pbm.
17746
177472007-05-13 Chong Yidong <cyd@stupidchicken.com>
17748
17749 * xterm.c (XTread_socket): Revert last change.
17750
177512007-05-12 Chong Yidong <cyd@stupidchicken.com>
17752
17753 * image.c (pbm_load): Correctly check image size for greyscale pbm.
17754
17755 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
17756
177572007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17758
17759 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
17760 mixup (YAILOM).
17761
177622007-05-07 Andreas Schwab <schwab@suse.de>
17763
17764 * keymap.c (Flookup_key): Fix typo in last change.
17765
177662007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17767
17768 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
17769 mapping for unibyte strings.
17770
177712007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17772
17773 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
17774 (Fx_popup_dialog) [MAC_OSX]: Likewise.
17775
177762007-04-29 Richard Stallman <rms@gnu.org>
17777
17778 * insdel.c (replace_range): For undo, record insertion first.
17779
177802007-04-29 Andreas Schwab <schwab@suse.de>
17781
17782 * lisp.h (VECSIZE): Use OFFSETOF.
17783
177842007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17785
17786 * xdisp.c (try_window_reusing_current_matrix): Fix number of
17787 disabled lines.
17788
177892007-04-28 Richard Stallman <rms@gnu.org>
17790
17791 * lread.c (read_escape): In a string, \s is always space.
17792
177932007-04-27 Jan Djärv <jan.h.d@swipnet.se>
17794
17795 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
17796
17797 * gtkutil.c (xg_update_menubar, create_menus): Create empty
17798 submenu for menu bar items.
17799
17800See ChangeLog.10 for earlier changes.
17801
17802;; Local Variables:
17803;; coding: utf-8
17804;; add-log-time-zone-rule: t
aac0c6e3
MR
17805;; End:
17806
76b6f707 17807 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
17808
17809 This file is part of GNU Emacs.
17810
17811 GNU Emacs is free software: you can redistribute it and/or modify
17812 it under the terms of the GNU General Public License as published by
17813 the Free Software Foundation, either version 3 of the License, or
17814 (at your option) any later version.
17815
17816 GNU Emacs is distributed in the hope that it will be useful,
17817 but WITHOUT ANY WARRANTY; without even the implied warranty of
17818 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17819 GNU General Public License for more details.
17820
17821 You should have received a copy of the GNU General Public License
17822 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
17823
17824;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40