Add arch tagline
[bpt/emacs.git] / src / ChangeLog
CommitLineData
71a0c011
EZ
12009-03-02 Eli Zaretskii <eliz@gnu.org>
2
3 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4 when decoding process output.
5
2f63bba8
RS
62009-03-01 Richard M Stallman <rms@gnu.org>
7
8 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9
10 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
11
0a9564cb
EZ
122009-02-28 Eli Zaretskii <eliz@gnu.org>
13
14 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
15 (decode_coding_emacs_mule, decode_coding_iso_2022)
16 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17 (decode_coding_raw_text, decode_coding_charset)
18 (setup_coding_system, decode_eol, decode_coding, consume_chars):
19 Honor inhibit-eol-conversion. (Bug #2186)
20
449148b3
JR
212009-02-28 Jason Rumney <jasonr@gnu.org>
22
23 * coding.c (detect_coding_charset): If not checking latin extra,
24 fail on characters between 0x80 and 0xA0. (Bug#2354)
25
a4aee864
EZ
262009-02-28 Eli Zaretskii <eliz@gnu.org>
27
28 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 29 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 30
d88bee5a
GM
312009-02-27 Glenn Morris <rgm@gnu.org>
32
33 * callint.c (Finteractive): Doc fix.
34
a808f22d
KH
352009-02-27 Kenichi Handa <handa@m17n.org>
36
37 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
38
caf8d60c
CY
392009-02-27 Chong Yidong <cyd@stupidchicken.com>
40
41 * font.c (font_style_to_value): Set value for unknown symbols to
42 100 instead of 255.
b61137ea
CY
43 (weight_table, slant_table, width_table): Treat "unspecified" as
44 the default value.
caf8d60c 45
1a0de25c
JB
462009-02-26 Juanma Barranquero <lekktu@gmail.com>
47
48 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
49
8fc45744
JB
502009-02-25 Juanma Barranquero <lekktu@gmail.com>
51
107bd7d1
JB
52 * lread.c (Fload): Stop checking Vloads_in_progress and signal
53 error as soon as a recursive load is detected.
8fc45744 54
f097e223
AR
552009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
56
57 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
58 before caching.
59
8810a12f
KH
602009-02-24 Kenichi Handa <handa@m17n.org>
61
62 * fontset.c (fontset_find_font): Fix the condition for checking
63 unavailable font.
64
2c7d1565
GM
652009-02-24 Glenn Morris <rgm@gnu.org>
66
67 * xfaces.c (Finternal_set_font_selection_order): Remove leading
68 whitespace that confuses documentation.
69
a20878b6
MB
702009-02-23 Miles Bader <miles@gnu.org>
71
72 * process.c (Flist_system_processes, Fprocess_attributes)
73 (syms_of_process): Rename `system-process-attributes' to
74 `process-attributes'.
75
b3b58c01
AS
762009-02-22 Andreas Schwab <schwab@linux-m68k.org>
77
1b3b981b
AS
78 * coding.h (struct coding_system): Make safe_charsets a pointer to
79 unsigned char.
80 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
81 being 255.
82 (SAFE_CHARSET_P): Likewise.
83 (setup_iso_safe_charsets): Properly setup safe_charsets.
84 (Fdefine_coding_system_internal): Likewise.
85 (setup_coding_system): Likewise. Remove unneeded casts.
86 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
87 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
88 unneeded casts.
89
b3b58c01
AS
90 * insdel.c (del_range_2): Don't modify gap contents when called
91 from decode_coding_object. (Bug#1809)
92
0b6f228c
CY
932009-02-21 Chong Yidong <cyd@stupidchicken.com>
94
95 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
96 Qfont_object.
97 (Ftype_of): Recognize font objects.
98
99 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
100
101 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
102 moved to data.c.
103
52f8870b
AR
1042009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
105
106 * nsterm.m (x_make_frame_invisible): Unset async_visible,
107 async_iconified. Based on a patch by Christian Lynbech
108 <christian.lynbech@tieto.com>.
109 (EmacsView-windowDidMiniaturize:): Unset async_visible.
110
7087d5e9
GM
1112009-02-20 Glenn Morris <rgm@gnu.org>
112
113 * syntax.c (Fskip_chars_forward): Fix doc typo.
114
41d2ceef
CY
1152009-02-20 Chong Yidong <cyd@stupidchicken.com>
116
117 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
118
1a3b7ca6
CY
1192009-02-19 Chong Yidong <cyd@stupidchicken.com>
120
121 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
122
73cce38d
KH
1232009-02-19 Kenichi Handa <handa@m17n.org>
124
125 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 126 Don't overflow coding->carryover. (Bug#2370)
73cce38d 127
a51092ee
DN
1282009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
129
130 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
131
c423ecca
KH
1322009-02-18 Kenichi Handa <handa@m17n.org>
133
134 * font.c (font_check_otf_features): Fix handling of `nil' element.
135 (Ffont_spec): Describe :lang and :otf in the docstring.
136
4c1958f4
AS
1372009-02-16 Andreas Schwab <schwab@suse.de>
138
139 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
140 string.
141
5704f39a
KH
1422009-02-16 Kenichi Handa <handa@m17n.org>
143
144 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 145 (Bug#1723)
5704f39a 146
8f0085aa
CY
1472009-02-14 Chong Yidong <cyd@stupidchicken.com>
148
a057d86a 149 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
150
151 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
152 (handle_line_prefix): Suppress wrapping of wrap prefixes.
153
aff01dd9
EZ
1542009-02-14 Eli Zaretskii <eliz@gnu.org>
155
156 * msdos.c (MAX_SCREEN_BUF): New macro.
157 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
158 Encode the entire run of glyphs sharing the same face, instead of
159 doing that one glyph at a time (fixes a bug with displaying
160 double-size characters).
161
ba301db3
AR
1622009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
163
164 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
165
166 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
167 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 168 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
169
170 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 171 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 172
51d861de
SM
1732009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
174
175 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
176 invisible areas.
177
7fed8996
JR
1782009-02-12 Jason Rumney <jasonr@gnu.org>
179
631ea4fb
JR
180 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
181 (add_font_entity_to_list): Call check_face_name even when family
182 is unspecified.
183
cb4a3e42
JR
184 * w32term.c (x_display_pixel_height, x_display_pixel_width):
185 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 186 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 187
7fed8996 188 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 189 raster fonts. (Bug#2219)
7fed8996 190
895416e3
KH
1912009-02-12 Kenichi Handa <handa@m17n.org>
192
193 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
194 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
195 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 196 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
197 (find_automatic_composition): While looking forward and backward,
198 check static composition. Fix where to stop looking forward.
199 (composition_adjust_point): Fix checking of static composition.
200 (Fcomposition_get_gstring): Pay attention to
1dacf998 201 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
202
203 * lisp.h (fast_looking_at): Extern it.
204
205 * search.c (fast_looking_at): New function.
206
51d861de 207 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
208 <struct glyph>.u.cmp.to.
209 (append_composite_glyph): Likewise.
210
51d861de 211 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
212 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
213 composition.
51d861de 214 (append_composite_glyph): Adjust for the change of
895416e3
KH
215 <strcut glyph>.u.cmp.to.
216
8510724d
JB
2172009-02-11 Juanma Barranquero <lekktu@gmail.com>
218
219 * casetab.c (init_casetab_once):
220 * coding.c (ALLOC_CONVERSION_WORK_AREA):
221 * font.c (font_update_lface):
222 * fontset.c (Fnew_fontset):
223 * ftfont.c (ftfont_drive_otf):
224 * xfont.c (xfont_open):
225 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
226
294fa707
SM
2272009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
228
229 * fileio.c (Fwrite_region): !NILP -> CONSP.
230
b5bfebec
AS
2312009-02-10 Andreas Schwab <schwab@suse.de>
232
233 * process.c (send_process): Properly relocate pointer into data
adab88bd 234 when using encoded data. (Bug#2272)
b5bfebec 235
cb84a2be
KH
2362009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
237
238 * coding.c (detect_coding_charset): Fix previous change.
239
89e09428
JR
2402009-02-08 Jason Rumney <jasonr@gnu.org>
241
242 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 243 disappeared while hourglass was displayed. (Bug #2193)
89e09428 244
4470a277
AS
2452009-02-07 Andreas Schwab <schwab@suse.de>
246
247 * unexelf.c (unexec): Fix error message.
248
3175b12a
AR
2492009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
250
251 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 252 when modal window is active. (Bug #2152)
3175b12a
AR
253 (applicationShouldTerminate:): Remove now-unneeded while loop
254 around NSRunAlertPanel.
255
256 * nsmenu.m (popupSession): New file-global variable.
257 (pop_down_menu): End the popupSession before closing dialog.
258 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
259 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
260 don't query NSApp for events (just sleep instead).
261
8434d0b8
EZ
2622009-02-07 Eli Zaretskii <eliz@gnu.org>
263
51d861de
SM
264 * coding.c (syms_of_coding) <translation-table-for-input>:
265 Modify doc string to discourage use for character code unification.
8434d0b8 266
aa82edfd
CY
2672009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
268
269 * atimer.c (run_timers): Update pending_atimers.
270
2d283c7c
CY
2712009-02-06 Chong Yidong <cyd@stupidchicken.com>
272
eb306cab
CY
273 * image.c (svg_load_image): Fix last change.
274
2d283c7c
CY
275 * xfns.c (Fx_create_frame): Signal an error if no font is
276 found (Bug#2147).
277
4d8e170e
JB
2782009-02-05 Juanma Barranquero <lekktu@gmail.com>
279
280 * character.c (syms_of_character) <script-representative-chars>:
281 Fix typo in docstring.
282
c96169a0
AR
2832009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
284
285 * nsmenu.m (pop_down_menu): New function.
286 (ns_popup_dialog): Call it on unwind.
287 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
288 call timer_check() (Bug#2154).
289 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
290 handling_signal is set.
291 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
292
293 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
294
295 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
296
297 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
298
51d861de
SM
299 * keyboard.c (poll_for_input_1, handle_async_input):
300 Set handling_signal under HAVE_NS.
c96169a0 301
aacd8ba1
GM
3022009-02-04 Glenn Morris <rgm@gnu.org>
303
304 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
305
4cb75c4b
KH
3062009-02-04 Kenichi Handa <handa@m17n.org>
307
308 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
309
310 * charset.c (Fchar_charset): New optional arg restriction.
311
312 * coding.h (coding_system_charset_list): Extern it.
313
314 * coding.c (coding_system_charset_list): New function.
315
316 * composite.c: Include coding.h and termhooks.h.
317 (composition_gstring_p): Fix for the terminal case.
318 (composition_gstring_width): Likewise.
319 (fill_gstring_body): Likewise.
320 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
321 the frame.
322 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
323 is within a composition.
867d4bb3 324 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
325
326 * term.c (encode_terminal_code): Fix handling of composition.
327 (produce_composite_glyph): For static composition, get pixel_width
328 from struct composition.
329
826ba17e
AS
3302009-02-02 Andreas Schwab <schwab@suse.de>
331
332 * unexelf.c (unexec): Handle unaligned bss offset.
333
8ad093db
AR
3342009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
335
336 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
337 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 338
8ad093db
AR
339 * keyboard.c (handle_interrupt): Don't call
340 quit_throw_to_read_char() under NS.
d0a76a6e 341
8ad093db
AR
342 * blockinput.h: Remove NS-specific code.
343
4d18a7a2
DN
3442009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
345
db878925
DN
346 * dispnew.c (window_change_signal): Don't try to get the size of a
347 suspended tty frame.
348 * term.c (Fresume_tty): Resize if the size has changed while the
349 tty was suspended.
350
4d18a7a2
DN
351 * alloc.c (mark_stack): Properly conditionalize previous change.
352
8984df7c
JB
3532009-01-30 Juanma Barranquero <lekktu@gmail.com>
354
355 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
356 * w32term.c (w32_read_socket) [SYNC_INPUT]:
357 Remove; this code is not used on Windows.
358
75f4f1ac
EZ
3592009-01-30 Eli Zaretskii <eliz@gnu.org>
360
361 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
362 EOLs that also has stray ^M characters.
363
07a1e794
JB
3642009-01-30 Juanma Barranquero <lekktu@gmail.com>
365
366 * atimer.c (run_timers, alarm_signal_handler):
367 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
368 * w32inevt.c (w32_console_read_socket):
369 * w32term.c (w32_read_socket):
370 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
371
a8b11cc9
CY
3722009-01-30 Chong Yidong <cyd@stupidchicken.com>
373
374 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
375 Initialize it as a relative filename pattern.
376 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
377 (Fcall_process_region): Simplify temp file creation using
378 temporary-file-directory.
379
c279587b
EZ
3802009-01-29 Eli Zaretskii <eliz@gnu.org>
381
382 * msdos.c: Rename pending_signals to msdos_pending_signals.
383 (sig_suspender, sigprocmask): Adjust.
384
a8fe3242
CY
3852009-01-29 Chong Yidong <cyd@stupidchicken.com>
386
387 * keyboard.c (pending_signals): New var.
388 (poll_for_input, input_available_signal, init_keyboard): Set it.
389 (process_pending_signals): New function.
390
391 * lisp.h (QUIT): Check pending_signals instead of
392 interrupt_input_pending. Use process_pending_signals.
393
51d861de 394 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 395
51d861de 396 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
397
398 * sysdep.c (emacs_write): Use process_pending_signals.
399
400 * xterm.c (XTread_socket): Update pending_signals.
401
402 * w32term.c (w32_read_socket): Update pending_signals.
403
404 * w32inevt.c (w32_console_read_socket): Update pending_signals.
405
6570a1c4
KH
4062009-01-29 Kenichi Handa <handa@m17n.org>
407
408 * xftfont.c (xftfont_has_char): New function.
409 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
410
d72a4afa
AR
4112009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
412
413 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
414 under GNUstep.
415 (ns_query_color): New declaration.
416
417 * nsterm.m (ns_confirm_quit): New variable.
418 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
419 (EmacsApp-applicationShouldTerminate:): Use it.
420 (EmacsPrefsController): Let user set it.
421 (ns_query_color): New function.
422 (ns_defined_color): Use it.
423 (ns_initialize): Drop.
424 (ns_term_init): Add two lines from ns_initialize(), and set
425 input_interrupt_mode to nil.
426
427 * image.c (svg_load_image): Don't right-shift background RGB when
428 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
429
9fe78804
KH
4302009-01-28 Kenichi Handa <handa@m17n.org>
431
432 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
433 (fontset_get_font_group): Remember that no font-group is specified
434 for C.
9fe78804 435
fa57de36
CY
4362009-01-27 Chong Yidong <cyd@stupidchicken.com>
437
930600e9
CY
438 * fns.c (concat): Check for string overflow (bug#1787).
439
fa57de36
CY
440 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
441 Quadruple undo limits (bug#1501).
442
7179ce7b
KH
4432009-01-27 Kenichi Handa <handa@m17n.org>
444
445 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
446 directly use GT_Get_Char_index.
447
448 * xftfont.c (struct xftfont_info): New member `index'.
449
450 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 451 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 452
5be8fcc0
CY
4532009-01-26 Kenichi Handa <handa@m17n.org>
454
455 * fontset.c (fontset_find_font): Fix handling of non-cons return
456 value of fontset_get_font_group.
457 (fontset_font): Revert last change.
458
19ae3e61
JR
4592009-01-26 Jason Rumney <jasonr@gnu.org>
460
461 * w32font.c (w32font_list_internal): Return quickly if registry is
462 unknown. Simplify final return.
463 (add_font_entity_to_list): Break complex logic down into more
464 manageable chunks. Move unknown registry check to
465 w32font_list_internal.
466
8612b71a
AR
4672009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
468
469 Changes to remove Feval calls from GUI under NS.
470
d8038940
JB
471 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
472 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
473 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
474
475 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
476 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
477 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
478 instead of NON_ASCII_KEYSTROKE_EVENT.
479 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
480 (EmacsApp-applicationShouldTerminate:): Query user.
481 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
482 instead of Feval.
483
484 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
485
486 * keyboard.c (kbd_buffer_get_event): Check for it.
487 (keys_of_keyboard): Define lispy keys for
488 ns-put/unput-working-text.
489
490 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
491 versions.
492 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
493
6288ae55
CY
4942009-01-25 Chong Yidong <cyd@stupidchicken.com>
495
496 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 497 setting current_buffer directly. (Bug#2044)
6288ae55 498
289e7f8f
CY
4992009-01-24 Chong Yidong <cyd@stupidchicken.com>
500
5ce87308 501 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 502 any work. (Bug#1952, bug#1990).
5ce87308 503
64cc3cf6 504 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 505
b3243e6f
AR
5062009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
507
508 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
509 (ns_no_defaults): New declaration.
510 (main): Use it.
e0d2e69a 511
d900b2af 512 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 513
d900b2af 514 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 515
d900b2af
AR
516 * nsterm.m (ns_no_defaults): New variable.
517 (ns_initialize): Don't read defaults when ns_no_defaults.
518 (EmacsView-readSelectionFromPasteboard:)
519 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 520 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
521 (ns_dumpglyphs_stretch): New function.
522 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 523 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 524
e0d2e69a
AR
525 * nsimage.m (setPixmapData:): Set to ignore image DPI.
526
3ac71f5d
CY
5272009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
528
529 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
530 call for Sparc64.
531
3fe53a83
AR
5322009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
533
534 * nsfns.m:
535 * nsgui.h:
536 * nsmenu.m:
537 * nsselect.m:
538 * nsterm.h:
539 * nsterm.m: Remove '23' comments that indicated code added during
540 update from emacs-20 -> emacs-23.
541
10f87c6f 5422009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
543
544 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 545 ns_alternate_modifier. (Bug#1217)
a3b53a85 546
c7cef62d
AR
547 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
548 Display all shortcuts, including those w/o super modifier.
549
575fb8bd
AR
550 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
551
918b848b
CY
5522009-01-22 Chong Yidong <cyd@stupidchicken.com>
553
554 * fileio.c (Vwrite_region_post_annotation_function)
555 (Vwrite_region_annotation_buffers): New vars.
556 (build_annotations_unwind): Just reset
557 Vwrite_region_annotation_buffers.
558 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
559 Call write-region-post-annotation-function.
560 (build_annotations): Add to Vwrite_region_annotation_buffers if
561 buffer changes.
562
a39e2539
AR
5632009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
564
565 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
566 Tiger.
51d861de
SM
567 * nsfns.m (ns_do_applescript):
568 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 569
35ed44db
AR
5702009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
571
572 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
573
cbe0b5bf
AR
5742009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
575
576 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 577
6049d3a0
AR
578 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
579
580 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
581 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
582 handle Ctrl-tab. (Bug#1841)
583 (ns_get_color): Use unsigned long long for scanned hex string value.
584 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 585 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6049d3a0 586 (EmacsPrefsController-setPanelFromDefaultValues) New function.
3a88a825 587 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 588 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 589 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 590 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 591
d3810c21 592 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 593 DPI. (Bug#1316)
d3810c21
AR
594 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
595 values in onTiger section.
4c7077c3 596
e301e634
CY
5972009-01-19 Chong Yidong <cyd@stupidchicken.com>
598
7f82490b
CY
599 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
600 Check return value of font_spec_from_name.
64cc3cf6 601 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
602
603 * font.c (font_spec_from_name): Return Qnil if font name could not
604 be parsed.
605 (font_parse_name): Treat a `?' character as part of an XLFD.
606
e301e634
CY
607 * fns.c (Fsubstring): Doc fix.
608
1c0db158
KH
6092009-01-19 Kenichi Handa <handa@m17n.org>
610
51d861de 611 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
612 (ftfont_list): Likewise.
613
acf20901
JB
6142009-01-18 Juanma Barranquero <lekktu@gmail.com>
615
fff4e459
JB
616 * dbusbind.c (Fdbus_register_signal):
617 * process.c (conv_sockaddr_to_lisp):
618 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
619
acf20901
JB
620 * callproc.c (Fgetenv_internal): Doc fix.
621
e7abcdfb
CY
6222009-01-16 Chong Yidong <cyd@stupidchicken.com>
623
624 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
625 it is not even used.
626
b60861e6
GM
6272009-01-16 Glenn Morris <rgm@gnu.org>
628
629 * font.c (Ffont_variation_glyphs): Silence compiler.
630
8db52afe
JB
6312009-01-15 Juanma Barranquero <lekktu@gmail.com>
632
633 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
634 Reported by David Robinow <drobinow@gmail.com>.
635
4cddb209
KH
6362009-01-15 Kenichi Handa <handa@m17n.org>
637
51d861de 638 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 639
f247f67b
JR
6402009-01-14 Jason Rumney <jasonr@gnu.org>
641
642 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 643 never a fontset. (Bug#1562)
f247f67b 644
f56a4450
KH
6452009-01-14 Kenichi Handa <handa@m17n.org>
646
647 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 648 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 649
4e99855e
CY
6502009-01-13 Chong Yidong <cyd@stupidchicken.com>
651
652 * font.c (font_clear_prop): If clearing the family, clear the font
653 width index too.
654
fff4e459 655 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 656
24f01470
JB
6572009-01-12 Juanma Barranquero <lekktu@gmail.com>
658
659 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
660 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
661 functions, use sizeof.
662
a41240a3
MR
6632009-01-12 Martin Rudalics <rudalics@gmx.at>
664
665 * keyboard.c (read_char): Fix case where last_nonmenu_event
666 returned a bad value with submenus. (Bug#447)
667
944636b8
CY
6682009-01-12 Chong Yidong <cyd@stupidchicken.com>
669
670 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
671 family, clear the font width index too.
672
0dad7c6f
JR
6732009-01-11 Jason Rumney <jasonr@gnu.org>
674
675 * keyboard.c (cmd_error_internal): Exit when errors occur before
676 frame creation and not in daemon mode. (Bug#1836)
677
7c2363af
CY
6782009-01-10 Chong Yidong <cyd@stupidchicken.com>
679
680 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
681 of a display vector, backtrack.
682 (try_window_reusing_current_matrix): Check glyph type before
683 referencing charpos member.
684
97b1b294
EZ
6852009-01-10 Eli Zaretskii <eliz@gnu.org>
686
687 Fix Bug #876:
688
689 * coding.c (inhibit_null_byte_detection): New variable.
690 (detect_coding, detect_coding_system): Don't pay attention to null
691 bytes if inhibit_null_byte_detection is non-zero.
51d861de 692 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
693 <inhibit-iso-escape-detection>: Doc fix.
694
4624b6e3
JR
6952009-01-09 Jason Rumney <jasonr@gnu.org>
696
697 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 698 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
699 Only report Unicode Plane 2 fonts as unicode-sip.
700
323b840c
CY
7012009-01-09 Chong Yidong <cyd@stupidchicken.com>
702
51d861de
SM
703 * xfaces.c (Fx_font_family_list): Delete function.
704 Move compatibility version to faces.el.
323b840c 705
51d861de 706 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 707
eba7400d
MR
7082009-01-09 Martin Rudalics <rudalics@gmx.at>
709
710 * frame.c (x_set_frame_parameters): Remember requested value for
711 fullscreen before it's reset by the parameter handler.
712
4b09796d
GM
7132009-01-09 Glenn Morris <rgm@gnu.org>
714
715 * keyboard.c (last_command_char): For clarity, rename to...
716 (last_command-event): ... and update all users.
717 (last_input_char): For clarity, rename to...
718 (last_input_event): ... and update all users.
719 (last-command-char, last-input-char): Move to subr.el as aliases.
720 * cmds.c, commands.h: Update for last_command_char rename.
721
14ccea62
CY
7222009-01-08 Chong Yidong <cyd@stupidchicken.com>
723
51d861de 724 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 725
5f004711
JR
7262009-01-08 Jason Rumney <jasonr@gnu.org>
727
728 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
729 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
730 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
731 Don't declare.
fff4e459 732 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
733 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
734
b71f6f73
KH
7352009-01-07 Kenichi Handa <handa@m17n.org>
736
50b06221 737 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 738 remember the coding system used for decoding in
50b06221
KH
739 coding_system (Bug#1039).
740
b71f6f73 741 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 742 breaking the loop. (Bug#870)
b71f6f73
KH
743 (decode_coding_utf_16, decode_coding_emacs_mule)
744 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
745 (decode_coding_charset): Likewise.
746
56f668f7
MR
7472009-01-05 Martin Rudalics <rudalics@gmx.at>
748
749 * frame.c (x_set_frame_parameters): Make sure height (width) get
750 applied when fullwidth (fullheight) is set. (Bug#1522)
751
5da9424d
JB
7522009-01-04 Juanma Barranquero <lekktu@gmail.com>
753
754 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
755 (utc_base): Declare as ULONGLONG, not long double.
756 (convert_time_raw): Delete.
757 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
758 (initialize_utc_base): New function.
759 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
760 (convert_from_time_t): Use initialize_utc_base; compute result with
761 64-bit arithmetic.
762 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
763
c4605e09
EZ
7642009-01-03 Eli Zaretskii <eliz@gnu.org>
765
9acef61c 766 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
767 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
768 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
769 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
770 [!subprocesses]: Define.
771 (syms_of_process) [!subprocesses]: Intern and staticpro them.
772 (Flist_system_processes, Fsystem_process_attributes)
773 [!subprocesses]: Call list_system_processes and
774 system_process_attributes instead of returning Qnil.
775
9acef61c
JB
776 * dosfns.c (system_process_attributes, list_system_processes):
777 New functions.
c4605e09
EZ
778
779 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
780
781 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
782 Don't use the default (no-op) implementation.
783
8b7d0a16
JR
7842009-01-03 Jason Rumney <jasonr@gnu.org>
785
a6d46bc1
JR
786 * keyboard.c (parse_modifiers_uncached): Wheel events are
787 clicks (bug#687).
788
8b7d0a16
JR
789 * w32term.c (x_query_colors, x_query_color): New functions.
790
791 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
792 (svg_load_image): Cast returned pointers from dynamically loaded
793 functions. Eliminate W32 specific code.
794
bfe11752
DN
7952009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
796
89e2438a
DN
797 * nsfns.m (x_set_foreground_color, x_set_background_color)
798 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
799 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
800 x_ prefix instead of ns_. Update references.
801 (syms_of_nsfns): Add a FIXME comment.
802
803 * nsterm.m (x_set_cursor_type): New prototype.
804 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
805
bfe11752
DN
806 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
807 for Solaris instead of incorrectly providing Qutime and Qcutime.
808
031da700
EZ
8092009-01-02 Eli Zaretskii <eliz@gnu.org>
810
811 * w32.c (process_times): Compute sum of utime and stime.
812 (system_process_attributes): Add Qtime to the alist.
813
814 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
815 and add them to the alist.
816
817 * process.c (top level) <Qtime, Qctime>: New variables.
818 (syms_of_process): staticpro them.
819 (Fsystem_process_attributes): Add their documentation to the doc
820 string.
821
822 * process.h: Declare Qtime and Qctime.
823
df23bf08
JR
8242009-01-02 Jason Rumney <jasonr@gnu.org>
825
9acef61c 826 * image.c (Qgobject): New symbol.
df23bf08
JR
827 (syms_of_image): Initialize it.
828 (init_svg_functions): Load some functions from gobject library.
829
5bbdf7aa
DN
8302009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
831
832 * frame.c (make_terminal_frame): Remove redundant code and useless
833 block.
834
63136da6
AS
8352009-01-01 Andreas Schwab <schwab@suse.de>
836
837 * process.c (conv_sockaddr_to_lisp): Add workaround for
838 getsockname bug on BSD.
839
9ef69046
CY
8402009-01-01 Chong Yidong <cyd@stupidchicken.com>
841
d6fafbe0
CY
842 * xfns.c (x_create_tip_frame): Set border width of the X window.
843
51d861de 844 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 845
f9c34147
JR
8462009-01-01 Jason Rumney <jasonr@gnu.org>
847
9acef61c 848 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
849 Don't block input, as per earlier xterm.c changes.
850
f5497e45
AR
8512008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
852
853 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
854 (ns_appkit_version_int): New function.
855 (x-server-version): Use ns_appkit_version_int and follow 21+
856 convention of returning 3 integers.
857
c19cab20
KH
8582008-12-30 Kenichi Handa <handa@m17n.org>
859
860 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
861 (CHAR_SURROGATE_PAIR_P): New macro.
862
863 * font.h (struct font_driver): New member get_variation_glyphs.
864
9acef61c 865 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
866 (Ffont_variation_glyphs): New function.
867 (syms_of_font): Defsubr it.
868
869 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
870 ftfont_variation_glyphs.
871 (setup_otf_gstring): New function.
872 (ftfont_drive_otf): Use it.
873 (ftfont_shape_by_flt): Handle variation selector.
874 (ftfont_variation_glyphs): New function.
875
28cd591f
MR
8762008-12-30 Martin Rudalics <rudalics@gmx.at>
877
878 * frame.c (Vemacs_iconified): Remove.
879
7f714baf
JR
8802008-12-30 Jason Rumney <jasonr@gnu.org>
881
882 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 883 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 884
9d2d22ab
CY
8852008-12-30 Chong Yidong <cyd@stupidchicken.com>
886
887 * indent.c (Fvertical_motion): Don't advance iterator if we have
888 reseated to the desired position.
889
890 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
891 checking for pos match.
892
545312c2
KH
8932008-12-30 Kenichi Handa <handa@m17n.org>
894
1ede3eb6
KH
895 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
896 just get the low 8-bit of the code.
897
545312c2
KH
898 * font.c (font_intern_prop): Validate str as multibyte.
899
bd7bbf29
DN
9002008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
901
31e0750e
DN
902 * dispextern.h (struct face): Move lface and hash from the middle
903 of bitfields.
904
bd7bbf29
DN
905 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
906
b5672e7c
DN
9072008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
908
909 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
910 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
911 instead of intervals.h.
912
d704470f
AS
9132008-12-26 Andreas Schwab <schwab@suse.de>
914
915 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
916 cons.
917
54b33868
MR
9182008-12-26 Martin Rudalics <rudalics@gmx.at>
919
920 * textprop.c (Qminibuffer_prompt): New variable.
921 (syms_of_textprop): Initialize it.
922 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
923 in minibuffer-prompt face. (Bug#1662)
924
40b615d6
JR
9252008-12-25 Jason Rumney <jasonr@gnu.org>
926
927 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
928
baae5c2d
JR
9292008-12-24 Jason Rumney <jasonr@gnu.org>
930
931 * ralloc.c (r_alloc_reset_variable): New function.
932
933 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 934 record of what points where. (Bug#716)
baae5c2d 935
a9051c88
DN
9362008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
937
938 * minibuf.c (read_minibuf): Follow the non-interactive case when
939 running as a daemon, before detaching.
940
8b146312
AS
9412008-12-22 Andreas Schwab <schwab@suse.de>
942
943 * buffer.c (init_buffer): Use realloc instead of xrealloc.
944 * gtkutil.c (free_widget_value): Use xfree instead of free.
945
56f2de10
MR
9462008-12-22 Martin Rudalics <rudalics@gmx.at>
947
948 * frame.c (delete_frame): New function derived from
949 Fdelete_frame to handle Qnoelisp value for FORCE argument.
950 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
951 (Fdelete_frame): Call delete_frame. Remove line from doc-string
952 saying that FORCE non-nil doesn't run `delete-frame-functions'.
953 * frame.h: Extern delete_frame.
954 * window.c (window_loop):
955 * terminal.c (delete_terminal):
956 * xterm.c (x_connection_closed):
957 * xfns.c (Fx_hide_tip):
9acef61c 958 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 959
1fc200d6
JR
9602008-12-21 Jason Rumney <jasonr@gnu.org>
961
962 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
963 when character maps to .notdef character.
964
5e252df2
SM
9652008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
966
967 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
968
99b72cc4
JR
9692008-12-20 Jason Rumney <jasonr@gnu.org>
970
971 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 972 a graphical frame on Windows. (Bug#1325)
99b72cc4 973
acc49a52
JD
9742008-12-20 Jan Djärv <jan.h.d@swipnet.se>
975
976 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
977
6ea15123
CY
9782008-12-20 Chong Yidong <cyd@stupidchicken.com>
979
980 * minibuf.c (Fread_buffer): Doc fix.
981
b2dab6c8
JR
9822008-12-20 Jason Rumney <jasonr@gnu.org>
983
54ea0c87 984 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 985 server name in UNC paths. (Bug#719)
54ea0c87 986
b2dab6c8 987 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 988 charbuf. (Bug#1035)
b2dab6c8 989
6d1921be
DN
9902008-12-19 Daniel Engeler <engeler@gmail.com>
991
992 * sysdep.c (serial_configure): Fix typo.
993
53934c98
DN
9942008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
995
996 * sysdep.c: Include alloca.h.
f4f634e8
DN
997 (system_process_attributes): Add implementation for Solaris.
998
999 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1000
06e111a6
DN
10012008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1002
1003 Reorganize implementation of Flist_system_processes and
1004 Fsystem_process_attributes. No functional changes.
1005 * process.c: Don't #include pwd.h, grp.h and limits.h.
1006 (Flist_system_processes): Just call list_system_processes.
1007 (Fsystem_process_attributes): Just call system_process_attributes.
1008 (procfs_list_system_processes, time_from_jiffies)
1009 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1010 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1011
1012 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1013 (list_system_processes): Rename from
1014 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1015 Provide a do nothing implementation.
1016 (system_process_attributes): Rename from
1017 procfs_list_system_processes.
1018 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1019 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1020
1021 * w32.c (list_system_processes): Rename from
1022 w32_list_system_processes.
1023 (system_process_attributes): Rename from
1024 w32_system_process_attributes.
1025
1026 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1027
1028 * process.h (w32_list_system_processes)
1029 (w32_system_process_attributes): Remove.
1030 (list_system_processes, system_process_attributes): New
1031 prototypes.
1032
6a705b23
KH
10332008-12-19 Kenichi Handa <handa@m17n.org>
1034
1035 * xfont.c (xfont_decode_coding_xlfd): New function.
1036 (xfont_encode_coding_xlfd): New function.
1037 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1038 (xfont_list): Decode and encode XLFD by iso-8859-1.
1039 (xfont_match): Likewise.
1040 (xfont_list_family): Likewise.
1041 (xfont_open): Likewise.
1042
d66c0241 1043 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1044 names are utf-8.
1045
d66c0241 1046 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1047 names are utf-8.
1048
5a130941
JD
10492008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1050
1051 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1052 changed.
bfd20325
JD
1053 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1054 clicked on a detached tool bar button.
5a130941 1055
fd95644b
DN
10562008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1057
1058 * emacs.c (main): Print and error and exit when no data is read
1059 from the pipe.
1060
e6eee6ae
JR
10612008-12-17 Jason Rumney <jasonr@gnu.org>
1062
1063 * w32font.c (w32font_has_char): Always return -1.
1064
a35dd56b
KH
10652008-12-16 Kenichi Handa <handa@m17n.org>
1066
1067 * font.c (font_open_entity): Fix previous change.
1068
0e3635c2
DN
10692008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
1070
1071 * process.c: Include <limits.h>.
1072
d4835507 10732008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
1074
1075 * font.c (font_update_drivers): Fix mistake in reconstructing the
1076 driver list.
1077
10782008-12-16 Chong Yidong <cyd@stupidchicken.com>
1079
1080 * font.c (font_clear_cache): Fix format of font cache data.
1081
e2cbc401
CY
10822008-12-15 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * xftfont.c (xftfont_open): Free Xft font pattern if
1085 XftFontOpenPattern fails.
1086
1087 * xterm.c (x_free_frame_resources): Remove extraneous call to
1088 free_frame_faces.
1089
b131d535
CY
10902008-12-13 Chong Yidong <cyd@stupidchicken.com>
1091
1092 * xterm.c (x_delete_display): Move xim_close_dpy call to
1093 x_delete_terminal.
1094 (x_delete_terminal): Call xim_close_dpy.
1095
e6df5336
JR
10962008-12-13 Jason Rumney <jasonr@gnu.org>
1097
1098 * w32font.c (intern_font_name): New function.
1099 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1100 (w32font_open_internal, Fx_select_font): Decode font name.
1101 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1102
1103 * w32font.h (intern_font_name): Declare new function.
1104
1105 * w32uniscribe.c (add_opentype_font_name_to_list):
1106 Use intern_font_name.
1107
20d68145
CY
11082008-12-13 Chong Yidong <cyd@stupidchicken.com>
1109
9f2554de
CY
1110 * frame.c (Fdelete_frame): Call free_font_driver_list.
1111
3d9bec9a
CY
1112 * font.c (free_font_driver_list): Implement missing function.
1113
20d68145
CY
1114 * w32term.c (w32_term_init): Don't initialize the image cache
1115 here; it will be done in init_frame_faces.
1116
1117 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1118 (struct x_display_info): Remove unused member null_pixel. New
1119 member xim_callback_data.
1120
1121 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1122 (xim_initialize): Save pointer to callback function data.
1123 (xim_close_dpy): Free callback function data. Call XCloseIM,
1124 reverting 2008-11-04 change by David Smith.
1125 (x_term_init): Don't initialize the image cache here; it will be
1126 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1127 (x_delete_display): Free x_dnd_atoms member.
1128
96f9306b
KH
11292008-12-13 Kenichi Handa <handa@m17n.org>
1130
6dec9044
JB
1131 * font.c (font_rescale_ratio): Moved from xfaces.c.
1132 Argument type changed. Handle a font-spec too.
96f9306b 1133 (font_score): Check Vface_font_rescale_alist.
6dec9044 1134 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1135
1136 * xfaces.c (font_rescale_ratio): Moved to font.c.
1137
8d5b4964
CY
11382008-12-13 Chong Yidong <cyd@stupidchicken.com>
1139
1140 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1141
e6df5336
JR
11422008-12-12 Jason Rumney <jasonr@gnu.org>
1143
1144 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1145 Vwindow_system_version to the real w32 major version.
1146
97c6058a
DN
11472008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1148
1149 * term.c (init_tty): Move setting the terminal name before the
1150 potential user: maybe_fatal.
1151
ec4e88d7
CY
11522008-12-11 Chong Yidong <cyd@stupidchicken.com>
1153
d4835507
JB
1154 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1155 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1156
b4233ec9
JR
11572008-12-11 Jason Rumney <jasonr@gnu.org>
1158
8ec71e23 1159 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1160 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1161
b4233ec9 1162 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1163 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1164
011a0143
JB
11652008-12-11 Juanma Barranquero <lekktu@gmail.com>
1166
1167 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1168
3c309f34
JB
11692008-12-11 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * process.c (Fsystem_process_attributes, syms_of_process):
1172 Fix typo in name of Ssystem_process_attributes.
1173 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1174
fedc6ab5
JB
11752008-12-11 Juanma Barranquero <lekktu@gmail.com>
1176
1177 * syntax.c (Fmodify_syntax_entry): Doc fix.
1178
ba3de0e8
JB
11792008-12-10 Juanma Barranquero <lekktu@gmail.com>
1180
1181 * font.c (Ffont_spec): Move usage to end of docstring.
1182
174f1c74
JR
11832008-12-10 Jason Rumney <jasonr@gnu.org>
1184
1185 * w32font.c (Qcham): New symbol.
1186 (font_supported_scripts): Add cham, and comments for other new
1187 scripts in bitfield from OpenType spec.
9d32f818
JR
1188 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1189 contain characters beyond the bmp.
174f1c74 1190
7b649478
KH
11912008-12-10 Kenichi Handa <handa@m17n.org>
1192
1193 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1194 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1195 Qunicode_sip.
1196
2133e2d1
JB
11972008-12-10 Juanma Barranquero <lekktu@gmail.com>
1198
1199 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1200 (Fcoding_system_put): Use QCdefault_char.
1201 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1202
9af886ee
CY
12032008-12-09 Chong Yidong <cyd@stupidchicken.com>
1204
74d819eb
CY
1205 * xftfont.c (syms_of_xftfont): Fix typo.
1206
4ccfa1c0 1207 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1208
7c19d3ae
DN
12092008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1210
1211 * emacs.c (main): Close daemon_pipe on exec.
1212
567826bb
CY
12132008-12-08 Chong Yidong <cyd@stupidchicken.com>
1214
1215 * termchar.h (struct tty): New members termcap_term_buffer and
1216 termcap_strings_buffer.
1217
1218 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1219 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1220 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1221 All callers changed.
1222 (init_tty): Store termcap data and string buffers in new struct
1223 tty members termcap_term_buffer and termcap_strings_buffer.
1224 (delete_tty): Free them.
4ccfa1c0 1225 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1226
aa96c42b
SZ
12272008-12-07 Seiji Zenitani <zenitani@mac.com>
1228
1229 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1230 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1231
b7e1d896
CY
12322008-12-06 Chong Yidong <cyd@stupidchicken.com>
1233
1234 * coding.c (make_conversion_work_buffer): Disable buffer
1235 modification hooks in the work buffer.
1236
b5ec91a5
EZ
12372008-12-05 Eli Zaretskii <eliz@gnu.org>
1238
1239 * process.c (procfs_system_process_attributes): If `nread' has a
1240 negative value, assign zero to it.
1241
a5d2a52b
CY
12422008-12-05 Chong Yidong <cyd@stupidchicken.com>
1243
68c5540b 1244 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1245
7bf1bb21
KH
12462008-12-05 Kenichi Handa <handa@m17n.org>
1247
1248 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1249 second character is a combining character.
1250
2fdc7d00
EZ
12512008-12-05 Eli Zaretskii <eliz@gnu.org>
1252
1253 * process.c (procfs_system_process_attributes): Don't use cmd,
1254 cmdsize, and q without initializing them first.
1255
bf6bfba8
JR
12562008-12-04 Jason Rumney <jasonr@gnu.org>
1257
1258 * w32font.c (w32font_draw): Initialize orig_clip before getting
1259 it, and delete it when finished.
1260
a3b1a468
DN
12612008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1262
1263 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1264 case when running as a daemon before detaching.
1265
8b8be8eb
JB
12662008-12-03 Juanma Barranquero <lekktu@gmail.com>
1267
805f2638 1268 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1269
b1bde622
KH
12702008-12-03 Kenichi Handa <handa@m17n.org>
1271
e500c47d
KH
1272 * font.c (font_at): Set `multibyte' at first.
1273
ca516334
KH
1274 * coding.c (decode_coding_charset): Check type of an element of
1275 vector VALIDS.
7bf1bb21 1276 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1277
4ccfa1c0 1278 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1279 (font_for_char): Likewise.
1280
1e5ecd37
CY
12812008-12-03 Chong Yidong <cyd@stupidchicken.com>
1282
d5b01609 1283 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
1284 (font_update_lface): Handle fonts with corrupted size specs,
1285 i.e. non-int and non-float.
d5b01609 1286
11e3a6e4 1287 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 1288 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 1289 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 1290
ab06788b
CY
1291 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
1292
1e5ecd37 1293 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 1294 underline_minimum_offset for underline position.
1e5ecd37 1295
63c125ab
DN
12962008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
1297
1298 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
1299
1300 * character.c (c_string_width): Specify the type for LEN.
1301
3a8406e1
KH
13022008-12-03 Kenichi Handa <handa@m17n.org>
1303
4ccfa1c0 1304 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 1305 (decode_coding_utf_8): Likewise.
4ccfa1c0 1306 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 1307 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 1308
651df7d9
CY
13092008-12-02 Chong Yidong <cyd@stupidchicken.com>
1310
1311 * keyboard.c (make_lispy_position): Only use PT if the selected
1312 window is current.
1313
1f625c6c
AS
13142008-12-02 Andreas Schwab <schwab@suse.de>
1315
f7741ce9
AS
1316 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
1317
1f625c6c
AS
1318 * doprnt.c (doprnt1): Fix size of charbuf.
1319
92bc2678
CY
13202008-12-02 Chong Yidong <cyd@stupidchicken.com>
1321
1322 * keyboard.c (timer_check): Revert last change.
1323
93b9e8cc
JB
13242008-12-02 Juanma Barranquero <lekktu@gmail.com>
1325
1326 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
1327
fd7a37d5
JB
13282008-12-01 Juanma Barranquero <lekktu@gmail.com>
1329
1330 * makefile.w32-in: Update dependencies.
1331 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
1332
c115043b
AS
13332008-12-01 Andreas Schwab <schwab@suse.de>
1334
1335 * font.c (register_font_driver): Use xmalloc.
1336 (font_put_frame_data): Likewise.
1337
f5668d2a
CY
13382008-12-01 Chong Yidong <cyd@stupidchicken.com>
1339
860d96be
CY
1340 * xfaces.c (realize_x_face): Make abort condition clearer.
1341
f5668d2a
CY
1342 * gtkutil.c (update_frame_tool_bar): Initialize variable.
1343
379c17e7
CY
13442008-11-30 Chong Yidong <cyd@stupidchicken.com>
1345
1346 * keyboard.c (timer_check): After a timer runs, ensure that the
1347 selected window's buffer is current.
1348
35f36d65
JB
13492008-11-30 Juanma Barranquero <lekktu@gmail.com>
1350
f952c61c
JB
1351 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
1352 It was accidentally restored by the Unicode merge.
1353
35f36d65
JB
1354 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
1355
b23077df
JB
13562008-11-29 Juanma Barranquero <lekktu@gmail.com>
1357
1358 * w32proc.c: Include "coding.h".
1359 (Fw32_short_file_name): Encode filename passed to Windows API.
1360 (Fw32_long_file_name): Encode filename passed to Windows API and
1361 decode back the result. (Bug#1433)
1362
b8ebe9dd
KH
13632008-11-29 Kenichi Handa <handa@m17n.org>
1364
8cc53f96
KH
1365 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
1366 not before accessing it.
1367
b8ebe9dd
KH
1368 * charset.c (Fdefine_charset_internal): After calculating
1369 min_char, max_char, and fastmap, copy the charset structure again.
1370 (encode_char): Fix the previous change.
1371
59bc82c0
SZ
13722008-11-28 Seiji Zenitani <zenitani@mac.com>
1373
1374 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
1375
1376 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
1377
1378 * nsterm.m (x_set_frame_alpha): New function.
1379
32247e3d
EZ
13802008-11-27 Eli Zaretskii <eliz@gnu.org>
1381
1382 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
1383
b003e5ff
JB
13842008-11-27 Juanma Barranquero <lekktu@gmail.com>
1385
1386 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
1387 pointer to check_face_name.
1388
708550f5
KH
13892008-11-27 Kenichi Handa <handa@m17n.org>
1390
1391 * category.h (SET_CATEGORY_SET): Call set_category_set.
1392 (set_category_set): Extern it.
1393
1394 * category.c (hash_get_category_set): New function.
1395 (Fmodify_category_entry): Adjusted for the change of
1396 char_table_ref_and_range. Call hash_get_category_set to get a
1397 category set to store in the table.
1398
1399 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
1400 Funify_charset.
1401
2ae37cf0 1402 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
1403 (DECODE_CHAR): Check if the decoder vector is ready.
1404 (ENCODE_CHAR): Check if the encoder char-table is ready.
1405 (maybe_unify_char): Extern it.
1406
1407 * charset.c (Vchar_unified_charset_table): Delete it.
1408 (inhibit_load_charset_map): New variable.
1409 (temp_charset_work): New variable.
1410 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
1411 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
1412 New macros.
1413 (load_charset_map): Meaning of control_flag changed. If
1414 inhibit_load_charset_map is nonzero, setup a table in
1415 temp_charset_work.
1416 (load_charset): New argument control_flag.
1417 (map_charset_for_dump): New function.
1418 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
1419 map_charset_for_dump.
1420 (Fdefine_charset_internal): If the charset method is MAP, load
1421 mapping tables by calling load_charset.
1422 (Funify_charset): Don't load a mapping table but directly set
1423 Vchar_unify_table.
1424 (maybe_unify_char): New function.
1425 (decode_char): Don't handle the deleted method MAP_DEFERRED.
1426 Handle the case of inhibit_load_charset_map being nonzero.
1427 (encode_char): Don't handle the deleted method MAP_DEFERRED.
1428 Handle the case of inhibit_load_charset_map being nonzero.
1429 (Fclear_charset_maps): Just free temp_charset_work.
1430 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
1431 variable.
1432
1433 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
1434 change of char_table_ref_and_range.
1435 (char_table_ref_and_range): Change the meaning of argument FROM
1436 and TO. Now the caller must provide initial values for *FROM
1437 and *TO.
1438
1439 * fontset.c (fontset_add): Adjusted for the change of
1440 char_table_ref_and_range.
1441 (fontset_get_font_group): Likewise.
1442 (Ffontset_info): Likewise.
1443
1444 * keymap.c (describe_vector): Adjusted for the change of
1445 char_table_ref_and_range. For char-table, put boundary between
1446 non-ASCII and 8-bit characters.
1447
1448 * print.c (print_object): For bool-vector, delete unnecessary
1449 check of ASCII_BYTE_P.
1450
9196133b
JR
14512008-11-26 Jason Rumney <jasonr@gnu.org>
1452
1453 * w32font.c (w32font_open_internal): Don't include external
9acef61c 1454 leading in font height. (Bug#879)
9196133b 1455
9f688acf
GM
14562008-11-26 Glenn Morris <rgm@gnu.org>
1457
1458 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
1459 redefinition with ifdef. (Bug#1383)
1460
90d19aff
AR
14612008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1462
1463 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
1464
4ccfa1c0 14652008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
1466
1467 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
1468 New EmacsView methods.
1469 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
1470 Fixes bug #1048,1357,1414.
1471
14722008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1473
1474 Fix bug #1362.
1475 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
1476 is not an indexed color.
1477 * nsterm.m (free_indexed_color): Add argument checking.
1478 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
1479
e7d5ecb3
CY
14802008-11-24 Chong Yidong <cyd@stupidchicken.com>
1481
1482 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
1483 Document confirm-after-completion value for
1484 minibuffer-completion-confirm.
1485
c285743c
JR
14862008-11-24 Jason Rumney <jasonr@gnu.org>
1487
1488 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
1489 warning.
1490
b0857706
JR
14912008-11-23 Jason Rumney <jasonr@gnu.org>
1492
1493 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
1494 restored before returning.
1495
1496 * w32font.c (check_face_name): New function.
1497 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 1498 fonts. (Bug#642)
b0857706 1499
ee50ff07
MR
15002008-11-22 Martin Rudalics <rudalics@gmx.at>
1501
1502 * buffer.c (Fswitch_to_buffer): Reword and mention new option
1503 confirm-nonexistent-file-or-buffer in doc-string.
1504
b8ff72fa
SM
15052008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
1506
1507 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
1508 Fix copy/paste typo. Add checks.
1509
cee53ed4
KH
15102008-11-21 Kenichi Handa <handa@m17n.org>
1511
1512 * coding.c (detect_coding_iso_2022): Reject invalid composition
1513 sequence.
1514 (DECODE_COMPOSITION_START): If the current source is the last
1515 block, and the current composition doesn't end, regard this
1516 sequence as invalid.
1517 (decode_coding_iso_2022): Handle invalid composition sequence.
1518
f6ef1e65
MR
15192008-11-20 Martin Rudalics <rudalics@gmx.at>
1520
1521 * window.c (coordinates_in_window): Don't return
1522 ON_VERTICAL_BORDER for the rightmost position of a mode/header
1523 line when the window is not the rightmost one. (Bug#1372)
1524
e08b1705
MR
15252008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
1526
1527 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
1528
ad98e89f
EZ
15292008-11-15 Eli Zaretskii <eliz@gnu.org>
1530
1531 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
1532 and bright_bg if noninteractive is non-zero.
1533
fb098a4b
CY
15342008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1535
1536 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
1537 x_draw_glyph_string_background.
1538
1539 * w32term.c (x_draw_glyph_string): Likewise.
1540
ce952b6e
CY
15412008-11-15 Chong Yidong <cyd@stupidchicken.com>
1542
1543 * xterm.c (x_draw_glyph_string): Stop drawing the background of
1544 the next glyph string once past the overhang width.
1545
1546 * nsterm.m (ns_draw_glyph_string): Likewise.
1547
1548 * w32term.c (x_draw_glyph_string): Likewise.
1549
26ea7079
CY
15502008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
1551
1552 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
1553 double file close.
1554
1c33c906
MR
15552008-11-14 Martin Rudalics <rudalics@gmx.at>
1556
1557 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
1558 dedicated status of window before attempting to display another
1559 buffer in it.
1560
8fc29035
JB
15612008-11-14 Juanma Barranquero <lekktu@gmail.com>
1562
1563 * msdos.c (Fmsdos_long_file_names):
1564 (syms_of_msdos) <dos-unsupported-char-glyph>:
1565 * dosfns.c (Fint86): Fix typos in docstrings.
1566
55fb4286
EZ
15672008-11-14 Eli Zaretskii <eliz@gnu.org>
1568
1569 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
1570
3fda0315
KY
15712008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
1572
1573 * puresize.h (BASE_PURESIZE): Increase to 1260000.
1574
7e849c17
CY
15752008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
1576
1577 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
1578
1579 * frame.h: Negative alpha means "don't touch".
1580
1581 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
1582
1583 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
1584
b9fd67bd
DN
15852008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
1586
1587 * hftctl.c:
1588 * chpdef.h:
1589 * acldef.h: Remove files used only for systems no longer supported.
1590
1591 * Makefile.in: Fix .o alphabetical ordering.
1592 (hftctl.o): Remove dependency, file removed.
1593 (keymap.o, print.o): Depend on charset.h.
1594
d5998e03
KH
15952008-11-10 Kenichi Handa <handa@m17n.org>
1596
2ae37cf0 1597 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 1598
be70e183
CY
15992008-11-08 Chong Yidong <cyd@stupidchicken.com>
1600
1601 * dired.c (file_name_completion): If completion_ignore_case is
1602 enabled, ignore case when checking completion-regexp-list.
1603
7cf94eac
EZ
16042008-11-08 Eli Zaretskii <eliz@gnu.org>
1605
1606 * vm-limit.c (get_lim_data): Fix last change.
1607
ee107a89
KH
16082008-11-08 Kenichi Handa <handa@m17n.org>
1609
1610 * character.c (Fget_byte): New function.
1611 (syms_of_character): Defsubr Fget_byte.
1612
5fd15622
CY
16132008-11-07 Chong Yidong <cyd@stupidchicken.com>
1614
1615 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
1616 cursor position is valid after scrolling.
1617
13d62fad
JB
16182008-11-06 Juanma Barranquero <lekktu@gmail.com>
1619
1620 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
1621
a1dd2936
GM
16222008-11-06 Glenn Morris <rgm@gnu.org>
1623
1624 * xterm.c (handle_one_xevent): Don't let popup menus cause
1625 mouse-autoselect-window related window switching. (Bug#1261)
1626
860cd236
CY
16272008-11-04 David Smith <davidsmith@acm.org> (tiny change)
1628
1629 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
1630
653a3150
AS
16312008-11-04 Andreas Schwab <schwab@suse.de>
1632
1633 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
1634
870f5cac
CY
16352008-11-03 Chong Yidong <cyd@stupidchicken.com>
1636
1637 * xfns.c (Fx_wm_set_size_hint): New function.
1638
1e02f3cb
MR
16392008-11-03 Martin Rudalics <rudalics@gmx.at>
1640
1641 * textprop.c (Fprevious_single_char_property_change): Return 0
1642 when there's no change in a string. (Bug#1301)
1643
e630dfc6
MR
16442008-11-02 Martin Rudalics <rudalics@gmx.at>
1645
1646 * frame.c (do_switch_frame): New argument NORECORD passed to
1647 Fselect_window.
1648 (Fselect_frame): New argument NORECORD passed to
1649 do_switch_frame.
1650 (Fset_frame_selected_window): New argument NORECORD passed to
1651 Fselect_frame.
1652 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
1653 in call of do_switch_frame.
1654 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
1655 Handle NORECORD argument in call of Fselect_frame.
1656 * lisp.h (do_switch_frame, Fselect_frame)
1657 (Fset_frame_selected_window): Adjust declarations.
1658 * window.c (select_frame_norecord): New function.
1659 (run_window_configuration_change_hook): Use it and call
1660 Fselect_frame with NORECORD set.
1661 (Fselect_window): Pass NORECORD to Fselect_frame.
1662 (Fset_window_configuration): Handle NORECORD argument in call of
1663 do_switch_frame.
1664 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
1665 Fset_frame_selected_window.
1666 * keyboard.c (command_loop_1): Handle NORECORD in call of
1667 Fselect_frame (currently ifdefd).
1668
9020b223
GM
16692008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
1670
1671 * emacs.c (USAGE2): Untabify.
1672
793ffee8
SM
16732008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1674
1675 * composite.c (fill_gstring_header): Fix copy/paste typo.
1676
ab6d1131
MR
16772008-10-31 Martin Rudalics <rudalics@gmx.at>
1678
1679 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
1680 (Fother_window): Rename argument and rewrite doc-string.
1681 (select_window_norecord): Fix return value. (Bug#1276)
1682
601a9cf1
JB
16832008-10-30 Juanma Barranquero <lekktu@gmail.com>
1684
1685 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
1686 new frames overriding foreground for tooltips. Based on similar patch
1687 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
1688
813b0652
CY
16892008-10-29 Chong Yidong <cyd@stupidchicken.com>
1690
1691 * emacs.c (Fdaemon_initialized): Initialize nfd.
1692
4414f58f
MR
16932008-10-29 Martin Rudalics <rudalics@gmx.at>
1694
1695 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
1696 (Fwindow_text_height): Clarify doc-strings.
1697 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
1698 doc-string of window-scroll-functions.
1699
ecdcaa09
RS
17002008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
1701
1702 * category.c (syms_of_category): Fix typo in docstring.
1703
23fe745a
JB
17042008-10-28 Juanma Barranquero <lekktu@gmail.com>
1705
1706 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
1707 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
1708 Fix typos in docstrings.
1709
ff808935
DN
17102008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
1711
1712 * emacs.c (daemon_pipe): Make non-static.
1713 (IS_DAEMON): Move definition ...
1714 * lisp.h (IS_DAEMON): ... here.
1715 (daemon_pipe): Declare.
1716 (is_daemon): Remove.
1717 * dispnew.c (init_display): Use IS_DAEMON.
1718
fc012771
SM
17192008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1720
1721 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
1722 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
1723
1724 * emacs.c (is_daemon): Remove.
1725 (main): Don't set is_daemon.
1726 (IS_DAEMON): New macro.
1727 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 1728 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
1729 parent exits.
1730 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
1731
d8bdbe6f
CY
17322008-10-27 Chong Yidong <cyd@stupidchicken.com>
1733
d1a072bf
CY
1734 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
1735 over-sized glyph, draw it with the default glyph width.
1736
e2e325aa
CY
1737 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1738 glyph, draw it with the default glyph width.
1739
1740 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1741 glyph, draw it with the default glyph width.
1742
d8bdbe6f
CY
1743 * xdisp.c (try_scrolling): When computing the distance from the
1744 scroll margin to PT, try moving some distance past the window
1745 bottom before giving up.
1746
7bfac547
MR
17472008-10-27 Martin Rudalics <rudalics@gmx.at>
1748
1749 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
1750 (Fset_window_buffer): Explain in doc-string that a window can be
1751 "strongly" dedicated to its buffer.
1752
4ff029f6
DN
17532008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
1754
1755 * emacs.c (daemon_name): New variable.
1756 (main): Deal with --daemon=SERVER_NAME.
1757 (Fdaemonp): Return a name if one was passed to --daemon.
1758
5790ef40
DN
17592008-10-26 Romain Francoise <romain@orebokech.com>
1760
f9bd0df9 1761 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
1762 (main): Create a pipe before forking, make the parent exit only after
1763 the child has closed its end of the pipe. Move closing the
1764 descriptors ...
1765 (Fdaemon_initialized): ... here. New function.
1766
f5385255
SM
17672008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
1768
4d632321
SM
1769 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
1770 the previous unoptimized table.
1771
f5385255
SM
1772 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
1773 the distinction between non-nil and non-t value of `dedicated'.
1774
6c56a0f3
CY
17752008-10-25 Chong Yidong <cyd@stupidchicken.com>
1776
1777 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 1778 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 1779
fec89261
MR
17802008-10-25 Martin Rudalics <rudalics@gmx.at>
1781
1782 * window.c (Fget_buffer_window, Fdelete_windows_on)
1783 (Freplace_buffer_in_windows): Make buffer argument optional and
1784 rename to buffer_or_name.
1785
34fcddd0
CY
17862008-10-24 Chong Yidong <cyd@stupidchicken.com>
1787
f5385255
SM
1788 * xdisp.c (handle_single_display_spec, handle_display_prop):
1789 Undo 2005-05-16 change.
34fcddd0
CY
1790 (handle_stop): Pop iterator if it's loaded with an empty string.
1791 (get_overlay_strings_1): Don't save iterator if it's loaded with
1792 an empty string (bug#1201).
1793
064766f2
KH
17942008-10-24 Kenichi Handa <handa@m17n.org>
1795
1796 * ftfont.c (ftfont_otf_features): Fix previous change.
1797 (ftfont_otf_capability): Check FeatureList.FeatureCount before
1798 calling ftfont_otf_features.
1799
f9bd0df9 18002008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
1801
1802 * font.c (font_match_p): Fix for the case that a vector of
1803 characters is in script-representative-chars.
1804
1dae9197
MA
18052008-10-24 Michael Albinus <michael.albinus@gmx.de>
1806
1807 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 1808 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
1809 (xd_read_queued_messages): Catch Qdbus_error from the macros.
1810 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
1811 macro. (Bug#1186).
1812
f9bd0df9 18132008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
1814
1815 * s/sol2-10.h: New file.
1816
878a4584
JB
18172008-10-23 Juanma Barranquero <lekktu@gmail.com>
1818
1819 * xdisp.c (fill_glyph_string): Fix typo in source (though the
1820 poor beast has survived 9+ years and the jump from xterm.c!).
1821
cd265ca6
MR
18222008-10-23 Martin Rudalics <rudalics@gmx.at>
1823
1824 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
1825 Reword doc-string.
f5385255 1826 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 1827
472a4dc9
JB
18282008-10-23 Juanma Barranquero <lekktu@gmail.com>
1829
1830 * character.c (syms_of_character) <script-representative-chars>:
1831 <unicode-category-table>: Doc fixes.
1832
159bd5a2
NF
18332008-10-23 Noah Friedman <friedman@splode.com>
1834
1835 * coding.c (make_conversion_work_buffer): Check that
1836 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
1837 Fget_buffer_create.
1838
49f9c344
KH
18392008-10-23 Kenichi Handa <handa@m17n.org>
1840
1841 * font.c (font_add_log): Check the values of extra properties.
1842
12bb3111
MR
18432008-10-22 Martin Rudalics <rudalics@gmx.at>
1844
1845 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1846 Reword doc-string.
1847 (Fset_window_parameter): Use NILP.
1848 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 1849 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 1850
bbeb4e99
JB
18512008-10-22 Juanma Barranquero <lekktu@gmail.com>
1852
1853 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
1854
18552008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
1856
1857 * nsfns.m (ns_appkit_version): New function.
1858 (x-server-version): Use it.
1859 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
1860 (x-server-vendor): Don't check_ns().
1861
1862 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
1863
a9b555d3
JB
18642008-10-22 Juanma Barranquero <lekktu@gmail.com>
1865
1866 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
1867 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
1868
4626499f
KH
18692008-10-22 Kenichi Handa <handa@m17n.org>
1870
e3681952
KH
1871 * syntax.c (scan_words): Call word_boundary_p instead of comparing
1872 scripts.
1873
4626499f
KH
1874 * category.c (word_boundary_p): Check scripts instead of charset.
1875 Handle nil value in word-separating-categories and
1876 word-combining-categories.
1877 (syms_of_category): Fix docstrings of word-separating-categories
1878 and word-combining-categories.
1879
1560f91a
EZ
18802008-10-21 Eli Zaretskii <eliz@gnu.org>
1881
1882 * coding.c (Fencode_coding_region, Fdecode_coding_region)
1883 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
1884
f4668441
MR
18852008-10-21 Martin Rudalics <rudalics@gmx.at>
1886
1887 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
1888 Rename arg "buffer" to "buffer_or_name".
1889 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
1890 it optional.
1891 (no_switch_window): Remove since the return value is not used.
a9b555d3 1892 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
1893 Consider window as dedicated when Fwindow_dedicated_p returns a
1894 non-nil value.
1895 * lisp.h: Remove prototype for no_switch_window.
1896
fd75ddb2
JD
18972008-10-21 Jan Djärv <jan.h.d@swipnet.se>
1898
1899 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 1900 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 1901
07295713
KH
19022008-10-21 Kenichi Handa <handa@m17n.org>
1903
1904 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
1905 check Vlatin_extra_code_table.
1906
712adc82
EZ
19072008-10-20 Eli Zaretskii <eliz@gnu.org>
1908
1909 * fileio.c (Fset_file_modes): Doc fix.
1910
f549eb0b
MA
19112008-10-19 Michael Albinus <michael.albinus@gmx.de>
1912
1913 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
1914 in arrays.
1915
aac0c6e3
MR
19162008-10-19 Martin Rudalics <rudalics@gmx.at>
1917
1918 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1919 Mention kill-buffer in doc-string.
1920 (Fset_window_buffer): Reinsert tem check removed in last commit.
1921 (Fenlarge_window, Fshrink_window): Have argument names and
1922 doc-string follow Elisp manual more closely.
1923
19242008-10-18 Eli Zaretskii <eliz@gnu.org>
1925
1926 * fileio.c (Fset_file_modes): Doc fix.
1927
19282008-10-18 Martin Rudalics <rudalics@gmx.at>
1929
1930 * window.c (Fwindow_width, Fset_window_start)
1931 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
1932 (Fdelete_windows_on, Freplace_buffer_in_windows):
1933 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
1934 (Fwindow_dedicated_p): Make window argument optional.
1935 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
1936 (Fset_window_buffer): Respect any non-nil dedicated value for
1937 window. Rename "buffer" argument to "buffer_or_name".
1938
19392008-10-18 Ulrich Mueller <ulm@gentoo.org>
1940
1941 * m/sh3.h: New file, machine description for SuperH.
1942
19432008-10-17 Martin Rudalics <rudalics@gmx.at>
1944
1945 * window.c (Fsplit_window): Rename arg horflag to horizontal.
1946
19472008-10-17 Kenichi Handa <handa@m17n.org>
1948
1949 * ftfont.c (ftfont_otf_features): Fix indexing
1950 gsub_gpos->FeatureList.Feature. Check the validity of indices.
1951
19522008-10-16 Magnus Henoch <mange@freemail.hu>
1953
1954 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
1955 (Fdbus_call_method_asynchronously): Ditto.
1956 This change makes C-h f display the argument list.
1957
19582008-10-16 Chong Yidong <cyd@stupidchicken.com>
1959
1960 * fileio.c (Fexpand_file_name): Doc fix.
1961
1962 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
1963 of :foreground and :background equivalent to unspecified (20.x
1964 compatibility).
1965
19662008-10-15 Eli Zaretskii <eliz@gnu.org>
1967
1968 * buffer.c (syms_of_buffer): Doc fix.
1969
19702008-10-14 Kenichi Handa <handa@m17n.org>
1971
1972 * font.c (font_clear_prop): When clearing font width, clear the
1973 average width field too.
1974
19752008-10-12 Andreas Schwab <schwab@suse.de>
1976
1977 * ftfont.c (ftfont_shape_by_flt): Make static.
1978 * ftfont.h (ftfont_shape_by_flt): Don't declare.
1979
1980 * font.c: Don't include <m17n-flt.h>.
1981
19822008-10-10 Eli Zaretskii <eliz@gnu.org>
1983
1984 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
1985
19862008-10-09 Eli Zaretskii <eliz@gnu.org>
1987
1988 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
1989 away code.
1990
19912008-10-09 Chong Yidong <cyd@stupidchicken.com>
1992
1993 * dispnew.c (update_text_area): Avoid looping due to large glyph
1994 overhangs (bug#1070).
1995
19962008-10-09 Kenichi Handa <handa@m17n.org>
1997
1998 * fontset.c (face_for_char): If face->fontset is negative, just
1999 return ascii_face.
2000
f5385255
SM
2001 * font.c (font_delete_unmatched): Fix previous change.
2002 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2003
20042008-10-09 Martin Rudalics <rudalics@gmx.at>
2005
2006 * frame.c (Fraise_frame): On text-only terminals select frame in
2007 order to make it visible. (Bug#1061)
2008
20092008-10-08 Chong Yidong <cyd@stupidchicken.com>
2010
2011 * fontset.c (fontset_find_font): Check frame validity.
2012
20132008-10-07 Chong Yidong <cyd@stupidchicken.com>
2014
a9b555d3 2015 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2016 (xg_display_close): Allow Emacs to close all displays (bug#985).
2017
20182008-10-06 Andreas Schwab <schwab@suse.de>
2019
f5385255 2020 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2021
20222008-10-06 Chong Yidong <cyd@stupidchicken.com>
2023
f5385255 2024 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2025
a9b555d3 2026 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2027
2028 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2029 during initialization.
2030
20312008-10-04 Eli Zaretskii <eliz@gnu.org>
2032
2033 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2034 whole thing on MSDOS frames as well as on a TTY.
2035
2036 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2037 well as for TTY.
2038 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2039 well as on a TTY.
2040
2041 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2042 as well as for TTY.
2043
2044 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2045
2046 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2047 MSDOS frames as well.
2048
20492008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2050
2051 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2052 correct arguments.
2053 * menu.c (find_and_return_menu_selection) Add cast.
2054
20552008-10-03 Glenn Morris <rgm@gnu.org>
2056
2057 * emacs.c (USAGE1): Add --daemon.
2058
20592008-10-02 Eli Zaretskii <eliz@gnu.org>
2060
2061 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
2062 100, so it's in percents as advertised.
2063
20642008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2065
2066 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
2067 (ns_output.current_cursor, ns_output.desired_cursor)
2068 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
2069 (FRAME_NEW_CURSOR_COLOR): Remove.
2070
2071 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 2072 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
2073 enumeration (HOLLOW_BOX_CURSOR, etc.).
2074
2075 * nsterm.m (ns_frame_rehighlight): Remove commented code.
2076 (draw_window_cursor): Simplify code.
f5385255
SM
2077 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
2078 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 2079 updates manually.
a9b555d3
JB
2080 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
2081 Use core Emacs cursor types.
aac0c6e3 2082
b8ff72fa 2083 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
2084
20852008-10-02 Martin Rudalics <rudalics@gmx.at>
2086
2087 * process.c (Faccept_process_output): Fix doc-string.
2088
20892008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2090
2091 * gmalloc.c (__sbrk): Also define for uClibc.
2092
2093 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2094 for uClibc.
2095
20962008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2097
2098 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2099 styles.
2100 (nsfont_open): Reenable the cache.
2101
21022008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2103
2104 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2105 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2106
21072008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2108
2109 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2110 a suspended terminal.
2111
21122008-09-30 Michael Albinus <michael.albinus@gmx.de>
2113
2114 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2115
21162008-09-30 Eli Zaretskii <eliz@gnu.org>
2117
2118 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2119
21202008-09-30 Chong Yidong <cyd@stupidchicken.com>
2121
2122 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2123 in a continued line coincides with a line beginning.
2124
21252008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2126
2127 * nsfont.m (nsfont_trait_distance): Fix bug.
2128 (nsfont_list): Return a list rather than a vector (syncs with Handa
2129 changes of 2008-05-14).
2130 (nsfont_open): Improve logging.
2131
21322008-09-29 Andreas Schwab <schwab@suse.de>
2133
2134 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2135
21362008-09-28 Martin Rudalics <rudalics@gmx.at>
2137
2138 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2139 name as char-resolve-modifiers.
2140 Reported by: Markus Triska <markus.triska@gmx.at>
2141
21422008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2143
2144 * dispnew.c (init_display): Return earlier when running as a daemon.
2145
21462008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2147
2148 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2149
21502008-09-27 Eli Zaretskii <eliz@gnu.org>
2151
2152 * composite.c (Fcomposition_get_gstring)
2153 (Fcompose_region_internal, Fcompose_string_internal)
2154 (Ffind_composition_internal): Doc fix.
2155 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2156 (syms_of_composite) <auto-composition-function>: Doc fix.
2157 (syms_of_composite) <composition-function-table>: Doc fix.
2158
21592008-09-25 Chong Yidong <cyd@stupidchicken.com>
2160
2161 * search.c (wordify): New argument for lax word-ends.
2162 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2163
21642008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2165
2166 * lisp.h (is_daemon): Declare.
2167 * dispnew.c (init_display): Do not try to initialize the terminal
2168 when running as a daemon.
2169
21702008-09-22 Chong Yidong <cyd@stupidchicken.com>
2171
2172 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2173 x_display_pixel_height.
2174
21752008-09-22 Martin Rudalics <rudalics@gmx.at>
2176
2177 * undo.c (record_point): Don't call Fundo_boundary for first
2178 change. (Bug#731)
2179
21802008-09-22 Juanma Barranquero <lekktu@gmail.com>
2181
2182 * emacs.c (Fdaemonp): Doc fix.
2183
21842008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2185
2186 * emacs.c (main): Place #ifdef in the proper place.
2187
21882008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2189
2190 * emacs.c (standard_args): Add --daemon.
2191 (main): Disconnect from the terminal when --daemon is passed.
2192 (is_daemon): New variable.
2193 (Fdaemonp): New function.
2194 (syms_of_emacs): Defsubr it.
2195
21962008-09-20 Chong Yidong <cyd@stupidchicken.com>
2197
2198 * xdisp.c (get_next_display_element): Handle string display
2199 correctly when checking for the end of a box run.
2200
22012008-09-20 Glenn Morris <rgm@gnu.org>
2202
2203 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2204 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2205 (Frename_file): Avoid copying to trash if a rename involves
2206 a delete. (Bug#964).
2207
22082008-09-20 Eli Zaretskii <eliz@gnu.org>
2209
2210 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2211 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2212 frames as well as termcap frames.
2213 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2214 get_named_tty.
2215
22162008-09-19 Eli Zaretskii <eliz@gnu.org>
2217
2218 * process.c (procfs_system_process_attributes): Fix cmdline in
2219 case /proc/PID/cmdline is empty.
2220
2221 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2222 x_display_pixel_height.
2223
22242008-09-19 Juanma Barranquero <lekktu@gmail.com>
2225
2226 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2227
2228 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2229 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2230
22312008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2232
2233 * dispextern.h (struct it): Move line_wrap away from the middle of
2234 bitfields. Move voffset in struct iterator_stack_entry after the
2235 bitfields. Move tab_width near after another short.
2236
22372008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2238
2239 * frame.h (struct frame): Move alpha from the middle of bitfields.
2240
2241 * window.h (struct window): Move frozen_window_start_p after the
2242 rest of the bitfields to reduce padding.
2243
22442008-09-18 Chong Yidong <cyd@stupidchicken.com>
2245
2246 * xterm.h (x_display_info): Remove `height' and `width' members.
2247
2248 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2249
2250 * w32term.h (w32_display_info): Remove `height', `width',
2251 `height_in', and `width_in' members.
2252
b8ff72fa
SM
2253 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2254 New functions.
aac0c6e3
MR
2255 (x_calc_absolute_position): Use them.
2256 (x_term_init): Omit removed `height' and `width' members.
2257
b8ff72fa
SM
2258 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2259 New functions.
aac0c6e3
MR
2260 (w32_read_socket, x_calc_absolute_position): Use them.
2261 (w32_initialize_display_info, w32_term_init): Omit removed members
2262 of w32_display_info.
2263
b8ff72fa
SM
2264 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2265 New functions.
2266 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2267
b8ff72fa
SM
2268 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2269 New functions.
aac0c6e3
MR
2270 (x_calc_absolute_position): Use them.
2271 (x_term_init): Omit removed `height' and `width' members.
2272
2273 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2274 (compute_tip_xy):
2275 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2276 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2277 x_display_pixel_width.
2278
22792008-09-18 Kenichi Handa <handa@m17n.org>
2280
2281 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2282 (composition_compute_stop_pos): Fix handling of static composition.
2283 (Fcomposition_get_gstring): Check FROM and TO at first.
2284
22852008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2286
2287 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
2288 mixup (YAILOM).
2289
22902008-09-17 Chong Yidong <cyd@stupidchicken.com>
2291
2292 * indent.c (Fvertical_motion): Use position reported by iterator
2293 instead of PT for determining screen motion (bug#943).
2294
22952008-09-17 Romain Francoise <romain@orebokech.com>
2296
2297 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
2298
22992008-09-17 Kenichi Handa <handa@m17n.org>
2300
2301 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
2302
2303 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
2304 if necessary.
2305
23062008-09-16 Kenichi Handa <handa@m17n.org>
2307
2308 * coding.c (make_conversion_work_buffer): Avoid calling
2309 Fget_buffer_create if it is not necessary.
2310
23112008-09-15 Martin Rudalics <rudalics@gmx.at>
2312
2313 * window.c (Fselect_window): Don't update window_select_count and
2314 use_time when norecord is not nil.
2315
23162008-09-14 Kenichi Handa <handa@m17n.org>
2317
2318 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
2319 specpdl_ptr.
2320
23212008-09-12 Kenichi Handa <handa@m17n.org>
2322
2323 * indent.c (scan_for_column): Don't handle automatic composition
2324 if the current buffer is not associated with a window.
2325
2326 * composite.c (composition_reseat_it): If the current buffer is
2327 not associated with a window, ignore the automatic composition.
2328 (find_automatic_composition): Likewise.
2329
23302008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2331
2332 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
2333 (Fgpm_mouse_stop): Use it.
2334 * termhooks.h (close_gpm): Declare.
2335 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
2336 connection if Gpm_GetEvent fails.
2337
2338 * window.c (set_window_buffer): Always preserve current-buffer.
2339
23402008-09-12 Glenn Morris <rgm@gnu.org>
2341
2342 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
2343
23442008-09-11 Glenn Morris <rgm@gnu.org>
2345
2346 * charset.c (charset-map-path): Doc fix.
2347
23482008-09-10 Kenichi Handa <handa@m17n.org>
2349
2350 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
2351
2352 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
2353 compose a grapheme cluster with the preceding base glyph.
2354
2355 * composite.c (composition_compute_stop_pos): Fix previous change.
2356 Reset cmp_it->id to -1 at first.
2357
23582008-09-10 Glenn Morris <rgm@gnu.org>
2359
2360 * Makefile.in (character.o, chartab.o): Fix config.h typo.
2361
23622008-09-09 Chong Yidong <cyd@stupidchicken.com>
2363
2364 * keyboard.c (read_key_sequence): Reapply translation maps when
2365 switching keyboards.
2366
23672008-09-09 Kenichi Handa <handa@m17n.org>
2368
2369 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
2370 characters.
2371
2372 * composite.c (FORWARD_CHAR): Fix calculation
2373 of (POSITION).pos_byte.
2374 (composition_compute_stop_pos): Limit the search of composition to
2375 at most 500 characters ahead. If we reach the limit or find a
2376 newline, set cmp_it->ch to -2 and return 0.
2377 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
2378
23792008-09-08 Kenichi Handa <handa@m17n.org>
2380
2381 * indent.c (Fvertical_motion): Be sure to set
2382 it_overshoot_expected if it.cmp_it.id is non-negative.
2383
23842008-09-07 Andreas Schwab <schwab@suse.de>
2385
2386 * callproc.c (Fcall_process): Don't hold references to string data
2387 across garbage collection. Move initialisation of new_argv down
2388 to avoid compiler bug.
2389
23902008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2391
2392 * process.c (Fsystem_process_attributes): Doc fix.
2393
23942008-09-07 Chong Yidong <cyd@stupidchicken.com>
2395
2396 * callproc.c (Fcall_process): Canonicalize current directory name.
2397
2398 * xdisp.c (move_it_to): When moving by vpos, ensure that the
2399 iterator advances to the next line if the current line ends in a
2400 continued tab.
2401
24022008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
2403
2404 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
2405 member to point to cmp_from.
2406
2407 * xdisp.c: Doc fix for references to gidx data member.
2408
24092008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2410
2411 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
2412
24132008-09-07 Kenichi Handa <handa@m17n.org>
2414
2415 * composite.c (FORWARD_CHAR): Check STOP after
2416 incrementing (POSITION).pos.
2417
24182008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2419
2420 * process.c (Fsystem_process_attributes): Doc fix.
2421
24222008-09-06 Chong Yidong <cyd@stupidchicken.com>
2423
2424 * keyboard.c (Ftop_level): Doc fix.
2425
24262008-09-06 Eli Zaretskii <eliz@gnu.org>
2427
2428 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
2429 minibuffer, don't let lower part of menu invade the echo area.
2430
2431 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
2432 "char *q" to access menu text and advance through it. Revert the
2433 change that displayed ">" instead of ASCII character 0x10.
2434
24352008-09-05 Eli Zaretskii <eliz@gnu.org>
2436
2437 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
2438 toggle boxes and radio buttons on MS-DOS as well.
2439
24402008-09-05 Kenichi Handa <handa@m17n.org>
2441
2442 * composite.c (autocmp_chars): Check lookback count.
2443 (composition_compute_stop_pos): Set cmp_it->lookback.
2444 (composition_reseat_it): Check lookback count.
2445 (struct position_record): New struct.
2446 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
2447 (find_automatic_composition): New function.
2448 (composition_adjust_point): Use find_automatic_composition.
2449
2450 * dispextern.h (struct composition_it): New member lookback.
2451
24522008-09-02 Chong Yidong <cyd@stupidchicken.com>
2453
2454 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
2455 if moving by a single line.
2456
24572008-09-02 Andreas Schwab <schwab@suse.de>
2458
2459 * xterm.c (x_delete_display): Fix merge error.
2460
2461 * fileio.c (Fexpand_file_name): Remove unused variables.
2462
24632008-09-02 Eli Zaretskii <eliz@gnu.org>
2464
2465 * fileio.c (Fexpand_file_name): Copy argument `name' into local
2466 storage on all platforms, not just on DOS_NT.
2467
24682008-09-02 Jason Rumney <jasonr@gnu.org>
2469
b8ff72fa
SM
2470 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
2471 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
2472
24732008-09-01 Chong Yidong <cyd@stupidchicken.com>
2474
2475 * xfaces.c (Finternal_set_alternative_font_family_alist)
2476 (Finternal_set_alternative_font_registry_alist): Properly copy
2477 entire alist structure.
2478
24792008-09-01 Kenichi Handa <handa@m17n.org>
2480
d66c0241 2481 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 2482 representative chars of the script is a vector.
d66c0241
JB
2483 (ftfont_list): Handle the case where the representative chars of
2484 the script is a vector.
aac0c6e3
MR
2485
2486 * character.c (syms_of_character): Docstring of
2487 script-representative-chars fixed.
2488
24892008-08-31 Eli Zaretskii <eliz@gnu.org>
2490
2491 * msdos.c (BUILD_CHAR_GLYPH): New macro.
2492 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
2493 the menu. Allocate larger buffer for `text', to account for
2494 possible ^C characters.
2495
24962008-08-31 Martin Rudalics <rudalics@gmx.at>
2497
2498 * xdisp.c (prepare_menu_bars): Don't call
2499 Vwindow_size_change_functions with arg Qt.
2500
25012008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2502
2503 * font.h (font_range):
2504 * fileio.c (report_file_error):
2505 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
2506
25072008-08-30 Glenn Morris <rgm@gnu.org>
2508
2509 * data.c (Fmake_variable_frame_local): Doc fix.
2510
2511 * frame.c (Fmodify_frame_parameters): Doc fix.
2512
25132008-08-30 Eli Zaretskii <eliz@gnu.org>
2514
2515 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
2516 needed by GetTokenInformation.
2517 (w32_system_process_attributes): Check return values of all system
2518 APIs.
2519
2520 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
2521 only when the state changes.
2522 (IT_update_begin, IT_update_end): Add termscript trace.
2523
2524 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
2525 clipboard is unavailable. Set dst to NULL if it doesn't point to
2526 malloc'ed data.
2527 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
2528 passing random values to xfree.
2529
2530 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 2531 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
2532
25332008-08-29 Jason Rumney <jasonr@gnu.org>
2534
2535 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
2536
25372008-08-29 Eli Zaretskii <eliz@gnu.org>
2538
2539 * composite.c (fill_gstring_body): Avoid compiler warnings.
2540
2541 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
2542 LGLYPH_SET_CODE to avoid compiler warnings.
2543
2ae37cf0 2544 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
2545
2546 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
2547
2548 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
2549 LGLYPH_SET_CODE.
2550
25512008-08-29 Kenichi Handa <handa@m17n.org>
2552
2553 * fileio.c (report_file_error): Don't downcase the first character
2554 of errstring if it is still unibyte.
2555
25562008-08-29 Kenichi Handa <handa@m17n.org>
2557
2558 These changes are to re-implement the automatic composition so
2559 that it doesn't use text properties.
2560
2561 * Makefile.in (ftfont.o): Depend on composite.h.
2562 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
2563
2564 * character.h (Vunicode_category_table): Extern it.
2565
2566 * character.c (Vunicode_category_table): New variable.
2567 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
2568
2569 * chartab.c (optimize_sub_char_table): Perform more greedy
2570 optimization.
2571
b8ff72fa
SM
2572 * composite.h (enum composition_method):
2573 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
2574 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
2575 (Vcomposition_function_table): Extern it.
2576 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
2577 (composition_gstring_put_cache, composition_gstring_from_id)
2578 (composition_gstring_p, composition_gstring_width)
2579 (composition_compute_stop_pos, composition_reseat_it)
2580 (composition_update_it, composition_adjust_point): Extern them.
2581 (Fcomposition_get_gstring): EXFUN it.
2582
d66c0241 2583 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
2584 (Vcomposition_function_table)
2585 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
2586 (gstring_hash_table, gstring_work, gstring_work_headers):
2587 New variables.
aac0c6e3
MR
2588 (gstring_lookup_cache, composition_gstring_put_cache)
2589 (composition_gstring_from_id, composition_gstring_p)
2590 (composition_gstring_width, fill_gstring_header)
2591 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
2592 (composition_reseat_it, composition_update_it)
b8ff72fa 2593 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
2594 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
2595 and gstring_work_headers. DEFVAR_LISP composition-function-table.
2596 Defsubr compostion_get_gstring.
2597
2598 * dispextern.h (struct glyph): New union u.cmp. Delete the member
2599 cmp_id.
2600 (struct glyph_string): Delete the member gidx. New members
2601 cmp_id, cmp_from, and cmp_to.
2602 (enum it_method): Delete GET_FROM_COMPOSITION.
2603 (struct composition_it): New struct.
2604 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
2605 Delete c, len, cmp_id, cmp_len in u.comp.
2606
2607 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 2608 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 2609 (enum lglyph_indices): Likewise.
b8ff72fa 2610 (font_range): Adjust extern.
aac0c6e3
MR
2611 (font_fill_lglyph_metrics): Extern it.
2612
2613 * font.c (QCf): New variable.
2614 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2615 (font_prepare_composition): Delete this function.
2616 (font_range): Type and arguments changed.
2617 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
2618 (font_fill_lglyph_metrics): New function.
b8ff72fa 2619 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 2620 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
2621 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
2622 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
2623
2624 * fontset.h (font_for_char): Extern it.
2625
2626 * fontset.c (font_for_char): New function.
2627
2628 * ftfont.c: Include composite.h.
2629 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 2630 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
2631
2632 * indent.c: Include composite.h and dispextern.h.
2633 (check_composition): Delete this function.
2634 (scan_for_column): Handle composition by
2635 composition_compute_stop_pos, composition_reseat_it, and
2636 composition_update_it.
2637 (compute_motion): Likewise.
2638 (Fvertical_motion): Fix checking of composition.
2639
2640 * keyboard.c (adjust_point_for_property): Check composition by
2641 composition_adjust_point.
2642
b8ff72fa 2643 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
2644 struct glyph_string.
2645
b8ff72fa
SM
2646 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
2647 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
2648 struct glyph.
2649 (produce_composite_glyph): Likewise.
2650
b8ff72fa
SM
2651 * w32term.c (x_draw_composite_glyph_string_foreground):
2652 Adjust for the change of struct glyph_string.
aac0c6e3
MR
2653 (x_draw_glyph_string): Likewise.
2654
2655 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
2656 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2657
2658 * xdisp.c: Include font.h.
2659 (it_props): Delete the entry for Qauto_composed.
2660 (init_iterator): Initialize it->cmp_it.id to -1.
2661 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 2662 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
2663 (handle_auto_composed_prop): Delete it.
2664 (handle_composition_prop): Handle only static composition.
2665 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
2666 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 2667 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
2668 (pop_it): Likewise.
2669 (get_next_element): Delete next_element_from_composition.
2670 (CHAR_COMPOSED_P): New macro.
2671 (get_next_display_element): For automatic composition, get a face
2672 from the font in the glyph-string.
2673 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 2674 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
2675 (next_element_from_string): Check if the character at the current
2676 position is composed by CHAR_COMPOSED_P.
2677 (next_element_from_buffer): Likewise.
d66c0241
JB
2678 (next_element_from_composition): Adjust for the change of struct it.
2679 Update it->cmp_it.
b8ff72fa
SM
2680 (dump_glyph): Adjust for the change of struct glyph.
2681 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
2682 it and struct glyph. Don't handle automatic composition here.
2683 (fill_gstring_glyph_string): New function.
2684 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 2685 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
2686 (BUILD_GSTRING_GLYPH_STRING): New macro.
2687 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
2688 automatic composition.
b8ff72fa 2689 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 2690 struct glyph.
b8ff72fa 2691 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 2692
b8ff72fa 2693 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
2694 the change of struct glyph_string.
2695 (x_draw_glyph_string): Likewise.
2696
26972008-08-29 Glenn Morris <rgm@gnu.org>
2698
2699 * buffer.c (word-wrap): Doc fix.
2700 * xdisp.c (truncate-partial-width-windows): Doc fix.
2701 Increase default to 50.
2702
27032008-08-29 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * xdisp.c (update_tool_bar_unwind): New function.
2706 (update_tool_bar): Temporarily set selected frame before building
2707 tool-bar items.
2708
27092008-08-28 Michael Albinus <michael.albinus@gmx.de>
2710
2711 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
2712 snprintf, respectively.
2713 (xd_append_arg): Convert strings with Fstring_make_unibyte.
2714
27152008-08-28 Chong Yidong <cyd@stupidchicken.com>
2716
2717 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
2718 LDFLAGS to GNUstep CC invocation.
2719
27202008-08-27 Chong Yidong <cyd@stupidchicken.com>
2721
2722 * indent.c (Fvertical_motion): Revert last change. Handle the
2723 general case where we are moving forward, and PT spans multiple
2724 screen lines.
2725
2726 * eval.c (find_handler_clause): Temporarily increase
2727 max-lisp-eval-depth while printing the backtrace buffer, to
2728 guarantee that help-mode code can run.
2729
27302008-08-27 Eli Zaretskii <eliz@gnu.org>
2731
2732 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
2733 colors under -rv.
2734 (IT_set_frame_parameters): Don't swap foreground and background
2735 colors if `(reverse . t)' is present in the frame properties.
2736 (internal_terminal_init): Call init_frame_faces only for the
2737 initial frame.
2738
27392008-08-27 Andreas Schwab <schwab@suse.de>
2740
2741 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
2742
27432008-08-27 Andreas Schwab <schwab@suse.de>
2744
2745 * search.c (search_buffer): Set char_base to zero only at the end.
2746
27472008-08-27 Kenichi Handa <handa@m17n.org>
2748
b8ff72fa 2749 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
2750
27512008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
2752
2753 * xterm.c (x_term_init): Temporarily hide the partially
2754 initialized terminal while calling vendor-specific-keysyms.
2755
27562008-08-26 Eli Zaretskii <eliz@gnu.org>
2757
2758 * msdos.c (internal_terminal_init): Most initializations done only
2759 once, especially initial_screen_colors[] and termscript open.
2760
27612008-08-26 Chong Yidong <cyd@stupidchicken.com>
2762
2763 * eval.c (Fcondition_case): Doc fix.
2764
2765 * widgetprv.h (EmacsFramePart): Change font member to the new font
2766 struct.
2767
2768 * widget.c: Include character.h and font.h for XSETFONT.
2769 (setup_frame_gcs): Compute X font id from font struct, just once.
2770
27712008-08-26 Eli Zaretskii <eliz@gnu.org>
2772
2773 * term.c (get_named_tty): Fix last change.
2774
27752008-08-26 Chong Yidong <cyd@stupidchicken.com>
2776
2777 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 2778 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
2779
27802008-08-25 Eli Zaretskii <eliz@gnu.org>
2781
2782 * frame.c (do_switch_frame): Mark previously displayed frame as
2783 obscured for FRAME_MSDOS_P frames as well.
2784
27852008-08-24 Eli Zaretskii <eliz@gnu.org>
2786
2787 * frame.c (make_terminal_frame): Initialize f->terminal,
2788 f->terminal->reference_count, and scroll bars on MS-DOS as well.
2789 Set the top frame to newly created frame.
2790 (Fmake_terminal_frame): Reuse the_only_display_info.
2791
2792 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
2793 estimating available memory.
2794
b97439ce 27952008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
2796
2797 * nsterm.m (ns_draw_window_cursor): Don't call
2798 NSDisableScreenUpdates and NSEnableScreenUpdates on
2799 non-NS_IMPL_COCOA systems.
2800
28012008-08-23 Andreas Schwab <schwab@suse.de>
2802
2803 * process.c (procfs_system_process_attributes): Fix use of
2804 uninitialized variables.
2805
28062008-08-23 Eli Zaretskii <eliz@gnu.org>
2807
2808 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
2809
2810 * dispnew.c (init_display): Remove MS-DOS specific conditions for
2811 calling tty-set-up-initial-frame-faces.
2812
b8ff72fa
SM
2813 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
2814 Allow MSDOS frames along with X frames.
aac0c6e3
MR
2815
2816 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
2817 addition to output_termcap.
2818
2819 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
2820
2821 * termchar.h (FRAME_TTY): Support output_msdos_raw.
2822 (struct tty_display_info) [MSDOS]: Add fields related to mouse
2823 highlight.
2824
2825 * process.c [!subprocesses]: Define QCname.
2826 (syms_of_process): Intern and staticpro it.
2827
2828 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
2829 Adjust for changes in encoding/decoding routines.
2830 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
2831 encode_coding and decode_coding.
2832
b8ff72fa 2833 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
2834
2835 * dosfns.c: Include frame.h before termhooks.h.
2836 (dos_cleanup): Use CURTTY ()->termscript instead of a global
2837 variable termscript.
2838
2839 * s/msdos.h (USER_FULL_NAME): Define.
2840 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
2841
2842 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
2843 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
2844 pw->pw_gecos.
2845
2846 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
2847 SELECTED_FRAME as additional (1st) argument.
2848 (tty_read_avail_input): Handle output_msdos_raw in
2849 addition to output_termcap.
2850
2851 * msdos.c: Include frame.h before termhooks.h.
2852 (mouse_on, mouse_off, mouse_moveto, mouse_init)
2853 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
2854 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
2855 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
2856 (IT_set_terminal_modes, IT_reset_terminal_modes)
2857 (IT_set_frame_parameters): Use tty->termscript instead of a global
2858 variable termscript.
2859 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
2860 global variable terminal_coding. Don't refer to
2861 Vnonascii_translation_table.
2862 (internal_terminal_init): Set Vwindow_system in current_kboard.
2863 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
2864 Announce date and time of session start, if termscript is open.
2865 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
2866 term.c:init_tty). Open termscript only of not already open.
2867 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
2868 here instead of dos_ttraw. Don't initialize display if this is an
2869 initial tty. Don't set FRAME_FONT.
2870 (Vwindow_system_version): Bump to 23.
2871 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
2872 is available, set up mouse_position_hook.
2873 (dos_ttraw, IT_set_terminal_modes): If called with initial
2874 terminal, do nothing.
2875 (IT_set_frame_parameters): Handle the Qtty_type frame
2876 parameter by calling internal_terminal_init.
2877 (dos_set_window_size, show_mouse_face)
2878 (clear_mouse_face, IT_note_mode_line_highlight)
2879 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
2880 (dos_rawgetc): Use tty_display_info instead of x_display_info.
2881 (initialize_msdos_display): New function.
2882 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
2883 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
2884 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
2885 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 2886 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
2887 (request_sigio, unrequest_sigio): Don't define, now defined on
2888 sysdep.c.
2889 (IT_write_glyphs): Rewrite to use encode_terminal_code.
2890
2891 * term.c [MSDOS]: Include msdos.h.
2892 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
2893 conditional to DOS_NT. Allow only one call to this function in a
2894 session. Don't allocate a new struct tty_display_info; instead,
2895 reuse the_only_display_info. Call get_tty_size to get screen
2896 dimensions. Call init_baud_rate to set bad_rate.
2897 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
2898 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 2899 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
2900 (get_tty_terminal, get_named_tty, Ftty_type)
2901 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
2902 output_termcap.
b8ff72fa
SM
2903 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
2904 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 2905 only when subprocesses are supported.
aac0c6e3
MR
2906
2907 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
2908 f->output_data.x.
2909 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
2910 terminal devices.
2911
5582fbc7 2912 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
2913 x_output.
2914 (FRAME_FONT): Use output_data.tty.
2915 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
2916 (struct x_display_info): Rename from display_info. Update all users in
2917 msdos.c.
aac0c6e3 2918 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 2919 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
2920 (dos_ttraw): Update prototype.
2921
2922 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
2923 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
2924
29252008-08-23 Jason Rumney <jasonr@gnu.org>
2926
2927 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
2928 (fn_TIFFSetDirectory): New library function used.
2929 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
2930 (tiff_load): Use :index to select among multiple images. Set count
2931 property when multiple images exist.
2932 (gif_format): Use :index, not :image.
2933
29342008-08-23 Chong Yidong <cyd@stupidchicken.com>
2935
2936 * xdisp.c (try_scrolling): Check INT_MAX instead of
2937 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
2938 to obtain INT_MAX.
2939
29402008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
2941
2942 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
2943
29442008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
2945
2946 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
2947 GNUstep library location.
2948
29492008-08-21 Chong Yidong <cyd@stupidchicken.com>
2950
2951 * xfaces.c (x_update_menu_appearance): Check validity of menu font
2952 before using it.
2953
2954 * puresize.h (BASE_PURESIZE): Increase to 1250000.
2955
29562008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2957
2958 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
2959 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
2960 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
2961 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
2962 (EmacsApp-cursor_blink_handler): Remove declaration.
2963 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
2964 match 01 Feb 2008 changes in xterm.c.
2965 (ns_read_socket): Add cast to avoid warning.
2966 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
2967 GNUstep.
2968
29692008-08-20 Chong Yidong <cyd@stupidchicken.com>
2970
2971 * xselect.c (x_get_foreign_selection): Return nil if desired
2972 selection could not be obtained, instead of signalling an error.
2973
29742008-08-20 David Reitter <david.reitter@gmail.com>
2975
2976 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
2977 * nsterm.m: Remove ns-specific code for cursor blinking.
2978 (ns_draw_window_cursor): Clear cursor properly rather than
2979 redrawing the area. Respect width of bar cursors.
2980 These changes enable the use of generic blink-cursor-mode and
2981 generic cursor types in NS and support smooth cursor movements (do
2982 not blink off after command).
2983 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
2984 Nextstep, too.
2985
29862008-08-19 Kenichi Handa <handa@m17n.org>
2987
2988 * font.c (Vfont_log_deferred): New variable.
2989 (font_add_log): Check Vfont_log_deferred.
2990 (font_deferred_log): New function.
2991
2992 * font.h (font_deferred_log): Extern it.
2993
2994 * fontset.c (reorder_font_vector): Use encoding charset of fonts
2995 for sorting.
2996 (face_for_char): Use deferred log.
2997
29982008-08-18 Kenichi Handa <handa@m17n.org>
2999
3000 * fontset.c (face_for_char): Add font log.
3001
3002 * font.c (font_add_log): Add the font properties :script, :lang,
3003 and :otf in the log.
3004
30052008-08-17 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * xdisp.c: Remove dead code.
3008 (handle_invisible_prop, next_overlay_string): Defer call to
3009 setup_for_ellipsis.
3010 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3011
30122008-08-15 Chong Yidong <cyd@stupidchicken.com>
3013
3014 * xfaces.c (lookup_derived_face): Properly handle possible zero
3015 return value of get_lface_attributes.
3016 (merge_faces): Don't tell lookup_derived_face to signal an error
3017 if face is not found.
3018
3019 * dired.c (Fdirectory_files): Doc fix.
3020
3021 * process.c (make_process): Initialize kill_without_query struct
3022 member.
3023
30242008-08-15 Eli Zaretskii <eliz@gnu.org>
3025
3026 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3027 Alternative calculation of totphys for Visual Studio 6.
3028
3029 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3030
3031 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3032 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3033 All users changed.
3034 (stat): Only root directory passed to GetDriveType. Allow RAM
3035 disk as well as local fixed disk when w32-get-true-file-attributes
3036 is set to `local'.
3037 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3038 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3039 (w32_cached_id, w32_add_to_cache): New functions.
3040 (get_name_and_id): Look account names in the cache before calling
3041 lookup_account_sid.
3042 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3043 New initialization flags.
3044 (globals_of_w32): Initialize them to zero.
3045 (w32_system_process_attributes): Use w32_cached_id and
3046 w32_add_to_cache.
3047
30482008-08-14 Lawrence Mitchell <wence@gmx.li>
3049
3050 * lread.c (Fread_char, Fread_char_exclusive): If no character
3051 event is read before timeout is reached, return nil, rather than
3052 converting to a number.
3053
30542008-08-14 Chong Yidong <cyd@stupidchicken.com>
3055
3056 * fns.c (use_dialog_box): Doc fix.
3057
3058 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3059 on OS X.
3060
30612008-08-13 Chong Yidong <cyd@stupidchicken.com>
3062
3063 * frame.c (Qns_parse_geometry): New var.
3064 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
3065
30662008-08-11 Chong Yidong <cyd@stupidchicken.com>
3067
3068 * xdisp.c (x_produce_glyphs): Handle the case when font has no
3069 space character in calculating tabs.
3070
30712008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
3072
3073 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
3074
30752008-08-10 Glenn Morris <rgm@gnu.org>
3076
3077 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
3078 silence gcc "limited range of data type" warnings in some
3079 make_fixnum_or_float calls.
3080
30812008-08-09 Eli Zaretskii <eliz@gnu.org>
3082
3083 * w32.c (w32_system_process_attributes): If the process does not
3084 exist, return nil.
3085
3086 * w32.c: Include thelp32.h, psapi.h and coding.h.
3087 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
3088 declarations.
3089 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
3090 (Process32Next_Proc): New typedefs.
3091 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3092 (g_b_init_process32_next, g_b_init_open_thread_token)
3093 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3094 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3095 (g_b_init_get_process_working_set_size)
3096 (g_b_init_global_memory_status_ex): New static variables.
3097 (globals_of_w32): Initialize them.
3098 (create_toolhelp32_snapshot, process32_first, process32_next)
3099 (open_thread_token, impersonate_self, revert_to_self)
3100 (get_process_memory_info, get_process_working_set_size)
3101 (global_memory_status, global_memory_status_ex): New wrapper
3102 functions.
3103 (w32_list_system_processes, w32_system_process_attributes)
3104 (enable_privilege, restore_privilege, ltime, process_times):
3105 New functions.
3106 (convert_time_raw): New function.
3107 (convert_time): Remove conversion of FILETIME into time in 100
3108 nsec units, call convert_time_raw instead.
3109
3110 * process.h (w32_list_system_processes, w32_system_process_attributes):
3111 Add prototypes.
3112 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3113 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3114 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3115 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3116
3117 * process.c (Fsystem_process_attributes): Doc fix.
3118
31192008-08-08 Chong Yidong <cyd@stupidchicken.com>
3120
3121 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3122 a continued multi-char glyph; if so, advance to the actual glyph.
3123
31242008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3125
3126 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3127
3128 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3129 (.m.o): Use it.
3130 * config.in: Regenerate.
3131
31322008-08-07 Chong Yidong <cyd@stupidchicken.com>
3133
3134 * xdisp.c (redisplay_window): Revert last change.
3135 (try_window): Check bottom scroll margin too.
3136
31372008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3138
3139 * config.in: Regenerate.
3140
3141 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3142 -list-load-path-shadows'.
3143 (nsgui.h): Reduce number of things depending on it.
3144
31452008-08-06 Chong Yidong <cyd@stupidchicken.com>
3146
3147 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3148 instead of window-end which does the wrong thing at eob.
3149 (try_cursor_movement): Minor optimization.
3150 (redisplay_window): If scroll margin is defined, don't assume
3151 window doesn't need scrolling.
3152
31532008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3154
3155 * config.in: Regenerate.
3156
3157 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3158 (mostlyclean): Don't delete *.d under NS.
3159
3160 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3161
31622008-08-06 Kenichi Handa <handa@m17n.org>
3163
3164 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3165
31662008-08-06 Andreas Schwab <schwab@suse.de>
3167
3168 * config.in: Regenerate.
3169
31702008-08-05 Chong Yidong <cyd@stupidchicken.com>
3171
3172 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3173 forcing a window start.
3174
3175 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3176 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3177
31782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3179
3180 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3181 argument.
3182
31832008-08-05 Juanma Barranquero <lekktu@gmail.com>
3184
3185 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3186 <scroll-down-aggressively, before-change-functions>:
3187 <after-change-functions>: Reflow docstrings.
3188
31892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3190 Ken Raeburn <raeburn@gnu.org>
3191
3192 Dock menu customization, based on a patch by Ken Raeburn, plus some
3193 other fixes.
3194 * nsmenu.m (dockMenu): New variable.
3195 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3196
3197 * nsterm.h (dockMenu): Declare.
3198
3199 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3200 (ns_term_init): Initialize dockMenu.
3201 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3202 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3203 left.
3204
3205 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3206
32072008-08-04 Chong Yidong <cyd@stupidchicken.com>
3208
3209 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3210
3211 * config.in: Regenerate.
3212
32132008-08-04 Seiji Zenitani <zenitani@mac.com>
3214
3215 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3216
32172008-08-04 Chong Yidong <cyd@stupidchicken.com>
3218
3219 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3220
32212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3222
3223 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3224
3225 * keyboard.h: Comment an #endif.
3226
3227 * lisp.h (have_menus_p): Adjust comment.
3228
3229 * menu.c (find_and_return_menu_selection): Fix comparison with
3230 client_data.
3231
3232 * nsmenu.m (popup_activated_flag): New variable.
3233 (popup_activated): New function.
3234 (menu-or-popup-active-p): New exported lisp definition.
3235 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3236 when popup done.
3237 (ns_popup_dialog): Set popup_activated_flag.
3238
3239 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3240 version for GNUstep (handled by conditional typedef in nsterm.m).
3241 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3242 in rgb.txt).
3243
3244 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3245
3246 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3247
3248 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3249
3250 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3251 shortcircuit if popup_activated like GTK and X toolkit.
3252
3253 * m/inter386.h: Change DARWIN to DARWIN_OS.
3254
3255 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3256 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3257 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3258 comment on NO_SOCK_SIGIO.
3259
32602008-08-03 Chong Yidong <cyd@stupidchicken.com>
3261
3262 * nsterm.m (windowDidResize): Remove stopModal call.
3263
32642008-08-03 Andreas Schwab <schwab@suse.de>
3265
3266 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3267 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3268
32692008-08-02 Chong Yidong <cyd@stupidchicken.com>
3270
3271 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3272 Don't use uninitialized pointer variable when using getrlimit.
3273
32742008-08-02 Jason Rumney <jasonr@gnu.org>
3275
3276 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3277
32782008-08-02 Eli Zaretskii <eliz@gnu.org>
3279
3280 * alloc.c (NSTATICS): Bump to 0x640.
3281
3282 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
3283
3284 * lisp.h: Add prototype for directory_files_internal.
3285
3286 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
3287 New functions.
3288 (syms_of_process): Defsubr them. Add initializations for various
3289 Q* symbols used in procfs_system_process_attributes.
3290 (procfs_list_system_processes, procfs_system_process_attributes)
3291 [HAVE_PROCFS]: New functions.
3292 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
3293 (procfs_get_total_memory): New functions.
3294
32952008-08-01 Juanma Barranquero <lekktu@gmail.com>
3296
3297 * xfaces.c (Fx_load_color_file): Fix previous change;
3298 it is #ifdef WINDOWSNT, not WINDOWS_NT.
3299
33002008-08-01 Michael Albinus <michael.albinus@gmx.de>
3301
3302 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
3303
33042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3305
3306 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
3307
33082008-08-01 Chong Yidong <cyd@stupidchicken.com>
3309
3310 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
3311
3312 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
3313 define NSApplicationDelegateReplySuccess.
3314 (EmacsView -converstationIdentifier): Use long instead of
3315 NSInteger for GNUstep, since it doesn't have NSInteger.
3316
3317 * xmenu.c: Revert last change.
3318
3319 * keyboard.h: Fix last change.
3320
33212008-08-01 Juanma Barranquero <lekktu@gmail.com>
3322
3323 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
3324 on Windows.
3325
33262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3327
3328 Warning clearing and clean-up in NS port.
3329 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3330 Add prototypes.
3331 * nsgui.h (FACE_DEFAULT): Remove, unused.
3332 (XGCValues): Change colors to unsigned long.
3333 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
3334 nsterm.m.
3335 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
3336 (ns_list_fonts): Remove, unused.
3337 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
3338 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
3339 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
3340 (nsfont_draw): Compare face colors to 0, not nil.
3341 * nsmenu.m (struct widget_value): Drop unneeded declaration.
3342 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
3343 (-addSubmenuWithTitle:): Use NSMenuItem class.
3344 (ns_popup_menu): Use NO, not NULL, for enabled setting.
3345 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
3346 (ns_clip_to_row): Make gc arg a BOOL.
3347 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
3348 ns_clip_to_row() call.
3349 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
3350 used). Cast FRAME_FONT assignments.
3351 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
3352 (ns_string_to_lispmod): Change arg to const char.
3353 (ns_term_init): Use NSMenuItem class.
3354 (EmacsApp -openFile:): Move to different section of file.
3355 (EmacsApp -application:openFiles:): Don't return a value, call
3356 -replyToOpenOrPrint:.
3357 (EmacsView -keyDown:): Fix up cast.
3358 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
3359 (EmacsView -menuDown:): Cast tag in call to
3360 find_and_call_menu_selection().
3361 (ns_list_fonts): Remove, unused.
3362 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
3363 (ns_fontname_to_xlfd): Make static.
3364 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
3365 Remove prototypes (now in keyboard.h).
3366 (next_menubar_widget_id): Remove, unused.
3367 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
3368 Remove prototypes (now in keyboard.h).
3369 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
3370
33712008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
3372
3373 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
3374 (floatfns.o): Depend on syssignal.h.
3375 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
3376
3377 * systty.h: Fix previous change that removed BSD_TERMIOS.
3378 Add comments to #ifdefs.
3379
33802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3381
3382 * w32fns.c (w32-load-color-file): Remove.
3383 (x-open-connection): Use renamed Fx_load_color_file.
3384 * xfaces.c (x-load-color-file): Add.
3385 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
3386 Emacs.clr.
3387 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
3388
33892008-07-31 Michael Albinus <michael.albinus@gmx.de>
3390
3391 * dbusbind.c (Fdbus_call_method_asynchronously)
3392 (Fdbus_method_error_internal): New defuns.
3393 (xd_read_message): Handle also reply messages.
3394 (Vdbus_registered_functions_table): Extend docstring.
3395
33962008-07-31 Juanma Barranquero <lekktu@gmail.com>
3397
3398 * keyboard.c (gobble_input): Fix previous change.
3399
34002008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3401
3402 * bitmaps/README:
3403 * xfns.c:
3404 * termcap.c:
3405 * term.c:
3406 * syswait.h:
3407 * systty.h:
3408 * systime.h:
3409 * syssignal.h:
3410 * sysdep.c:
3411 * process.h:
3412 * process.c:
3413 * print.c:
3414 * ndir.h:
3415 * lread.c:
3416 * keyboard.c:
3417 * getpagesize.h:
3418 * floatfns.c:
3419 * fileio.c:
3420 * emacs.c:
3421 * doc.c:
3422 * dispnew.c:
3423 * dired.c:
3424 * data.c:
3425 * callproc.c:
3426 * buffer.c:
3427 * README:
3428 * Makefile.in:
3429 * s/template.h:
3430 * s/msdos.h:
3431 * m/vax.h: Remove VMS support.
3432 * s/vms.h:
3433 * vlimit.h:
3434 * uaf.h:
3435 * temacs.opt:
3436 * param.h:
3437 * ioctl.h: Remove file.
3438
34392008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3440
3441 * s/ms-w32.h (MULTI_KBOARD): Remove.
3442 * xterm.c:
3443 * xselect.c:
3444 * xfns.c:
3445 * window.c:
3446 * w32term.c:
3447 * w32fns.c:
3448 * terminal.c:
3449 * termhooks.h:
3450 * term.c:
3451 * sysdep.c:
3452 * keyboard.h:
3453 * keyboard.c:
3454 * frame.h:
3455 * frame.c:
3456 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
3457 * config.in: Regenerate.
3458
34592008-07-30 Jason Rumney <jasonr@gnu.org>
3460
3461 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
3462
3463 * w32font.c (w32font_encode_char): Leave as unicode if in range.
3464 (w32font_open_internal): Get unicode version of textmetrics.
3465 Don't enable or disable glyph indices here.
3466 (w32font_open): Disable use of glyph indices.
3467
3468 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
3469
34702008-07-30 Chong Yidong <cyd@stupidchicken.com>
3471
3472 * minibuf.c (Vread_buffer_function): Doc fix.
3473
34742008-07-30 John Paul Wallington <jpw@pobox.com>
3475
3476 * minibuf.c (read_buffer_completion_ignore_case): New var.
3477 (Fread_buffer): Use it.
3478
34792008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3480
3481 * systty.h (sensemode): Remove empty #if. Remove reference to
3482 BSD_TERMIOS, unused.
3483
3484 * sysdep.c: Remove reference to DGUX.
3485 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
3486
3487 * config.in: Regenerate.
3488
34892008-07-30 Jason Rumney <jasonr@gnu.org>
3490
3491 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
3492
34932008-07-29 Jason Rumney <jasonr@gnu.org>
3494
3495 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
3496 is populated.
3497 (uniscribe_encode_char): Always use uniscribe.
3498 Avoid using context if cache is populated.
3499
35002008-07-29 Jan Djärv <jan.h.d@swipnet.se>
3501
3502 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
3503 open menu.
3504
3505 * gtkutil.c (menu_nav_ended): Remove.
3506 (create_menus): Remove signal connect for menu_nav_ended.
3507
35082008-07-28 Chong Yidong <cyd@stupidchicken.com>
3509
3510 * xdisp.c (redisplay_window): Check return value of
3511 compute_window_start_on_continuation_line before forcing a window
3512 start.
3513
35142008-07-28 Jason Rumney <jasonr@gnu.org>
3515
3516 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
3517
3518 * w32term.c (w32_enable_unicode_output, cleartype_active):
3519 Remove obsolete display options.
3520 (x_draw_glyph_string_background): Don't use old cleartype_active
3521 workaround.
3522 (w32_initialize): Remove cleartype_active initialization.
3523 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
3524
35252008-07-28 Andreas Schwab <schwab@suse.de>
3526
3527 * lisp.h (init_weak_hash_tables, syms_of_font)
3528 (xd_read_queued_messages, syms_of_dbusbind): Declare.
3529 (remove_hash_entry): Don't declare.
3530 * eval.c (maybe_call_debugger): Make static and move before use.
3531 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
3532 * xdisp.c: Include "gtkutil.h" if USE_GTK.
3533 * xterm.h (x_set_frame_alpha): Declare.
3534
35352008-07-28 Jan Djärv <jan.h.d@swipnet.se>
3536
3537 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
3538 (create_menus): Connect selection-done to menu_nav_ended.
3539
35402008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3541
3542 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
3543 Set Vx_resource_name to a fallback. Replace read of 'buffered'
3544 parameter with read of 'alpha' one.
3545 (Qns_frame_parameter): Remove.
5582fbc7 3546 * nsselect.m (selection-coding-system)
aac0c6e3
MR
3547 (next-selection-coding-system, Vselection_coding_system)
3548 (Vnext_selection_coding_system): Drop.
3549
35502008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3551
3552 * nsfns.m (do-applescript, do_applescript): Rename to
3553 ns-do-applescript, ns_do_applescript, and move within file.
3554
35552008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3556
3557 Remove support for Mac Carbon.
3558 * mactoolbox.c:
3559 * macterm.h:
3560 * macterm.c:
3561 * macselect.c:
3562 * macmenu.c:
3563 * macgui.h:
3564 * macfns.c:
3565 * mac.c: Remove file.
3566 * s/darwin.h:
3567 * m/intel386.h:
3568 * xfaces.c:
3569 * xdisp.c:
3570 * window.c:
3571 * tparam.c:
3572 * termhooks.h:
3573 * termcap.c:
3574 * term.c:
3575 * syssignal.h:
3576 * sysselect.h:
3577 * sysdep.c:
3578 * process.c:
3579 * lread.c:
3580 * lisp.h:
3581 * keyboard.c:
3582 * image.c:
3583 * fringe.c:
3584 * frame.h:
3585 * frame.c:
3586 * fontset.c:
3587 * font.h:
3588 * font.c:
3589 * fns.c:
3590 * fileio.c:
3591 * emacs.c:
3592 * dispnew.c:
3593 * dispextern.h:
3594 * config.in:
3595 * atimer.c:
2ae37cf0 3596 * Makefile.in: Remove code for Carbon.
aac0c6e3 3597
f0131492 35982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
3599
3600 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
3601
36022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3603
3604 * macterm.h (kCGBitmapByteOrder32Host): New define for
3605 non-universal SDKs.
3606
3607 * image.c (mac_create_cg_image_from_image, image_load_image_io)
3608 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3609
3610 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
3611 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3612
36132008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
3614
3615 * w32inevt.c: Include dispextern.h.
3616
36172008-07-26 Andreas Schwab <schwab@suse.de>
3618
3619 * print.c (print_object): Fix off-by-one in last change.
3620
36212008-07-25 Juanma Barranquero <lekktu@gmail.com>
3622
3623 * term.c (syms_of_term): Don't initialize default_orig_pair,
3624 default_set_foreground and default_set_background on Windows.
3625
36262008-07-25 Jason Rumney <jasonr@gnu.org>
3627
3628 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
3629 ScriptItemize. Clean up return value checking. Remove unused
3630 variables.
3631 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
3632 shaping engine.
3633
3634 * w32font.c (w32font_has_char): Handle the case where we can't
3635 determine the script for a character.
3636
36372008-07-25 Chong Yidong <cyd@stupidchicken.com>
3638
3639 * term.c (syms_of_term): Initialize default_orig_pair,
3640 default_set_foreground, and default_set_background.
3641
3642 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3643 clash (bug#86).
3644 (getloadavg): Callers changed.
3645
3646 * image.c (svg_load_image): Fix last change.
3647 (svg_load_image): Use rsvg_handle_get_dimensions to check that
3648 image size is valid. Use g_object_unref instead of deprecated
3649 rsvg_handle_free to free rsvg handle.
3650 (x_from_xcolors): Don't initialize pixmap (silence compiler).
3651
36522008-07-25 Jason Rumney <jasonr@gnu.org>
3653
3654 * w32font.c (w32font_encode_char): Encode characters outside BMP as
3655 surrogates before looking up glyph index.
3656 (w32font_text_extents): Encode as surrogates if falling back to
3657 functions that need UTF-16 wide chars.
3658
3659 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
3660 BMP as surrogates before looking up glyph index.
3661
36622008-07-25 Chong Yidong <cyd@stupidchicken.com>
3663
3664 * image.c (svg_load_image): Check for failure in return value of
3665 rsvg_handle_get_pixbuf. Free rsvg handle when done.
3666
36672008-07-25 Jason Rumney <jasonr@gnu.org>
3668
3669 * w32font.c (Fx_select_font): Reverse sense of second arg.
3670
36712008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
3672
3673 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
3674 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
3675
3676 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
3677 (PURESIZE): Use it.
3678
36792008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3680
3681 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
3682 * m/alpha.h (TEXT_END):
3683 * m/ibmrs6000.h (TEXT_END):
3684 * m/macppc.h (TEXT_END):
3685 * s/darwin.h (TEXT_END):
3686 * s/msdos.h (TEXT_END): Remove, unused.
3687 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
3688 * s/cygwin.h: Remove comment.
3689
3690 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
3691 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
3692 * m/intel386.h (DOT_GLOBAL_START):
3693 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
3694 (USG): Remove, file not used on USG platforms.
3695
3696 * Makefile.in (HAVE_X11): Remove empty #else.
3697
36982008-07-24 Andreas Schwab <schwab@suse.de>
3699
3700 * fileio.c (Finsert_file_contents): Properly adjust undo list
3701 after format conversion.
3702
37032008-07-24 Jan Djärv <jan.h.d@swipnet.se>
3704
3705 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
3706 (menu_nav_ended): Remove.
3707 (create_menus): Remove signal connect for menu_nav_ended.
3708 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
3709 create_menus.
3710 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
3711
37122008-07-23 Jason Rumney <jasonr@gnu.org>
3713
3714 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
3715 with opened font.
3716 (w32font_open): Set font type to gdi.
3717
3718 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
3719
37202008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
3721
3722 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
3723 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
3724 defines it.
3725 * unexec.c (ADDR_CORRECT): Define unconditionally.
3726
3727 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
3728
3729 * unexec.c: Remove code depending on !COFF and USG, the file is
3730 not used for such systems.
3731
3732 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
3733 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
3734 (LD_SWITCH_SYSTEM_1): Remove, update users.
3735
3736 * s/darwin.h (DATA_END):
3737 * m/intel386.h (DATA_END):
3738 * m/ibmrs6000.h (DATA_END):
3739 * m/alpha.h (DATA_END): Remove, unused.
3740
3741 * config.in: Regenerate.
3742 * s/ms-w32.h (subprocesses): Define unconditionally.
3743 * s/template.h (subprocesses): Update comment.
3744 * s/vms.h (subprocesses):
3745 * s/usg5-4.h (subprocesses):
3746 * s/hpux10-20.h (subprocesses):
3747 * s/gnu-linux.h (subprocesses):
3748 * s/cygwin.h (subprocesses):
3749 * s/bsd-common.h (subprocesses):
3750 * s/aix4-2.h (subprocesses):
3751 * s/darwin.h (subprocesses): Do not define, defined by default now.
3752
3753 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
3754 Remove all references.
3755 (temacs): Add GNUstep specific ld flags.
3756
3757 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
3758 similarly to what X does.
3759
37602008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3761
3762 * nsfns.m (x-list-fonts): Remove.
3763 (syms_of_nsfns): Drop the x-list-fonts declaration.
3764 * nsterm.m: Get rid of remaining "//" comments.
3765
37662008-07-22 Chong Yidong <cyd@stupidchicken.com>
3767
3768 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
3769
3770 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
3771 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
3772 (Fns_own_selection_internal, Fx_disown_selection_internal)
3773 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
3774
3775 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
3776 ... */' style of docstrings. Doc fixes.
3777
37782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3779
3780 * terminfo.c (UP, BC, PC): Undo previous change.
3781
3782 * nsfns.m: Rename ns prefixed functions/variables to the
3783 corresponding x versions. Update references.
3784
37852008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3786
3787 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
3788
37892008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3790
3791 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
3792 Remove forwarding functions.
3793 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
3794 non-static.
3795 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
3796 non-static.
3797 (ns_frame_parm_handlers): Use the new names.
3798 (syms_of_nsfns): Move to the end of file.
3799
3800 * nsterm.m (syms_of_nsterm): Move to the end of file.
3801
3802 * dispnew.c (init_display): Remove code for X10.
3803
38042008-07-22 Jason Rumney <jasonr@gnu.org>
3805
3806 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
3807 bare drive.
3808
38092008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3810
3811 * nsterm.m (syms_of_nsterm): Remove debugging println.
3812
38132008-07-22 David Reitter <david.reitter@gmail.com>
3814
3815 * nsfns.m (do_applescript, F_do_applescript): NS version of the
3816 Carbon implementation of the same functionality: execute arbitrary
3817 AppleScript code.
3818
38192008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3820
3821 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
3822 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
3823 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3824 (Fx_display_mm_height, Fx_display_mm_width)
3825 (Fx_display_backing_store, Fx_display_visual_class)
3826 (Fx_display_save_under, Fx_open_connection)
3827 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
3828 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
3829 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3830 (Fx_display_pixel_width, Fx_display_pixel_height)
3831 (Fx_display_usable_bounds, Fx_display_planes)
3832 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
3833 ... */' style of docstrings.
3834
38352008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
3836
3837 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
3838 on this platform.
3839 (mips):
3840 * m/iris4d.h (mips): Do not define.
3841 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
3842
3843 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
3844
3845 * image.c:
3846 * nsfns.m:
3847 * nsselect.m:
3848 * nsterm.h:
3849 * nsterm.m: Rename ns prefixed functions/variables to the
3850 corresponding x versions. Update references.
3851
3852 * m/ibms390x.h (NO_REMAP): Do not undefine.
3853
3854 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
3855
38562008-07-21 Chong Yidong <cyd@stupidchicken.com>
3857
3858 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
3859 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
3860 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
3861 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
3862 (Fns_display_mm_height, Fns_display_mm_width)
3863 (Fns_display_backing_store, Fns_display_visual_class)
3864 (Fns_display_save_under, Fns_open_connection)
3865 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
3866 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
3867 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3868 (Fns_display_pixel_width, Fns_display_pixel_height)
3869 (Fns_display_usable_bounds, Fx_display_planes)
3870 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
3871
38722008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3873
3874 * print.c (print_object): Check print_depth before searching for
3875 circularities.
3876
38772008-07-21 Michael Albinus <michael.albinus@gmx.de>
3878
3879 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
3880 only sprintf.
3881
38822008-07-21 Kenichi Handa <handa@m17n.org>
3883
3884 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
3885
38862008-07-20 Andreas Schwab <schwab@suse.de>
3887
3888 * syntax.c (find_start_pos, find_start_value)
3889 (find_start_value_byte, find_start_begv, find_defun_start)
3890 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
3891
38922008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3893
3894 * s/sol2-3.h: Insert contents of s/sol2.h.
3895 (LD_SWITCH_SYSTEM): Remove redundant definition.
3896 * s/sol2.h: Remove, unused.
3897
38982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3899
3900 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
3901
39022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3903
3904 * Makefile.in (ns_appdir): Fix typo in find command.
3905
39062008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3907
3908 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
3909
3910 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
3911 added not supported anymore.
3912
3913 * s/usg5-4-2.h (LIBS_SYSTEM):
3914 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
3915
3916 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3917 * s/lynxos.h (GETPGRP_NO_ARG):
3918 * s/hpux10-20.h (NO_SIOCTL_H):
3919 * s/gnu.h (GETPGRP_NO_ARG):
3920 * s/gnu-linux.h (NO_SIOCTL_H):
3921 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3922 * s/cygwin.h (GETPGRP_NO_ARG):
3923 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
3924 (C_DEBUG_SWITCH): Remove duplicate definition.
3925
3926 * m/ibms390.h: Remove boilerplate comments.
3927
3928 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
3929
3930 * process.c (HAVE_SERIAL): Consolidate ifdefs.
3931 (wait_reading_process_output): Remove code for SunOS, platform not
3932 supported anymore. Use SOLARIS2 instead of sun.
3933
39342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3935
3936 * font.c (font_open_by_name): Under NS, default lface height to zero.
3937 (font_open_for_lface): Under NS, set size based on frame fontsize.
3938 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
3939 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
3940
39412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3942
3943 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
3944 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
3945 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
3946 YES/NO.
3947 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
3948 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
3949 * Makefile.in (clean): Clear out build destination dir.
3950
39512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3952
3953 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
3954 xterm, xselect.
3955 * lisp.h: Remove declaration of hash_remove.
3956 * nsgui.h: Remove redefinitions of hash_remove.
3957 * fns.c (hash_remove): Rename to hash_remove_from_table.
3958
39592008-07-19 Seiji Zenitani <zenitani@mac.com>
3960
3961 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
3962 strdup() the family UTF8String before modifying it.
3963
39642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3965
3966 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
3967 NS_FACE_BACKGROUND with 0 instead of nil.
3968 * nsfont.m (nsfont_draw): Same.
3969
39702008-07-19 Chong Yidong <cyd@stupidchicken.com>
3971
3972 * nsfns.m (ns_set_background_color): Fix crash.
3973
39742008-07-18 Chong Yidong <cyd@stupidchicken.com>
3975
3976 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
3977
39782008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3979
3980 * puresize.h (BASE_PURESIZE): Increase to 1240000.
3981
39822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3983
3984 * gtkutil.c: Include <config.h> instead of "config.h".
3985
3986 * lisp.h (Foverlay_buffer): Add EXFUN.
3987
3988 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
3989 child process to complete child_setup. Undo 2005-09-21 change.
3990
3991 * s/darwin.h: Mention setsid after vfork.
3992
39932008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3994
3995 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
3996 Depend on macgui.h.
3997
3998 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
3999 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4000
4001 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4002 and f19.
4003 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4004
4005 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4006 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4007 Remove enumerators.
4008
4009 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4010 Check if FACE_FROM_ID returns NULL.
4011
40122008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4013
4014 * w32inevt.c (change_frame_size): Remove extern declaration.
4015 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4016 change_frame_size.
4017
40182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4019
4020 * getloadavg.c: Revert last change (2008-07-15).
4021
40222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4023
4024 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4025 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4026 from configure.
4027
40282008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4029
4030 * s/sol2.h:
4031 * s/sol2-4.h: Reorganize conditionals.
4032
4033 * ecrt0.c: Remove code depending on m68000, not used anymore.
4034
4035 * fns.c (hash_remove): Make static.
4036 * lisp.h (hash_remove): Don't prototype.
4037
4038 * m/ibmrs6000.h:
4039 * m/ibms390x.h:
4040 * m/macppc.h: Remove boilerplate comments.
4041
4042 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4043 Solaris, which does not need them.
4044
4045 * m/vax.h: Remove comments about unsupported systems.
4046
4047 * s/darwin.h: Reorganize ifdefs.
4048
40492008-07-17 Andreas Schwab <schwab@suse.de>
4050
4051 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4052
40532008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4054
4055 Use SDATA. Follow coding convention of placing operators at
4056 beginning of next line rather than end of previous line, and placing
4057 spaces around infix operators.
4058
4059 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
4060 in case it was defined already.
4061 USE @GNUSTEP_MAKEFILES@ rather than envvars.
4062 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
4063 ns_default.
4064 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
4065 Lisp_Objects.
4066 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
4067 (ns_defined_color, ns_color_to_lisp): Declare.
4068 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
4069 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
4070 it's accepted even with USE_LISP_UNION_TYPE.
4071 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
4072 (update_frame_tool_bar): Remove apparently obsolete tests for
4073 non-integerness of f->tool_bar_lines.
4074 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
4075 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
4076 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
4077 (nsfont_open): Don't confuse NULL for Qnil.
4078 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
4079 * menu.h (find_and_call_menu_selection):
4080 * menu.c (find_and_call_menu_selection): Use just int for vector size.
4081 (find_and_return_menu_selection): Always return something.
4082 * frame.h: Include dispextern.h for Display_Info.
4083 (display_x_get_resource): Declare.
4084
40852008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
4086
4087 * syntax.c: Remove stdio.h include accidentally introduced in
4088 Emacs.app commit.
4089 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
4090 NS_IMPL_COCOA.
4091 * keyboard.c (handle_async_input, input_available_signal): Remove
4092 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4093
40942008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4095
4096 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4097 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4098 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4099 Use SDATA.
4100
4101 * keymap.c: Remove all NS-specific code.
4102 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4103 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4104 where_is_preferred_modifier, return a different value depending on how
4105 preferred is the binding.
4106 (where_is_internal): Adjust accordingly.
4107 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4108 Adjust to new preferred_sequence_p.
4109 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4110 * keyboard.c (parse_solitary_modifier): Not static any more.
4111 * keyboard.h (parse_solitary_modifier): Declare.
4112
41132008-07-16 Andreas Schwab <schwab@suse.de>
4114
4115 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4116 of easymenu.
4117
41182008-07-16 Chong Yidong <cyd@stupidchicken.com>
4119
4120 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4121 that we don't move off the line.
4122
41232008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4124
4125 * keyboard.c (Qsuper): Remove.
4126 (parse_menu_item): Don't call where_is_internal specially for NS.
4127
41282008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4129
4130 * s/gnu-linux.h: Remove boilerplate comments.
4131
4132 * m/alpha.h (__ELF__): Consolidate conditions.
4133
4134 * m/m68k.h (linux): Use GNU_LINUX instead.
4135 Remove boilerplate comments.
4136
4137 * m/intel386.h: Undo refactoring from previous change.
4138 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4139 too, remove dead code.
4140 (linux): Use GNU_LINUX instead.
4141
41422008-07-16 Jason Rumney <jasonr@gnu.org>
4143
4144 * w32gui.h: Repeat 26 June changes lost by last change.
4145
41462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4147
4148 * systty.h: Remove code for Aix on 386, unsupported platform.
4149
4150 * s/ms-w32.h: Remove boilerplate comments.
4151 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4152
4153 * s/gnu-linux.h (TERM): Remove support.
4154 (HAVE_SYSVIPC): Remove, unused.
4155 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4156 for this system.
4157
4158 * process.c: Remove support for IRIS, unused.
4159 Remove support for TERM, not relevant anymore.
4160
4161 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4162 used with the definition.
4163
4164 * s/aix4-2.h (static): Do not undef.
4165
4166 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4167 only used on Aix.
4168 (HAVE_SYSVIPC): Remove, unused.
4169
4170 * m/hp800.h (CANNOT_DUMP): Do not undef.
4171
4172 * m/alpha.h: Fix comment.
4173
4174 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4175 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4176 used by this configuration.
4177 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4178 * unexec.c: Remove code depending on HPUX and
4179 USG_SHARED_LIBRARIES, not used with this file. Remove code
4180 depending on IRIS, unused. Remove if 0-ed code.
4181
4182 * s/template.h: Remove comments about static.
4183
4184 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4185 Remove if 0-ed code.
4186 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4187 were the same as the default.
4188 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4189 Remove boilerplate comments.
4190 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4191 (HAVE_SYSVIPC): Remove, unused.
4192 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4193
4194 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4195 Remove boilerplate comments.
4196 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4197 Remove boilerplate comments.
4198 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4199 Remove boilerplate comments.
4200 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4201
4202 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4203 USG systems which do not use DATA_SEG_BITS.
4204 Refactor code. Remove boilerplate comments.
4205
4206 * m/ibms390.h:
4207 * m/m68k.h:
4208 * s/bsd-common.h:
4209 * s/cygwin.h:
4210 * s/darwin.h:
4211 * s/freebsd.h:
4212 * s/gnu.h:
4213 * s/msdos.h: Remove boilerplate comments.
4214
4215 * m/iris4d.h: Remove boilerplate comments and code for systems that
4216 do not use this file.
4217 (IRIS_4D): Remove, unused.
4218
4219 * m/mips.h: Remove boilerplate comments and code for systems that
4220 do not use this file.
4221 (SIGN_EXTEND_CHAR):
4222 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4223 * unexmips.c: Remove file, unused.
4224
4225 * editfns.c (Fuser_full_name): Replace the only use of
4226 USER_FULL_NAME with its value.
4227 * config.in: Regenerate.
4228
42292008-07-16 David Reitter <david.reitter@gmail.com>
4230
4231 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4232 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4233
42342008-07-16 Glenn Morris <rgm@gnu.org>
4235
4236 * emacs.c (system-type): Doc fix.
4237
42382008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4239
4240 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4241 If the cache doesn't work, let's fix it, rather than work around it.
4242
42432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4244
4245 * Makefile.in: Correct additions for nsfont.o in last commit.
4246 * nsfont.m: New file (forgot last commit).
4247
42482008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4249
4250 * callproc.c (set_initial_environment): Initialize
4251 Vprocess_environment under CANNOT_DUMP (fixes crash when
4252 batch-compiling for bootstrap).
4253
42542008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4255 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4256
4257 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4258 fix crash due to different init order.
4259
42602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4261
4262 Changes and additions for NeXTstep windowing system (Cocoa and
4263 GNUstep) support.
4264
4265 * Makefile.in:
4266 * config.in: Support defines and build commands for NS port.
4267 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4268 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4269 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4270 windowing.
4271 (struct face): Add synth_ital field.
4272 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4273 (init_display): Initialize Vinitial_window_system to "ns" when so
4274 compiled.
4275 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4276 (display_arg): Use under NS.
4277 (main): Under NS, allocate autorelease pool and handle command line
4278 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4279 (standard_args): Add NS-specific args.
4280 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4281 * font.c (DEFAULT_ENCODING): New variable.
4282 (font_find_for_lface): Use it.
4283 (syms_of_font): Load syms_of_nsfont under NS.
4284 * font.h: Declare nsfont_driver when compiled under NS.
4285 * fontset.c: When compiling under NS, include nsterm.h.
4286 (fontset_from_font): Autoconstruct fontset under NS.
4287 * frame.c (various): Under NS, include nsterm.h, add Qns window system
4288 symbol, document and use it.
4289 (do_switch_frame): When for_deletion under Cocoa, add
4290 Fraise_frame(Qnil).
4291 (x_set_frame_parameters): Ensure font attribute changes are picked up.
4292 (x_get_arg): Allow "yes" and "no" as boolean values.
4293 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
4294 Qright under Cocoa.
4295 (focus-follows-mouse): Default to 0 under NS.
4296 * frame.h (enum output_method): Add output_ns.
4297 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
4298 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
4299 (FRAME_WINDOW_P): NS-specific definition.
4300 * fringe.c (max_used_fringe_bitmap): Make public.
4301 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
4302 (getloadavg): Use NeXT code under descendant OS's.
4303 * image.c (includes and header section, x_create_bitmap_from_data)
4304 (x_create_bitmap_from_file, free_bitmap_record, image_background)
4305 (image_background_transparent, x_clear_image_1)
4306 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4307 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
4308 (x_to_xcolors, x_from_xcolors, x_disable_image)
4309 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
4310 other GUIs, including XPM support using code originally written for
4311 Carbon GUI.
4312 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
4313 using NS API.
4314 (image_ascent): Use font metrics macros instead of direct struct field
4315 access.
4316 * keyboard.c (includes): Add nsterm.h when compiling under NS.
4317 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
4318 Also, handle NS as GTK for menu bar purposes.
4319 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
4320 toolkit where they differ.
4321 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
4322 use cachelist, still needed under NS.
4323 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
4324 (struct widget_value): Define it here for menu.c.
4325 * keymap.c (includes): Include modifier internals.
4326 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
4327 NS.
4328 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
4329 support for preferring sequences using certain modifiers, specified by
4330 the FIRSTONLY argument.
4331 * lisp.h (hash_remove): Rename to avoid name clash when compiling
4332 under NS GNUstep implementation.
4333 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
4334 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
4335 * menu.c: Include nsterm.h under NS.
4336 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
4337 (free_menubar_widget_tree_value, update_submenu_strings)
4338 (find_and_call_menu_selection): Treat NS as X and NT.
4339 (find_and_return_menu_selection): New function, used for popup menus.
4340 * nsgui.h:
4341 * nsterm.h:
4342 * nsfns.m:
4343 * nsimage.m:
4344 * nsmenu.m:
4345 * nsselect.m:
4346 * nsterm.m: New files.
4347 * process.c (wait_reading_process_output): Under NS, call ns_select()
4348 instead of plain select().
4349 * syntax.c (char_quoted): Under NS, avoid a crash when called near
4350 beginning of buffer.
4351 * sysselect.h (init_process): Rename when compiling under Cocoa to
4352 avoid name conflict.
4353 * termhooks.h (display_info): Add ns_display_info to union.
4354 * terminal.c (Fterminal_live_p): Add ns to terminal types.
4355 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
4356 COCOA environment.
4357 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
4358 unexec() signature. (Note, this will dump, but the resulting file
4359 crashes; unexosx is used instead; keeping around for reference and
4360 possible aid in getting dump working under GNUstep.)
4361 * w32gui.h (button_type, widget_value): Remove definitions (now in
4362 keyboard.h).
4363 * window.c: Include nsterm.h when compiling under NS.
4364 * xdisp.c (includes): Include nsterm.h when compiling under NS.
4365 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
4366 other GUI windowing systems.
4367 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
4368 GTK.
4369 (x_consider_frame_title): Under NS, set icon type and frame
4370 modified-state indicator; use ns_set_name_as_filename() when using
4371 formatted title.
4372 (update_window_cursor): Make public when compiling under NS.
4373 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
4374 (hourglass_atimer, Vhourglass_delay
4375 * xfaces.c (header section, init_frame_faces, clear_font_table)
4376 (defined_color, unload_color, x_face_list_fonts)
4377 (prepare_face_for_display): Add NS support parallel to other GUIs.
4378 Emulate GCs like other non-X GUIs.
4379 (split_font_name): Don't lowercase font name under NS.
4380 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
4381 under NS.
4382 * s/darwin.h: Add support for compilation under NS.
4383
43842008-07-15 Jason Rumney <jasonr@gnu.org>
4385
4386 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
4387 (w32_show_hourglass): Rename from show_hourglass.
4388 (w32_hide_hourglass): Rename from hide_hourglass.
4389 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
4390 (Vhourglass_delay): Declare extern.
4391 (hourglass_started): Remove.
4392
4393 * xdisp.c (Vhourglass_delay): Remove static.
4394 (hourglass_started, start_hourglass, cancel_hourglass):
4395 Don't include these versions on WINDOWSNT.
4396
43972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4398
4399 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
4400 variables (formerly in xfns.c).
4401 (show_hourglass, hide_hourglass): New prototypes (same).
4402 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
4403 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
4404 in xfns.c).
4405 (syms_of_xdisp): Declare/initialize display-hourglass,
4406 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
4407 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
4408 formerly in xfns.c.
4409 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4410 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4411 (start_hourglass, cancel_hourglass): Remove.
4412 (show_hourglass, hide_hourglass): Remove prototypes and static
4413 modifiers.
4414 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
4415 hourglass_atimer, hourglass_shown_p declaration/initialization.
4416 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4417 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4418 (start_hourglass, cancel_hourglass): Remove.
4419 (show_hourglass, hide_hourglass): Remove prototypes and static
4420 modifiers.
4421 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
4422 hourglass_atimer, hourglass_shown_p declaration/initialization.
4423 * w32fns.c (display_hourglass_p, Vhourglass_delay)
4424 (DEFAULT_HOURGLASS_DELAY): Remove.
4425 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
4426 hourglass_shown_p declaration/initialization.
4427
44282008-07-14 Jason Rumney <jasonr@gnu.org>
4429
4430 * w32fns.c (w32_get_arg): Remove wrapper function.
4431 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
4432 directly.
4433 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
4434
44352008-07-14 Kenichi Handa <handa@m17n.org>
4436
4437 * xfont.c (xfont_open): Add workaround for X's bug.
4438
44392008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4440
4441 * fontset.c: Include <stdio.h> unconditionally.
4442
44432008-07-13 Michael Albinus <michael.albinus@gmx.de>
4444
4445 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
4446 for filtering.
4447
44482008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4449
4450 * s/vms.h: Use __GNUC__ instead of _GNUC_.
4451
4452 * m/macppc.h:
4453 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
4454
4455 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
4456 (SPECIAL_EMACS_INT):
4457 * m/ia64.h (SPECIAL_EMACS_INT):
4458 * m/amdx86-64.h (SPECIAL_EMACS_INT):
4459 * s/gnu.h (NLIST_STRUCT):
4460 * s/aix4-2.h (X11R5_INHIBIT_I18N):
4461 * s/gnu-linux.h (LINUX):
4462 * s/msdos.h (HAVE_FACES):
4463 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
4464
4465 * systty.h:
4466 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
4467 anymore.
4468
44692008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4470
4471 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
4472 always defined as int.
4473
4474 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
4475 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
4476 * s/gnu-linux.h (HAVE_WAIT_HEADER):
4477 * s/freebsd.h (HAVE_WAIT_HEADER):
4478 * s/bsd-common.h (HAVE_UNION_WAIT):
4479 * s/aix4-2.h (HAVE_WAIT_HEADER):
4480 * m/mips.h (HAVE_UNION_WAIT):
4481 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
4482 (COFF, static): Do not define, they are undefined later in the file.
4483
4484 * process.c (update_status): Don't use a union.
4485 (status_convert):
4486 (sigchld_handler): Use int instead of WAITTYPE.
4487
44882008-07-12 Chong Yidong <cyd@stupidchicken.com>
4489
4490 * indent.c (Fvertical_motion): Restore hscroll before moving to
4491 goal column.
4492
44932008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4494
4495 * lisp.h: Remove left over code.
4496
44972008-07-11 Andreas Schwab <schwab@suse.de>
4498
4499 * lisp.h: Fix logic in last change.
4500
4501 * menu.h: New file.
4502 * menu.c: Include it.
4503 * xmenu.c: Likewise.
4504 * Makefile.in: Update dependencies.
4505
45062008-07-11 Kenichi Handa <handa@m17n.org>
4507
4508 * fontset.c (fontset_from_font): Cancel the previous change.
4509
45102008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4511
4512 * lisp.h:
4513 * w32heap.c:
4514 * emacs.c:
4515 * alloc.c: Replace all references of NO_UNION_TYPE with
4516 USE_LISP_UNION_TYPE.
4517
4518 * m/xtensa.h (NO_UNION_TYPE):
4519 * m/vax.h (NO_UNION_TYPE):
4520 * m/template.h (NO_UNION_TYPE):
4521 * m/sparc.h (NO_UNION_TYPE):
4522 * m/mips.h (NO_UNION_TYPE):
4523 * m/macppc.h (NO_UNION_TYPE):
4524 * m/m68k.h (NO_UNION_TYPE):
4525 * m/iris4d.h (NO_UNION_TYPE):
4526 * m/intel386.h (NO_UNION_TYPE):
4527 * m/ibms390x.h (NO_UNION_TYPE):
4528 * m/ibms390.h (NO_UNION_TYPE):
4529 * m/ibmrs6000.h (NO_UNION_TYPE):
4530 * m/ia64.h (NO_UNION_TYPE):
4531 * m/hp800.h (NO_UNION_TYPE):
4532 * m/arm.h (NO_UNION_TYPE):
4533 * m/amdx86-64.h (NO_UNION_TYPE):
4534 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
4535 defining it the same.
4536
45372008-07-10 Chong Yidong <cyd@stupidchicken.com>
4538
4539 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
4540
45412008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4542
4543 * fileio.c:
4544 * sysdep.c
4545 * systty.h:
4546 * m/ibmrs6000.h:
4547 * m/iris4d.h:
4548 * s/aix4-2.h:
4549 * s/freebsd.h:
4550 * s/gnu-linux.h:
4551 * s/hpux10-20.h:
4552 * s/hpux11.h:
4553 * s/netbsd.h:
4554 * s/sol2-3.h:
4555 * s/sol2-4.h:
4556 * s/sol2.h:
4557 * s/usg5-4.h:
4558 * s/vms.h: Remove references to unused variables.
4559
45602008-07-10 Andreas Schwab <schwab@suse.de>
4561
4562 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
4563 pattern before matching the generic family.
4564
45652008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4566
4567 * unexec.c:
4568 * s/vms.h:
4569 * s/usg5-4-2.h:
4570 * s/sol2-5.h:
4571 * s/freebsd.h:
4572 * s/darwin.h: Remove dead code.
4573
4574 * m/template.h:
4575 * m/sparc.h:
4576 * m/mips.h:
4577 * m/m68k.h:
4578 * m/iris4d.h:
4579 * m/intel386.h:
4580 * m/ibms390x.h:
4581 * m/ibms390.h:
4582 * m/ia64.h:
4583 * m/hp800.h:
4584 * m/arm.h:
4585 * m/amdx86-64.h: Remove dead code and references to unused
4586 and compiler defined symbols.
4587
4588 * unexmips.c:
4589 * unexelf.c: Remove references to desupported systems.
4590
4591 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
4592
4593 * m/powermac.h: Remove boilerplate comments.
4594 (NO_REMAP): Remove unused definition.
4595
4596 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
4597 define them.
4598
45992008-07-10 Kenichi Handa <handa@m17n.org>
4600
4601 * xfont.c (xfont_open): Log the reason of failure.
4602
46032008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4604
4605 * fontset.c (fontset_get_font_group):
4606 * font.c (font_check_otf): Specify argument types.
4607
46082008-07-09 Kenichi Handa <handa@m17n.org>
4609
4610 * coding.c (detect_coding_utf_8): Set detect_info->found only when
4611 non-ASCII char is found.
4612
4613 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
4614 (reorder_font_vector): Change the arg preferred_family to font.
4615 Prefer the spec matching with font.
4616 (fontset_get_font_group): New function.
4617 (fontset_find_font): Change the format of an element of a realized
4618 fontset. Use fontset_get_font_group.
4619 (fontset_font): Try the current fontset, the default fontset, the
4620 fallbacks of the current fontset, and the fallbacks of the default
4621 fontset in this order.
4622 (face_for_char): Delete the shortcut to use the current font.
4623 (fontset_from_font): Don't set fonts for Latin in the fontset.
4624
4625 * font.h (font_make_object, font_match_p): Adjust prototypes.
4626
4627 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
4628
4629 * font.c (font_make_object): New arg entity and pixelsize.
4630 (font_check_otf_features, font_check_otf): New functions.
4631 (font_match_p): Check :lang, :script, and :otf properties.
4632
4633 * xfont.c (xfont_open): Adjust it for the change of
4634 font_make_object.
4635 (xfont_text_extents): Fix initial setting of metrics.
4636
4637 * ftfont.c (struct ftfont_info): New member index, delete member
4638 fc_charset_idx. Make the member order compatible with struct
4639 xftfont_info.
4640 (fc_charset_table): Change charset names to registry names.
4641 (ftfont_pattern_entity): Delete the args registry and
4642 fc_charset_idx. Change the value of :font-entity property
4643 to (FONTNAME . INDEX). Always set :registry property to
4644 `iso10646-1'.
4645 (struct ftfont_cache_data): New struct.
4646 (ftfont_lookup_cache): New arg for_face.
4647 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
4648 (ftfont_driver): Set the member otf_capability.
4649 (ftfont_get_charset): Adjust it for the change of
4650 fc_charset_table.
4651 (OTF_TAG_SYM): New macro.
4652 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
4653 for the change of fc_charset_table.
4654 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
4655 ftfont_pattern_entity. Add FC_INDEX to objset.
4656 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
4657 and ftfont_pattern_entity.
4658 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
4659 font_make_object, struct ftfont_info.
4660 (ftfont_has_char): Use ftfont_get_fc_charset.
4661 (ftfont_otf_features, ftfont_otf_capability): New functions.
4662 (ftfont_shape): Use ftfont_get_otf.
4663 (ftfont_text_extents): Fix initial setting of metrics.
4664
4665 * xftfont.c (struct xftfont_info): New member ft_size. Make the
4666 member order compatible with struct ftfont_info.
4667 (xftfont_open): Add FC_CHARSET to the pattern. Set
4668 xftfont_info->ft_size. Don't unlock the face. Check BDF
4669 properties if appropriate.
4670 (xftfont_close): Unlock the face.
4671 (xftfont_anchor_point, xftfont_shape): Deleted.
4672 (syms_of_xftfont): Don't set members anchor_point and shape of
4673 xftfont_driver.
4674
4675 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
4676 font_make_object.
4677
4678 * w32font.c (w32font_open): Adjust it for the change of
4679 font_make_object.
4680 (w32font_open_internal): Don't set properties of font_object here.
4681
46822008-07-08 Chong Yidong <cyd@stupidchicken.com>
4683
4684 * macfns.c (x_create_tip_frame):
4685 * w32fns.c (x_create_tip_frame):
4686 * xfns.c (x_create_tip_frame): Pass parameter argument to
4687 face-set-after-frame-default.
4688
4689 * xfaces.c (Finternal_merge_in_global_face): Save merged
4690 attributes for the default face back into the face vector.
4691
46922008-07-08 Andreas Schwab <schwab@suse.de>
4693
4694 * fontset.h: Declare fontset_from_font. Don't declare
4695 new_fontset_from_font and fontset_from_font_name.
4696 * xterm.c: Include "fontset.h".
4697 * Makefile.in (xterm.o): Update dependencies.
4698
46992008-07-08 Glenn Morris <rgm@gnu.org>
4700
4701 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
4702 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
4703
47042008-07-07 Chong Yidong <cyd@stupidchicken.com>
4705
4706 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
4707 (x_set_frame_parameters): Don't bind it.
4708
47092008-07-07 Juanma Barranquero <lekktu@gmail.com>
4710
4711 * w32fns.c (map_w32_filename): Declare extern.
4712
47132008-07-07 Jason Rumney <jasonr@gnu.org>
4714
4715 * w32term.c (WS_EX_LAYERED): Define if not already.
4716
47172008-07-06 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * xfaces.c (set_font_frame_param): Don't try to set the font
4720 parameter if it is still unspecified in the lface.
4721
47222008-07-05 Chong Yidong <cyd@stupidchicken.com>
4723
4724 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
4725 face if it didn't already exist.
4726
4727 * xdisp.c (try_window_id): Give up if word-wrapping is on.
4728
47292008-07-05 Andreas Schwab <schwab@suse.de>
4730
4731 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
4732
47332008-07-05 Chong Yidong <cyd@stupidchicken.com>
4734
4735 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
4736 word-wrapping.
4737 (IT_DISPLAYING_WHITESPACE): New macro.
4738 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
4739 when word-wrapping. Simplify word-wrapping logic. Use correct
4740 pixel positions when saving copies of the iterator.
4741 (display_line): Use proper wrap point if the last character on a
4742 line was preceded by whitespace.
4743
47442008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
4745
4746 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
4747
47482008-07-04 Kenichi Handa <handa@m17n.org>
4749
4750 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
4751
4752 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
4753
47542008-07-02 Jason Rumney <jasonr@gnu.org>
4755
4756 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 4757 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
4758
4759 * xdisp.c (next_element_from_display_vector): Move assignment out
4760 of if statement.
4761
47622008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
4763
4764 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
4765
4766 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
4767 (syms_of_fileio): Initialize and export them.
4768 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
4769
4770 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
4771 (Fsystem_move_file_to_trash): New function.
4772 (syms_of_w32fns): Export it to lisp.
4773
47742008-07-01 Jason Rumney <jasonr@gnu.org>
4775
4776 * w32font.c (w32font_text_extents): Don't count overhang as part
4777 of width.
4778
47792008-06-30 Miles Bader <miles@gnu.org>
4780
4781 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
4782 Add `avoid_cursor_p' field.
4783
4784 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
4785 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
4786 (append_glyph, append_composite_glyph, produce_image_glyph)
4787 (append_stretch_glyph): Initialize avoid_cursor_p.
4788 (get_it_property): Rename from `get_line_height_property'.
4789 (x_produce_glyphs): Use get_it_property.
4790 (handle_line_prefix, push_display_prop): New functions.
4791 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
4792 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
4793 New variables.
4794 (syms_of_xdisp): Initialize them.
4795
47962008-06-30 Kenichi Handa <handa@m17n.org>
4797
4798 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
4799 XftDefaultSubstitute (they are called in XftFontMatch).
4800 (xftfont_open): Fix args to ftfont_font_format.
4801
4802 * ftfont.c (fc_charset_table): New member lang.
4803 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 4804 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
4805 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
4806 (ftfont_open): Fix args to ftfont_font_format.
4807 (ftfont_font_format): New arg filename.
4808
48092008-06-30 Chong Yidong <cyd@stupidchicken.com>
4810
4811 * xfaces.c (Finternal_merge_in_global_face): If default face was
4812 modified, realize it again. Update the font face attribute.
4813
48142008-06-29 Jason Rumney <jasonr@gnu.org>
4815
4816 * w32term.c (x_set_frame_alpha): Fix logic.
4817
48182008-06-29 Kenichi Handa <handa@m17n.org>
4819
4820 * fontset.c (Finternal_char_font): Return font-object instead of
4821 font-name.
4822
4823 * composite.c (get_composition_id): Fix the width calculation for TAB.
4824
48252008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
4826
4827 * indent.c (Fvertical_motion): Properly handle float column arg.
4828
48292008-06-28 Jason Rumney <jasonr@gnu.org>
4830
4831 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
4832 (pfnSetLayeredWindowAttributes): New function pointer.
4833 (w32_initialize): Initialize it when supported.
4834 (x_set_frame_alpha): New function.
4835
4836 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
4837 (w32_frame_parm_handlers): Set alpha handler.
4838
4839 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
4840
48412008-06-27 Jason Rumney <jasonr@gnu.org>
4842
4843 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
4844 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
4845 (w32_to_x_charset, x_to_w32_charset)
4846 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4847 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4848 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4849 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4850 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4851 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4852 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
4853 (Qw32_charset_unicode): Remove.
4854 (syms_of_w32fns): Update for above changes.
4855
4856 * w32font.c (w32_to_x_charset, x_to_w32_charset)
4857 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4858 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4859 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4860 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4861 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4862 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4863 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
4864 (syms_of_w32font): Update for above changes.
4865
48662008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4867
4868 * s/usg5-4.h: Fix previous change: keep the correct branch of a
4869 removed #if.
4870 (USG_SHARED_LIBRARIES): Remove duplicate definition.
4871
48722008-06-26 Juanma Barranquero <lekktu@gmail.com>
4873 Eli Zaretskii <eliz@gnu.org>
4874
4875 * makefile.w32-in (LOCAL_FLAGS):
4876 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
4877
4878 * sysdep.c (_spawnlp, _getpid):
4879 Declare with explicit _cdecl instead of _CRTAPI1.
4880
4881 * editfns.c (Fget_internal_run_time):
4882 Check for WINDOWSNT with #ifdef, not #if.
4883
48842008-06-26 Jason Rumney <jasonr@gnu.org>
4885
4886 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
4887
4888 * w32term.c (x_draw_glyph_string_foreground)
4889 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
4890 Use FONT_HANDLE macro.
4891 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
4892
4893 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4894 (uniscribe_encode_char): Use FONT_HANDLE macro.
4895
4896 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
4897 (w32font_text_extents): Use precast w32_font.
4898 (w32font_close): Free cached metrics.
4899 (w32font_open_internal): Allocate space for name on stack.
4900
49012008-06-26 Chong Yidong <cyd@stupidchicken.com>
4902
4903 * xdisp.c (extend_face_to_end_of_line): Fix last change.
4904
49052008-06-26 Jason Rumney <jasonr@gnu.org>
4906
4907 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
4908 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
4909
49102008-06-26 Juanma Barranquero <lekktu@gmail.com>
4911
4912 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
4913
49142008-06-26 Jason Rumney <jasonr@gnu.org>
4915
4916 * w32bdf.c, w32bdf.h: Remove obsolete files.
4917
4918 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
4919
4920 * w32gui.h: Don't include w32bdf.h.
4921 (XCharStruct, enum w32_char_font_type, W32FontStruct):
4922 Remove obsolete font support.
4923
4924 * w32font.h (struct w32font_info): Remove compat_w32_font.
4925 Add hfont member.
4926 (FONT_COMPAT): Remove obsolete macro.
4927
4928 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
4929 (w32font_encode_char, w32font_text_extents): Use new hfont member.
4930 (w32font_open_internal): Remove compat code. Set new hfont member.
4931 (Fx_select_font): Use new hfont member.
4932
4933 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4934 (uniscribe_encode_char): Use new hfont member.
4935
4936 * w32term.c (x_draw_glyph_string_foreground)
4937 (x_draw_composite_glyph_string_foreground): Use new hfont member.
4938 (x_draw_glyph_string): Use metrics in w32font_info.
4939
49402008-06-26 Kenichi Handa <handa@m17n.org>
4941
4942 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
4943
49442008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
4945
4946 * unexnext.c:
4947 * m/ews4800.h:
4948 * m/hp9000s300.h:
4949 * m/ibm370aix.h:
4950 * m/mips-siemens.h:
4951 * m/ncr386.h:
4952 * m/next.h:
4953 * m/pmax.h:
4954 * m/powerpcle.h:
4955 * m/tandem-s2.h:
4956 * s/386bsd.h:
4957 * s/bsd386.h:
4958 * s/bsd4-1.h:
4959 * s/bsd4-2.h:
4960 * s/bsdos2-1.h:
4961 * s/bsdos2.h:
4962 * s/bsdos3.h:
4963 * s/bsdos4.h:
4964 * s/nextstep.h:
4965 * s/ultrix4-3.h:
4966 * s/usg5-0.h:
4967 * s/usg5-2-2.h:
4968 * s/usg5-2.h:
4969 * s/usg5-4-3.h:
4970 * s/ux4800.h:
4971 * s/uxpds.h:
4972 * s/uxpv.h: Remove support for obsolete systems.
4973 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 4974 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
4975 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4976 Remove, insert contents in s/aix4-2.h.
4977 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4978 * s/bsd4-3.h: Rename to ...
4979 * s/bsd-common.h: ... this.
4980 * data.c:
4981 * doc.c:
4982 * ecrt0.c:
4983 * emacs.c:
4984 * fileio.c:
4985 * floatfns.c:
4986 * keyboard.c:
4987 * mem-limits.h:
4988 * print.c:
4989 * process.c:
4990 * sysdep.c:
4991 * syssignal.h:
4992 * systty.h:
4993 * syswait.h:
4994 * term.c:
4995 * unexec.c:
4996 * unexelf.c:
4997 * unexhp9k800.c:
4998 * m/hp800.h:
4999 * m/ibmrs6000.h:
5000 * m/mips.h:
5001 * m/vax.h:
5002 * s/darwin.h:
5003 * s/freebsd.h:
5004 * s/gnu.h:
5005 * s/ms-w32.h:
5006 * s/msdos.h:
5007 * s/netbsd.h:
5008 * s/template.h: Remove references to obsolete variables.
5009
5010 * Makefile.in: Add dependencies for all unexec files.
5011 (admindir): Remove unused variable.
5012 (UNEXEC_SRC): Remove references.
5013
50142008-06-25 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * xfns.c (x_default_font_parameter): If Xft is available, first
5017 try Monospace-12 for the default font.
5018
50192008-06-25 Jason Rumney <jasonr@gnu.org>
5020
5021 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5022
50232008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5024
5025 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5026
5027 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5028
50292008-06-25 Juanma Barranquero <lekktu@gmail.com>
5030
5031 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5032 <scroll-conservatively>: Fix typo in docstring.
5033
5034 * xselect.c (Fx_send_client_event): Doc fix.
5035
50362008-06-25 Kenichi Handa <handa@m17n.org>
5037
5038 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5039
5040 * font.c (font_parse_fcname): Remove unused variables.
5041 (font_sort_entites): Delete the arg SPEC. Caller changed.
5042 Fix for the case of ! best_only.
5043 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5044
5045 * lisp.h (Fstring_to_unibyte): EXFUN it.
5046
5047 * character.h (str_to_unibyte): Extern it.
5048
5049 * character.c (str_to_unibyte): New function.
5050
5051 * fns.c (Fstring_to_unibyte): New function.
5052 (syms_of_fns): Defsubr it.
5053
50542008-06-24 Kenichi Handa <handa@m17n.org>
5055
5056 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5057 DPI too.
5058 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5059
50602008-06-24 Andreas Schwab <schwab@suse.de>
5061
5062 * Makefile.in (${lispsource}loaddefs.el): Rename from
5063 ../lisp/loaddefs.el.
5064 (bootstrap-clean): Do what distclean does but don't remove
5065 Makefile.
5066 (distclean): Depend on bootstrap-clean and remove Makefile.
5067
50682008-06-24 Chong Yidong <cyd@stupidchicken.com>
5069
5070 * buffer.h (struct buffer): New member word_wrap.
5071
5072 * buffer.c (syms_of_buffer): New variables default-word-wrap and
5073 word-wrap.
5074 (init_buffer_once): Initialize them.
5075
5076 * dispextern.h (struct it): Replace bool truncate_lines_p with a
5077 line_wrap enum possessing three possible values.
5078
5079 * termopts.h: Replace truncate_partial_width_windows with
5080 Vtruncate_partial_width_windows.
5081
5082 * dispnew.c (direct_output_for_insert): Avoid direct output when
5083 inserting a space with word wrap on.
5084
5085 * indent.c (compute_motion): Obey integer values of
5086 truncate-partial-width-windows.
5087
5088 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
5089 replacing truncate_partial_width_windows.
5090 (init_iterator): If Vtruncate_partial_width_windows is an integer,
5091 truncate only if the window width is below that integer.
5092 (start_display, resize_mini_window, produce_stretch_glyph)
5093 (display_string, move_it_in_display_line_to): Use line_wrap.
5094 (back_to_previous_visible_line_start, reseat_1): Reset
5095 string_from_display_prop_p.
5096 (display_line): Extend default face to end of line when wrapping.
5097
50982008-06-24 Kim F. Storm <storm@cua.dk>
5099
5100 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5101 to wrap continued lines at word boundaries.
5102
51032008-06-24 Jason Rumney <jasonr@gnu.org>
5104
5105 * font.c (Ffont_face_attributes): Multiply pixel size before point
5106 conversion to avoid multiplying rounding error.
5107
51082008-06-23 Jason Rumney <jasonr@gnu.org>
5109
5110 * w32term.c (x_draw_glyph_string_background)
5111 (x_draw_glyph_string): Remove old bdf font code.
5112
5113 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5114
51152008-06-22 Kenichi Handa <handa@m17n.org>
5116
5117 * font.c (font_find_for_lface): Try the adstyle specified in
5118 the property of LFACE_FONT of LFACE (if any).
5119
51202008-06-21 Seiji Zenitani <zenitani@mac.com>
5121 Ryo Yoshitake <ryo@shiftmode.net>
5122
5123 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5124
51252008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5126
5127 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5128 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5129 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5130 (witness-emacs): Remove.
5131 (lisp, shortlisp): Move loaddefs.el earlier.
5132 (mostlyclean): Forget about witness-emacs.
5133
51342008-06-22 Glenn Morris <rgm@gnu.org>
5135
5136 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5137 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5138
51392008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5140
5141 * Makefile.in (PRECOMP): Remove.
5142 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5143 (witness-emacs): Run `compile-first'.
5144 (.el.elc): Use the new compile-onefile target.
5145
51462008-06-21 Kenichi Handa <handa@m17n.org>
5147
5148 * xftfont.c (xftfont_open): Handle QCembolden only when
5149 FC_EMBOLDEN is defined.
5150
51512008-06-21 Andreas Schwab <schwab@suse.de>
5152
5153 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5154 (.el.elc): Likewise.
5155
51562008-06-21 Miles Bader <miles@gnu.org>
5157
5158 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5159 build dir, not the lisp source dir.
5160
51612008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5162
5163 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5164 (bootstrapclean): Remove.
5165 (.el.elc): New rule.
5166 (PRECOMP): New var.
5167 (../lisp/subdirs.el): Remove.
5168 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5169 (witness-emacs): New target.
5170 (mostlyclean): Remove witness-emacs as well.
5171 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5172 Add witness-emacs dependency.
5173
51742008-06-20 Chong Yidong <cyd@stupidchicken.com>
5175
5176 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5177 defined by the font.
5178
51792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5180
5181 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5182 (bootstrap-clean): New target that keeps TAGS around.
5183 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5184 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5185
51862008-06-20 Jason Rumney <jasonr@gnu.org>
5187
5188 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5189 Remove obsolete font code.
5190
5191 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5192 to determine language support.
5193
51942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5195
5196 * sysdep.c (cfsetspeed): New fun extracted from the code.
5197 (cfmakeraw): Move before first use.
5198
51992008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5200
5201 * sysdep.c (cfmakeraw): Provide fallback implementation.
5202 (serial_configure): Provide fallback implementation of cfsetspeed.
5203
52042008-06-20 Kenichi Handa <handa@m17n.org>
5205
5206 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5207 the pattern.
5208
5209 * fontset.c (fontset_from_font): Copy font_spec before changing
5210 the elements.
5211
5212 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5213
52142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5215
5216 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5217 for explicit `font' parameters.
5218
5219 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5220
52212008-06-19 Kenichi Handa <handa@m17n.org>
5222
5223 * frame.c: Include <ctype.h>.
5224 (x_set_font_backend): Allow spacing characters in the X resource
5225 for FontBackend.
5226
52272008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5228
5229 * w32fns.c, xfns.c (Qfont_param): New var.
5230 (syms_of_w32fns): Initialize it.
5231 (x_default_font_parameter): Record explicit `font' into
5232 `font-parameter'.
5233
52342008-06-18 Kenichi Handa <handa@m17n.org>
5235
5236 * font.c (font_parse_xlfd): Fix previous change.
5237 (font_parse_fcname): Don't use :fc-unknown-spec.
5238 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5239 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5240 (font_add_log): Prepend the driver name to the resulting fonts.
5241
5242 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5243 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5244 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5245
5246 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5247 (QCembolden): New variables.
5248 (syms_of_xftfont): DEFSYM them.
5249 (xftfont_open): Call XftFontMatch. Don't trust the result of
5250 XftTextExtents8 if the pixel_size is less than 5.
5251
52522008-06-18 Andreas Schwab <schwab@suse.de>
5253
5254 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5255 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5256
52572008-06-18 Jason Rumney <jasonr@gnu.org>
5258
5259 * w32font.c (w32font_list, w32font_match): Add logging.
5260
5261 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5262
52632008-06-17 Chong Yidong <cyd@stupidchicken.com>
5264
5265 * font.c (font_parse_fcname): Store divider characters for
5266 unknown-spec list. For known key symbols, intern using correct
5267 symbol name.
5268
52692008-06-17 Kenichi Handa <handa@m17n.org>
5270
5271 * xfaces.c (realize_default_face): If the frame is not on window
5272 system, set the fontset of face to nil.
5273
52742008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5275
5276 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5277
52782008-06-16 Juanma Barranquero <lekktu@gmail.com>
5279
5280 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5281 (build_font_name_from_vector): Delete externs.
5282
5283 * xfaces.c (struct font_name): Don't declare.
5284
52852008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5286
5287 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
5288
52892008-06-16 Chong Yidong <cyd@stupidchicken.com>
5290
5291 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
5292
52932008-06-16 Juanma Barranquero <lekktu@gmail.com>
5294
5295 * font.c (Ffont_spec): Fix usage in docstring.
5296 (Ffont_face_attributes): Doc fix.
5297
52982008-06-16 Andreas Schwab <schwab@suse.de>
5299
5300 * font.c (Ffont_face_attributes): Fix definition.
5301
53022008-06-16 Jason Rumney <jasonr@gnu.org>
5303
5304 * font.h (font_style_symbolic_from_value): Remove.
5305
5306 * font.c (font_style_symbolic_from_value): Remove.
5307 (font_style_symbolic): Revert to pre 2008-06-13 version.
5308
5309 * w32font.c (w32_to_fc_weight): New function.
5310 (w32font_full_name, logfont_to_fcname): Use it.
5311
53122008-06-16 Kenichi Handa <handa@m17n.org>
5313
5314 * font.c (font_check_object): Delete it.
5315 (font_clear_cache): Check if a font-object is alive.
5316 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
5317 font-object to nil.
5318 (font_close_object): Don't check FONT_CLOSE_OBJECT.
5319 (font_at): Don't call font_check_object.
5320 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5321
53222008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
5323
5324 * puresize.h (BASE_PURESIZE): Increase to 1230000.
5325
53262008-06-16 Chong Yidong <cyd@stupidchicken.com>
5327
5328 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
5329
53302008-06-15 Chong Yidong <cyd@stupidchicken.com>
5331
5332 * font.c (font_parse_fcname): Only one decimal point.
5333 (font_unparse_fcname): Handle data in family and foundry indices
5334 as symbols, not strings.
5335 (font_unparse_gtkname, Ffont_face_attributes): New functions.
5336
5337 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
5338
5339 * font.h (font_unparse_gtkname): Add prototype.
5340
53412008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5342
5343 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
5344
53452008-06-15 Andreas Schwab <schwab@suse.de>
5346
5347 * font.c (font_update_drivers): Fix crash when no drivers match.
5348
53492008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
5350
5351 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
5352 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
5353
53542008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
5355
5356 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
5357
53582008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5359
5360 * process.c (Fserial_process_configure, Fprocess_send_eof):
5361 Use EQ to compare Lisp_Objects.
5362
53632008-06-13 Jason Rumney <jasonr@gnu.org>
5364
5365 * w32fns.c (Fw32_select_font): Remove old font API function.
5366
5367 * w32font.c (logfont_to_fcname): New function.
5368 (Fx_select_font): New font dialog function compatible with
5369 GTK/fontconfig version.
5370
5371 * font.c (font_style_symbolic_from_value): New function.
5372 (font_style_symbolic): Use it.
5373
5374 * font.h (font_style_symbolic_from_value): Declare new function.
5375
53762008-06-13 Juanma Barranquero <lekktu@gmail.com>
5377
5378 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
5379 <font-width-table>: Fix typos in docstrings.
5380
53812008-06-13 Daniel Engeler <engeler@gmail.com>
5382
5383 These changes add serial port access.
5384 * process.c: Add HAVE_SERIAL.
5385 (Fdelete_process, Fprocess_status, Fset_process_buffer)
5386 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
5387 (list_processes_1, select_wrapper, Fstop_process)
5388 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
5389 (status_notify): Modify to handle serial processes.
5390 [HAVE_SERIAL] (Fserial_process_configure)
5391 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
5392 New functions.
5393 * process.h (struct Lisp_Process): Add `type'.
5394 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
5395 New functions.
5396 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
5397 serial ports.
5398 (serial_open, serial_configure) New functions.
5399 * w32.h: Add FILE_SERIAL.
5400 (struct _child_process): Add ovl_read, ovl_write.
5401
54022008-06-13 Kenichi Handa <handa@m17n.org>
5403
5404 * dispextern.h (enum lface_attribute_index): New member
5405 LFACE_FOUNDRY_INDEX.
5406
5407 * font.c (font_score): Delete arg alternate_families. Check only
5408 weight, slant, width, and size. Ignore the difference of alias
5409 style symbols.
5410 (font_sort_entites): Adjust for the above change. Reflect the
5411 order of font-driver to scores.
5412 (font_list_entities): Don't check alternate_familes here.
5413 (font_clear_prop): Handle foundry.
5414 (font_update_lface): Don't parse "foundry-family" form here.
5415 Handle FONT_FOUNDRY_INDEX.
5416 (font_find_for_lface): Likewise. Handle alternate families here.
5417 If registry is nil, try iso8859-1 and ascii-0.
5418 (font_open_for_lface): Pay attention to size in ENTITY.
5419 (font_open_by_name): Simplify by calling font_load_for_lface.
5420 (free_font_driver_list): Delete it.
5421 (font_update_drivers): Preserve the order of backends.
5422 (syms_of_font): Setting of sort_shift_bits adjusted for the change
5423 of font_score and font_sort_entites.
5424 (font_update_sort_order): Likewise.
5425
5426 * xfaces.c (LFACE_FOUNDRY): New macro.
5427 (check_lface_attrs): Check foundry.
5428 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
5429 (merge_face_vectors): Check foundry.
5430 (merge_face_ref): Likewise.
5431 (Finternal_set_lisp_face_attribute): Likewise.
5432 (x_update_menu_appearance): Likewise.
5433 (Finternal_get_lisp_face_attribute): Likewise.
5434 (lface_hash): Likewise.
5435 (lface_same_font_attributes_p): Likewise.
5436 (x_supports_face_attributes_p): Likewise.
5437 (tty_supports_face_attributes_p): Likewise.
5438 (Finternal_set_alternative_font_family_alist): Intern strings.
5439 (Finternal_set_alternative_font_registry_alist): Downcase strings.
5440 (realize_default_face): Set LFACE_FOUNDRY (lface).
5441
5442 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
5443 font-driver at first.
5444
5445 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
5446
54472008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5448
5449 * lread.c (Fload): Use xfree, not free on saved_doc_string.
5450
54512008-06-12 Jim Meyering <meyering@redhat.com>
5452
5453 Make unexec_free handle NULL the same way free does.
5454 * unexmacosx.c (unexec_free): Ignore a NULL argument.
5455
54562008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
5457
5458 * character.h (CHAR_TO_BYTE_SAFE): New macro.
5459 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
5460 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
5461 (WEAK_ALIAS): Simplify.
5462 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
5463 when searching a unibyte buffer.
5464
54652008-06-12 Chong Yidong <cyd@stupidchicken.com>
5466
5467 * xfns.c (Fx_select_font): Rename from x-font-dialog.
5468
54692008-06-12 Juanma Barranquero <lekktu@gmail.com>
5470
5471 * w32font.c: Include ctype.h.
5472
54732008-06-11 Jason Rumney <jasonr@gnu.org>
5474
5475 * w32font.c (w32font_encode_char): Detect missing glyphs that are
5476 misreported as space.
5477 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
5478 as aliases for registry iso10646-1.
5479
54802008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * buffer.c (clone_per_buffer_values): Skip `name'.
5483
54842008-06-11 Chong Yidong <cyd@stupidchicken.com>
5485
5486 * font.c (font_parse_fcname): Fix last change; accept decimal
5487 points in font size.
5488
54892008-06-10 Jason Rumney <jasonr@gnu.org>
5490
5491 * w32uniscribe.c (add_opentype_font_name_to_list):
5492 Skip non unicode fonts.
5493
54942008-06-10 Chong Yidong <cyd@stupidchicken.com>
5495
5496 * xfns.c (Fx_font_dialog): New function.
5497
5498 * gtkutil.c (xg_dialog_response_cb): Rename from
5499 xg_file_response_callback.
5500 (pop_down_dialog): Rename from pop_down_file_dialog.
5501 (xg_get_file_name): Callers changed.
5502 (xg_get_font_name): New function.
5503
5504 * gtkutil.h (xg_get_font_name): Insert prototype.
5505
55062008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
5509 x_underline_minimum_display_offset.
5510 (syms_of_xdisp): Declare it here rather than in xterm.c.
5511 * dispextern.h (underline_minimum_offset): Declare it.
5512 * w32term.c (x_draw_glyph_string): Use it.
5513 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
5514 (syms_of_xterm): Don't declare it any more.
5515 (x_draw_glyph_string): Adjust to the new name.
5516
55172008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
5518
5519 * xterm.c (x_underline_minimum_display_offset): New var.
5520 (x_draw_glyph_string): Use it.
5521 (syms_of_xterm): Declare it.
5522
55232008-06-10 Chong Yidong <cyd@stupidchicken.com>
5524
5525 * font.c (font_parse_fcname): Accept GTK-style font names too.
5526
55272008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5528
5529 * dired.c (file_name_completion): Don't return t if the match is exact
5530 but with different capitalization.
5531 * minibuf.c (Ftry_completion): Simplify.
5532
5533 * window.c (Vwindow_point_insertion_type): New var.
5534 (set_window_buffer): Use it.
5535 (syms_of_window): Init and export it to Lisp.
5536
55372008-06-10 Kenichi Handa <handa@m17n.org>
5538
5539 * font.h (font_intern_prop): Prototype adjusted.
5540
5541 * font.c (font_intern_prop): New arg force_symbol.
5542 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
5543 Adjust for the change of font_intern_prop.
5544
5545 * ftfont.c (ftfont_pattern_entity):
5546 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
5547 (w32_registry):
5548 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
5549 the change of font_intern_prop.
5550
55512008-06-09 Juanma Barranquero <lekktu@gmail.com>
5552
5553 * w32menu.c (digest_single_submenu): Declare extern.
5554
55552008-06-09 Jason Rumney <jasonr@gnu.org>
5556
5557 * w32term.c (x_make_frame_visible): Use alternate restore flags.
5558
5559 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
5560 (parse_single_submenu): Remove.
5561 (digest_single_submenu): Remove.
5562 (syms_of_w32menu): Don't initialise variables that have moved
5563 to menu.c.
5564 (set_frame_menubar): Sync with version in xmenu.c.
5565 (w32_menu_show): Sync with xmenu_show in xmenu.c.
5566
5567 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
5568 Make static again.
5569
55702008-06-09 Jason Rumney <jasonr@gnu.org>
5571
5572 Changes to w32 files related to the move of common menu code
5573 to menu.c on 2008-06-08 by Chong Yidong.
5574
5575 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
5576 defs to w32gui.h.
5577 (single_keymap_panes, push_menu_item, push_menu_pane):
5578 Make globally visible.
5579
5580 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
5581 (local_free, malloc_widget_value, free_widget_value)
5582 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
5583 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
5584 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
5585 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
5586 (menu_items, menu_items_allocated, menu_items_used)
5587 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
5588 (init_menu_items, finish_menu_items, discard_menu_items)
5589 (grow_menu_items, push_submenu_start, push_submenu_end)
5590 (push_left_right_boundary, push_menu_pane, push_menu_item)
5591 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
5592 (free_menubar_widget_tree_value, parse_single_submenu)
5593 (update_submenu_strings): Remove functions.
5594 (xmalloc_widget_value): Remove and declare extern.
5595
5596 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
5597 (OBJ1): Build it.
5598
5599 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
5600 (local_heap, local_alloc, local_free, malloc_widget_value)
5601 (free_widget_value): Define here.
5602
56032008-06-09 Kenichi Handa <handa@m17n.org>
5604
5605 * font.h (Qascii_0): Extern it.
5606
5607 * font.c (Qascii_0): New variable.
5608 (syms_of_font): DEFSYM it.
5609 (font_open_by_name): If the registry "iso8859-1" fails, try also
5610 "ascii-0".
5611
5612 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
5613
56142008-06-08 Kenichi Handa <handa@m17n.org>
5615
5616 * .gdbinit (xfont): New command.
5617
56182008-06-08 Andreas Schwab <schwab@suse.de>
5619
5620 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
5621 * Makefile.in (menu.o): Update dependencies.
5622
5623 * Makefile.in (obj): Always add menu.o.
5624 * emacs.c (main): Always call syms_of_menu.
5625 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
5626
56272008-06-08 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * Makefile.in: Compile menu.c.
5630
5631 * lisp.h: Declare syms_of_menu.
5632
5633 * emacs.c (main): Call syms_of_menu.
5634
5635 * keyboard.h: Relocate platform-independent menu definitions from
5636 xmenu.c.
5637
5638 * menu.c: New file. Relocate platform-independent menu
5639 definitions from xmenu.c. Suggested by Adrian Robert.
5640
5641 * xmenu.c: Remove platform-independent menu definitions.
5642 (menu_items menu_items_inuse, menu_items_allocated)
5643 (menu_items_used, menu_items_n_panes)
5644 (menu_items_submenu_depth): Move to keyboard.h.
5645 (init_menu_items, finish_menu_items, unuse_menu_items)
5646 (discard_menu_items, restore_menu_items, save_menu_items)
5647 (grow_menu_items, push_submenu_start, push_submenu_end)
5648 (push_left_right_boundary, push_menu_pane, push_menu_item)
5649 (keymap_panes, single_keymap_panes, single_menu_item)
5650 (list_of_panes, list_of_items, find_and_call_menu_selection)
5651 (xmalloc_widget_value, free_menubar_widget_value_tree)
5652 (parse_single_submenu, digest_single_submenu)
5653 (update_submenu_strings): Move to menu.c.
5654
56552008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
5656
5657 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
5658
56592008-06-06 Miles Bader <miles@gnu.org>
5660
5661 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
5662 face, not frame default.
5663
56642008-06-05 Martin Rudalics <rudalics@gmx.at>
5665
5666 * window.c (pop_up_windows, pop_up_frames)
5667 (display_buffer_reuse_frames, Vpop_up_frame_function)
5668 (Vdisplay_buffer_function, Veven_window_heights)
5669 (Vspecial_display_buffer_names, Vspecial_display_regexps)
5670 (Vspecial_display_function, Vsame_window_buffer_names)
5671 (Vsame_window_regexps, split_height_threshold)
5672 (Vsplit_window_preferred_function): Move those vars to window.el.
5673 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
5674 (Fdisplay_buffer): Move those functions to window.el.
5675 (syms_of_window): Remove corresponding declarations.
5676 (display_buffer): New function.
5677 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
5678 * dispnew.c (Flast_nonminibuf_frame): New function.
5679 * buffer.c (Fpop_to_buffer): Move to window.el.
5680
56812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5682
5683 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
5684
56852008-06-05 Kenichi Handa <handa@m17n.org>
5686
5687 * coding.c (detect_coding): Fix previous change.
5688 (detect_coding_system): Likewise.
5689
56902008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5691
5692 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
5693
5694 * keymap.c (Vminibuffer_local_filename_must_match_map):
5695 Rename from Vminibuffer_local_must_match_filename_map.
5696 (syms_of_keymap):
5697 * minibuf.c (Fcompleting_read): Adjust accordingly.
5698 * commands.h: Rename declaration as well.
5699
57002008-06-05 Kenichi Handa <handa@m17n.org>
5701
5702 * font.c (Ffont_spec): Don't use font_parse_family_registry for
5703 family name.
5704 (Ffont_put): Likewise.
5705
5706 * fontset.c (fontset_find_font): Call font_open_for_lface with the
5707 current font-spec.
5708
5709 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
5710 is unspecified.
5711
5712 * xfaces.c (realize_x_face): If the font-related face attributes
5713 are the same as those of default face, realize a new fontset from
5714 default->fontset.
5715 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
5716
57172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5718
5719 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
5720 (move_it_in_display_line): New wrapper.
5721
5722 * window.c (window_scroll_pixel_based_preserve_x)
5723 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
5724 (window_scroll_pixel_based, window_scroll_line_based):
5725 Use them to preserve column positions.
5726 (syms_of_window): Initialize them.
5727
5728 * indent.c (Fvertical_motion): Extend first arg to allow passing an
5729 (HPOS . VPOS) pair.
5730
5731 * dispextern.h (move_it_in_display_line): Declare.
5732
57332008-06-05 Juanma Barranquero <lekktu@gmail.com>
5734
5735 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
5736 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
5737 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
5738
57392008-06-04 Juanma Barranquero <lekktu@gmail.com>
5740
5741 * window.c (Fset_window_parameter): Doc fix.
5742 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
5743
57442008-06-04 Joakim Verona <joakim@verona.se>
5745
5746 * window.h (struct window): Add new member window_parameters.
5747
5748 * window.c (Fwindow_parameters, Fwindow_parameter)
5749 (Fset_window_parameter): New defuns.
5750 (syms_of_window): Defsubr the new defuns.
5751 (make_window): Initialize window_parameters to nil.
5752
57532008-06-04 John Paul Wallington <jpw@pobox.com>
5754
5755 * eval.c (Fdefmacro): Doc fix.
5756
57572008-06-04 Kenichi Handa <handa@m17n.org>
5758
5759 * coding.c (detect_coding): Fix handling of coding->head_ascii.
5760 Be sure to call setup_coding_system when we find a proper coding system.
5761 (detect_coding_system): Fix handling of coding->head_ascii.
5762
57632008-06-03 Andreas Schwab <schwab@suse.de>
5764
5765 * font.c (font_prop_validate_spacing): Fix last change.
5766
57672008-06-03 Kenichi Handa <handa@m17n.org>
5768
5769 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
5770 (font_parse_fcname): Fix handling of unknown key.
5771
5772 * xfont.c (xfont_list): Try an alias.
5773
5774 * charset.c (char_charset): Return NULL if the arg charset_list is
5775 specified and C doesn't belong to any of them.
5776
57772008-06-02 Chip Coldwell <coldwell@redhat.com>
5778
5779 * font.c (font_pixel_size): Don't take cdr of an integer.
5780
57812008-06-02 Jim Meyering <meyering@redhat.com>
5782
5783 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
5784 * alloc.c (xfree): Return right away for a NULL arg.
5785 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
5786 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
5787 * mac.c (create_apple_event_from_event_ref): Likewise.
5788 (create_apple_event_from_drag_ref, cfstring_create_normalized):
5789 Likewise.
5790 * doprnt.c (doprnt1): Likewise.
5791 * frame.c (frame): Likewise.
5792 * keyboard.c (wipe_kboard): Likewise.
5793 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
5794 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
5795 * term.c (tty_default_color_capabilities, maybe_fatal)
5796 (delete_tty): Likewise.
5797 * w16select.c (string): Likewise.
5798 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
5799 * w32bdf.c (w32_free_bdf_font): Likewise.
5800 * w32fns.c (w32_unload_font): Likewise.
5801 * w32font.c (w32font_close): Likewise.
5802 * window.c (size_window): Likewise.
5803 * xselect.c (receive_incremental_selection): Likewise.
5804 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
5805 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
5806 * w32.c (stat): Likewise.
5807
5808 Remove useless if-before-free tests.
5809 * editfns.c (Fset_time_zone_rule): Likewise.
5810 * lread.c (nosuffix): Likewise.
5811 * ralloc.c (get_bloc): Likewise.
5812 * regex.c (reg_free): Likewise.
5813 * xftfont.c (xftfont_open, xftfont_close): Likewise.
5814 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
5815 * xsmfns.c (smc_save_yourself_CB): Likewise.
5816
58172008-06-02 Kenichi Handa <handa@m17n.org>
5818
5819 * font.c (font_find_for_lface): Handle float font size.
5820 (font_open_for_lface): Likewise.
5821
5822 * xfaces.c (x_supports_face_attributes_p): Check face->font before
5823 comparing the properties.
5824
58252008-06-01 Jason Rumney <jasonr@gnu.org>
5826
5827 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
5828 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
5829 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
5830 Don't add empty script list.
5831 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
5832
58332008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
5834
5835 * Makefile.in (dot, dotdot): Remove, update users.
5836 ".." has been used elsewhere in the file for a long time.
5837 (LIBXT_STATIC): Remove conditional based on unused variable.
5838
58392008-06-01 Miles Bader <miles@gnu.org>
5840
5841 * xfaces.c (Vface_remapping_alist): New variable.
5842 (syms_of_xfaces): Initialize it.
5843 (enum named_merge_point_kind): New type.
5844 (struct named_merge_point): Add `named_merge_point_kind' field.
5845 (push_named_merge_point): Make cycle detection respect different
5846 named-merge-point kinds.
5847 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
5848 Remove face-name alias resolution.
5849 (lface_from_face_name): New definition using
5850 `lface_from_face_name_no_resolve'.
5851 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
5852 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
5853 (get_lface_attributes): New definition that layers face-remapping on
5854 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
5855 (lookup_basic_face): New function.
5856 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
5857 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
5858 `get_lface_attributes'.
5859 (face_at_buffer_position): Use `lookup_basic_face' to lookup
5860 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
5861 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
5862
5863 * xdisp.c (init_iterator): Pass base_face_id through
5864 `lookup_basic_face' when we actually use it as a face-id.
5865 (handle_single_display_prop): Use `lookup_basic_face' to lookup
5866 DEFAULT_FACE_ID.
5867
5868 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
5869 lookup the initial face-id.
5870
5871 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
5872
58732008-06-01 Juanma Barranquero <lekktu@gmail.com>
5874
5875 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
5876 (Fremove_text_properties): Fix typos in docstrings.
5877
58782008-05-31 Kenichi Handa <handa@m17n.org>
5879
5880 * font.c (font_list_entities): Fix the car part of data to be
5881 stored in the cache.
5882
5883 * ftfont.c (ftfont_font_format): Don't use strcasestr.
5884
58852008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5886
5887 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
5888 Add a `test' argument so another predicate than `equal' can be used.
5889 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
5890 (map_char_table): Remove unused vars `c' and `i'.
5891 * lisp.h (Foptimize_char_table): Adjust declaration.
5892 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
5893
58942008-05-30 Kenichi Handa <handa@m17n.org>
5895
5896 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
5897 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
5898 defined.
5899
59002008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5901
5902 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5903 (Fmake_variable_frame_local): Disallow mixing buffer-local and
5904 frame-local settings for the same variable.
5905
59062008-05-30 Kenichi Handa <handa@m17n.org>
5907
5908 * fontset.c (Ffont_info): Move to font.c.
5909 (syms_of_fontset): Delete defsubr of Sfont_info.
5910
5911 * font.c (font_style_to_value, font_score): Delete casting of the
5912 args to xstcasecmp.
5913 (register_font_driver): Increment num_font_drivers only when
5914 registering the driver globally.
5915 (Ffont_info): Move from fontset.c. Handle a font object too.
5916 (syms_of_font): Defsubr Sfont_info.
5917
59182008-05-29 Kenichi Handa <handa@m17n.org>
5919
5920 * coding.h (enum define_coding_utf8_arg_index): New enum.
5921 (enum coding_attr_index): Change coding_attr_utf_16_bom to
5922 coding_attr_utf_bom.
5923 (enum utf_bom_type): Rename from utf_16_bom_type.
5924 (struct utf_16_spec): Adjust for the above change.
5925 (struct coding_system): Add utf_8_bom in `spec' union.
5926
5927 * coding.c (CODING_UTF_8_BOM): New macro.
5928 (enum coding_category): Delete coding_category_utf_8, add
5929 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
5930 coding_category_utf_8_sig.
5931 (CATEGORY_MASK_UTF_8): Delete it.
5932 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
5933 (CATEGORY_MASK_UTF_8_SIG): New macros.
5934 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
5935 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
5936 CATEGORY_MASK_UTF_8_SIG.
5937 (CATEGORY_MASK_UTF_8): New macro.
5938 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
5939 (detect_coding_utf_8): Check BOM.
5940 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
5941 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
5942 (encode_coding_utf_16): Likewise.
5943 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
5944 (detect_coding, detect_coding_system): Handle utf-8-auto.
5945 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
5946 (syms_of_coding): Fix setting up of Vcoding_category_table.
5947
59482008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
5949
5950 * process.c (Faccept_process_output): If `millisec' is non-nil,
5951 `seconds' default to 0.
5952 (wait_reading_process_output): Also return non-nil if we read output
5953 from a non-running process.
5954
59552008-05-29 Jason Rumney <jasonr@gnu.org>
5956
5957 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
5958 `raster' specified.
5959 (add_font_entity_to_list): Allow non-opentype truetype fonts back
5960 in the uniscribe backend, but disallow any font that has no
5961 unicode subrange support.
5962
59632008-05-29 Juanma Barranquero <lekktu@gmail.com>
5964
5965 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
5966 Fix typos in docstrings.
5967
59682008-05-29 Kenichi Handa <handa@m17n.org>
5969
5970 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
5971 (Fx_family_fonts): Set frame correctly.
5972
59732008-05-28 Jason Rumney <jasonr@gnu.org>
5974
5975 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
5976
59772008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5978
5979 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
5980 calling build_annotations.
5981
59822008-05-28 Juanma Barranquero <lekktu@gmail.com>
5983
5984 * coding.c (Fdecode_coding_region, Fencode_coding_region)
5985 (Fencode_coding_string):
5986 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
5987 <latin-extra-code-table>: Fix typos in docstrings.
5988 (syms_of_coding) <coding-system-alist>: Doc fix.
5989 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
5990
59912008-05-28 Kenichi Handa <handa@m17n.org>
5992
5993 * fontset.c (Ffont_info): Don't call font_close_object.
5994
5995 * font.c (font_parse_family_registry): Use Ffont_put to validate
5996 foundry and family.
5997 (font_delete_unmatched): Don't check spacing.
5998 (font_list_entities): Add spacing to the spec to list fonts.
5999
6000 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6001 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6002
6003 * coding.c (encode_coding_raw_text): Fix previous change.
6004 (encode_coding_object): When the dst_object is a buffer and is
6005 different from src_object, move gap to PT.
6006
60072008-05-27 Chong Yidong <cyd@stupidchicken.com>
6008
6009 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6010
60112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6012
6013 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6014 all branches. Compute it differently.
6015
6016 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6017
60182008-05-27 Juanma Barranquero <lekktu@gmail.com>
6019
6020 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6021 into "else if () ... else ...".
6022
60232008-05-27 Jason Rumney <jasonr@gnu.org>
6024
6025 * w32font.c (w32font_open_internal): Determine if glyph indices
6026 are likely to work here.
6027
60282008-05-27 Chong Yidong <cyd@stupidchicken.com>
6029
6030 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6031 draw overlap glyphs with appropriate highlighting.
6032
60332008-05-27 Kenichi Handa <handa@m17n.org>
6034
6035 * xfont.c (xfont_open): Fix calculation of font->average_width.
6036
60372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6038
6039 * casefiddle.c (casify_object): Try to guess better whether the
6040 argument is a byte or a char.
6041
60422008-05-26 Andreas Schwab <schwab@suse.de>
6043
6044 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6045 Always send multiples of format size.
6046
6047 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6048
60492008-05-26 Jason Rumney <jasonr@gnu.org>
6050
6051 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6052 (compute_metrics): Don't set failure if we just cleared the cache.
6053 (w32_weight_table): Remove unused variable.
6054 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6055 backwards compatibility.
6056
60572008-05-25 Kenichi Handa <handa@m17n.org>
6058
6059 * w32term.c (x_draw_glyph_string):
6060 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
6061
6062 * xfaces.c: Delete unused function prototypes.
6063 (xstrlwr, font_frame): Delete them.
6064 (clear_face_cache): Delete unused variable.
6065
6066 * xftfont.c (xftfont_open): Delete unused variable.
6067 If underline_thickness is not 1, adjust underline_position.
6068
6069 * ftxfont.c (ftxfont_open): Delete unused variable.
6070
6071 * fontset.c (face_for_char): Optimize for the case of no charset
6072 property.
6073
6074 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
6075 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
6076 (otf_open, font_otf_capability, generate_otf_features)
6077 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6078 Comment out by surrounding "#if 0" and "#endif" for the moment.
6079 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
6080 (syms_of_font): Codes for accessing above commented out.
6081
60822008-05-24 Eli Zaretskii <eliz@gnu.org>
6083
6084 * w32proc.c: Include dispextern.h.
6085
6086 * w32.c: Include dispextern.h.
6087
60882008-05-23 Juanma Barranquero <lekktu@gmail.com>
6089
6090 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
6091 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6092 Fix typos in docstrings.
6093
60942008-05-23 Jason Rumney <jasonr@gnu.org>
6095
6096 * xsmfns.c: Remove includes that are already included by config.h.
6097
60982008-05-23 Kenichi Handa <handa@m17n.org>
6099
6100 * charset.c (Qemacs, charset_emacs): New variables.
6101 (char_charset): Fix for non-Unicode characters.
6102 (syms_of_charset): Define charset_emacs.
6103
6104 * w32term.c (x_draw_glyph_string): Be sure to update
6105 s->underline_thickness and s->underline_position. Be sure to draw
6106 underline within the current line area.
6107
6108 * xterm.c (x_draw_glyph_string): Be sure to update
6109 s->underline_thickness and s->underline_position. Be sure to draw
6110 underline within the current line area.
6111
6112 * fontset.c: Delete unused variables and add casting for char *
6113 throughout the file.
6114 (fontset_font): Try the fallback fonts of the current fontset
6115 before consulting the default fontset.
6116
6117 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6118
6119 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6120
61212008-05-22 Jason Rumney <jasonr@gnu.org>
6122
6123 * font.c: Don't include strings.h.
6124
6125 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6126
6127 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6128 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6129 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6130 to call xstrcasecmp.
6131
6132 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6133
6134 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6135
6136 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6137
6138 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6139
61402008-05-22 Kenichi Handa <handa@m17n.org>
6141
6142 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6143
6144 * font.c (font_prop_validate_style): Adjust for the format
6145 change of font_style_table.
6146
6147 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6148 two args.
6149
6150 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6151 two args.
6152
61532008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6154
6155 * minibuf.c (keys_of_minibuf): Delete.
6156 * lisp.h (keys_of_minibuf): Delete.
6157 * emacs.c (main): Don't call keys_of_minibuf.
6158
61592008-05-22 Kenichi Handa <handa@m17n.org>
6160
6161 * ftfont.c (ftfont_resolve_generic_family): Rename from
6162 ftfont_list_generic_family. Return a single family for each
6163 generic family.
6164 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6165 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6166 Call font_add_log.
6167 (ftfont_match): Call font_add_log.
6168
6169 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6170 (FONT_DEBUG): Define it.
6171 (font_add_log): Extern it.
6172 (font_assert): Rename from xassert.
6173
6174 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6175 (xfont_list_family): Call font_add_log.
6176 (xfont_match): Likewise.
6177 (memq_no_quit): Delete.
6178
6179 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6180 call of Ffont_xlfd_name.
6181
6182 * xfaces.c (struct table_entry, slant_table, weight_table)
6183 (swidth_table): Move to font.c.
6184
6185 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6186 xassert are changed to font_assert. Delete many unused variables.
6187 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6188 New variables.
6189 (struct table_entry): Move from xfaces.c and modified.
6190 (weight_table, slant_table, width_table): Move from xfaces.c and
6191 contents adjusted for the change of struct table_entry.
6192 (font_style_to_value, font_style_symbolic): Adjust for the
6193 format change of font_style_table.
6194 (font_parse_family_registry): Don't overwrite existing foundry and
6195 family of font_spec.
6196 (font_score): Fix calculation of diff for sizes.
6197 (font_sort_entites): Call font_add_log.
6198 (font_delete_unmatched): Return a newly created list.
6199 (font_list_entities): Fix previous change. Call font_add_log.
6200 (font_matching_entity, font_open_entity, font_close_entity):
6201 Call font_add_log.
6202 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6203 (Finternal_set_font_style_table): Delete.
6204 (BUILD_STYLE_TABLE): New macro.
6205 (build_style_table): New function.
6206 (Vfont_log, font_log_env_checked): New variables.
6207 (font_add_log): New function.
6208 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6209 Declare Lisp variables "font-weight-table", "font-slant-table",
6210 "font-width-table", and "font-log". Initialize font_style_table.
6211
62122008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6213
6214 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6215
62162008-05-21 Seiji Zenitani <zenitani@mac.com>
6217 Ryo Yoshitake <ryo@shiftmode.net>
6218
6219 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6220 (Vframe_alpha_lower_limit): New variable.
6221 (x_set_alpha): New function.
6222
6223 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6224
6225 * xfns.c (x-create-frame, Qalpha):
6226 Initialize the frame parameter `alpha'.
6227 * xterm.c (OPAQUE, OPACITY): New.
6228 (x_set_frame_alpha): New function.
6229 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6230
6231 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6232 * w32fns.c (w32_frame_parm_handlers): Likewise.
6233
62342008-05-20 Jason Rumney <jasonr@gnu.org>
6235
6236 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6237 truetype fonts to opentype list.
6238
62392008-05-20 Juanma Barranquero <lekktu@gmail.com>
6240
6241 * fontset.c (Ffontset_info): Doc fix.
6242 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6243 <ignore-relative-composition>: Fix typos in docstrings.
6244
6245 * font.c (syms-of-font) <font-encoding-alist>:
6246 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6247 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6248 (Ffont_otf_alternates): Doc fixes.
6249
62502008-05-20 Kenichi Handa <handa@m17n.org>
6251
6252 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6253 font.h through out the file.
6254 (FONT_DRIVERS): Rename from FONTOBJ.
6255 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6256 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6257
6258 * emacs.c (main): Call syms_of_font unconditionally.
6259
6260 * font.h (find_font_encoding): Extern it.
6261
6262 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6263 fontset.c.
6264 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6265 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6266 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6267 only when HAVE_WINDOW_SYSTEM is defined.
6268 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6269 when HAVE_WINDOW_SYSTEM is defined.
6270
6271 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6272 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6273
6274 * xfaces.c: Include font.h unconditionally.
6275 (merge_face_ref, merge_face_vectors)
6276 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6277
62782008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6279
6280 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6281 indirect_variable.
6282 * eval.c (lisp_indirect_variable): New fun.
6283 (Fuser_variable_p): Use it.
6284
62852008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6286
6287 * lisp.h (indirect_variable):
6288 * data.c (indirect_variable, let_shadows_buffer_binding_p):
6289 Use Lisp_Symbol pointers rather than Lisp_Object.
6290 Adjust callers.
6291 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
6292 To this end, change calling-convention.
6293
6294 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
6295 if some non-hidden buffers are selected by string&pred.
6296
62972008-05-19 Chong Yidong <cyd@stupidchicken.com>
6298
6299 * process.c (wait_reading_process_output): Always check status
6300 when in batch mode.
6301
63022008-05-19 Kenichi Handa <handa@m17n.org>
6303
6304 * font.c (font_list_entities): Fix handling of cache.
6305 (font_matching_entity): Likewise.
6306
6307 * ftfont.c (cs_iso8859_1): Delete.
6308 (ft_face_cache): New variable.
6309 (struct ftfont_info): New member fc_charset_idx.
6310 (ftfont_build_basic_charsets): Delete.
6311 (fc_charset_table): New variable.
6312 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
6313 . FC_CHARSET_IDX) as :font-entity property in the font entity.
6314 Callers changed.
6315 (ftfont_lookup_cache, ftfont_get_charset): New functions.
6316 (ftfont_spec_pattern): New argument fc_charset_idx.
6317 Check registry more rigidly. Change callers.
6318 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
6319 change of :font-entity property of the font.
6320
6321 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
6322 property of the font.
6323
63242008-05-18 Juanma Barranquero <lekktu@gmail.com>
6325
6326 * coding.c (Fcoding_system_p): Rename argument to match docstring.
6327 (Funencodable_char_position, Fcheck_coding_systems_region)
6328 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
6329 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
6330 (Ffind_operation_coding_system, Fset_coding_system_priority)
6331 (Fcoding_system_eol_type): Doc fixes.
6332
63332008-05-17 Glenn Morris <rgm@gnu.org>
6334
6335 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
6336
63372008-05-16 Eli Zaretskii <eliz@gnu.org>
6338
6339 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
6340 and st_gid.
6341
6342 * frame.c (Fdelete_frame): Don't call font_update_drivers if
6343 HAVE_WINDOW_SYSTEM is not defined.
6344
6345 * xfaces.c (merge_face_ref, merge_face_vectors)
6346 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
6347 HAVE_WINDOW_SYSTEM is defined.
6348 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
6349
63502008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
6351
6352 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
6353
63542008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6355
6356 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6357
63582008-05-15 Kenichi Handa <handa@m17n.org>
6359
6360 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
6361 preference.
6362
63632008-05-15 Glenn Morris <rgm@gnu.org>
6364
6365 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
6366
63672008-05-15 Chong Yidong <cyd@stupidchicken.com>
6368
6369 * fns.c (init_fns): Don't initialize weak_hash_tables here.
6370 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
6371
6372 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
6373
63742008-05-15 Kenichi Handa <handa@m17n.org>
6375
6376 * ftfont.c (ftfont_list): Downcase family name to check generic
6377 families.
6378
6379 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
6380 font-spec for QCfont value.
6381
6382 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
6383 buffer. Check the return value of it.
6384
63852008-05-14 Jason Rumney <jasonr@gnu.org>
6386
6387 * w32term.c (w32_get_glyph_overhangs): Remove.
6388 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
6389
63902008-05-14 Kenichi Handa <handa@m17n.org>
6391
6392 * font.c (font_prop_validate): Make nil a valid value.
6393 (font_clear_cache): Check if the cached vector of entities is nil
6394 or not.
6395
63962008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6397
6398 * emacs.c (main_thread): Conditionalize on
6399 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6400 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
6401
6402 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
6403 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
6404 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6405
64062008-05-14 Kenichi Handa <handa@m17n.org>
6407
6408 * coding.c (detect_coding_iso_2022): Ignore a coding category that
6409 has no corresponding coding system.
6410
64112008-05-14 Jason Rumney <jasonr@gnu.org>
6412
6413 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
6414
6415 * w32font.h (w32font_open_internal): Update declaration.
6416
6417 * w32font.c (w32font_open_internal): Change last argument from
6418 w32font_info struct to font object. Fill in font object from
6419 font_entity. Get Outline metrics if possible. Use them to
6420 calculate underline position and thickness. Use xlfd name as name
6421 property. Don't set codepage.
6422 (w32font_open): Pass font_object to w32font_open_internal. Don't
6423 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
6424 (w32font_draw): Use s->font.
6425 (clear_cached_metrics): Don't clear non-existent blocks.
6426
6427 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
6428 font was not found.
6429 (x_draw_glyph_string): Use underline position and thickness from font.
6430
6431 * w32uniscribe.c (uniscribe_open): Pass font_object to
6432 w32font_open_internal.
6433
64342008-05-14 Kenichi Handa <handa@m17n.org>
6435
6436 These changes are to delete all legacy font-handling codes, and
6437 make Emacs use only font-backends.
6438
6439 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
6440 (frame.o, image.o, print.o): Depend on $(FONTSRC).
6441
6442 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
6443
6444 * charset.h (Vcharset_non_preferred_head)
6445 (Vcurrent_iso639_language): Extern them.
6446
6447 * charset.c (Vcharset_non_preferred_head): New variable.
6448 (Vcurrent_iso639_language): New variable.
6449 (syms_of_charset): Declare it as a Lisp variable.
6450 (char_charset): Don't check non preferred charsets. As a last
6451 resort, return charset_unicode.
6452 (Fset_charset_priority): Update Vcharset_non_preferred_head.
6453
6454 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
6455 conditionals. Don't check enable_font_backend. Delete all codes
6456 used only when USE_FONT_BACKEND is not defined.
6457
6458 * dispextern.h (struct glyph_string): Change type of `font' to
6459 `struct font *'.
6460 (struct glyph_string): New member underline_position and
6461 underline_thickness.
6462 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
6463 (struct face): Change type of `font' to `struct font *'. Remove
6464 members `font_name', `font_info_id'.
6465 (per_char_metric, encode_char): Delete externs.
6466 (calc_pixel_width_or_height): Adjust the prototype.
6467
6468 * emacs.c (enable_font_backend): Delete extern.
6469 (main): Don't set enable_font_backend. Don't check the command
6470 line argument "-disable-font-backend".
6471
6472 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
6473 (enum font_property_index): New members FONT_DPI_INDEX,
6474 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
6475 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
6476 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
6477 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
6478 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
6479 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
6480 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
6481 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
6482 (struct font_spec, struct font_entity): New structs.
6483 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
6484 (struct font): Many members from old "struct font_info" moved to
6485 here. Members font and entity deleted.
6486 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
6487 the new font-related objects.
6488 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
6489 (CHECK_FONT_GET_OBJECT): Likewise.
6490 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
6491 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
6492 (struct font_driver): New members case_sensitive anc check. Type
6493 of the member list and open changed.
6494 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
6495 (font_symbolic_width, font_find_object, font_get_spec)
6496 (font_set_lface_from_name): Delete extern.
6497 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
6498
6499 * font.c: Include <strings.h>.
6500 (enable_font_backend): Delete it.
6501 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
6502 (CHECK_VALIDATE_FONT_SPEC): Delete it.
6503 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
6504 (null_string): Delete it.
6505 (null_vector): Make it static.
6506 (font_family_alist): Delete it.
6507 (Qnormal): Extern it.
6508 (QCextra, QClanguage): Delete it.
6509 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
6510 (font_make_spec, font_make_entity, font_make_object)
6511 (font_intern_prop): Renamed from intern_downcase. Don't downcase
6512 the string. Callers changed.
6513 (font_pixel_size): Adjusted for the format change of font-related
6514 objects.
6515 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
6516 (font_style_to_value, font_style_symbolic): New function.
6517 (build_font_family_alist): Delete it.
6518 (font_registry_charsets): Use Fassoc_string instead of
6519 assq_no_quit.
6520 (font_prop_validate_symbol): Don't return null_string.
6521 (font_prop_validate_style): Adjusted for the change of
6522 style-related values in a font vector.
6523 (font_property_table): Delete entries for QClanguage and
6524 QCantialias, add entries for QCavgwidth.
6525 (get_font_prop_index): Delete the 2nd argument FROM.
6526 (font_prop_validate): Arguments changed.
6527 (font_put_extra): Adjusted for the change of font-related objects.
6528 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
6529 (font_parse_fcname, font_unparse_fcname)
6530 (font_prepare_composition): Likewise.
6531 (font_parse_family_registry): Renamed from font_merge_old_spec.
6532 (otf_open): Delete the 1st arg entity.
6533 (font_otf_capability): Adjusted for the above change.
6534 (font_score): New arg alternate_families. Adjusted for the change
6535 of font-related objects.
6536 (font_sort_entites): New arg best_only.
6537 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
6538 Delete them.
6539 (font_match_p): Check alternate families.
6540 (font_find_object): Delete it.
6541 (font_check_object): New function.
6542 (font_clear_cache): Adjusted for the change of font-related objects.
6543 (font_delete_unmatched): New arg.
6544 (font_list_entities): Call font_driver->list with a spec that
6545 doesn't specify style-related properties.
6546 (font_matching_entity): Arguments changed. Caller changed.
6547 (font_open_entity): Adjusted for the change of font-related objects.
6548 (font_close_object, font_has_char, font_encode_char)
6549 (font_get_name, font_get_spec): Likewise.
6550 (font_spec_from_name, font_clear_prop, font_update_lface):
6551 New functions.
6552 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
6553 (font_prepare_for_face, font_done_for_face, font_open_by_name)
6554 (font_at): Adjusted for the change of font-related objects.
6555 (font_range): New function.
6556 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
6557 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
6558 (Fcopy_font_spec, Fmerge_font_spec): New function.
6559 (Ffont_family_list): Renamed from list-families.
6560 (Finternal_set_font_style_table): Arguments changed.
6561 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
6562 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
6563 change of font-related objects.
6564 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
6565
6566 * fontset.h (struct font_info): Delete it. Most members go to
6567 struct font.
6568 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
6569 (enum FONT_SPEC_INDEX): Delete it.
6570 (font_info, list_fonts_func, load_font_func, query_font_func)
6571 (set_frame_fontset_func, find_ccl_program_func)
6572 (get_font_repertory_func, new_fontset_from_font_name): Delete
6573 externs.
6574 (fontset_from_font_name): Extern it.
6575 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
6576 (FONT_INFO_FROM_FACE): Deleted.
6577 (face_for_font): Adjust prototype.
6578
6579 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
6580 conditionals. Don't check enable_font_backend. Delete all codes
6581 used only when USE_FONT_BACKEND is not defined.
6582 (get_font_info_func, list_font_func, load_font_func)
6583 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
6584 (get_font_repertory_func): Delete them.
6585 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
6586 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
6587 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
6588 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
6589 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
6590 (fontset_compare_rfontdef): New function.
6591 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
6592 rfont-defs by qsort. Adjusted for the change of font-group vector.
6593 (load_font_get_repertory): Deleted.
6594 (fontset_find_font): Use new macros to ref/set elements of
6595 font-def and rfont-def.
6596 (fontset_font): Fix the timing of remembering that no font for C.
6597 (free_face_fontset): Do nothing if the face has no fontset.
6598 (face_suitable_for_char_p): Use new macros to ref/set elements of
6599 rfont-def.
6600 (face_for_char): Likewise. Call face_for_char with font_object.
6601 (fs_load_font): Delete. Delete #pragma surrounding it.
6602 (fs_query_fontset): Use strcasecmp instead of strcmp.
6603 (generate_ascii_font_name): Adjusted for the format change of
6604 font-spec.
6605 (Fset_fontset_font): Likewise. Use new macros to set elements of
6606 font-def.
6607 (Fnew_fontset): Use font_unparse_xlfd to generate
6608 FONTSET_ASCII (fontset).
6609 (new_fontset_from_font_name): Deleted.
6610 (fontset_from_font): Renamed from new_fontset_from_font. Check if
6611 a fontset is already created for the font. FIx updating of
6612 Vfontset_alias_alist.
6613 (fontset_ascii_font): Deleted.
6614 (Ffont_info): Adjusted for the format change of font-spec.
6615 (Finternal_char_font): Likewise.
6616 (Ffontset_info): Likewise.
6617 (syms_of_fontset): Don't check load_font_func.
6618
6619 * fns.c (internal_equal): Handle PREV_FONT.
6620
6621 * frame.h: Delete USE_FONT_BACKEND conditional.
6622
6623 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
6624 conditionals. Don't check enable_font_backend. Delete all codes
6625 used only when USE_FONT_BACKEND is not defined.
6626 (x_set_font): Call x_new_font, not x_new_fontset2.
6627 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
6628 already set for the frame.
6629
6630 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
6631 a font-entity by font_make_entity. Use font_intern_prop instead
6632 of intern_downcase. Use FONT_SET_STYLE to set a style-related
6633 font property. If a font is scalable, set avgwidth property to 0.
6634 Set font-entity property by font_put_extra.
6635 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
6636 (ffont_driver): Adjusted for the change of struct font_driver.
6637 (ftfont_spec_pattern): New function.
6638 (ftfont_list): Return a list, not vector.
6639 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
6640 (ftfont_list_family): Don't downcase names.
6641 (ftfont_free_entity): Deleted.
6642 (ftfont_open): Return a font-object. Adjusted for the change of
6643 struct font. Get underline_thickness and underline_position from
6644 font property. Don't update dpyinfo->smallest_font_height and
6645 dpyinfo->smallest_char_width.
6646 (ftfont_close): Don't free `struct font'.
6647 (ftfont_has_char): Adjusted for the format change of font-entity.
6648 (ftfont_encode_char, ftfont_text_extents): Likewise.
6649
6650 * ftxfont.c (ftxfont_list): Return a list, not vector.
6651 (ftxfont_open): Return a font-object. Adjusted for the change of
6652 struct font. Get underline_thickness and underline_position from
6653 font property. Don't update dpyinfo->smallest_font_height and
6654 dpyinfo->smallest_char_width.
6655 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
6656 (ftxfont_draw): Adjusted for the change of struct font.
6657
6658 * image.c (image_ascent): Don't include "charset.h". Include
6659 "character.h" and "font.h".
6660
6661 * lisp.h (enum pvec_type): New member PREV_FONT.
6662 (Fassoc_string): EXFUN it.
6663
6664 * print.c: Include font.h.
6665 (print_object): Handle font-related objects.
6666
6667 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
6668 conditionals. Don't check enable_font_backend. Delete all codes
6669 used only when USE_FONT_BACKEND is not defined.
6670 (handle_auto_composed_prop): Do nothing if it->f is not on a
6671 window system. Check how many following characters can be
6672 displayed by the same font.
6673 (calc_pixel_width_or_height): Type of the 4th arg is changed to
6674 'struct font *'.
6675 (get_char_face_and_encoding): Assign the whole encoding task to
6676 the `encode-char' method of a font driver.
6677 (fill_composite_glyph_string): Adjusted for the change of `struct
6678 face' and `struct glyph_string'.
6679 (fill_glyph_string): Likewise.
6680 (get_per_char_metric): Arguments changed.
6681 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
6682 and `struct glyph_string'.
6683 (produce_stretch_glyph, calc_line_height_property)
6684 (x_produce_glyphs): Likewise.
6685
6686 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
6687 conditionals. Don't check enable_font_backend. Delete all codes
6688 used only when USE_FONT_BACKEND is not defined. Use
6689 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
6690 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
6691 (Qp): Extern them.
6692 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
6693 Deleted.
6694 (struct font_name): Deleted.
6695 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
6696 (compare_fonts_by_sort_order): New function.
6697 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
6698 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
6699 Deleted.
6700 (Fx_family_fonts): Use font_list_entities, and sort fonts by
6701 compare_fonts_by_sort_order.
6702 (Fx_font_family_list): Call Ffont_family_list.
6703 (face_numeric_value, face_numeric_weight, face_numeric_slant)
6704 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
6705 (face_symbolic_slant, face_symbolic_swidth)
6706 (split_font_name_into_vector, build_font_name_from_vector)
6707 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
6708 (font_rescale_ratio, split_font_name, build_font_name)
6709 (free_font_names, sort_fonts, x_face_list_fonts)
6710 (face_font_available_p, sorted_font_list, cmp_font_names)
6711 (font_list_1, concat_font_list, font_list, remove_duplicates):
6712 Deleted.
6713 (Fx_list_fonts): Use Ffont_list.
6714 (LFACE_AVGWIDTH): Deleted.
6715 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
6716 by FONTP.
6717 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6718 (set_lface_from_font_name): Delete it.
6719 (set_lface_from_font): Renamed from
6720 set_lface_from_font_and_fontset. Caller changed. Don't set
6721 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
6722 for face.
6723 (merge_face_vectors): Copy font-spec if necessary.
6724 Clear properties of the font-spec if necessary.
6725 (merge_face_ref): Clear properties of the font-spec if necessary.
6726 (Finternal_set_lisp_face_attribute): Likewise.
6727 (set_font_frame_param): Use font_load_for_lface to load a
6728 font-object, and call Fmodify_frame_parameters with it.
6729 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
6730 font name by Ffont_xlfd_name.
6731 (Finternal_lisp_face_attribute_values): Don't check QCweight,
6732 QCslant, and QCwidth.
6733 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
6734 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
6735 Compare fonts by EQ.
6736 (lookup_non_ascii_face): Deleted.
6737 (face_for_font): The 2nd argument changed.
6738 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
6739 Check atomic font properties by case insensitive.
6740 (realize_non_ascii_face): Set face->overstrike correctly.
6741 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
6742 (dump_realized_face): Get font name from
6743 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
6744
6745 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
6746 conditionals. Don't check enable_font_backend. Delete all codes
6747 used only when USE_FONT_BACKEND is not defined.
6748 (xic_create_xfontset): Original code deleted and renamed from
6749 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
6750 (x_make_gc): Don't set GCFont in GCs.
6751 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
6752 opened by "fixed".
6753 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
6754 find_ccl_program_func, query_font_func, set_frame_fontset_func,
6755 get_font_repertory_func.
6756
6757 * xfont.c: Include <stdlib.h> and "ccl.h".
6758 (struct xfont_info): New structure.
6759 (xfont_query_font): Deleted.
6760 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
6761 moved from xterm.c.
6762 (xfont_driver): Adjusted for the change of struct font_driver.
6763 (compare_font_names): New function.
6764 (xfont_list_pattern): Sort font names case insensitively. Make
6765 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
6766 (xfont_list): Return a list, not vector.
6767 (xfont_match): If the font doesn't have QCname property, generate
6768 a name from the other font properties.
6769 (xfont_open): Return a font-object. Adjusted for the change of
6770 struct font. Get underline_thickness and underline_position from
6771 font property. Don't update dpyinfo->smallest_font_height and
6772 dpyinfo->smallest_char_width.
6773 (xfont_close): Don't free struct font.
6774 (xfont_prepare_face): Adjusted for the change of struct font.
6775 (xfont_done_face): Deleted.
6776 (xfont_has_char): Adjusted for the change of struct font.
6777 (xfont_encode_char, xfont_draw): Likewise.
6778 (xfont_check): New function.
6779
6780 * xftfont.c (xftfont_list): Adjusted for the change of `list'
6781 callback function.
6782 (xftfont_match): Adjusted for the format change of font-entity.
6783 (xftfont_open): Adjusted for the format change of font-entity and
6784 font-object. Adjusted for the change of struct font. Return a
6785 font-object. Don't update dpyinfo->smallest_font_height and
6786 dpyinfo->smallest_char_width.
6787 (xftfont_close): Block input while calling XftFontClose.
6788 (xftfont_prepare_face): Don't block input while calling
6789 xftfont_get_colors. Adjusted for the change of struct font.
6790 (xftfont_shape): Return value of error case fixed.
6791
6792 * xrdb.c (x_load_resources): Don't setup a fontset resource.
6793
6794 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
6795 conditionals.
6796 (FONT_WIDTH): Return (f)->max_width.
6797 (struct x_display_info): Delete member `font'.
6798 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
6799 (x_find_ccl_program, x_get_font_repertory): Delete externs.
6800 (struct x_output): Change type of `font' to `struct font *'.
6801
6802 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
6803 conditionals. Don't check enable_font_backend. Delete all codes
6804 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
6805 (x_per_char_metric, x_encode_char): Deleted.
6806 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
6807 (x_compute_glyph_string_overhangs): Adjusted for the change of
6808 `struct face'.
6809 (x_draw_glyph_string_foreground)
6810 (x_draw_composite_glyph_string_foreground): Likewise.
6811 (x_draw_glyph_string): Likewise. Use font->underline_position and
6812 font->underline_thickness.
6813 (x_new_font): Renamed from x_new_fontset2.
6814 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
6815 (x_check_font): Call `check' method of a font driver.
6816 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
6817 (x_query_font, x_get_font_repertory): Deleted.
6818 (x_find_ccl_program): Renamed and moved to xfont.c.
6819 (x_redisplay_interface): Adjusted for the change of `struct
6820 redisplay_interface'.
6821
6822 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
6823 conditionals. Don't check enable_font_backend. Delete all codes
6824 used only when USE_FONT_BACKEND is not defined. Surround non-used
6825 code by "#ifdef OLD_FONT" and "endif".
6826 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
6827
6828 * w32font.h (struct w32font_info): New member.
6829 (FONT_COMPAT): New macro.
6830 (w32font_open_internal): Prototype adjusted.
6831
6832 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
6833 OLD_FONT" and "endif".
6834
6835 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
6836 conditionals. Don't check enable_font_backend. Delete all codes
6837 used only when USE_FONT_BACKEND is not defined.
6838 (w32font_open): Return a font-object. Make a font-object by
6839 font_make_object. Adjusted for the change of struct w32font_info.
6840 (w32font_close): Don't free struct font. Adjusted for the change
6841 of struct w32font_info.
6842 (w32font_encode_char, w32font_text_extents, w32font_draw):
6843 Adjusted for the change of struct w32font_info.
6844 (w32font_draw): Likewise.
6845 (w32font_list_internal): Return a list, not vector.
6846 (w32font_open_internal): Change the 4th arg to font-object.
6847 Adjusted for the change of struct w32font_info and font-object format.
6848 (add_font_name_to_list): Don't downcase names.
6849 (w32_enumfont_pattern_entity): Make a font-entity by
6850 font_make_entity. Adjusted for the format change of font-entity.
6851 Use FONT_SET_STYLE to set a style-related font property. If a
6852 font is scalable, set avgwidth property to 0. Set font-entity
6853 property by font_put_extra.
6854 (font_matches_spec): Adjusted for the format change of font-entity.
6855 (w32_weight_table, w32_decode_weight): New variables.
6856 (w32_encode_weight): New function.
6857 (fill_in_logfont): Adjusted for the format change of font-spec.
6858 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
6859 weight value.
6860 (w32font_driver): Adjusted for the change of struct font_driver.
6861
6862 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
6863 conditionals. Don't check enable_font_backend. Surround non-used
6864 code by "#ifdef OLD_FONT" and "endif".
6865 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
6866 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
6867
6868 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
6869 conditionals. Don't check enable_font_backend. Delete all codes
6870 used only when USE_FONT_BACKEND is not defined. Surround non-used
6871 code by "#ifdef OLD_FONT" and "endif".
6872
6873 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
6874 (uniscribe_open): Return value changed to font-object.
6875 Adjusted for the format change of font-object.
6876 (uniscribe_otf_capability): Adjusted for the change of struct font.
6877 (add_opentype_font_name_to_list): Don't downcase names.
6878 (uniscribe_font_driver): Adjusted for the change of struct
6879 font_driver.
6880
68812008-05-13 Chong Yidong <cyd@stupidchicken.com>
6882
6883 * dispnew.c (update_frame_1): Check if tty output is still valid
6884 before flushing it.
6885
68862008-05-13 Jan Djärv <jan.h.d@swipnet.se>
6887
6888 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
6889 to Gtk+ menus.
6890
68912008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6892
6893 * dired.c (file_name_completion): Tweak the code so as to always do it
6894 in a single pass. Tighten the scope of some variables.
6895
6896 * dired.c (Qdefault_directory): New var.
6897 (file_name_completion): Use it instead of Fexpand_file_name.
6898 (syms_of_dired): Initialize it.
6899
69002008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
6901
6902 * fileio.c (double_dollars): Remove dead code.
6903
69042008-05-10 Eli Zaretskii <eliz@gnu.org>
6905
6906 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
6907 Mention w32-get-true-file-attributes in doc string.
6908
6909 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6910
69112008-05-09 Glenn Morris <rgm@gnu.org>
6912
6913 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
6914 2008-04-23.
6915
69162008-05-09 Eli Zaretskii <eliz@gnu.org>
6917
6918 Support for reporting owner and group of each file on MS-Windows:
6919 * dired.c (stat_uname, stat_gname): New functions, with special
6920 implementation for w32.
6921 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
6922
6923 * w32.c: Rename the_passwd_* to dflt_passwd_*.
6924 (dflt_group_name): New static variable.
6925 (dflt_group): Rename from the_group.
6926 (init_user_info): Init dflt_group fields. Get user's group name
6927 from LookupAccountSid.
6928 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
6929 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
6930 New initialization states.
6931 (globals_of_w32): Initialize them to zero. Initialize the default
6932 group name to "None".
6933 (GetFileSecurity_Name): New global var, the name of the function
6934 to call for GetFileSecurity.
6935 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
6936 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
6937 (get_file_security, get_security_descriptor_owner)
6938 (get_security_descriptor_group, is_valid_sid)
6939 (get_file_security_desc, get_rid, get_name_and_id)
6940 (get_file_owner_and_group): New functions.
6941 (stat): Use get_file_security_desc and get_file_owner_and_group to
6942 report the owner and primary group of each file. Don't ignore the
6943 high 32 bits of file's size, now that st_size is 64-bit wide.
6944 Fix test when to get true file attributes.
6945 (init_user_info): Use get_rid instead of equivalent inline code.
6946 (fstat): Don't ignore the high 32 bits of file's size.
6947
69482008-05-09 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * image.c (png_load): Use correct bit-depth for setting background
6951 color.
6952
69532008-05-08 Eli Zaretskii <eliz@gnu.org>
6954
6955 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
6956 epa-hook.elc.
6957
69582008-05-08 Juanma Barranquero <lekktu@gmail.com>
6959
6960 * font.c (Ffont_match_p): Don't use `iff' in docstring.
6961
69622008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6963
6964 * macfns.c (Fx_create_frame): Make a copy of frame parameters
6965 because the original parameters are in pure storage now.
6966 (mac_window): Remove unused params. Update callers.
6967
69682008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6969
6970 * lread.c (substitute_object_recurse): Use lower-level primitives.
6971 Don't signal errors when traversing sub-char-tables.
6972 Don't loop over all the possible characters when traversing char-tables.
6973
6974 * print.c (print_preprocess): Add sub-char-tables to the print-table,
6975 just like we do in print.c.
6976
69772008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
6978
6979 * minibuf.c (Ftry_completion): Remove code left over from when we used
6980 scmp instead of Fcompare_strings.
6981
69822008-05-04 Juanma Barranquero <lekktu@gmail.com>
6983
6984 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
6985
69862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6987
6988 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
6989 Create bitmap context in native byte order.
6990
6991 * macterm.c (XDrawLine)
6992 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
6993 context in native byte order.
6994
69952008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6996
6997 * config.in: Regenerate.
6998
6999 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7000 New definitions for Image I/O support.
7001 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7002 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7003 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7004 (mac_data_provider_release_data, image_load_image_io)
7005 [USE_MAC_IMAGE_IO]: New functions.
7006 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7007 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7008 (init_image_func_pointer) [MAC_OSX]: Remove function.
7009 (image_load_quartz2d) [MAC_OSX]: Check availability of
7010 CGImageCreateWithPNGDataProvider at compile time.
7011 Use lowercase `false' for boolean constant.
7012 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7013 Use image_load_image_io.
7014 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7015 Don't check MyCGImageCreateWithPNGDataProvider.
7016 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7017 Don't call init_image_func_pointer.
7018
7019 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7020
7021 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7022 Make variable non-static.
7023 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7024 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7025
7026 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7027 (RED_FROM_ULONG): Mask off higher bits.
7028 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7029
7030 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7031 Include AvailabilityMacros.h.
7032 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7033 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7034
70352008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7036
7037 * chartab.c (Fset_char_table_range): If range is t, really set all
7038 chars to that value.
7039
70402008-05-03 Eli Zaretskii <eliz@gnu.org>
7041
7042 * dired.c (Ffile_attributes): Don't allow the device number become
7043 negative.
7044
70452008-05-02 Daiki Ueno <ueno@unixuser.org>
7046
7047 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7048
70492008-05-02 Juri Linkov <juri@jurta.org>
7050
7051 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7052 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7053 DEFAULT argument as a list of default values in docstrings.
7054
70552008-05-01 Chong Yidong <cyd@stupidchicken.com>
7056
7057 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7058
70592008-05-01 Martin Rudalics <rudalics@gmx.at>
7060
7061 * dispnew.c (change_frame_size_1): Preserve small windows when
7062 shrinking frames by calling set_window_height|width with third
7063 arg 2.
7064
7065 * window.h (struct window): Replace field too_small_ok by field
7066 resize_proportionally.
7067
7068 * window.c (make_window): Initialize resize_proportionally.
7069 (enlarge_window): Temporarily set resize_proportionally to make
7070 sure that shrink_windows does scale the window proportionally.
7071 (shrink_windows): When window has resize_proportionally set try
7072 to shrink it proportionally by stealing from other windows.
7073 (struct saved_window, Fset_window_configuration)
7074 (compare_window_configurations): Handle resize_proportionally.
7075 (WINDOW_TOTAL_SIZE): New macro.
7076 (window_min_size, shrink_windows, size_window): Use it.
7077 (check_min_window_sizes): Remove. Invalid values of
7078 window-min-height|width are handled by window_min_size_2 now.
7079 (size_window, Fsplit_window, enlarge_window)
7080 (adjust_window_trailing_edge, grow_mini_window): Don't call
7081 check_min_window_sizes.
7082 (window_min_size_2, window_min_size_1, window_min_size):
7083 New argument safe_p for retrieving "safe" minimum sizes.
7084 (Fdisplay_buffer, Fsplit_window, enlarge_window)
7085 (adjust_window_trailing_edge, grow_mini_window):
7086 Adjust arguments of window_min_size... functions.
7087 (shrink_windows): Argument min_size removed. New argument
7088 safe_p allows shrinking windows to their safe minimum sizes.
7089 Calculate minimum size and decide whether a window shall be
7090 deleted for each window individually.
7091 (size_window): When nodelete_p equals 2, tell shrink_windows to
7092 delete windows only if their new minimum size is no more safe.
7093 (shrink_window_lowest_first): Call window_min_size_1 to make
7094 sure to preserve modeline of bottom-most window when resizing
7095 the minibuffer.
7096 (Fset_window_configuration, Fcurrent_window_configuration)
7097 (compare_window_configurations): Do not handle
7098 window-min-height|width any more.
7099 (syms_of_window): Clarify window-min-height|width doc-strings.
7100
71012008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7102
7103 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7104 some more. Copy some of the code from Ftry_completions.
7105 Remove special case code that dates back to initial revision when the
7106 slash was only added when necessary and that can't trigger nowadays.
7107
71082008-04-27 Kenichi Handa <handa@m17n.org>
7109
7110 * font.c (font_prop_validate): Signal `error' instead of `font'.
7111
71122008-04-29 Jason Rumney <jasonr@gnu.org>
7113
7114 * w32fns.c (Fw32_battery_status): New defun.
7115 (syms_of_w32fns): Defsubr it.
7116
71172008-04-28 Andreas Schwab <schwab@suse.de>
7118
7119 * dired.c (file_name_completion): Fix another mixing of encoded
7120 and decoded names.
7121
71222008-04-28 Juanma Barranquero <lekktu@gmail.com>
7123
7124 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7125
71262008-04-27 Juanma Barranquero <lekktu@gmail.com>
7127
7128 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7129
71302008-04-27 Andreas Schwab <schwab@suse.de>
7131
7132 * dired.c (file_name_completion): Fix inappropriate mixing of
7133 encoded and decoded names.
7134
7135 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7136
7137 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7138
71392008-04-26 Eli Zaretskii <eliz@gnu.org>
7140
7141 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7142 2008-03-31, it's not needed anymore with `struct stat' definition
7143 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7144 for the same reasons.
7145
71462008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7147
7148 * m/sparc.h: Additional redefinitions for GNU/Linux.
7149
71502008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7151
7152 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7153 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7154 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7155 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7156 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7157 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7158 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7159 Likewise.
7160
7161 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7162 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7163 (mac_ax_number_of_characters): Add externs.
7164 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7165 [USE_MAC_TSM]: Likewise.
7166 (mac_handle_text_input_event) [MAC_OSX]:
7167 Handle kEventTextInputOffsetToPos for no active input area case.
7168 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7169 (mac_handle_document_access_event)
7170 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7171 (install_application_handler) [MAC_OSX]: Register handlers for
7172 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7173 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7174 Register mac_handle_document_access_event.
7175
7176 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7177 Make functions non-static.
7178
71792008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7180
7181 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7182 (read_file_name_completion_ignore_case, insert_default_directory)
7183 (Qdefault_directory): Move to minibuffer.el.
7184 (Fread_file_name): Call the new `read-file-name' instead.
7185
71862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7187
7188 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7189 Make function non-static.
7190 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7191 Remove function.
7192 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7193 Move to mactoolbox.c.
7194 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7195
7196 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7197 (mac_rect_make): New macro.
7198
7199 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7200 instead of float.
7201 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7202 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7203 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7204 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7205 CGRectMake.
7206 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7207 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7208 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7209 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7210 instead of WindowRef in argument type.
7211 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7212 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7213 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7214 instead of DISPLAY. All uses changed.
7215 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7216 (x_calc_absolute_position): Simplify so as not to use
7217 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7218
7219 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7220 instead of WindowRef in argument type.
7221 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7222 [TARGET_API_MAC_CARBON]: Remove externs.
7223 (create_apple_event, mac_event_parameters_to_lisp)
7224 [TARGET_API_MAC_CARBON]: Add externs.
7225
7226 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7227 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7228 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7229 is clicked.
7230 (x_activate_menubar): Remove extern for saved_menu_event_location.
7231 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7232 Move from mac.c.
7233
72342008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7235
7236 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7237 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7238
72392008-04-23 Jason Rumney <jasonr@gnu.org>
7240
7241 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7242 attributes only for local files.
7243
7244 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7245 default to Qlocal.
7246
72472008-04-22 Juri Linkov <juri@jurta.org>
7248
7249 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7250 read-buffer-to-switch instead of using the letter "B".
7251
72522008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7253
7254 * fileio.c (Qdefault_directory): New variable.
7255 (Fread_file_name): Use it to pass `dir' to the completion functions.
7256
72572008-04-20 Chong Yidong <cyd@stupidchicken.com>
7258
7259 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7260
72612008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7262
7263 * keyboard.c (Vpre_help_message): Remove.
7264 (show_help_echo): Remove default C code.
7265
7266 * dired.c (directory_files_internal, file_name_completion):
7267 Only call ENCODE_FILE if the string is indeed decoded.
7268
72692008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7270
7271 * Makefile.in (TOOLKIT_DEFINES): Remove.
7272 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7273
72742008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7275
7276 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7277 (mactoolbox.o): New target.
7278
7279 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7280 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7281
7282 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
7283 Use mac_set_frame_window_background instead of XSetWindowBackground.
7284 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
7285 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
7286 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
7287 instead of SetWindowTitleWithCFString.
7288 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
7289 Move function to mactoolbox.c.
7290 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
7291 Use mac_set_window_modified instead of SetWindowModified.
7292 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
7293 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
7294 (Fx_focus_frame): Use mac_front_non_floating_window instead of
7295 FrontNonFloatingWindow. Use mac_activate_window instead of
7296 ActivateWindow. Use mac_active_non_floating_window instead of
7297 ActiveNonFloatingWindow.
7298 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
7299 Use mac_show_hourglass and mac_hide_hourglass.
7300 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
7301 instead of GetGlobalMouse.
7302 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
7303 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
7304 Use mac_bring_window_to_front instead of BringToFront.
7305 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
7306 mactoolbox.c.
7307 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
7308 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
7309 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
7310 mactoolbox.c.
7311
7312 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
7313 (XtPointer): Move typedef from macmenu.c.
7314 (enum button_type): Move enum from macmenu.c.
7315 (widget_value): Move typedef from macmenu.c.
7316 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
7317 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7318 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7319 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7320 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7321 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7322 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7323 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
7324 (Selection): Move typedef from macselect.c.
7325 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
7326 macterm.c.
7327 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
7328 (mac_is_window_collapsed, mac_bring_window_to_front)
7329 (mac_send_window_behind, mac_hide_window, mac_show_window)
7330 (mac_collapse_window, mac_front_non_floating_window)
7331 (mac_active_non_floating_window, mac_activate_window)
7332 (mac_move_window_structure, mac_move_window, mac_size_window)
7333 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
7334
7335 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
7336 (enum mac_menu_kind): Move enum to mactoolbox.c.
7337 (min_menu_id): Move variable to mactoolbox.c.
7338 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
7339 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
7340 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
7341 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
7342 [TARGET_API_MAC_CARBON]: Likewise.
7343 (XtPointer): Move typedef to macgui.h.
7344 (enum button_type): Move enum to macgui.h.
7345 (widget_value): Move typedef to macgui.h.
7346 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7347 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7348 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7349 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7350 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7351 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7352 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
7353 (popup_activated_flag): Make variable non-static.
7354 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
7355 (add_menu_item, fill_menu, dispose_menus):
7356 Move functions to mactoolbox.c.
7357 (restore_show_help_function, menu_target_item_handler)
7358 (install_menu_target_item_handler, mac_handle_dialog_event)
7359 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
7360 [TARGET_API_MAC_CARBON]: Likewise.
7361 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
7362 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7363 (find_and_call_menu_selection, name_is_separator): Make function
7364 non-static.
7365 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
7366 to mactoolbox.c.
7367 (set_frame_menubar): Don't call install_menu_quit_handler.
7368 (menu_item_selection): New variable.
7369 (mac_menu_show): Use create_and_show_popup_menu.
7370 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
7371 selection but set variable menu_item_selection. All uses changed.
7372 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
7373 Call install_menu_quit_handler. Move to mactoolbox.c.
7374
7375 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
7376 (Selection): Move typedef to macgui.h.
7377 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
7378 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
7379 Make variables non-static.
7380 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7381 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
7382 Make functions non-static.
7383 (Vmac_service_selection) [MAC_OSX]: Likewise.
7384 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
7385 (mac_valid_selection_target_p, mac_clear_selection)
7386 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7387 (mac_put_selection_value, mac_selection_has_target_p)
7388 (mac_get_selection_value, mac_get_selection_target_list)
7389 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
7390 Move functions to mactoolbox.c.
7391 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
7392 Likewise.
7393 (copy_scrap_flavor_data, mac_handle_service_event)
7394 (install_service_handler) [MAC_OSX]: Likewise.
7395 (syms_of_macselect) <Vmac_dnd_known_types>:
7396 Use mac_dnd_default_known_types.
7397
7398 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
7399 Move to mactoolbox.c.
7400 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
7401 (Fx_selection_owner_p): Add EXFUN.
7402 (install_window_handler, remove_window_handler, XSetWindowBackground):
7403 Remove externs.
7404 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
7405 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
7406 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
7407 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
7408 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
7409 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
7410 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
7411 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
7412 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
7413 (create_and_show_popup_menu, mac_get_selection_from_symbol)
7414 (mac_valid_selection_target_p, mac_clear_selection)
7415 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7416 (mac_put_selection_value, mac_selection_has_target_p)
7417 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
7418 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
7419 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
7420 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7421 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
7422 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7423 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
7424 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7425 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7426
7427 * mactoolbox.c: New file.
7428
74292008-04-18 Jason Rumney <jasonr@gnu.org>
7430
7431 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
7432
74332008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7434
7435 * character.c (Fmultibyte_char_to_unibyte):
7436 Return latin1 chars unchanged.
7437
7438 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
7439 relocated if it points to `name'.
7440
74412008-04-17 Kenichi Handa <handa@m17n.org>
7442
7443 * data.c (Faset): Allow setting a multibyte character in an
7444 ASCII-only unibyte string.
7445
7446 * lisp.h (STRING_SET_MULTIBYTE): New macro.
7447
74482008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
7449
7450 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
7451 done in config.h.
7452
74532008-04-16 Juanma Barranquero <lekktu@gmail.com>
7454
7455 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
7456 (Fchar_direction): Add usage in the docstring.
7457
74582008-04-15 Chong Yidong <cyd@stupidchicken.com>
7459
7460 * keyboard.c (read_key_sequence): Remove always-true checks.
7461
74622008-04-14 Jason Rumney <jasonr@gnu.org>
7463
7464 * w32font.c (w32font_open_internal): Set max_bounds.descent in
7465 compatibility struct, for better underline positioning.
7466
74672008-04-13 David Hansen <david.hansen@gmx.net>
7468
7469 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
7470 string.
7471
74722008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 * m/hp800.h (XUINT, XSET): Remove.
7475
74762008-04-12 Juanma Barranquero <lekktu@gmail.com>
7477
7478 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
7479 previous change.
7480
74812008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7482
7483 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
7484 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
7485
74862008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7487
7488 * keymap.h (map_keymap_canonical): Declare.
7489 * xmenu.c (single_keymap_panes): Use it.
7490
74912008-04-11 Glenn Morris <rgm@gnu.org>
7492
7493 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
7494 set the target's value to that of the alias.
7495
74962008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7497
7498 * term.c (set_tty_color_mode): Left over typo.
7499
75002008-04-10 Michael Albinus <michael.albinus@gmx.de>
7501
7502 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
7503 only after check for file name handler functions. Signal, when
7504 native functionality is not supported.
7505 (syms_of_fileio): Declare it unconditionally.
7506
75072008-04-10 Jason Rumney <jasonr@gnu.org>
7508
7509 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
7510 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
7511
7512 * w32.c (logon_network_drive): Also logon to remote drives that
7513 are mapped to drive letters.
7514
75152008-04-10 Glenn Morris <rgm@gnu.org>
7516
7517 * xdisp.c (truncate-partial-width-windows): Doc fix.
7518
75192008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
7522 Move functions to minibuffer.el.
7523 (syms_of_fileio): Don't declare them.
7524
75252008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7526
7527 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
7528 (syms_of_minibuf): Remove its initialization.
7529
7530 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
7531
75322008-04-09 Juanma Barranquero <lekktu@gmail.com>
7533
7534 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
7535
75362008-04-09 Jason Rumney <jasonr@gnu.org>
7537
7538 * makefile.w32-in (distclean): Delete makefile too.
7539 (maintainer-clean): New target.
7540
7541 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
7542
7543 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
7544 for new font backend and composite cases.
7545
75462008-04-09 Jan Djärv <jan.h.d@swipnet.se>
7547
7548 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
7549 Most of the code moved to run_timers.
7550 (do_pending_atimers): Call run_timers.
7551 (run_timers): New function.
7552
7553 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
7554 run atimers.
7555
7556 * process.c (wait_reading_process_output): The same as above.
7557
75582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7559
7560 * minibuf.c (last_exact_completion): Remove variable.
7561 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
7562 (complete_and_exit_1, complete_and_exit_2)
7563 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
7564 (Fdisplay_completion_list, display_completion_list_1)
7565 (Fminibuffer_completion_help, Fself_insert_and_exit)
7566 (Fexit_minibuffer, Fminibuffer_message): Move functions to
7567 minibuffer.el.
7568 (syms_of_minibuf): Remove corresponding initializations.
7569
7570 * keyboard.c (Qdeactivate_mark): New var.
7571 (command_loop_1): Use it to call `deactivate-mark'.
7572 (syms_of_keyboard): Initialize it.
7573
7574 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
7575 to another frame.
7576 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
7577 Don't call set_tty_color_mode.
7578 (store_frame_param): Reset previous_frame rather than call
7579 set_tty_color_mode.
7580 * term.c (set_tty_color_mode): Rewrite.
7581 * dispextern.h (set_tty_color_mode): New type.
7582 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
7583
75842008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
7585
7586 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
7587 for generic chars, which do not exist any more in emacs-unicode.
7588
75892008-04-08 Michael Albinus <michael.albinus@gmx.de>
7590
7591 * coding.c (detect_coding_emacs_mule)
7592 (Ffind_operation_coding_system): Fix typo.
7593
75942008-04-08 Jason Rumney <jasonr@gnu.org>
7595
7596 * w32uniscribe.c (SNAME): Extract only symbol name.
7597
7598 * w32font.h (struct w32_metric_cache): New struct.
7599 (w32font_info): Use it.
7600 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
7601 (CACHE_BLOCKSIZE): New constants.
7602
7603 * w32font.c (Qja, Qko, Qzh): New symbols.
7604 (syms_of_w32font): Initialise them.
7605 (font_matches_spec): Use them to filter by language.
7606 (recompute_cached_metrics): Remove function.
7607 (compute_metrics, clear_cached_metrics): New functions.
7608 (w32font_encode_char): Use them to manage metric cache.
7609 (w32font_text_extents): Cache metrics for all glyphs on demand.
7610 Delay converting glyph indices to WORD until needed.
7611 (w32font_open_internal): Initialize metric cache to empty.
7612 (registry_to_w32_charset): Charset should always be a symbol.
7613 (fill_in_logfont, list_all_matching_fonts): Family should
7614 always be a symbol.
7615
76162008-04-06 Jason Rumney <jasonr@gnu.org>
7617
7618 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
7619 Give up if glyph indices not supported. Use uniscribe obtained
7620 ABC widths for individual metrics. Map glyph clusters back to
7621 characters using fClusterStart flag. Return number of glyphs
7622 produced, not chars processed.
7623 (uniscribe_shape): Map char at FROM to current glyph.
7624
76252008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7626
7627 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
7628 Use SetMenuItemHierarchicalMenu.
7629
76302008-04-05 Jason Rumney <jasonr@gnu.org>
7631
7632 * image.c (pbm_load): Allow color values up to 65535.
7633 Throw an error if max_color_idx is outside the supported range.
7634 Report an error when image size is invalid.
7635 Read two bytes at a time when raw images have max_color_idx above 255.
7636
76372008-04-05 Eli Zaretskii <eliz@gnu.org>
7638
7639 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7640 cFileName a file name that includes `?' characters, use the 8+3
7641 alias in cAlternateFileName instead.
7642
76432008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
7644
7645 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
7646 append "CCL: Quitted" when the CCL program is quitted.
7647 (setup_ccl_program): Initialize ccl->quit_silently to zero.
7648
7649 * ccl.h (struct ccl_program): New member quit_silently.
7650
76512008-04-05 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * search.c (compile_pattern_1): Treat non-nil and non-string of
7654 search-spaces-regexp as nil.
7655
7656 * minibuf.c (Fassoc_string): Tweak docstring.
7657
76582008-04-05 Eli Zaretskii <eliz@gnu.org>
7659
7660 * dired.c (Ffile_attributes): Support inode numbers wider than 32
7661 bits. Remove ugly WINDOWSNT-specific kludge introduced on
7662 2008-03-14 to force inode be positive.
7663
7664 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
7665 _S_* ones, since we now use our own sys/stat.h.
7666 (stat, fstat): Don't mangle the inode number.
7667 (init_user_info): Don't restrict UID and GID to 0-60000 range.
7668
76692008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * frame.h (struct frame): Give one more bit to `visible' since we use
7672 values larger than 1 to indicate obscured frames on ttys.
7673
7674 * keymap.c (Qkeymap_canonicalize): New var.
7675 (Fmap_keymap_internal): New fun.
7676 (describe_map): Use keymap-canonicalize.
7677
7678 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
7679 (Fundo_boundary): Set them.
7680 (syms_of_undo): Initialize them.
7681 (record_point): Use them instead of last_point_position*.
7682 (last_undo_buffer): Change type.
7683
76842008-04-04 Jason Rumney <jasonr@gnu.org>
7685
7686 * w32font.c (w32font_text_extents): Use font's ascent and descent.
7687 (recompute_cached_metrics): Don't set ascent and descent per char.
7688
7689 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
7690 (uniscribe_check_otf): Add GC protection before consing.
7691 Rearrange loop for counting features.
7692
76932008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
7694
7695 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
7696 buffer with byte-size of source buffer.
7697
76982008-04-03 Chong Yidong <cyd@stupidchicken.com>
7699
7700 * callint.c (Fcall_interactively): Handle temporary region even
7701 when shift-select-mode is off.
7702
77032008-04-03 Jason Rumney <jasonr@gnu.org>
7704
7705 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
7706
77072008-04-03 Kenichi Handa <handa@m17n.org>
7708
7709 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
7710 (CATEGORY_MASK_UTF_16): Likewise.
7711 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
7712 binary file.
7713 (detect_coding): Add null-byte detection for a binary file.
7714 (detect_coding_system): Likewise.
7715
77162008-04-03 Jason Rumney <jasonr@gnu.org>
7717
7718 * w32uniscribe.c: New file.
7719
7720 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
7721
7722 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
7723
7724 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
7725 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
7726 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
7727 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
7728 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
7729 (Qphonetic): New symbols.
7730 (syms_of_w32font): Initialize them.
7731 (font_supported_scripts): Use them.
7732 (w32font_list_family): List all charsets.
7733 (w32font_text_extents, recompute_cached_metrics): Fix metric
7734 calculations.
7735 (w32_enumfont_pattern_entity): Make full_type a DWORD.
7736 Give opentype fonts their own format.
7737 (font_matches_spec): New arguments backend and logfont.
7738 Handle :otf spec for uniscribe backend.
7739 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
7740 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
7741
7742 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
7743 font backend.
7744 (globals_of_w32fns): Initialize uniscribe font backend.
7745
7746 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
7747 dependencies.
7748 (w32uniscribe.$(O)): New file to build.
7749 (FONT_OBJ): Include w32uniscribe.$(O).
7750 (LIBS): Add uniscribe libraries.
7751
7752 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
7753
77542008-04-02 Chong Yidong <cyd@stupidchicken.com>
7755
7756 * callint.c (Vshift_select_mode): New var.
7757 (Finteractive): Document new ^ spec.
7758 (Fcall_interactively): Call handle-shift-selection if the ^ spec
7759 is present.
7760
7761 * keyboard.c (Vthis_command_keys_shift_translated): New var.
7762 (command_loop_1): Avoid running the direct display versions of
7763 forward-char and backward-char if shift-selection may occur.
7764 (read_key_sequence): Set Vthis_command_keys_shift_translated if
7765 shift-translation takes place.
7766
7767 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
7768 avoid clobbering by define-minor-mode.
7769
7770 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
7771 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
7772
7773 * syntax.c (Fforward_word): Add ^ interactive spec.
7774
7775 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
7776 (Fscroll_right): Add ^ interactive spec.
7777
77782008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
7779
7780 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
7781
7782 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
7783
7784 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
7785
77862008-03-31 Juri Linkov <juri@jurta.org>
7787
7788 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
7789
77902008-03-30 Jan Djärv <jan.h.d@swipnet.se>
7791
7792 * gtkutil.c (xg_set_geometry): Fix indentation.
7793 (xg_resize_outer_widget): Remove.
7794 (x_wm_size_hint_off): Fix indentation.
7795 (xg_frame_set_char_size): Call flush_and_sync after
7796 gtk_window_resize.
7797 (x_wm_set_size_hint): Pass NULL as geometry window to
7798 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
7799 Add menu bar and tool bar height to base height.
7800 (xg_update_frame_menubar, free_frame_menubar)
7801 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7802 (update_frame_tool_bar, free_frame_tool_bar):
7803 Change xg_resize_outer_widget to xg_frame_set_char_size.
7804
78052008-03-30 Michael Albinus <michael.albinus@gmx.de>
7806
7807 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
7808 (Fdbus_call_method): New parameter TIMEOUT.
7809 (dbus-send-signal): Optimize UNGCPRO call.
7810
78112008-03-29 Juri Linkov <juri@jurta.org>
7812
7813 * window.c (Fdisplay_buffer): Move call to
7814 Vsplit_window_preferred_function out of conditions that check
7815 if window is eligible for vertical splitting.
7816 When Vsplit_window_preferred_function is non-nil, call it and use
7817 its non-nil return value as window. Otherwise, continue doing
7818 vertical splitting using Fsplit_window with arg horflag=nil.
7819 (syms_of_window) <Vsplit_window_preferred_function>: Change the
7820 default value from `split-window' to nil.
7821
78222008-03-29 Juri Linkov <juri@jurta.org>
7823
7824 * callint.c (Fcall_interactively): Revert 2008-03-16 change
7825 for interactive code letters 'b' and 'B'.
7826
78272008-03-29 Eli Zaretskii <eliz@gnu.org>
7828
7829 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
7830 multibyte string.
7831
78322008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
7833
7834 * keyboard.c (pending_funcalls): New var.
7835 (timer_check): Run it.
7836 (syms_of_keyboard): Initialize it.
7837 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
7838 (Vdelete_terminal_functions): New vars.
7839 (syms_of_terminal): Initialize them.
7840 (Fdelete_terminal): Run delete-terminal-functions.
7841 * xdisp.c (safe_eval): Rewrite.
7842 (safe_call2): New fun.
7843 * frame.c (Qdelete_frame_functions): New var.
7844 (syms_of_frame): Initialize it.
7845 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
7846 * lisp.h (safe_call2, pending_funcalls): Declare.
7847
78482008-03-28 Andreas Schwab <schwab@suse.de>
7849
7850 * indent.c (Fmove_to_column): Move declaration before statements.
7851
78522008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
7853
7854 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
7855 (struct frame): Use bit fields for boolean vars.
7856
7857 * process.c (server_accept_connection): Simplify naming.
7858 (emacs_get_tty_pgrp): Use SDATA.
7859
7860 * coding.c (decode_coding_object): Fix last change.
7861
78622008-03-27 Jason Rumney <jasonr@gnu.org>
7863
7864 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
7865
78662008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
7867
7868 * charset.c (Fdefine_charset_internal): Change the way of
7869 registering charsets in Vcharset_order_list.
7870 (syms_of_charset): Make the charset `eight-bit' supplementary.
7871
78722008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
7873
7874 * regex.c (EXTEND_BUFFER): Change order of pointer addition
7875 operations, to avoid having the difference between pointers
7876 overflow.
7877
78782008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7879
7880 * indent.c (check_display_width): New fun.
7881 (scan_for_column): Use it.
7882
7883 * data.c (syms_of_data): Mark most-positive-fixnum and
7884 most-negative-fixnum as constants.
7885
7886 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
7887
7888 * indent.c (scan_for_column): Extract from current_column_1.
7889 Merge with the same code from Fmove_to_column.
7890 (current_column_1, Fmove_to_column): Use it.
7891
78922008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7893
7894 * keymap.c (map_keymap_internal): New fun.
7895 (map_keymap): Use it.
7896 (Fmap_keymap_internal): New fun.
7897 (Fmap_keymap): Remove left-out test from before make_save_value.
7898
7899 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
7900
7901 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
7902 Use XCAR/XCDR.
7903
7904 * process.h (struct Lisp_Process): Remove filter_multibyte.
7905 * process.c (QCfilter_multibyte): Remove.
7906 (setup_process_coding_systems): Don't use filter_multibyte.
7907 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
7908 (read_process_output): Don't adjust multibyteness to filter_multibyte.
7909 (Fset_process_filter_multibyte): Change the coding-system to
7910 approximate the previous behavior.
7911 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
7912 coding-system.
7913
7914 * coding.c (decode_coding_object): When not decoding into a buffer,
7915 obey the coding system's preference of (uni|multi)byte.
7916
79172008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7918
7919 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
7920 every char is changed and has a different byte-length.
7921 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
7922 Fix int -> EMACS_INT.
7923
79242008-03-23 David Hansen <david.hansen@gmx.net>
7925
7926 * dbusbind.c (xd_read_message): Remove extra copying of message
7927 strings. Check for NULL `interface' or `member'.
7928
79292008-03-22 Eli Zaretskii <eliz@gnu.org>
7930
7931 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7932 cFileName a file name that includes `?' characters, use the 8+3
7933 alias in cAlternateFileName instead.
7934
79352008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
7936
7937 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
7938
79392008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7940
7941 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
7942 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
7943 work on current_buffer only instead (that was already the case
7944 for some of the code anyway).
7945 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
7946 (temp_set_point, temp_set_point_both): Use EMACS_INT.
7947 (SET_PT, SET_PT_BOTH): Adjust.
7948 * intervals.h (set_point, temp_set_point, set_point_both)
7949 (temp_set_point_both): Remove redundant declarations.
7950
79512008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7952
7953 * fileio.c (Finsert_file_contents):
7954 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
7955 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
7956 when buffer != current_buffer anyway.
7957
79582008-03-20 Andreas Schwab <schwab@suse.de>
7959
7960 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
7961 as default.
7962
79632008-03-19 Jason Rumney <jasonr@gnu.org>
7964
7965 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
7966 (syms_of_w32fns): Initialize them.
7967 (HOURGLASS_ID): New constant.
7968 (x_window_to_frame): Don't check hourglass_window.
7969 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
7970 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
7971 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
7972 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
7973 Only change the cursor if hourglass is not active.
7974 (Fx_create_frame): Initialize frame's current_cursor.
7975 (hourglass_atimer): Remove.
7976 (hourglass_started): New function.
7977 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
7978 (show_hourglass): Adapt to w32, changing argument to frame.
7979
7980 * w32term.h (struct w32_output): Remove hourglass_window.
7981 Add current_cursor.
7982
7983 * eval.c (call_debugger, Fsignal):
7984 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
7985 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
7986 (Fexecute_extended_command, cancel_hourglass_unwind):
7987 * minibuf.c (read_minibuf):
7988 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
7989
79902008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7991
7992 * window.c (run_funs): New fun.
7993 (run_window_configuration_change_hook): Use it to run the buffer-local
7994 and the global part of the hook.
7995
7996 * xdisp.c (format_mode_line_unwind_data): Add window argument.
7997 (unwind_format_mode_line): Restore selected window.
7998 (x_consider_frame_title, Fformat_mode_line): Set selected window.
7999
80002008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8001
8002 * editfns.c (Fchar_equal): Check they are valid characters.
8003
8004 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8005
80062008-03-17 Andreas Schwab <schwab@suse.de>
8007
8008 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8009 against a charset.
8010
8011 * lisp.h (Fbuffer_list): Declare.
8012
80132008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8014
aac0c6e3
MR
8015 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8016 handlebox_widget is != 0.
8017
80182008-03-16 Juri Linkov <juri@jurta.org>
8019
8020 * callint.c (Fcall_interactively): For interactive code letters
8021 'b' and 'B' put the buffer list into the list of default "future"
8022 values of the minibuffer.
8023
80242008-03-16 Andreas Schwab <schwab@suse.de>
8025
8026 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8027 modifiers.
8028
8029 * regex.c (re_match_2_internal): Correct matching of a charset
8030 against latin-1 characters.
8031
80322008-03-16 Kenichi Handa <handa@m17n.org>
8033
8034 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8035 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8036 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8037 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8038 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8039 CHAR_STRING_ADVANCE.
8040 (produce_chars): Fix for the case that the source and the
8041 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8042 instead of CHAR_STRING_ADVANCE.
8043 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8044 STRING_CHAR_ADVANCE.
8045
80462008-03-15 Andreas Schwab <schwab@suse.de>
8047
8048 * regex.c (re_match_2_internal): Correct matching of eight bit
8049 characters in unibyte strings.
8050
80512008-03-15 Martin Rudalics <rudalics@gmx.at>
8052
8053 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8054 at end of range when it coincides with the end of the buffer.
8055
80562008-03-14 Eli Zaretskii <eliz@gnu.org>
8057
8058 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8059
8060 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
8061
80622008-03-14 Jason Rumney <jasonr@gnu.org>
8063
8064 * editfns.c (initial_tz): New variable.
8065 (syms_of_editfns): Initialize it.
8066 (Fset_time_zone_rule): Set it when first called.
8067 Use it when TZSTRING is nil.
8068
8069 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
8070 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
8071 (monitor_from_point_fn, get_monitor_info_fn): New globals.
8072 (globals_of_w32fns): Initialize them.
8073 (compute_tip_xy): Use them to position tooltips.
8074
80752008-03-14 Glenn Morris <rgm@gnu.org>
8076
8077 * emacs.c (main): Revert previous change.
8078 (standard_args): Revert -internal-script back to -scriptload,
8079 and remove the long-option form.
8080
80812008-03-13 Glenn Morris <rgm@gnu.org>
8082
8083 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
8084 Remove option -enable-font-backend.
8085
80862008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
8087
8088 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
8089
80902008-03-11 Jan Djärv <jan.h.d@swipnet.se>
8091
8092 * xterm.c (x_connection_closed): For GTK: If this is the last
8093 terminal just exit without closing the display.
8094
80952008-03-11 Jason Rumney <jasonr@gnu.org>
8096
8097 * w32font.c (w32font_full_name): Use floor to round.
8098
f0131492 80992008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8100
8101 * sound.c (alsa_configure): Declare vol at beginning of block.
8102
8103 * fontset.c (Ffontset_info): Remove extra semicolon.
8104
81052008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8106
8107 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8108 size of resulting string.
8109
81102008-03-10 Jason Rumney <jasonr@gnu.org>
8111
8112 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8113
81142008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8115
8116 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8117 Don't pretend as if characters with display property haven't been
8118 consumed for string-replacing-string case.
8119
81202008-03-08 Kim F. Storm <storm@cua.dk>
8121
8122 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8123 (get_next_display_element, next_element_from_string)
8124 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8125
81262008-03-08 Andreas Schwab <schwab@suse.de>
8127
8128 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8129
81302008-03-06 Jason Rumney <jasonr@gnu.org>
8131
8132 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8133 when charset not specified. Only translate ANSI to unicode when
8134 font_type is truetype.
8135 (w32font_coverage_ok): New function.
8136 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8137
81382008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8139
8140 * lread.c (Fread_char): Resolve modifiers.
8141 (Fread_char_exclusive): Likewise.
8142
8143 * character.c (char_resolve_modifier_mask): New function.
8144 (char_string): Use char_resolve_modifier_mask.
8145 (Fchar_resolve_modifiers): New function.
8146 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8147 function.
8148
81492008-03-04 Jason Rumney <jasonr@gnu.org>
8150
8151 * makefile.w32-in: Always include w32font.c in the build.
8152 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8153
81542008-03-04 Andreas Schwab <schwab@suse.de>
8155
8156 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8157 (versionclean): Likewise.
8158
81592008-03-04 Juanma Barranquero <lekktu@gmail.com>
8160
8161 * .cvsignore: Add oo.
8162
81632008-03-03 Andreas Schwab <schwab@suse.de>
8164
8165 * coding.c (decode_coding_object): Inhibit gap shrinking while
8166 decoding in place.
8167
81682008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8169
8170 * w32term.c: Remove unused include "gnu.h".
8171 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8172
8173 * gnu.h: Rename to ...
8174 * emacs-icon.h: ... this.
8175 * xterm.c: Use emacs-icon.h instead of gnu.h.
8176 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8177
81782008-03-03 Juanma Barranquero <lekktu@gmail.com>
8179
8180 * w32font.c: Include math.h.
8181
81822008-03-03 Jason Rumney <jasonr@gnu.org>
8183
8184 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8185 Compute options separately.
8186 (w32font_open_internal): Set glyph_idx before caching metrics.
8187
8188 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8189 Define if system headers don't.
8190 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8191 (w32font_encode_char): Don't declare here.
8192
8193 * w32font.c (Quniscribe, QCformat): New symbols.
8194 (syms_of_w32font): Define them.
8195 (w32font_has_char): Indicate uncertainty.
8196 (w32font_encode_char): Encode as glyph point. Make static.
8197 (recompute_cached_metrics): New function.
8198 (w32font_open_internal): Use it. Set font to use glyph points
8199 initially. Set format based on type of font.
8200 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8201 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8202 on it. Set format based on information available here.
8203 (add_font_entity_to_list): Identify backend based on opentype_only.
8204
82052008-03-02 Andreas Schwab <schwab@suse.de>
8206
8207 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8208
8209 * coding.c (decode_coding_big5, produce_chars):
8210 Fix typos in last change.
8211
82122008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8213
8214 * gnu.h: New icon.
8215
82162008-03-02 Kenichi Handa <handa@m17n.org>
8217
8218 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8219 `dos', don't decode '\r' if that is the last in the source.
8220 (decode_coding_utf_16, decode_coding_emacs_mule)
8221 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8222 (decode_coding_raw_text, decode_coding_charset): Likewise.
8223 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8224
82252008-03-01 Jason Rumney <jasonr@gnu.org>
8226
8227 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8228
82292008-03-01 Kim F. Storm <storm@cua.dk>
8230
8231 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8232
82332008-03-01 Jason Rumney <jasonr@gnu.org>
8234
8235 * w32font.c (w32font_full_name): New function.
8236 (w32font_open_internal): Use it.
8237
82382008-03-01 Kim F. Storm <storm@cua.dk>
8239
8240 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8241
82422008-03-01 Jason Rumney <jasonr@gnu.org>
8243
8244 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8245
82462008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8247
8248 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8249 xg_frame_resized when the event is for the edit widget.
8250
8251 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8252
8253 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8254 set_char_size.
8255 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8256 operations on widgets here. Just set frame size if needed.
8257 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8258 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8259 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8260 the whole frame.
8261 (xg_create_tool_bar): Move attachment of the tool bar to
8262 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8263 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8264
82652008-03-01 Jason Rumney <jasonr@gnu.org>
8266
8267 * w32fns.c (w32_msg_pump): Disable debug code.
8268
82692008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8270
8271 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8272
82732008-02-29 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * xdisp.c (next_overlay_string): Don't set
8276 overlay_strings_at_end_processed_p if we're currently reading from
8277 a display string.
8278
82792008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8280
8281 * xdisp.c (get_overlay_strings_1): Fix typo.
8282
82832008-02-29 Chong Yidong <cyd@stupidchicken.com>
8284
8285 * xdisp.c (get_overlay_strings_1): Add missing argument type.
8286
82872008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
8288
8289 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
8290
8291 * xdisp.c (display_mode_element): Cancel the previous change.
8292 (decode_mode_spec): Likewise.
8293 (handle_auto_composed_prop): Don't make composition if it->string
8294 is a string.
8295
82962008-02-27 Kim F. Storm <storm@cua.dk>
8297
8298 * lisp.h (GLYPH): Change type from int to struct with separate char
8299 and face_id members.
8300 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
8301 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
8302 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
8303 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
8304 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
8305 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
8306 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
8307 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
8308 handle new Lisp glyph code encoding, either an integer or a cons.
8309
8310 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
8311 (GLYPH_ALIAS): Delete.
8312 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
8313 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
8314 (GLYPH_FROM_CHAR): Replace macro by ...
8315 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
8316
8317 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
8318 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
8319 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
8320 (GLYPH_INVALID_P): New macro.
8321 (spec_glyph_lookup_face): Update prototype.
8322
8323 * dispnew.c (line_draw_cost): Adapt to new glyph type.
8324 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
8325 new glyph code encoding.
8326 (spec_glyph_lookup_face): No return value; update passed glyph instead.
8327 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
8328
8329 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8330 Adapt to new glyph type and new glyph code encoding.
8331
8332 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
8333
8334 * indent.c (current_column, current_column_1, Fmove_to_column)
8335 (compute_motion): Adapt to new glyph code encoding.
8336
8337 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
8338
83392008-02-27 Chong Yidong <cyd@stupidchicken.com>
8340
8341 * process.c (wait_reading_process_output): Check for window
8342 changes caused by timers.
8343 Suggested by Johan Bockgård.
8344
83452008-02-27 Glenn Morris <rgm@gnu.org>
8346
8347 * emacs.c (USAGE1): Add `--disable-font-backend'.
8348
83492008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
8350
8351 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
8352 is made to the buffer.
8353
83542008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
8355
8356 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
8357 (face_at_string_position):
8358 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
8359 (face_at_string_position):
8360 * xdisp.c (display_string, next_overlay_change):
8361 * buffer.h (overlays_at):
8362 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
8363 Update callers.
8364
83652008-02-26 Chong Yidong <cyd@stupidchicken.com>
8366
8367 * editfns.c (Fformat): Doc fix.
8368
83692008-02-26 Juanma Barranquero <lekktu@gmail.com>
8370
8371 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
8372 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
8373 (Ffont_otf_alternates, Fquery_font): Doc fixes.
8374
83752008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8376
8377 * buffer.c (Fbuffer_swap_text): New function.
8378 (syms_of_buffer): Defsubr it.
8379
83802008-02-25 Chong Yidong <cyd@stupidchicken.com>
8381
8382 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
8383
83842008-02-25 Jason Rumney <jasonr@gnu.org>
8385
8386 * w32font.c (w32font_draw): Draw one character at a time when padding.
8387
83882008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8389
8390 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
8391 Handle a nil arg. Use run_window_configuration_change_hook.
8392 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
8393 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
8394 Use run_window_configuration_change_hook.
8395
83962008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8397
8398 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
8399 1-pixel width.
8400
84012008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8402
8403 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
8404 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
8405 if the glyph in the font is zero pixel with.
8406
8407 * dispextern.h (struct glyph_string): New member padding_p.
8408
8409 * w32font.c (w32font_draw): Pay attention to s->padding_p.
8410
8411 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
8412
8413 * xfont.c (xfont_draw): Pay attention to s->padding_p.
8414
8415 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
8416
8417 * font.c: If the font driver doesn't have `shape' function, return Qnil.
8418
84192008-02-25 Jason Rumney <jasonr@gnu.org>
8420
8421 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
8422
84232008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
8424
8425 Allow fine-grained image-cache flushing.
8426 * dispextern.h (struct image): Add `dependencies' field.
8427 (clear_image_caches): Change arg to Lisp_Object.
8428 * image.c (make_image): Initialize `dependencies' field.
8429 (clear_image_cache): Change arg to allow fine-grained flushing.
8430 Perform the flush even if image-cache-eviction-delay is nil.
8431 (clear_image_caches): Change arg to Lisp_Object.
8432 (Fclear_image_cache): Expand meaning of the argument.
8433 (mark_image): Mark `dependencies' field.
8434 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
8435 (lface_hash): Use XHASH rather than XFASTINT.
8436 (face_at_buffer_position): Fix int -> EMACS_INT position.
8437 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
8438 (select_frame_for_redisplay): Remove code duplication.
8439 (redisplay_internal): Adapt arg to call to clear_image_caches.
8440
84412008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
8442
8443 * s/vms4-0.h:
8444 * s/vms4-2.h:
8445 * s/vms4-4.h:
8446 * s/vms5-5.h: Remove, unused.
8447
8448 * s/irix5-2.h:
8449 * s/irix6-0.h:
8450 * s/riscos5.h:
8451 * s/mach-bsd4-3.h:
8452 * m/mips4.h: Remove files for obsolete systems.
8453
8454 * Makefile.in:
8455 * filelock.c:
8456 * unexmips.c:
8457 * m/hp9000s300.h:
8458 * m/iris4d.h:
8459 * s/aix3-1.h:
8460 * s/hpux.h:
8461 * s/msdos.h:
8462 * s/usg5-0.h:
8463 * s/usg5-2-2.h:
8464 * s/usg5-2.h:
8465 * s/usg5-3.h: Remove references to obsolete variables.
8466
8467 * s/irix5-0.h: Remove, move all the contents ...
8468 * s/irix6-5.h: ... here. Simplify.
8469 * config.in: Regenerate.
8470
84712008-02-24 Jason Rumney <jasonr@gnu.org>
8472
8473 * w32term.c (x_draw_glyph_string_background): Clear the background
8474 manually when cleartype is in use.
8475 (x_draw_glyph_string_foreground): Draw text transparently when
8476 cleartype is in use.
8477
8478 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
8479 a font into it unless we have to.
8480
84812008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8482
8483 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
8484 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 8485
aac0c6e3
MR
84862008-02-18 Jason Rumney <jasonr@gnu.org>
8487
8488 * w32fns.c (Fw32_shell_execute): Encode parameters.
8489
84902008-02-09 Eli Zaretskii <eliz@gnu.org>
8491
8492 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
8493
84942008-02-05 Juanma Barranquero <lekktu@gmail.com>
8495
8496 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
8497
84982008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
8499
8500 * xterm.c (x_set_offset): Don't change the gravity if
8501 CHANGE_GRAVITY is -1.
8502
85032008-02-23 Chong Yidong <cyd@stupidchicken.com>
8504
8505 * fileio.c (auto_save_error_occurred): New var.
8506 (auto_save_error): Set it.
8507 (Fdo_auto_save): Don't overwrite the error message if an auto-save
8508 error occurred.
8509
85102008-02-23 Eli Zaretskii <eliz@gnu.org>
8511
8512 * w32.c (globals_of_w32): Add initializations for
8513 g_b_init_get_sid_sub_authority and
8514 g_b_init_get_sid_sub_authority_count.
8515
85162008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
8517
8518 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
8519 (font_parse_xlfd): Use them for sanity check.
8520 (Finternal_set_font_style_table): Make sure the table is bijective.
8521
8522 Consolidate the image_cache to the terminal struct.
8523 * termhooks.h (P_): Remove redundant def.
8524 (struct terminal): New field `image_cache'.
8525 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
8526 of FRAME_X_IMAGE_CACHE.
8527 * xterm.h (struct x_display_info): Remove image_cache field.
8528 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8529 * w32term.h (struct w32_display_info): Remove image_cache field.
8530 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8531 * macterm.h (struct mac_display_info): Remove image_cache field.
8532 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8533 * xterm.c (x_term_init):
8534 * w32term.c (w32_term_init):
8535 * macterm.c (mac_term_init): Set the image_cache in the terminal.
8536 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
8537 Remove declarations.
8538 (clear_image_caches, mark_image_cache): New declarations.
8539 * xfaces.c (clear_face_cache):
8540 * xdisp.c (redisplay_internal): Use clear_image_caches.
8541 * image.c (clear_image_cache): Don't check that a frame is on
8542 a window-system before checking if it shares the same cache.
8543 (clear_image_caches): New function.
8544 (Fclear_image_cache): Use it.
8545 (mark_image): Move from allo.c.
8546 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
8547 * alloc.c (mark_image, mark_image_cache): Move to image.c.
8548 (mark_object): Don't call mark_image_cache for frames.
8549 (mark_terminals): Call mark_image_cache.
8550
8551 * lisp.h (Fdelete_terminal): Declare.
8552
8553 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
8554 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
8555 wrong_type_argument.
8556
85572008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
8558
8559 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
8560 malayalam.el, and tamil.el. Add sinhala.el.
8561
85622008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8563
8564 * xterm.c (x_connection_closed): Consolidate identical tests.
8565 (x_delete_terminal): Don't crash if called via x_connection_closed.
8566
85672008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
8568
8569 * xdisp.c (decode_mode_spec): New arg string.
8570 (display_mode_element): Adjust for the above change.
8571
85722008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8573
8574 * callint.c (Fcall_interactively): Use AREF.
8575
85762008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8577
8578 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
8579
85802008-02-18 Jan Djärv <jan.h.d@swipnet.se>
8581
8582 * xfns.c (Fx_show_tip): Set string to " " if empty.
8583
85842008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
8585
8586 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
8587 with Qt.
8588
85892008-02-17 Kenichi Handa <handa@m17n.org>
8590
8591 * ftfont.c (ftfont_shape): Return Lispy number.
8592
8593 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
8594 for GCs.
8595 (Finternal_set_font_selection_order): Call font_update_sort_order
8596 only when enable_font_backend is set.
8597 (realize_x_face): Set face->font_info to that of default face only
8598 when enable_font_backend is set.
8599
8600 * xdisp.c (handle_composition_prop): Set it->c to the fist
8601 character of the composed region.
8602 (fill_composite_glyph_string): Set base_face->font_info to
8603 s->font_info. Get a face for ascii from base_face->ascii_face.
8604 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
8605 with a face already decided.
8606 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
8607 non-negative.
8608 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
8609 call font_prepare_composition unconditionally.
8610
8611 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
8612
8613 * xterm.h (struct x_display_info): New member font.
8614
8615 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
8616 (x_set_mouse_face_gc, x_new_font): Likewise.
8617 (x_term_init): Setup display_info->font.
8618 (x_delete_terminal): Free display_info->font.
8619
8620 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
8621
8622 * ftxfont.c (ftxfont_default_fid): Delete it.
8623 (ftxfont_open): Set xfont->fid to 0.
8624 (ftxfont_end_for_frame): Clear data specific to the frame and the
8625 font-driver.
8626
8627 * xftfont.c (xftfont_default_fid): Delete it.
8628 (xftfont_open): Set xfont->fid to 0.
8629
8630 * fontset.c (FONTSET_OBJLIST): New macro.
8631 (fontset_find_font): Update font-object list of the fontset.
8632 (free_realized_fontset): New function.
8633 (free_face_fontset): Call free_realized_fontset.
8634 (Ffont_info): Call font_close_object only when enable_font_backend
8635 is set.
8636
8637 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
8638 [HAVE_NTGUI]: Include w32term.h.
8639 [MAC_OS]: Include macterm.ch.
8640 (font_otf_ValueRecord): Use make_number.
8641 (font_finish_cache): Fix handling of reference count.
8642 (font_clear_cache): Update num_fonts.
8643 (font_open_entity): Update smallest_char_width and
8644 smallest_font_height of the frame.
8645 (font_close_object): Update num_fonts.
8646 (Fclear_font_cache): Fix finding the target cache data.
8647
86482008-02-16 Glenn Morris <rgm@gnu.org>
8649
8650 * fontset.c (Finternal_char_font): Fix compilation warning.
8651
86522008-02-16 Eli Zaretskii <eliz@gnu.org>
8653
8654 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
8655 instead of char arrays. Enlarge the size of array passed to
8656 get_token_information.
8657
8658 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
8659 warnings.
8660
86612008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
8662
8663 * .gdbinit: Don't set `args', it breaks gdb --args.
8664
86652008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
8666
8667 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
8668 within a narrowed buffer.
8669
86702008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
8671
8672 * coding.c (decode_coding_object, encode_coding_object):
8673 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
8674
86752008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8676
8677 * coding.c (coding_set_destination): Use BEG_BYTE rather than
8678 hardcoding 1.
8679 (detect_coding_system):
8680 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
8681 (string_char_to_byte, string_byte_to_char, insert_from_gap):
8682 * insdel.c (insert_from_gap):
8683 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
8684 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
8685 (string_to_multibyte):
8686 * character.c (chars_in_text, multibyte_chars_in_text):
8687 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
8688
8689 * character.h (FETCH_STRING_CHAR_ADVANCE)
8690 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
8691 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
8692 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
8693
8694 * casefiddle.c (casify_region): Only call after-change and composition
8695 functions on the part of the region that was changed.
8696
8697 * keyboard.c (read_avail_input):
8698 * frame.c (Fdelete_frame): Call Fdelete_terminal.
8699
87002008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8701
8702 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
8703 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
8704
87052008-02-11 Juanma Barranquero <lekktu@gmail.com>
8706
8707 * w32menu.c (push_submenu_start, push_submenu_end)
8708 (push_left_right_boundary, push_menu_pane, push_menu_item):
8709 * keyboard.c (read_key_sequence): Don't pass args with side effects
8710 to AREF, it fails when compiling with -DENABLE_CHECKING.
8711
87122008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
8713
8714 * Makefile.in (${lispsource}international/charprop.el):
8715 Delete this target.
8716
8717 * search.c (boyer_moore): Fix incorrect synching of the trunk and
8718 emacs-unicode-2.
8719
87202008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8721
8722 * terminal.c (Fdelete_terminal): Clean up the `force' path.
8723
87242008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8725
8726 * frame.c (Qnoelisp): New symbol.
8727 (syms_of_frame): Initialize it.
8728 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
8729 harmless Elisp code, from a strong `force' from x_connection_closed.
8730 * frame.h (Qnoelisp): Declare.
8731 * xterm.c (x_connection_closed): Pass `noelisp'.
8732
8733 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
8734 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
8735 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
8736 rather than `int' for the type of `type'.
8737
87382008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
8739
8740 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
8741
8742 * Makefile.in (GNUC): Remove support for gcc-1.x.
8743
87442008-02-10 Richard Stallman <rms@gnu.org>
8745
8746 * lisp.h (ASET): Use AREF, not ASLOT.
8747
87482008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * lisp.h (ASET): Check bounds.
8751
87522008-02-10 Glenn Morris <rgm@gnu.org>
8753
8754 * buffer.c (mode-name): Doc fix.
8755
87562008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8757
8758 * Makefile.in:
8759 * emacs.c:
8760 * gmalloc.c:
8761 * keyboard.c:
8762 * lisp.h:
8763 * m/ibm370aix.h:
8764 * process.c:
8765 * regex.c:
8766 * s/hpux.h:
8767 * sysdep.c:
8768 * sysselect.h:
8769 * systty.h:
8770 * unexec.c:
8771 * w32term.c:
8772 * xsmfns.c:
8773 * xterm.c: Remove code that deals with obsolete variables.
8774
8775 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
8776
8777 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
8778 nothing else needs it anymore.
8779
87802008-02-09 Eli Zaretskii <eliz@gnu.org>
8781
8782 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
8783 instead of unibyte_char_to_multibyte.
8784
87852008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8786
8787 * s/gnu-linux.h: Remove commented out code.
8788
8789 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
8790
8791 * Makefile.in: Update what RMS says about using autoconf.
8792 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
8793 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
8794 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
8795 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
8796
87972008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8798
8799 * keymap.c (Fkey_description): Move side effect outside of macro call.
8800
8801 * xfaces.c (Finternal_make_lisp_face):
8802 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
8803
8804 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
8805 (syms_of_fontset): Use ASET.
8806
8807 * fns.c (concat): Move side effect outside of macro call.
8808 (hash_clear): Use ASET.
8809
88102008-02-08 Richard Stallman <rms@gnu.org>
8811
8812 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
8813 If FORCE, and frame has a surrogate minibuffer for another frame,
8814 delete the other frame first.
8815
88162008-02-07 Timo Savola <timo.savola@iki.fi>
8817
8818 * xterm.c (x_detect_focus_change): Handle embed client message.
8819 (handle_one_xevent): Ditto.
8820 (handle_one_xevent): If embedded and we get a button press/release,
8821 request focus.
8822 (xembed_set_info, xembed_send_message): New functions.
8823 (x_make_frame_visible): Call xembed_set_info if embedded.
8824 (x_make_frame_invisible): Call xembed_set_info if embedded.
8825 (x_term_init): Initialize Xatom_XEMBED.
8826 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
8827 (x_iconify_frame): Ditto.
8828
8829 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
8830 (enum xembed_info, enum xembed_message, enum xembed_focus)
8831 (enum xembed_modifier, enum xembed_accelerator): New.
8832 (xembed_set_info, xembed_send_message): Declare.
8833 (FRAME_X_EMBEDDED_P): New.
8834
8835 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
8836 gtk_plug_new.
8837
8838 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
8839 window ID of a frame.
8840 (x_window): Reparent frame if embedded.
8841 (Fx_create_frame): Don't set border width if embedded.
8842
8843 * emacs.c (USAGE3): Add --parent-id.
8844 (standard_args): Ditto.
8845
88462008-02-07 Jan Djärv <jan.h.d@swipnet.se>
8847
8848 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
8849
88502008-02-07 Jim Meyering <meyering@redhat.com>
8851
8852 Use "do...while (0)", not "if (1)...else" in macro definitions.
8853 The latter provokes a warning from gcc about the empty else, when
8854 followed by ";". Also, without that trailing semicolon, it would
8855 silently swallow up any following statement.
8856 * syntax.h (SETUP_SYNTAX_TABLE)
8857 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
8858 * buffer.h (DECODE_POSITION): Likewise.
8859 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
8860 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
8861 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
8862 (FETCH_CHAR_ADVANCE): Likewise.
8863 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
8864
88652008-02-07 Jim Meyering <meyering@redhat.com>
8866
8867 * lread.c [lint]: Don't include <sys/inode.h>.
8868
88692008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
8870
8871 * xselect.c (x_handle_dnd_message):
8872 * xmenu.c (digest_single_submenu, xmenu_show):
8873 * xdisp.c (with_echo_area_buffer_unwind_data)
8874 (format_mode_line_unwind_data, unwind_format_mode_line)
8875 (display_menu_bar):
8876 * eval.c (Ffetch_bytecode):
8877 * doc.c (store_function_docstring):
8878 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
8879 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
8880 * buffer.c (add_overlay_mod_hooklist): Use ASET.
8881
88822008-02-07 Kenichi Handa <handa@m17n.org>
8883
8884 * ftxfont.c (ftxfont_open): Don't set
8885 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
8886
8887 * ftfont.c (ftfont_open): Fix previous change.
8888
88892008-02-06 Jason Rumney <jasonr@gnu.org>
8890
8891 * w32font.c (w32font_text_extents): Fill in lbearing metric.
8892 Use cached metrics for ASCII characters.
8893 (w32font_open_internal): Don't set font's owning_frame.
8894 Cache metrics for ASCII characters.
8895
8896 * w32font.h (struct w32font_info): Add ascii_metrics.
8897 Remove owning_frame.
8898
88992008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
8900
8901 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
8902 to negative value.
8903
8904 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
8905
8906 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
8907
8908 * charset.c (syms_of_charset): Set QCtest and Qeq.
8909
89102008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
8911
8912 * process.c (Fstart_process):
8913 * callproc.c (Fcall_process): Handle the case where
8914 Funhandled_file_name_directory returns nil.
8915
8916 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
8917 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
8918 * font.c (check_gstring): Use them and AREF to access the vector before
8919 we know it's really a gstring.
8920 (Ffont_shape_text): Fix typo.
8921 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
8922
8923 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
8924 Declare.
8925
8926 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
8927
89282008-02-05 Jason Rumney <jasonr@gnu.org>
8929
8930 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
8931 Set smallest_font_height and smallest_char_width in display info.
8932
89332008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
8934
8935 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
8936
89372008-02-05 Miles Bader <miles@gnu.org>
8938
8939 * xfaces.c (get_lface_attributes, merge_named_face)
8940 (lookup_named_face, lookup_derived_face, realize_named_face):
8941 Revert 2008-02-01 change by cyd@stupidchicken.com.
8942
89432008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
8944
8945 * fontset.c (Ffontset_info): Handle the case of inhibitting the
8946 fallback fonts.
8947 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
8948
89492008-02-04 Jason Rumney <jasonr@gnu.org>
8950
8951 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
8952 set full_name.
8953 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
8954
89552008-02-03 Jason Rumney <jasonr@gnu.org>
8956
8957 * makefile.w32-in (OBJ1): Include font.o here.
8958 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
8959
89602008-02-02 Jason Rumney <jasonr@gnu.org>
8961
8962 * makefile.w32-in (temacs): Bump EMHEAP to 21.
8963
89642008-02-01 Jason Rumney <jasonr@gnu.org>
8965
8966 * s/cygwin.h: Define VIRT_ADDR_VARIES.
8967
8968 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
8969
89702008-02-01 Andreas Schwab <schwab@suse.de>
8971
8972 * Makefile.in (shortlisp, lisp): Update for rename of
8973 ../lisp/language/myanmar.el.
8974
89752008-02-01 Chong Yidong <cyd@stupidchicken.com>
8976
8977 * xfaces.c (get_lface_attributes): Delete function.
8978 (merge_named_face, lookup_named_face, lookup_derived_face)
8979 (realize_named_face): Call lface_from_face_name directly, and use
8980 the fact that merge_face_vectors does not alter its FROM argument.
8981
89822008-02-01 Jason Rumney <jasonr@gnu.org>
8983
8984 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
8985 input in the default locale. Handle non-Unicode multibyte input.
8986
89872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8988
8989 * fontset.c (reorder_font_vector): Exclude nil elements from the
8990 font group. Don't try multiple fonts.
8991 (fontset_font): Adjust for the above change.
8992 (Finternal_char_font): Return nil if the found font doesn't
8993 contain the character ch.
8994
8995 * Makefile.in (lisp, shortlisp): Add cham.el.
8996
89972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8998
8999 * font.h (FONTP): Make it return 1 also for a font-object.
9000
9001 * .gdbinit (xfontset): New function.
9002
9003 * font.c (font_find_for_lface): Check if the character C is
9004 supported or not only for the first font.
9005
9006 * fontset.c (reorder_font_vector): Fix typo.
9007 (fontset_find_font): Don't add a font-spec specifying a script.
9008 Use 0 (not Qt) for the indication of empty font-group. Change the
9009 format of RFONT-DEF. Return Qt if no font in the font-group
9010 support the character.
9011 (fontset_font): Adjust for the above change. If no font was
9012 found the character, remember that.
9013 (face_for_char): Adjust for the change of RFONT-DEF.
9014 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9015 no font for the target.
9016 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9017
90182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9019
9020 * font.c (font_load_for_face): Handle the case that the font in
9021 face->lface is a string.
9022
90232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9024
9025 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9026
90272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9028
9029 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9030 Fix previous change. If the frame is not on a window system,
9031 signal an error.
9032
90332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9034
9035 * coding.c (decode_coding_object, encode_coding_object): Adjust
9036 marker positions after conversion.
9037
9038 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9039
90402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9041
9042 * font.c (font_find_for_lface): Fix the handling of the return
9043 value of font_has_char.
9044 (Ffont_shape_text): Fix previous change.
9045
9046 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9047 (fontset_ref_and_range): Delete it.
9048 (fontset_find_font): Call char_table_ref_and_range instead of
9049 FONTSET_REF_AND_RANGE.
9050 (make_fontset): Don't setup font groups of Latin here.
9051 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9052 (new_fontset_from_font): Make the specified font the default for
9053 all Latin characters.
9054
90552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9056
9057 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9058 is on a window system before accessing the fontset of the frame.
9059
90602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9061
9062 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
9063
9064 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
9065 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
9066
9067 * font.c (Ffont_shape_text): If the font driver doesn't have a
9068 shaper function, make zero-width glyphs to have at least one-pixel
9069 width. Fix setting of `to' field of glyphs.
9070
90712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9072
9073 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
9074 glyphs.
9075
9076 * font.h (struct font_driver): Improve docstring of member `shape'.
9077
90782008-02-01 Kenichi Handa <handa@m17n.org>
9079
9080 * composite.c (syms_of_composite): Fix docstring of
9081 auto-composition-function.
9082
9083 * font.h (LGLYPH_SIZE): New macro.
9084
9085 * font.c (Ffont_fill_gstring): Stop filling when a character not
9086 supported by the font is found.
9087 (Ffont_shape_text): When a shape callback function returns nil,
9088 try at most two more times with larger gstring.
9089 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
9090
9091 * xdisp.c (handle_auto_composed_prop): Change the argument to
9092 auto-composition-function.
9093
9094 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9095 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9096 Lispy glyph and store it in the lgstring.
9097
9098 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9099
9100 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9101
91022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9103
9104 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9105
9106 * fontset.c (Vfont_encoding_charset_alist): New variable.
9107 (syms_of_fontset): DEFVAR it.
9108 (reorder_font_vector, fontset_find_font): Optimize for the case of
9109 no need of reordering.
9110 (face_for_char): Map the charset property by
9111 Vfont_encoding_charset_alist.
9112
91132008-02-01 Jason Rumney <jasonr@gnu.org>
9114
9115 * w32font.c (logfonts_match): Don't check adstyle here.
9116 (font_matches_spec): Check here against physical font instead.
9117 (add_font_entity_to_list): Avoid some substitutions.
9118
9119 * font.c (font_parse_fcname): Default weight and slant to normal.
9120 (font_score): Prefer normal fonts if weight or slant unspecified.
9121 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9122 match freetype scores.
9123
91242008-02-01 Jason Rumney <jasonr@gnu.org>
9125
9126 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9127 font, as it may have been deleted.
9128 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9129 most common hyphenless variation.
9130 (logfonts_match): Check generic family.
9131 (font_matches_spec): Don't check generic family here.
9132 (fill_in_logfont): Set generic family based on adstyle.
9133
9134 * w32font.h (w32font_get_cache): Update declaration.
9135
91362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9137
9138 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9139
9140 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9141 If none of the new drivers are available, call font_update_drivers
9142 with the old drivers.
9143
9144 * w32font.c (w32font_get_cache): Adjust the argument type.
9145
9146 * xfont.c (xfont_get_cache): Adjust the argument type.
9147
9148 * font.h (struct font_driver): Change argument type of get_cache.
9149
9150 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9151
9152 * font.c (Ffont_get): Fix arguments to Fassoc.
9153 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9154 (font_clear_cache): New function.
9155 (font_list_entities, font_matching_entity): Use font_get_cache.
9156 (font_update_drivers): Call font_clear_cache when finishing a driver.
9157
9158 * fontset.c (fontset_find_font): Fix previous change.
9159
91602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9161
9162 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9163 dpyinfo->font_table.
9164 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9165 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9166
9167 * font.c (font_at): Handle the case that the arg C is negative.
9168 Handle the unibyte case.
9169 (Ffont_at): Call font_at with the arg C -1.
9170
9171 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9172 the position here, and call font_at with the arg C -1.
9173 Don't check the range of the existing composition at the point.
9174
91752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9176
9177 * fontset.c (fontset_add): New args charset_id and family.
9178 Change caller.
9179 (load_font_get_repertory, fontset_find_font): Assume that
9180 font_spec is always a font-spec object.
9181 (Fset_fontset_font): Always store a font-spec object in a fontset.
9182
9183 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9184 instead of get_property_and_range.
9185
91862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9187
9188 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9189 (xftfont_open): Don't keep locking face.
9190 (xftfont_close): Don't unlock face.
9191 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9192
9193 * fontset.c (fontset_find_font): Don't prefer a font of
9194 supplementary charset.
9195
91962008-02-01 Kenichi Handa <handa@m17n.org>
9197
9198 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9199 script, langsys_tag to langsys, new member script.
9200 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9201 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9202 listing to the script specified in that property. Fix arg to
9203 OTF_check_features.
9204
92052008-02-01 Jason Rumney <jasonr@gnu.org>
9206
9207 * w32font.h: New file.
9208
9209 * w32font.c: Include it.
9210 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9211 (w32font_open): Set owning_frame.
9212 (w32font_text_extents): Use owning_frame.
9213 (struct font_callback_data): Add opentype_only field.
9214 (add_font_entity_to_list): Use it to filter fonts.
9215 Don't check against full name.
9216 (w32font_list_internal): New function.
9217 (w32font_list): Use it.
9218 (w32font_match_internal): New function.
9219 (w32font_match): Use it.
9220 (w32font_open_internal): New function.
9221 (w32font_open): Use it.
9222 (w32font_get_cache, w32font_close, w32font_has_char)
9223 (w32font_encode_char, w32font_text_extents, w32font_draw):
9224 Make non-static.
9225
9226 * makefile.w32-in (w32font.o): Depend on w32font.h.
9227
92282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9229
9230 * charset.c (Fdefine_charset_internal): Record a supplementary
9231 charset at the tail of Vcharset_order_list.
9232
9233 * font.c (Ffont_shape_text): Fix the return value.
9234
9235 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9236
9237 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9238
92392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9240
9241 * ftfont.c (struct OpenTypeSpec): New struct.
9242 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9243 (ftfont_get_open_type_spec): New function.
9244 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9245
9246 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9247
92482008-02-01 Jason Rumney <jasonr@gnu.org>
9249
9250 * w32font.c (add_font_entity_to_list): Compare only the beginning
9251 of full name.
9252
92532008-02-01 Kenichi Handa <handa@m17n.org>
9254
9255 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9256 Never return HANDLED_RECOMPUTE_PROPS.
9257
92582008-02-01 Kenichi Handa <handa@m17n.org>
9259
9260 * font.c (font_gstring_produce): Delete it.
9261
9262 * composite.h (COMPOSITION_METHOD):
9263 Handle COMPOSITION_WITH_GLYPH_STRING.
9264
92652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9266
9267 * xfont.c (Qx): Delete.
9268 (syms_of_xfont): Don't initialize Qx.
9269
9270 * composite.h (enum composition_method):
9271 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9272
92732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9274
9275 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9276 (choose_face_font): Accept new form of font-spec.
9277
9278 * frame.h (font_driver_list): Declare it unconditionally.
9279 (struct frame): Define members font_driver_list and font_data_list
9280 unconditionally.
9281
9282 * fontset.c: Include "font.h" unconditionally.
9283 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
9284 (Fset_fontset_font): Accept a font-spec object.
9285
9286 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
9287 PIXEL_SIZE part a wild card.
9288
9289 * dispextern.h (struct glyph_string): Define members clip and
9290 num_clips unconditionally.
9291 (struct face): Define members font_info and extra unconditionally.
9292
9293 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
9294 ftfont_info only when HAVE_LIBOTF is defined.
9295
92962008-02-01 Andreas Schwab <schwab@suse.de>
9297
9298 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
9299 and end.
9300
93012008-02-01 Jason Rumney <jasonr@gnu.org>
9302
9303 * w32font.c (w32font_driver): Add new fields.
9304
93052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9306
9307 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
9308 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
9309 (LIBES): Add @M17N_FLT_CFLAGS@.
9310
9311 * composite.c (compose_text): Don't treat the new style
9312 composition specially.
9313
9314 * emacs.c (main): Call syms_of_font unconditionally.
9315
9316 * font.h (FONT_ENTITY_NOT_LOADABLE)
9317 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
9318 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
9319 (struct font_driver): New member shape.
9320 (font_registry_charsets): Extern it.
9321 (font_find_for_lface, font_prepare_composition): Adjust prototype.
9322 (font_otf_capability, font_drive_otf): Delete their externs.
9323
9324 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
9325 (font_charset_alist, font_registry_charsets): Move from xfont.c
9326 and rename.
9327 (font_prop_validate_otf): New function.
9328 (font_property_table): Register it for QCotf.
9329 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
9330 (font_drive_otf): Delete.
9331 (font_prepare_composition): New arg F. Adjust for the change of
9332 lispy gstring.
9333 (font_find_for_lface): New arg C.
9334 (font_load_for_face): Adjust for the change of font_find_for_lface.
9335 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
9336 lispy gstring.
9337 (Ffont_shape_text): New function.
9338 (Fopen_font): If the font size is not given, use 12-pixel.
9339 (Ffont_at): New arg STRING.
9340 (syms_of_font): Initalize font_charset_alist.
9341 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
9342 conditionally.
9343
9344 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
9345 fonts of the same font-spec. Change the format of RFONT-DEF.
9346 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
9347 Adjust for the change of RFONT-DEF.
9348 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
9349
9350 * ftfont.h: New file.
9351
9352 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
9353 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9354 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9355 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
9356 font_otf_capability and font_drive_otf, set ftfont_shape.
9357 (ftfont_list): Adjust for the change of :otf property value.
9358 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
9359 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
9360 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
9361 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9362 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
9363 (otf_gstring, gstring, m17n_flt_initialized): New variables.
9364
9365 * w32term.c (x_draw_composite_glyph_string_foreground):
9366 Adjust for the change of lispy gstring.
9367
9368 * xdisp.c (handle_composition_prop): Adjust for the change of
9369 lispy gstring. Call a function for auto-composition with the
9370 third arg it->window.
9371 (fill_composite_glyph_string): Adjust for the change of lispy string.
9372 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
9373
9374 * xfaces.c (set_font_frame_param): Adjust for the change of
9375 font_find_for_lface.
9376
9377 * xfont.c (x_font_charset_alist): Move to font.c and rename.
9378 (xfont_registry_charsets): Likewise. Change caller.
9379 (syms_of_xfont): Don't handle x_font_charset_alist.
9380
9381 * xftfont.c: Include "ftfont.h".
9382 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9383 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9384 (xftfont_close) [HAVE_LIBOTF]: Close otf.
9385 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9386 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
9387 Set xftfont_driver.shape to xftfont_shape.
9388
9389 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9390 the change of lispy gstring.
9391
93922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9393
9394 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
9395
93962008-02-01 Jason Rumney <jasonr@gnu.org>
9397
9398 * w32font.c (w32font_draw): Fill background manually.
9399
94002008-02-01 Jason Rumney <jasonr@gnu.org>
9401
9402 * font.c (Qfontp): Remove unused symbol.
9403 (QCantialias): New symbol.
9404 (syms_of_font): Define it.
9405 (font_property_table): Set a validator for QCantialias.
9406
9407 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
9408 Define if not already.
9409 (QCfamily): Share with xfaces.c.
9410 (Qstandard, Qsubpixel, Qnatural): New symbols.
9411 (syms_of_w32font): Define them. Don't define QCfamily here.
9412 (w32_antialias_type, lispy_antialias_type): New functions.
9413 (w32_enumfont_pattern_entity): New arg requested_font.
9414 Set antialias parameter if non-default was requested.
9415 (fill_in_logfont): Fill in lfQuality if :antialias specified.
9416
94172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9418
9419 * lread.c (read1): Undo the previous change.
9420
94212008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
9422
9423 * frame.c (Fdelete_frame): Call font_update_drivers only when
9424 USE_FONT_BACKEND is defined.
9425
94262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9427
9428 * font.h (struct font_bitmap): New member bits_per_pixel.
9429 (struct font_driver): New members start_for_frame and end_for_frame.
9430 (struct font_data_list): New struct.
9431 (font_put_frame_data, font_get_frame_data): Extern them.
9432
9433 * frame.h (struct frame): New member font_data_list.
9434
9435 * font.c (font_update_drivers): Call driver->start_for_frame and
9436 driver->end_for_frame at proper timings.
9437 (font_put_frame_data, font_get_frame_data): New functions.
9438 (Ffont_spec): Add usage in the docstring.
9439
9440 * frame.c (make_frame): Initialize f->font_data_list to NULL.
9441 (Fdelete_frame): Call font_update_drivers.
9442
9443 * xftfont.c (struct xftface_info): Delete the member xft_draw.
9444 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
9445 (xftfont_get_xft_draw): New function.
9446 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
9447 (xftfont_end_for_frame): New function.
9448 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
9449
9450 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
9451 Change argument. Cache GCs in the per-frame data.
9452 (struct ftxfont_frame_data): New struct.
9453 (ftxfont_draw_bitmap): New arg gc_fore and flush.
9454 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
9455 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
9456 (ftxfont_end_for_frame): New function.
9457 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
9458
9459 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
9460
94612008-02-01 Kenichi Handa <handa@m17n.org>
9462
9463 * xselect.c (Vselection_coding_system)
9464 (Vnext_selection_coding_system): Delete them.
9465 (syms_of_xselect): Don't declare selection-coding-system and
9466 next-selection-coding-system. They are declared in select.el.
9467
94682008-02-01 Jason Rumney <jasonr@gnu.org>
9469
9470 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
9471
9472 * w32fns.c: Include imm.h.
9473 (get_composition_string_fn, get_ime_context_fn): New optional
9474 system functions.
9475 (globals_of_w32fns): Load them from imm32.dll.
9476 (ignore_ime_char): New flag.
9477 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
9478 WM_IME_ENDCOMPOSITION messages.
9479
9480 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
9481 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
9482
94832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9484
9485 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
9486 (READCHAR_REPORT_MULTIBYTE): New macro.
9487 (readchar): New 2nd arg MULTIBYTE.
9488 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
9489 Make symbol's name multibyte according to the multibyteness of the
9490 source.
9491
94922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9493
9494 * xfaces.c (face_for_overlay_string): Call lookup_face with
9495 correct arguments (fix of synching with the trunk).
9496
94972008-02-01 Kenichi Handa <handa@m17n.org>
9498
9499 * font.c (font_prop_validate_symbol, font_prop_validate_style)
9500 (font_prop_validate_non_neg, font_prop_validate_spacing):
9501 Delete argument prop_index.
9502 (font_property_table): Change arguments to validater. Change Callers.
9503 (font_lispy_object): Delete.
9504 (font_at): Use font_find_object instead fo font_lispy_object.
9505
95062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9507
9508 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
9509 and file names.
9510
95112008-02-01 Jason Rumney <jasonr@gnu.org>
9512
9513 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
9514 (font_matches_spec): Remove debug output.
9515 (add_font_entity_to_list): Avoid using substituted fonts.
9516
95172008-02-01 Jason Rumney <jasonr@gnu.org>
9518
9519 * doc.c (Fsnarf_documentation):
9520 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
9521
95222008-02-01 Miles Bader <miles@gnu.org>
9523
9524 * dispextern.h (struct glyph_row): Only define "clip" field if
9525 HAVE_WINDOW_SYSTEM is defined.
9526
95272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9528
9529 Fix up multi-tty merge.
9530
9531 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
9532 and indentation.
9533
9534 * xfaces.c (free_realized_face, clear_face_gcs):
9535 Include font_done_for_face in the input_blocked section, just in case.
9536
9537 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
9538 (get_char_face_and_encoding): Undo last change and remove the *other*
9539 duplicate definition (i.e. keep the one that's better scoped and that
9540 includes code for the font-backend).
9541
9542 * terminal.c (create_terminal): Default keyboard_coding to
9543 `no-conversion' and terminal_coding to `undecided'.
9544
9545 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
9546
9547 * fontset.c (free_realized_fontsets): Check that the table entry does
9548 contain a fontset before trying to compare it to `base'.
9549
9550 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
9551 syms_of_charset, and syms_of_coding earlier because init_window_once
9552 now needs Vcoding_system_hash_table to be setup.
9553
9554 * coding.h (default_buffer_file_coding): Remove.
9555
9556 * coding.c (default_buffer_file_coding): Remove.
9557 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
9558 than ->symbol, and use the terminal-local coding system.
9559 (syms_of_coding): Don't setup the coding-systems that are not
9560 terminal-local.
9561 (Fdefine_coding_system_internal): Use XCAR/XCDR.
9562
9563 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
9564 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
9565
9566 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
9567 in chartab.c and were re-added here by mistake.
9568 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
9569
9570 * doc.c (Fsnarf_documentation):
9571 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
9572 src to etc.
9573
9574 * ChangeLog.10: Add mistakenly removed entry.
9575
95762008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
9577
9578 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
9579
95802008-02-01 Miles Bader <miles@gnu.org>
9581
9582 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
9583 Add extra args to FACE_FOR_CHAR.
9584
95852008-02-01 Kenichi Handa <handa@m17n.org>
9586
9587 * keymap.c (where_is_internal_1): If key is a cons, store the copy
9588 in sequence.
9589
9590 * chartab.c (map_sub_char_table, map_char_table): If the range
9591 contains just one character, call the function with that character
9592 even if the depth is not 3.
9593
95942008-02-01 Jason Rumney <jasonr@gnu.org>
9595
9596 * w32font.c (w32font_text_extents): Calculate metrics for the
9597 whole string.
9598
95992008-02-01 Jason Rumney <jasonr@gnu.org>
9600
9601 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
9602
96032008-02-01 Jason Rumney <jasonr@gnu.org>
9604
9605 * w32term.c (x_set_glyph_string_clipping): Use
9606 get_glyph_string_clip_rects.
9607 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9608 Adjust for the change of struct glyph_string.
9609
9610 * w32font.c (w32font_draw): Do clipping here.
9611
96122008-02-01 Kenichi Handa <handa@m17n.org>
9613
9614 * xftfont.c (xftfont_draw): Adjust for the change of struct
9615 glyph_string.
9616
9617 * xterm.c (x_set_glyph_string_clipping): Use
9618 get_glyph_string_clip_rects.
9619 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9620 Adjust for the change of struct glyph_string.
9621
9622 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
9623 the resulting clip(s}.
9624 (expose_overlaps): Add arg r. Change callers. Set it to
9625 row->clip temporarily.
9626 (expose_window): Redraw rows overlapping the exposed area.
9627
9628 * dispextern.h (struct glyph_row): New member clip.
9629 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
9630 clip_height, new member clip, and num_clips.
9631
96322008-02-01 Kenichi Handa <handa@m17n.org>
9633
9634 * data.c (Fchar_or_string_p): Fix docstring.
9635
96362008-02-01 Kenichi Handa <handa@m17n.org>
9637
9638 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
9639 create a temporary XftDraw object.
9640
96412008-02-01 Kenichi Handa <handa@m17n.org>
9642
9643 * font.c (Ffontp): Fix docstring.
9644
9645 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
9646 strong evidence of ISO-2022.
9647
96482008-02-01 Kenichi Handa <handa@m17n.org>
9649
9650 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
9651 SYNTAX_ENTRY_FOLLOW_PARENT.
9652
96532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9654
9655 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
9656 its type.
9657 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
9658 Update to the new type of weak_hash_tables and next_weak.
9659
9660 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
9661 a plain C pointer to Lisp_Hash_Table.
9662
9663 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
9664 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
9665 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
9666 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
9667 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
9668 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
9669 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
9670 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
9671 (GC_EQ): Remove since they've been identical to their non-GC_
9672 alter-egos ever since the markbit was eradicated.
9673
9674 * alloc.c:
9675 * buffer.c:
9676 * buffer.h:
9677 * data.c:
9678 * fileio.c:
9679 * filelock.c:
9680 * fns.c:
9681 * frame.h:
9682 * lisp.h:
9683 * macterm.c:
9684 * print.c:
9685 * process.c:
9686 * w32fns.c:
9687 * w32menu.c:
9688 * w32term.c:
9689 * xfns.c:
9690 * xmenu.c:
9691 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
9692
96932008-02-01 Kenichi Handa <handa@m17n.org>
9694
9695 * chartab.c (map_sub_char_table): Make it work for the top-level
9696 char-table. Fix handling of parent char-table.
9697 (map_char_table): Adjust for the above change.
9698
96992008-02-01 Jason Rumney <jasonr@gnu.org>
9700
9701 * w32font.c (Qgdi): Rename from Qw32.
9702
97032008-02-01 Jason Rumney <jasonr@gnu.org>
9704
9705 * w32bdf.c (get_quoted_string): Make function static.
9706
97072008-02-01 Kenichi Handa <handa@m17n.org>
9708
9709 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
9710 bigger ascent and descent than those of the font, use them as
9711 font's ascent and descent.
9712
97132008-02-01 Kenichi Handa <handa@m17n.org>
9714
9715 * Makefile.in (${lispsource}international/charprop.el): Move this
9716 target within "#ifdef HAVE_UNIDATA" and "#endif".
9717
97182008-02-01 Kenichi Handa <handa@m17n.org>
9719
9720 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
9721 (shortlisp): Add ../lisp/language/tai-viet.el.
9722
97232008-02-01 Ulrich Mueller <ulm@gentoo.org>
9724
9725 * Makefile.in (${lispsource}international/charprop.el): Depend on
9726 temacs${EXEEXT}.
9727
97282008-02-01 Jason Rumney <jasonr@gnu.org>
9729
9730 * w32font.c (w32font_close): Delete the GDI font object.
9731
9732 * w32menu.c: Include character.h.
9733
9734 * w32proc.c: Likewise.
9735
9736 * w32select.c: Likewise.
9737
9738 * makefile.w32-in (w32proc.o): Depend on character.h.
9739
97402008-02-01 Jason Rumney <jasonr@gnu.org>
9741
9742 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
9743
9744 * w32menu.c (syms_of_w32menu): Likewise.
9745
9746 * w32proc.c (syms_of_ntproc): Likewise.
9747
9748 * w32select.c (syms_of_w32select): Likewise.
9749
9750 * w32term.c (syms_of_w32term): Likewise.
9751
97522008-02-01 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32font.c (w32font_draw): Delete brush after using it.
9755
97562008-02-01 Jason Rumney <jasonr@gnu.org>
9757
9758 * w32font.c (w32font_open): Don't set font_idx.
9759 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
9760 to font settings.
9761 (w32font_draw): Fill background explicitly.
9762
97632008-02-01 Jason Rumney <jasonr@gnu.org>
9764
9765 * w32term.c (w32_initialize): Don't call w32font_initialize.
9766
9767 * w32font.c (w32font_info): Remove subranges.
9768 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
9769 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
9770 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
9771 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
9772 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
9773 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
9774 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
9775 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
9776 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
9777 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
9778 New symbols.
9779 (font_callback_data): New struct.
9780 (w32font_list, w32font_match): Use it.
9781 (w32font_open): Don't populate subranges.
9782 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
9783 (w32font_encode_char): Always return unicode code-point as-is.
9784 (w32font_text_extents): Supply a transformation matrix to
9785 GetGlyphOutline. Never look up by glyph index. Avoid looping
9786 twice. Use unicode version of GetTexExtentPoint32 instead of
9787 glyph index version.
9788 (set_fonts_frame): Remove.
9789 (w32_enumfont_pattern_entity): Add frame parameter, use it to
9790 set frame parameter. Use backward compatible fake foundries.
9791 Save generic family in extra slot under QCfamily. Make width slot
9792 constant. Save QCspacing value. Save list of scripts instead of
9793 binary subranges.
9794 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
9795 (add_font_entity_to_list): Use font_callback_data struct. Filter
9796 unwanted fonts.
9797 (add_one_font_entity_to_list): Use font_callback_data struct.
9798 (w32_registry): Default to iso10646_1.
9799 (fill_in_logfont): Use dpi from extra slot. Don't bother with
9800 string font registries. Don't fill in font name if it is a generic
9801 family name, fill family instead. Use spacing, family and script
9802 extra info to fill pitch, family and charset fields.
9803 (list_all_matching_fonts): Use font_callback_data struct.
9804 (unicode_range_for_char): Remove.
9805 (font_supported_scripts): New function.
9806 (w32font_initialize): Remove.
9807 (syms_of_w32font): Update which symbols are defined.
9808
98092008-02-01 Jason Rumney <jasonr@gnu.org>
9810
9811 * font.c (font_pixel_size): Reverse assq_no_quit args.
9812
9813 * w32term.h (FONT_WIDTH): Report max width, not average.
9814 (FONT_MAX_WIDTH): Remove.
9815 (FONT_AVG_WIDTH): New macro.
9816
9817 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
9818 redefinition of FONT_WIDTH.
9819
9820 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
9821 (w32_cache_char_metrics): Use FONT_WIDTH.
9822
9823 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
9824
98252008-02-01 Jason Rumney <jasonr@gnu.org>
9826
9827 * w32font.c (w32font_open): Make lfHeight negative.
9828
9829 * w32fns.c (x_default_font_parameter): Use new style font name.
9830 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
9831
98322008-02-01 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32font.c (QCsubranges): New symbol.
9835 (w32font_open, w32font_has_char): Get subranges from subproperty
9836 of extra.
9837 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
9838 (syms_of_w32font): Define :subranges symbol.
9839
9840 * font.c (font_put_extra): Expose externally.
9841
9842 * font.h (font_put_extra): Move declaration from font.c.
9843
9844 * font.c (Ffont_get): Use font driver to determine otf capability.
9845 (adjust_anchor): Check if driver defines anchor_point before using.
9846
9847 * w32font.c (w32font_open): Handle size, height and pixel_size better.
9848 (w32font_draw): Use options.
9849 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
9850 Fix detection of truetype fonts.
9851 (registry_to_w32_charset): Handle charsets other than iso8859-1
9852 expressed as lisp symbols.
9853 (w32_registry): Express charset as lisp symbol.
9854 (fill_in_logfont): Reverse pixel and point height logic.
9855 Don't set width here. Set quality to default.
9856
9857 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
9858 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
9859
9860 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9861 Remove redundant loop and allocation.
9862
9863 * makefile.w32-in (font.o, w32font.o): New objects.
9864 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
9865 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
9866
9867 * xdisp.c (fill_composite_glyph_string): Make the first arg to
9868 STORE_XCHARB a valid l-value.
9869
9870 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
9871 calculations for non-Truetype fonts.
9872 (x_draw_glyph_string): Sync with xterm.c.
9873 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9874 Remove redundant code.
9875 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
9876
9877 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
9878 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
9879
9880 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
9881 (x_to_w32_charset, w32_to_x_charset): Expose externally.
9882
9883 * w32font.c: New file for w32 font backend.
9884
98852008-02-01 Kenichi Handa <handa@m17n.org>
9886
9887 * term.c: Don't include "buffer.h" twice.
9888
98892008-02-01 Kenichi Handa <handa@m17n.org>
9890
9891 * character.c (Funibyte_string): New function.
9892 (syms_of_character): Defsubr it.
9893
98942008-02-01 Jason Rumney <jasonr@gnu.org>
9895
9896 * w32term.c [USE_FONT_BACKEND]:
9897 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
9898 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
9899 (x_draw_glyph_string, x_draw_glyph_string_foreground)
9900 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
9901 (x_free_frame_resources): Sync with xterm.c.
9902
99032008-02-01 Andreas Schwab <schwab@suse.de>
9904
9905 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
9906 char-table size.
9907
99082008-02-01 Kenichi Handa <handa@m17n.org>
9909
9910 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
9911
99122008-02-01 Kenichi Handa <handa@m17n.org>
9913
9914 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
9915 font_otf_gpos, add font_drive_otf.
9916
9917 * fontset.c (fontset_find_font): Pay attention to font size
9918 specified for a font.
9919 (reorder_font_vector): Check contents of font_def.
9920
9921 * font.c (struct otf_list): Delete it.
9922 (otf_list): Make it a lisp variable.
9923 (otf_open): Use lispy otf_list.
9924 (generate_otf_features): Rename from parse_gsub_gpos_spec.
9925 (check_otf_features): New function.
9926 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9927 New functions.
9928 (font_drive_otf): New function merging font_otf_gsub and
9929 font_otf_gpos.
9930 (font_open_for_lface): New arg spec. Change argument order.
9931 (font_load_for_face): Adjust for the change of font_open_for_lface.
9932 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
9933 Ffont_otf_gpos.
9934 (syms_of_font): Staticpro otf_list. Delete defsubr of
9935 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
9936
9937 * xfaces.c (set_font_frame_param): Adjust for the change of
9938 font_open_for_lface.
9939
9940 * font.h (font_open_for_lface): Adjust prototype.
9941 (struct font_driver): Delete members otf_gsub and otf_gpos, add
9942 member otf_drive.
9943 (font_otf_gsub, font_otf_gpos): Delete externs.
9944 (font_drive_otf): Extern it.
9945
99462008-02-01 Kenichi Handa <handa@m17n.org>
9947
9948 * font.c (font_at): If the window W is not on a window system,
9949 return Qnil.
9950
9951 * coding.c (produce_chars, encode_coding): Don't call
9952 insert_from_gap if no characters to produce.
9953
99542008-02-01 Kenichi Handa <handa@m17n.org>
9955
9956 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
9957 Fclear_face_cache.
9958
9959 * xfaces.c (face_for_font): Check also face->font==font->font.font.
9960
99612008-02-01 Miles Bader <miles@gnu.org>
9962
9963 * emacs.c (main): Change default value of `enable_font_backend' to 1.
9964 Parse "--disable-font-backend" option.
9965 (standard_args): Add "--disable-font-backend" option.
9966
99672008-02-01 Kenichi Handa <handa@m17n.org>
9968
9969 * fontset.c (fontset_find_font): New function.
9970 (fontset_font): Use fontset_find_font.
9971 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
9972 Register the specified font for all Latin characters.
9973 (new_fontset_from_font): Register the specified font for all Latin
9974 characters.
9975 (dump_fontset): For a realized fontset, include the base fontset
9976 name in the returned vector.
9977
99782008-02-01 Kenichi Handa <handa@m17n.org>
9979
9980 * character.h (CHAR_STRING): Cast C to unsigned on calling
9981 char_string.
9982
9983 * character.c (char_string): Type of arg C changed to unsigned.
9984 Signal an error if C is an invalid character code.
9985
9986 * editfns.c (general_insert_function, Fchar_to_string):
9987 Use CHARACTERP, not INTEGERP.
9988
99892008-02-01 Kenichi Handa <handa@m17n.org>
9990
9991 * character.h (MIN_MULTIBYTE_LEADING_CODE)
9992 (MAX_MULTIBYTE_LEADING_CODE): New macros.
9993
9994 * regex.c (analyse_first): Fix for multibyte characters in "case
9995 charset:" and "case categoryspec:".
9996
99972008-02-01 Andreas Schwab <schwab@suse.de>
9998
9999 * Makefile.in (LIBES): Move standard libraries to the end.
10000
100012008-02-01 Kenichi Handa <handa@m17n.org>
10002
10003 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10004 nonzero, don't shrink the buffer nextb.
10005
10006 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10007
10008 * coding.c (coding_alloc_by_making_gap): New arg offset.
10009 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10010 offset.
10011 (decode_coding_iso_2022): Update coding->safe_charsets.
10012 (decode_coding_gap): Temporarily set
10013 current_buffer->text->inhibit_shrinking to 1.
10014
100152008-02-01 Kenichi Handa <handa@m17n.org>
10016
10017 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10018 indexing into elements of s->cmp and s->char2b.
10019
100202008-02-01 Juanma Barranquero <lekktu@gmail.com>
10021
10022 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10023
100242008-02-01 Kenichi Handa <handa@m17n.org>
10025
10026 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10027 target_multibyte instead of multibyte.
10028 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10029 (bcmp_translate): Change the argument name from multibyte to
10030 target_multibyte.
10031
100322008-02-01 Kenichi Handa <handa@m17n.org>
10033
10034 These changes are to compile a regexp into a pattern that can be
10035 used both for multibyte and unibyte targets.
10036
10037 * Makefile.in (search.o): Depend on charset.h.
10038
10039 * character.c (multibyte_char_to_unibyte_safe): New function.
10040
10041 * search.c: Include "charset.h".
10042 (compile_pattern_1): Delete argument multibyte. Don't set
10043 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10044 (compile_pattern): Don't compare cp->buf.target_multibyte.
10045 Compare cp->buf.charset_unibyte.
10046 (compile_pattern): Set cp->buf.target_multibyte.
10047
10048 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10049
10050 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10051
10052 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10053 multibyte. Change callers.
10054 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10055 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10056 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10057 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10058 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10059 (regex_compile): Make the compiled pattern usable both for
10060 multibyte and unibyte targets.
10061 (analyse_first): Make the fastmap usable both for multibyte and
10062 unibyte targets.
10063 (TRANSLATE_VIA_MULTIBYTE): Delete.
10064 (re_match_2_internal): Pay attention to the case that the
10065 multibyteness of bufp and target may be different.
10066
100672008-02-01 Kenichi Handa <handa@m17n.org>
10068
10069 * xdisp.c (x_produce_glyphs): When a font is not found, make the
10070 empty box occupy at least one column width.
10071
100722008-02-01 Miles Bader <miles@gnu.org>
10073
10074 * Makefile.in: Remove redundant HAVE_XFT clause.
10075
100762008-02-01 Kenichi Handa <handa@m17n.org>
10077
10078 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
10079
100802008-02-01 Kenichi Handa <handa@m17n.org>
10081
10082 * fontset.c (Finternal_char_font): Fix for the case of POSITION
10083 being nil.
10084
100852008-02-01 Kenichi Handa <handa@m17n.org>
10086
10087 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
10088
100892008-02-01 Kenichi Handa <handa@m17n.org>
10090
10091 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10092
100932008-02-01 Kenichi Handa <handa@m17n.org>
10094
10095 * search.c (simple_search): Fix previous change.
10096
100972008-02-01 Kenichi Handa <handa@m17n.org>
10098
10099 * xftfont.c (ftfont_font_format): Extern declaration.
10100
10101 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10102
10103 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10104 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10105
10106 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10107 (ftfont_font_format): Fix previous change.
10108
10109 * font.h (Ffont_xlfd_name): EXFUN it.
10110
10111 * font.c (font_parse_xlfd): Fix the array size of `f'.
10112 (register_font_driver): Use EQ to compare driver->type.
10113
10114 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10115 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10116 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10117
101182008-02-01 Kenichi Handa <handa@m17n.org>
10119
10120 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10121 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10122
101232008-02-01 Kenichi Handa <handa@m17n.org>
10124
10125 * xfont.c (xfont_open): Set font->format.
10126
10127 * xftfont.c (xftfont_open): Set font->format.
10128
10129 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10130 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10131 (ftfont_open): Set font->format.
10132 (ftfont_font_format): New function.
10133
10134 * font.h (struct font): New member format.
10135
10136 * font.c (Qopentype): New variable.
10137 (syms_of_font): Defsym it.
10138 (Fquery_font): Change the format of the last element of the return
10139 value.
10140
101412008-02-01 Kenichi Handa <handa@m17n.org>
10142
10143 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10144 last resort.
10145
101462008-02-01 Kenichi Handa <handa@m17n.org>
10147
10148 * coding.c (detect_coding_charset): Fix detection of multi-byte
10149 charset.
10150
101512008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10152
10153 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10154
101552008-02-01 Kenichi Handa <handa@m17n.org>
10156
10157 * xdisp.c (get_next_display_element): Set it->face_id for the
10158 first component of a composition.
10159 (x_produce_glyphs): Check if the font is changed or not for composition.
10160
101612008-02-01 Kenichi Handa <handa@m17n.org>
10162
10163 * fontset.c (Qlatin): New variable.
10164 (syms_of_fontset): Define it as a lisp symbol.
10165 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10166
101672008-02-01 Kenichi Handa <handa@m17n.org>
10168
10169 * font.c (font_unparse_fcname): Pay attention to the case that
10170 some of font property is a null string.
10171
101722008-02-01 Kenichi Handa <handa@m17n.org>
10173
10174 * term.c: Include "composite.h".
10175 (encode_terminal_code): Output all components of composition.
10176 Check the size of encode_terminal_src.
10177 (produce_glyphs): For composition, call produce_composite_glyph.
10178 (append_composite_glyph, produce_composite_glyph): New functions.
10179
10180 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10181 is not found, get font_info from the current ascii face.
10182
101832008-02-01 Kenichi Handa <handa@m17n.org>
10184
10185 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10186 buffer-file-name to Qnil before calling insert_from_buffer.
10187
10188 * font.c (font_unparse_fcname): Pay attention to the case that
10189 foundry is a null string.
10190
101912008-02-01 Kenichi Handa <handa@m17n.org>
10192
10193 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10194
10195 * font.c (Qunicode_sip): New variable.
10196 (syms_of_font): Declare it as a Lisp symbol.
10197
10198 * font.h (Qunicode_sip): Extern it.
10199
102002008-02-01 Kenichi Handa <handa@m17n.org>
10201
10202 * composite.c (get_composition_id): Pay attention to TAB component.
10203
10204 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10205 TAB. Adjust for the change of s->char2b which always points to
10206 the first element of allocated memory.
10207
10208 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10209
10210 * xdisp.c (handle_composition_prop): Set it->c to the first
10211 non-TAB component.
10212 (fill_composite_glyph_string): Change argument.
10213 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10214 (x_produce_glyphs): Fix handling of left/right padding.
10215
102162008-02-01 Kenichi Handa <handa@m17n.org>
10217
10218 * coding.c (detect_coding_system): Fix for handling off
10219 inhibit_iso_escape_detection. Fix for the case that no coding
10220 system is defined for a specific coding category.
10221
102222008-02-01 Kenichi Handa <handa@m17n.org>
10223
10224 * font.c (font_matching_entity): Delete unused local var.
10225
10226 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10227 opening a font.
10228
10229 * fileio.c (Finsert_file_contents): On recovering a file, assume
10230 Unix-like eol.
10231 (choose_write_coding_system): On auto-saving a file, force
10232 Unix-like eol.
10233
10234 * coding.c (setup_coding_system): Fix setting of
10235 coding->common_flags based on eol_type.
10236 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10237 inherit from it.
10238
102392008-02-01 Kenichi Handa <handa@m17n.org>
10240
10241 * alloc.c (NSTATICS): Increas to 0x600.
10242
102432008-02-01 Kenichi Handa <handa@m17n.org>
10244
10245 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10246 (ftfont_list): Don't check :name property.
10247 (ftfont_match): New function.
10248 (ftfont_pattern_entity): If the pattern doesn't contain
10249 FC_SPACING, don't assume FC_MONO.
10250
10251 * font.h (struct font_driver): New member `match'.
10252 (font_update_drivers): Adjust prototype.
10253
10254 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10255 property of FONT.
10256 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10257 them unconditionally.
10258 (font_matching_entity): New function.
10259 (font_open_by_name): Try font_matching_entity if exact match is
10260 not found.
10261 (font_update_drivers): Delete the arg FONT. Return a list of
10262 actually used backends. Don't free faces, font caches here.
10263 Don't store data in frame parameters. Don't call x_set_font.
10264 (Ffont_spec): Store :name property as is.
10265 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10266 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10267 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10268 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10269 Call font->driver->otf_gsub instead of font_otf_gsub.
10270
10271 * frame.c (x_set_font_backend): Do more works that were done in
10272 font_update_drivers before.
10273
10274 * xfont.c (xfont_match): New function.
10275 (xfont_driver): Set xfont_driver.match to xfont_match.
10276 (xfont_draw): Set font in GC if necessary.
10277
10278 * ftxfont.c (ftxfont_match): New function.
10279 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10280
10281 * xftfont.c (xftfont_match): New function.
10282 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
10283
102842008-02-01 Kenichi Handa <handa@m17n.org>
10285
10286 * font.h (struct font): New member scalable.
10287 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
10288 (font_otf_gsub): Adjust prototype.
10289
10290 * font.c (font_otf_capability): Fix handling of the default langsys.
10291 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
10292 Check the contents of SPEC.
10293 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
10294 (check_gstring): New function.
10295 (REPLACEMENT_CHARACTER): New macro.
10296 (font_otf_gsub): New arg alternate_subst. Be sure to set all
10297 glyph codes of GSTRING.
10298 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
10299 (font_prepare_composition): Set cmp->glyph_len.
10300 (font_open_entity): Set font->scalable.
10301 (Ffont_get): Handle :otf property.
10302 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
10303 functions.
10304 (Fquery_font): Use font->font.full_name.
10305 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
10306 Sfont_otf_alternates.
10307
10308 * ftfont.c (ftfont_open): Set font->font.full_name and
10309 font->font.name properly. Fix calculation of font->font.height
10310 and font->min_width.
10311
10312 * ftxfont.c (ftxfont_create_gcs): New function.
10313 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
10314 (ftxfont_draw_backgrond): Fix filling region.
10315 (ftxfont_default_fid): New function.
10316 (ftxfont_open): Set xfont->fid to the return value of
10317 ftxfont_default_fid.
10318 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
10319 (ftxfont_done_face): Free only GCs that are created by
10320 ftxfont_create_gcs.
10321 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
10322
10323 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
10324 Clip to src->width, etc (not src->clip_XXX).
10325
10326 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
10327 FontBackend frame parameter.
10328
103292008-02-01 Kenichi Handa <handa@m17n.org>
10330
10331 * font.h (struct font_driver_list): New member `on'.
10332 (Fclear_font_cache): EXFUN it.
10333 (font_update_drivers): Extern it.
10334
10335 * font.c (font_unparse_fcname): Fix typo (swidth->width).
10336 (font_list_entities): Check driver_list->on.
10337 (register_font_driver): Initalize `on' member to 0.
10338 (font_update_drivers): New function.
10339 (Fclear_font_cache): Check driver_list->on.
10340
10341 * frame.h (Qfont_backend): Extern it.
10342 (x_set_font_backend): Extern it.
10343
10344 * frame.c (Qfont_backend): New variable.
10345 (frame_parms): New element for font-backend.
10346 (x_set_font_backend): New function.
10347
10348 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
10349 FontBackend frame parameter.
10350 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
10351 x_set_font_backend.
10352
10353 * xfont.c (xfont_list): Don't try listing by :name property if the
10354 name is not for XLFD.
10355
103562008-02-01 Kenichi Handa <handa@m17n.org>
10357
10358 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
10359 (LGLYPH_SET_TO): New macros.
10360 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
10361 element of G is vector or not.
10362 (font_at): Extern it.
10363
10364 * font.c: Include window.h.
10365 (font_lispy_object): New function.
10366 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
10367 end of valid glyph.
10368 (font_close_object): Fix getting (struct font *).
10369 (font_at): New function.
10370 (Ffont_get): If FONT is a font-object, get entity from it.
10371 (Ffont_make_gstring): Initialize elements of glyphs with nil.
10372 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
10373 range check.
10374 (Ffont_at): New function.
10375 (syms_of_font): Defsubr Sfont_at.
10376
10377 * xdisp.c (it_props): Move the entry for Qauto_composed to just
10378 before the entry for Qcomposition.
10379 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
10380 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
10381 the font in gstring.
10382 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
10383 LGLYPH_FORM (g) to detect the end of valid glyph.
10384 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
10385 we are composing with gstring.
10386
10387 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
10388 Check if adjustment is vector or not.
10389
10390 * Makefile.in (font.o): Make it depends on window.h.
10391
103922008-02-01 Kenichi Handa <handa@m17n.org>
10393
10394 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
10395 adjustment is vector or not.
10396
103972008-02-01 Miles Bader <miles@gnu.org>
10398
10399 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
10400
104012008-02-01 Kenichi Handa <handa@m17n.org>
10402
10403 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
10404 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
10405 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
10406
10407 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
10408 (DEVICE_DELTA): Fix typo.
10409 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
10410 LGLYPH format.
10411
10412 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10413 the change of LGLYPH format.
10414
104152008-02-01 Kenichi Handa <handa@m17n.org>
10416
10417 * ftfont.c (ftfont_list): Fix typo.
10418 (ftfont_build_basic_charsets): Don't include letters with diacritics.
10419
104202008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10421
10422 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
10423
10424 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
10425 xftface_info is non-NULL.
10426
104272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10428
10429 * ftfont.c (ftfont_list): Move misplaced #endif.
10430
104312008-02-01 Kenichi Handa <handa@m17n.org>
10432
10433 * ftfont.c (ftfont_list): Pay attention to the case that
10434 FC_CAPABILITY is not defined.
10435
104362008-02-01 Kenichi Handa <handa@m17n.org>
10437
10438 * xftfont.c (xftfont_open): Set charset related members to -1.
10439
10440 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
10441 QCname.
10442 (ftfont_open): Set charset related members to -1.
10443
10444 * fontset.c (Votf_script_alist): New variable.
10445 (syms_of_fontset): Initialize it.
10446 (fontset_font): Delete unused variable.
10447
10448 * fontset.h (Votf_script_alist): Extern it.
10449
10450 * font.c (font_find_for_lface): Optimize code.
10451
10452 * font.h (font_close_object, font_merge_old_spec): Extern them.
10453
104542008-02-01 Kenichi Handa <handa@m17n.org>
10455
10456 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
10457 (syms_of_font): Initialize them.
10458 (font_pixel_size): Allow float value in dpi.
10459 (font_prop_validate_type): Delete.
10460 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
10461 Change caller.
10462 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
10463 (font_prop_validate_extra): Delete.
10464 (font_prop_validate_spacing): New function.
10465 (font_property_table): Add elements for all known properties.
10466 (get_font_prop_index): Rename from check_font_prop_name. New
10467 argument FROM. Change caller.
10468 (font_prop_validate): Validate all known properties.
10469 (font_put_extra): Delete argument force. Change caller.
10470 (font_expand_wildcards): Make it static. Fix the way of shrinking
10471 the possible range.
10472 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
10473 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
10474 Change caller.
10475 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
10476 (font_parse_fcname): Delete argument merge. Fix parsing of point
10477 size. Don't validate properties values here. Change caller.
10478 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
10479 (font_open_by_name): Delete unused variable.
10480 (Ffont_spec): Likewise. Validate property values.
10481 (Ffont_match_p): New function.
10482
10483 * font.h (QCscalable): Extern it.
10484 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
10485
10486 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
10487
10488 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
10489 (xfont_list_pattern): New function.
10490 (xfont_list): Use xfont_list_pattern.
10491
104922008-02-01 Kenichi Handa <handa@m17n.org>
10493
10494 * font.h (Flist_fonts): EXFUN it.
10495
104962008-02-01 Jason Rumney <jasonr@gnu.org>
10497
10498 * w32term.c (w32_initialize): Add back smoothing_type and
10499 smoothing_enabled definitions.
10500
105012008-02-01 Kenichi Handa <handa@m17n.org>
10502
10503 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
10504 s->face->font on determining underline position.
10505
105062008-02-01 Kenichi Handa <handa@m17n.org>
10507
10508 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
10509 (font_has_char): Accept font-object too.
10510 (font_find_for_lface): Try at first with a size specified in face.
10511
105122008-02-01 Kenichi Handa <handa@m17n.org>
10513
10514 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
10515 font_open_by_name.
10516
105172008-02-01 Kenichi Handa <handa@m17n.org>
10518
10519 * font.h (QCspacing, QCdpi): Extern them.
10520 (enum font_spacing): New enum.
10521 (FONT_PIXEL_SIZE_QUANTUM): New macro.
10522
10523 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
10524 (QCspacing, QCdpi): New variables.
10525 (syms_of_font): Initialize them.
10526 (font_pixel_size): New function.
10527 (font_put_extra): New function.
10528 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
10529 in FONT_EXTRA.
10530 (font_parse_fcname): Handle enumerated values (e.g. bold).
10531 Fix handling font size. Add QCname property that contains only
10532 unknown properties.
10533 (font_score): Change argument. Change caller. Pay attention to
10534 FONT_PIXEL_SIZE_QUANTUM.
10535 (font_sort_entites, font_list_entities, font_find_for_lface)
10536 (font_open_for_lface, font_open_by_name): Fix handling of font size.
10537 (Ffont_spec): Add QCname property that contains only unknown properties.
10538
10539 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
10540 include weight in listing pattern, instead check weight of each
10541 listed font. Don't include scalable in pattern. Pay attention to
10542 FONT_PIXEL_SIZE_QUANTUM.
10543
105442008-02-01 Kenichi Handa <handa@m17n.org>
10545
10546 * font.c (font_parse_fcname): Fix parsing of point-size.
10547 (font_unparse_fcname): Produce symbolic names for style properties.
10548 (font_list_entities): Handle float size correctly.
10549 (font_open_by_name): Prefer `normal' property values if the name
10550 doesn't specify them.
10551
10552 * fontset.c (Finternal_char_font): Use font_get_name, not
10553 Ffont_xlfd_name.
10554
10555 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
10556 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
10557 pattern. Don't force scalable.
10558
10559 * xftfont.c (xftfont_open): For generating a name, start from
10560 96-byte buffer.
10561
105622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10563
10564 * frame.h (x_new_fontset2): Fix prototype.
10565
105662008-02-01 Kenichi Handa <handa@m17n.org>
10567
10568 * font.h (struct font_driver): Delete member parse_name.
10569 (font_match_p, font_get_spec, font_parse_fcname)
10570 (font_unparse_fcname): Extern them.
10571 (font_get_name): Adjust prototype.
10572
10573 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
10574 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
10575 (font_expand_wildcards): Fix handling ENCODING field. Avoid
10576 unnecessary checks for weight, slant, and swidth.
10577 (font_parse_fcname): New function.
10578 (font_unparse_fcname): New function.
10579 (font_parse_name): New function.
10580 (font_match_p): New function.
10581 (font_get_name): Change return value to Lisp string.
10582 (font_get_spec): New function.
10583 (Qunspecified, Qignore_defface): Don't extern them.
10584 (font_find_for_lface): Assume that LFACE is fully specified.
10585 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
10586 object, use it for FACE.
10587 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
10588 driver->parse_name.
10589 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
10590
10591 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
10592 prototype.
10593
10594 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
10595 argument F. Don't call Fnew_fontset. Instead, directly call
10596 make_fontset.
10597
10598 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
10599
10600 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
10601 of x_new_fontset2.
10602
10603 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
10604 (Qsans__serif): New variables.
10605 (ftfont_generic_family_list): New variable.
10606 (syms_of_ftfont): Initialize the above variables.
10607 (ftfont_pattern_entity): Delete argument NAME.
10608 (ftfont_list_generic_family): New function.
10609 (ftfont_parse_name): Delete this function.
10610 (ftfont_list): Try generic family only when FcFontList found no font.
10611 (ftfont_list_family): Fix args to FcObjectSetBuild.
10612
10613 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
10614 object in attrs[LFACE_FONT_INDEX].
10615 (set_lface_from_font_name): Cancel all changes for font-backend.
10616 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
10617 function.
10618 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
10619 font object in QCfont attribute.
10620 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
10621 (realize_default_face) [USE_FONT_BACKEND]: Call
10622 set_lface_from_font_and_fontset.
10623
10624 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
10625 "fixed", and signal error here if no suitable font was found.
10626
10627 * xfont.c (xfont_parse_name): Delete this function.
10628
10629 * xftfont.c (xftfont_open): Change coding style of error
10630 handling. Generate fontconfig's fontname pattern.
10631
10632 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
10633 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
10634
10635 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
10636 Both args FONTSET and FONT_OBJECT must be existing ones.
10637
106382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10639
10640 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
10641
106422008-02-01 Kenichi Handa <handa@m17n.org>
10643
10644 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
10645
10646 * font.h (struct font): Fix typo.
10647
10648 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
10649 XLFD_XXX_INDEX.
10650 (enum xlfd_field_mask): New enum.
10651 (intern_font_field): Changed argument. Change caller. If digits
10652 are followed by non-digits, return a symbol.
10653 (font_expand_wildcards): New function.
10654 (font_parse_xlfd): Fix wildcard handling.
10655 (Ffont_spec): If :name is specified, reflect the info in the other
10656 properties.
10657
10658 * ftfont.c (ftfont_pattern_entity): Fix typo.
10659 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
10660 locale.
10661
106622008-02-01 Kenichi Handa <handa@m17n.org>
10663
10664 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
10665
10666 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
10667 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
10668 registry doesn't specify encoding part.
10669 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
10670 (font_open_by_name): At first try parsing the name.
10671 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
10672 as Lisp symbols.
10673
10674 * fontset.c (reorder_font_vector): Pay attention to the case that
10675 the 3rd element of font_def is nil.
10676 (fontset_font): For the default fontset, append one more fontset
10677 elements for a script-based font specification. Don't add script
10678 attribute on finding a font.
10679 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
10680 font name.
10681 (fontset_ascii_font): If a font can't be opened, return nil.
10682
10683 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
10684 (ftfont_pattern_entity): New function.
10685 (ftfont_get_cache): Assume that freetype_font_cache is already
10686 initialized.
10687 (ftfont_list): Handle the case that a file is specified in font
10688 name. Use ftfont_pattern_entity to generate entities.
10689 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
10690 (syms_of_ftfont): Initialize freetype_font_cache.
10691
10692 * xftfont.c (xftfont_open): Make the font name fontconfig's
10693 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
10694 (xftfont_close): Free font->font.name if not NULL.
10695
10696 * xfont.c (xfont_list): If script is specified for a font, return
10697 null_vector.
10698 (xfont_list_family): Declare argument type.
10699
10700 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
10701 name, set LFACE_FONT (lface) to nil.
10702
10703 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
10704 return Qnil.
10705
107062008-02-01 Kenichi Handa <handa@m17n.org>
10707
10708 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
10709 (standard_args): Add "-enable-font-backend".
10710
107112008-02-01 Kenichi Handa <handa@m17n.org>
10712
10713 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
10714 (struct xftdraw_list, xftdraw_list): Delete them.
10715 (register_xftdraw, check_xftdraw): Delete them.
10716 (xftfont_prepare_face): Don't call register_xftdraw.
10717 (xftfont_done_face): Don't call check_xftdraw.
10718 (xftfont_draw): Get background color only when with_background is
10719 nonzero.
10720
10721 * xfont.c (xfont_encode_char): Fix calculation of char2b.
10722
107232008-02-01 Kenichi Handa <handa@m17n.org>
10724
10725 These changes are for the new font handling codes.
10726
10727 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
10728 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
10729 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
10730 (FONTSRC, FONTOBJ): New variables.
10731 (obj): Add $(FONTOBJ).
10732 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
10733 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
10734 @LIBOTF_LIBS@.
10735 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
10736 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
10737
10738 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
10739
10740 * character.h (Vscript_representative_chars): Extern it.
10741
10742 * character.c (Vscript_representative_chars): New variable.
10743 (syms_of_character): Declare it as a Lisp variable.
10744
10745 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
10746 enable_font_backend is nonzero, accept the composition method
10747 COMPOSITION_WITH_GLYPH_STRING.
10748
10749 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
10750 enumeration COMPOSITION_WITH_GLYPH_STRING.
10751
10752 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
10753 members clip_x, clip_y, clip_width, and clip_height.
10754 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
10755
10756 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
10757 --enable-font-backend. Call syms_of_font.
10758
10759 * fns.c (assoc_no_quit): New function.
10760
10761 * fontset.h (FONT_INFO_FROM_FACE): New macro.
10762 (face_for_font, new_fontset_from_font)
10763 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
10764
10765 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
10766 (fontset_font, fontset_ascii, face_for_char)
10767 (make_fontset_for_ascii_face, Ffont_info)
10768 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
10769 is nonzero, use font-backend mechanism.
10770 (find_font_encoding): Make it non-static.
10771 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
10772 New functions.
10773
10774 * frame.h (struct frame): New members resx and resy.
10775 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
10776 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
10777
10778 * frame.c [USE_FONT_BACKEND]: Include "font.h".
10779 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
10780
10781 * lisp.h (assoc_no_quit): Extern it.
10782
10783 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
10784 Through out the file, use FONT_INFO_FROM_FACE instead of
10785 FONT_INFO_FROM_ID, use get_per_char_metric instead of
10786 rif->per_char_metric.
10787 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
10788 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
10789 (get_glyph_face_and_encoding, fill_composite_glyph_string)
10790 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
10791 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
10792 nonzero, use font-backend mechanism.
10793 (get_per_char_metric): New function.
10794
10795 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
10796 (set_lface_from_font_name)
10797 (set_font_frame_param, free_realized_face)
10798 (prepare_face_for_display, clear_face_gcs)
10799 (Finternal_set_font_selection_order, realize_x_face)
10800 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
10801 font-backend mechanism.
10802 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
10803 (load_face_font) [USE_FONT_BACKEND]: Abort.
10804 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
10805 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
10806
10807 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
10808 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
10809 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
10810 nonzero, register all available font drivers. Call
10811 x_default_font_parameter for deciding a font.
10812 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
10813
10814 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
10815 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
10816 (x_set_glyph_string_clipping_exactly)
10817 (x_compute_glyph_string_overhangs)
10818 (x_draw_glyph_string_foreground)
10819 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
10820 (x_free_frame_resources) [USE_FONT_BACKEND]: If
10821 enable_font_backend is nonzero, use font-backend mechanism.
10822 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
10823
108242008-02-01 Kenichi Handa <handa@m17n.org>
10825
10826 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
10827 system_eol_type.
10828 (syms_of_coding): Initialize system_eol_type.
10829
10830 * process.c (Fset_process_coding_system): Inherit system's eol
10831 format if necessary.
10832
108332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10834
10835 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
10836
108372008-02-01 Kenichi Handa <handa@m17n.org>
10838
10839 * coding.c (decode_eol): Pay attention to buffer relocation in
10840 del_range_2.
10841 (decode_coding): Call decode_eol before restoring undo_list.
10842
108432008-02-01 Kenichi Handa <handa@m17n.org>
10844
10845 * charset.c (Fdefine_charset_internal): Fix setting of
10846 emacs_mule_bytes.
10847
108482008-02-01 Kenichi Handa <handa@m17n.org>
10849
10850 * keyboard.c (read_char): Check if C is a character or not before
10851 looking up Vkeyboard_translate_table.
10852
108532008-02-01 Kenichi Handa <handa@m17n.org>
10854
10855 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
10856 condition to terminate the loop.
10857
108582008-02-01 Kenichi Handa <handa@m17n.org>
10859
10860 * coding.c (produce_composition): Compare charbuf[i] instead of
10861 args[i] against 0.
10862 (Fterminal_coding_system): Use EQ to compare Lisp objects.
10863
108642008-02-01 Kenichi Handa <handa@m17n.org>
10865
10866 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
10867 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
10868 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
10869 detect_coding.
10870 (emacs_mule_char): Handle old style (Emacs 20) component character
10871 of a composition.
10872 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
10873 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
10874 composition rule.
10875 (decode_coding_emacs_mule): Handle invalid bytes correctly.
10876
108772008-02-01 Kenichi Handa <handa@m17n.org>
10878
10879 * coding.c (encode_coding_ccl): Allocate destination dynamically
10880 when necessary.
10881
108822008-02-01 Kenichi Handa <handa@m17n.org>
10883
10884 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
10885 the loop. When quitted, show a proper error message.
10886
108872008-02-01 Kenichi Handa <handa@m17n.org>
10888
10889 * xterm.c (x_set_glyph_string_clipping_exactly): Set
10890 src->clip_head and src->clip_tail temporarily instead of src->hl.
10891
10892 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
10893 character sequence.
10894 (Fccl_execute_on_string): Use ASET, not XSET.
10895
108962008-02-01 Kenichi Handa <handa@m17n.org>
10897
10898 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
10899
109002008-02-01 Kenichi Handa <handa@m17n.org>
10901
10902 * coding.c (decode_coding): Fix the condition of terminating the
10903 decoding loop.
10904
109052008-02-01 Kenichi Handa <handa@m17n.org>
10906
10907 * data.c (Faset): On setting a character bigger than 255 in a
10908 unibyte string, signal an error instead of make the string multibyte.
10909
109102008-02-01 Kenichi Handa <handa@m17n.org>
10911
10912 * charset.c (map_charset_chars): Fix for ascii-compatible charset
10913 made by a mapping table.
10914
109152008-02-01 Kenichi Handa <handa@m17n.org>
10916
10917 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
10918 not.
10919 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
10920 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
10921
10922 * xterm.c (x_draw_composite_glyph_string_foreground): Check
10923 s->face is NULL or not.
10924
109252008-02-01 Kenichi Handa <handa@m17n.org>
10926
10927 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
10928 (x_draw_glyph_string): Fix drawing of right_overhang and
10929 left_overhang around/on cursor.
10930
10931 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
10932
109332008-02-01 Kenichi Handa <handa@m17n.org>
10934
10935 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
10936
109372008-02-01 Kenichi Handa <handa@m17n.org>
10938
10939 * coding.c (Fdefine_coding_system_internal)
10940 (Fdefine_coding_system_alias): Avoid a duplicated element in
10941 Vcoding_system_alist.
10942
109432008-02-01 Kenichi Handa <handa@m17n.org>
10944
10945 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
10946
10947 * coding.c (Qcoding_system_define_form): New variable.
10948 (syms_of_coding): Intern and staticpro it.
10949 (Fcoding_system_p): Check Qcoding_system_define_form.
10950 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
10951
10952 * coding.h (CODING_SYSTEM_P): If ID is not available, call
10953 Fcoding_system_p.
10954 (CHECK_CODING_SYSTEM): If ID is not available, call
10955 Fcheck_coding_system.
10956 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
10957 Try also Fcheck_coding_system.
10958
109592008-02-01 Kenichi Handa <handa@m17n.org>
10960
10961 * coding.c (code_conversion_restore): GCPRO arg.
10962
109632008-02-01 Kenichi Handa <handa@m17n.org>
10964
10965 * character.c (lisp_string_width): Check multibyteness of STRING.
10966
109672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10968
10969 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
10970 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
10971 (decode_mac_font_name): Use decode_coding_c_string instead of
10972 decode_coding.
10973 (x_load_font): Initialize fontp->fontset to -1. Set
10974 fontp->encoding_type.
10975
109762008-02-01 Kenichi Handa <handa@m17n.org>
10977
10978 * search.c (search_buffer): Give up BM search on case-fold-search
10979 if one of a target character has a case-equivalence of different
10980 byte length even if that target charcter is an ASCII.
10981 (simple_search): Fix calculation of byte length of matched text.
10982 (boyer_moore): Fix handling of case-equivalent multibyte characters.
10983
109842008-02-01 Kenichi Handa <handa@m17n.org>
10985
10986 * coding.c (decode_coding): Fix handling of invalid bytes.
10987
109882008-02-01 Kenichi Handa <handa@m17n.org>
10989
10990 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
10991 Unicode characters.
10992
109932008-02-01 Kenichi Handa <handa@m17n.org>
10994
10995 * coding.c (encode_coding_object): If a pre-write-conversion
10996 function makes a new buffer, kill it.
10997
109982008-02-01 Kenichi Handa <handa@m17n.org>
10999
11000 * coding.c (QCascii_compatible_p): New variable.
11001 (syms_of_coding): Initialize it.
11002 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11003 calling string_char.
11004 (record_conversion_result): Add `default:' case.
11005 (coding_charset_list): Delete unused variable `coding_type'.
11006 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11007 property in the plist of the coding system.
11008 (Fcoding_system_put): Check QCascii_compatible_p.
11009
110102008-02-01 Miles Bader <miles@gnu.org>
11011
11012 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11013 removed calculation of frame `f', as it's now used.
11014
110152008-02-01 Kenichi Handa <handa@m17n.org>
11016
11017 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11018 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11019 (UNIDATA): New variable.
11020 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11021 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11022 $(RUN_TEMACS) unconditionally.
11023
110242008-02-01 Kenichi Handa <handa@m17n.org>
11025
11026 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11027 (admindir): New variable.
11028 ($(lispsource)international/charprop.el): New target.
11029
110302008-02-01 Miles Bader <miles@gnu.org>
11031
11032 * character.c (chars-in-region): Remove obsolete function.
11033 (syms_of_character): Remove its initialization.
11034
110352008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11036
11037 * w32select.c (validate_coding_system)
11038 (setup_windows_coding_system): New functions.
11039 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11040 setup_windows_coding_system.
11041 (setup_config, Fw32_get_clipboard_data): Use
11042 validate_coding_system.
11043 (Fx_selection_exists): Move call to setup_config to a place
11044 where signals are allowed.
11045
11046 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11047 (Fcheck_coding_system): Add declarations.
11048
110492008-02-01 Kenichi Handa <handa@m17n.org>
11050
11051 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11052
110532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11054
11055 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11056 string as the second argument for x_new_fontset.
11057
110582008-02-01 Kenichi Handa <handa@m17n.org>
11059
11060 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
11061 (encode_coding_object): Use safe_call instead of call2.
11062
110632008-02-01 Kenichi Handa <handa@m17n.org>
11064
11065 * fontset.c (Fset_fontset_font): Check family element of a given vector.
11066
11067 * Makefile.in (lisp): Include charprop.el.
11068
110692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11070
11071 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
11072 Not sure if it's unnecessary.
11073
110742008-02-01 Steven Tamm <steventamm@mac.com>
11075
11076 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
11077 some possibly unnecessary fontset checking code that crashed
11078 when creating a new frame.
11079
110802008-02-01 Kenichi Handa <handa@m17n.org>
11081
11082 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
11083 lookup_face.
11084
11085 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
11086
11087 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
11088
110892008-02-01 Kenichi Handa <handa@m17n.org>
11090
11091 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11092 (coding_charset_list): New function.
11093
11094 * coding.h (coding_charset_list): Extern it.
11095
110962008-02-01 Kenichi Handa <handa@m17n.org>
11097
11098 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11099 concatenation of family and registry.
11100
111012008-02-01 Kenichi Handa <handa@m17n.org>
11102
11103 * character.h (BYTE8_STRING): Fix typo.
11104
11105 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11106 string to multibyte (sync to HEAD).
11107
11108 * casefiddle.c (casify_region): Handle changes in byte-length
11109 using replace_range_2 (sync to HEAD).
11110
111112008-02-01 Andreas Schwab <schwab@suse.de>
11112
11113 * chartab.c (map_char_table): GCPRO table and arg.
11114
111152008-02-01 Kenichi Handa <handa@m17n.org>
11116
11117 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11118 already at limit.
11119
111202008-02-01 Kenichi Handa <handa@m17n.org>
11121
11122 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11123 instead of fast_c_string_match_ignore_case.
11124 (find_font_encoding): Change argument to Lisp_Object. Use
11125 fast_string_match_ignore_case instead of
11126 fast_c_string_match_ignore_case. Change caller.
11127
111282008-02-01 Kenichi Handa <handa@m17n.org>
11129
11130 * xdisp.c (get_next_display_element): In unibyte case, decide to
11131 display in octal form by checking a character by
11132 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11133
11134 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11135
11136 * character.c (unibyte_has_multibyte_table): New variable.
11137
11138 * character.h (unibyte_has_multibyte_table): Extern it.
11139 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11140
111412008-02-01 Kenichi Handa <handa@m17n.org>
11142
11143 * coding.c (encode_coding_iso_2022): Fix handling of charset
11144 annotation.
11145
111462008-02-01 Kenichi Handa <handa@m17n.org>
11147
11148 * coding.c (setup_coding_system): If coding_system is nil, use
11149 Qundecided.
11150 (Fterminal_coding_system): Return nil if terminal coding system is
11151 `undecided'.
11152 (syms_of_coding): Define coding-system `undecided' here. Setup
11153 terminal_coding as `undecided'.
11154
111552008-02-01 Kenichi Handa <handa@m17n.org>
11156
11157 * xdisp.c (message_dolog, set_message_1): Call
11158 unibyte_char_to_multibyte with arg type int.
11159
11160 * lread.c (read1): Fix reading of a char-table.
11161
11162 * print.c (print_object): Include sub char-table in circularities
11163 detection.
11164
111652008-02-01 Kenichi Handa <handa@m17n.org>
11166
11167 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11168 Append the found sequences in car of ARGS instead of prepending.
11169
111702008-02-01 Kenichi Handa <handa@m17n.org>
11171
11172 * fileio.c (report_file_error): Make a unibyte string from
11173 strerror (errorno).
11174 (Fsubstitute_in_file_name): Fix the arg to
11175 unibyte_char_to_multibyte. It is evaluated twice.
11176
111772008-02-01 Kenichi Handa <handa@m17n.org>
11178
11179 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11180
111812008-02-01 Kenichi Handa <handa@m17n.org>
11182
11183 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11184 BOM is not found.
11185 (detect_coding, detect_coding_system): Optimization for ISO-2022
11186 when no 8-bit data is found.
11187
111882008-02-01 Jason Rumney <jasonr@gnu.org>
11189
11190 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11191
111922008-02-01 Kenichi Handa <handa@m17n.org>
11193
11194 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11195 CHARS.
11196
111972008-02-01 Steven Tamm <steventamm@mac.com>
11198
11199 * macterm.c (mac_encode_char): Add charset argument and update
11200 to use encoding_type.
11201 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11202 switch to pure fontset.
11203 (decode_mac_font_name): Temporarily remove decoding.
11204 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11205 (x_load_font): Temporarily remove encoding.
11206
112072008-02-01 Kenichi Handa <handa@m17n.org>
11208
11209 * xfaces.c (Fface_font): If frame is not on a window system,
11210 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11211 refer to face->font.
11212 (split_font_name_into_vector, build_font_name_from_vector)
11213 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11214 when HAVE_WINDOW_SYSTEM is defined.
11215
112162008-02-01 Kenichi Handa <handa@m17n.org>
11217
11218 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11219 (x_produce_glyphs): Fix setting of members of cmp in case
11220 cmp->glyph_len is zero.
11221
11222 * fontset.c (Fset_fontset_font): Fix docstring.
11223 (Ffontset_info): Make it backward compatible. New arg ALL.
11224
112252008-02-01 Kim F. Storm <storm@cua.dk>
11226
11227 * process.c (read_process_output): Grow decoding_buf when needed;
11228 this could cause a crash in allocate_string and compact_small_strings.
11229
112302008-02-01 Kenichi Handa <handa@m17n.org>
11231
11232 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11233
112342008-02-01 Kenichi Handa <handa@m17n.org>
11235
11236 * coding.c (setup_coding_system): Set coding->common_flags
11237 correctly for raw-text.
11238 (consume_chars): On encoding unibyte text by raw-text, don't check
11239 multibyte form.
11240 (encode_coding): On encoding by raw-text, never use translation tables.
11241
11242 * fileio.c (e_write): Short cut for the case of no encoding.
11243
112442008-02-01 Kenichi Handa <handa@m17n.org>
11245
11246 * coding.c (detect_coding, detect_coding_system): Delete unused
11247 variables.
11248
112492008-02-01 Kenichi Handa <handa@m17n.org>
11250
11251 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11252 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11253
112542008-02-01 Kenichi Handa <handa@m17n.org>
11255
11256 * coding.c (Ffind_coding_systems_region_internal): Include
11257 raw-text and no-conversion in the result.
11258
112592008-02-01 Kenichi Handa <handa@m17n.org>
11260
11261 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11262 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11263 FONT_DEF.
11264 (font_def_arg, add_arg, from_arg, to_arg): New args.
11265 (set_fontset_font): Change argument.
11266 (Fset_fontset_font): Fix for the case that TARGET is a script
11267 name and charset name.
11268 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11269
112702008-02-01 Kenichi Handa <handa@m17n.org>
11271
11272 * fontset.c (fontset_font): Rename from fontset_face. Change return
11273 value.
11274 (face_suitable_for_char_p, face_for_char): Adjust for the change
11275 of fontset_font.
11276 (make_fontset_for_ascii_face): Fix setting of the fontset element
11277 for ASCII.
11278 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11279 to get a font name.
11280 (Ffontset_info): Adjust for the change of fontset_font.
11281
11282 * coding.c (emacs_mule_char): Check invalid code more rigidly.
11283
11284 * character.h (LEADING_CODE_LATIN_1_MIN)
11285 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
11286
112872008-02-01 Kenichi Handa <handa@m17n.org>
11288
11289 * editfns.c (check_translation): New function.
11290 (Ftranslate_region_internal): Handle M:N mapping.
11291
112922008-02-01 Kenichi Handa <handa@m17n.org>
11293
11294 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
11295
112962008-02-01 Kenichi Handa <handa@m17n.org>
11297
11298 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
11299 goto invalid_code.
11300 (decode_coding_iso_2022): Fix handling of invalid designation.
11301
11302 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
11303 after calling code_conversion_save.
11304
113052008-02-01 Kenichi Handa <handa@m17n.org>
11306
11307 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
11308
11309 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
11310
11311 * fontset.c: Include "intervals.h".
11312 (fontset_face): Fix comparing of Lisp_Objects.
11313 (free_face_fontset, new_fontset_from_font_name): Fix
11314 Lisp_Object/int mixup.
11315
11316 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
11317
11318 * coding.c: Add many prototypes for static functions.
11319 (get_translation_table): Allow max_lookup to be NULL.
11320 (decode_coding, Ffind_coding_systems_region_internal)
11321 (Funencodable_char_position, Fcheck_coding_systems_region): Call
11322 get_translation_table with max_lookup NULL.
11323
113242008-02-01 Kenichi Handa <handa@m17n.org>
11325
11326 * coding.c (get_translation_table): Declare it as Lisp_Object.
11327 (LOOKUP_TRANSLATION_TABLE): New macro.
11328 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
11329 instead of CHAR_TABLE_REF.
11330
113312008-02-01 Kenichi Handa <handa@m17n.org>
11332
11333 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
11334 annotation data format.
11335 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
11336 Change arguments FROM and TO to single argument NCHARS. Change caller.
11337 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
11338 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11339 (decode_coding_ccl, decode_coding_charset): Pay attention to
11340 coding->charbuf_used.
11341 (get_translation): New function.
11342 (produce_chars): New arguments translation_table and last_block.
11343 Translate characters here. Return number of carryover chars.
11344 Change caller.
11345 (produce_composition): New argument pos. Change caller.
11346 Adjust for the change of annotation data format.
11347 (produce_charset, produce_annotation): Likewise.
11348 (decode_coding, encode_coding): Don't call translate_chars.
11349 (consume_chars): New arg translation_table. Change caller.
11350 (translate_chars): Delete.
11351 (syms_of_coding): Make translation-table's number of extra slots 2.
11352
113532008-02-01 Kenichi Handa <handa@m17n.org>
11354
11355 * search.c (simple_search): Fix setting this_pos_byte in backward
11356 search.
11357
11358 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
11359 byte sequence.
11360 (detect_coding_ccl): Fix setting of the variable valids.
11361
113622008-02-01 Kenichi Handa <handa@m17n.org>
11363
11364 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
11365
11366 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
11367
11368 * editfns.c (Ftranslate_region_internal): Rename from
11369 Ftranslate_region. Accept a char-table in TABLE.
11370 (syms_of_editfns): Defsubr Stranslate_region_internal.
11371
11372 * xfaces.c (set_lface_from_font_name): If a font is specified for
11373 a frame, generate a fontset from the font.
11374 (build_scalable_font_name): If the scalable font is requested for
11375 a specific size, don't change that size.
11376 (try_font_list): Try a scalable font also in the case that a
11377 pattern string is specified.
11378
113792008-02-01 Kenichi Handa <handa@m17n.org>
11380
11381 * xfaces.c (Fface_font): New optional arg CHARACTER.
11382
113832008-02-01 Kenichi Handa <handa@m17n.org>
11384
11385 * charset.h (CHARSET_OFFSET): New macro.
11386
113872008-02-01 Kenichi Handa <handa@m17n.org>
11388
11389 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
11390
11391 * fontset.c (fontset_face): Handle the case that repertory is a
11392 char-table.
11393 (find_font_encoding): Return nil for unknown encoding.
11394 (Fset_fontset_font): Ignore a font of unknown encoding.
11395
113962008-02-01 Kenichi Handa <handa@m17n.org>
11397
11398 * keymap.c (describe_vector): Handle default value of a char table.
11399
11400 * fontset.c (fontset_face): Handle fallback fonts correctly.
11401 (Ffontset_info): Return infomation about fallback fonts.
11402
114032008-02-01 Kenichi Handa <handa@m17n.org>
11404
11405 * fontset.c (FONTSET_DEFAULT): New macro.
11406 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
11407 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
11408 the case that it is nil.
11409 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
11410 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
11411
11412 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
11413 subset or superset.
11414
114152008-02-01 Kenichi Handa <handa@m17n.org>
11416
11417 * emacs.c (main): Call init_charset after syms_of_XXX.
11418
11419 * charset.c (Vcharset_map_directory): Delete.
11420 (Vcharset_map_path): New variable.
11421 (load_charset_map_from_file): Use Vcharset_map_path instead.
11422 (init_charset): Initialize Vcharset_map_path.
11423 (syms_of_charset): Delete declaration of "charset-map-directory",
11424 add declaration of "charset-map-path".
11425
114262008-02-01 Kenichi Handa <handa@m17n.org>
11427
11428 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
11429 ASCII only string.
11430
11431 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
11432
11433 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
11434 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
11435
114362008-02-01 Kenichi Handa <handa@m17n.org>
11437
11438 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
11439
11440 * coding.c (QCmnemonic, QCdefalut_char)
11441 (QCdecode_translation_table, QCencode_translation_table)
11442 (QCpost_read_conversion, QCpre_write_conversion): New variables.
11443 (get_translation_table): Return a list of translation tables if
11444 necessary.
11445 (decode_coding): Call get_translation_table with ENCODEP 0.
11446 (char_encodable_p): If translation_table is non-nil, always call
11447 translate_char.
11448 (Fdefine_coding_system_internal): Accept list of translation
11449 tables as :encode-translation-table and :decode-translation-table.
11450 (Fcoding_system_put): New function.
11451 (syms_of_coding): Declare new symbols. Defsubr
11452 Scoding_system_put.
11453 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
11454 typically JISX0212.
11455
11456 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
11457 when the charset is superset type.
11458
11459 * character.c (translate_char): Accept list of translation tables.
11460
114612008-02-01 Kenichi Handa <handa@m17n.org>
11462
11463 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
11464 (CODING_ATTR_TRANS_TBL): New macro.
11465
11466 * coding.c (get_translation_table): New function.
11467 (translate_chars): Fix the bug of skipping annotation data.
11468 (decode_coding, encode_coding): Utilize get_translation_table.
11469 (char_encodable_p, Funencodable_char_position): Translate char if
11470 necessary.
11471 (Ffind_coding_systems_region_internal)
11472 (Fcheck_coding_systems_region): Setup translation table for encode
11473 in a coding system attribute vector in advance.
11474 (Fdefine_coding_system_internal): Allow a symbol as translation
11475 table. For shift-jis type coding system, allow 4th charset.
11476
114772008-02-01 Kenichi Handa <handa@m17n.org>
11478
11479 * coding.c (decode_coding_sjis): Check the first byte rigidly.
11480
11481 * xdisp.c (get_next_display_element): Pass -1 as POS to
11482 FACE_FOR_CHAR if displaying a C-string.
11483
114842008-02-01 Kenichi Handa <handa@m17n.org>
11485
11486 * composite.c (get_composition_id): Handle xoff and yoff in a
11487 composition rule.
11488
11489 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
11490 (struct composition): New member lbearing and rbearing.
11491
11492 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
11493 (x_get_glyph_overhangs): Handle a composition glyph.
11494 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
11495
11496 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
11497 composition glyph.
11498
114992008-02-01 Kenichi Handa <handa@m17n.org>
11500
11501 * print.c: Include charset.h.
11502 (Vprint_charset_text_property): New variable.
11503 (Qdefault): Extern it.
11504 (PRINT_STRING_NON_CHARSET_FOUND)
11505 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
11506 (print_check_string_result): New variable.
11507 (print_check_string_charset_prop): New function.
11508 (print_prune_charset_plist): New variable.
11509 (print_prune_string_charset): New function.
11510 (print_object): Call print_prune_string_charset if
11511 Vprint_charset_text_property is not t.
11512 (print_interval): Print nothing if interval->plist is nil.
11513 (syms_of_print): Declare Vprint_charset_text_property as a lisp
11514 variable. Init and staticpro print_prune_charset_plist.
11515
115162008-02-01 Kenichi Handa <handa@m17n.org>
11517
11518 * fontset.c (new_fontset_from_font_name): Use the specified font
11519 for all characters in the new fontset.
11520
11521 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11522 OBJECT args.
11523
11524 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
11525 OBJECT args for composition too.
11526
11527 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11528 OBJECT args.
11529
115302008-02-01 Kenichi Handa <handa@m17n.org>
11531
11532 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
11533
11534 * fontset.c (reorder_font_vector): Adjust for the change of
11535 FONT_DEF format.
11536 (fontset_face): New arg id. Change caller.
11537 (face_for_char): New args pos and object.
11538 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
11539 (fs_query_fontset): Check NAME by Fassoc too.
11540 (Fset_fontset_font): Allow non-XLFD font name.
11541 (Ffontset_info): Adjust for the change of FONT_DEF format.
11542
11543 * fontset.h (face_for_char): Adjust prototype.
11544
11545 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
11546 (append_space, extend_face_to_end_of_line)
11547 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11548 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
11549
11550 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
11551 POS and OBJECT args.
11552
11553 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
11554 POS and OBJECT args.
11555
115562008-02-01 Jason Rumney <jasonr@gnu.org>
11557
11558 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
11559 of GlobalAlloc'ed memory.
11560
115612008-02-01 Kenichi Handa <handa@m17n.org>
11562
11563 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
11564
11565 * charset.h (charset_table_used): Delete extern.
11566
11567 * charset.c (charset_table_used): Make it static.
11568 (map_charset_chars): Fix args to c_function with.
11569
11570 * chartab.c (map_sub_char_table_for_charset): Fix args to
11571 c_function with.
11572
11573 * coding.h (enum coding_result_code): Delete
11574 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
11575
11576 * coding.c (Qinsufficient_source, Qinconsistent_eol)
11577 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
11578 (Vlast_code_conversion_error): New variables.
11579 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
11580 (ONE_MORE_BYTE): Record error if any instead of signaling an
11581 error. If non-ASCII multibyte char is found, return the negative
11582 value of the code. All callers changed to check it.
11583 (ONE_MORE_BYTE_NO_CHECK): Likewise.
11584 (record_conversion_result): New function. Change all codes setting
11585 coding->result to call this function.
11586 (detect_coding_utf_8, decode_coding_utf_8)
11587 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
11588 Don't use the local variable incomplete.
11589 (emacs_mule_char): Change the second arg to `const'.
11590 (decode_coding): Fix of flushing out unprocessed data.
11591 (make_conversion_work_buffer): Fix making of a work buffer.
11592 (decode_coding_object): Return coding->dst_object.
11593
11594 * fontset.c (set_fontset_font): Fix args.
11595
11596 * lisp.h (CHARACTERBITS): Define as 22.
11597
11598 * process.c (send_process): Be sure to set coding->src_multibyte.
11599
11600 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
11601
116022008-02-01 Kenichi Handa <handa@m17n.org>
11603
11604 * xdisp.c (handle_auto_composed_prop): Give limit to
11605 Fnext_single_char_property_change.
11606
116072008-02-01 Kenichi Handa <handa@m17n.org>
11608
11609 * composite.c (syms_of_composite): Don't make the composition hash
11610 table weak.
11611
11612 * fontset.c (Fset_fontset_font): Fix docstring.
11613
11614 * lisp.h (detect_coding_system): Adjust prototype.
11615
11616 * fileio.c (kill_workbuf_unwind): Delete this function.
11617 (Finsert_file_contents): Adjust the call of detect_coding_system.
11618 Get conversion_buffer by code_conversion_save. Use the macro
11619 CODING_MAY_REQUIRE_DECODING. After decoding, update
11620 coding_system.
11621
11622 * coding.h (make_conversion_work_buffer): Delete extern.
11623 (code_conversion_save): Extern it.
11624
11625 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
11626 (CODING_GET_INFO): Delete argument eol_type. Change callers.
11627 (decode_coding_utf_8): Don't do eol converion.
11628 (detect_coding_utf_16): Check coding->src_chars, not
11629 coding->src_bytes. Add heuristics for those that have no signature.
11630 (decode_coding_emacs_mule, decode_coding_iso_2022)
11631 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11632 Don't do eol converion.
11633 (adjust_coding_eol_type): Return a new coding system.
11634 (detect_coding): Don't detect eol. Fix for utf-16 detection.
11635 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
11636 each change.
11637 (decode_coding): Pay attention to undo_list. Do eol conversion for
11638 all types of coding-systems (if necessary).
11639 (Vcode_conversion_work_buf_list): Delete it.
11640 (Vcode_conversion_reused_workbuf): Rename from
11641 Vcode_conversion_reused_work_buf.
11642 (Vcode_conversion_workbuf_name): New variable.
11643 (reused_workbuf_in_use): New variable.
11644 (make_conversion_work_buffer): Delete the arg DEPTH.
11645 (code_conversion_restore): Change argument to cons.
11646 (code_conversion_save): Delete the argument BUFFER. Change callers.
11647 (detect_coding_system): New argument src_chars. Change callers.
11648 Fix for utf-16 detection.
11649 (init_coding_once): Don't use ISO_carriage_return.
11650 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
11651 reused_workbuf_in_use.
11652
116532008-02-01 Kenichi Handa <handa@m17n.org>
11654
11655 * keymap.c (store_in_keymap): Pay attention to the case that idx
11656 is a cons specifying a character range.
11657
116582008-02-01 Kenichi Handa <handa@m17n.org>
11659
11660 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
11661 HANDLED_RECOMPUTE_PROPS.
11662
11663 * coding.c (Fdefine_coding_system_internal): Fix checking of
11664 ascii compatibility.
11665
116662008-02-01 Kenichi Handa <handa@m17n.org>
11667
11668 * charset.c (find_charsets_in_text): Delete unused locale variable.
11669 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
11670
11671 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
11672 Resync charset_list to Vemacs_mule_charset_list.
11673
11674 * keymap.c (store_in_keymap): Pay attention to the case that idx
11675 is a cons specifying a character range.
11676
116772008-02-01 Kenichi Handa <handa@m17n.org>
11678
11679 * composite.c (update_compositions): Bind inhibit-read-only, etc
11680 to t before calling remove-list-of-text-properties.
11681
11682 * print.c (print_object): Always print ASCII chars as is.
11683
116842008-02-01 Kenichi Handa <handa@m17n.org>
11685
11686 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
11687
11688 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
11689 is a char table.
11690
116912008-02-01 Kenichi Handa <handa@m17n.org>
11692
11693 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
11694
116952008-02-01 Kenichi Handa <handa@m17n.org>
11696
11697 * xfaces.c (set_lface_from_font_name): Fix for the case that
11698 FONTNAME is not fontset name.
11699
117002008-02-01 Kenichi Handa <handa@m17n.org>
11701
11702 * fns.c (base64_encode_1): Fix previous change.
11703
117042008-02-01 Kenichi Handa <handa@m17n.org>
11705
11706 * fontset.c (set_fontset_font): New function.
11707 (Fset_fontset_font): If a font is specified for a charset, use
11708 map_charset_chars to store the font spec in a fontset.
11709
117102008-02-01 Kenichi Handa <handa@m17n.org>
11711
11712 * fontset.c (fontset_face): Create a fallback fontset on demand.
11713 (make_fontset): Don't create a fallback fontset here.
11714 (free_face_fontset): Free a fallback fontset (if any) too.
11715 (n_auto_fontsets): Delete this variable.
11716 (auto_fontset_alist): New variable.
11717 (new_fontset_from_font_name): Check auto_fontset_alist.
11718 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
11719 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
11720 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
11721 Defsubr Sfontset_list_all.
11722
117232008-02-01 Kenichi Handa <handa@m17n.org>
11724
11725 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11726
117272008-02-01 Kenichi Handa <handa@m17n.org>
11728
11729 * fontset.c (Fnew_fontset): Check NAME more rigidly.
11730
117312008-02-01 Kenichi Handa <handa@m17n.org>
11732
11733 * editfns.c (Fgoto_char): Fix docstring.
11734
117352008-02-01 Kenichi Handa <handa@m17n.org>
11736
11737 * insdel.c (insert_from_gap): Adjust intervals correctly.
11738
117392008-02-01 Jason Rumney <jasonr@gnu.org>
11740
11741 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
11742 (pfnGetFontUnicodeRanges): New dynamically loaded function.
11743 (w32_initialize): Try to load it.
11744 (x_get_font_repertory): Use it if available.
11745 (w32_encode_char): Add shortcut for unicode output.
11746
11747 * w32fns.c (w32_load_system_font): Default charset to -1.
11748 (x_to_w32_charset): Match all fonts for unicode.
11749 (w32_to_x_charset): New parameter matching. Don't return partial
11750 or wildcard charsets.
11751 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
11752 (w32_codepage_for_font): Return CP_UNICODE for unicode.
11753 (w32_to_x_font): Match charset to real charset.
11754 (enum_font_cb2): Always list unicode versions.
11755
11756 * makefile.w32-in (temacs): Increase EMHEAP.
11757
117582008-02-01 Jason Rumney <jasonr@gnu.org>
11759
11760 * w32term.c (w32_encode_char): New charset parameter.
11761 font_info.encoding becomes encoding_type.
11762 (x_get_font_repertory): New function. Warning: stub only!
11763 (x_new_font): Return quickly if font already set.
11764 (x_new_fontset): fontsetname parameter is Lisp_Object.
11765 Use new fs_query_fontset. Try new_fontset_from_font_name.
11766 Use fontset_name for return value.
11767
11768 * w32term.h: Declare x_get_font_repertory.
11769
11770 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
11771 place of find_charset_in_text. Use encode_coding_object in place
11772 of encode_coding.
11773 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
11774 decode_coding.
11775
11776 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
11777 of x_new_fontset.
11778 (w32_load_system_font): Initialize charset as unicode.
11779 font_info.encoding becomes encoding_type.
11780 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
11781 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
11782 (syms_of_w32fns): Set get_font_repertory_func.
11783
11784 * w32console.c: Include character.h. Use terminal_encode_buffer
11785 from term.c.
11786 (write_glyphs): Use new version of encode_terminal_code. Use
11787 encode_coding_object in place of encode_coding.
11788
11789 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
11790 encoding becomes encoding_type.
11791
11792 * term.c (terminal_encode_buffer): Make externally visible.
11793
11794 * makefile.w32-in: Add character.h dependancies.
11795 (character.o, chartab.o): New targets.
11796
117972008-02-01 Kenichi Handa <handa@m17n.org>
11798
11799 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
11800 CODING_ID_EOL_TYPE.
11801
118022008-02-01 Andreas Schwab <schwab@suse.de>
11803
11804 * coding.c (produce_chars): Revert last change.
11805
118062008-02-01 Kenichi Handa <handa@m17n.org>
11807
11808 * charset.h (charset_unicode): Extern it.
11809
11810 * charset.c (string_xstring_p): Check by (C >= 0x100).
11811 (find_charsets_in_text): Change format of the arc CHARSETS. New
11812 arg MULTIBYTE.
11813 (Ffind_charset_region, Ffind_charset_string): Adjust for the
11814 change of find_charsets_in_text.
11815 (Fsplit_char): Fix doc. Never return unknown.
11816
11817 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
11818
11819 * coding.c (Fdefine_coding_system_alias): Update
11820 Vcoding_system_list.
11821
11822 * fontset.c (load_font_get_repertory): Pay attention to the case
11823 that ENCODING of a font is specified by a char-table.
11824
11825 * xterm.c (x_get_font_repertory): Handle the case that the
11826 encoding of font is other than Unicode.
11827
118282008-02-01 Kenichi Handa <handa@m17n.org>
11829
11830 * term.c (encode_terminal_code): Don't handle glyph-table. Check
11831 if a character is encodable by the terminal coding system. If
11832 not, produces proper number of `?'s. Update
11833 terminal_encode_buffer and terminal_encode_buf_size if necessary.
11834 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
11835
118362008-02-01 Kenichi Handa <handa@m17n.org>
11837
11838 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
11839 variables.
11840 (encode_terminal_code): Change argument. Encode multiple
11841 characters at once. Store the result of encoding in
11842 terminal_encode_buffer.
11843 (write_glyphs, insert_glyphs): Adjust for the change of
11844 encode_terminal_code.
11845 (term_init): Initialize terminal_encode_buffer and
11846 terminal_encode_buf_size.
11847
11848 * coding.c (consume_chars): If coding->src_object is nil, don't
11849 check annotation.
11850
118512008-02-01 Kenichi Handa <handa@m17n.org>
11852
11853 * character.c (char_string): Use ASCII_CHAR_P instead of
11854 SINGLE_BYTE_CHAR_P.
11855
118562008-02-01 Kenichi Handa <handa@m17n.org>
11857
11858 * xdisp.c (handle_auto_composed_prop): Check if the last
11859 characters of auto-composed region is newly composed with the
11860 following characters.
11861 (handle_composition_prop): Fix checking of point being inside
11862 composition.
11863
118642008-02-01 Kenichi Handa <handa@m17n.org>
11865
11866 * fns.c (concat): Don't change multibyteness of the result by
11867 concatenating an 8-bit character.
11868
11869 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
11870 multibyteness of the result when newelt is an 8-bit character.
11871
118722008-02-01 Dave Love <fx@gnu.org>
11873
11874 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
11875 EMACS_INT.
11876
11877 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
11878
11879 * xfaces.c (face_numeric_value): Declare dim size_t.
11880 (Finternal_lisp_face_equal_p): Remove unused f.
11881
11882 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
11883 (MATRIX_ROW): Remove unused vars.
11884 (draw_glyphs, x_insert_glyphs, fast_find_position)
11885 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
11886 byte/char counts.
11887
11888 * regex.c (regex_compile): Remove unused var.
11889
11890 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11891
11892 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
11893 (Faccessible_keymaps, where_is_internal): Remove unused vars.
11894
11895 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
11896
11897 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
11898
11899 * fileio.c (Fwrite_region): Remove unused var.
11900
11901 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
11902 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
11903
11904 * composite.c (Fremove_list_of_text_properties): Declare.
11905
11906 * coding.c (inhibit_pre_post_conversion): Remove (unused).
11907 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
11908 (coding_inherit_eol_type): Remove unused attrs.
11909 (detect_coding): Cast arg of detect_eol.
11910
11911 * charset.c (syms_of_charset): Remove unused var p.
11912 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
11913 byte/char counts.
11914
11915 * casetab.c (set_case_table): Remove unused var.
11916
11917 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
11918 unused vars.
11919
119202008-02-01 Dave Love <fx@gnu.org>
11921
11922 * xterm.c (x_bitmap_mask): Declare.
11923
119242008-02-01 Dave Love <fx@gnu.org>
11925
11926 * xterm.c (x_term_init): Fix type error.
11927
11928 * lisp.h: Add Funibyte_char_to_multibyte.
11929
11930 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
11931 (Fset_coding_system_priority): Doc fix.
11932
11933 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
11934
11935 * indent.c (check_composition): Make start and end EMACS_INT.
11936
11937 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
11938
11939 * xdisp.c (handle_composition_prop, check_point_in_composition):
11940 Make buffer positions EMACS_INT.
11941
11942 * composite.c (find_composition, run_composition_function)
11943 (update_compositions, Ffind_composition_internal): Make buffer
11944 positions EMACS_INT.
11945
11946 * composite.h (find_composition, update_compositions): Make
11947 position args EMACS_INT.
11948
11949 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
11950
11951 * intervals.c (get_property_and_range):
11952 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
11953
11954 * unexalpha.c: Don't include varargs.h.
11955
119562008-02-01 Dave Love <fx@gnu.org>
11957
11958 * coding.h (ENCODE_UTF_8): New.
11959
11960 * Makefile.in (gtkutil.o): Depend on coding.h.
11961
11962 * coding.c (Fset_coding_system_priority): Doc fix.
11963
119642008-02-01 Kenichi Handa <handa@m17n.org>
11965
11966 * fileio.c (Finsert_file_contents): Call setup_coding_system in
11967 the case of auto saving.
11968
119692008-02-01 Andreas Schwab <schwab@suse.de>
11970
11971 * chartab.c (map_char_table, map_char_table_for_charset): Protect
11972 `range' from GC.
11973
119742008-02-01 Kenichi Handa <handa@m17n.org>
11975
11976 * coding.c (decode_coding_sjis): Check bytes more rigidly.
11977
119782008-02-01 Kenichi Handa <handa@m17n.org>
11979
11980 * fileio.c (choose_write_coding_system): Return a decided coding system.
11981 (Fwrite_region): Set Vlast_coding_system_used to the return value
11982 of choose_write_coding_system.
11983
119842008-02-01 Kenichi Handa <handa@m17n.org>
11985
11986 * charset.c (Fset_charset_priority): Pay attention to duplicated
11987 arguments.
11988
11989 * coding.c (QCcategory): New variable.
11990 (syms_of_coding): Defsym it. Set all elements of
11991 Vcoding_category_table and their symbol values.
11992 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
11993 coding-category-XXX, and coding-category-list.
11994 (Fdefine_coding_system_internal): Add category in the plist.
11995
119962008-02-01 Kenichi Handa <handa@m17n.org>
11997
11998 * callproc.c (Fcall_process): Handle carryover correctly.
11999
12000 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12001 (raw_text_coding_system): Check NILP (coding_system).
12002 (coding_inherit_eol_type): Check NILP (coding_system) and
12003 NILP (parent).
12004 (consume_chars): Fix for the case of raw-text.
12005
12006 * process.c (read_process_output): Handle carryover correctly.
12007
120082008-02-01 Dave Love <fx@gnu.org>
12009
12010 * regex.c (re_search_2): Fix last change.
12011
120122008-02-01 Kenichi Handa <handa@m17n.org>
12013
12014 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12015 target_multibyte. Even in a unibyte case, return a converted
12016 multibyte char.
12017 (GET_CHAR_AFTER): New macro.
12018 (PATFETCH): Translate via multibyte char.
12019 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12020 (SETUP_MULTIBYTE_RANGE): New macro.
12021 (regex_compile): Setup compiled code so that its multibyteness
12022 matches that of a target. Fix the handling of "[X-YZ]" using
12023 SETUP_MULTIBYTE_RANGE.
12024 (analyse_first) <charset>: For filling fastmap for all multibyte
12025 characters, don't check by BASE_LEADING_CODE_P.
12026 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12027 the same as RE_MULTIBYTE_P (bufp) now.
12028 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12029 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12030 (TRANSLATE_VIA_MULTIBYTE): New macro.
12031 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12032 It is the same as RE_MULTIBYTE_P (bufp) now.
12033 <exactn>: Translate via multibyte.
12034 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12035 translate it.
12036 <charset, charset_not>: Fetch a character by
12037 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12038 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12039 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12040 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12041 by GET_CHAR_AFTER.
12042 (bcmp_translate): Likewise.
12043
12044 * search.c (compile_pattern): Check the member target_multibyte,
12045 not the member multibyte of buf.
12046
12047 * lread.c (read1): While reading a string, set force_singlebyte
12048 and force_multibyte correctly.
12049
12050 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12051 up of unibyte_to_multibyte_table.
12052
120532008-02-01 Kenichi Handa <handa@m17n.org>
12054
12055 * coding.c (setup_coding_system): If coding has
12056 post-read-conversion or pre-write-conversion, set
12057 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12058 respectively.
12059 (decode_coding_gap): Run post-read-conversion if any.
12060
12061 * fileio.c (Finsert_file_contents): Even if we read into a
12062 unibyte buffer, check if we must decode the result or not.
12063
120642008-02-01 Kenichi Handa <handa@m17n.org>
12065
12066 * coding.c (make_conversion_work_buffer): Change the work buffer
12067 name to the same one as that of Emacs 21.
12068
120692008-02-01 Kenichi Handa <handa@m17n.org>
12070
12071 * coding.h (make_conversion_work_buffer): Adjust prototype.
12072 (code_conversion_restore): Don't extern it.
12073
12074 * coding.c (detected_mask): Delete unused variable.
12075 (decode_coding_iso_2022): Pay attention to the byte sequence of
12076 CTEXT extended segment, and retain those bytes as is.
12077 (decode_coding_ccl): Delete unused variable `valids'.
12078 (setup_coding_system): Delete unused variable `category'.
12079 (consume_chars): Delete unused variable `category'. Make it work
12080 for non-multibyte case.
12081 (make_conversion_work_buffer): Change argument.
12082 (saved_coding): Delete unused variable.
12083 (code_conversion_restore): Don't check saved_coding->destination.
12084 (code_conversion_save): New function.
12085 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
12086 instead of record_unwind_protect.
12087 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
12088 (detect_coding_system): Delete unused variable `mask'.
12089 (Fdefine_coding_system_internal): Delete unused variable id.
12090
12091 * fileio.c (kill_workbuf_unwind): New function.
12092 (Finsert_file_contents): On replacing, call
12093 make_conversion_work_buffer with correct args, and call
12094 record_unwind_protect with the first arg kill_workbuf_unwind.
12095
12096 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12097
120982008-02-01 Kenichi Handa <handa@m17n.org>
12099
12100 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12101 (fontset_add): Fix for the case that TO is less than TO1.
12102 (Ffontset_info): Don't use fallback fontset on checking the
12103 default fontset.
12104 (dump_fontset): New function for debugging.
12105
12106 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12107 coding_type is Qcharset.
12108
121092008-02-01 Kenichi Handa <handa@m17n.org>
12110
12111 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12112 (map_char_table): Don't inherit the value from the parent on
12113 initializing VAL. Adjust for the above change.
12114
121152008-02-01 Kenichi Handa <handa@m17n.org>
12116
12117 * coding.c (Qsignature, Qendian): Delete these variables.
12118 (syms_of_coding): Don't initialize them.
12119 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12120 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12121 detect_info->found.
12122 (decode_coding_utf_16): Don't detect BOM here.
12123 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12124 is NOT utf_16_without_bom.
12125 (setup_coding_system): For a coding system of type utf-16, check
12126 if the attribute :endian is Qbig or not (not nil or not), and set
12127 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12128 (detect_coding): If coding type is utf-16 and BOM detection is
12129 required, detect it.
12130 (Fdefine_coding_system_internal): For a coding system of type
12131 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12132
121332008-02-01 Kenichi Handa <handa@m17n.org>
12134
12135 * coding.c (coding_set_source): Fix for the case that the current
12136 buffer is different from coding->src_object.
12137 (decode_coding_object): Don't use the conversion work buffer if
12138 DST_OBJECT is a buffer.
12139
121402008-02-01 Dave Love <fx@gnu.org>
12141
12142 * lread.c (read_emacs_mule_char) [len==2]: Index
12143 emacs_mule_charset correctly.
12144
121452008-02-01 Dave Love <fx@gnu.org>
12146
12147 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12148 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12149 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12150 treated specially.)
12151 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12152 (detected_mask): Remove Big5 bits.
12153
121542008-02-01 Kenichi Handa <handa@m17n.org>
12155
12156 The following changes are to make the font rescaling facility
12157 compatible with Emacs 21.
12158
12159 * xfaces.c (Vface_font_rescale_alist): Rename from
12160 Vface_resizing_fonts.
12161 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12162 (font_rescale_ratio): Rename from font_resizing_ratio.
12163 (split_font_name): Set font->rescale_ratio.
12164 (better_font_p): Pay attention to font->rescale_ratio.
12165 (build_scalable_font_name): Likewise. Change RESX, and RESY
12166 fields.
12167 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12168
121692008-02-01 Kenichi Handa <handa@m17n.org>
12170
12171 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12172 (Qutf_16_le): Remove these variables.
12173 (syms_of_coding): Don't DEFSYM them.
12174 (decode_coding_utf_16): Fix handling of BOM.
12175 (encode_coding_utf_16): Fix handling of BOM.
12176
121772008-02-01 Kenichi Handa <handa@m17n.org>
12178
12179 * fileio.c (Finsert_file_contents): On replacing, before decoding
12180 the file into the work buffer, set point of the work buffer to the end.
12181
121822008-02-01 Dave Love <fx@gnu.org>
12183
12184 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12185
121862008-02-01 Dave Love <fx@gnu.org>
12187
12188 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12189 and fix C types.
12190
121912008-02-01 Kenichi Handa <handa@m17n.org>
12192
12193 * xdisp.c (SKIP_GLYPHS): New macro.
12194 (set_cursor_from_row): Pay attention to string display properties.
12195
12196 * category.c (copy_category_entry): Fix for the case that RANGE
12197 is an integer.
12198
12199 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12200
12201 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12202
122032008-02-01 Kenichi Handa <handa@m17n.org>
12204
12205 * charset.c (Fcharset_id_internal): New function.
12206 (syms_of_charset): Defsubr it.
12207
12208 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12209 with the last arg charset_list acquired from coding.
12210 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12211 the attribute coding_attr_ccl_valids.
12212
12213 * coding.h (enum define_coding_ccl_arg_index): Set the first
12214 member coding_arg_ccl_decoder to coding_arg_max.
12215
12216 * ccl.h (ccl_driver): Adjust prototype.
12217
12218 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12219 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12220 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12221 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12222 last arg Qnil.
12223
122242008-02-01 Kenichi Handa <handa@m17n.org>
12225
12226 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12227 call encode_char.
12228
12229 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12230
122312008-02-01 Dave Love <fx@gnu.org>
12232
12233 * composite.c (syms_of_composite): Make composition_hash_table weak.
12234
122352008-02-01 Kenichi Handa <handa@m17n.org>
12236
12237 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12238 (font_name_registry): Don't extern them.
12239 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12240
12241 * fontset.h (Qfontset): Don't extern it.
12242 (new_fontset_from_font_name): Extern it.
12243
12244 * fontset.c: Give 8 extra slots to fontset objects.
12245 (Qfontset_info): New variable.
12246 (syms_of_fontset): Defsym it.
12247 (FONTSET_FALLBACK): New macro.
12248 (fontset_face): Try also the default fontset.
12249 (make_fontset): Realize a fallback fontset from the default fontset.
12250 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12251 using split_font_name_into_vector and build_font_name_from_vector.
12252 (Fset_fontset_font): Access the elements of font_spec by enum
12253 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12254 name by using split_font_name_into_vector.
12255 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12256 generate a proper font name from the fontset name. Update
12257 Vfontset_alias_alist.
12258 (n_auto_fontsets): New variable.
12259 (new_fontset_from_font_name): New function.
12260 (Ffont_info): Store the information about fonts generated from the
12261 default fontset in the first extra slot of the returned char-table.
12262
12263 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12264 (font_name_registry): Delete function.
12265 (split_font_name_into_vector): New function.
12266 (build_font_name_from_vector): New function.
12267 (font_list): The argument REGISTRY is now a list of registry names.
12268 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12269 specifies an explicit font name, return the name as is. Make a
12270 list of registy names.
12271
12272 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12273 of x_new_fontset.
12274 (Fx_create_frame): Don't call x_new_fontset here. Just use
12275 x_list_fonts to check the existence of fonts.
12276
12277 * xterm.h (x_new_fontset): Adjust prototype.
12278
12279 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12280 string. Use new_fontset_from_font_name to create a fontset from a
12281 font name.
12282
122832008-02-01 Kenichi Handa <handa@m17n.org>
12284
12285 * syntax.c (Vfind_word_boundary_function_table): New name for
12286 Vnext_word_boundary_function_table.
12287 (find-word-boundary-function-table): New name for
12288 next-word-boundary-function-table.
12289
122902008-02-01 Dave Love <fx@gnu.org>
12291
12292 * Makefile.in: Fix some dependencies.
12293
12294 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
12295 set it to nil before returning.
12296
12297 * composite.c (update_compositions): Fix type error.
12298
12299 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
12300
123012008-02-01 Kenichi Handa <handa@m17n.org>
12302
12303 * xterm.c (x_new_font): Optimize for the case that the font is
12304 already set for the frame.
12305
123062008-02-01 Kenichi Handa <handa@m17n.org>
12307
12308 * chartab.c (char_table_ascii): Check if the char table contents
12309 is sub-char-table or not.
12310 (char_table_set, char_table_set_range): Fix argument to
12311 char_table_ascii.
12312
12313 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
12314 (detect_coding_utf_8, detect_coding_utf_16)
12315 (detect_coding_emacs_mule, detect_coding_iso_2022)
12316 (detect_coding_sjis, detect_coding_big5)
12317 (detect_coding_ccl, detect_coding_charset): Change argument MASK
12318 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
12319 sequence is valid in this coding system. Change callers.
12320 (MAX_ANNOTATION_LENGTH): New macro.
12321 (ADD_ANNOTATION_DATA): New macro.
12322 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
12323 ADD_ANNOTATION_DATA. Change the format of annotation data.
12324 (ADD_CHARSET_DATA): New macro.
12325 (emacs_mule_char): New argument ID. Change callers.
12326 (decode_coding_emacs_mule, decode_coding_iso_2022)
12327 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12328 Produce charset annotation data in coding->charbuf.
12329 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
12330 to charset annotation data in coding->charbuf.
12331 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
12332 coding->common_flags if the coding system is iso-2022 based and
12333 uses designation.
12334 (produce_composition): Adjust for the new annotation data format.
12335 (produce_charset): New function.
12336 (produce_annotation): Handle charset annotation.
12337 (handle_composition_annotation, handle_charset_annotation): New
12338 functions.
12339 (consume_chars): Handle charset annotation. Utilize the above two
12340 functions.
12341 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
12342 buffer, get the deleted text as a string and set
12343 coding->src_object to that string.
12344 (detect_coding, detect_coding_system): Use the new struct
12345 coding_detection_info.
12346
12347 * coding.h (struct coding_detection_info): New structure.
12348 (struct coding_system): Adjust prototype of the member `detector'.
12349 (CODING_ANNOTATE_CHARSET_MASK): New macro.
12350
123512008-02-01 Kenichi Handa <handa@m17n.org>
12352
12353 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
12354
123552008-02-01 Dave Love <fx@gnu.org>
12356
12357 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
12358 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
12359 to new local and nullify apropos_accumulate before returning.
12360 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
12361
123622008-02-01 Kenichi Handa <handa@m17n.org>
12363
12364 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
12365 correctly.
e3eea1fc 12366
aac0c6e3
MR
123672008-02-01 Dave Love <fx@gnu.org>
12368
12369 * fns.c (Flanginfo): Call synchronize_system_time_locale.
12370
123712008-02-01 Kenichi Handa <handa@m17n.org>
12372
12373 The following changes are to make character composition happen
12374 automatically on displaying.
12375
12376 * Makefile.in (lisp, shortlisp): Add composite.elc.
12377
12378 * composite.h (Qauto_composed, Vauto_composition_function)
12379 (Qauto_composition_function): Extern them.
12380
12381 * composite.c (Vcomposition_function_table)
12382 (Qcomposition_function_table): Delete variables.
12383 (Qauto_composed, Vauto_composition_function)
12384 (Qauto_composition_function): New variables.
12385 (run_composition_function): Don't call
12386 compose-chars-after-function.
12387 (update_compositions): Clear `auto-composed' text property.
12388 (compose_chars_in_text): Delete this function.
12389 (syms_of_composite): Staticpro Qauto_composed and
12390 Qauto_composition_function. Declare Vauto_composition_function as
12391 a Lisp variable.
12392
12393 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
12394
12395 * xdisp.c (it_props): Add an entry for Qauto_composed.
12396 (handle_auto_composed_prop): New function.
12397
12398 * xselect.c (selection_data_to_lisp_data): Don't call
12399 compose_chars_in_text.
12400
124012008-02-01 Dave Love <fx@gnu.org>
12402
12403 * keyboard.c (read_char): Modify checking around use of
12404 Vkeyboard_translate_table.
12405
12406 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12407 and fix C types.
12408
124092008-02-01 Kenichi Handa <handa@m17n.org>
12410
12411 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
12412 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12413 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
12414 the case that the last byte is '\r' correctly.
12415 (decode_coding): Flush out the unprocessed data correctly.
12416 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
12417
124182008-02-01 Dave Love <fx@gnu.org>
12419
12420 * xterm.c (XTread_socket): Fix changes for defined keysyms.
12421 Add XK_ISO... case.
12422 (xaw_scroll_callback): Revert last change.
12423
124242008-02-01 Kenichi Handa <handa@m17n.org>
12425
12426 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
12427
124282008-02-01 Kenichi Handa <handa@m17n.org>
12429
12430 * xfaces.c (Vface_resizing_fonts): New variable.
12431 (struct font_name): New member `resizing_ratio'.
12432 (font_resizing_ratio): New function.
12433 (split_font_name): Set font->resizing_ratio.
12434 (better_font_p): Pay attention to font->resizing_ratio.
12435 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
12436 RESX, and RESY fields.
12437 (try_alternative_families): Try scalable fonts if
12438 Vscalable_fonts_allowed is not Qt.
12439 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
12440
124412008-02-01 Dave Love <fx@gnu.org>
12442
12443 * xterm.c (xaw_scroll_callback): Cast correctly.
12444
124452008-02-01 Dave Love <fx@gnu.org>
12446
12447 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
12448 (lispy_kana_keys): Comment out.
12449 (make_lispy_event) [XK_kana_A]: Comment out.
12450
12451 * xterm.c (xaw_scroll_callback): Cast call_data.
12452 (XTread_socket): Deal with ASCII keysyms.
12453 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
12454
124552008-02-01 Dave Love <fx@gnu.org>
12456
12457 * xterm.c (Vx_keysym_table): New.
12458 (syms_of_xterm): Initialize it.
12459 (XTread_socket): Use it.
12460 From head: Eliminate incorrect optimization that tried to avoid
12461 decoding the output of X*LookupString.
12462 (x_get_font_repertory): Delete charset declaration.
12463
124642008-02-01 Kenichi Handa <handa@m17n.org>
12465
12466 * coding.c (detect_coding_charset): If only ASCII bytes are found,
12467 return 0.
12468 (Fdefine_coding_system_internal): Setup
12469 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
12470
124712008-02-01 Dave Love <fx@gnu.org>
12472
12473 * coding.c (Fcheck_coding_system): Doc fix.
12474
12475 * editfns.c (Finsert_byte): Return a proper value.
12476
124772008-02-01 Kenichi Handa <handa@m17n.org>
12478
12479 * coding.c (decode_coding): Fix args to translate_chars. Pay
12480 attention to Vstandard_translation_table_for_decode.
12481 (encode_coding): Fix args to translate_chars. Pay attention to
12482 Vstandard_translation_table_for_encode.
12483
12484 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
12485 SINGLE_BYTE_CHAR_P.
12486
12487 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
12488 not by SINGLE_BYTE_CHAR_P.
12489
12490 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
12491 SINGLE_BYTE_CHAR_P.
12492
12493 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
12494 SINGLE_BYTE_CHAR_P.
12495
12496 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
12497 by SINGLE_BYTE_CHAR_P.
12498
12499 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
12500 SINGLE_BYTE_CHAR_P.
12501
125022008-02-01 Dave Love <fx@gnu.org>
12503
12504 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
12505
125062008-02-01 Dave Love <fx@gnu.org>
12507
12508 * fns.c (Flanginfo): Fix typo.
12509
12510 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
12511
125122008-02-01 Kenichi Handa <handa@m17n.org>
12513
12514 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
12515 (detect_coding_emacs_mule, detect_coding_iso_2022)
12516 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
12517 incomplete byte sequence. Don't update *mask when correctly detected.
12518 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
12519 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
12520 (detect_coding, detect_coding_system): Adjust for the changes above.
12521
125222008-02-01 Kenichi Handa <handa@m17n.org>
12523
12524 * character.c (char_string): Rename from
12525 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
12526 (string_char): Rename from string_char.
12527
12528 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
12529 if C is greater than MAX_3_BYTE_CHAR.
12530 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
12531 string_char instead of string_char_with_unification.
12532
125332008-02-01 Dave Love <fx@gnu.org>
12534
12535 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
12536
125372008-02-01 Kenichi Handa <handa@m17n.org>
12538
12539 * keymap.c (push_key_description): Pay attention to force_multibyte.
12540
12541 * regex.c (re_search_2): Fix for the case of unibyte buffer.
12542
125432008-02-01 Dave Love <fx@gnu.org>
12544
12545 * charset.c (define_charset_internal): Rename `supprementary'.
12546
12547 * Makefile.in (lisp, shortlisp): Remove latin-N.
12548
125492008-02-01 Dave Love <fx@gnu.org>
12550
12551 * xfns.c (x_window, x_window): Use use_xim.
12552
12553 * xterm.c (use_xim): Initialize.
12554 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12555 (x_term_init): Maybe set use_xim.
12556
12557 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12558
125592008-02-01 Kenichi Handa <handa@m17n.org>
12560
12561 * search.c (search_buffer): Fix case-fold-search of multibyte
12562 characters.
12563 (boyer_moore): Rename the last argument to char_high_bits.
12564
125652008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * xdisp.c (display_string): Fix for the case of zero width glyph.
12568
12569 * xfns.c (x_set_font): Change the error message of the case that
12570 x_new_fontset returns Qt.
12571
12572 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
12573 (Finternal_set_lisp_face_attribute): Use signal_error for the
12574 error of invalid fontset.
12575
12576 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
12577 fontset, return Qt.
12578
125792008-02-01 Dave Love <fx@gnu.org>
12580
12581 * unexelf.c (unexec): Make .got handling not SGI-specific.
12582
12583 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
12584
12585 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
12586
12587 * keyboard.c (read_key_sequence): Fix type error.
12588
12589 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
12590 type error.
12591
12592 * fontset.c (fontset_add): Return Lisp_Object.
12593
125942008-02-01 Dave Love <fx@gnu.org>
12595
12596 * charset.h (charset_ordered_list_tick): Declare extern.
12597
125982008-02-01 Kenichi Handa <handa@m17n.org>
12599
12600 The following changes (and some of 2008-02-01 changes of mine) are
12601 for handling syntax, category, and case conversion for unibyte
12602 characters by converting them to multibyte on the fly. With these
12603 changes, we don't have to setup syntax and case tables for unibyte
12604 characters in each language environment.
12605
12606 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
12607 multibyte if necessary.
12608
12609 * bytecode.c (Fbyte_code): Likewise.
12610
12611 * character.h (LEADING_CODE_LATIN_1_MIN)
12612 (LEADING_CODE_LATIN_1_MAX): New macros.
12613 (unibyte_to_multibyte_table): Extern it.
12614 (unibyte_char_to_multibyte): New macro.
12615 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
12616 (CHAR_LEADING_CODE): New macro.
12617 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
12618
12619 * character.c (unibyte_to_multibyte_table): New variable.
12620 (unibyte_char_to_multibyte): Move to character.h and define as macro.
12621 (multibyte_char_to_unibyte): If C is an eight-bit character,
12622 convert it to the corresponding byte value.
12623
12624 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
12625 not 1, signals an error. Update the elements of
12626 unibyte_to_multibyte_table.
12627 (init_charset_once): Initialize unibyte_to_multibyte_table.
12628 (syms_of_charset): Define the charset `iso-8859-1'.
12629
12630 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
12631 as is without converting it to unibyte. In a unibyte buffer,
12632 convert C to multibyte before checking the syntax.
12633
12634 * lisp.h (unibyte_char_to_multibyte): Delete extern.
12635
12636 * minibuf.c (Fminibuffer_complete_word): Use the macro
12637 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
12638
12639 * regex.h (struct re_pattern_buffer): New member target_multibyte.
12640
12641 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
12642 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
12643 that is zero, convert an eight-bit char to multibyte.
12644 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
12645 non-emacs case.
12646 (PATFETCH): Convert an eight-bit char to multibyte.
12647 (HANDLE_UNIBYTE_RANGE): New macro.
12648 (regex_compile): Setup the compiled pattern for multibyte chars
12649 even if the given regex string is unibyte. Use PATFETCH_RAW
12650 instead of PATFETCH in many places. To handle `charset'
12651 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
12652 only for ASCII chars.
12653 (analyse_first) <exactn>: Simplify because the compiled pattern
12654 is multibyte.
12655 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
12656 <charset>: Use CHAR_LEADING_CODE to get leading codes.
12657 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
12658 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
12659 multibyte always 1.
12660 (re_search_2): In emacs, set the locale variable multibyte to 1,
12661 otherwise to 0. New local variable target_multibyte. Check it
12662 to decide the multibyteness of STR1 and STR2. If
12663 target_multibyte is zero, convert unibyte chars to multibyte
12664 before translating and checking fastmap.
12665 (TARGET_CHAR_AND_LENGTH): New macro.
12666 (re_match_2_internal): In emacs, set the locale variable multibyte
12667 to 1, otherwise to 0. New local variable target_multibyte. Check
12668 it to decide the multibyteness of STR1 and STR2. Use
12669 TARGET_CHAR_AND_LENGTH to fetch a character from D.
12670 <charset, charset_not>: If multibyte is nonzero, check fastmap
12671 only for ASCII chars. Call bcmp_translate with
12672 target_multibyte, not with multibyte.
12673 <begline>: Declare the local variable C as `unsigned'.
12674 (bcmp_translate): Change the last arg name to target_multibyte.
12675
12676 * search.c (compile_pattern_1): Don't adjust the multibyteness of
12677 the regexp pattern and the matching target. Set cp->buf.multibyte
12678 to the multibyteness of the regexp pattern. Set
12679 cp->but.target_multibyte to the multibyteness of the matching target.
12680 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
12681 FETCH_STRING_CHAR_ADVANCE.
12682 (Freplace_match): Convert unibyte chars to multibyte.
12683
12684 * syntax.c (char_quoted, back_comment, scan_words)
12685 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
12686 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
12687 unibyte chars to multibyte.
12688 (skip_chars): Delete the arg syntaxp, and move the code for
12689 handling syntaxes to skip_syntaxes. Change callers.
12690 Fix the case that the multibyteness of STRING and the current
12691 buffer doesn't match.
12692 (skip_syntaxes): New function.
12693 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
12694 SINGLE_BYTE_CHAR_P.
12695
126962008-02-01 Kenichi Handa <handa@m17n.org>
12697
12698 * xfaces.c (QCfontset): New variable.
12699 (LFACE_FONTSET): New macro.
12700 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
12701 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
12702 (Finternal_set_lisp_face_attribute)
12703 (Finternal_get_lisp_face_attribute): Handle QCfontset.
12704 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
12705 check also LFACE_FONTSET_INDEX.
12706 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
12707 attrs[LFACE_FONT_INDEX].
12708 (syms_of_xfaces): Intern and staticpro QCfontset.
12709
12710 * dispextern.h (enum lface_attribute_index): New member
12711 LFACE_FONTSET_INDEX.
12712
12713 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
12714
127152008-02-01 Kenichi Handa <handa@m17n.org>
12716
12717 * coding.c (coding_set_destination): Fix coding->destination for
12718 the case converting a region.
12719 (encode_coding_utf_8): Encode eight-bit chars as single byte.
12720 (encode_coding_object): Fix coding->dst_pos and
12721 coding->dst_pos_byte for the case converting a region.
12722
12723 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
12724
12725 * character.h (BYTE8_STRING): New macro.
12726
12727 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
12728
127292008-02-01 Kenichi Handa <handa@m17n.org>
12730
12731 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
12732 characters by octal form.
12733
12734 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12735
12736 * buffer.h (_fetch_multibyte_char_len): Delete extern.
12737 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
12738 _fetch_multibyte_char_len.
12739 (FETCH_CHAR_AS_MULTIBYTE): New macro.
12740
12741 * casetab.c (set_canon, set_identity, shuffle): Simplify.
12742
12743 * casefiddle.c (casify_object): Simplify. Handle the case that
12744 the case conversion change the byte length.
12745 (casify_region): Likewise.
12746
12747 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
12748
12749 * character.c (_fetch_multibyte_char_len): Delete this variable.
12750 (syms_of_character): Setup Vprintable_chars.
12751
12752 * editfns.c (Fchar_equal): Fix for the unibyte case.
12753 (Finsert_byte): New function.
12754 (syms_of_editfns): Defsubr it.
12755
12756 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
12757 of direct code 0x3ffff.
12758
12759 * search.c (Freplace_match): Fix for the unibyte case.
12760
127612008-02-01 Kenichi Handa <handa@m17n.org>
12762
12763 * lread.c (safe_to_load_p): Fix the logic.
12764
12765 * syntax.c (scan_words): Don't treat characters belonging to
12766 different scripts as constituting a word.
12767
12768 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12769
12770 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
12771
12772 * emacs.c (main): In the case of --unibyte, instead of aborting on
12773 finding non-empty buffer, make it unibyte.
12774
127752008-02-01 Kenichi Handa <handa@m17n.org>
12776
12777 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
12778 to create a fontset.
12779
127802008-02-01 Dave Love <fx@gnu.org>
12781
12782 * character.c (Funibyte_char_to_multibyte): Doc fix.
12783
12784 * xfns.c [HAVE_STDLIB_H]: Fix last change.
12785
127862008-02-01 Kenichi Handa <handa@m17n.org>
12787
12788 * fontset.c (fontset_add): Make the type `int'.
12789 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
12790
12791 * character.c (unibyte_char_to_multibyte)
12792 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
12793 charset_unibyte, not charset_primary.
12794
12795 * charset.h (charset_unibyte): Extern it instead of charset_primary.
12796
12797 * charset.c (charset_unibyte): Rename from charset_primary.
12798 (Funibyte_charset): Rename from Fprimary_charset.
12799 (Fset_unibyte_charset): Rename from Fset_primary_charset.
12800 (syms_of_charset): Adjust for the above changes.
12801
12802 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12803 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12804 it->multibyte_p is zero.
12805
12806 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
12807 Delete extern.
12808
128092008-02-01 Kenichi Handa <handa@m17n.org>
12810
12811 * coding.c (Fdefine_coding_system_internal): Fix category setting
12812 for a coding system of type iso-2022.
12813
128142008-02-01 Kenichi Handa <handa@m17n.org>
12815
12816 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
12817
128182008-02-01 Kenichi Handa <handa@m17n.org>
12819
12820 * syntax.c (Vnext_word_boundary_function_table): New variable.
12821 (next-word-boundary-function-table): Declare it as a Lisp variable
12822 in syms_of_syntax.
12823 (scan_words): Call functions in Vnext_word_boundary_function_table
12824 if any.
12825
12826 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
12827
12828 * fontset.c (fs_load_font): If fontp->charset is not negative,
12829 return fontp without setting its members.
12830
128312008-02-01 Dave Love <fx@gnu.org>
12832
12833 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
12834
12835 * m/sparc.h (HAVE_ALLOCA): Delete.
12836
12837 * s/irix6-5.h: Don't include strings.h.
12838 (bcopy, bzero, bcmp): Don't undef.
12839
12840 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
12841
12842 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
12843 (TIOCSIGSEND): Don't test IRIX6.
12844 (bcopy, bzero, bcmp): Define conditionally.
12845
128462008-02-01 Kenichi Handa <handa@m17n.org>
12847
12848 * buffer.c (Qas, Qmake, Qto): New variables.
12849 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
12850 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
12851
12852 * callproc.c (Fcall_process): Don't call insert_1_both directly if
12853 we are inserting a process output into a multibyte buffer.
12854
12855 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
12856 multibyte_char_to_unibyte.
12857
12858 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
12859 by the primary charset, make it eight-bit char.
12860 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
12861
12862 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
12863 (charset_8_bit__control, charset_8_bit_graphic)
12864 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
12865 (define_charset_internal): New function.
12866 (syms_of_charset): Call define_charset_internal for pre-defined
12867 charsets.
12868
12869 * charset.h (charset_8_bit): Extern it.
12870
12871 * coding.c (make_conversion_work_buffer): Adjust for the change
12872 of Fset_buffer_multibyte.
12873 (encode_coding_raw_text): Increment p0 in the loop.
12874
12875 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
12876
12877 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
12878 for the change of Fset_buffer_multibyte.
12879
12880 * fns.c (Fstring_to_multibyte): New function.
12881 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
12882
128832008-02-01 Dave Love <fx@gnu.org>
12884
12885 * xfns.c (x_put_x_image): Declare args.
12886
12887 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
12888 (try_font_list): Declare an arg.
12889
12890 * xdisp.c (message2_nolog, set_message): Declare an arg.
12891
12892 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
12893
12894 * syntax.c (scan_sexps_forward): Declare an arg.
12895
12896 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12897 Declare an arg.
12898
12899 * lisp.h (Fnew_fontset): Declare.
12900
12901 * keymap.c (push_key_description): Call CHARACTERP correctly.
12902
12903 * fontset.c (fontset_add): Declare args. Call make_number correctly.
12904 (face_for_char): Delete unused vars.
12905 (Fset_fontset_font): Doc fix. Delete unused vars.
12906
12907 * doc.c (Fsubstitute_command_keys): Delete unused vars.
12908
12909 * composite.c (update_compositions): Declare arg.
12910
12911 * cm.c (calccost, cmgoto): Declare args.
12912
12913 * charset.c: Remove `emacs' conditional. Doc fixes.
12914 (map_char_table_for_charset): Declare.
12915
12916 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
12917
12918 * ccl.c: Remove `emacs' conditional.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 The following changes are to allow specifying multiple font
12923 patterns for a character range (specified by script or charset).
12924
12925 * Makefile.in (abbrev.o): Depend on syntax.h.
12926 (xfaces.o): Depend on charset.h.
12927
12928 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
12929 SINGLE_BYTE_CHAR_P.
12930
12931 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
12932
12933 * character.h (Vchar_script_table): Extern it.
12934
12935 * character.c (Vscript_alist): Delete.
12936 (Vchar_script_table, Qchar_script_table): New variable.
12937 (syms_of_character): Declare Vchar_script_table as a lisp variable
12938 and initialize it.
12939
12940 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
12941 have property char-table-extra-slots, make no extra slot.
12942
12943 * dispextern.h (struct face): Delete member `charset'.
12944 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
12945 SINGLE_BYTE_CHAR_P.
12946 (choose_face_font, lookup_non_ascii_face, font_name_registry):
12947 Add prototypes.
12948 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
12949 (generate_ascii_font_name): Rename from generate_ascii_font.
12950
12951 * fontset.h (get_font_repertory_func): New prototype.
12952 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
12953 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
12954
12955 * fontset.c (Qprepend, Qappend): New variables.
12956 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
12957 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
12958 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
12959 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
12960 (fontset_ref_and_range, fontset_add, reorder_font_vector)
12961 (load_font_get_repertory): New functions.
12962 (fontset_set): Delete.
12963 (fontset_face): New arg FACE. Return face ID, not face.
12964 Complete re-write to handle new fontset structure. Change caller.
12965 (free_face_fontset): Use ASET istead of AREF (X) = Y.
12966 (face_for_char): Don't call lookup_face.
12967 (make_fontset_for_ascii_face): New arg FACE.
12968 (fs_load_font): New arg CHARSET_ID. Don't check
12969 Vfont_encoding_alist here.
12970 (find_font_encoding): New function.
12971 (list_fontsets): Use STRINGP, not ! NILP.
12972 (accumulate_script_ranges): New function.
12973 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
12974 re-written to handle new fontset structure.
12975 (Ffontset_font): Return a copy of element.
12976 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
12977 docstring of font-encoding-alist.
12978
12979 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
12980 (Fset_fotset_font): Fix arguments to 5.
12981
12982 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
12983
12984 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
12985 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12986 (highlight_trailing_whitespace): Adjust for the change of
12987 lookup_named_face.
12988
12989 * xfaces.c: Include charset.h.
12990 (load_face_font): Delete argument C. Change caller.
12991 (generate_ascii_font_name): Rename from generate_ascii_font.
12992 (font_name_registry): New function.
12993 (cache_face): Store ascii faces before non-ascii faces in buckets.
12994 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
12995 Lookup only ascii faces.
12996 (lookup_non_ascii_face): New function.
12997 (lookup_named_face): Delete argument C. Change caller.
12998 (lookup_derived_face): Delete argument C. Change caller.
12999 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13000 a string, just call font_list with it.
13001 (choose_face_font): Delete arguments FACE and C. New arg
13002 FONT_SPEC. Change caller.
13003 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13004 Change caller.
13005 (realize_non_ascii_face): New function.
13006 (realize_x_face): Call load_face_font here.
13007 (realize_tty_face): Delete argument C. Change caller.
13008 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13009 get a face ID.
13010 (dump_realized_face): Don't print charset of FACE.
13011
13012 * xfns.c (x_set_font): Always call x_new_fontset and
13013 store_frame_parameter.
13014 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13015 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13016
13017 * xterm.h (x_get_font_repertory): Extern it.
13018
13019 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13020 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13021 it->multibyte_p is zero.
13022 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13023 (x_new_fontset): If FONTSETNAME doesn't match any existing
13024 fontsets, create a new one.
13025 (x_get_font_repertory): New function.
13026
130272008-02-01 Kenichi Handa <handa@m17n.org>
13028
13029 * coding.c (Ffind_coding_systems_region_internal): Detect an
13030 ASCII only string correctly.
13031
13032 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13033 version is 0.
13034
130352008-02-01 Kenichi Handa <handa@m17n.org>
13036
13037 * lread.c: Include "coding.h".
13038 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13039 (load_each_byte, unread_char): New variables.
13040 (readchar_backlog): Delete.
13041 (readchar): Return a character unless load_each_byte is nonzero.
13042 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13043 cons. If unread_char is not -1, simply return it.
13044 (unreadchar): Handle the case that readcharfun is
13045 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13046 (read_multibyte): Delete.
13047 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13048 (read_emacs_mule_char): New functions.
13049 (Fload): Even if the file doesn't have the extension ".elc", if
13050 safe_to_load_p returns a positive version number, assume that the
13051 file contains bytecompiled code. If the version is less than 22,
13052 load the file while decoding multibyte sequences by emacs-mule.
13053 (readevalloop): Don't use readchar_backlog.
13054 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13055 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13056 (read_escape): Delete the arg BYTEREP.
13057 (read1): Set load_each_byte to 1 temporarily while handling
13058 #@NUMBER. Don't call read_multibyte.
13059 (read_vector): Call Fread with a cons. If readcharfun is
13060 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
13061 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
13062 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
13063 and Qload_force_doc_strings.
13064
130652008-02-01 Kenichi Handa <handa@m17n.org>
13066
13067 * xdisp.c (face_before_or_after_it_pos): Call
13068 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13069
130702008-02-01 Kenichi Handa <handa@m17n.org>
13071
13072 * character.h (TRAILING_CODE_P): New macro.
13073 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
13074 (string_char_with_unification): Fix prototype.
13075 (Vscript_alist): Extern it.
13076
13077 * character.c (Vscript_alist): New variable.
13078 (string_char_with_unification, str_as_unibyte)
13079 (string_escape_byte8): Add `const' to local variables.
13080 (syms_of_character): Declare script-alist as a Lisp variable.
13081
13082 * charset.h (Vcharset_ordered_list): Extern it.
13083 (charset_ordered_list_tick): Extern it.
13084 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
13085 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
13086 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
13087 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
13088 (Funify_charset): Adjust for the change of Funify_charset.
13089
13090 * charset.c (charset_ordered_list_tick): New variable.
13091 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13092 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13093 deunify intead of unify a charset.
13094 (string_xstring_p): Add `const' to local variables.
13095 (find_charsets_in_text): Add `const' to arguments and local variables.
13096 (encode_char): Adjust for the change of Funify_charset. Fix
13097 detecting of invalid code.
13098 (Fset_charset_priority): Increment charset_ordered_list_tick.
13099 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13100 and TO_CODE.
13101
13102 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13103 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13104 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13105 (decode_coding_ccl, consume_chars)
13106 (Ffind_coding_systems_region_internal)
13107 (Fcheck_coding_systems_region): Add `const' to local variables.
13108
13109 * print.c (print_object): Use octal form for printing the
13110 contents of a bool vector.
13111
131122008-02-01 Dave Love <fx@gnu.org>
13113
13114 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13115 <version == 20>: Refuse to load.
13116
131172008-02-01 Dave Love <fx@gnu.org>
13118
13119 * fns.c: Move coding.h.
13120 (Qcodeset, Qdays, Qmonths): New.
13121 (concat): Use CHARACTERP instead of INTEGERP.
13122 (Flocale_codeset): Delete.
13123 (Flanginfo): New function.
13124 (syms_of_fns): Change accordingly.
13125
13126 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13127
131282008-02-01 Dave Love <fx@gnu.org>
13129
13130 * casetab.c (init_casetab_once, init_casetab_once): Fix
13131 CHAR_TABLE_SET call.
13132
13133 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13134
13135 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13136
13137 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13138 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13139 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13140
13141 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13142
13143 * coding.c (ENCODE_DESIGNATION, decode_eol)
13144 (make_conversion_work_buffer, code_conversion_restore)
13145 (Fdefine_coding_system_internal): Convert Lisp types.
13146 (code_conversion_restore): Use EQ, not ==.
13147 (Fencode_coding_string): Fix code_convert_string call.
13148
13149 * coding.h (code_convert_region): Fix prototype.
13150
13151 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13152
13153 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13154 (Ffontset_info): Convert Lisp types.
13155
13156 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13157
13158 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13159
13160 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13161
13162 * chartab.c: Include "...h", not <...h> in some cases.
13163
13164 * callproc.c (Fcall_process): Remove unused variables.
13165
131662008-02-01 Dave Love <fx@gnu.org>
13167
13168 * coding.c (Fset_coding_system_priority): Allow null arg list.
13169
131702008-02-01 Dave Love <fx@gnu.org>
13171
13172 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13173 (Fself_insert_and_exit): Use CHARACTERP.
13174
13175 * callproc.c (Fcall_process): Remove unused vars.
13176
13177 * xterm.c (XTread_socket): Add extra dead keysyms.
13178
13179 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13180
13181 * dispextern.h: Remove prototypes for redraw_frame,
13182 redraw_garbaged_frames.
13183
13184 * cmds.c (Fself_insert_command): Use CHARACTERP.
13185
13186 * chartab.c (make_sub_char_table): Remove unused var.
13187 (Fset_char_table_default, Fmap_char_table): Doc fix.
13188
13189 * keymap.c (access_keymap): Remove generic char code.
13190 (push_key_description): Use CHARACTERP.
13191
131922008-02-01 Dave Love <fx@gnu.org>
13193
13194 * charset.c: Doc fixes.
13195 (Funify_charset): Extra checking.
13196
131972008-02-01 Dave Love <fx@gnu.org>
13198
13199 * lread.c: Remove some unused variables.
13200 (safe_to_load_p): If safe, return the magic number version byte.
13201 (Fload): Maybe use load-with-code-conversion.
13202
132032008-02-01 Kenichi Handa <handa@m17n.org>
13204
13205 * category.c (Fmodify_category_entry): Don't modify the contents
13206 of category_set for characters out of the range. Avoid
13207 unnecessary modification.
13208
13209 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13210 Vchar_unify_table. The default value of the table is now nil.
13211
13212 * character.c (syms_of_character): Setup Vchar_width_table for
13213 eight-bit-control and raw-byte chars.
13214
13215 * charset.h (enum define_charset_arg_index): Delete
13216 charset_arg_parents and add charset_arg_subset and
13217 charset_arg_superset.
13218 (enum charset_attr_index): Delete charset_parents and add
13219 charset_subset and charset_superset.
13220 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13221 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13222 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13223 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13224 (CHARSET_SUPERSET): New macros.
13225 (charset_work): Extern it.
13226 (ENCODE_CHAR): Use charset_work.
13227 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13228 (map_charset_chars): Extern it.
13229
13230 * charset.c (load_charset_map): Set the default value of encoder
13231 and deunifier char-tables to nil.
13232 (map_charset_chars): Change argument. Change callers. Use
13233 map_char_table_for_charset instead of map_char_table.
13234 (Fmap_charset_chars): New optional args from_code and to_code.
13235 (Fdefine_charset_internal): Adjust for the change of
13236 `define-charset' (:parents -> :subset or :superset).
13237 (charset_work): New variable.
13238 (encode_char, syms_of_charset): Adjust for the change of
13239 Fdefine_charset_internal.
13240 (Ffind_charset_string): Setup the vector `charsets' correctly.
13241
13242 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13243 the previous change.
13244 (char_table_ref_and_range): Adjust for the above change.
13245 (map_sub_char_table_for_charset): New function.
13246 (map_char_table_for_charset): New function.
13247
13248 * keymap.c (describe_vector): Handle a char-table directly here.
13249 (describe_char_table): Delete.
13250
13251 * lisp.h (map_charset_chars): Delete.
13252
132532008-02-01 Dave Love <fx@gnu.org>
13254
13255 * fns.c (count_combining): Comment out (unused).
13256 (Flocale_codeset): New.
13257 (syms_of_fns): Defsubr it.
13258
13259 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13260 (size_t): Remove.
13261
132622008-02-01 Dave Love <fx@gnu.org>
13263
13264 * Makefile.in (chartab.o): Depend on charset.h.
13265
132662008-02-01 Kenichi Handa <handa@m17n.org>
13267
13268 * character.c (syms_of_character): Set the default value of
13269 Vprintable_chars to Qnil.
13270
132712008-02-01 Dave Love <fx@gnu.org>
13272
13273 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * charset.c (load_charset_map): Handle the case that from < to
13278 correctly.
13279
13280 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13281 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
13282 Pay attention to raw-8-bit chars.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
13287 It is not bytecompiled now.
13288
13289 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
13290 (charset_jisx0208): New variables.
13291 (Fdefine_charset_internal): Setup them if appropriate.
13292 (init_charset_once): Initialize them to -1.
13293
13294 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
13295 (charset_jisx0208): Extern them.
13296
13297 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
13298 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
13299 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
13300 (setup_iso_safe_charsets): Fix arguments to Fassq.
13301 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
13302 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
13303 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
13304 (encode_coding_iso_2022): Change the 1st arg to
13305 ENCODE_ISO_CHARACTER to a variable.
13306
133072008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * charset.h (enum define_charset_arg_index): New enums
13310 charset_arg_min_code and charset_arg_max_code.
13311 (struct charset): New member char_index_offset.
13312
13313 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
13314 Take charset->char_index_offset into account.
13315 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
13316 args[charset_arg_max_code]. Setup charset.char_index_offset.
13317 (syms_of_charset): Fix args to Fdefine_charset_internal.
13318
133192008-02-01 Dave Love <fx@gnu.org>
13320
13321 * coding.c (decode_coding_utf_8): Reject overlong sequences.
13322
133232008-02-01 Dave Love <fx@gnu.org>
13324
13325 * coding.c: Doc fixes.
13326 (Fcoding_system_aliases): Fix return value.
13327 (Qmac): Remove (duplicated) definition.
13328
133292008-02-01 Dave Love <fx@gnu.org>
13330
13331 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
13332 functions.
13333
13334 * character.c (Fstring): Doc fix.
13335
13336 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
13337
13338 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
13339 ids.
13340 (font-encoding-alist): Doc fix.
13341
133422008-02-01 Dave Love <fx@gnu.org>
13343
13344 * term.c (costs_set): Declare static, non-initialized for pcc.
13345 (encode_terminal_code): Remove unused var.
13346
13347 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13348 for K&R.
13349
13350 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
13351
13352 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
13353 (suffixes): Move out of make_subsidiaries for K&R.
13354
13355 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
13356
13357 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
13358
133592008-02-01 Dave Love <fx@gnu.org>
13360
13361 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
13362
13363 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
13364
133652008-02-01 Yong Lu <lyongu@asia-infonet.com>
13366
13367 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
13368
13369 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
13370
133712008-02-01 Kenichi Handa <handa@m17n.org>
13372
13373 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
13374 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
13375
133762008-02-01 Kenichi Handa <handa@m17n.org>
13377
13378 * coding.c (decode_coding_charset): Adjust for the change of
13379 Fdefine_coding_system_internal.
13380 (Fdefine_coding_system_internal): For a coding system of
13381 `charset' type, store a list of charset IDs in
13382 `charset_attr_charset_valids' element of coding attributes.
13383
133842008-02-01 Kenichi Handa <handa@m17n.org>
13385
13386 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
13387 (emacs_mule_char): New arg src. Delete arg `composition'. Change
13388 caller. Handle 2-byte and 3-byte charsets correctly.
13389 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
13390 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
13391 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
13392 (DECODE_EMACS_MULE_21_COMPOSITION): Call
13393 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
13394 sequence.
13395 (decode_coding_emacs_mule): Handle composition correctly. Rewind
13396 `src' and `consumed_chars' correctly before calling emacs_mule_char.
13397 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
13398 and alt&rule composition.
13399 (decode_coding_iso_2022): Handle composition correctly.
13400 (init_coding_once): Setup emacs_mule_bytes for private charsets.
13401
13402 * charset.c (Fdefine_charset_internal): Fix bug for the case of
13403 re-defining a charset. If the charset has :emacs-mule-id, setup
13404 emacs_mule_bytes.
13405 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
13406
134072008-02-01 Kenichi Handa <handa@m17n.org>
13408
13409 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
13410 (encode_coding_big5, encode_coding_charset): If coding requires safe
13411 encoding, produce a character specified by
13412 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13413
134142008-02-01 Dave Love <fx@gnu.org>
13415
13416 * xterm.c (XSetIMValues): Declare.
13417
13418 * process.c: Conditionally include sys/wait.h, pty.h.
13419
13420 * print.c (print_object): Fix print format for 64-bit systems.
13421
13422 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
13423
13424 * buffer.c (emacs_strerror): Declare.
13425
13426 * fontset.c (Fclear_face_cache): Declare.
13427 (accumulate_font_info): Comment-out (unused).
13428 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
13429 variables.
13430
13431 * character.h (string_escape_byte8): Declare.
13432
13433 * charset.c (load_charset_map, load_charset_map_from_file): Remove
13434 unused vars.
13435 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
13436 (Fmap_charset_chars): Doc fix.
13437
13438 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
13439 (Fset_coding_system_priority, Fset_coding_system_priority)
13440 (Fdefine_coding_system_internal): Doc fix.
13441
134422008-02-01 Dave Love <fx@gnu.org>
13443
13444 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
13445
134462008-02-01 Kenichi Handa <handa@m17n.org>
13447
13448 * character.c (string_escape_byte8): Make multibyte string with
13449 correct size.
13450
13451 * charset.c (Fmake_char): Delete unnecessary code.
13452
134532008-02-01 Kenichi Handa <handa@m17n.org>
13454
13455 * xfns.c (x_encode_text): Allocate coding.destination here, and
13456 call encode_coding_object with dst_object Qnil.
13457
13458 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
13459 multibyte form correctly.
13460
13461 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
13462 against Vfont_encoding_alist.
13463
13464 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
13465 handling of charset list.
13466 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
13467 (decode_coding_object): Move point to coding->dst_pos before
13468 calling post-read-conversion function.
13469 (encode_coding_object): Give correct arguments to
13470 pre-write-conversion. Ignore the return value of
13471 pre-write-conversion function. Pay attention to the case that
13472 pre-write-conversion changes the current buffer. If dst_object is
13473 Qt, even if coding->src_bytes is zero, allocate at least one byte
13474 to coding->destination.
13475
13476 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
13477
13478 * charset.c (Fmake_char): Make it more backward compatible.
13479 (Fmap_charset_chars): Fix docstring.
13480
134812008-02-01 Dave Love <fx@gnu.org>
13482
13483 * coding.c: Doc fixes.
13484 (Fdefine_coding_system_alias): Use names, not symbols, in
13485 coding-system-alist.
13486
134872008-02-01 Kenichi Handa <handa@m17n.org>
13488
13489 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
13490 of calling free_realized_face.
13491
134922008-02-01 Yong Lu <lyongu@asia-infonet.com>
13493
13494 * charset.c (read_hex): Don't treat SPC as a comment starter.
13495 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
13496 (Fdecode_char): Fix typo.
13497
134982008-02-01 Kenichi Handa <handa@m17n.org>
13499
13500 * charset.h (struct charset): New member `code_space_mask'.
13501
13502 * coding.c (coding_set_source): Delete the local variable beg_byte.
13503 (encode_coding_charset, Fdefine_coding_system_internal):
13504 Delete the local variable charset.
13505 (Fdefine_coding_system_internal): Setup
13506 attrs[coding_attr_charset_valids] correctly.
13507
13508 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
13509 member to check if CODE is valid or not.
13510 (Fdefine_charset_internal): Initialize `code_space_mask' member.
13511 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
13512 is within the range of charset->min_code and carset->max_code.
13513
135142008-02-01 Dave Love <fx@gnu.org>
13515
13516 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
13517
13518 * dispextern.h (generate_ascii_font): Fix return type.
13519
13520 * xfaces.c (generate_ascii_font): Fix arg declaration.
13521
13522 * coding.c (coding_inherit_eol_type)
13523 (Fset_terminal_coding_system_internal)
13524 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
13525
135262008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * coding.c (decode_coding_charset, encode_coding_charset): Handle
13529 multiple charsets correctly.
13530
135312008-02-01 Kenichi Handa <handa@m17n.org>
13532
13533 * search.c (boyer_moore): Fix handling of multibyte character
13534 translation.
13535
13536 * xdisp.c (display_mode_element): When the variable `elt' is
13537 changed, update `this' and `lisp_string'.
13538
135392008-02-01 Kenichi Handa <handa@m17n.org>
13540
13541 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
13542
13543 * callproc.c (Fcall_process): Be sure to give the current buffer
13544 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
13545
13546 * charset.c (struct charset_map_entries): New struct.
13547 (load_charset_map): Rename from parse_charset_map. New args
13548 entries and n_entries. Change caller.
13549 (load_charset_map_from_file): Rename from load_charset_map.
13550 Change caller. New arg control_flag. Call load_charset_map at
13551 the tail.
13552 (load_charset_map_from_vector): New function.
13553 (Fdefine_charset_internal): Setup charset.compact_codes_p.
13554 (encode_char): If the charset is compact, change a character index
13555 to a code point.
13556
13557 * coding.c (coding_alloc_by_making_gap): Check the case that the
13558 source and destination are the same correctly.
13559 (decode_coding_raw_text): Set coding->consumed_char and
13560 coding->consumed to 0.
13561 (produce_chars): If coding->chars_at_source is nonzero, update
13562 coding->consumed_char and coding->consumed before calling
13563 alloc_destination.
13564 (Fdefine_coding_system_alias): Register ALIAS in
13565 Vcoding_system_alist.
13566 (syms_of_coding): Define `no-conversion' coding system at the tail.
13567
13568 * fileio.c (Finsert_file_contents): Set coding_system instead of
13569 val. If the current buffer is multibyte, always call
13570 decode_coding_gap.
13571
13572 * xfaces.c (try_font_list): Give higher priority to fontset's
13573 family than face's family.
13574
135752008-02-01 Kenichi Handa <handa@m17n.org>
13576
13577 * callproc.c (Fcall_process): Be sure to give the current buffer
13578 to decode_coding_c_string.
13579
13580 * xfaces.c (try_font_list): Give a family specified in a fontset
13581 higher priority than a family specified in a face.
13582
135832008-02-01 Kenichi Handa <handa@m17n.org>
13584
13585 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
13586 Fix arguments to insert_from_buffer.
13587
13588 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
13589
135902008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * coding.c (produce_chars): Set the variable `multibytep' correctly.
13593 (decode_coding_gap): Set coding->dst_multibyte correctly.
13594
135952008-02-01 Kenichi Handa <handa@m17n.org>
13596
13597 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
13598 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
13599 (encode_coding_utf_16): Substitute coding->default_char for
13600 non-Unicode characters.
13601 (decode_coding): Don't call record_insert here.
13602 (setup_coding_system): Initialize `surrogate' of
13603 coding->spec.utf_16 to 0.
13604 (EMIT_ONE_BYTE): Fix for multibyte case.
13605
13606 * insdel.c (insert_from_gap): Call record_insert.
13607
136082008-02-01 Kenichi Handa <handa@m17n.org>
13609
13610 * casefiddle.c (casify_region): Fix multibyte case.
13611
13612 * character.c (c_string_width): Add return type `int'.
13613 (char_string_with_unification): Delete arg ADVANCED.
13614
13615 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
13616 (CHAR_STRING): Adjust for the change of char_string_with_unification.
13617 (CHAR_STRING_ADVANCE): Make it do-while statement.
13618
13619 * chartab.c (sub_char_table_set_range): Optimize for the case
13620 DEPTH == 3. Add workaround code for a GCC optimization bug.
13621
13622 * charset.c (parse_charset_map): Remove an unused variable.
13623
13624 * coding.c: Delete unused variables.
13625
13626 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
13627 earlier. If inserted is zero and the coding system doesn't
13628 require flushing, don't call decode_coding_gap.
13629
13630 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
13631
136322008-02-01 Kenichi Handa <handa@m17n.org>
13633
13634 The following changes are for using Unicode as an internal
13635 character model, and use UTF-8 format for buffer/string
13636 representation.
13637
13638 * .gdbinit (xchartable): Adjust for the change of char table structure.
13639 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
13640
13641 * Makefile.in (obj): Add character.o and chartab.o.
13642 (lisp, shortlisp): Remove utf-8.elc.
13643 (*.o): For many files, change dependency on charset.h to
13644 character.h, and add dependency on character.h.
13645 (character.o, chartab.o): New targets.
13646
13647 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
13648 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
13649 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
13650 of "charset.h".
13651
13652 * dired.c, filelock.c: Include "character.h".
13653
13654 * alloc.c: Include "character.h" instead of "charset.h".
13655 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
13656 (syms_of_alloc): Remove defsubr for Smake_char_table.
13657
13658 * buffer.c: Include "character.h" instead of "charset.h", don't
13659 include "coding.h".
13660 (Fset_buffer_multibyte): Adjust for UTF-8.
13661
13662 * buffer.h: EXFUN Fbuffer_live_p.
13663
13664 * callproc.c: Include "character.h" instead of "charset.h".
13665 (Fcall_process): Big change for the new code-conversion APIs.
13666
13667 * casetab.c: Include "character.h" instead of "charset.h".
13668 (set_canon, set_identity, shuffle): Adjust for the new
13669 map_char_table spec.
13670 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
13671 accessing the char table structure.
13672
13673 * chartab.c: New file that implements char table.
13674
13675 * category.c: Include "character.h".
13676 (copy_category_entry): New function.
13677 (copy_category_table): Call map_char_table and copy_category_entry.
13678 (Fmake_category_table): Initialize all top-level slots.
13679 (char_category_set): New function.
13680 (modify_lower_category_set): Delete.
13681 (Fmodify_category_entry): Call char_table_ref_and_range.
13682
13683 * category.h (CATEGORY_SET): Just call char_category_set.
13684
13685 * ccl.c: Include "character.h".
13686 (Qccl, Qcclp): New variables.
13687 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
13688 it's less than 256.
13689 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
13690 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
13691 and DST type.
13692 (ccl_driver): Change types of argument, adjust code accordingly.
13693 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
13694 ccl_driver.
13695 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
13696
13697 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
13698 New members src_multibyte, dst_multibyte, consumed, and produced.
13699 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
13700 (CODING_SPEC_CCL_PROGRAM): New macro.
13701 (ccl_driver): Update prototype.
13702 (Qccl, Qcclp, Fccl_program_p): Extern them.
13703 (CHECK_CCL_PROGRAM): New macro.
13704
13705 * character.c, character.h, chartab.c: New files.
13706
13707 * charset.c: Mostly re-written. Move character and multibyte sequence
13708 handling codes to character.c.
13709
13710 * charset.h: Mostly re-written. Move character and multibyte sequence
13711 handling codes to character.h.
13712
13713 * coding.c, coding.h: Mostly re-written.
13714
13715 * composite.c: Include "character.h" instead of "charset.h".
13716 (CHAR_WIDTH): Move to character.h.
13717 (HASH_KEY, HASH_VALUE): Delete.
13718
13719 * composite.h (enum composition_method): Change order of enumeration
13720 symbols.
13721
13722 * data.c: Include "character.h" instead of "charset.h".
13723 (Faref): Call CHAR_TABLE_REF for a char table.
13724 (Faset): Call CHAR_TABLE_SET for a char table.
13725
13726 * dispextern.h (free_realized_face, check_face_attribytes)
13727 (generate_ascii_font): Extern them.
13728 (free_realized_multibyte_face): Delete extern.
13729
13730 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
13731 table structure.
13732
13733 * editfns.c: Include "character.h" instead of "charset.h".
13734 (Fchar_to_string): Always call CHAR_STRING.
13735
13736 * emacs.c (main): Call init_charset_once, init_charset,
13737 syms_of_chartab, and syms_of_character.
13738
13739 * fileio.c: Include "character.h" instead of "charset.h".
13740 (Finsert_file_contents): Big change for the new code-conversion API.
13741 (choose_write_coding_system, Fwrite_region): Likewise.
13742 (build_annotations_2): Delete.
13743 (e_write): Big change for the new code-conversion API.
13744
13745 * fns.c: Include "character.h" instead of "charset.h".
13746 (copy_sub_char_table): Move to chartab.c.
13747 (Fcopy_sequence): Call copy_char_table for a char table.
13748 (concat): Delete codes calling count_multibyte.
13749 (string_char_to_byte, string_byte_to_char): Adjust for the new
13750 multibyte form.
13751 (internal_equal): Adjust for the change of char table structure.
13752 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
13753 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
13754 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
13755 (char_table_translate, optimize_sub_char_table)
13756 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
13757 chartab.c.
13758 (char_table_ref_and_index): Delete.
13759 (HASH_KEY, HASH_VALUE): Move to lisp.h.
13760 (Fmd5): Call preferred_coding_system instead of accessing
13761 Vcoding_category_list. Adjust for the new code-conversion API.
13762 (syms_of_fns): Move defsubr for char table related functions to
13763 chartab.c.
13764
13765 * fontset.c: Mostly re-written.
13766
13767 * fontset.h (struct font_info): Change type of the member encoding_type.
13768 (enum FONT_SPEC_INDEX): New enum.
13769 (fontset_font_pattern, fs_load_font): Update prototype.
13770 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
13771
13772 * indent.c: Include "character.h" instead of "charset.h".
13773 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
13774
13775 * insdel.c: Include "character.h" instead of "charset.h".
13776 (copy_text): Don't refer to Vnonascii_translation_table.
13777 (insert_from_gap): New function.
13778
13779 * keyboard.c: Include "character.h" instead of "charset.h".
13780 (command_loop_1): Never call direct_output_forward_char before
13781 a non-ASCII character.
13782 (read_char): If Vkeyboard_translate_table is a char table, always
13783 translate a character.
13784
13785 * keymap.c: Include "character.h".
13786 (store_in_keymap): Handle the case that IDX is a cons.
13787 (Fdefine_key): Handle the case that KEY is a cons and the car part
13788 is also a cons (range).
13789 (push_key_description): Adjust for the new character code.
13790 (describe_vector): Call describe_char_table for a char table.
13791 (describe_char_table): New function.
13792
13793 * keymap.h (describe_char_table): Extern it.
13794
13795 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
13796 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
13797 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
13798 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
13799 Delete.
13800 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
13801 structure.
13802 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
13803 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
13804 (CHARTAB_SIZE_BITS_3): New macros.
13805 (chartab_size): Extern it.
13806 (struct Lisp_Char_Table): Re-design.
13807 (struct Lisp_Sub_Char_Table): New structure.
13808 (HASH_KEY, HASH_VALUE): Move from fns.c.
13809 (CHARACTERBITS): Define as 22.
13810 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
13811 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
13812 (GC_SUB_CHAR_TABLE_P): New macro.
13813 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
13814 (code_convert_string_norecord): Deleted extern.
13815 (init_character_once, syms_of_character, init_charset)
13816 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
13817
13818 * lread.c: Include "character.h".
13819 (read_multibyte): New arg NBYTES.
13820 (read_escape): Change the meaning of returned *BYTEREP.
13821 (to_multibyte): Delete.
13822 (read1): Adjust the handling of char table and string.
13823
13824 * print.c: Include "character.h" instead of "charset.h".
13825 (print_string): Convert 8-bit raw bytes to octal form by
13826 string_escape_byte8.
13827 (print_object): Adjust for the new multibyte form. Print 8-bit
13828 raw bytes always in octal form. Handle sub char table correctly.
13829
13830 * process.c: Include "character.h" instead of "charset.h".
13831 (read_process_output, send_process): Adjust for the new
13832 code-conversion API.
13833
13834 * puresize.h (BASE_PURESIZE): Increase.
13835
13836 * regex.c: Include "character.h" instead of "charset.h".
13837 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
13838 (regex_compile): Accept a range whose starting and ending
13839 character have different leading bytes.
13840 (analyse_first): Adjust for the above change.
13841
13842 * search.c: Include "character.h" instead of "charset.h".
13843 (search_buffer, boyer_moore): Adjust for the new multibyte form.
13844 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
13845
13846 * syntax.c: Include "character.h" instead of "charset.h".
13847 (syntax_parent_lookup): Delete.
13848 (Fmodify_syntax_entry): Accept a cons as CHAR.
13849 (skip_chars): Adjust for the new multibyte form.
13850 (init_syntax_once): Call char_table_set_range instead of directly
13851 accessing the structure of a char table.
13852
13853 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
13854 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
13855 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
13856 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
13857
13858 * term.c: Include "buffer.h" and "character.h".
13859 (encode_terminal_code, write_glyphs): Adjust for the new
13860 code-conversion API.
13861 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
13862
13863 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
13864
13865 * xdisp.c: Include "character.h".
13866 (get_next_display_element): Adjust for the new multibyte form.
13867 (disp_char_vector): Adjust for the new char table structure.
13868 (decode_mode_spec_coding): Adjust for the new structure of
13869 coding system.
13870 (decode_mode_spec): Adjust for the new code-conversion API.
13871
13872 * xfaces.c: Include "character.h" instead of "charset.h".
13873 (load_face_font): Adjust for the change of choose_face_font and
13874 FS_LOAD_FONT.
13875 (generate_ascii_font): New function.
13876 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
13877 (set_font_frame_param): Adjust for the change of choose_face_font.
13878 (free_realized_face): Make it public.
13879 (free_realized_faces_for_fontset): Rename from
13880 free_realized_multibyte_face. Free also faces realized for ASCII.
13881 (choose_face_font): Change arguments. Adjust for the change of
13882 fontset_font_pattern and FS_LOAD_FONT.
13883
13884 * xfns.c: Include "character.h".
13885 (x_encode_text): Adjust for the new code-conversion API.
13886
13887 * xselect.c: Don't include "charset.h".
13888 (selection_data_to_lisp_data): Adjust for the new code conversion API.
13889
13890 * xterm.c: Include "character.h".
13891 (x_encode_char): New argument CHARSET. Change caller.
13892 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
13893 Call ENCODE_CHAR instead of SPLIT_CHAR.
13894 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
13895 CHAR_WIDTH instead of CHARSET_WIDTH.
13896 (XTread_socket): Adjust for the new code-conversion API.
13897 (x_new_font): Adjust for the change of FS_LOAD_FONT.
13898 (x_load_font): Adjust for the change of struct font.
13899
139002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13901
13902 * xfaces.c (face_at_buffer_position): Remove unused vars.
13903
139042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13905
13906 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
13907 Fix overflow checking.
13908
139092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13910
13911 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
13912 Cancel previous change.
13913
139142008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13915
13916 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
13917 ccl->eight_bit_control. Fix check for buffer overflow.
13918 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
13919 (ccl_driver): Initialize extra_bytes to 0.
13920
139212008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13922
13923 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
13924 return it ORed with ctrl_modifier.
13925
139262008-01-29 Miles Bader <miles@gnu.org>
13927
13928 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
13929
139302008-01-28 Jason Rumney <jasonr@gnu.org>
13931
13932 * w32.c (stat): Don't double check for networked drive.
13933
139342008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
13935
13936 * window.c (run_window_configuration_change_hook): New function.
13937 Code extracted from set_window_buffer. Set the selected frame.
13938 (set_window_buffer): Use it.
13939 * window.h (run_window_configuration_change_hook): Declare.
13940 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
13941
13942 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
13943
139442008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
13945
13946 * Makefile.in: Remove references to unused macros.
13947
139482008-01-26 Eli Zaretskii <eliz@gnu.org>
13949
13950 * w32.c (g_b_init_get_sid_sub_authority)
13951 (g_b_init_get_sid_sub_authority_count): New static variables.
13952 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
13953 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
13954 (init_user_info): Use them to retrieve uid and gid.
13955 Use 500/513, the Windows defaults, as Administrator's uid/gid.
13956 (fstat): Use pw_uid and pw_gid from the_passwd structure for
13957 st_uid and st_gid of the file.
13958
139592008-01-26 Jason Rumney <jasonr@gnu.org>
13960
13961 * w32.c (logon_network_drive): New function.
13962 (stat): Use it.
13963
139642008-01-26 Chong Yidong <cyd@stupidchicken.com>
13965
13966 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
13967 invisible text covered with an ellipsis.
13968
139692008-01-25 Richard Stallman <rms@gnu.org>
13970
13971 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
13972 jump back to beginning. Move some other initializations after that.
13973 (Qwindow_text_change_functions, Vwindow_text_change_functions):
13974 New variables.
13975 (syms_of_xdisp): Init them.
13976
13977 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
13978
13979 * buffer.c (reset_buffer_local_variables):
13980 Implement `permanent-local-hook'.
13981 (Qpermanent_local_hook): New variable.
13982 (syms_of_buffer): Init and staticpro it.
13983
139842008-01-25 Michael Albinus <michael.albinus@gmx.de>
13985
13986 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
13987
139882008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
13989
13990 * fns.c (Fclrhash): Return TABLE.
13991
139922008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13993
13994 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
13995 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
13996 is set even without positional changes.
13997 (x_scroll_bar_clear): Set bar->redraw_needed_p.
13998
13999 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14000
140012008-01-23 Jason Rumney <jasonr@gnu.org>
14002
14003 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14004
14005 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14006 the unicode range available in MULE by locale-coding-system.
14007 Improve dbcs lead byte detection. Set event timestamp and modifiers
14008 earlier.
14009
140102008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14011
14012 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14013 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14014 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14015 when used on child processes.
14016
140172008-01-21 Michael Albinus <michael.albinus@gmx.de>
14018
14019 * dbusbind.c (Fdbus_method_return_internal): Rename from
14020 Fdbus_method_return.
14021 (Fdbus_unregister_object): Move to dbus.el.
14022 (Fdbus_call_method, Fdbus_method_return_internal)
14023 (Fdbus_send_signal): Improve debug messages.
14024
140252008-01-20 Martin Rudalics <rudalics@gmx.at>
14026
14027 * undo.c (undo_inhibit_record_point): New variable.
14028 (syms_of_undo): Initialize it.
14029 (record_point): Don't record point when undo_inhibit_record_point
14030 is set.
14031
140322008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14033
14034 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14035
14036 * xdisp.c (Qauto_hscroll_mode): New var.
14037 (syms_of_xdisp): Initialize it.
14038 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14039 window's buffer.
14040 (hscroll_windows): Don't check automatic_hscrolling_p here.
14041
14042 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14043 vscroll if we're setting window-buffer to the value it already has.
14044
140452008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14046
14047 * m/intel386.h: Remove references to XENIX.
14048
140492008-01-17 Andreas Schwab <schwab@suse.de>
14050
14051 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14052 instead of HAVE_X86_64_LIB64_DIR.
14053 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14054
140552008-01-17 Glenn Morris <rgm@gnu.org>
14056
14057 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14058 to HAVE_X86_64_LIB64_DIR.
14059
140602008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
14061
14062 * s/irix3-3.h:
14063 * s/irix4-0.h:
14064 * s/386-ix.h:
14065 * s/domain.h:
14066 * s/hpux9-x11r4.h:
14067 * s/hpux9shxr4.h: Remove files for systems no longer supported.
14068
14069 * sysdep.c: Remove code containing references to symbols defined
14070 by unsupported systems.
14071
140722008-01-16 Glenn Morris <rgm@gnu.org>
14073
14074 * coding.c (select-safe-coding-system-function): Doc fix.
14075
140762008-01-15 Glenn Morris <rgm@gnu.org>
14077
14078 * config.in: Revert 2008-01-13 change: this is a generated file.
14079
140802008-01-13 Tom Tromey <tromey@redhat.com>
14081
14082 * lisp.h: Fix typo.
14083
140842008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14085
14086 * m/sequent-ptx.h:
14087 * m/sequent.h:
14088 * s/ptx.h:
14089 * s/ptx4-2.h:
14090 * s/ptx4.h: Remove files for systems no longer supported.
14091
14092 * callproc.c (Fcall_process): Fix previous change.
14093
140942008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14095
14096 * unexsunos4.c: Remove file, system not supported anymore.
14097
14098 * m/mips.h:
14099 * m/intel386.h:
14100 * callproc.c:
14101 * config.in:
14102 * ecrt0.c:
14103 * emacs.c:
14104 * fileio.c:
14105 * frame.c:
14106 * getpagesize.h:
14107 * keyboard.c:
14108 * lread.c:
14109 * process.c:
14110 * puresize.h:
14111 * sysdep.c:
14112 * systty.h:
14113 * syswait.h:
14114 * unexec.c:
14115 * xdisp.c:
14116 * alloc.c: Remove code containing references to symbols defined by
14117 unsupported systems.
14118
141192008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14120
14121 * coding.c (detect_coding_mask): Fix previous change.
14122
141232008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14124
14125 * coding.c (detect_coding_iso2022): New arg
14126 latin_extra_code_state. Allow Latin extra codes only
14127 when *latin_extra_code_state is nonzero.
14128 (detect_coding_mask): If there is a NULL byte, detect the encoding
14129 as UTF-16 or binary. If Latin extra codes exist, detect the
14130 encoding as ISO-2022 only when there's no other proper encoding is
14131 found.
14132
141332008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14134
14135 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14136 #ifdef MAC_OS.
14137
141382008-01-08 Richard Stallman <rms@gnu.org>
14139
14140 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14141
141422008-01-06 Nick Roberts <nickrob@snap.net.nz>
14143
14144 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14145 menu bar in parentheses.
14146
141472008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14148
14149 * m/7300.h:
14150 * m/acorn.h:
14151 * m/alliant-2800.h:
14152 * m/alliant.h:
14153 * m/alliant1.h:
14154 * m/alliant4.h:
14155 * m/altos.h:
14156 * m/amdahl.h:
14157 * m/apollo.h:
14158 * m/att3b.h:
14159 * m/aviion-intel.h:
14160 * m/aviion.h:
14161 * m/celerity.h:
14162 * m/clipper.h:
14163 * m/cnvrgnt.h:
14164 * m/convex.h:
14165 * m/cydra5.h:
14166 * m/delta88k.h:
14167 * m/dpx2.h:
14168 * m/dual.h:
14169 * m/elxsi.h:
14170 * m/f301.h:
14171 * m/gould-np1.h:
14172 * m/gould.h:
14173 * m/i860.h:
14174 * m/ibmps2-aix.h:
14175 * m/ibmrt-aix.h:
14176 * m/ibmrt.h:
14177 * m/irist.h:
14178 * m/is386.h:
14179 * m/isi-ov.h:
14180 * m/mega68.h:
14181 * m/mg1.h:
14182 * m/news-r6.h:
14183 * m/news-risc.h:
14184 * m/news.h:
14185 * m/nh3000.h:
14186 * m/nh4000.h:
14187 * m/ns16000.h:
14188 * m/ns32000.h:
14189 * m/nu.h:
14190 * m/orion.h:
14191 * m/orion105.h:
14192 * m/paragon.h:
14193 * m/pfa50.h:
14194 * m/plexus.h:
14195 * m/pyramid.h:
14196 * m/pyrmips.h:
14197 * m/sh3el.h:
14198 * m/sps7.h:
14199 * m/sr2k.h:
14200 * m/stride.h:
14201 * m/sun1.h:
14202 * m/sun2.h:
14203 * m/sun3-68881.h:
14204 * m/sun3-fpa.h:
14205 * m/sun3-soft.h:
14206 * m/sun3.h:
14207 * m/sun386.h:
14208 * m/symmetry.h:
14209 * m/tad68k.h:
14210 * m/tahoe.h:
14211 * m/targon31.h:
14212 * m/tek4300.h:
14213 * m/tekxd88.h:
14214 * m/tower32.h:
14215 * m/tower32v3.h:
14216 * m/ustation.h:
14217 * m/wicat.h:
14218 * m/xps100.h:
14219 * s/cxux.h:
14220 * s/cxux7.h:
14221 * s/dgux.h:
14222 * s/dgux4.h:
14223 * s/dgux5-4-3.h:
14224 * s/dgux5-4r2.h:
14225 * s/esix.h:
14226 * s/esix5r4.h:
14227 * s/hiuxmpp.h:
14228 * s/hiuxwe2.h:
14229 * s/iris3-5.h:
14230 * s/iris3-6.h:
14231 * s/isc2-2.h:
14232 * s/isc3-0.h:
14233 * s/isc4-0.h:
14234 * s/isc4-1.h:
14235 * s/newsos5.h:
14236 * s/newsos6.h:
14237 * s/osf1.h:
14238 * s/osf5-0.h:
14239 * s/riscix1-1.h:
14240 * s/riscix12.h:
14241 * s/sco4.h:
14242 * s/sco5.h:
14243 * s/sunos4-0.h:
14244 * s/sunos4-1.h:
14245 * s/sunos413.h:
14246 * s/sunos4shr.h:
14247 * s/umax.h:
14248 * s/unipl5-2.h:
14249 * s/xenix.h:
14250 * cxux-crt0.s:
14251 * unexapollo.c:
14252 * unexconvex.c:
14253 * unexenix.c:
14254 * unexsni.c: Remove files for systems no longer supported.
14255
14256 * m/intel386.h: Remove references to unsupported systems.
14257
14258 * w32.c (get_emacs_configuration): Remove reference to i860.
14259
14260 * sysdep.c: Remove dead code.
14261
142622008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14263
14264 * s/rtu.h:
14265 * m/masscomp.h: Remove files. Platform is obsolete.
14266
142672008-01-04 Michael Albinus <michael.albinus@gmx.de>
14268
14269 * dbusbind.c (Fdbus_method_return): New function.
14270 (xd_read_message): Add the serial number to the event.
14271 (Fdbus_register_method): Activate the function.
14272
142732008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14274
14275 * keyboard.c (read_key_sequence): Fix typo.
14276
142772008-01-03 Michael Albinus <michael.albinus@gmx.de>
14278
14279 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14280 (xd_signature, xd_append_arg): Handle element type detection for
14281 empty arrays.
14282 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
14283 SDATA () calls; this must be solved more general.
14284 (Fdbus_register_signal): Use SBYTES instead of strlen.
14285
142862008-01-03 Magnus Henoch <magnus@zemdatav>
14287
14288 * dbusbind.c (xd_append_arg): Use unsigned char instead of
14289 unsigned int for byte values (necessary for big-endian platform).
14290 (Fdbus_call_method): Handle the case of no returned arguments.
14291
142922007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
14293
14294 * dbusbind.c (xd_read_message): Use non-static input_event struct.
14295
142962007-12-31 Magnus Henoch <mange@freemail.hu>
14297
14298 * dbusbind.c (xd_signature): Signature of variant is just "v".
14299
143002007-12-30 Michael Albinus <michael.albinus@gmx.de>
14301
14302 * dbusbind.c: Fix several errors and compiler warnings.
14303 Reported by Tom Tromey <tromey@redhat.com>.
14304 (XD_ERROR, XD_DEBUG_MESSAGE)
14305 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
14306 (xd_append_arg): Part for basic D-Bus types rewritten.
14307 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
14308 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
14309 appropriate.
14310 (xd_read_message): Return Qnil. Don't signal an error; it is not
14311 useful during event reading.
14312 (Fdbus_register_signal): Signal an error if the check for
14313 FUNCTIONP fails.
14314 (Fdbus_register_method): New function. The implementation is not
14315 complete, the call of the function signals an error therefore.
14316 (Fdbus_unregister_object): New function, renamed from
14317 Fdbus_unregister_signal. The initial check signals an error, if
14318 the object is not well formed.
14319
143202007-12-30 Richard Stallman <rms@gnu.org>
14321
14322 * textprop.c (get_char_property_and_overlay):
14323 Signal error if POSITION is out of range in a buffer.
14324
143252007-12-29 Martin Rudalics <rudalics@gmx.at>
14326
14327 * w32fns.c (Fx_create_frame): Make copy of frame parameters
14328 because the original parameters are in pure storage now.
14329
143302007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14331
14332 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
14333
143342007-12-22 Eli Zaretskii <eliz@gnu.org>
14335
14336 * callint.c (syms_of_callint) <command-history>: Add reference to
14337 history-length in the doc string.
14338
143392007-12-17 Jason Rumney <jasonr@gnu.org>
14340
14341 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
14342 before passing as wParam.
14343
143442007-12-22 Michael Albinus <michael.albinus@gmx.de>
14345
14346 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
14347 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
14348 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
14349 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
14350 as number.
14351 (Fdbus_call_method): Fix docstring.
14352
143532007-12-21 Michael Albinus <michael.albinus@gmx.de>
14354
14355 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
14356 New macros.
14357 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
14358 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
14359 Simplify.
14360 (xd_signature): New function.
14361 (xd_append_arg): Compute also signatures. Major rewrite.
14362 (xd_retrieve_arg): Make debug messages friendly.
14363 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
14364 Check for signatures of arguments.
14365
143662007-12-19 Michael Albinus <michael.albinus@gmx.de>
14367
14368 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
14369 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
14370 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
14371 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
14372 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
14373 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
14374 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
14375 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
14376 (xd_retrieve_value): Remove. Functionality included in ...
14377 (xd_append_arg): New function.
14378 (Fdbus_call_method, Fdbus_send_signal): Apply it.
14379
143802007-12-16 Michael Albinus <michael.albinus@gmx.de>
14381
14382 * dbusbind.c (top): Include <stdio.h>.
14383 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
14384 dbus_message_new_method_call and dbus_message_new_signal.
14385 (Fdbus_register_signal): Rename unique_name to uname.
14386 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
14387 non-existing unique name. Fix typos in matching rule. Return an
14388 object which is useful in Fdbus_unregister_signal.
14389 (Fdbus_unregister_signal): Reimplementation, in order to remove
14390 only the corresponding entry.
14391 (Vdbus_registered_functions_table): Change the order of entries.
14392 Apply these changes in xd_read_message and Fdbus_register_signal.
14393
143942007-12-16 Andreas Schwab <schwab@suse.de>
14395
14396 * fileio.c (Finsert_file_contents): Fix overflow check to not
14397 depend on undefined integer overflow.
14398
143992007-12-14 Jason Rumney <jasonr@gnu.org>
14400
14401 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
14402 for characters above 127.
14403
144042007-12-13 Jason Rumney <jasonr@gnu.org>
14405
14406 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
14407 before dereferencing array.
14408 (lookup_vk_code): Remove zero comparison.
14409
144102007-12-14 Michael Albinus <michael.albinus@gmx.de>
14411
14412 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
14413 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
14414 Use `unsigned int' instead of `uint'.
14415 (xd_read_message, Fdbus_register_signal): Split expressions into
14416 multiple lines before operators "&&" and "||", according to the
14417 GNU Coding Standards.
14418
144192007-12-14 Eli Zaretskii <eliz@gnu.org>
14420
14421 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
14422
144232007-12-12 Juri Linkov <juri@jurta.org>
14424
14425 * buffer.c (Frename_buffer): In interactive spec replace
14426 `read-buffer' with `read-string' that uses `buffer-name-history'
14427 as history, and the current buffer's name as default.
14428
144292007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
14430
14431 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
14432 manipulating the backtrace manually.
14433 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
14434 (struct backtrace, backtrace_list): Remove.
14435 (command_loop_1): Remove dead var `no_direct'.
14436
14437 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
14438 preserve non-built-in buffer-local variables.
14439 (Fkill_all_local_variables): Don't re-create&re-set permanent
14440 buffer-local variables.
14441
144422007-12-09 Juri Linkov <juri@jurta.org>
14443
14444 * buffer.c (Frename_buffer): Change interactive spec from "s" to
14445 Lisp code that uses `read-buffer' with current buffer as default.
14446
144472007-12-08 Michael Albinus <michael.albinus@gmx.de>
14448
14449 * dbusbind.c (xd_read_message): Generate an event for every
14450 registered handler. There might be several handlers registered
14451 for the same signal.
14452 (Fdbus_register_signal): Don't overwrite a registration for the
14453 same signal. Add a new registration if handlers are different.
14454 (Vdbus_registered_functions_table): Rework doc string.
14455
144562007-12-07 Michael Albinus <michael.albinus@gmx.de>
14457
14458 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
14459 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
14460 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
14461 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
14462 Unify argument lists.
14463 (xd_read_message, Fdbus_register_signal): Reorder and extend event
14464 arguments and hash table keys. Use unique name for service.
14465 (Fdbus_unregister_signal): Remove checks.
14466 (Vdbus_registered_functions_table): Fix doc string.
14467
144682007-12-05 Magnus Henoch <mange@freemail.hu>
14469
14470 * process.c (make_process): Initialize pty_flag to 0.
14471
144722007-12-05 Jason Rumney <jasonr@gnu.org>
14473
14474 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
14475 specified XBMs.
14476
144772007-12-05 Richard Stallman <rms@gnu.org>
14478
14479 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
14480
144812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14482
14483 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
14484 New variable.
14485 (mac_try_close_socket) [MAC_OSX]: New function.
14486 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
14487 Update cfsockets_for_select. Replace invalid CFRunLoop source.
14488
14489 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
14490 Use mac_try_close_socket.
14491
144922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14493
14494 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
14495 reloc_base.
14496 (copy_dysymtab): Compute relocation base here.
14497 (rebase_reloc_address) [__ppc64__]: New function.
14498 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
14499 changed.
14500
145012007-12-05 Jason Rumney <jasonr@gnu.org>
14502
14503 * w32proc.c (sys_spawnve): Quote args with wildcards.
14504
145052007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14506
14507 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
14508 __objc_* sections.
14509 (unrelocate) [_LP64]: Set relocation base to address of data segment.
14510
145112007-12-05 Michael Albinus <michael.albinus@gmx.de>
14512
14513 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
14514 Move check for Vdbus_registered_functions_table to
14515 xd_read_queued_messages.
14516 (xd_read_queued_messages): Protect xd_read_message calls by
14517 internal_condition_case_1.
14518
145192007-12-04 Michael Albinus <michael.albinus@gmx.de>
14520
14521 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
14522 Qdbus_system_bus and Qdbus_session_bus, respectively.
14523 (Vdbus_intern_symbols): Remove.
14524 (Vdbus_registered_functions_table): New hash table.
14525 (XD_SYMBOL_INTERN_SYMBOL): Remove.
14526 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
14527 Rewrite in order to manage registered functions by hash table
14528 Vdbus_registered_functions_table.
14529
145302007-12-03 Jan Djärv <jan.h.d@swipnet.se>
14531
14532 * xterm.c: Update URL to Window Manager Specification in comment.
14533
145342007-12-02 Michael Albinus <michael.albinus@gmx.de>
14535
14536 * config.in (HAVE_DBUS): Add.
14537
14538 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
14539 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
14540 (obj): Add $(DBUS_OBJ).
14541 (LIBES): Add $(DBUS_LIBS).
14542 (dbusbind.o): New target.
14543
14544 * dbusbind.c: New file.
14545
14546 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
14547
14548 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
14549 (Qdbus_event): New Lisp symbol.
14550 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
14551 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 14552 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
14553
14554 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
14555
145562007-12-01 Richard Stallman <rms@gnu.org>
14557
14558 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
14559
145602007-11-30 Jason Rumney <jasonr@gnu.org>
14561
14562 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
14563 (w32con_reset_terminal_modes): Clear screen buffer.
14564 (w32_face_attributes): Don't use color indexes that are out of range.
14565 Only reverse the default colors.
14566
14567 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
14568 WINDOWSNT.
14569
14570 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
14571
145722007-11-29 Jason Rumney <jasonr@gnu.org>
14573
14574 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
14575 (w32_face_attributes): Use Vtty_defined_color_alist to determine
14576 if the terminal colors are initialized.
14577 (unspecified_fg, unspecified_bg): Remove unused declarations.
14578
145792007-11-29 Andreas Schwab <schwab@suse.de>
14580
14581 * keyboard.c (apply_modifiers): Fix typo.
14582
145832007-11-29 Richard Stallman <rms@gnu.org>
14584
14585 * keymap.c (Fcurrent_local_map): Doc fix.
14586
145872007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
14588
14589 * s/gnu-kfreebsd.h: New file.
14590
145912007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
14594 Don't cast redundantly.
14595
14596 * keyboard.c (KEY_TO_CHAR): New macro.
14597 (parse_modifiers, apply_modifiers): Accept integer arguments.
14598 (read_key_sequence): Use them to unify the "shift->unshift" mapping
14599 for chars and symbol keys.
14600 After doing such remapping, apply function-key-map again.
14601
146022007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
14603
14604 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
14605 compiled anymore.
14606
146072007-11-26 Andreas Schwab <schwab@suse.de>
14608
14609 * process.c (list_processes_1): Fix indentation level of the
14610 command column.
14611
146122007-11-23 Andreas Schwab <schwab@suse.de>
14613
14614 * editfns.c (Fformat): Handle %c specially since it requires the
14615 argument to be of type int.
14616
146172007-11-23 Markus Triska <markus.triska@gmx.at>
14618
14619 * emacs.c (main): Call init_editfns before init_process, since
14620 init_process sets Vprocess_connection_type depending on OS release.
14621
146222007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
14623
14624 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
14625 (find_symbol_value): Use do_symval_forwarding.
14626
14627 * data.c (set_internal): Set the value in the `cons-cell' (for
14628 Buffer_Local_values) not only for frame-local variables.
14629
146302007-11-22 Andreas Schwab <schwab@suse.de>
14631
14632 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
14633 values to sprintf.
14634 * keymap.c (Fsingle_key_description): Likewise.
14635 * print.c (print_object): Likewise.
14636
146372007-11-22 Jan Djärv <jan.h.d@swipnet.se>
14638
14639 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
14640 file for image is nil.
14641
146422007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
14643
14644 * term.c: Include stdarg.h.
14645 (fatal): Implement using varargs.
14646 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
14647
146482007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14649
14650 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
14651 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
14652 Update call to buffer_slot_type_mismatch.
14653 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
14654 (buffer_slot_type_mismatch): Update.
14655 * buffer.c (buffer_local_types): Remove.
14656 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
14657 (defvar_per_buffer): Set the type in the buffer_objfwd.
14658
146592007-11-21 Jason Rumney <jasonr@gnu.org>
14660
14661 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
14662 CreateFileMapping returns NULL on failure.
14663
146642007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14665
14666 * search.c (Fset_match_data): Remove the `evaporate' feature.
14667 (unwind_set_match_data): Don't use the `evaporate' feature.
14668
146692007-11-21 Jason Rumney <jasonr@gnu.org>
14670
14671 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
14672
14673 * w32console.c (w32con_write_glyphs): Remove unused variables.
14674
146752007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
14676
14677 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
14678
14679 * s/darwin.h (MULTI_KBOARD): Remove.
14680
14681 * macfns.c (x_create_tip_frame, Fx_create_frame)
14682 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
14683
146842007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
14685
14686 * buffer.c (Fbuffer_local_value): Remove redundant test.
14687 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
14688 than in `current-buffer' to match the comment.
14689 Do the swap using swap_in_global_binding.
14690
14691 * data.c (store_symval_forwarding, set_internal):
14692 * eval.c (specbind): Remove dead code.
14693
14694 * coding.c (detect_coding, Fupdate_coding_systems_internal):
14695 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
14696 Since we do not want to see internal Lisp_*fwd objects here.
14697
146982007-11-18 Jan Djärv <jan.h.d@swipnet.se>
14699
14700 * sysdep.c (init_system_name): Use getaddrinfo if available.
14701
14702 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
14703 (x_scroll_bar_note_movement): start, end, with, height in struct
14704 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
14705
147062007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
14707
14708 * puresize.h (BASE_PURESIZE): Increase to 1190000.
14709
147102007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
14711
14712 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
14713 This undoes Richard's change of 14-Oct-2002.
14714
14715 * alloc.c (allocate_other_vector):
14716 * lisp.h (allocate_other_vector): Remove.
14717
14718 * window.c (struct save_window_data): Move non-lisp data to the end
14719 and make it `int' rather than Lisp_Object.
14720 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
14721 Done wrap/unwrap integer values.
14722 (Fset_window_configuration, compare_window_configurations):
14723 Update use of fields to their new types.
14724
14725 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
14726 Turn integer fields into `int'. Merge x_window_low and x_window_high.
14727 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
14728 (SET_SCROLL_BAR_X_WINDOW): Remove.
14729 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
14730 Access the new x_window field directly.
14731 * xterm.c (x_scroll_bar_create): Use a pseudovector.
14732 Don't wrap/unwrap integers into Lisp_Objects.
14733 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
14734 (x_scroll_bar_report_motion):
14735 Don't wrap/unwrap integers into Lisp_Objects.
14736 (x_term_init): Use SDATA.
14737 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
14738 (x_scroll_bar_set_handle, x_scroll_bar_remove)
14739 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
14740 (x_scroll_bar_report_motion, x_scroll_bar_clear):
14741 * xfns.c (x_set_background_color):
14742 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
14743 Access the new x_window field directly.
14744
14745 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
14746 (allocate_pseudovector): Make non-static.
14747
14748 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
14749 (allocate_pseudovector): Declare.
14750 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
14751
147522007-11-15 Andreas Schwab <schwab@suse.de>
14753
14754 * editfns.c (Fformat): Correctly format EMACS_INT values.
14755 Also take precision into account when formatting an integer.
14756
14757 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
14758
147592007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
14760
14761 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
14762 (syms_of_keyboard): Defsubr it.
14763
14764 * data.c (swap_in_global_binding): Fix longstanding bug where
14765 store_symval_forwarding was not called with the right second argument,
14766 thus causing objfwd-ing from being dropped.
14767
147682007-11-14 Juanma Barranquero <lekktu@gmail.com>
14769
14770 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
14771 (Fx_display_pixel_height, Fx_display_planes)
14772 (Fx_display_color_cells, Fx_server_max_request_size)
14773 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14774 (Fx_display_visual_class, Fx_display_save_under):
14775 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
14776 (Fx_display_pixel_height, Fx_display_planes)
14777 (Fx_display_color_cells, Fx_server_max_request_size)
14778 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14779 (Fx_display_mm_height, Fx_display_mm_width)
14780 (Fx_display_backing_store, Fx_display_visual_class)
14781 (Fw32_select_font, Fx_display_save_under):
14782 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
14783 (Fx_display_pixel_height, Fx_display_planes)
14784 (Fx_display_color_cells, Fx_server_max_request_size)
14785 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14786 (Fx_display_save_under): Fix typos in docstrings.
14787
147882007-11-14 Juanma Barranquero <lekktu@gmail.com>
14789
14790 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
14791 corresponding to deleted entries; they are an implementation detail.
14792 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
14793 Remove variables.
14794 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
14795 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
14796 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
14797 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
14798 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
14799 (Fw32_define_rgb_color, Fw32_load_color_file)
14800 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
14801 Fix typos in docstrings.
14802 (Fx_server_version): Reflow docstring.
14803 (Fw32_shell_execute): Doc fixes.
14804
148052007-11-13 Juanma Barranquero <lekktu@gmail.com>
14806
14807 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
14808 if w32_parse_hot_key returned nil.
14809
148102007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
14813
148142007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 14815
aac0c6e3
MR
14816 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
14817
14818 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
14819
14820 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
14821 Remove W32_SCROLL_BAR_CLICK_EVENT.
14822
14823 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
14824 Add MULTIMEDIA_KEY_EVENT.
14825
14826 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
14827 (lispy_multimedia_keys) [WINDOWSNT]: New array.
14828 (make_lispy_event) [WINDOWSNT]: Use it to translate
14829 MULTIMEDIA_KEY_EVENT.
14830
14831 * w32term.h (WM_APPCOMMAND): Define if not already.
14832 (GET_APPCOMMAND_LPARAM): Likewise.
14833
14834 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
14835 WM_APPCOMMAND.
14836
14837 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
14838 (syms_of_w32fns): Export and initialize it.
14839 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
14840
148412007-11-09 Chong Yidong <cyd@stupidchicken.com>
14842
14843 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
14844 twice.
14845
14846 * xdisp.c (handle_face_prop): Fix last change.
14847
148482007-11-09 Richard Stallman <rms@gnu.org>
14849
14850 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
14851 not just for after-strings and before-strings.
14852 Call face_for_overlay_string and pass the overlay to it.
14853 (handle_display_prop): Determine whether property came from an overlay.
14854 Pass OVERLAY arg to handle_single_display_spec.
14855 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
14856 (load_overlay_strings): Fill in it->string_overlays.
14857 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
14858
14859 * xfaces.c (face_for_overlay_string): Function renamed from
14860 face_at_buffer_position_no_overlays, and add arg OVERLAY.
14861
14862 * dispextern.h (struct it): New elt string_overlays.
14863 New elt from_overlay, also in stack.
14864 Rearrange a few elements.
14865 (face_for_overlay_string): Decl renamed from
14866 face_at_buffer_position_no_overlays, and add argument.
14867
148682007-11-09 Richard Stallman <rms@gnu.org>
14869
14870 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
14871 to get the base face for an overlay string.
14872
14873 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
14874
14875 * xfaces.c (face_at_buffer_position_no_overlays): New function.
14876
14877 * xdisp.c (handle_stop): Move some code out of loop.
14878
148792007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14880
14881 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
14882 Fix conversion from Lisp object to ATSUFontID.
14883
148842007-11-09 Jason Rumney <jasonr@gnu.org>
14885
14886 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
14887
148882007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14889
14890 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
14891 Don't assume regions are aligned to page boundary.
14892 (print_load_command_name): Add LC_UUID if defined.
14893
148942007-11-09 Richard Stallman <rms@gnu.org>
14895
14896 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
14897
148982007-11-07 Jason Rumney <jasonr@gnu.org>
14899
14900 * s/windows95.h: Remove.
14901
149022007-11-06 Jan Djärv <jan.h.d@swipnet.se>
14903
14904 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
14905 abort with a message on unhandled store_type values.
14906
149072007-11-01 Jan Djärv <jan.h.d@swipnet.se>
14908
14909 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
14910 Remove HAVE_X11R5 and HAVE_X11R4.
14911
149122007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14913
14914 * Makefile.in: Remove references to sunfns.c and sunfns.o.
14915
149162007-11-01 Johan Bockgård <bojohan@gnu.org>
14917
14918 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
14919 Don't set s->stippled_p here, since it has already been set by
14920 x_set_glyph_string_gc from x_draw_glyph_string.
14921
149222007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14923
14924 * sunfns.c: Remove file.
14925
14926 * m/sun386.h:
14927 * m/sun2.h:
14928 * m/sparc.h: Remove Sun windows code.
14929
149302007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
14931
14932 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
14933 (init_keyboard): Set current_kboard's window-system to nil.
14934 (tty_read_avail_input): Typo.
14935 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
14936
149372007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
14938
14939 * s/usg5-4.h:
14940 * s/usg5-3.h:
14941 * s/ptx.h:
14942 * m/is386.h:
14943 * m/ibmps2-aix.h:
14944 * Makefile.in: Remove all mentions of X10.
14945
14946 * dispnew.c (syms_of_display): Don't mention version 10.
14947
149482007-10-28 Juanma Barranquero <lekktu@gmail.com>
14949
14950 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
14951 ($(BLD)/abbrev.$(O)): Remove.
14952
149532007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14954
14955 Rewrite abbrev.c in Elisp.
14956 * image.c (Qcount): Don't declare as extern.
14957 (syms_of_image): Initialize and staticpro `Qcount'.
14958 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
14959 * emacs.c (main): Don't call syms_of_abbrev.
14960 * Makefile.in (obj): Remove abbrev.o.
14961 (abbrev.o): Remove.
14962 * abbrev.c: Remove.
14963
149642007-10-26 Martin Rudalics <rudalics@gmx.at>
14965
14966 * window.c (window_min_size_2): Don't count header-line.
14967
149682007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
14969
14970 * frame.h (struct frame): Move all bit fields after the first bit
14971 field to take advantage of the available space. Group all the
14972 chars together to reduce wasted space due to padding.
14973
149742007-10-26 Juanma Barranquero <lekktu@gmail.com>
14975
14976 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
14977
14978 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
14979 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
14980 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
14981 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
14982 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
14983 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
14984 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
14985 (last_marked, mark_object_loop_halt): Make static.
14986
14987 * frame.c (syms_of_frame) <delete-frame-functions>:
14988 Fix typo in docstring.
14989
149902007-10-25 Juanma Barranquero <lekktu@gmail.com>
14991
14992 * w32.c (init_environment): Fix tiny memory leak.
14993 (w32_get_resource): Remove unused variable `ok'.
14994
149952007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
14996
14997 Make `window-system' into a keyboard-local variable (rather than
14998 frame-local as done originally by multi-tty).
14999
15000 * keyboard.h (struct kboard): Add Vwindow_system.
15001 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15002 (mark_kboards): Mark Vwindow_system.
15003
15004 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15005 (init_display): Don't set the obsolete `window-system' frame-param.
15006
15007 * xterm.c (x_term_init):
15008 * w32term.c (w32_create_terminal):
15009 * term.c (init_tty): Set Vwindow_system.
15010 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15011 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15012
15013 * xfns.c (Fx_create_frame, x_create_tip_frame):
15014 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15015 * macfns.c (Fx_create_frame):
15016 Don't set the obsolete `window-system' frame-param.
15017
15018 * frame.h (Qwindow_system): Remove.
15019 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15020 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15021
150222007-10-24 Richard Stallman <rms@gnu.org>
15023
15024 * frame.c (x_figure_window_size): For fullscreen case,
15025 set USPosition | PPosition without clobbering rest of window_prompting.
15026
15027 * keyboard.c (Fcurrent_idle_time): Doc fix.
15028
15029 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15030
150312007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15032
15033 * process.c (unwind_request_sigio): Only define if __ultrix__.
15034
15035 * callproc.c (child_setup): Remove spurious *.
15036
15037 * lisp.h (Fget_text_property): Declare.
15038 (have_menus_p): Declare it here rather than in sys-dep header files.
15039 * macterm.h (have_menus_p):
15040 * msdos.h (have_menus_p):
15041 * xterm.h (have_menus_p): Remove.
15042
15043 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15044 (Fmake_variable_frame_local): Just check the variable's const-ness
15045 rather than checking nil or t.
15046
150472007-10-22 Jason Rumney <jasonr@gnu.org>
15048
15049 * w32fns.c: Include math.h.
15050 (w32_abort): Declaration moved to nt/config.nt.
15051
15052 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15053 (abort): Redefinition moved to nt/config.nt.
15054
15055 * m/windowsnt.h: Remove.
15056
150572007-10-22 Juanma Barranquero <lekktu@gmail.com>
15058
15059 * emacs.c (Fdump_emacs): Fix typo in message.
15060 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
15061 <installation-directory>: Reflow docstring.
15062
150632007-10-22 Juri Linkov <juri@jurta.org>
15064
15065 * minibuf.c: Allow minibuffer default to be a list of default values.
15066 With empty input use the first element of this list as returned default.
15067 (string_to_object)
15068 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
15069 (read_minibuf): If defalt is cons, set histstring to its car.
15070 (Fread_string): If default_value is cons, set val to its car.
15071 (Fread_buffer): If def is cons, use its car.
15072 (Fcompleting_read): If defalt is cons, set val to its car.
15073
150742007-10-21 Michael Albinus <michael.albinus@gmx.de>
15075
15076 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
15077
150782007-10-20 Juanma Barranquero <lekktu@gmail.com>
15079
15080 * doc.c (Fdocumentation): Check for advice in all cases.
15081
150822007-10-19 Chong Yidong <cyd@stupidchicken.com>
15083
15084 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
15085
150862007-10-19 Richard Stallman <rms@gnu.org>
15087
15088 * doc.c (Fdocumentation): Check for and handle an advised function.
15089
150902007-10-19 Juanma Barranquero <lekktu@gmail.com>
15091
15092 * process.c (Fset_process_filter): Doc fix.
15093
150942007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15095
15096 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15097 which caused key-translation-map to applied repeatedly (thus breaking
15098 double-mode).
15099
151002007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15101
15102 * xselect.c (x_own_selection, x_handle_selection_clear)
15103 (x_clear_frame_selections):
15104 * w32menu.c (list_of_panes, list_of_items):
15105 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15106 * textprop.c (validate_plist, interval_has_all_properties)
15107 (interval_has_some_properties, interval_has_some_properties_list)
15108 (add_properties, text_property_list):
15109 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15110 * minibuf.c (Fassoc_string):
15111 * macselect.c (x_own_selection, x_clear_frame_selections)
15112 (Fx_disown_selection_internal):
15113 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15114 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15115
151162007-10-17 Chong Yidong <cyd@stupidchicken.com>
15117
15118 * process.c: Link to libs for calling res_init() if available.
15119 (Fmake_network_process): Call res_init() before getaddrinfo or
15120 gethostbyname, if possible.
15121
151222007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15123
15124 * lread.c (read1): Set pvectype for char_tables.
15125
15126 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15127 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15128 Add type checks.
15129 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15130
15131 * alloc.c (free_misc): Use XMISCTYPE.
15132 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15133
151342007-10-17 Glenn Morris <rgm@gnu.org>
15135
15136 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15137 (syms_of_minibuf): Add Qcompletion_ignore_case.
15138 * dired.c (Qcompletion_ignore_case): Change to external.
15139 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15140 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15141 (Fread_file_name): Use it rather than intern'ing.
15142
15143 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15144 (Fread_coding_system): Ignore case of user input.
15145
151462007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15147
15148 * xdisp.c (handle_display_prop): Ignore display specs after
15149 replacing one when string text is being replaced.
15150 (handle_single_display_spec): Pretend as if characters with display
15151 property haven't been consumed only when buffer text is being replaced.
15152
151532007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15154
15155 * xfns.c (Fx_create_frame, Fx_display_list):
15156 * window.c (window_fixed_size_p, enlarge_window)
15157 (shrink_window_lowest_first):
15158 * macterm.c (init_font_name_table):
15159 * macfns.c (Fx_create_frame, Fx_display_list):
15160 * lread.c (close_load_descs):
15161 * keyboard.c (read_char_x_menu_prompt):
15162 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15163 * coding.c (code_convert_region_unwind): Test the type of an object
15164 rather than just !NILP before extracting data from it.
15165
15166 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15167
15168 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15169 (XMISCANY): New macro.
15170 (XMISCTYPE): Use it.
15171 (struct Lisp_Misc_Any): New type.
15172 (union Lisp_Misc): Use it.
15173 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15174 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15175 (find_symbol_value, set_internal, default_value, Fset_default)
15176 (Fmake_variable_buffer_local, Fmake_local_variable)
15177 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15178 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15179 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15180 * alloc.c (allocate_buffer): Set the size and tag.
15181 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15182 Use XMISCANY.
15183 (die): Follow the GNU convention for error messages.
15184 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15185 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15186 tag any more.
15187 (set_buffer_internal_1):
15188 * frame.c (store_frame_param):
15189 * eval.c (specbind):
15190 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15191
15192 * doc.c (Fsnarf_documentation): Simplify.
15193
151942007-10-14 Juanma Barranquero <lekktu@gmail.com>
15195
15196 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15197 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15198
151992007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15200
15201 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15202
152032007-10-14 Juanma Barranquero <lekktu@gmail.com>
15204
15205 * eval.c (do_autoload): Don't save autoloads.
15206
15207 * data.c (Ffset): Save autoload of the function being set.
15208
152092007-10-07 John Paul Wallington <jpw@pobox.com>
15210
15211 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15212 parameter before setting up faces.
15213
152142007-10-13 Eli Zaretskii <eliz@gnu.org>
15215
15216 * ccl.c (Fregister_code_conversion_map):
15217 * keyboard.c (append_tool_bar_item): Reformat last change.
15218
15219 * lisp.h (eabs): Rename from `abs'. All callers changed.
15220
152212007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15222
15223 * buffer.c (add_overlay_mod_hooklist):
15224 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15225 * fontset.c (make_fontset):
15226 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15227 (append_tool_bar_item):
15228 * macmenu.c (grow_menu_items):
15229 * w32menu.c (grow_menu_items):
15230 * xmenu.c (grow_menu_items): Use larger_vector.
15231
152322007-10-13 Eli Zaretskii <eliz@gnu.org>
15233
15234 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15235 selected frame'' on MSDOS).
15236
152372007-10-12 Martin Rudalics <rudalics@gmx.at>
15238
15239 * frame.c (Qexplicit_name): New variable.
15240 (x_report_frame_params): Report it in parameter alist.
15241 (syms_of_frame): Intern and staticpro it.
15242
152432007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15244
15245 * macfns.c (x_create_tip_frame): Set terminal for frame.
15246
152472007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15248
15249 * frame.c (Qenvironment): Remove.
15250 (syms_of_frame) <Qenvironment>: Don't initialize.
15251 (Fdelete_frame): Don't treat the `environment' param specially.
15252 * frame.h (Qenvironment): Don't declare.
15253 * callproc.c (set_initial_environment): Don't set unused frame param.
15254
15255 * frame.c (Fframe_with_environment): Remove.
15256 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15257
15258 * lisp.h (Fframe_with_environment): Don't declare.
15259
152602007-10-10 Juanma Barranquero <lekktu@gmail.com>
15261
15262 * indent.c (indent_tabs_mode, last_known_column)
15263 (last_known_column_modified): Make static.
15264 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15265
152662007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15267
15268 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15269
152702007-10-09 Jason Rumney <jasonr@gnu.org>
15271
15272 * w32term.c (x_set_window_size): Disable code that attempts to tell
15273 Lisp code about a size change before it actually happens.
15274
152752007-10-09 Richard Stallman <rms@gnu.org>
15276
15277 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15278 return HANDLED_RETURN.
15279
152802007-10-08 Martin Rudalics <rudalics@gmx.at>
15281
15282 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
15283 when there's an unread command event.
15284
15285 * frame.c (focus_follows_mouse): Move here from frame.el to allow
15286 window autoselection act appropriately when leaving selected frame.
15287 (syms_of_frame): Initialize focus_follows_mouse.
15288 * frame.h (focus_follows_mouse): Extern it.
15289 * macterm.c (XTread_socket): When focus_follows_mouse is nil
15290 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
15291 * msdos.c (dos_rawgetc): Likewise.
15292 * w32term.c (w32_read_socket): Likewise.
15293 * xterm.c (handle_one_xevent): Likewise.
15294 * xdisp.c (syms_of_xdisp): In doc-string of
15295 mouse-autoselect-window mention focus-follows-mouse.
15296
152972007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15298
15299 * macterm.c (mac_load_query_font): Fix missing return value.
15300 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
15301 Add BLOCK_INPUT.
15302
153032007-10-08 Richard Stallman <rms@gnu.org>
15304
15305 * xdisp.c (get_window_cursor_type): Implement documented behavior
15306 for cursor-in-non-selected-windows = t.
15307
153082007-10-08 Jason Rumney <jasonr@gnu.org>
15309
15310 * w32.c (w32_get_resource): Always close registry keys.
15311
153122007-10-08 Jason Rumney <jasonr@gnu.org>
15313
15314 * makefile.w32-in (LIBS): Add COMCTL32.
15315
15316 * w32fns.c (globals_of_w32fns): Init common controls.
15317
153182007-10-08 Richard Stallman <rms@gnu.org>
15319
15320 * image.c (our_memory_buffer): Rename from omfib_buffer.
15321
153222007-10-08 Richard Stallman <rms@gnu.org>
15323
15324 * buffer.c (Foverlays_at): Doc fix.
15325
153262007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * fns.c (Fplist_put): Preserve uneven tail data.
15329
153302007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
15331
15332 * termhooks.h (enum event_kind): Remove trailing comma.
15333
15334 * frame.h (enum): Remove trailing comma.
15335
153362007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15337
15338 * w32proc.c (delete_child): Don't terminate threads of zombies.
15339
153402007-10-08 Martin Rudalics <rudalics@gmx.at>
15341
15342 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
15343
15344 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
15345 last-repeatable-command.
15346 (init_kboard): Initialize Vlast_repeatable_command.
15347 (command_loop_1): Set it to real_this_command unless that was
15348 bound to an input event.
15349 (mark_kboards): Mark it.
15350
153512007-10-08 Richard Stallman <rms@gnu.org>
15352
15353 * eval.c (condition-case): Doc fix.
15354
153552007-10-08 Masatake YAMATO <jet@gyve.org>
15356
15357 * xfaces.c (tty_supports_face_attributes_p): Fix code
15358 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
15359 was copied and not edited.
15360
153612007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
15362
15363 Add new `input-decode-map' keymap and use it for terminal
15364 escape sequences.
15365 * keyboard.h (struct kboard): Add Vinput_decode_map.
15366 Remove Vlocal_key_translation_map.
15367 * keyboard.c (read_key_sequence): Add support for input-decode-map.
15368 (init_kboard): Init input-decode-map.
15369 Replace local-key-translation-map back with key-translation-map.
15370 (syms_of_keyboard): Declare input-decode-map.
15371 Remove local-key-translation-map. Update docstrings.
15372 (mark_kboards): Mark Vinput_decode_map.
15373 Don't mark Vlocal_key_translation_map.
15374 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
15375 Replace local-key-translation-map back with key-translation-map.
15376 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
15377 Bind in input-decode-map rather than function-key-map.
15378
15379 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
15380 This was made redundant by the previous introduction of XSETPVECTYPE.
15381
153822007-10-09 Richard Stallman <rms@gnu.org>
15383
15384 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
15385
153862007-09-29 Richard Stallman <rms@gnu.org>
15387
15388 * eval.c (internal_condition_case_2, internal_condition_case_1)
15389 (internal_condition_case): Reenable abort if x_catching_errors ()
15390 to see if that really happens and why.
15391
153922007-10-06 Andreas Schwab <schwab@suse.de>
15393
15394 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
15395
153962007-10-04 Juanma Barranquero <lekktu@gmail.com>
15397
15398 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
15399
154002007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
15401
15402 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
15403
154042007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
15405
15406 * window.h (struct window):
15407 * window.c (struct save_window_data, struct saved_window):
15408 * termhooks.h (struct terminal):
15409 * process.h (struct Lisp_Process):
15410 * frame.h (struct frame):
15411 * buffer.h (struct buffer):
15412 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
15413 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
15414 The size field of (pseudo)vectors is now unsigned.
15415 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
15416
15417 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
15418 Turn `count' into an integer.
15419
15420 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
15421 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
15422 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
15423 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
15424 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
15425
15426 * alloc.c (allocate_pseudovector): New fun.
15427 (ALLOCATE_PSEUDOVECTOR): New macro.
15428 (allocate_window, allocate_terminal, allocate_frame)
15429 (allocate_process): Use it.
15430 (mark_vectorlike): New function.
15431 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
15432 (mark_terminals): Use it.
15433 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
15434 (Fmake_byte_code): Use XSETPVECTYPE.
15435
15436 * frame.c (Fframe_parameters): Minor simplification.
15437
15438 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
15439
15440 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
15441
15442 * buffer.c (Fget_buffer_create, init_buffer_once):
15443 * lread.c (defsubr):
15444 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
15445
15446 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
15447 defined differently in the m/*.h files.
15448 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
15449 (XSETPVECTYPE): New macro.
15450 (XSETPSEUDOVECTOR): Use it.
15451
15452 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
15453 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
15454
15455 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
15456 * lread.c (defvar_per_buffer):
15457 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
15458
15459 * window.c (candidate_window_p): Only consider as visible frames that
15460 are on the same terminal.
15461
15462 * m/ibms390x.h (MARKBIT): Remove unused macro.
15463
154642007-10-01 Juanma Barranquero <lekktu@gmail.com>
15465
15466 * lread.c (Fload): Fix typo in docstring.
15467
154682007-10-01 Michaël Cadilhac <michael@cadilhac.name>
15469
15470 * floatfns.c (Fexpt): Manually check for overflows, so that a power
15471 of a non-zero value can't yield zero.
15472
154732007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
15474
15475 * term.c (term_clear_mouse_face, term_mouse_highlight)
15476 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
15477
15478 * print.c (safe_debug_print): Use XHASH.
15479
15480 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
15481 Lisp elements such as tags.
15482 (XHASH): New macro.
15483 (EQ): Use it.
15484 (SREF, SSET, STRING_COPYIN): Use SDATA.
15485 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
15486
15487 * alloc.c (mark_terminal): Remove left-over declaration.
15488 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
15489 (allocate_vectorlike): Remove type argument. Adjust callers.
15490 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
15491 Only handle the one remaining MEM_TYPE_VECTORLIKE.
15492
15493 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
15494 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
15495 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
15496 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
15497 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
15498 Use them.
15499
15500 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
15501 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
15502 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
15503
155042007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15505
15506 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
15507 loaded by default.
15508
155092007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
15510
15511 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
15512 on this tty.
15513 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
15514
15515 * term.c (mouse_face_window): Rename from Qmouse_face_window.
15516 Update all users.
15517 (handle_one_term_event): Use Gpm_DrawPointer.
15518 (Fgpm_mouse_start): Rename from Fterm_open_connection.
15519 Signal errors instead of returning nil. Always return nil.
15520 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
15521 Make it a noop if gpm-mouse was not activated.
15522 (syms_of_term): Update names.
15523
155242007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
15525
15526 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
15527 (init_sys_modes): Check that gpm_tty is the current tty.
15528
15529 * alloc.c (allocate_terminal): Set the vector size to only count the
15530 lisp fields. Initialize those to nil.
15531 (mark_object): Don't treat terminals specially.
15532 (mark_terminal): Remove.
15533 (mark_terminals): Use mark_object instead.
15534
15535 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
15536 the GC to the beginning.
15537
15538 * indent.h:
15539 * indent.c: Use EMACS_INT for ints coming from Elisp data.
15540
15541 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
15542
155432007-09-25 Jason Rumney <jasonr@gnu.org>
15544
15545 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
15546
15547 * w32console.c (create_w32cons_output): Remove.
15548
15549 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
15550
15551 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
15552 (reset_sys_modes): Use reset_terminal_modes_hook.
15553
155542007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
15555
15556 * eval.c (do_autoload): Don't output any message.
15557
155582007-09-24 Juri Linkov <juri@jurta.org>
15559
15560 * emacs.c (standard_args): Change priority of "--no-splash"
15561 from 40 to 3. Add "--no-desktop" with the same priority.
15562
155632007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
15564
15565 * alloc.c (gc_sweep): Check cons cell mark bits word by word
15566 and optimize the case where they are all 1.
15567
155682007-09-23 Johannes Weiner <hannes@saeurebad.de>
15569
15570 * lisp.h (abs): Define if not defined.
15571 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
15572 Don't define `abs', since it's defined in lisp.h.
15573
155742007-09-22 Eli Zaretskii <eliz@gnu.org>
15575
15576 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
15577 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
15578 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
15579 (init_tty): Use DEV_TTY instead of "/dev/tty".
15580 [WINDOWSNT]: No need to protect from NAME arg being null.
15581
155822007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15583
15584 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
15585 up the tty state.
15586
155872007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15588
15589 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
15590 (gpm_tty): Change its type.
15591 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
15592 (gpm_tty): Change its type and initialize it.
15593 (Fterm_open_connection): Check the frame is indeed a tty.
15594 Use the new gpm_tty.
15595 (Fterm_close_connection): Use the new gpm_tty.
15596 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
15597 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
15598
155992007-09-21 Juanma Barranquero <lekktu@gmail.com>
15600
15601 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
15602 underline_color, to draw strike-through.
15603
156042007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15605
15606 * lisp.h (allocate_terminal): Declare.
15607
15608 * window.c (candidate_window_p): Consider frames that are being placed
15609 by the user as somewhere between visible and iconified.
15610 (window_loop): Prefer windows on the current frame.
15611 (Fselect_window): Move the use of select-frame to the beginning so we
15612 can just delegate all the work (it'll call us back anyway).
15613
15614 * frame.c (Qdisplay_environment_variable):
15615 * frame.h (Qdisplay_environment_variable): Delete.
15616
15617 * .gdbinit (xbacktrace): Print the arg's address rather than the value
15618 of the first arg, since that value may be a union.
15619
15620 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
15621 parameter rather than Qdisplay_environment_variable. If all else
15622 fails, look for DISPLAY in initial-environment.
15623
156242007-09-21 Glenn Morris <rgm@gnu.org>
15625
15626 * Makefile.in (emacstool): Remove target.
15627 (lisp, shortlisp): Remove termdev.elc.
15628
156292007-09-21 Markus Triska <markus.triska@gmx.at>
15630
15631 * xterm.c (x_delete_display): Compile session management conditionally.
15632
156332007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
15634
15635 * callproc.c (getenv_internal_1): New function.
15636 (getenv_internal): Use it.
15637 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
15638
15639 * terminal.c (get_terminal): Don't accept ints to represent terminals.
15640 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
15641 (Fset_terminal_parameter): Work with dead terminals as well.
15642 (Fmodify_terminal_parameters): Remove.
15643
15644 * terminal.c (get_terminal): Handle terminals.
15645 Make sure the terminal returned is live.
15646 (create_terminal): Use allocate_terminal.
15647 (mark_terminals): Move to alloc.c.
15648 (delete_terminal): Use terminal->name as liveness status.
15649 NULL out fields after freeing their contents.
15650 Don't deallocate the object.
15651 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
15652 rather than an int.
15653 (Fterminal_live_p): Accept non-integer arguments.
15654 (Fterminal_list): Return terminal objects rather than an ints.
15655
15656 * alloc.c (enum mem_type): New member for `terminal' objects.
15657 (allocate_terminal): New function.
15658 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
15659 Handle terminals.
15660 (mark_terminal): New fun.
15661 (mark_terminals): Move from terminal.c.
15662
15663 * term.c (get_tty_terminal): Don't treat output_initial specially.
15664 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
15665 (delete_tty): Use terminal->name as liveness status.
15666
15667 * termhooks.h (struct terminal): Make it into a pseudovector.
15668 Remove `deleted' replaced by checking `name's nullness.
15669
15670 * print.c (print_object): Handle terminals.
15671
15672 * lisp.h (enum pvec_type): New `terminal' pseudovector.
15673 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
15674
15675 * frame.c (make_terminal_frame):
15676 * keyboard.c (tty_read_avail_input):
15677 * w32term.c (x_delete_terminal):
15678 * xfns.c (Fx_create_frame, x_create_tip_frame):
15679 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
15680
156812007-09-20 Glenn Morris <rgm@gnu.org>
15682
15683 * process.c (Fmake_network_process): Doc fix.
15684
156852007-09-19 Jason Rumney <jasonr@gnu.org>
15686
15687 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
15688
156892007-09-19 Michaël Cadilhac <michael@cadilhac.name>
15690
15691 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
15692 Fix a C warning regarding variable constness.
15693
15694 * xterm.c (handle_one_xevent): Fix a C warning.
15695
156962007-09-18 Jason Rumney <jasonr@gnu.org>
15697
15698 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
15699
157002007-09-17 Jan Djärv <jan.h.d@swipnet.se>
15701
15702 * gtkutil.c (gdpy_def): New variable.
15703 (xg_initialize): Initialize gdpy_def.
15704 (xg_display_close): If no other display exists, set gdpy_def to a
15705 new connection.
15706
157072007-09-16 Jan Djärv <jan.h.d@swipnet.se>
15708
15709 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
15710 when we have no file name for the icon.
15711 (xg_tool_bar_expose_callback): Remove.
15712 (xg_create_tool_bar): Don't connect expose signal to
15713 xg_tool_bar_expose_callback.
15714 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
15715
157162007-09-16 Andreas Schwab <schwab@suse.de>
15717
15718 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
15719 values instead of zapping them.
15720
157212007-09-14 Glenn Morris <rgm@gnu.org>
15722
15723 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
15724 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
15725 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
15726 scope and rename to omfib_buffer for clarity.
15727 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
15728
157292007-09-14 Kenichi Handa <handa@m17n.org>
15730
15731 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
15732
157332007-09-13 Jason Rumney <jasonr@gnu.org>
15734
15735 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
15736
15737 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
15738
15739 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
15740 (mac_term_init): Call here instead, passing rif.
15741
157422007-09-13 Glenn Morris <rgm@gnu.org>
15743
15744 * s/hpux.h: No longer define `static' as nothing.
15745
157462007-09-13 Johan Bockgård <bojohan@gnu.org>
15747
15748 * callint.c (Fcall_interactively): Remove unused var `fun'.
15749
157502007-09-12 Romain Francoise <romain@orebokech.com>
15751
15752 * window.c (prefer_window_split_horizontally, display_buffer):
15753 Revert 2007-09-08 change.
15754
157552007-09-12 Glenn Morris <rgm@gnu.org>
15756
15757 * alloca.c: Remove file.
15758 * Makefile.in (alloca): Do not undef.
15759 (allocaobj, alloca.o): Remove.
15760 (otherobj): Remove allocaobj.
15761 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
15762 * regex.c (C_ALLOCA): Remove all references and code that was only
15763 used when this was defined.
15764 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
15765 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
15766 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
15767
15768 * Makefile.in (SOURCES, unlock, relock): Delete.
15769
15770 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
15771 (menu_grab_callback): All uses changed.
15772
15773 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
15774 (x_reply_selection_request): All uses changed.
15775
157762007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15777
15778 * lread.c (load_warn_old_style_backquotes): Change message to look
15779 better when it appears in the middle of byte-compiler messages.
15780
157812007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
15782
15783 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
15784
15785 * xterm.c (x_create_terminal): Add comment.
15786
15787 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
15788
157892007-09-10 Richard Stallman <rms@gnu.org>
15790
15791 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
15792
157932007-09-10 Michaël Cadilhac <michael@cadilhac.name>
15794
15795 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
15796 (DEFUN): Document `intspec', use it instead of `prompt'.
15797
15798 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
15799
15800 * data.c (Finteractive_form): If the interactive specification starts
15801 with a `(', use it as a Lisp form.
15802
15803 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
15804 name and file modes.
15805
15806 * callint.c (Fcall_interactively): Comment fixes.
15807
158082007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
15809
15810 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
15811 and compiled functions.
15812
158132007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
15814
15815 * window.c (prefer_window_split_horizontally): New variable.
15816 (display_buffer): Consider splitting window horizontally depending
15817 on prefer_window_split_horizontally.
15818
158192007-09-08 Eli Zaretskii <eliz@gnu.org>
15820
15821 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
15822
158232007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15824
15825 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
15826
15827 * frame.c (x_set_frame_parameters): Check number is positive before
15828 using XFASTINT.
15829
15830 * window.c (freeze_window_start): Don't presume selected_window holds
15831 a window object.
15832 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
15833
158342007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
15835
15836 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
15837
158382007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15839
15840 * window.c (Vsplit_window_preferred_function): New var.
15841 (Fdisplay_buffer): Use it.
15842 (syms_of_window): Export, and initialize it.
15843
158442007-09-06 Pixel <pixel@mandriva.com> (tiny change)
15845
15846 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
15847
158482007-09-06 Glenn Morris <rgm@gnu.org>
15849
15850 * gtkutil.c (menu_grab_callback) <cnt>:
15851 * xselect.c (x_reply_selection_request) <cnt>: Move static
15852 variable to file scope.
15853
158542007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
15855
15856 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
15857 consistent values of selected_frame and selected_window.
15858
158592007-09-04 Jason Rumney <jasonr@gnu.org>
15860
15861 * w32console.c (initialize_w32_display): Zero unused hooks.
15862
158632007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15864
15865 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
15866 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
15867
158682007-09-04 Jason Rumney <jasonr@gnu.org>
15869
15870 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
15871 in w32console.c. Set up input. Remove XXX comments that have been
15872 confirmed as correct.
15873
15874 * s/ms-w32.h (MULTI_KBOARD): Define.
15875
15876 * w32console.c (one_and_only_w32cons): Remove.
15877 (initialize_w32_display): Take terminal argument.
15878
15879 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
15880 initialize_w32_display.
15881 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
15882
15883 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
15884
15885 * keyboard.c (discard_mouse_events): Discard it.
15886 (make_lispy_event): Translate it to a lisp event.
15887 (lispy_wheel_names): Add wheel-left and right events.
15888 (syms_of_keyboard): Enlarge wheel_syms.
15889
15890 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
15891 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
15892
15893 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
15894
15895 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
15896 from WM_MOUSEHWHEEL.
15897 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
15898
15899 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
15900 terminal.
15901
15902 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
15903 keyboard for the terminal.
15904
159052007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15906
15907 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
15908 (Vresume_tty_hook): Rename from Vresume_tty_functions.
15909 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
15910 and resume-tty-function to resume-tty-hook.
15911 (Fsuspend_tty, Fresume_tty): Use new names.
15912
159132007-09-02 Jan Djärv <jan.h.d@swipnet.se>
15914
15915 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
15916 if it starts with "n:".
15917
159182007-08-31 Jan Djärv <jan.h.d@swipnet.se>
15919
15920 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
15921
159222007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15923
15924 * frame.h:
15925 * frame.c (Qterm_environment_variable): Remove.
15926 (syms_of_frame): Don't init and staticpro it.
15927
15928 * callproc.c (getenv_internal): Remove special case for $TERM.
15929
15930 * callproc.c (Vinitial_environment): New variable.
15931 (set_initial_environment): Initialize it.
15932 (syms_of_callproc): Declare it.
15933 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
15934 TERM under which a process runs is never related to the TERM in which
15935 Emacs is running.
15936
159372007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15938
15939 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
15940 * s/darwin.h: ... do it here.
15941
159422007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
15943
15944 * lisp.h (set_initial_environment): Rename from set_global_environment.
15945
15946 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
15947 removed by mistake on the multi-tty branch.
15948
15949 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
15950 (Fmodify_frame_parameters): Return a value.
15951
15952 * image.c (png_load): Comment-out var only used in commented-out code.
15953
15954 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
15955 before passing it to mark_object.
15956
15957 * xfaces.c (internal_resolve_face_name): Return a value.
15958 (internal_resolve_face_name, resolve_face_name_error): Comment out.
15959
15960 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
15961 (x_icon): Comment-out var only used in commented-out code.
15962
159632007-08-29 Romain Francoise <romain@orebokech.com>
15964
15965 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
15966 QUIT hasn't been provided.
15967
159682007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15969
15970 * callproc.c (child_setup, getenv_internal): Use the
15971 display-environment-variable and term-environment-variable frame params.
15972 (set_initial_environment): Initialise Vprocess_environment.
15973
15974 * config.in: Disable multi-keyboard support on a mac.
15975
15976 * frame.c (Qterm_environment_variable)
15977 (Qdisplay_environment_variable): New variables.
15978 (syms_of_frame): Intern and staticpro them.
15979 (Fmake_terminal_frame): Disable output method test.
15980
15981 * frame.h: Declare them here.
15982
15983 * macfns.c (x_set_mouse_color): Get rif from the frame.
15984 (x_set_tool_bar_lines): Don't use updating_frame.
15985 (mac_window): Add 2 new parameters for consistency with other systems.
15986 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
15987 frame parameters following what is done in X11 and w32. Don't use
15988 FRAME_MAC_DISPLAY_INFO.
15989 (Fx_open_connection, start_hourglass): Remove window-system check.
15990 (x_create_tip_frame): Get the keyboard from the terminal.
15991
15992 * macmenu.c: Reorder includes.
15993 (Fx_popup_menu): Use terminal specific mouse_position_hook.
15994
15995 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
15996 terminal parameter.
15997 (x_clear_frame): Add a frame parameter.
15998 (note_mouse_movement): Get rif from the frame.
15999 (mac_term_init): Initialize the terminal.
16000 (mac_initialize): Make static and move terminal initialization ...
16001 (mac_create_terminal): ... to this new function.
16002
16003 * macterm.h (struct mac_display_info): Add terminal.
16004 (mac_initialize): Delete declaration.
16005
16006 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16007
16008 * sysdep.c: Comment out text after #endif.
16009
16010 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16011 is defined. Better initialize ttys in windows. Use terminal
16012 specific mouse_position_hook.
16013
16014 * termhooks.h (union display_info): Add mac_display_info.
16015
16016 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16017 Set the default minibuffer frame, window_system and the rest of the
16018 frame parameters following what is done in X11.
16019
16020 * w32term.c (w32_initialize): Make static.
16021
16022 * xselect.c (x_handle_selection_clear): Only access
16023 terminal->kboard when MULTI_KBOARD is defined.
16024
16025 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16026 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16027
160282007-08-29 Jason Rumney <jasonr@gnu.org>
16029
16030 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16031 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16032
16033 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16034 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16035
16036 * keyboard.c (restore_kboard_configuration): Only define when
16037 MULTI_KBOARD defined.
16038
16039 * makefile.w32-in: Update dependancies from Makefile.in.
16040 (OBJ1): Add terminal.$(O)
16041
16042 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16043 Don't define function body.
16044 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16045
16046 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16047
16048 * w32.c (request_sigio, unrequest_sigio): Remove.
16049
16050 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16051 (w32con_clear_frame, w32con_clear_end_of_line)
16052 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16053 (w32con_delete_glyphs, w32con_set_terminal_window)
16054 (scroll_line, w32_sys_ring_bell): Add frame arg.
16055 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16056 Add terminal arg.
16057 (PICK_FRAME): Remove.
16058 (w32con_write_glyphs): Use frame specific terminal coding.
16059 (one_and_only_w32cons): New global variable.
16060 (initialize_w32_display): Use it for storing hooks.
16061 (create_w32cons_output): New function.
16062
16063 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
16064 arg a frame.
16065
16066 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
16067 Set window_system.
16068 (x_set_tool_bar_lines): Don't use updating_frame.
16069 (Fx_create_frame): Set terminal and ref count.
16070 (Fx_open_connection): Remove window-system check.
16071
16072 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
16073
16074 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
16075 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
16076 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
16077 Add frame arg.
16078 (x_delete_terminal, w32_create_terminal): New functions.
16079 (w32_term_init): Create a terminal.
16080 (w32_initialize): Move terminal specific initialization to
16081 w32_create_terminal.
16082
16083 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
16084 (w32_clear_rect, w32_clear_area): Use background from frame.
16085 (w32_display_info): Add terminal.
16086 (w32_sys_ring_bell, x_delete_display): Declare here.
16087
16088 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
16089
16090 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
16091
160922007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16093
16094 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16095 Fix get_named_tty calls for the controlling tty.
16096
160972007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16098
16099 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16100
161012007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16102
16103 * term.c (tty_insert_glyphs): Add missing first parameter.
16104
161052007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16106
16107 * buffer.c (Fbuffer_list, Fbury_buffer):
16108 Take frame->buried_buffer_list into account.
16109
16110 * cm.c (current_tty): New variable, for cmputc().
16111 (cmputc): Use it.
16112 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16113 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16114 (cmgoto): Add tty parameter. Pass it on to calccost().
16115 Use emacs_tputs() instead of tputs().
16116
16117 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16118 tputs().
16119 (current_tty): New variable, for cmputc().
16120 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16121
16122 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16123 (internal_condition_case, internal_condition_case_1)
16124 (internal_condition_case_2): Don't abort when x_catching_errors.
16125
16126 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16127 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16128 prevent crashes caused by bogus longjmps in read_char.
16129
16130 * keymap.h (Fset_keymap_parent): Add EXFUN.
16131
16132 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16133 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16134 Remove redundant definition.
16135
16136 * macfns.c (x_set_mouse_color, x_make_gc):
16137 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16138
16139 * w32term.c (x_free_frame_resources):
16140 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16141 (w32_initialize): Use the accessor macros for terminal characteristics.
16142
16143 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16144 Use the accessor macros for terminal characteristics.
16145 * msdos.c (internal_terminal_init): Use the accessor macros for
16146 terminal characteristics.
16147 (ScreenVisualBell, internal_terminal_init):
16148 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16149
16150 * termopts.h (no_redraw_on_reenter): Declare.
16151
16152 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16153 (mark_terminals, mark_ttys): Declare.
16154 (Fgarbage_collect): Call them.
16155 (mark_object): Mark buried_buffer_list.
16156
16157 * prefix-args.c: Include stdlib.h for exit.
16158
16159 * syssignal.h: Add comment.
16160
16161 * indent.c: Include stdio.h.
16162
16163 * window.h (Vinitial_window_system): Declare.
16164 (Vwindow_system): Delete declaration.
16165
16166 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16167
16168 * image.c (lookup_image): Don't initialize `c' until the xasserts
16169 have been run.
16170
16171 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16172 FRAME_FOREGROUND_PIXEL.
16173
16174 * print.c (print_preprocess): Don't lose print_depth levels while
16175 iterating.
16176
16177 * widget.c (update_from_various_frame_slots):
16178 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16179
16180 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16181 frames.
16182 (window_internal_height): Remove bogus make_number call.
16183 (init_window_once): Call make_terminal_frame with two zero parameters.
16184
16185 * fileio.c (Fread_file_name): Update comment.
16186
16187 * callint.c (Fcall_interactively):
16188 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16189 Make sure it is correctly unwound.
16190
16191 * xsmfns.c (x_session_close): New function.
16192
16193 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16194 Delete declarations.
16195
16196 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16197 (x_output): Remove background_pixel and foreground_pixel fields.
16198 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16199 (x_delete_device, x_session_close): Declare.
16200
16201 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16202 (read_filtered_event): Call `read_char' with a local
16203 `wrong_kboard_jmpbuf'.
16204
16205 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16206 Don't call single_kboard_state. Use FRAME_RIF.
16207
16208 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16209 systems.
16210
16211 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16212 (Fframe_with_environment, Fset_input_meta_mode)
16213 (Fset_quit_char): EXFUN.
16214 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16215 (init_sys_modes, reset_sys_modes): Update prototypes.
16216 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16217
16218 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16219 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16220 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16221 Delete declarations.
16222 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16223 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16224 New declarations.
16225
16226 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16227 already does that during init_display(). Call syms_of_keymap
16228 before syms_of_keyboard. Call `syms_of_terminal'.
16229 Call set_initial_environment, not set_process_environment.
16230 (shut_down_emacs): Call reset_all_sys_modes() instead of
16231 reset_sys_modes().
16232
16233 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16234 (internal_resolve_face_name, resolve_face_name_error): New functions.
16235 (resolve_face_name): Protect against loops and errors thrown by Fget.
16236 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16237 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16238
16239 * scroll.c: Replace CURTTY() with local variables throughout the
16240 file (where applicable).
16241 (calculate_scrolling, calculate_direct_scrolling)
16242 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16243 characteristics.
16244
16245 * keymap.c (Vfunction_key_map): Remove.
16246 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16247 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16248 (Vkey_translation_map): Remove.
16249 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16250 (Fdescribe_buffer_bindings)
16251 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16252 Update for terminal-local key-translation-map.
16253
16254 * Makefile.in (callproc.o): Update dependencies.
16255 (lisp, shortlisp): Add termdev.elc.
16256 (obj): Add terminal.o.
16257 (terminal.o): Add dependencies.
16258 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16259 (data.o, fns.o): Add termhooks.h dependency.
16260 (SOME_MACHINE_LISP): Add dnd.elc.
16261 (minibuf.o): Fix typo.
16262 Update dependencies.
16263
16264 * data.c (do_symval_forwarding, store_symval_forwarding)
16265 (find_symbol_value): Use the selected frame's keyboard, not
16266 current_kboard.
16267
16268 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16269 Vwindow_system.
16270
16271 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16272 Fmenu_bar_open.
16273 (syms_of_xmenu): Update defsubr.
16274 (mouse_position_for_popup, Fx_popup_menu)
16275 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16276 (set_frame_menubar, free_frame_menubar)
b97439ce 16277 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16278 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16279 an X frame.
16280
16281 * xselect.c (x_own_selection): Abort if not an X frame.
16282 (some_frame_on_display): Check if it is an X frame.
16283 (x_handle_selection_clear): Deal with MULTI_KBOARD.
16284
16285 * coding.c: Include frame.h and termhooks.h.
16286 (terminal_coding, keyboard_coding): Delete.
16287 (Fset_terminal_coding_system_internal)
16288 (Fset_keyboard_coding_system_internal)
16289 (Fkeyboard_coding_system)
16290 (Fterminal_coding_system): Add a terminal parameter.
16291 Get terminal_coding from the terminal.
16292 (init_coding_once): Don't call setup_coding_system here.
16293
16294 * dispextern.h (set_scroll_region, turn_off_insert)
16295 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
16296 (tty_clear_end_of_line, tty_setup_colors)
16297 (delete_tty, updating_frame)
16298 (produce_special_glyphs, produce_glyphs, write_glyphs)
16299 (insert_glyphs): Remove.
16300 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
16301 (tty_turn_off_highlight, get_tty_size): Add declaration.
16302 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
16303
16304 * frame.h (enum output_method): Add output_initial.
16305 (struct x_output): Delete.
16306 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16307 Access foreground_pixel and background_pixel directly from the frame.
16308 (tty_display): Delete.
16309 (struct frame): Add buried_buffer_list, foreground_pixel,
16310 background_pixel and terminal. Delete kboard.
16311 (union output_data): Add tty.
16312 (FRAME_KBOARD): Get the kboard from the terminal.
16313 (FRAME_INITIAL_P): New macro.
16314 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
16315 (Qterm_environment_variable, Qdisplay_environment_variable)
16316 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
16317 New declarations.
16318
16319 * termchar.h (tty_output, tty_display_info): New structures.
16320 (tty_list): Declare.
16321 (FRAME_TTY, CURTTY): New macros.
16322 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
16323 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
16324 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
16325 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
16326
16327 * callproc.c: Include frame.h and termhooks.h, for terminal
16328 parameters.
16329 (add_env): New function.
16330 (child_setup): Use it.
16331 (child_setup, getenv_internal): Handle the new Vprocess_environment.
16332 (getenv_internal): Fix get_terminal_param call.
16333 (Fgetenv_internal, egetenv): Update doc.
16334 (syms_of_callproc): Initialize Vprocess_environment to nil.
16335 Register and initialize them. Remove obsolete defvars. Update doc
16336 strings.
16337 (child_setup): Handle Vlocal_environment_variables.
16338 (getenv_internal): Add terminal parameter.
16339 Handle Vlocal_environment_variables.
16340 (Fgetenv_internal): Add terminal parameter.
16341 (child_setup, getenv_internal, Fgetenv_internal): Store the local
16342 environment in a frame (not terminal) parameter. Update doc strings.
16343 (set_initial_environment): Rename from set_global_environment.
16344 Store Emacs environment in initial frame parameter.
16345
16346 * xdisp.c (redisplay_internal): Update references to
16347 `previous_terminal_frame'.
16348 (display_mode_line, Fformat_mode_line): Replace calls to
16349 `push_frame_kboard' with `push_kboard'.
16350 (get_glyph_string_clip_rects): Add extra parentheses and
16351 braces to prevent compiler warnings.
16352 (calc_pixel_width_or_height): Add xassert to check that the
16353 frame is alive. Don't call `lookup_image' on a termcap frame.
16354 (message2_nolog, message3_nolog, redisplay_internal)
16355 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
16356 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
16357 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
16358 (Fx_display_pixel_width, Fx_display_pixel_height)
16359 (Fx_display_planes, Fx_display_color_cells)
16360 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
16361 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
16362 (Fx_display_backing_store, Fx_display_visual_class)
16363 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
16364 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
16365
16366 * xfns.c (x_set_foreground_color x_set_background_color)
16367 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
16368 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16369 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
16370 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
16371 terminal that is being deleted.
16372 (Fx_create_frame): Use `store_frame_param' to set `window-system'
16373 frame parameter, and make sure it overrides any user-supplied setting.
16374 (Fx_close_connection, Fx_synchronize): Unify argument names with
16375 the rest of the DEFUNs.
16376
16377 * dispnew.c (Fsend_string_to_terminal): Update call to
16378 `get_tty_terminal'.
16379 (Fredraw_frame, Fsend_string_to_terminal)
16380 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
16381 FRAME_TERMCAP_P and FRAME_TTY.
16382 (window_change_signal): Don't believe width/height values that are
16383 impossibly small.
16384 (Vinitial_window_system): Rename from Vwindow_system.
16385 (termscript, Wcm, rif): Delete.
16386
16387 * termhooks.h (struct terminal): New struct containing the
16388 previously global text display hooks and new members NAME,
16389 DELETED and PARAM_ALIST.
16390 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
16391 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
16392 (FRAME_RIF): New macros.
16393 (get_terminal_param, get_device): New declarations.
16394 (termscript): Delete declaration.
16395
16396 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
16397 (XTflash, x_free_frame_resources, x_scroll_bar_create)
16398 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
16399 FRAME_FOREGROUND_PIXEL.
16400 (x_fully_uncatch_errors): Disable definition.
16401 (x_scroll_bar_expose): Fix reference to foreground pixel.
16402 (XTread_socket): Disable loop on all X displays.
16403 (x_delete_terminal): Don't set terminal->deleted and let
16404 delete_terminal delete the frames on the terminal.
16405 (x_delete_display): Doc update to reflect changes in
16406 delete_terminal.
16407 (x_display_info) <terminal>: Move member earlier in the struct.
16408 (deleting_tty): Remove old variable.
16409 (Fsuspend_tty): Call clear_tty_hooks.
16410 (Fresume_tty, init_tty): Call set_tty_hooks.
16411 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
16412 errors on X frames.
16413 (x_catch_errors_unwind): Abort if x_error_message is NULL.
16414 (handle_one_xevent): Initialize `f' to NULL.
16415 (x_delete_terminal, x_create_terminal): New functions.
16416 (XTset_terminal_modes, XTreset_terminal_modes)
16417 (XTread_socket, x_connection_closed, x_term_init)
16418 (x_term_init, x_delete_display): Add terminal parameter.
16419 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
16420 X connections.
16421
16422 * frame.c: Include termchar.h.
16423 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
16424 (Qwindow_system, Qenvironment, Qterm_environment_variable)
16425 (Qdisplay_environment_variable): New vars.
16426 (Fframep): Deal with output_initial.
16427 (Fframe-live-p): Doc fix.
16428 (Fwindow-system): New function.
16429 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
16430 (make_terminal_frame): Don't create frames on a terminal that is
16431 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16432 (store_frame_param): Check for found_for_frame before calling XFRAME.
16433 (Fmake_terminal_frame): Handle NULL tty names correctly.
16434 (syms_of_frame): Enhance doc string of `default-frame-alist'.
16435 (Fdelete_frame): Remove unused variable `count'. Don't allow other
16436 frames to refer to a deleted frame in their 'environment parameter.
16437 (Fframe_with_environment): New function.
16438 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
16439 (get_future_frame_param): New function.
16440 (Fmake_terminal_frame): Use it.
16441 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
16442
16443 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
16444 * sysdep.c (reset_sys_modes): Update for renames.
16445
16446 * keyboard.c (tty_read_avail_input): New function.
16447 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
16448 (syms_of_keyboard): Defsubr them.
16449 (Fset_input_meta_mode, Fset_quit_char): New functions.
16450 (Fset_input_mode): Split to above functions.
16451 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
16452 parameter. Use it in call to `read_char'.
16453 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
16454 Set wrong_kboard_jmpbuf correctly in recursive calls.
16455 Use current_kboard to access Vkeyboard_translate_table.
16456 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
16457 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
16458 Update longjmp invocations. Remember the original current_kboard,
16459 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
16460 changes it. Comment out unnecessary calls to
16461 `record_single_kboard_state' and `any_kboard_state'.
16462 Update recursive calls.
16463 (wrong_kboard_jmpbuf): Remove global variable.
16464 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
16465 Handle deleted interrupted_kboards correctly; that is a legal
16466 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
16467 and read_char calls. Abort if interrupted_kboard died in read_char.
16468 (any_kboard_state, single_kboard_state)
16469 (push_frame_kboard): Remove function.
16470 (pop_kboard): Switch out of single_kboard mode if the kboard has
16471 been deleted. Remove unused variable. Help debugging by not
16472 changing current_kboard unnecessarily. Set current_kboard to the
16473 kboard of the selected frame when the stored kboard object has
16474 been deleted before pop_kboard.
16475 (temporarily_switch_to_single_kboard): Change first parameter to a
16476 frame pointer. Throw an error when caller wants to change kboards
16477 while in single_kboard mode. Don't push_kboard if we weren't in
16478 single kboard state. Don't pop_kboard if we popped into any
16479 kboard state.
16480 (restore_kboard_configuration): Abort if pop_kboard changed the
16481 kboard in single_kboard mode. Call pop_kboard only after setting
16482 up single_kboard mode.
16483 (Frecursive_edit): Switch to single_kboard mode only in nested
16484 command loops.
16485 (cmd_error, command_loop, command_loop_1, timer_check):
16486 Comment out unnecessary call to `any_kboard_state' and
16487 `record_single_kboard_state'.
16488 (delete_kboard): Exit single_kboard mode if we have just deleted
16489 that kboard. Use FRAME_KBOARD.
16490 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
16491 `fatal_error_signal'.
16492 (record_single_kboard_state): Don't push_kboard if we weren't in
16493 single kboard state. Don't pop_kboard if we popped into any
16494 kboard state.
16495 (push_frame_kboard): Rename to push_kboard.
16496 (kbd_buffer_get_event): Use FRAME_TERMINAL.
16497 (read_avail_input): Read input from all terminals.
16498 (mark_kboards): Also mark Vkeyboard_translate_table.
16499 (kbd_buffer_store_event_hold): Simplify condition.
16500 (read_key_sequence): Reinitialize fkey and keytran at each replay.
16501 (Vkeyboard_translate_table): Move to struct kboard.
16502 (init_kboard): Initialize Vkeyboard_translate_table.
16503 (syms_of_keyboard): Use DEFVAR_KBOARD to define
16504 Vkeyboard_translate_table. Update doc strings. Update docs of
16505 local-function-key-map and function-key-map.
16506
16507 * terminal.c: New file.
16508
16509 * term.c: Include errno.h.
16510 (Vring_bell_function, device_list, initial_device)
16511 (next_device_id, ring_bell, update_begin, update_end)
16512 (set_terminal_window, cursor_to, raw_cursor_to)
16513 (clear_to_end, clear_frame, clear_end_of_line)
16514 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
16515 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
16516 (syms_of_term): Move their initialization to terminal.c.
16517 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
16518 (Ftty_display_color_cells)
16519 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
16520 (clear_tty_hooks, set_tty_hooks)
16521 (init_tty, maybe_fatal): New functions.
16522 (Ftty_type): Return nil if terminal is not on a tty instead of
16523 throwing an error. Doc update.
16524 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
16525 Doc update. Initialize new subrs and variables.
16526 (delete_tty): Use terminal->deleted.
16527 (tty_set_terminal_modes): Rename from set_terminal_modes.
16528 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
16529 (set_scroll_region): Rename to `tty_set_scroll_region'.
16530 (turn_on_insert): Rename to `tty_turn_on_insert'.
16531 (turn_off_insert): Rename to `tty_turn_off_insert'.
16532 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
16533 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
16534 (toggle_highligh): Rename to `tty_toggle_highlight'.
16535 (background_highlight): Rename to `tty_background_highlight'.
16536 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
16537 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
16538 (tty_set_scroll_region, tty_background_highlight)
16539 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
16540 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
16541 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
16542 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
16543 Add static modifier.
16544 (tty_reset_terminal_modes, tty_set_terminal_window)
16545 (tty_set_scroll_region, tty_background_highlight)
16546 (tty_highlight_if_desired, tty_cursor_to)
16547 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
16548 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
16549 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
16550 renames.
16551
165522007-08-28 Jan Djärv <jan.h.d@swipnet.se>
16553
16554 * keyboard.c: Qrtl is new.
16555 (parse_tool_bar_item): Handle :rtl keyword.
16556 (syms_of_keyboard): Intern :rtl keyword.
16557
16558 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
16559
16560 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
16561 so no Lisp code is executed.
16562 (file_for_image, find_rtl_image): New functions.
16563 (xg_get_image_for_pixmap): Use file_for_image.
16564 (update_frame_tool_bar): If direction is RTL, use RTL image if
16565 defined. Use Gtk stock images if defined.
16566
165672007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16568
16569 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
16570 for nonexistent or zero-width glyph in composition glyph.
16571
165722007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
16573
16574 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
16575
16576 * xdisp.c (Finvisible_p): New function.
16577 (syms_of_xdisp): defsubr it.
16578
165792007-08-24 Juanma Barranquero <lekktu@gmail.com>
16580
16581 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
16582 Doc fixes.
16583
165842007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16585
16586 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
16587
165882007-08-24 Martin Rudalics <rudalics@gmx.at>
16589
16590 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
16591 whether decoding has modified buffer contents.
16592
165932007-08-24 Jason Rumney <jasonr@gnu.org>
16594
16595 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
16596 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
16597 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
16598 (init_svg_functions) [HAVE_NTGUI]: New function.
16599 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
16600 (svg_load_image): Use them.
16601 (svg_load_image) [HAVE_NTGUI]: Implement background.
16602
166032007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16604
16605 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
16606 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
16607 (LIBX): Remove @RSVG_LIBS@.
16608 (LIBES): Add $(RSVG_LIBS).
16609
16610 * image.c (svg_load_image): Blend with specified background if exists.
16611 Use IMAGE_BACKGROUND. Add Mac OS Support.
16612
16613 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
16614 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
16615 Remove macros.
16616 [MAC_OSX] (socket_callback): Do nothing.
16617 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
16618 ReceiveNextEvent.
16619 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
16620 socket_callback.
16621 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
16622
166232007-08-22 Glenn Morris <rgm@gnu.org>
16624
16625 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
16626
166272007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
16628
16629 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
16630
16631 * image.c: Add support for SVG images. Some additional comments
16632 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
16633 (svg_image_p): New function to test for SVG image.
16634 (svg_load): New function to load SVG image.
16635 (svg_load_image): New function, helper for svg_load.
16636 (Qsvg): New Lisp_object.
16637 (svg_keyword_index): New enum.
16638 (svg_format): New static `image_keyword' struct.
16639 (svg_type): New static `image_type' struct.
16640 (librsvg/rsvg.h): Include it.
16641
166422007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
16643
16644 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
16645
166462007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
16647
16648 * lread.c (Qold_style_backquotes): New var.
16649 (syms_of_lread): Init and staticpro it.
16650 (load_warn_old_style_backquotes): New fun.
16651 (Fload): Use them to warn about old style backquotes.
16652 (end_of_file_error, Fload): Remove unused vars.
16653
16654 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
16655
16656 * lread.c (Vold_style_backquotes): New var.
16657 (syms_of_lread): Init and export it to Elisp.
16658 (read1): Set it when we find an old-style (back)quote.
16659
166602007-08-22 Jason Rumney <jasonr@gnu.org>
16661
16662 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
16663
166642007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
16665
16666 * puresize.h (BASE_PURESIZE): Increase to 1140000.
16667
166682007-08-19 Richard Stallman <rms@gnu.org>
16669
16670 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
16671
166722007-08-19 Andreas Schwab <schwab@suse.de>
16673
16674 * alloc.c (pure): Round PURESIZE up.
16675
166762007-08-17 Jan Djärv <jan.h.d@swipnet.se>
16677
16678 * xterm.c (handle_one_xevent): Remove check that mouse click is in
16679 active frame.
16680
166812007-08-16 Richard Stallman <rms@gnu.org>
16682
16683 * eval.c (Fcommandp): Add parens to clarify.
16684
16685 * minibuf.c (Fall_completions): Use enum for type of table.
16686
16687 * emacs.c (USAGE2): Improve text.
16688
166892007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
16690
16691 * term.c (tty_default_color_capabilities): Declare static
16692 variables in file scope, to avoid HPUX compiler problem.
16693
166942007-08-13 Jan Djärv <jan.h.d@swipnet.se>
16695
16696 * gtkutil.c (update_frame_tool_bar): Use -1 as index
16697 to gtk_toolbar_insert.
16698
166992007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
16700
16701 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
16702
16703 * insdel.c (reset_var_on_error): New fun.
16704 (signal_before_change, signal_after_change):
16705 Use it to reset (after|before)-change-functions to nil in case of error.
16706 Bind inhibit-modification-hooks to t.
16707 Don't bind (after|before)-change-functions to nil while they run.
16708
167092007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16710
16711 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
16712 filling pixmap with stippled background.
16713
167142007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16715
16716 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
16717 Don't use invisible frame as parent window for repositioning.
16718
167192007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
16720
16721 * print.c (new_backquote_output): Rename from old_backquote_output.
16722 (print): Inverse its logic (according to its name) so as to match the
16723 behavior of new_backquote_flag in lread.c.
16724
167252007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16726
16727 * gmalloc.c (posix_memalign): New function.
16728
16729 * macterm.c (frame_highlight, frame_unhighlight): Don't call
16730 ActivateControl/DeactivateControl here.
16731 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
16732 frame-notice-user-settings is non-nil.
16733 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
16734 for kEventParamFMFontStyle.
16735 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
16736 mac_pass_command_to_system and mac_pass_control_to_system here.
16737 (XTread_socket): Call ActivateControl/DeactivateControl here.
16738 (XTread_socket) [TARGET_API_MAC_CARBON]:
16739 Check mac_pass_command_to_system and mac_pass_control_to_system here.
16740 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
16741 for window repositioning.
16742
167432007-08-08 Glenn Morris <rgm@gnu.org>
16744
16745 * Replace `iff' in doc-strings and comments.
16746
167472007-08-07 Chong Yidong <cyd@stupidchicken.com>
16748
16749 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
16750
167512007-08-07 Martin Rudalics <rudalics@gmx.at>
16752
16753 * fileio.c (Finsert_file_contents): Run format-decode and
16754 after_insert_file_functions on entire buffer when REPLACE is
16755 non-nil and inhibit modification_hooks and point_motion_hooks.
16756 For consistency, run after_insert_file_functions iff something
16757 got inserted. Move signal_after_change and update_compositions
16758 after code running after_insert_file_functions. Make sure that
16759 undo_list doesn't record intermediate steps of the decoding process.
16760
167612007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16762
16763 * emacs.c (main)
16764 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
16765 Call malloc_enable_thread on interactive startup.
16766
16767 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
16768 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
16769 [USE_PTHREAD]: Conditionalize with it.
16770 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
16771 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
16772 New functions.
16773
167742007-08-06 Chong Yidong <cyd@stupidchicken.com>
16775
16776 * xdisp.c (redisplay_window): When restoring original buffer
16777 position, make sure it is still valid.
16778
16779 * image.c (png_load): Ignore png-supplied background color.
16780
167812007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16782
16783 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
16784 Use kCFAbsoluteTimeIntervalSince1970.
16785
16786 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
16787 New variable.
16788 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
16789 event loop should be quit.
16790 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
16791 Quit dialog event loop if quit_dialog_event_loop is set.
16792
16793 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
16794 (Selection): New typedef. Use instead of ScrapRef.
16795 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
16796 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
16797 (mac_clear_selection): Rename from clear_scrap.
16798 (get_flavor_type_from_symbol): New argument SEL and subsume function of
16799 scrap_has_target_type. All uses changed.
16800 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16801 (mac_selection_has_target_p): New functions.
16802 (mac_put_selection_value): Rename from put_scrap_string.
16803 (mac_get_selection_value): Rename from get_scrap_string.
16804 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
16805 (put_scrap_private_timestamp, scrap_has_target_type)
16806 (get_scrap_private_timestamp): Remove functions.
16807 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
16808 (x_own_selection, x_get_local_selection):
16809 Use mac_valid_selection_value_p.
16810 (x_own_selection): Don't use put_scrap_private_timestamp.
16811 Record OWNERSHIP-INFO into Vselection_alist instead.
16812 (x_get_local_selection): Don't check type if request is local.
16813 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
16814 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
16815
168162007-08-04 Jan Djärv <jan.h.d@swipnet.se>
16817
16818 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
16819 add comment explaining why.
16820
168212007-08-03 Richard Stallman <rms@gnu.org>
16822
16823 * fileio.c (Fvisited_file_modtime): Use make_time.
16824
168252007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
16826
16827 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
16828 build.
16829
168302007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
16831
16832 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
16833
168342007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
16835
16836 * puresize.h (BASE_PURESIZE): Increase to 1130000.
16837
168382007-07-30 Richard Stallman <rms@gnu.org>
16839
16840 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
16841
168422007-07-29 Jan Djärv <jan.h.d@swipnet.se>
16843
16844 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
16845
168462007-07-28 Nick Roberts <nickrob@snap.net.nz>
16847
16848 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
16849 remote default-directory.
16850
16851 * buffer.c (mode-line-format): Update doc string.
16852
168532007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16854
16855 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
16856 scroll bar gap.
16857 (x_scroll_bar_create): Set bar->fringe_extended_p.
16858 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
16859 on frame edge. Check fringe background extension. Don't clear
16860 extended fringe background area.
16861
16862 * w32term.h (struct scroll_bar): New member fringe_extended_p.
16863 (w32_fill_area): Enclose multiple statements with do ... while (0).
16864
16865 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
16866 Extend fringe background to scroll bar gap.
16867 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
16868 Set bar->fringe_extended_p.
16869 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16870 Put leftmost/rightmost scroll bars on frame edge. Check fringe
16871 background extension. Don't clear extended fringe background area.
16872
16873 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16874 New member fringe_extended_p.
16875
168762007-07-25 Glenn Morris <rgm@gnu.org>
16877
16878 * Relicense all FSF files to GPLv3 or later.
16879
16880 * COPYING: Switch to GPLv3.
16881
168822007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
16883
16884 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
16885
16886 * data.c (Finteractive_form): Check for the presence of an
16887 `interactive-form' symbol property more thoroughly.
16888
16889 * data.c (Finteractive_form): Use an `interactive-form' property if
16890 present, analogous to the function-documentation property.
16891
168922007-07-24 Jason Rumney <jasonr@gnu.org>
16893
16894 * w32fns.c (x_real_positions): Get real position from OS instead of
16895 calculating it.
16896
168972007-07-23 Jason Rumney <jasonr@gnu.org>
16898
16899 * filelock.c (current_lock_owner): Allow for @ sign in username.
16900
169012007-07-22 Nick Roberts <nickrob@snap.net.nz>
16902
16903 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
16904 remote default-directory.
16905
16906 * buffer.c (mode-line-format): Describe above case in doc string.
16907
169082007-07-20 Eli Zaretskii <eliz@gnu.org>
16909
16910 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
16911 Define if not defined.
16912
169132007-07-18 Jason Rumney <jasonr@gnu.org>
16914
16915 * w32proc.c (w32_executable_type): Handle 64 bit executables.
16916
169172007-07-18 Richard Stallman <rms@gnu.org>
16918
16919 * data.c (Fsetq_default): Doc fix.
16920
16921 * eval.c (Fsetq): Doc fix.
16922
169232007-07-18 Juanma Barranquero <lekktu@gmail.com>
16924
16925 * coding.c (Ffind_operation_coding_system):
16926 * eval.c (For, Fand): Doc fixes.
16927 Reported by Johan Bockgård.
16928
169292007-07-18 Jan Djärv <jan.h.d@swipnet.se>
16930
16931 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
16932
16933 * xterm.h: Declare x_ewmh_activate_frame.
16934
16935 * xterm.c (x_ewmh_activate_frame): New function.
16936 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
16937
169382007-07-17 Martin Rudalics <rudalics@gmx.at>
16939
16940 * window.c (Fdisplay_buffer): If largest or LRU window is the
16941 only window, split it even if it is not eligible for splitting.
16942 This restores the original behavior broken by the 2007-07-15
16943 change.
16944
169452007-07-17 Glenn Morris <rgm@gnu.org>
16946
16947 * abbrev.c (abbrev_check_chars): New function.
16948 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16949 Call abbrev_check_chars to check abbrev characters are word
16950 constituents. Doc fix.
16951
169522007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16953
16954 * process.c (Fstart_process, Fmake_network_process)
16955 (read_process_output): Fix up last changes.
16956
169572007-07-16 Eli Zaretskii <eliz@gnu.org>
16958
16959 * makefile.w32-in (clean): Don't delete *~.
16960
169612007-07-16 Andreas Schwab <schwab@suse.de>
16962
16963 * window.c (Fdisplay_buffer): Use NILP.
16964 (Fset_window_scroll_bars): Likewise.
16965
169662007-07-15 Martin Rudalics <rudalics@gmx.at>
16967
16968 * window.c (window_min_size_2): New function.
16969 (window_min_size_1, size_window, Fdisplay_buffer)
16970 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
16971 windows without mode- or header-lines when window-min-height is
16972 too small.
16973 (size_window): Reset nodelete_p after testing it, following an
16974 earlier note by Kim F. Storm.
16975 (display_buffer): Do not set split_height_threshold to twice the
16976 value of window_min_height to avoid changing the value of a
16977 customizable variable. Rather explicitly check whether the
16978 height of the window that shall be splitted is at least as large
16979 as split_height_threshold.
16980 (Fwindow_full_width_p): New defun.
16981 (syms_of_window): Defsubr it.
16982
16983 * window.h: Add EXFUN for Fwindow_full_width_p.
16984
169852007-07-14 Jason Rumney <jasonr@gnu.org>
16986
16987 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
16988
169892007-07-14 Richard Stallman <rms@gnu.org>
16990
16991 * eval.c (maybe_call_debugger): New function.
16992 (find_handler_clause): Use maybe_call_debugger.
16993 Call it when the handler says `debug'.
16994 Eliminate DEBUGGER_VALUE_PTR.
16995 (Fsignal): Eliminate debugger_value.
16996 (Qdebug): New variable.
16997 (syms_of_eval): Initialize it.
16998
169992007-07-14 Juanma Barranquero <lekktu@gmail.com>
17000
17001 * eval.c (Fprogn):
17002 * keyboard.c (Ftrack_mouse):
17003 * print.c (Fwith_output_to_temp_buffer):
17004 * window.c (Fsave_window_excursion): Doc fix.
17005
170062007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17007
17008 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17009
170102007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17011
17012 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17013 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17014 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17015 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17016 Remove unused encoding_carryover.
17017 * process.c: Adjust all functions accordingly.
17018
170192007-07-12 Richard Stallman <rms@gnu.org>
17020
17021 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17022
170232007-07-11 Jason Rumney <jasonr@gnu.org>
17024
17025 * makefile.w32-in (LIBS): Include OLE32.
17026
17027 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17028 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17029
170302007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17031
17032 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17033 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17034 from a Lisp_Object into a bare pointer.
17035 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17036 Adjust the code correspondingly.
17037
17038 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17039
17040 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17041 (term_show_mouse_face): Remove unused var `j'.
17042 (handle_one_term_event): Remove unused vars `i' and `j'.
17043 Don't cast return value of ttyname since it's not necessary.
17044
170452007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17046
17047 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17048 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17049
17050 * fns.c (map_char_table): Use an array of int for `indices' rather than
17051 an array of Lisp_Objects (which are only ever integers anyway).
17052 (Fmap_char_table): Update caller.
17053 * lisp.h: Update prototype.
17054 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17055 * fontset.c (Ffontset_info):
17056 * casetab.c (set_case_table): Update callers.
17057
17058 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17059
17060 * keymap.c (struct accessible_keymaps_data)
17061 (struct where_is_internal_data): New structures.
17062 (accessible_keymaps_1, where_is_internal_1): Use them to change
17063 interface to adhere to the one used by map_keymap.
17064 (Faccessible_keymaps, where_is_internal): Use map_keymap.
17065 (accessible_keymaps_char_table, where_is_internal_2): Remove.
17066
17067 * keymap.h (map_keymap_function_t): More informative prototype.
17068
170692007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
17070
17071 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
17072 (looking_at_1): Don't change search_regs and last_thing_searched
17073 if `inhibit-changing-match-data' is non-nil.
17074 (string_match_1, search_buffer, set_search_regs): Likewise.
17075 (syms_of_search): Add Lisp level definition for
17076 `inhibit-changing-match-data' and set it to nil.
17077 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
17078 start and end of the match, instead of using values in search_regs.
17079
170802007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
17081
17082 * minibuf.c (Fcompleting_read): New value `confirm-only'
17083 for `require-match'.
17084
170852007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
17086
17087 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
17088 part of the 2007-06-27 change to syms_of_fileio.
17089
170902007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17091
17092 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17093 Check WINDOWP before using XWINDOW. Consolidate return statements.
17094
170952007-06-27 Richard Stallman <rms@gnu.org>
17096
17097 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17098
170992007-06-27 Juanma Barranquero <lekktu@gmail.com>
17100
17101 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17102
171032007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17104
17105 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17106 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17107 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17108 (_free_internal, memalign): Use them.
17109 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17110 Initialize to PTHREAD_MUTEX_INITIALIZER.
17111 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17112 (morecore_nolock): Rename from morecore. All uses changed.
17113 Use only nolock versions of internal allocation functions.
17114 (_malloc_internal_nolock, _realloc_internal_nolock)
17115 (_free_internal_nolock): New functions created from
17116 _malloc_internal, _realloc_internal, and _free_internal.
17117 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17118 Copy hook value to automatic variable before its use.
17119 (memalign): Copy hook value to automatic variable before its use.
17120
171212007-06-26 Kenichi Handa <handa@m17n.org>
17122
17123 * coding.c (Ffind_operation_coding_system): Docstring improved.
17124 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17125
171262007-06-25 David Kastrup <dak@gnu.org>
17127
17128 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17129 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17130 cater for additional parameter.
17131
17132 * keymap.h: Adjust number of parameters to `current-active-maps'.
17133
17134 * doc.c (Fsubstitute_command_keys): Adjust call of
17135 `current-active-maps'.
17136
171372007-06-25 David Kastrup <dak@gnu.org>
17138
17139 * callint.c (Fcall_interactively): Make the parsing of interactive
17140 specs somewhat more readable.
17141
171422007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17143
17144 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17145 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17146 if extended background has already been filled.
17147
171482007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17149
17150 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17151 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17152
17153 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17154 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17155 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17156 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17157 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17158 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17159 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17160 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17161 Run timers during dialog popup.
17162 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17163
171642007-06-21 Jason Rumney <jasonr@gnu.org>
17165
17166 * image.c (convert_mono_to_color_image): Swap fore and background.
17167
171682007-06-20 Jason Rumney <jasonr@gnu.org>
17169
17170 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17171 (w32_free_bdf_font): Unmap memory not handle.
17172
171732007-06-20 Sam Steingold <sds@gnu.org>
17174
17175 * gmalloc.c (__morecore): Fix the declaration to comply with the
17176 definition.
17177
171782007-06-20 Juanma Barranquero <lekktu@gmail.com>
17179
17180 * w32term.c (w32_delete_display): Remove leftover declaration.
17181 (w32_define_cursor, w32_initialize): Make static.
17182
17183 * w32.c (_wsa_errlist): Fix typo in error message.
17184 (init_environment): Ignore any environment variable from the
17185 registry having a null value.
17186
171872007-06-20 Glenn Morris <rgm@gnu.org>
17188
17189 * Makefile.in (LIBGIF): Default to -lgif.
17190
171912007-06-17 Jason Rumney <jasonr@gnu.org>
17192
17193 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17194 unicode strings.
17195
171962007-06-16 Juanma Barranquero <lekktu@gmail.com>
17197
17198 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17199 Fix typo in docstring.
17200
172012007-06-16 Eli Zaretskii <eliz@gnu.org>
17202
17203 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17204 and their keybindings.
17205
172062007-06-15 Chong Yidong <cyd@stupidchicken.com>
17207
17208 * composite.c (update_compositions): Fix last fix.
17209
172102007-06-14 Jason Rumney <jasonr@gnu.org>
17211
17212 * w32.c (get_process_times_fn): New function pointer.
17213 (globals_of_w32): Intialize it if present in kernel32.dll.
17214 (w32_get_internal_run_time): New function.
17215
17216 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17217
172182007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17219
17220 * composite.c (update_compositions): Check the validness of
17221 compositions.
17222
172232007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17224
17225 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17226 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17227
17228 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17229 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17230
17231 * macgui.h (USE_MAC_TOOLBAR): New define.
17232
17233 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17234 Return immediately unless popup is activated.
17235
17236 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17237 background to scroll bar gap.
17238 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17239 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17240 scroll bars on frame edge. Check fringe background extension.
17241 Don't clear extended fringe background area.
17242 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17243 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17244 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17245 [USE_MAC_TOOLBAR]: New macros.
17246 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17247 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17248 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17249 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17250 [USE_MAC_TOOLBAR]: New functions.
17251 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17252 manually if previous repositioning has failed.
17253 (mac_handle_keyboard_event): Use precomputed event kind.
17254 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17255 as tool bar item click. Handle mouse movement over tool bar items.
17256
17257 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17258 toolbar_win_gravity.
17259 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17260 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17261 Add externs.
17262
17263 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17264 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17265
172662007-06-14 Chong Yidong <cyd@stupidchicken.com>
17267
17268 * image.c (search_image_cache): Remove unused variable.
17269
172702007-06-13 Chong Yidong <cyd@stupidchicken.com>
17271
17272 * xfns.c, xmenu.c: Link to xaw3d if available.
17273
172742007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17275
17276 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17277 frame_foreground and frame_background.
17278
17279 * image.c (lookup_image): Save frame foreground and background colors.
17280 (search_image_cache): Check if saved and current frame colors match.
17281
172822007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17283
17284 * regex.c (regex_compile): Remove the `regnum' counter.
17285 Use bufp->re_nsub instead. Add support for \(?N:RE\).
17286
172872007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17288
17289 * term.c: Include intervals.h to declare Fget_text_property.
17290
172912007-06-10 Jason Rumney <jasonr@gnu.org>
17292
17293 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
17294
172952007-06-08 Juanma Barranquero <lekktu@gmail.com>
17296
17297 * callint.c (Fcall_interactively):
17298 * editfns.c (Fdelete_and_extract_region):
17299 * fileio.c (Fread_file_name):
17300 * fns.c (Fmapconcat):
17301 * keyboard.c (cmd_error_internal):
17302 * keymap.c (Fkey_description):
17303 * lread.c (openp):
17304 * minibuf.c (read_minibuf):
17305 * search.c (wordify):
17306 * sunfns.c (sel_read):
17307 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
17308 * xfns.c (x_default_scroll_bar_color_parameter):
17309 * xmenu.c (menu_help_callback):
17310 * xselect.c (Fx_get_atom_name):
17311 * xterm.c (x_term_init): Use empty_unibyte_string.
17312
173132007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
17314
17315 * alloc.c (init_strings): Initialize canonical empty strings.
17316 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
17317 canonical empty string when the requested size is 0.
17318
17319 * emacs.c (empty_unibyte_string): Rename from empty_string.
17320 (empty_multibyte_string): New canonical empty string.
17321 (syms_of_emacs): Don't initialize empty_string.
17322
17323 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
17324 string, if appropriate.
17325 (empty_unibyte_string, empty_multibyte_string): New externs.
17326 (empty_string): Remove extern.
17327
17328 * lread.c (syms_of_lread): Use empty_unibyte_string.
17329
173302007-06-07 Jason Rumney <jasonr@gnu.org>
17331
17332 * s/ms-w32.h: Don't define HAVE_TZNAME.
17333
17334 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
17335
173362007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17337
17338 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
17339
17340 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
17341 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
17342
17343 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17344 Don't call next handler.
17345 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
17346 Remove argument. Install handler to application.
17347 (set_frame_menubar): Don't change deep_p.
17348 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
17349 FRAME_OUTER_TO_INNER_DIFF_Y.
17350 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17351 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17352 [HAVE_DIALOGS]: New macros.
17353 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
17354 Use them.
17355 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
17356
17357 * macselect.c [MAC_OSX] (install_service_handler): Rename from
17358 init_service_handler. All callers changed. Return OSStatus value.
17359
17360 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
17361 All callers changed so as not to call SetPortWindowPort.
17362 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
17363 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
17364 mac_draw_string_common.
17365 (mac_draw_image_string_qd): Likewise.
17366 (mac_draw_string_common): Use them. Add INLINE.
17367 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
17368 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
17369 GetGlobalMouse.
17370 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
17371 and FRAME_OUTER_TO_INNER_DIFF_Y.
17372 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
17373 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
17374 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
17375 repositioning window to mac_handle_window_event.
17376 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
17377 saving window location to mac_handle_window_event
17378 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
17379 (install_menu_target_item_handler): Remove argument in extern.
17380 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
17381 Also accept command events.
17382 (do_keystroke): New function created from XTread_socket.
17383 (init_command_handler): Remove functions.
17384 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
17385 and save window location by kEventWindowShowing and kEventWindowHiding
17386 handlers here. Don't call next handler for window state change and
17387 focus events.
17388 (mac_handle_application_event, mac_handle_keyboard_event)
17389 [TARGET_API_MAC_CARBON]: New functions.
17390 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
17391 kEventWindowShowing and kEventWindowHiding events. Move installation
17392 of mouse, font, text input and menu target item handlers to
17393 install_application_handler.
17394 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
17395 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17396 New function.
17397 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17398 Register it.
17399 (XTread_socket) [TARGET_API_MAC_CARBON]:
17400 Consolidate SendEventToEventTarget calls.
17401 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
17402 Move application activation handler to mac_handle_application_event.
17403 Move keyboard handler to mac_handle_keyboard_event.
17404 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
17405 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
17406 init_command_handler. Call install_application_handler.
17407
17408 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
17409 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
17410
174112007-06-07 Glenn Morris <rgm@gnu.org>
17412
17413 * emacs.c (main): Use `emacs-copyright' in --version output.
17414
174152007-06-06 Chong Yidong <cyd@stupidchicken.com>
17416
17417 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
17418
174192007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17420
17421 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
17422
17423 * macgui.h: Replace WindowPtr with WindowRef.
17424
17425 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17426 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17427 Replace ControlHandle with ControlRef.
17428 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
17429
17430 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17431 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17432 Replace ControlHandle with ControlRef.
17433 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
17434 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
17435
17436 * macterm.h (struct scroll_bar): Rename member control_handle_low
17437 and control_handle_high to control_ref_low and control_ref_high.
17438 All uses changed.
17439 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
17440 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
17441 respectively. All uses changed.
17442 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
17443 (install_window_handler, remove_window_handler): Replace WindowPtr
17444 with WindowRef in externs.
17445
174462007-06-05 Juanma Barranquero <lekktu@gmail.com>
17447
17448 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
17449
174502007-06-03 Nick Roberts <nickrob@snap.net.nz>
17451
17452 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
17453
17454 * frame.c (Fmouse_position, Fmouse_pixel_position):
17455 Condition on HAVE_GPM too.
17456
17457 * term.c (term_mouse_highlight): Remove unused variables.
17458 (Fterm_open_connection): Set gpm_zerobased to 1.
17459 (term_mouse_movement, term_mouse_click, handle_one_term_event):
17460 Use zero based co-ordinates.
17461 (handle_one_term_event): Report a drag as mouse movement too.
17462
17463 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
17464
174652007-06-03 Chong Yidong <cyd@stupidchicken.com>
17466
17467 * image.c (search_image_cache): New function. Require background
17468 color match if background color is unspecified in the image spec.
17469 (uncache_image, lookup_image): Use it.
17470
174712007-06-01 Juanma Barranquero <lekktu@gmail.com>
17472
17473 * window.c (Fshrink_window): Reflow docstring.
17474
174752007-06-02 Chong Yidong <cyd@stupidchicken.com>
17476
17477 * Version 22.1 released.
17478
174792007-06-01 Richard Stallman <rms@gnu.org>
17480
17481 * xfns.c (x_encode_text): Add GCPRO.
17482
174832007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17484
17485 * xfns.c (x_set_name_internal): Save encoded name before
17486 x_encode_text in case string data is relocated.
17487
174882007-05-31 Richard Stallman <rms@gnu.org>
17489
17490 * buffer.c (syms_of_buffer): Doc fix.
17491
174922007-05-30 Nick Roberts <nickrob@snap.net.nz>
17493
17494 * sysdep.c (init_sys_modes): Add rather than replace with
17495 O_NONBLOCK.
17496
17497 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
17498 term_mouse_moveto.
17499
17500 * termhooks.h (term_mouse_moveto): New extern.
17501
17502 * term.c (mouse_face_window): Rename...
17503 (Qmouse_face_window): ...to this.
17504 (term_show_mouse_face, term_clear_mouse_face)
17505 (term_mouse_highlight): Use Qmouse_face_window.
17506 (term_mouse_moveto): New function.
17507 (term_mouse_position): Make it work.
17508 (syms_of_term): Uncomment assignment to mouse_position_hook.
17509 Staticpro Qmouse_face_window.
17510
175112007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17512
17513 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
17514 around current_column call.
17515
175162007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
17517
17518 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
17519 * xdisp.c (next_element_from_buffer):
17520 * window.c (delete_window):
17521 * term.c (term_mouse_highlight):
17522 * msdos.c (getdefdir):
17523 * macterm.c (mac_create_bitmap_from_bitmap_data)
17524 (init_font_name_table):
17525 * fns.c (Fsxhash):
17526 * data.c (Fmake_local_variable):
17527 * ccl.c (ccl_driver): Likewise.
17528
175292007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17530
17531 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
17532 Call mac_wakeup_from_rne on window size change.
17533
175342007-05-25 Chong Yidong <cyd@stupidchicken.com>
17535
17536 * image.c (uncache_image): Fix typo.
17537
175382007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
17539
17540 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
17541
175422007-05-22 Richard Stallman <rms@gnu.org>
17543
17544 * xterm.c (x_connection_closed): Remove NO_RETURN.
17545
175462007-05-22 Martin Rudalics <rudalics@gmx.at>
17547
17548 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
17549
175502007-05-21 Chong Yidong <cyd@stupidchicken.com>
17551
17552 * image.c (uncache_image): New function.
17553 (Fimage_refresh): New function.
17554
175552007-05-20 Jan Djärv <jan.h.d@swipnet.se>
17556
17557 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
17558
175592007-05-20 Nick Roberts <nickrob@snap.net.nz>
17560
17561 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
17562 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
17563
175642007-05-20 Nick Roberts <nickrob@snap.net.nz>
17565
17566 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
17567 conditional on [HAVE_GPM_H].
17568
175692007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17570
17571 * syntax.c (skip_chars): Update syntax-table only after we checked that
17572 the new location is valid.
17573
175742007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17575
17576 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
17577 mac_get_window_bounds.
17578
175792007-05-20 Nick Roberts <nickrob@snap.net.nz>
17580
17581 * Makefile.in (LIBGPM): Allow it to be set from configure.
17582 If set then link Emacs with it.
17583
17584 * config.in: Regenerate.
17585
17586 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
17587 New externs.
17588
17589 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
17590 Include gpm.h.
17591 (handle_one_term_event, term_gpm): New externs.
17592
17593 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
17594 and allow it to be interrupted by SIGIO.
17595
17596 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
17597 (wait_reading_process_output): Wait on gpm_fd too.
17598 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
17599 (add_gpm_wait_descriptor_called_flag): New variable.
17600 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
17601
17602 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
17603 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
17604 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
17605 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
17606 (make_lispy_event): Add case GPM_CLICK_EVENT.
17607 (read_avail_input): Handle mouse input.
17608
17609 * term.c (write_glyphs_with_face): New function.
17610 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
17611 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
17612 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
17613 (mouse_face_face_id, term_gpm, pos_x, pos_y)
17614 (last_mouse_x, last_mouse_y): New variables.
17615 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
17616 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
17617 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
17618 (Fterm_close_connection): New functions.
17619 (term_init): Initialise mouse_face_window.
17620
176212007-05-19 Chong Yidong <cyd@stupidchicken.com>
17622
17623 * xdisp.c (redisplay_window): If first window line is a
17624 continuation line, recompute the new window start instead of
17625 recentering.
17626
176272007-05-18 Glenn Morris <rgm@gnu.org>
17628
17629 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
17630 Suggested by Alfred M. Szmidt <ams@gnu.org>.
17631
176322007-05-17 Glenn Morris <rgm@gnu.org>
17633
17634 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
17635
176362007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17637
17638 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
17639 dead key repeat and up events.
17640
176412007-05-14 Chong Yidong <cyd@stupidchicken.com>
17642
17643 * image.c (pbm_load): Check image size for monochrome pbm.
17644
176452007-05-13 Chong Yidong <cyd@stupidchicken.com>
17646
17647 * xterm.c (XTread_socket): Revert last change.
17648
176492007-05-12 Chong Yidong <cyd@stupidchicken.com>
17650
17651 * image.c (pbm_load): Correctly check image size for greyscale pbm.
17652
17653 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
17654
176552007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17656
17657 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
17658 mixup (YAILOM).
17659
176602007-05-07 Andreas Schwab <schwab@suse.de>
17661
17662 * keymap.c (Flookup_key): Fix typo in last change.
17663
176642007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17665
17666 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
17667 mapping for unibyte strings.
17668
176692007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17670
17671 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
17672 (Fx_popup_dialog) [MAC_OSX]: Likewise.
17673
176742007-04-29 Richard Stallman <rms@gnu.org>
17675
17676 * insdel.c (replace_range): For undo, record insertion first.
17677
176782007-04-29 Andreas Schwab <schwab@suse.de>
17679
17680 * lisp.h (VECSIZE): Use OFFSETOF.
17681
176822007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17683
17684 * xdisp.c (try_window_reusing_current_matrix): Fix number of
17685 disabled lines.
17686
176872007-04-28 Richard Stallman <rms@gnu.org>
17688
17689 * lread.c (read_escape): In a string, \s is always space.
17690
176912007-04-27 Jan Djärv <jan.h.d@swipnet.se>
17692
17693 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
17694
17695 * gtkutil.c (xg_update_menubar, create_menus): Create empty
17696 submenu for menu bar items.
17697
17698See ChangeLog.10 for earlier changes.
17699
17700;; Local Variables:
17701;; coding: utf-8
17702;; add-log-time-zone-rule: t
aac0c6e3
MR
17703;; End:
17704
76b6f707 17705 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
17706
17707 This file is part of GNU Emacs.
17708
17709 GNU Emacs is free software: you can redistribute it and/or modify
17710 it under the terms of the GNU General Public License as published by
17711 the Free Software Foundation, either version 3 of the License, or
17712 (at your option) any later version.
17713
17714 GNU Emacs is distributed in the hope that it will be useful,
17715 but WITHOUT ANY WARRANTY; without even the implied warranty of
17716 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17717 GNU General Public License for more details.
17718
17719 You should have received a copy of the GNU General Public License
17720 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
17721
17722;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40