(Fmsdos_remember_default_colors): Don't reverse frame colors under -rv.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f12dae2f
EZ
12008-08-27 Eli Zaretskii <eliz@gnu.org>
2
3 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4 colors under -rv.
5 (IT_set_frame_parameters): Don't swap foreground and background
6 colors if `(reverse . t)' is present in the frame properties.
7
b9fb8cf0
CY
82008-08-27 Andreas Schwab <schwab@suse.de>
9
10 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11
dafaabd1
AS
122008-08-27 Andreas Schwab <schwab@suse.de>
13
14 * search.c (search_buffer): Set char_base to zero only at the end.
15
6c0969ca
KH
162008-08-27 Kenichi Handa <handa@m17n.org>
17
18 * fileio.c (report_file_error): Fix handling of multibyte error
19 string.
20
ffd1cd8a
CY
212008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
22
23 * xterm.c (x_term_init): Temporarily hide the partially
24 initialized terminal while calling vendor-specific-keysyms.
25
2306a735
EZ
262008-08-26 Eli Zaretskii <eliz@gnu.org>
27
28 * msdos.c (internal_terminal_init): Most initializations done only
29 once, especially initial_screen_colors[] and termscript open.
30
609849bc
CY
312008-08-26 Chong Yidong <cyd@stupidchicken.com>
32
ba59c3a1
CY
33 * eval.c (Fcondition_case): Doc fix.
34
7d31058f
CY
35 * widgetprv.h (EmacsFramePart): Change font member to the new font
36 struct.
609849bc
CY
37
38 * widget.c: Include character.h and font.h for XSETFONT.
39 (setup_frame_gcs): Compute X font id from font struct, just once.
40
5cc67f65
EZ
412008-08-26 Eli Zaretskii <eliz@gnu.org>
42
43 * term.c (get_named_tty): Fix last change.
44
ff73b461
CY
452008-08-26 Chong Yidong <cyd@stupidchicken.com>
46
47 * indent.c (Fvertical_motion): If moving forward starting from a
48 multi-line string, move the iterator to the last line of that
49 string.
50
a4e628d4
EZ
512008-08-25 Eli Zaretskii <eliz@gnu.org>
52
53 * frame.c (do_switch_frame): Mark previously displayed frame as
54 obscured for FRAME_MSDOS_P frames as well.
55
8a445f76
EZ
562008-08-24 Eli Zaretskii <eliz@gnu.org>
57
1266f9ef
EZ
58 * frame.c (make_terminal_frame): Initialize f->terminal,
59 f->terminal->reference_count, and scroll bars on MS-DOS as well.
60 Set the top frame to newly created frame.
61 (Fmake_terminal_frame): Reuse the_only_display_info.
62
8a445f76
EZ
63 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
64 estimating available memory.
65
154c218f
CY
662008-08-23 David Reitter <david.reitter@gmail.com>
67
54299c95
DR
68 * nsterm.m (ns_draw_window_cursor): Don't call
69 NSDisableScreenUpdates and NSEnableScreenUpdates on
70 non-NS_IMPL_COCOA systems.
71
8399d035
AS
722008-08-23 Andreas Schwab <schwab@suse.de>
73
74 * process.c (procfs_system_process_attributes): Fix use of
75 uninitialized variables.
76
293a3986
EZ
772008-08-23 Eli Zaretskii <eliz@gnu.org>
78
79 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
80
81 * dispnew.c (init_display): Remove MS-DOS specific conditions for
82 calling tty-set-up-initial-frame-faces.
83
84 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show): Allow
85 MSDOS frames along with X frames.
86
87 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
88 addition to output_termcap.
89
90 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
91
92 * termchar.h (FRAME_TTY): Support output_msdos_raw.
93 (struct tty_display_info) [MSDOS]: Add fields related to mouse
94 highlight.
95
96 * process.c [!subprocesses]: Define QCname.
97 (syms_of_process): Intern and staticpro it.
98
99 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
100 Adjust for changes in encoding/decoding routines. Use
101 encode_coding_object and decode_coding_object instead of
102 encode_coding and decode_coding.
103
104 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as
105 argument.
106
107 * dosfns.c: Include frame.h before termhooks.h.
108 (dos_cleanup): Use CURTTY ()->termscript instead of a global
109 variable termscript.
110
111 * s/msdos.h (USER_FULL_NAME): Define.
112 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
113
114 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
115 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
116 pw->pw_gecos.
117
118 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
119 SELECTED_FRAME as additional (1st) argument.
120 (tty_read_avail_input): Handle output_msdos_raw in
121 addition to output_termcap.
122
123 * msdos.c: Include frame.h before termhooks.h.
124 (mouse_on, mouse_off, mouse_moveto, mouse_init)
125 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
126 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
127 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
128 (IT_set_terminal_modes, IT_reset_terminal_modes)
129 (IT_set_frame_parameters): Use tty->termscript instead of a global
130 variable termscript.
131 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
132 global variable terminal_coding. Don't refer to
133 Vnonascii_translation_table.
134 (internal_terminal_init): Set Vwindow_system in current_kboard.
135 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
136 Announce date and time of session start, if termscript is open.
137 Don't zero out the_only_display_info (it is done in
138 term.c:init_tty). Open termscript only of not already open. Log
139 "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
140 here instead of dos_ttraw. Don't initialize display if this is an
141 initial tty. Don't set FRAME_FONT.
142 (Vwindow_system_version): Bump to 23.
143 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
144 is available, set up mouse_position_hook.
145 (dos_ttraw, IT_set_terminal_modes): If called with initial
146 terminal, do nothing.
147 (IT_set_frame_parameters): Handle the Qtty_type frame
148 parameter by calling internal_terminal_init.
149 (dos_set_window_size, show_mouse_face)
150 (clear_mouse_face, IT_note_mode_line_highlight)
151 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
152 (dos_rawgetc): Use tty_display_info instead of x_display_info.
153 (initialize_msdos_display): New function.
154 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
155 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
156 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
157 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
158 Accept additional argument: a pointer to a frame. All callers
159 changed.
160 (request_sigio, unrequest_sigio): Don't define, now defined on
161 sysdep.c.
162 (IT_write_glyphs): Rewrite to use encode_terminal_code.
163
164 * term.c [MSDOS]: Include msdos.h.
165 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
166 conditional to DOS_NT. Allow only one call to this function in a
167 session. Don't allocate a new struct tty_display_info; instead,
168 reuse the_only_display_info. Call get_tty_size to get screen
169 dimensions. Call init_baud_rate to set bad_rate.
170 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
171 (Fsuspend_tty) [MSDOS]: Don't close input and output.
172 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use
173 stdin/stdout.
174 (get_tty_terminal, get_named_tty, Ftty_type)
175 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
176 output_termcap.
177 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty): Call
178 add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
179 only when subprocesses are supported
180
181 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
182 f->output_data.x.
183 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
184 terminal devices.
185
186 * msdos.h Remove definition of struct x_display_info and struct
187 x_output.
188 (FRAME_FONT): Use output_data.tty.
189 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
190 (struct x_display_info): Renamed from display_info. All users in
191 msdos.c changed.
192 (struct x_output): Remove background_pixel and foreground_pixel.
193 (the_only_display_info): Renamed from the_only_x_display.
194 (dos_ttraw): Update prototype.
195
196 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
197 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
198
58279503
JR
1992008-08-23 Jason Rumney <jasonr@gnu.org>
200
201 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
202 (fn_TIFFSetDirectory): New library function used.
203 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
204 (tiff_load): Use :index to select among multiple images. Set count
205 property when multiple images exist.
206 (gif_format): Use :index, not :image.
207
4b7e0869
CY
2082008-08-23 Chong Yidong <cyd@stupidchicken.com>
209
210 * xdisp.c (try_scrolling): Check INT_MAX instead of
211 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
212 to obtain INT_MAX.
213
fe0a6f3b 2142008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
a3c8694a 215
fe0a6f3b 216 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
a3c8694a 217
e0ce7c50
CY
2182008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
219
220 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
221 GNUstep library location.
222
2984624d
CY
2232008-08-21 Chong Yidong <cyd@stupidchicken.com>
224
23888717
CY
225 * xfaces.c (x_update_menu_appearance): Check validity of menu font
226 before using it.
227
2984624d
CY
228 * puresize.h (BASE_PURESIZE): Increase to 1250000.
229
f2f7f42c
AR
2302008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
231
232 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
233 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
234 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
235 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
236 (EmacsApp-cursor_blink_handler): Remove declaration.
237 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
238 match 01 Feb 2008 changes in xterm.c.
239 (ns_read_socket): Add cast to avoid warning.
240 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
241 GNUstep.
242
1eff4ab3
CY
2432008-08-20 Chong Yidong <cyd@stupidchicken.com>
244
245 * xselect.c (x_get_foreign_selection): Return nil if desired
246 selection could not be obtained, instead of signalling an error.
247
fe0a6f3b 2482008-08-20 David Reitter <david.reitter@gmail.com>
b8c63ae9 249
fe0a6f3b 250 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
1eff4ab3
CY
251 * nsterm.m: Remove ns-specific code for cursor blinking.
252 (ns_draw_window_cursor): Clear cursor properly rather than
b8c63ae9 253 redrawing the area. Respect width of bar cursors.
1eff4ab3 254 These changes enable the use of generic blink-cursor-mode and
b8c63ae9
DR
255 generic cursor types in NS and support smooth cursor movements (do
256 not blink off after command).
1eff4ab3
CY
257 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
258 Nextstep, too.
b8c63ae9 259
86d21abc
KH
2602008-08-19 Kenichi Handa <handa@m17n.org>
261
262 * font.c (Vfont_log_deferred): New variable.
263 (font_add_log): Check Vfont_log_deferred.
264 (font_deferred_log): New funciton.
265
266 * font.h (font_deferred_log): Extern it.
267
268 * fontset.c (reorder_font_vector): Use encoding charset of fonts
269 for sorting.
270 (face_for_char): Use deferred log.
271
039d3b16
KH
2722008-08-18 Kenichi Handa <handa@m17n.org>
273
274 * fontset.c (face_for_char): Add font log.
275
276 * font.c (font_add_log): Add the font properties :script, :lang,
277 and :otf in the log.
278
e5ac2419
CY
2792008-08-17 Chong Yidong <cyd@stupidchicken.com>
280
281 * xdisp.c: Remove dead code.
282 (handle_invisible_prop, next_overlay_string): Defer call to
283 setup_for_ellipsis.
284 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
285
c2e9928d
CY
2862008-08-15 Chong Yidong <cyd@stupidchicken.com>
287
ef1fba80
CY
288 * xfaces.c (lookup_derived_face): Properly handle possible zero
289 return value of get_lface_attributes.
290 (merge_faces): Don't tell lookup_derived_face to signal an error
291 if face is not found.
292
1c319327
CY
293 * dired.c (Fdirectory_files): Doc fix.
294
c2e9928d
CY
295 * process.c (make_process): Initialize kill_without_query struct
296 member.
297
b8526f6e
EZ
2982008-08-15 Eli Zaretskii <eliz@gnu.org>
299
235661f6
EZ
300 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
301 Alternative calculation of totphys for Visual Studio 6.
302
8e764ce0
EZ
303 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
304
b8526f6e
EZ
305 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
306 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
307 All users changed.
a644b2e4
EZ
308 (stat): Only root directory passed to GetDriveType. Allow RAM
309 disk as well as local fixed disk when w32-get-true-file-attributes
310 is set to `local'.
f8b35b24
EZ
311 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
312 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
313 (w32_cached_id, w32_add_to_cache): New functions.
314 (get_name_and_id): Look account names in the cache before calling
315 lookup_account_sid.
316 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
317 New initialization flags.
318 (globals_of_w32): Initialize them to zero.
319 (w32_system_process_attributes): Use w32_cached_id and
320 w32_add_to_cache.
b8526f6e 321
f581fad6
CY
3222008-08-14 Lawrence Mitchell <wence@gmx.li>
323
324 * lread.c (Fread_char, Fread_char_exclusive): If no character
325 event is read before timeout is reached, return nil, rather than
326 converting to a number.
327
23c6bdbe
CY
3282008-08-14 Chong Yidong <cyd@stupidchicken.com>
329
6988207c 330 * fns.c (use_dialog_box): Doc fix.
97aec90a 331
23c6bdbe
CY
332 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
333 on OS X.
334
01623ee7
CY
3352008-08-13 Chong Yidong <cyd@stupidchicken.com>
336
337 * frame.c (Qns_parse_geometry): New var.
338 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
339
f00f8cb7
CY
3402008-08-11 Chong Yidong <cyd@stupidchicken.com>
341
342 * xdisp.c (x_produce_glyphs): Handle the case when font has no
343 space character in calculating tabs.
344
11d8ec4a
DN
3452008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
346
347 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
348
27bef0c8
GM
3492008-08-10 Glenn Morris <rgm@gnu.org>
350
351 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
352 silence gcc "limited range of data type" warnings in some
353 make_fixnum_or_float calls.
354
8f8b082a
EZ
3552008-08-09 Eli Zaretskii <eliz@gnu.org>
356
754a2d13
EZ
357 * w32.c (w32_system_process_attributes): If the process does not
358 exist, return nil.
359
8f8b082a
EZ
360 * w32.c: Include thelp32.h, psapi.h and coding.h.
361 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
362 declarations.
363 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
364 (Process32Next_Proc): New typedefs.
365 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
366 (g_b_init_process32_next, g_b_init_open_thread_token)
367 (g_b_init_impersonate_self, g_b_init_revert_to_self)
368 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
369 (g_b_init_get_process_working_set_size)
370 (g_b_init_global_memory_status_ex): New static variables.
371 (globals_of_w32): Initialize them.
372 (create_toolhelp32_snapshot, process32_first, process32_next)
373 (open_thread_token, impersonate_self, revert_to_self)
374 (get_process_memory_info, get_process_working_set_size)
375 (global_memory_status, global_memory_status_ex): New wrapper
376 functions.
377 (w32_list_system_processes, w32_system_process_attributes)
fe0a6f3b
JB
378 (enable_privilege, restore_privilege, ltime, process_times):
379 New functions.
8f8b082a
EZ
380 (convert_time_raw): New function.
381 (convert_time): Remove conversion of FILETIME into time in 100
382 nsec units, call convert_time_raw instead.
383
384 * process.h (w32_list_system_processes, w32_system_process_attributes):
385 Add prototypes.
386 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
387 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
388 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
389 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
390
391 * process.c (Fsystem_process_attributes): Doc fix.
392
97c98587
CY
3932008-08-08 Chong Yidong <cyd@stupidchicken.com>
394
fe0a6f3b
JB
395 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
396 a continued multi-char glyph; if so, advance to the actual glyph.
97c98587 397
48fad8e8
DN
3982008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
399
fe0a6f3b 400 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
48fad8e8
DN
401
402 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
403 (.m.o): Use it.
404 * config.in: Regenerate.
405
709fc721
CY
4062008-08-07 Chong Yidong <cyd@stupidchicken.com>
407
408 * xdisp.c (redisplay_window): Revert last change.
409 (try_window): Check bottom scroll margin too.
410
b330336c
AR
4112008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
412
413 * config.in: Regenerate.
414
415 * Makefile.in (emacs): Remove ndef NS conditional for 'emacs
416 -list-load-path-shadows'.
417 (nsgui.h): Reduce number of things depending on it.
418
b2c5015c
CY
4192008-08-06 Chong Yidong <cyd@stupidchicken.com>
420
421 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
422 instead of window-end which does the wrong thing at eob.
423 (try_cursor_movement): Minor optimization.
424 (redisplay_window): If scroll margin is defined, don't assume
425 window doesn't need scrolling.
426
55737942
AR
4272008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
428
429 * config.in: Regenerate.
430
431 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
432 (mostlyclean): Don't delete *.d under NS.
433
434 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
435
29428bb8
KH
4362008-08-06 Kenichi Handa <handa@m17n.org>
437
fe0a6f3b 438 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
29428bb8 439
5c17fc1d
AS
4402008-08-06 Andreas Schwab <schwab@suse.de>
441
442 * config.in: Regenerate.
443
cd7f53ca
CY
4442008-08-05 Chong Yidong <cyd@stupidchicken.com>
445
012fd6f4
CY
446 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
447 forcing a window start.
448
cd7f53ca
CY
449 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
450 (auto_save_1): Update modtime when auto-save-list-file-name is on.
451
3d0a4431
AR
4522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
453
95889848 454 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3d0a4431
AR
455 argument.
456
d765e3a3
JB
4572008-08-05 Juanma Barranquero <lekktu@gmail.com>
458
459 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
460 <scroll-down-aggressively, before-change-functions>:
461 <after-change-functions>: Reflow docstrings.
462
4e622592 4632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8df8bcc9 464 Ken Raeburn <raeburn@gnu.org>
4e622592
AR
465
466 Dock menu customization, based on a patch by Ken Raeburn, plus some
467 other fixes.
468 * nsmenu.m (dockMenu): New variable.
469 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
470
471 * nsterm.h (dockMenu): Declare.
472
473 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
474 (ns_term_init): Initialize dockMenu.
475 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
476 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
477 left.
478
479 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
480
108a6883
CY
4812008-08-04 Chong Yidong <cyd@stupidchicken.com>
482
483 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
484
485 * config.in: Regenerate.
486
ae10f60c
SZ
4872008-08-04 Seiji Zenitani <zenitani@mac.com>
488
d765e3a3 489 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
ae10f60c 490
b537b75b
CY
4912008-08-04 Chong Yidong <cyd@stupidchicken.com>
492
493 * nsterm.h (find_and_call_menu_selection): Fix prototype.
494
14145fa3
AR
4952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
496
497 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
498
499 * keyboard.h: Comment an #endif.
500
07b87a10
AR
501 * lisp.h (have_menus_p): Adjust comment.
502
503 * menu.c (find_and_return_menu_selection): Fix comparison with
504 client_data.
505
506 * nsmenu.m (popup_activated_flag): New variable.
507 (popup_activated): New function.
508 (menu-or-popup-active-p): New exported lisp definition.
509 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
510 when popup done.
511 (ns_popup_dialog): Set popup_activated_flag.
512
4e622592 513 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14145fa3
AR
514 version for GNUstep (handled by conditional typedef in nsterm.m).
515 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
516 in rgb.txt).
517
518 * process.c (init_process): Use DARWIN_OS, not DARWIN.
519
520 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
521
07b87a10
AR
522 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
523
524 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
525 shortcircuit if popup_activated like GTK and X toolkit.
526
14145fa3
AR
527 * m/inter386.h: Change DARWIN to DARWIN_OS.
528
529 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
530 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
07b87a10
AR
531 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
532 comment on NO_SOCK_SIGIO.
14145fa3 533
6e09bde1
CY
5342008-08-03 Chong Yidong <cyd@stupidchicken.com>
535
14145fa3 536 * nsterm.m (windowDidResize): Remove stopModal call.
6e09bde1 537
a023b559
AS
5382008-08-03 Andreas Schwab <schwab@suse.de>
539
51757187
AS
540 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
541 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
a023b559 542
a2dec0e5
CY
5432008-08-02 Chong Yidong <cyd@stupidchicken.com>
544
545 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
546 Don't use uninitialized pointer variable when using getrlimit.
547
4ff1bf17
JR
5482008-08-02 Jason Rumney <jasonr@gnu.org>
549
4342f814 550 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4ff1bf17 551
934e2a68
EZ
5522008-08-02 Eli Zaretskii <eliz@gnu.org>
553
0078170f
EZ
554 * alloc.c (NSTATICS): Bump to 0x640.
555
934e2a68
EZ
556 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
557
558 * lisp.h: Add prototype for directory_files_internal.
559
560 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
561 New functions.
562 (syms_of_process): Defsubr them. Add initializations for various
563 Q* symbols used in procfs_system_process_attributes.
564 (procfs_list_system_processes, procfs_system_process_attributes)
565 [HAVE_PROCFS]: New functions.
566 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
567 (procfs_get_total_memory): New functions.
568
dee8cd43
JB
5692008-08-01 Juanma Barranquero <lekktu@gmail.com>
570
571 * xfaces.c (Fx_load_color_file): Fix previous change;
572 it is #ifdef WINDOWSNT, not WINDOWS_NT.
573
367ea173
MA
5742008-08-01 Michael Albinus <michael.albinus@gmx.de>
575
576 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
577
04f33e11
AR
5782008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
579
580 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
581
73592876
CY
5822008-08-01 Chong Yidong <cyd@stupidchicken.com>
583
dee8cd43 584 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6fcb12fd
CY
585
586 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
587 define NSApplicationDelegateReplySuccess.
588 (EmacsView -converstationIdentifier): Use long instead of
589 NSInteger for GNUStep, since it doesn't have NSInteger.
590
61bf63e2
CY
591 * xmenu.c: Revert last change.
592
73592876
CY
593 * keyboard.h: Fix last change.
594
ebadbfa6
AR
5952008-08-01 Juanma Barranquero <lekktu@gmail.com>
596
597 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
598 on Windows.
599
15034960 6002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
f78c2c97 601
15034960 602 Warning clearing and clean-up in NS port.
dee8cd43
JB
603 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
604 Add prototypes.
15034960
AR
605 * nsgui.h (FACE_DEFAULT): Remove, unused.
606 (XGCValues): Change colors to unsigned long.
607 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
608 nsterm.m.
609 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
610 (ns_list_fonts): Remove, unused.
611 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
612 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
613 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
614 (nsfont_draw): Compare face colors to 0, not nil.
615 * nsmenu.m (struct widget_value): Drop unneeded declaration.
616 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
617 (-addSubmenuWithTitle:): Use NSMenuItem class.
618 (ns_popup_menu): Use NO, not NULL, for enabled setting.
619 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
620 (ns_clip_to_row): Make gc arg a BOOL.
621 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
622 ns_clip_to_row() call.
623 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
624 used). Cast FRAME_FONT assignments.
625 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
626 (ns_string_to_lispmod): Change arg to const char.
627 (ns_term_init): Use NSMenuItem class.
628 (EmacsApp -openFile:): Move to different section of file.
629 (EmacsApp -application:openFiles:): Don't return a value, call
630 -replyToOpenOrPrint:.
631 (EmacsView -keyDown:): Fix up cast.
632 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
633 (EmacsView -menuDown:): Cast tag in call to
634 find_and_call_menu_selection().
635 (ns_list_fonts): Remove, unused.
636 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
637 (ns_fontname_to_xlfd): Make static.
dee8cd43
JB
638 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
639 Remove prototypes (now in keyboard.h).
15034960 640 (next_menubar_widget_id): Remove, unused.
dee8cd43
JB
641 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
642 Remove prototypes (now in keyboard.h).
15034960
AR
643 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
644
27ec92c9
DN
6452008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
646
f78c2c97
DN
647 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
648 (floatfns.o): Depend on syssignal.h.
649 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
650
dee8cd43
JB
651 * systty.h: Fix previous change that removed BSD_TERMIOS.
652 Add comments to #ifdefs.
27ec92c9 653
7ded3383
AR
6542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
655
656 * w32fns.c (w32-load-color-file): Remove.
657 (x-open-connection): Use renamed Fx_load_color_file.
658 * xfaces.c (x-load-color-file): Add.
659 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
660 Emacs.clr.
7ded3383
AR
661 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
662
13ecc6dc
MA
6632008-07-31 Michael Albinus <michael.albinus@gmx.de>
664
665 * dbusbind.c (Fdbus_call_method_asynchronously)
666 (Fdbus_method_error_internal): New defuns.
667 (xd_read_message): Handle also reply messages.
668 (Vdbus_registered_functions_table): Extend docstring.
669
12063bc5
JB
6702008-07-31 Juanma Barranquero <lekktu@gmail.com>
671
672 * keyboard.c (gobble_input): Fix previous change.
673
7c2fb837
DN
6742008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
675
676 * bitmaps/README:
677 * xfns.c:
678 * termcap.c:
679 * term.c:
680 * syswait.h:
681 * systty.h:
682 * systime.h:
683 * syssignal.h:
684 * sysdep.c:
685 * process.h:
686 * process.c:
687 * print.c:
688 * ndir.h:
689 * lread.c:
690 * keyboard.c:
691 * getpagesize.h:
692 * floatfns.c:
693 * fileio.c:
694 * emacs.c:
695 * doc.c:
696 * dispnew.c:
697 * dired.c:
698 * data.c:
699 * callproc.c:
700 * buffer.c:
701 * README:
702 * Makefile.in:
703 * s/template.h:
704 * s/msdos.h:
705 * m/vax.h: Remove VMS support.
706 * s/vms.h:
707 * vlimit.h:
708 * uaf.h:
709 * temacs.opt:
710 * param.h:
711 * ioctl.h: Remove file.
712
69ab3201
DN
7132008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
714
715 * s/ms-w32.h (MULTI_KBOARD): Remove.
716 * xterm.c:
717 * xselect.c:
718 * xfns.c:
719 * window.c:
720 * w32term.c:
721 * w32fns.c:
722 * terminal.c:
723 * termhooks.h:
724 * term.c:
725 * sysdep.c:
726 * keyboard.h:
727 * keyboard.c:
728 * frame.h:
729 * frame.c:
d765e3a3 730 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
69ab3201
DN
731 * config.in: Regenerate.
732
bd187c49
JR
7332008-07-30 Jason Rumney <jasonr@gnu.org>
734
12063bc5 735 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
bd187c49 736
12063bc5
JB
737 * w32font.c (w32font_encode_char): Leave as unicode if in range.
738 (w32font_open_internal): Get unicode version of textmetrics.
739 Don't enable or disable glyph indices here.
740 (w32font_open): Disable use of glyph indices.
bd187c49 741
12063bc5 742 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
bd187c49 743
e3072df2
CY
7442008-07-30 Chong Yidong <cyd@stupidchicken.com>
745
39dde873 746 * minibuf.c (Vread_buffer_function): Doc fix.
e3072df2 747
bc850333
CY
7482008-07-30 John Paul Wallington <jpw@pobox.com>
749
750 * minibuf.c (read_buffer_completion_ignore_case): New var.
751 (Fread_buffer): Use it.
752
9d9a7716
DN
7532008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
754
755 * systty.h (sensemode): Remove empty #if. Remove reference to
756 BSD_TERMIOS, unused.
757
758 * sysdep.c: Remove reference to DGUX.
759 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
760
761 * config.in: Regenerate.
762
0c34f98e
JR
7632008-07-30 Jason Rumney <jasonr@gnu.org>
764
12063bc5 765 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
0c34f98e 766
c320e90a
JR
7672008-07-29 Jason Rumney <jasonr@gnu.org>
768
12063bc5
JB
769 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
770 is populated.
771 (uniscribe_encode_char): Always use uniscribe.
772 Avoid using context if cache is populated.
c320e90a 773
3f7ead30
JD
7742008-07-29 Jan Djärv <jan.h.d@swipnet.se>
775
776 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
777 open menu.
778
779 * gtkutil.c (menu_nav_ended): Remove.
780 (create_menus): Remove signal connect for menu_nav_ended.
781
639eebe2
CY
7822008-07-28 Chong Yidong <cyd@stupidchicken.com>
783
784 * xdisp.c (redisplay_window): Check return value of
785 compute_window_start_on_continuation_line before forcing a window
786 start.
787
d1f535d2
JR
7882008-07-28 Jason Rumney <jasonr@gnu.org>
789
0e134ea0 790 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9cac6313 791
0e134ea0
JB
792 * w32term.c (w32_enable_unicode_output, cleartype_active):
793 Remove obsolete display options.
794 (x_draw_glyph_string_background): Don't use old cleartype_active
795 workaround.
796 (w32_initialize): Remove cleartype_active initialization.
797 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
d1f535d2 798
ddaa36e1
AS
7992008-07-28 Andreas Schwab <schwab@suse.de>
800
801 * lisp.h (init_weak_hash_tables, syms_of_font)
802 (xd_read_queued_messages, syms_of_dbusbind): Declare.
803 (remove_hash_entry): Don't declare.
804 * eval.c (maybe_call_debugger): Make static and move before use.
805 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
806 * xdisp.c: Include "gtkutil.h" if USE_GTK.
807 * xterm.h (x_set_frame_alpha): Declare.
808
42ffd097
JD
8092008-07-28 Jan Djärv <jan.h.d@swipnet.se>
810
811 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
812 (create_menus): Connect selection-done to menu_nav_ended.
813
bd6ce2ba
AR
8142008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
815
816 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
817 Set Vx_resource_name to a fallback. Replace read of 'buffered'
818 parameter with read of 'alpha' one.
819 (Qns_frame_parameter): Remove.
820 * nsselection.m (selection-coding-system)
821 (next-selection-coding-system, Vselection_coding_system)
822 (Vnext_selection_coding_system): Drop.
823
583ff3c3
AR
8242008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
825
826 * nsfns.m (do-applescript, do_applescript): Rename to
827 ns-do-applescript, ns_do_applescript, and move within file.
828
9e2a2647
DN
8292008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
830
831 Remove support for Mac Carbon.
832 * mactoolbox.c:
833 * macterm.h:
834 * macterm.c:
835 * macselect.c:
836 * macmenu.c:
837 * macgui.h:
838 * macfns.c:
839 * mac.c: Remove file.
840 * s/darwin.h:
841 * m/intel386.h:
842 * xfaces.c:
843 * xdisp.c:
844 * window.c:
845 * tparam.c:
846 * termhooks.h:
847 * termcap.c:
848 * term.c:
849 * syssignal.h:
850 * sysselect.h:
851 * sysdep.c:
852 * process.c:
853 * lread.c:
854 * lisp.h:
855 * keyboard.c:
856 * image.c:
857 * fringe.c:
858 * frame.h:
859 * frame.c:
860 * fontset.c:
861 * font.h:
862 * font.c:
863 * fns.c:
864 * fileio.c:
865 * emacs.c:
866 * dispnew.c:
867 * dispextern.h:
868 * config.in:
869 * atimer.c:
870 * Makefile.in: Remove code for Carbon
871
7ad8fe5e 8722008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4874e088 873
7ad8fe5e 874 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
69eff41f 875
7ad8fe5e 8762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69eff41f 877
7ad8fe5e
MB
878 * macterm.h (kCGBitmapByteOrder32Host): New define for
879 non-universal SDKs.
69eff41f 880
7ad8fe5e
MB
881 * image.c (mac_create_cg_image_from_image, image_load_image_io)
882 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 883
7ad8fe5e
MB
884 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
885 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 886
7ad8fe5e 8872008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
09721b31 888
0e134ea0 889 * w32inevt.c: Include dispextern.h.
09721b31 890
51dc79f8
AS
8912008-07-26 Andreas Schwab <schwab@suse.de>
892
893 * print.c (print_object): Fix off-by-one in last change.
894
dea101f6
JB
8952008-07-25 Juanma Barranquero <lekktu@gmail.com>
896
897 * term.c (syms_of_term): Don't initialize default_orig_pair,
898 default_set_foreground and default_set_background on Windows.
899
11856d4d
JR
9002008-07-25 Jason Rumney <jasonr@gnu.org>
901
0e134ea0
JB
902 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
903 ScriptItemize. Clean up return value checking. Remove unused
904 variables.
905 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
906 shaping engine.
11856d4d 907
0e134ea0
JB
908 * w32font.c (w32font_has_char): Handle the case where we can't
909 determine the script for a character.
11856d4d 910
7bfc0e9e
CY
9112008-07-25 Chong Yidong <cyd@stupidchicken.com>
912
acdadb15
CY
913 * term.c (syms_of_term): Initialize default_orig_pair,
914 default_set_foreground, and default_set_background.
915
5efc6200
CY
916 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
917 clash (bug#86).
918 (getloadavg): Callers changed.
919
7bfc0e9e 920 * image.c (svg_load_image): Fix last change.
c01c4e35
CY
921 (svg_load_image): Use rsvg_handle_get_dimensions to check that
922 image size is valid. Use g_object_unref instead of deprecated
923 rsvg_handle_free to free rsvg handle.
9d7112ed 924 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7bfc0e9e 925
f31cf550
JR
9262008-07-25 Jason Rumney <jasonr@gnu.org>
927
0e134ea0
JB
928 * w32font.c (w32font_encode_char): Encode characters outside BMP as
929 surrogates before looking up glyph index.
930 (w32font_text_extents): Encode as surrogates if falling back to
931 functions that need UTF-16 wide chars.
f31cf550 932
0e134ea0
JB
933 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
934 BMP as surrogates before looking up glyph index.
f31cf550 935
b293d659
CY
9362008-07-25 Chong Yidong <cyd@stupidchicken.com>
937
938 * image.c (svg_load_image): Check for failure in return value of
939 rsvg_handle_get_pixbuf. Free rsvg handle when done.
940
1ada3dab
JR
9412008-07-25 Jason Rumney <jasonr@gnu.org>
942
0e134ea0 943 * w32font.c (Fx_select_font): Reverse sense of second arg.
1ada3dab 944
dbc812e0
SM
9452008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
946
6449674e
SM
947 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
948 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
949
dbc812e0
SM
950 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
951 (PURESIZE): Use it.
952
67725bd8
DN
9532008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
954
340074e9
DN
955 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
956 * m/alpha.h (TEXT_END):
957 * m/ibmrs6000.h (TEXT_END):
958 * m/macppc.h (TEXT_END):
959 * s/darwin.h (TEXT_END):
960 * s/msdos.h (TEXT_END): Remove, unused.
961 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
962 * s/cygwin.h: Remove comment.
963
a11af7f8
DN
964 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
965 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
966 * m/intel386.h (DOT_GLOBAL_START):
967 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
968 (USG): Remove, file not used on USG platforms.
969
67725bd8
DN
970 * Makefile.in (HAVE_X11): Remove empty #else.
971
6420e80c
AS
9722008-07-24 Andreas Schwab <schwab@suse.de>
973
974 * fileio.c (Finsert_file_contents): Properly adjust undo list
975 after format conversion.
976
d1c38b57
JD
9772008-07-24 Jan Djärv <jan.h.d@swipnet.se>
978
979 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
980 (menu_nav_ended): Remove.
981 (create_menus): Remove signal connect for menu_nav_ended.
982 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
983 create_menus.
984 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
985
597634cb
JR
9862008-07-23 Jason Rumney <jasonr@gnu.org>
987
dbc812e0
SM
988 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
989 with opened font.
990 (w32font_open): Set font type to gdi.
4b135503 991
dbc812e0 992 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
597634cb 993
7c799cf5
DN
9942008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
995
7a14f2a0
DN
996 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
997 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
998 defines it.
999 * unexec.c (ADDR_CORRECT): Define unconditionally.
1000
1001 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
1002
f914a6bf
DN
1003 * unexec.c: Remove code depending on !COFF and USG, the file is
1004 not used for such systems.
1005
268b24ee
DN
1006 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
1007 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
1008 (LD_SWITCH_SYSTEM_1): Remove, update users.
1009
911109b1
DN
1010 * s/darwin.h (DATA_END):
1011 * m/intel386.h (DATA_END):
1012 * m/ibmrs6000.h (DATA_END):
1013 * m/alpha.h (DATA_END): Remove, unused.
911109b1 1014
77ccee09
DN
1015 * config.in: Regenerate.
1016 * s/ms-w32.h (subprocesses): Define unconditionally.
1017 * s/template.h (subprocesses): Update comment.
1018 * s/vms.h (subprocesses):
1019 * s/usg5-4.h (subprocesses):
1020 * s/hpux10-20.h (subprocesses):
1021 * s/gnu-linux.h (subprocesses):
1022 * s/cygwin.h (subprocesses):
1023 * s/bsd-common.h (subprocesses):
1024 * s/aix4-2.h (subprocesses):
1025 * s/darwin.h (subprocesses): Do not define, defined by default now.
1026
1027 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
1028 Remove all references.
1029 (temacs): Add GNUStep specific ld flags.
1030
7c799cf5
DN
1031 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
1032 similarly to what X does.
1033
712b2de1
AR
10342008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1035
1036 * nsfns.m (x-list-fonts): Remove.
1037 (syms_of_nsfns): Drop the x-list-fonts declaration.
1038 * nsterm.m: Get rid of remaining "//" comments.
1039
0d4e1b5f
CY
10402008-07-22 Chong Yidong <cyd@stupidchicken.com>
1041
1042 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
1043
1044 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
1045 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
1046 (Fns_own_selection_internal, Fx_disown_selection_internal)
1047 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
1048
1049 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
1050 ... */' style of docstrings. Doc fixes.
1051
952913d4
DN
10522008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1053
0ecc3474 1054 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 1055
952913d4
DN
1056 * nsfns.m: Rename ns prefixed functions/variables to the
1057 corresponding x versions. Update references.
1058
02d8b017
SM
10592008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1060
1061 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
1062
11b8fe14
DN
10632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1064
02d8b017
SM
1065 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
1066 Remove forwarding functions.
cc98b6a0
DN
1067 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
1068 non-static.
1069 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
1070 non-static.
1071 (ns_frame_parm_handlers): Use the new names.
1072 (syms_of_nsfns): Move to the end of file.
1073
1baa6236
DN
1074 * nsterm.m (syms_of_nsterm): Move to the end of file.
1075
11b8fe14
DN
1076 * dispnew.c (init_display): Remove code for X10.
1077
8dcaeba2
JR
10782008-07-22 Jason Rumney <jasonr@gnu.org>
1079
02d8b017
SM
1080 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
1081 bare drive.
8dcaeba2 1082
365bac35
AR
10832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1084
1085 * nsterm.m (syms_of_nsterm): Remove debugging println.
1086
6a0f0f86
DR
10872008-07-22 David Reitter <david.reitter@gmail.com>
1088
a3c83618 1089 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
1090 Carbon implementation of the same functionality: execute arbitrary
1091 AppleScript code.
1092
51d5ef9f
AR
10932008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1094
a3c83618 1095 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
1096 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
1097 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1098 (Fx_display_mm_height, Fx_display_mm_width)
1099 (Fx_display_backing_store, Fx_display_visual_class)
1100 (Fx_display_save_under, Fx_open_connection)
1101 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
1102 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
1103 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1104 (Fx_display_pixel_width, Fx_display_pixel_height)
1105 (Fx_display_usable_bounds, Fx_display_planes)
1106 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
1107 ... */' style of docstrings.
1108
6efac844
DN
11092008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
1110
b8ff87cc
DN
1111 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
1112 on this platform.
1113 (mips):
1114 * m/iris4d.h (mips): Do not define.
1115 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
1116
92d1a7a3
DN
1117 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
1118
de08d1be
CY
1119 * image.c:
1120 * nsfns.m:
1121 * nsselect.m:
1122 * nsterm.h:
9e50ff0c
DN
1123 * nsterm.m: Rename ns prefixed functions/variables to the
1124 corresponding x versions. Update references.
1125
ff486501
DN
1126 * m/ibms390x.h (NO_REMAP): Do not undefine.
1127
6efac844
DN
1128 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
1129
ea9de876
CY
11302008-07-21 Chong Yidong <cyd@stupidchicken.com>
1131
1132 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
1133 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
1134 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
1135 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
1136 (Fns_display_mm_height, Fns_display_mm_width)
1137 (Fns_display_backing_store, Fns_display_visual_class)
1138 (Fns_display_save_under, Fns_open_connection)
1139 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
1140 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
1141 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1142 (Fns_display_pixel_width, Fns_display_pixel_height)
1143 (Fns_display_usable_bounds, Fx_display_planes)
1144 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
1145
b42f4115 11462008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
1147
1148 * print.c (print_object): Check print_depth before searching for
1149 circularities.
1150
c0894fb9
MA
11512008-07-21 Michael Albinus <michael.albinus@gmx.de>
1152
1153 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
1154 only sprintf.
1155
d90bfd1c
KH
11562008-07-21 Kenichi Handa <handa@m17n.org>
1157
1158 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
1159
8e2911c2
AS
11602008-07-20 Andreas Schwab <schwab@suse.de>
1161
1162 * syntax.c (find_start_pos, find_start_value)
1163 (find_start_value_byte, find_start_begv, find_defun_start)
dbc812e0 1164 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8e2911c2 1165
98a01702
DN
11662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
1167
1168 * s/sol2-3.h: Insert contents of s/sol2.h.
1169 (LD_SWITCH_SYSTEM): Remove redundant definition.
1170 * s/sol2.h: Remove, unused.
1171
704a3a2d
AR
11722008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1173
dbc812e0 1174 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
704a3a2d
AR
1175
11762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
1177
1178 * Makefile.in (ns_appdir): Fix typo in find command.
1179
89f1e540
DN
11802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
1181
c788afce
DN
1182 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
1183
89f1e540
DN
1184 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
1185 added not supported anymore.
1186
e5e2baab 1187 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
1188 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
1189
1190 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
1191 * s/lynxos.h (GETPGRP_NO_ARG):
1192 * s/hpux10-20.h (NO_SIOCTL_H):
1193 * s/gnu.h (GETPGRP_NO_ARG):
1194 * s/gnu-linux.h (NO_SIOCTL_H):
1195 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
1196 * s/cygwin.h (GETPGRP_NO_ARG):
1197 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
1198 (C_DEBUG_SWITCH): Remove duplicate definition.
1199
1200 * m/ibms390.h: Remove boilerplate comments.
1201
1202 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
1203
1204 * process.c (HAVE_SERIAL): Consolidate ifdefs.
1205 (wait_reading_process_output): Remove code for SunOS, platform not
1206 supported anymore. Use SOLARIS2 instead of sun.
1207
ed96cde8
AR
12082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1209
1210 * font.c (font_open_by_name): Under NS, default lface height to zero.
1211 (font_open_for_lface): Under NS, set size based on frame fontsize.
1212 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
1213 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
1214
12152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1216
1217 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
1218 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
1219 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
1220 YES/NO.
1221 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
1222 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
1223 * Makefile.in (clean): Clear out build destination dir.
1224
5a2d7ab6
AR
12252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1226
1227 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
1228 xterm, xselect.
1229 * lisp.h: Remove declaration of hash_remove.
1230 * nsgui.h: Remove redefinitions of hash_remove.
1231 * fns.c (hash_remove): Rename to hash_remove_from_table.
1232
8df8bcc9 12332008-07-19 Seiji Zenitani <zenitani@mac.com>
c0230162
AR
1234
1235 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8df8bcc9 1236 strdup() the family UTF8String before modifying it.
c0230162 1237
45d325c4
AR
12382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1239
45d325c4
AR
1240 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
1241 NS_FACE_BACKGROUND with 0 instead of nil.
1242 * nsfont.m (nsfont_draw): Same.
1243
8df8bcc9
GM
12442008-07-19 Chong Yidong <cyd@stupidchicken.com>
1245
1246 * nsfns.m (ns_set_background_color): Fix crash.
1247
b83f1cd0
CY
12482008-07-18 Chong Yidong <cyd@stupidchicken.com>
1249
1250 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
1251
add4eecc
DN
12522008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
1253
1254 * puresize.h (BASE_PURESIZE): Increase to 1240000.
1255
69955d31
YM
12562008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1257
1258 * gtkutil.c: Include <config.h> instead of "config.h".
1259
1260 * lisp.h (Foverlay_buffer): Add EXFUN.
1261
1262 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
1263 child process to complete child_setup. Undo 2005-09-21 change.
1264
1265 * s/darwin.h: Mention setsid after vfork.
1266
08b3caa9 12672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
1268
1269 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
1270 Depend on macgui.h.
1271
1272 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
1273 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
1274
1275 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
1276 and f19.
1277 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
1278
1279 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1280 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1281 Remove enumerators.
1282
1283 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
1284 Check if FACE_FROM_ID returns NULL.
1285
8d59c5ed
JR
12862008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
1287
ba60bd44
JB
1288 * w32inevt.c (change_frame_size): Remove extern declaration.
1289 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
1290 change_frame_size.
8d59c5ed 1291
ba60bd44 12922008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
1293
1294 * getloadavg.c: Revert last change (2008-07-15).
1295
ba60bd44 12962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
1297
1298 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
1299 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
1300 from configure.
1301
2749d28e
DN
13022008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
1303
35ad0545
DN
1304 * s/sol2.h:
1305 * s/sol2-4.h: Reorganize conditionals.
1306
2749d28e
DN
1307 * ecrt0.c: Remove code depending on m68000, not used anymore.
1308
1309 * fns.c (hash_remove): Make static.
1310 * lisp.h (hash_remove): Don't prototype.
1311
1312 * m/ibmrs6000.h:
1313 * m/ibms390x.h:
1314 * m/macppc.h: Remove boilerplate comments.
1315
1316 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
1317 Solaris, which does not need them.
1318
1319 * m/vax.h: Remove comments about unsupported systems.
1320
1321 * s/darwin.h: Reorganize ifdefs.
1322
32cc3925
AS
13232008-07-17 Andreas Schwab <schwab@suse.de>
1324
1325 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
1326
facfbbbd
SM
13272008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1328
1329 Use SDATA. Follow coding convention of placing operators at
1330 beginning of next line rather than end of previous line, and placing
1331 spaces around infix operators.
1332
1333 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
1334 in case it was defined already.
1335 USE @GNUSTEP_MAKEFILES@ rather than envvars.
1336 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
1337 ns_default.
1338 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
1339 Lisp_Objects.
1340 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
1341 (ns_defined_color, ns_color_to_lisp): Declare.
1342 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
1343 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
1344 it's accepted even with USE_LISP_UNION_TYPE.
1345 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
1346 (update_frame_tool_bar): Remove apparently obsolete tests for
1347 non-integerness of f->tool_bar_lines.
1348 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
1349 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
1350 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
1351 (nsfont_open): Don't confuse NULL for Qnil.
1352 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
1353 * menu.h (find_and_call_menu_selection):
1354 * menu.c (find_and_call_menu_selection): Use just int for vector size.
1355 (find_and_return_menu_selection): Always return something.
1356 * frame.h: Include dispextern.h for Display_Info.
1357 (display_x_get_resource): Declare.
1358
ba60bd44 13592008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
1360
1361 * syntax.c: Remove stdio.h include accidentally introduced in
1362 Emacs.app commit.
1363 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
1364 NS_IMPL_COCOA.
1365 * keyboard.c (handle_async_input, input_available_signal): Remove
1366 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
1367
0bcfd7d7
SM
13682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1369
6882361b
SM
1370 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
1371 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
1372 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
1373 Use SDATA.
1374
0bcfd7d7
SM
1375 * keymap.c: Remove all NS-specific code.
1376 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
1377 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
1378 where_is_preferred_modifier, return a different value depending on how
1379 preferred is the binding.
1380 (where_is_internal): Adjust accordingly.
1381 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
1382 Adjust to new preferred_sequence_p.
1383 (syms_of_keymap): Declare `where-is-preferred-modifier'.
1384 * keyboard.c (parse_solitary_modifier): Not static any more.
1385 * keyboard.h (parse_solitary_modifier): Declare.
1386
720f3147
AS
13872008-07-16 Andreas Schwab <schwab@suse.de>
1388
1389 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
1390 of easymenu.
1391
01e19fea
CY
13922008-07-16 Chong Yidong <cyd@stupidchicken.com>
1393
1394 * xdisp.c (move_it_in_display_line): Account for word wrap, so
1395 that we don't move off the line.
1396
4c89a3e0
SM
13972008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1398
1399 * keyboard.c (Qsuper): Remove.
1400 (parse_menu_item): Don't call where_is_internal specially for NS.
1401
586b975c
DN
14022008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1403
3ec8ef33
DN
1404 * s/gnu-linux.h: Remove boilerplate comments.
1405
d4d080b6
DN
1406 * m/alpha.h (__ELF__): Consolidate conditions.
1407
7ab56cc4
DN
1408 * m/m68k.h (linux): Use GNU_LINUX instead.
1409 Remove boilerplate comments.
1410
586b975c 1411 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
1412 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
1413 too, remove dead code.
1414 (linux): Use GNU_LINUX instead.
586b975c 1415
5cc9d48a
JR
14162008-07-16 Jason Rumney <jasonr@gnu.org>
1417
4c89a3e0 1418 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 1419
6b0273cd
DN
14202008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1421
132d0475
DN
1422 * systty.h: Remove code for Aix on 386, unsupported platform.
1423
1424 * s/ms-w32.h: Remove boilerplate comments.
1425 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
1426
1427 * s/gnu-linux.h (TERM): Remove support.
1428 (HAVE_SYSVIPC): Remove, unused.
1429 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
1430 for this system.
1431
1432 * process.c: Remove support for IRIS, unused.
1433 Remove support for TERM, not relevant anymore.
1434
1435 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
1436 used with the definition.
1437
1438 * s/aix4-2.h (static): Do not undef.
1439
1440 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
1441 only used on Aix.
1442 (HAVE_SYSVIPC): Remove, unused.
1443
1444 * m/hp800.h (CANNOT_DUMP): Do not undef.
1445
1446 * m/alpha.h: Fix comment.
1447
8111c2d8
DN
1448 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
1449 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
1450 used by this configuration.
1451 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
1452 * unexec.c: Remove code depending on HPUX and
1453 USG_SHARED_LIBRARIES, not used with this file. Remove code
1454 depending on IRIS, unused. Remove if 0-ed code.
1455
e9a57a88
DN
1456 * s/template.h: Remove comments about static.
1457
4c89a3e0
SM
1458 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
1459 Remove if 0-ed code.
c7607b94
DN
1460 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
1461 were the same as the default.
1462 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
1463 Remove boilerplate comments.
1464 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
1465 (HAVE_SYSVIPC): Remove, unused.
1466 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
1467
ff841b30
DN
1468 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1469 Remove boilerplate comments.
1470 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1471 Remove boilerplate comments.
1472 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1473 Remove boilerplate comments.
1474 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
1475
586b975c
DN
1476 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
1477 USG systems which do not use DATA_SEG_BITS.
1478 Refactor code. Remove boilerplate comments.
1479
dc89925b 1480 * m/ibms390.h:
dc89925b
DN
1481 * m/m68k.h:
1482 * s/bsd-common.h:
1483 * s/cygwin.h:
1484 * s/darwin.h:
1485 * s/freebsd.h:
1486 * s/gnu.h:
1487 * s/msdos.h: Remove boilerplate comments.
1488
96b72211
DN
1489 * m/iris4d.h: Remove boilerplate comments and code for systems that
1490 do not use this file.
1491 (IRIS_4D): Remove, unused.
1492
c3b5f109
DN
1493 * m/mips.h: Remove boilerplate comments and code for systems that
1494 do not use this file.
96b72211 1495 (SIGN_EXTEND_CHAR):
c3b5f109
DN
1496 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
1497 * unexmips.c: Remove file, unused.
1498
6b0273cd
DN
1499 * editfns.c (Fuser_full_name): Replace the only use of
1500 USER_FULL_NAME with its value.
1501 * config.in: Regenerate.
1502
ba60bd44 15032008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 1504
ba60bd44
JB
1505 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
1506 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 1507
44ac2d3e
GM
15082008-07-16 Glenn Morris <rgm@gnu.org>
1509
1510 * emacs.c (system-type): Doc fix.
1511
0a170079
SM
15122008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
1515 If the cache doesn't work, let's fix it, rather than work around it.
1516
ba60bd44 15172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
1518
1519 * Makefile.in: Correct additions for nsfont.o in last commit.
1520 * nsfont.m: New file (forgot last commit).
1521
8df8bcc9
GM
15222008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1523
1524 * callproc.c (set_initial_environment): Initialize
1525 Vprocess_environment under CANNOT_DUMP (fixes crash when
1526 batch-compiling for bootstrap).
1527
15282008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1529 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1530
1531 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
1532 fix crash due to different init order.
1533
ba60bd44 15342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
1535
1536 Changes and additions for NeXTstep windowing system (Cocoa and
1537 GNUstep) support.
1538
ba60bd44 1539 * Makefile.in:
edfda783
AR
1540 * config.in: Support defines and build commands for NS port.
1541 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1542 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
edfda783
AR
1543 * dispextern.h: Include nsgui.h and add needed typedefs under NS
1544 windowing.
1545 (struct face): Add synth_ital field.
1546 * dispnew.c: Include nsterm.h when compiling under NS windowing.
1547 (init_display): Initialize Vinitial_window_system to "ns" when so
1548 compiled.
1549 * emacs.c: Include GSConfig.h when compiling under GNUstep.
1550 (display_arg): Use under NS.
1551 (main): Under NS, allocate autorelease pool and handle command line
1552 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
1553 (standard_args): Add NS-specific args.
1554 (shut_down_emacs): Shut down NS terminal if compiled under NS.
1555 * font.c (DEFAULT_ENCODING): New variable.
1556 (font_find_for_lface): Use it.
1557 (syms_of_font): Load syms_of_nsfont under NS.
1558 * font.h: Declare nsfont_driver when compiled under NS.
1559 * fontset.c: When compiling under NS, include nsterm.h.
1560 (fontset_from_font): Autoconstruct fontset under NS.
1561 * frame.c (various): Under NS, include nsterm.h, add Qns window system
1562 symbol, document and use it.
edfda783
AR
1563 (do_switch_frame): When for_deletion under Cocoa, add
1564 Fraise_frame(Qnil).
1565 (x_set_frame_parameters): Ensure font attribute changes are picked up.
1566 (x_get_arg): Allow "yes" and "no" as boolean values.
1567 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
1568 Qright under Cocoa.
1569 (focus-follows-mouse): Default to 0 under NS.
1570 * frame.h (enum output_method): Add output_ns.
1571 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
1572 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
1573 (FRAME_WINDOW_P): NS-specific definition.
1574 * fringe.c (max_used_fringe_bitmap): Make public.
1575 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
1576 (getloadavg): Use NeXT code under descendant OS's.
1577 * image.c (includes and header section, x_create_bitmap_from_data)
1578 (x_create_bitmap_from_file, free_bitmap_record, image_background)
1579 (image_background_transparent, x_clear_image_1)
1580 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1581 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
1582 (x_to_xcolors, x_from_xcolors, x_disable_image)
1583 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
1584 other GUIs, including XPM support using code originally written for
1585 Carbon GUI.
0a170079 1586 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
1587 using NS API.
1588 (image_ascent): Use font metrics macros instead of direct struct field
1589 access.
1590 * keyboard.c (includes): Add nsterm.h when compiling under NS.
1591 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
1592 Also, handle NS as GTK for menu bar purposes.
1593 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
1594 toolkit where they differ.
1595 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
1596 use cachelist, still needed under NS.
6ddc6cca 1597 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
1598 (struct widget_value): Define it here for menu.c.
1599 * keymap.c (includes): Include modifier internals.
1600 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
1601 NS.
1602 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
1603 support for preferring sequences using certain modifiers, specified by
1604 the FIRSTONLY argument.
1605 * lisp.h (hash_remove): Rename to avoid name clash when compiling
1606 under NS GNUstep implementation.
1607 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
1608 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
1609 * menu.c: Include nsterm.h under NS.
1610 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
1611 (free_menubar_widget_tree_value, update_submenu_strings)
1612 (find_and_call_menu_selection): Treat NS as X and NT.
1613 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
1614 * nsgui.h:
1615 * nsterm.h:
1616 * nsfns.m:
1617 * nsimage.m:
1618 * nsmenu.m:
1619 * nsselect.m:
edfda783
AR
1620 * nsterm.m: New files.
1621 * process.c (wait_reading_process_output): Under NS, call ns_select()
1622 instead of plain select().
1623 * syntax.c (char_quoted): Under NS, avoid a crash when called near
1624 beginning of buffer.
1625 * sysselect.h (init_process): Rename when compiling under Cocoa to
1626 avoid name conflict.
1627 * termhooks.h (display_info): Add ns_display_info to union.
1628 * terminal.c (Fterminal_live_p): Add ns to terminal types.
1629 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
1630 COCOA environment.
1631 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
1632 unexec() signature. (Note, this will dump, but the resulting file
1633 crashes; unexosx is used instead; keeping around for reference and
1634 possible aid in getting dump working under GNUstep.)
1635 * w32gui.h (button_type, widget_value): Remove definitions (now in
1636 keyboard.h).
1637 * window.c: Include nsterm.h when compiling under NS.
1638 * xdisp.c (includes): Include nsterm.h when compiling under NS.
1639 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
1640 other GUI windowing systems.
1641 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
1642 GTK.
1643 (x_consider_frame_title): Under NS, set icon type and frame
1644 modified-state indicator; use ns_set_name_as_filename() when using
1645 formatted title.
1646 (update_window_cursor): Make public when compiling under NS.
1647 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
1648 (hourglass_atimer, Vhourglass_delay
1649 * xfaces.c (header section, init_frame_faces, clear_font_table)
1650 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
1651 (prepare_face_for_display): Add NS support parallel to other GUIs.
1652 Emulate GCs like other non-X GUIs.
edfda783
AR
1653 (split_font_name): Don't lowercase font name under NS.
1654 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
1655 under NS.
1656 * s/darwin.h: Add support for compilation under NS.
1657
1391cd54
JR
16582008-07-15 Jason Rumney <jasonr@gnu.org>
1659
6ddc6cca
SM
1660 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
1661 (w32_show_hourglass): Rename from show_hourglass.
1662 (w32_hide_hourglass): Rename from hide_hourglass.
1663 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
1664 (Vhourglass_delay): Declare extern.
1665 (hourglass_started): Remove.
1391cd54 1666
6ddc6cca
SM
1667 * xdisp.c (Vhourglass_delay): Remove static.
1668 (hourglass_started, start_hourglass, cancel_hourglass):
1669 Don't include these versions on WINDOWSNT.
1391cd54 1670
1885ab29
AR
16712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1672
6ddc6cca 1673 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 1674 variables (formerly in xfns.c).
1885ab29
AR
1675 (show_hourglass, hide_hourglass): New prototypes (same).
1676 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
1677 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 1678 in xfns.c).
1885ab29
AR
1679 (syms_of_xdisp): Declare/initialize display-hourglass,
1680 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
1681 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 1682 formerly in xfns.c.
1885ab29
AR
1683 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1684 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1685 (start_hourglass, cancel_hourglass): Remove.
1686 (show_hourglass, hide_hourglass): Remove prototypes and static
1687 modifiers.
1688 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
1689 hourglass_atimer, hourglass_shown_p declaration/initialization.
1690 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1691 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1692 (start_hourglass, cancel_hourglass): Remove.
1693 (show_hourglass, hide_hourglass): Remove prototypes and static
1694 modifiers.
1695 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
1696 hourglass_atimer, hourglass_shown_p declaration/initialization.
1697 * w32fns.c (display_hourglass_p, Vhourglass_delay)
1698 (DEFAULT_HOURGLASS_DELAY): Remove.
1699 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
1700 hourglass_shown_p declaration/initialization.
1701
3faa984f
JR
17022008-07-14 Jason Rumney <jasonr@gnu.org>
1703
6ddc6cca
SM
1704 * w32fns.c (w32_get_arg): Remove wrapper function.
1705 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
1706 directly.
1707 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 1708
2f73901f
KH
17092008-07-14 Kenichi Handa <handa@m17n.org>
1710
1711 * xfont.c (xfont_open): Add workaround for X's bug.
1712
11da284d
KH
17132008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1714
1715 * fontset.c: Include <stdio.h> unconditionally.
1716
944cc4a8
MA
17172008-07-13 Michael Albinus <michael.albinus@gmx.de>
1718
1719 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
1720 for filtering.
1721
bdee2ef3
DN
17222008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1723
1724 * s/vms.h: Use __GNUC__ instead of _GNUC_.
1725
1726 * m/macppc.h:
1727 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
1728
1729 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
1730 (SPECIAL_EMACS_INT):
1731 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
1732 * m/amdx86-64.h (SPECIAL_EMACS_INT):
1733 * s/gnu.h (NLIST_STRUCT):
4342f814 1734 * s/aix4-2.h (X11R5_INHIBIT_I18N):
bdee2ef3
DN
1735 * s/gnu-linux.h (LINUX):
1736 * s/msdos.h (HAVE_FACES):
1737 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
1738
944cc4a8 1739 * systty.h:
bdee2ef3
DN
1740 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
1741 anymore.
1742
bba104c1
DN
17432008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1744
1745 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
1746 always defined as int.
1747
1748 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
1749 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
1750 * s/gnu-linux.h (HAVE_WAIT_HEADER):
1751 * s/freebsd.h (HAVE_WAIT_HEADER):
1752 * s/bsd-common.h (HAVE_UNION_WAIT):
1753 * s/aix4-2.h (HAVE_WAIT_HEADER):
1754 * m/mips.h (HAVE_UNION_WAIT):
1755 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
1756 (COFF, static): Do not define, they are undefined later in the file.
1757
1758 * process.c (update_status): Don't use a union.
1759 (status_convert):
1760 (sigchld_handler): Use int instead of WAITTYPE.
1761
e433031a
CY
17622008-07-12 Chong Yidong <cyd@stupidchicken.com>
1763
1764 * indent.c (Fvertical_motion): Restore hscroll before moving to
1765 goal column.
1766
3bfb4d48
DN
17672008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1768
1769 * lisp.h: Remove left over code.
1770
e7c9048f
AS
17712008-07-11 Andreas Schwab <schwab@suse.de>
1772
7e770c85
AS
1773 * lisp.h: Fix logic in last change.
1774
e7c9048f
AS
1775 * menu.h: New file.
1776 * menu.c: Include it.
1777 * xmenu.c: Likewise.
1778 * Makefile.in: Update dependencies.
1779
38aaf336
KH
17802008-07-11 Kenichi Handa <handa@m17n.org>
1781
1782 * fontset.c (fontset_from_font): Cancel the previous change.
1783
6e5cb96f
DN
17842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1785
1786 * lisp.h:
1787 * w32heap.c:
1788 * emacs.c:
1789 * alloc.c: Replace all references of NO_UNION_TYPE with
1790 USE_LISP_UNION_TYPE.
1791
1792 * m/xtensa.h (NO_UNION_TYPE):
1793 * m/vax.h (NO_UNION_TYPE):
1794 * m/template.h (NO_UNION_TYPE):
1795 * m/sparc.h (NO_UNION_TYPE):
1796 * m/mips.h (NO_UNION_TYPE):
1797 * m/macppc.h (NO_UNION_TYPE):
1798 * m/m68k.h (NO_UNION_TYPE):
1799 * m/iris4d.h (NO_UNION_TYPE):
1800 * m/intel386.h (NO_UNION_TYPE):
1801 * m/ibms390x.h (NO_UNION_TYPE):
1802 * m/ibms390.h (NO_UNION_TYPE):
1803 * m/ibmrs6000.h (NO_UNION_TYPE):
1804 * m/ia64.h (NO_UNION_TYPE):
1805 * m/hp800.h (NO_UNION_TYPE):
1806 * m/arm.h (NO_UNION_TYPE):
1807 * m/amdx86-64.h (NO_UNION_TYPE):
1808 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
1809 defining it the same.
1810
e0f47a68
CY
18112008-07-10 Chong Yidong <cyd@stupidchicken.com>
1812
ba60bd44 1813 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 1814
c5e7567d
DN
18152008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1816
4342f814
JB
1817 * fileio.c:
1818 * sysdep.c
1819 * systty.h:
1820 * m/ibmrs6000.h:
1821 * m/iris4d.h:
1822 * s/aix4-2.h:
1823 * s/freebsd.h:
1824 * s/gnu-linux.h:
1825 * s/hpux10-20.h:
1826 * s/hpux11.h:
1827 * s/netbsd.h:
1828 * s/sol2-3.h:
1829 * s/sol2-4.h:
1830 * s/sol2.h:
1831 * s/usg5-4.h:
1832 * s/vms.h: Remove references to unused variables.
c5e7567d 1833
bb658864
AS
18342008-07-10 Andreas Schwab <schwab@suse.de>
1835
1836 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
1837 pattern before matching the generic family.
1838
3d3db608
DN
18392008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1840
a0ce9ab7 1841 * unexec.c:
3460e0b9
DN
1842 * s/vms.h:
1843 * s/usg5-4-2.h:
1844 * s/sol2-5.h:
1845 * s/freebsd.h:
1846 * s/darwin.h: Remove dead code.
1847
ad76189a
DN
1848 * m/template.h:
1849 * m/sparc.h:
1850 * m/mips.h:
1851 * m/m68k.h:
1852 * m/iris4d.h:
1853 * m/intel386.h:
1854 * m/ibms390x.h:
1855 * m/ibms390.h:
1856 * m/ia64.h:
1857 * m/hp800.h:
1858 * m/arm.h:
1859 * m/amdx86-64.h: Remove dead code and references to unused
1860 and compiler defined symbols.
1861
d2b5bbda
DN
1862 * unexmips.c:
1863 * unexelf.c: Remove references to desupported systems.
1864
40dde9d1
DN
1865 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
1866
21133394
DN
1867 * m/powermac.h: Remove boilerplate comments.
1868 (NO_REMAP): Remove unused definition.
1869
3d3db608
DN
1870 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
1871 define them.
1872
c8e0e16d
KH
18732008-07-10 Kenichi Handa <handa@m17n.org>
1874
1875 * xfont.c (xfont_open): Log the reason of failure.
1876
3cba9369
SM
18772008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1878
1879 * fontset.c (fontset_get_font_group):
1880 * font.c (font_check_otf): Specify argument types.
1881
73353585
KH
18822008-07-09 Kenichi Handa <handa@m17n.org>
1883
0e17387a
KH
1884 * coding.c (detect_coding_utf_8): Set detect_info->found only when
1885 non-ASCII char is found.
1886
73353585
KH
1887 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1888 (reorder_font_vector): Change the arg preferred_family to font.
1889 Prefer the spec matching with font.
1890 (fontset_get_font_group): New function.
1891 (fontset_find_font): Change the format of an element of a realized
1892 fontset. Use fontset_get_font_group.
1893 (fontset_font): Try the current fontset, the default fontset, the
1894 fallbacks of the current fonset, and the fallbacks of the default
1895 fontset in this order.
1896 (face_for_char): Delete the shortcut to use the current font.
1897 (fontset_from_font): Don't set fonts for Latin in the fontset.
1898
1899 * font.h (font_make_object, font_match_p): Adjust prototypes.
1900
1901 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1902
1903 * font.c (font_make_object): New arg entity and pixelsize.
1904 (font_check_otf_features, font_check_otf): New functions.
1905 (font_match_p): Check :lang, :script, and :otf properties.
1906
1907 * xfont.c (xfont_open): Adjust it for the change of
1908 font_make_object.
e5d05978 1909 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
1910
1911 * ftfont.c (struct ftfont_info): New member index, delete member
1912 fc_charset_idx. Make the member order compatible with struct
1913 xftfont_info.
1914 (fc_charset_table): Change charset names to registry names.
1915 (ftfont_pattern_entity): Delete the args registry and
1916 fc_charset_idx. Change the value of :font-entity property
1917 to (FONTNAME . INDEX). Always set :registry property to
1918 `iso10646-1'.
1919 (struct ftfont_cache_data): New struct.
1920 (ftfont_lookup_cache): New arg for_face.
1921 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1922 (ftfont_driver): Set the member otf_capability.
1923 (ftfont_get_charset): Adjust it for the change of
1924 fc_charset_table.
1925 (OTF_TAG_SYM): New macro.
1926 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
1927 for the change of fc_charset_table.
1928 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1929 ftfont_pattern_entity. Add FC_INDEX to objset.
1930 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1931 and ftfont_pattern_entity.
1932 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1933 font_make_object, struct ftfont_info.
1934 (ftfont_has_char): Use ftfont_get_fc_charset.
1935 (ftfont_otf_features, ftfont_otf_capability): New functions.
1936 (ftfont_shape): Use ftfont_get_otf.
e5d05978 1937 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
1938
1939 * xftfont.c (struct xftfont_info): New member ft_size. Make the
1940 member order compatible with struct ftfont_info.
1941 (xftfont_open): Add FC_CHARSET to the pattern. Set
1942 xftfont_info->ft_size. Don't unlock the face. Check BDF
1943 properties if appropriate.
1944 (xftfont_close): Unlock the face.
1945 (xftfont_anchor_point, xftfont_shape): Deleted.
1946 (syms_of_xftfont): Don't set members anchor_point and shape of
1947 xftfont_driver.
1948
1949 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1950 font_make_object.
1951
1952 * w32font.c (w32font_open): Adjust it for the change of
1953 font_make_object.
1954 (w32font_open_internal): Don't set properties of font_object here.
1955
7f000038
CY
19562008-07-08 Chong Yidong <cyd@stupidchicken.com>
1957
830aab93
CY
1958 * macfns.c (x_create_tip_frame):
1959 * w32fns.c (x_create_tip_frame):
1960 * xfns.c (x_create_tip_frame): Pass parameter argument to
1961 face-set-after-frame-default.
1962
7f000038
CY
1963 * xfaces.c (Finternal_merge_in_global_face): Save merged
1964 attributes for the default face back into the face vector.
1965
85cf8992
AS
19662008-07-08 Andreas Schwab <schwab@suse.de>
1967
1968 * fontset.h: Declare fontset_from_font. Don't declare
1969 new_fontset_from_font and fontset_from_font_name.
1970 * xterm.c: Include "fontset.h".
1971 * Makefile.in (xterm.o): Update dependencies.
1972
4a00783e
GM
19732008-07-08 Glenn Morris <rgm@gnu.org>
1974
1975 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
1976 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1977
4d2d5f5f
CY
19782008-07-07 Chong Yidong <cyd@stupidchicken.com>
1979
1980 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1981 (x_set_frame_parameters): Don't bind it.
1982
dfe66c5b
JB
19832008-07-07 Juanma Barranquero <lekktu@gmail.com>
1984
1985 * w32fns.c (map_w32_filename): Declare extern.
1986
ec7e221c
JR
19872008-07-07 Jason Rumney <jasonr@gnu.org>
1988
dfe66c5b 1989 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 1990
fe5d61c4
CY
19912008-07-06 Chong Yidong <cyd@stupidchicken.com>
1992
1993 * xfaces.c (set_font_frame_param): Don't try to set the font
1994 parameter if it is still unspecified in the lface.
1995
9204cb8b
CY
19962008-07-05 Chong Yidong <cyd@stupidchicken.com>
1997
0a143d3a
CY
1998 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1999 face if it didn't already exist.
2000
9204cb8b
CY
2001 * xdisp.c (try_window_id): Give up if word-wrapping is on.
2002
6c95e70d
AS
20032008-07-05 Andreas Schwab <schwab@suse.de>
2004
dfe66c5b 2005 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 2006
59230395
CY
20072008-07-05 Chong Yidong <cyd@stupidchicken.com>
2008
2009 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
2010 word-wrapping.
2011 (IT_DISPLAYING_WHITESPACE): New macro.
2012 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
2013 when word-wrapping. Simplify word-wrapping logic. Use correct
2014 pixel positions when saving copies of the iterator.
2015 (display_line): Use proper wrap point if the last character on a
2016 line was preceded by whitespace.
2017
d7c664f3
SM
20182008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
2019
2020 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
2021
9ffc8a3a
KH
20222008-07-04 Kenichi Handa <handa@m17n.org>
2023
2024 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
2025
2026 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
2027
946598bf
JR
20282008-07-02 Jason Rumney <jasonr@gnu.org>
2029
d7c664f3
SM
2030 * xfns.c (syms_of_xfns): Only define x-select-font when both
2031 HAVE_FREETYPE and USE_GTK
946598bf 2032
d7c664f3
SM
2033 * xdisp.c (next_element_from_display_vector): Move assignment out
2034 of if statement.
946598bf 2035
6cf29fe8
JR
20362008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
2037
d7c664f3 2038 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 2039
d7c664f3
SM
2040 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
2041 (syms_of_fileio): Initialize and export them.
2042 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 2043
d7c664f3
SM
2044 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
2045 (Fsystem_move_file_to_trash): New function.
2046 (syms_of_w32fns): Export it to lisp.
6cf29fe8 2047
79ca7db1
JR
20482008-07-01 Jason Rumney <jasonr@gnu.org>
2049
d7c664f3
SM
2050 * w32font.c (w32font_text_extents): Don't count overhang as part
2051 of width.
79ca7db1 2052
c2786a3d 20532008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
2054
2055 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
2056 Add `avoid_cursor_p' field.
2057
2058 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
2059 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
2060 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
2061 (append_stretch_glyph): Initialize avoid_cursor_p.
2062 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
2063 (x_produce_glyphs): Use get_it_property.
2064 (handle_line_prefix, push_display_prop): New functions.
2065 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
2066 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
2067 New variables.
c4f4682b
MB
2068 (syms_of_xdisp): Initialize them.
2069
7d7ad10e
KH
20702008-06-30 Kenichi Handa <handa@m17n.org>
2071
2072 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
2073 XftDefaultSubstitute (they are called in XftFontMatch).
2074 (xftfont_open): Fix args to ftfont_font_format.
2075
2076 * ftfont.c (fc_charset_table): New member lang.
2077 (ftfont_resolve_generic_family): New arg pattern.
2078 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
2079 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
2080 (ftfont_open): Fix args to ftfont_font_format.
2081 (ftfont_font_format): New arg filename.
2082
44b754c7
CY
20832008-06-30 Chong Yidong <cyd@stupidchicken.com>
2084
2085 * xfaces.c (Finternal_merge_in_global_face): If default face was
2086 modified, realize it again. Update the font face attribute.
2087
a4521b03
JR
20882008-06-29 Jason Rumney <jasonr@gnu.org>
2089
c2786a3d 2090 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 2091
fe44f009
KH
20922008-06-29 Kenichi Handa <handa@m17n.org>
2093
2094 * fontset.c (Finternal_char_font): Return font-object instead of
2095 font-name.
2096
c2786a3d 2097 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 2098
baed8445
SM
20992008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
2100
2101 * indent.c (Fvertical_motion): Properly handle float column arg.
2102
8b61a891
JR
21032008-06-28 Jason Rumney <jasonr@gnu.org>
2104
baed8445
SM
2105 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
2106 (pfnSetLayeredWindowAttributes): New function pointer.
2107 (w32_initialize): Initialize it when supported.
2108 (x_set_frame_alpha): New function.
8b61a891 2109
baed8445
SM
2110 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
2111 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 2112
baed8445 2113 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 2114
57016d37
JR
21152008-06-27 Jason Rumney <jasonr@gnu.org>
2116
baed8445
SM
2117 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
2118 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
2119 (w32_to_x_charset, x_to_w32_charset)
2120 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2121 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2122 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2123 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2124 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2125 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2126 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
2127 (Qw32_charset_unicode): Remove.
2128 (syms_of_w32fns): Update for above changes.
2129
2130 * w32font.c (w32_to_x_charset, x_to_w32_charset)
2131 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2132 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2133 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2134 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2135 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2136 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2137 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
2138 (syms_of_w32font): Update for above changes.
57016d37 2139
d6bf1bdb
DN
21402008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2141
2142 * s/usg5-4.h: Fix previous change: keep the correct branch of a
2143 removed #if.
9fa1c445 2144 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 2145
43db14bb
JB
21462008-06-26 Juanma Barranquero <lekktu@gmail.com>
2147 Eli Zaretskii <eliz@gnu.org>
2148
2149 * makefile.w32-in (LOCAL_FLAGS):
2150 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
2151
2152 * sysdep.c (_spawnlp, _getpid):
2153 Declare with explicit _cdecl instead of _CRTAPI1.
2154
2155 * editfns.c (Fget_internal_run_time):
2156 Check for WINDOWSNT with #ifdef, not #if.
2157
c35f9821
JR
21582008-06-26 Jason Rumney <jasonr@gnu.org>
2159
43db14bb 2160 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 2161
57016d37 2162 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
2163 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
2164 Use FONT_HANDLE macro.
2165 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 2166
57016d37 2167 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 2168 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 2169
43db14bb
JB
2170 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
2171 (w32font_text_extents): Use precast w32_font.
2172 (w32font_close): Free cached metrics.
2173 (w32font_open_internal): Allocate space for name on stack.
c35f9821 2174
1f8ad719
CY
21752008-06-26 Chong Yidong <cyd@stupidchicken.com>
2176
2177 * xdisp.c (extend_face_to_end_of_line): Fix last change.
2178
97e71655
JR
21792008-06-26 Jason Rumney <jasonr@gnu.org>
2180
43db14bb
JB
2181 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
2182 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 2183
c9fc02c7
JB
21842008-06-26 Juanma Barranquero <lekktu@gmail.com>
2185
2186 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
2187
1b5defe6
JR
21882008-06-26 Jason Rumney <jasonr@gnu.org>
2189
c9fc02c7 2190 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 2191
c9fc02c7 2192 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 2193
c9fc02c7
JB
2194 * w32gui.h: Don't include w32bdf.h.
2195 (XCharStruct, enum w32_char_font_type, W32FontStruct):
2196 Remove obsolete font support.
1b5defe6 2197
c9fc02c7
JB
2198 * w32font.h (struct w32font_info): Remove compat_w32_font.
2199 Add hfont member.
2200 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 2201
ba60bd44 2202 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 2203 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 2204 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 2205 (Fx_select_font): Use new hfont member.
1b5defe6 2206
57016d37 2207 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 2208 (uniscribe_encode_char): Use new hfont member.
1b5defe6 2209
57016d37 2210 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
2211 (x_draw_composite_glyph_string_foreground): Use new hfont member.
2212 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 2213
1fc66bca
KH
22142008-06-26 Kenichi Handa <handa@m17n.org>
2215
2216 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
2217
f2a77c3a
DN
22182008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
2219
2220 * unexnext.c:
2221 * m/ews4800.h:
2222 * m/hp9000s300.h:
2223 * m/ibm370aix.h:
2224 * m/mips-siemens.h:
2225 * m/ncr386.h:
2226 * m/next.h:
2227 * m/pmax.h:
2228 * m/powerpcle.h:
2229 * m/tandem-s2.h:
2230 * s/386bsd.h:
2231 * s/bsd386.h:
2232 * s/bsd4-1.h:
2233 * s/bsd4-2.h:
2234 * s/bsdos2-1.h:
2235 * s/bsdos2.h:
2236 * s/bsdos3.h:
2237 * s/bsdos4.h:
2238 * s/nextstep.h:
2239 * s/ultrix4-3.h:
2240 * s/usg5-0.h:
2241 * s/usg5-2-2.h:
2242 * s/usg5-2.h:
2243 * s/usg5-4-3.h:
2244 * s/ux4800.h:
2245 * s/uxpds.h:
2246 * s/uxpv.h: Remove support for obsolete systems.
2247 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
4342f814 2248 Remove, insert contents in s/hpux-10.20.h.
f2a77c3a 2249 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4342f814 2250 Remove, insert contents in s/aix4-2.h.
f2a77c3a 2251 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4342f814 2252 * s/bsd4-3.h: Rename to ...
f2a77c3a 2253 * s/bsd-common.h: ... this.
4342f814
JB
2254 * data.c:
2255 * doc.c:
2256 * ecrt0.c:
2257 * emacs.c:
2258 * fileio.c:
2259 * floatfns.c:
2260 * keyboard.c:
2261 * mem-limits.h:
2262 * print.c:
2263 * process.c:
2264 * sysdep.c:
2265 * syssignal.h:
2266 * systty.h:
2267 * syswait.h:
2268 * term.c:
2269 * unexec.c:
2270 * unexelf.c:
2271 * unexhp9k800.c:
2272 * m/hp800.h:
2273 * m/ibmrs6000.h:
2274 * m/mips.h:
2275 * m/vax.h:
2276 * s/darwin.h:
2277 * s/freebsd.h:
2278 * s/gnu.h:
2279 * s/ms-w32.h:
2280 * s/msdos.h:
2281 * s/netbsd.h:
2282 * s/template.h: Remove references to obsolete variables.
f2a77c3a
DN
2283
2284 * Makefile.in: Add dependencies for all unexec files.
2285 (admindir): Remove unused variable.
2286 (UNEXEC_SRC): Remove references.
2287
bd02793a
CY
22882008-06-25 Chong Yidong <cyd@stupidchicken.com>
2289
2290 * xfns.c (x_default_font_parameter): If Xft is available, first
2291 try Monospace-12 for the default font.
2292
ccedd259
JR
22932008-06-25 Jason Rumney <jasonr@gnu.org>
2294
c9fc02c7 2295 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 2296
fbe062b7
SM
22972008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
2298
603a0937
SM
2299 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
2300
fbe062b7
SM
2301 * buffer.c (syms_of_buffer): Remove default-word-wrap.
2302
69785ad0
JB
23032008-06-25 Juanma Barranquero <lekktu@gmail.com>
2304
2305 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
2306 <scroll-conservatively>: Fix typo in docstring.
2307
2308 * xselect.c (Fx_send_client_event): Doc fix.
2309
249e6f76
KH
23102008-06-25 Kenichi Handa <handa@m17n.org>
2311
34e97272
KH
2312 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
2313
2314 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
2315 (font_sort_entites): Delete the arg SPEC. Caller changed.
2316 Fix for the case of ! best_only.
34e97272
KH
2317 (font_delete_unmatched): Check DPI and AVGWIDTH too.
2318
249e6f76
KH
2319 * lisp.h (Fstring_to_unibyte): EXFUN it.
2320
69785ad0 2321 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
2322
2323 * character.c (str_to_unibyte): New function.
2324
2325 * fns.c (Fstring_to_unibyte): New function.
2326 (syms_of_fns): Defsubr it.
2327
65c108e4
KH
23282008-06-24 Kenichi Handa <handa@m17n.org>
2329
2330 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
2331 DPI too.
2332 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
2333
4c3f18fe
AS
23342008-06-24 Andreas Schwab <schwab@suse.de>
2335
69785ad0 2336 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 2337 ../lisp/loaddefs.el.
fd13748d
AS
2338 (bootstrap-clean): Do what distclean does but don't remove
2339 Makefile.
2340 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 2341
faa6190f
CY
23422008-06-24 Chong Yidong <cyd@stupidchicken.com>
2343
2344 * buffer.h (struct buffer): New member word_wrap.
2345
2346 * buffer.c (syms_of_buffer): New variables default-word-wrap and
2347 word-wrap.
2348 (init_buffer_once): Initialize them.
2349
2350 * dispextern.h (struct it): Replace bool truncate_lines_p with a
2351 line_wrap enum possessing three possible values.
2352
2353 * termopts.h: Replace truncate_partial_width_windows with
2354 Vtruncate_partial_width_windows.
2355
2356 * dispnew.c (direct_output_for_insert): Avoid direct output when
2357 inserting a space with word wrap on.
2358
2359 * indent.c (compute_motion): Obey integer values of
2360 truncate-partial-width-windows.
2361
2362 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
2363 replacing truncate_partial_width_windows.
2364 (init_iterator): If Vtruncate_partial_width_windows is an integer,
2365 truncate only if the window width is below that integer.
ba60bd44 2366 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
2367 (display_string, move_it_in_display_line_to): Use line_wrap.
2368 (back_to_previous_visible_line_start, reseat_1): Reset
2369 string_from_display_prop_p.
2370 (display_line): Extend default face to end of line when wrapping.
2371
23722008-06-24 Kim F. Storm <storm@cua.dk>
2373
2374 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
2375 to wrap continued lines at word boundaries.
2376
c3bb5465
JR
23772008-06-24 Jason Rumney <jasonr@gnu.org>
2378
69785ad0
JB
2379 * font.c (Ffont_face_attributes): Multiply pixel size before point
2380 conversion to avoid multiplying rounding error.
c3bb5465 2381
0b07ad98
JR
23822008-06-23 Jason Rumney <jasonr@gnu.org>
2383
f245f2c6
JB
2384 * w32term.c (x_draw_glyph_string_background)
2385 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 2386
69785ad0 2387 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 2388
22459668
KH
23892008-06-22 Kenichi Handa <handa@m17n.org>
2390
2391 * font.c (font_find_for_lface): Try the adstyle specified in
2392 the property of LFACE_FONT of LFACE (if any).
2393
d925a426 23942008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 2395 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
2396
2397 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2398
b4945b95
SM
23992008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2400
2401 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
2402 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
2403 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
2404 (witness-emacs): Remove.
2405 (lisp, shortlisp): Move loaddefs.el earlier.
2406 (mostlyclean): Forget about witness-emacs.
2407
64124279
GM
24082008-06-22 Glenn Morris <rgm@gnu.org>
2409
2410 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 2411 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 2412
768efd84
SM
24132008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2414
2415 * Makefile.in (PRECOMP): Remove.
2416 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
2417 (witness-emacs): Run `compile-first'.
2418 (.el.elc): Use the new compile-onefile target.
2419
808dd567
KH
24202008-06-21 Kenichi Handa <handa@m17n.org>
2421
2422 * xftfont.c (xftfont_open): Handle QCembolden only when
2423 FC_EMBOLDEN is defined.
2424
0de59eae
AS
24252008-06-21 Andreas Schwab <schwab@suse.de>
2426
2427 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 2428 (.el.elc): Likewise.
0de59eae 2429
fb38e9c9
MB
24302008-06-21 Miles Bader <miles@gnu.org>
2431
2432 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
2433 build dir, not the lisp source dir.
2434
fc46d219
SM
24352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2436
2437 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
2438 (bootstrapclean): Remove.
2439 (.el.elc): New rule.
2440 (PRECOMP): New var.
2441 (../lisp/subdirs.el): Remove.
2442 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
2443 (witness-emacs): New target.
2444 (mostlyclean): Remove witness-emacs as well.
2445 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
2446 Add witness-emacs dependency.
2447
eaf1f6e7
CY
24482008-06-20 Chong Yidong <cyd@stupidchicken.com>
2449
2450 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
2451 defined by the font.
2452
49f6eb95
SM
24532008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2454
2455 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
2456 (bootstrap-clean): New target that keeps TAGS around.
2457 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
2458 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
2459
4c100a01
JR
24602008-06-20 Jason Rumney <jasonr@gnu.org>
2461
49f6eb95
SM
2462 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
2463 Remove obsolete font code.
db61a7f8 2464
49f6eb95
SM
2465 * w32font.c (font_matches_spec): Use csb bitfield from font signature
2466 to determine language support.
4c100a01 2467
759d3f32
SM
24682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2469
2470 * sysdep.c (cfsetspeed): New fun extracted from the code.
2471 (cfmakeraw): Move before first use.
2472
25241b4d
SM
24732008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
2474
2475 * sysdep.c (cfmakeraw): Provide fallback implementation.
2476 (serial_configure): Provide fallback implementation of cfsetspeed.
2477
d7afccca
KH
24782008-06-20 Kenichi Handa <handa@m17n.org>
2479
dc2226d0
KH
2480 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
2481 the pattern.
2482
9b9cd864
KH
2483 * fontset.c (fontset_from_font): Copy font_spec before changing
2484 the elements.
2485
d7afccca
KH
2486 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
2487
770e2e6e
SM
24882008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2489
2490 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
2491 for explicit `font' parameters.
2492
2493 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
2494
22e64f7c
KH
24952008-06-19 Kenichi Handa <handa@m17n.org>
2496
2497 * frame.c: Include <ctype.h>.
2498 (x_set_font_backend): Allow spacing characters in the X resource
2499 for FontBackend.
2500
27129af9
SM
25012008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2502
2503 * w32fns.c, xfns.c (Qfont_param): New var.
2504 (syms_of_w32fns): Initialize it.
22e64f7c
KH
2505 (x_default_font_parameter): Record explicit `font' into
2506 `font-parameter'.
27129af9 2507
d26424c5
KH
25082008-06-18 Kenichi Handa <handa@m17n.org>
2509
2510 * font.c (font_parse_xlfd): Fix previous change.
2511 (font_parse_fcname): Don't use :fc-unknown-spec.
2512 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
2513 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
2514 (font_add_log): Prepend the driver name to the resulting fonts.
2515
2516 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
2517 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
2518 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
2519
2520 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
2521 (QCembolden): New variables.
2522 (syms_of_xftfont): DEFSYM them.
2523 (xftfont_open): Call XftFontMatch. Don't trust the result of
2524 XftTextExtents8 if the pixel_size is less than 5.
2525
51cf11be
AS
25262008-06-18 Andreas Schwab <schwab@suse.de>
2527
f245f2c6 2528 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
2529 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
2530
07d9ba9b
JR
25312008-06-18 Jason Rumney <jasonr@gnu.org>
2532
27129af9 2533 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 2534
4342f814 2535 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 2536
0c36bc4e
CY
25372008-06-17 Chong Yidong <cyd@stupidchicken.com>
2538
2539 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
2540 unknown-spec list. For known key symbols, intern using correct
2541 symbol name.
0c36bc4e 2542
70d6ecc6
KH
25432008-06-17 Kenichi Handa <handa@m17n.org>
2544
2545 * xfaces.c (realize_default_face): If the frame is not on window
2546 system, set the fontset of face to nil.
2547
821bc4db
KH
25482008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2549
f245f2c6 2550 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 2551
3554e566
JB
25522008-06-16 Juanma Barranquero <lekktu@gmail.com>
2553
2554 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
2555 (build_font_name_from_vector): Delete externs.
2556
2557 * xfaces.c (struct font_name): Don't declare.
2558
93eed26b
SM
25592008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2560
2561 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
2562
d756bcd0
CY
25632008-06-16 Chong Yidong <cyd@stupidchicken.com>
2564
2565 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
2566
7a18a178
JB
25672008-06-16 Juanma Barranquero <lekktu@gmail.com>
2568
2569 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 2570 (Ffont_face_attributes): Doc fix.
7a18a178 2571
6f568955
AS
25722008-06-16 Andreas Schwab <schwab@suse.de>
2573
2574 * font.c (Ffont_face_attributes): Fix definition.
2575
3ef8c1b4
JR
25762008-06-16 Jason Rumney <jasonr@gnu.org>
2577
93eed26b 2578 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 2579
93eed26b
SM
2580 * font.c (font_style_symbolic_from_value): Remove.
2581 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 2582
93eed26b
SM
2583 * w32font.c (w32_to_fc_weight): New function.
2584 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 2585
5e634ec9
KH
25862008-06-16 Kenichi Handa <handa@m17n.org>
2587
2588 * font.c (font_check_object): Delete it.
2589 (font_clear_cache): Check if a font-object is alive.
2590 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
2591 font-object to nil.
2592 (font_close_object): Don't check FONT_CLOSE_OBJECT.
2593 (font_at): Don't call font_check_object.
2babb359 2594 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 2595
6409a955
KY
25962008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
2597
2598 * puresize.h (BASE_PURESIZE): Increase to 1230000.
2599
ce4eaddb
CY
26002008-06-16 Chong Yidong <cyd@stupidchicken.com>
2601
2602 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
2603
523dbe64
CY
26042008-06-15 Chong Yidong <cyd@stupidchicken.com>
2605
54b2ab27 2606 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
2607 (font_unparse_fcname): Handle data in family and foundry indices
2608 as symbols, not strings.
2609 (font_unparse_gtkname, Ffont_face_attributes): New functions.
2610
54b2ab27 2611 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
2612
2613 * font.h (font_unparse_gtkname): Add prototype.
2614
9f296082
KH
26152008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2616
54b2ab27 2617 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 2618
3306c6dc
AS
26192008-06-15 Andreas Schwab <schwab@suse.de>
2620
2621 * font.c (font_update_drivers): Fix crash when no drivers match.
2622
a099c27a
SM
26232008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
2624
2625 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
2626 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
2627
a8aa344d
SM
26282008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
2629
2630 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
2631
a879ee6f
SM
26322008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2633
2634 * process.c (Fserial_process_configure, Fprocess_send_eof):
2635 Use EQ to compare Lisp_Objects.
2636
6fe9826d
JR
26372008-06-13 Jason Rumney <jasonr@gnu.org>
2638
a879ee6f 2639 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 2640
a879ee6f
SM
2641 * w32font.c (logfont_to_fcname): New function.
2642 (Fx_select_font): New font dialog function compatible with
2643 GTK/fontconfig version.
6fe9826d 2644
a879ee6f
SM
2645 * font.c (font_style_symbolic_from_value): New function.
2646 (font_style_symbolic): Use it.
6fe9826d 2647
a879ee6f 2648 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 2649
17ab8f5d
JB
26502008-06-13 Juanma Barranquero <lekktu@gmail.com>
2651
2652 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
2653 <font-width-table>: Fix typos in docstrings.
2654
d888760c
GM
26552008-06-13 Daniel Engeler <engeler@gmail.com>
2656
2657 These changes add serial port access.
2658 * process.c: Add HAVE_SERIAL.
2659 (Fdelete_process, Fprocess_status, Fset_process_buffer)
2660 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
2661 (list_processes_1, select_wrapper, Fstop_process)
2662 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
2663 (status_notify): Modify to handle serial processes.
2664 [HAVE_SERIAL] (Fserial_process_configure)
2665 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
2666 New functions.
2667 * process.h (struct Lisp_Process): Add `type'.
2668 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
2669 New functions.
2670 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
2671 serial ports.
2672 (serial_open, serial_configure) New functions.
2673 * w32.h: Add FILE_SERIAL.
2674 (struct _child_process): Add ovl_read, ovl_write.
2675
f4cc0153
KH
26762008-06-13 Kenichi Handa <handa@m17n.org>
2677
2678 * dispextern.h (enum lface_attribute_index): New member
2679 LFACE_FOUNDRY_INDEX.
2680
2681 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 2682 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 2683 style symbols.
7a18e381 2684 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
2685 order of font-driver to scores.
2686 (font_list_entities): Don't check alternate_familes here.
2687 (font_clear_prop): Handle foundry.
2688 (font_update_lface): Don't parse "foundry-family" form here.
2689 Handle FONT_FOUNDRY_INDEX.
2690 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 2691 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 2692 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 2693 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
2694 (free_font_driver_list): Delete it.
2695 (font_update_drivers): Preserve the order of backends.
2696 (syms_of_font): Setting of sort_shift_bits adjusted for the change
2697 of font_score and font_sort_entites.
2698 (font_update_sort_order): Likewise.
2699
2700 * xfaces.c (LFACE_FOUNDRY): New macro.
2701 (check_lface_attrs): Check foundry.
7a18e381 2702 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
2703 (merge_face_vectors): Check foundry.
2704 (merge_face_ref): Likewise.
2705 (Finternal_set_lisp_face_attribute): Likewise.
2706 (x_update_menu_appearance): Likewise.
2707 (Finternal_get_lisp_face_attribute): Likewise.
2708 (lface_hash): Likewise.
2709 (lface_same_font_attributes_p): Likewise.
2710 (x_supports_face_attributes_p): Likewise.
2711 (tty_supports_face_attributes_p): Likewise.
2712 (Finternal_set_alternative_font_family_alist): Intern strings.
2713 (Finternal_set_alternative_font_registry_alist): Downcase strings.
2714 (realize_default_face): Set LFACE_FOUNDRY (lface).
2715
2716 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
2717 font-driver at first.
2718
2719 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
2720
d434fef5 27212008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
2722
2723 * lread.c (Fload): Use xfree, not free on saved_doc_string.
2724
9c5e177e
JM
27252008-06-12 Jim Meyering <meyering@redhat.com>
2726
d434fef5 2727 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
2728 * unexmacosx.c (unexec_free): Ignore a NULL argument.
2729
2afc21f5
SM
27302008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2731
2732 * character.h (CHAR_TO_BYTE_SAFE): New macro.
2733 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
2734 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
2735 (WEAK_ALIAS): Simplify.
2736 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
2737 when searching a unibyte buffer.
2738
76c0de62
CY
27392008-06-12 Chong Yidong <cyd@stupidchicken.com>
2740
2741 * xfns.c (Fx_select_font): Rename from x-font-dialog.
2742
0500dcc9
JB
27432008-06-12 Juanma Barranquero <lekktu@gmail.com>
2744
2745 * w32font.c: Include ctype.h.
2746
f42adef6
JR
27472008-06-11 Jason Rumney <jasonr@gnu.org>
2748
2afc21f5
SM
2749 * w32font.c (w32font_encode_char): Detect missing glyphs that are
2750 misreported as space.
2751 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
2752 as aliases for registry iso10646-1.
f42adef6 2753
4b7cdc0e
SM
27542008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2755
2756 * buffer.c (clone_per_buffer_values): Skip `name'.
2757
cc02ebe1
CY
27582008-06-11 Chong Yidong <cyd@stupidchicken.com>
2759
2760 * font.c (font_parse_fcname): Fix last change; accept decimal
2761 points in font size.
2762
351ccb76
JR
27632008-06-10 Jason Rumney <jasonr@gnu.org>
2764
0500dcc9
JB
2765 * w32uniscribe.c (add_opentype_font_name_to_list):
2766 Skip non unicode fonts.
351ccb76 2767
f473ed6f
CY
27682008-06-10 Chong Yidong <cyd@stupidchicken.com>
2769
2770 * xfns.c (Fx_font_dialog): New function.
2771
5d6333d5 2772 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
2773 xg_file_response_callback.
2774 (pop_down_dialog): Rename from pop_down_file_dialog.
2775 (xg_get_file_name): Callers changed.
2776 (xg_get_font_name): New function.
2777
5d6333d5 2778 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 2779
2a3bd2e1
SM
27802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2781
2782 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
2783 x_underline_minimum_display_offset.
2784 (syms_of_xdisp): Declare it here rather than in xterm.c.
2785 * dispextern.h (underline_minimum_offset): Declare it.
2786 * w32term.c (x_draw_glyph_string): Use it.
2787 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
2788 (syms_of_xterm): Don't declare it any more.
2789 (x_draw_glyph_string): Adjust to the new name.
2790
d5dc6163
SM
27912008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
2792
2793 * xterm.c (x_underline_minimum_display_offset): New var.
2794 (x_draw_glyph_string): Use it.
2795 (syms_of_xterm): Declare it.
2796
0abdd197
CY
27972008-06-10 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * font.c (font_parse_fcname): Accept GTK-style font names too.
2800
a1562258
SM
28012008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2802
928b5acc
SM
2803 * dired.c (file_name_completion): Don't return t if the match is exact
2804 but with different capitalization.
2805 * minibuf.c (Ftry_completion): Simplify.
2806
a1562258
SM
2807 * window.c (Vwindow_point_insertion_type): New var.
2808 (set_window_buffer): Use it.
2809 (syms_of_window): Init and export it to Lisp.
2810
9552dbd1
KH
28112008-06-10 Kenichi Handa <handa@m17n.org>
2812
2813 * font.h (font_intern_prop): Prototype adjusted.
2814
2815 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
2816 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
2817 Adjust for the change of font_intern_prop.
9552dbd1 2818
a1562258
SM
2819 * ftfont.c (ftfont_pattern_entity):
2820 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
2821 (w32_registry):
2822 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
2823 the change of font_intern_prop.
2824
8993ad2e
JB
28252008-06-09 Juanma Barranquero <lekktu@gmail.com>
2826
2827 * w32menu.c (digest_single_submenu): Declare extern.
2828
0c2258fc
JR
28292008-06-09 Jason Rumney <jasonr@gnu.org>
2830
a1562258 2831 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 2832
a1562258
SM
2833 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
2834 (parse_single_submenu): Remove.
2835 (digest_single_submenu): Remove.
2836 (syms_of_w32menu): Don't initialise variables that have moved
2837 to menu.c.
2838 (set_frame_menubar): Sync with version in xmenu.c.
2839 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 2840
8993ad2e
JB
2841 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
2842 Make static again.
0c2258fc 2843
02246cb8
JR
28442008-06-09 Jason Rumney <jasonr@gnu.org>
2845
8993ad2e
JB
2846 Changes to w32 files related to the move of common menu code
2847 to menu.c on 2008-06-08 by Chong Yidong.
2848
2849 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
2850 defs to w32gui.h.
2851 (single_keymap_panes, push_menu_item, push_menu_pane):
2852 Make globally visible.
2853
d434fef5
JB
2854 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
2855 (local_free, malloc_widget_value, free_widget_value)
2856 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
2857 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
2858 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 2859 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 2860 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
2861 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
2862 (init_menu_items, finish_menu_items, discard_menu_items)
2863 (grow_menu_items, push_submenu_start, push_submenu_end)
2864 (push_left_right_boundary, push_menu_pane, push_menu_item)
2865 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 2866 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
2867 (update_submenu_strings): Remove functions.
2868 (xmalloc_widget_value): Remove and declare extern.
2869
2870 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
2871 (OBJ1): Build it.
2872
2873 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
2874 (local_heap, local_alloc, local_free, malloc_widget_value)
2875 (free_widget_value): Define here.
02246cb8 2876
9e1bb909
KH
28772008-06-09 Kenichi Handa <handa@m17n.org>
2878
366664ad
KH
2879 * font.h (Qascii_0): Extern it.
2880
9e1bb909
KH
2881 * font.c (Qascii_0): New variable.
2882 (syms_of_font): DEFSYM it.
2883 (font_open_by_name): If the registry "iso8859-1" fails, try also
2884 "ascii-0".
2885
2886 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2887
b2ee479e
KH
28882008-06-08 Kenichi Handa <handa@m17n.org>
2889
8f440b79 2890 * .gdbinit (xfont): New command.
b2ee479e 2891
01ef9d36
AS
28922008-06-08 Andreas Schwab <schwab@suse.de>
2893
a4240420
AS
2894 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2895 * Makefile.in (menu.o): Update dependencies.
2896
0181bf66 2897 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
2898 * emacs.c (main): Always call syms_of_menu.
2899 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2900
c07cbae6
CY
29012008-06-08 Chong Yidong <cyd@stupidchicken.com>
2902
2903 * Makefile.in: Compile menu.c.
2904
2905 * lisp.h: Declare syms_of_menu.
2906
2907 * emacs.c (main): Call syms_of_menu.
2908
2909 * keyboard.h: Relocate platform-independent menu definitions from
2910 xmenu.c.
2911
2912 * menu.c: New file. Relocate platform-independent menu
904d8c69 2913 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
2914
2915 * xmenu.c: Remove platform-independent menu definitions.
2916 (menu_items menu_items_inuse, menu_items_allocated)
2917 (menu_items_used, menu_items_n_panes)
2918 (menu_items_submenu_depth): Move to keyboard.h.
2919 (init_menu_items, finish_menu_items, unuse_menu_items)
2920 (discard_menu_items, restore_menu_items, save_menu_items)
2921 (grow_menu_items, push_submenu_start, push_submenu_end)
2922 (push_left_right_boundary, push_menu_pane, push_menu_item)
2923 (keymap_panes, single_keymap_panes, single_menu_item)
2924 (list_of_panes, list_of_items, find_and_call_menu_selection)
2925 (xmalloc_widget_value, free_menubar_widget_value_tree)
2926 (parse_single_submenu, digest_single_submenu)
2927 (update_submenu_strings): Move to menu.c.
2928
4958ed94
SM
29292008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
2930
2931 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2932
408b8ab4
MB
29332008-06-06 Miles Bader <miles@gnu.org>
2934
2935 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2936 face, not frame default.
2937
87478b52
SM
29382008-06-05 Martin Rudalics <rudalics@gmx.at>
2939
2940 * window.c (pop_up_windows, pop_up_frames)
2941 (display_buffer_reuse_frames, Vpop_up_frame_function)
2942 (Vdisplay_buffer_function, Veven_window_heights)
2943 (Vspecial_display_buffer_names, Vspecial_display_regexps)
2944 (Vspecial_display_function, Vsame_window_buffer_names)
2945 (Vsame_window_regexps, split_height_threshold)
2946 (Vsplit_window_preferred_function): Move those vars to window.el.
2947 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2948 (Fdisplay_buffer): Move those functions to window.el.
2949 (syms_of_window): Remove corresponding declarations.
2950 (display_buffer): New function.
2951 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2952 * dispnew.c (Flast_nonminibuf_frame): New function.
2953 * buffer.c (Fpop_to_buffer): Move to window.el.
2954
9e0e0d77
SM
29552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2956
2957 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2958
4a485df8
KH
29592008-06-05 Kenichi Handa <handa@m17n.org>
2960
2961 * coding.c (detect_coding): Fix previous change.
2962 (detect_coding_system): Likewise.
2963
8ba31f36
SM
29642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2965
c0dc8f64
SM
2966 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2967
8ba31f36
SM
2968 * keymap.c (Vminibuffer_local_filename_must_match_map):
2969 Rename from Vminibuffer_local_must_match_filename_map.
2970 (syms_of_keymap):
2971 * minibuf.c (Fcompleting_read): Adjust accordingly.
2972 * commands.h: Rename declaration as well.
2973
7740d2c7
KH
29742008-06-05 Kenichi Handa <handa@m17n.org>
2975
e7438ece
KH
2976 * font.c (Ffont_spec): Don't use font_parse_family_registry for
2977 family name.
2978 (Ffont_put): Likewise.
2979
2980 * fontset.c (fontset_find_font): Call font_open_for_lface with the
2981 current font-spec.
2982
7740d2c7
KH
2983 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2984 is unspecified.
2985
2986 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
2987 are the same as those of default face, realize a new fontset from
2988 default->fontset.
9e0e0d77 2989 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 2990
c876b227
SM
29912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2992
2993 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2994 (move_it_in_display_line): New wrapper.
2995
2996 * window.c (window_scroll_pixel_based_preserve_x)
2997 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2998 (window_scroll_pixel_based, window_scroll_line_based):
2999 Use them to preserve column positions.
3000 (syms_of_window): Initialize them.
3001
3002 * indent.c (Fvertical_motion): Extend first arg to allow passing an
3003 (HPOS . VPOS) pair.
3004
3005 * dispextern.h (move_it_in_display_line): Declare.
3006
927abf37
JB
30072008-06-05 Juanma Barranquero <lekktu@gmail.com>
3008
3009 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
3010 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
3011 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
3012
9d14503e
JB
30132008-06-04 Juanma Barranquero <lekktu@gmail.com>
3014
3015 * window.c (Fset_window_parameter): Doc fix.
3016 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
3017
e6841c3b
JB
30182008-06-04 Joakim Verona <joakim@verona.se>
3019
3020 * window.h (struct window): Add new member window_parameters.
3021
3022 * window.c (Fwindow_parameters, Fwindow_parameter)
3023 (Fset_window_parameter): New defuns.
3024 (syms_of_window): Defsubr the new defuns.
3025 (make_window): Initialize window_parameters to nil.
3026
4ba50634
JPW
30272008-06-04 John Paul Wallington <jpw@pobox.com>
3028
3029 * eval.c (Fdefmacro): Doc fix.
3030
c0e16b14
KH
30312008-06-04 Kenichi Handa <handa@m17n.org>
3032
3033 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 3034 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
3035 (detect_coding_system): Fix handling of coding->head_ascii.
3036
0615d903
AS
30372008-06-03 Andreas Schwab <schwab@suse.de>
3038
3039 * font.c (font_prop_validate_spacing): Fix last change.
3040
8a1816bb
KH
30412008-06-03 Kenichi Handa <handa@m17n.org>
3042
eea9c5c4
KH
3043 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
3044 (font_parse_fcname): Fix handling of unknown key.
3045
3046 * xfont.c (xfont_list): Try an alias.
3047
8a1816bb
KH
3048 * charset.c (char_charset): Return NULL if the arg charset_list is
3049 specified and C doesn't belong to any of them.
3050
2f593f4c 30512008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
3052
3053 * font.c (font_pixel_size): Don't take cdr of an integer.
3054
c2cd06e6
JM
30552008-06-02 Jim Meyering <meyering@redhat.com>
3056
70fdbb46
JM
3057 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
3058 * alloc.c (xfree): Return right away for a NULL arg.
3059 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
3060 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
3061 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
3062 (create_apple_event_from_drag_ref, cfstring_create_normalized):
3063 Likewise.
70fdbb46
JM
3064 * doprnt.c (doprnt1): Likewise.
3065 * frame.c (frame): Likewise.
3066 * keyboard.c (wipe_kboard): Likewise.
1f204af3 3067 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
3068 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
3069 * term.c (tty_default_color_capabilities, maybe_fatal)
3070 (delete_tty): Likewise.
3071 * w16select.c (string): Likewise.
3072 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
3073 * w32bdf.c (w32_free_bdf_font): Likewise.
3074 * w32fns.c (w32_unload_font): Likewise.
3075 * w32font.c (w32font_close): Likewise.
3076 * window.c (size_window): Likewise.
3077 * xselect.c (receive_incremental_selection): Likewise.
3078 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
3079 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
3080 * w32.c (stat): Likewise.
3081
2f593f4c 3082 Remove useless if-before-free tests.
70fdbb46
JM
3083 * editfns.c (Fset_time_zone_rule): Likewise.
3084 * lread.c (nosuffix): Likewise.
3085 * ralloc.c (get_bloc): Likewise.
3086 * regex.c (reg_free): Likewise.
3087 * xftfont.c (xftfont_open, xftfont_close): Likewise.
3088 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
3089 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 3090
4fc1984a
KH
30912008-06-02 Kenichi Handa <handa@m17n.org>
3092
1d1e1245
KH
3093 * font.c (font_find_for_lface): Handle float font size.
3094 (font_open_for_lface): Likewise.
3095
4fc1984a
KH
3096 * xfaces.c (x_supports_face_attributes_p): Check face->font before
3097 comparing the properties.
3098
aee986fd
JR
30992008-06-01 Jason Rumney <jasonr@gnu.org>
3100
e6841c3b
JB
3101 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
3102 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
3103 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
3104 Don't add empty script list.
3105 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 3106
60a3d7ee
DN
31072008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
3108
aee986fd 3109 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
3110 ".." has been used elsewhere in the file for a long time.
3111 (LIBXT_STATIC): Remove conditional based on unused variable.
3112
f2cec7a9
MB
31132008-06-01 Miles Bader <miles@gnu.org>
3114
3115 * xfaces.c (Vface_remapping_alist): New variable.
3116 (syms_of_xfaces): Initialize it.
3117 (enum named_merge_point_kind): New type.
3118 (struct named_merge_point): Add `named_merge_point_kind' field.
3119 (push_named_merge_point): Make cycle detection respect different
3120 named-merge-point kinds.
c876b227 3121 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
3122 Remove face-name alias resolution.
3123 (lface_from_face_name): New definition using
3124 `lface_from_face_name_no_resolve'.
c876b227 3125 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
3126 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
3127 (get_lface_attributes): New definition that layers face-remapping on
3128 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
3129 (lookup_basic_face): New function.
3130 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
3131 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
3132 `get_lface_attributes'.
3133 (face_at_buffer_position): Use `lookup_basic_face' to lookup
3134 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
3135 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
3136
3137 * xdisp.c (init_iterator): Pass base_face_id through
3138 `lookup_basic_face' when we actually use it as a face-id.
3139 (handle_single_display_prop): Use `lookup_basic_face' to lookup
3140 DEFAULT_FACE_ID.
3141
3142 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
3143 lookup the initial face-id.
3144
3145 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
3146
518c0b83
JB
31472008-06-01 Juanma Barranquero <lekktu@gmail.com>
3148
3149 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
3150 (Fremove_text_properties): Fix typos in docstrings.
3151
719b3d63
KH
31522008-05-31 Kenichi Handa <handa@m17n.org>
3153
e4c93315
KH
3154 * font.c (font_list_entities): Fix the car part of data to be
3155 stored in the cache.
3156
719b3d63
KH
3157 * ftfont.c (ftfont_font_format): Don't use strcasestr.
3158
d0827857
SM
31592008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3160
3161 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
3162 Add a `test' argument so another predicate than `equal' can be used.
3163 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
3164 (map_char_table): Remove unused vars `c' and `i'.
3165 * lisp.h (Foptimize_char_table): Adjust declaration.
3166 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
3167
a266686a
KH
31682008-05-30 Kenichi Handa <handa@m17n.org>
3169
d0827857 3170 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
3171 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
3172 defined.
3173
fd9440c5
SM
31742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3175
3176 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3177 (Fmake_variable_frame_local): Disallow mixing buffer-local and
3178 frame-local settings for the same variable.
3179
fd2ae9b2
KH
31802008-05-30 Kenichi Handa <handa@m17n.org>
3181
9e0e0d77 3182 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
3183 (syms_of_fontset): Delete defsubr of Sfont_info.
3184
3185 * font.c (font_style_to_value, font_score): Delete casting of the
3186 args to xstcasecmp.
3187 (register_font_driver): Increment num_font_drivers only when
3188 registering the driver globally.
9e0e0d77 3189 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
3190 (syms_of_font): Defsubr Sfont_info.
3191
eaf11618
KH
31922008-05-29 Kenichi Handa <handa@m17n.org>
3193
3194 * coding.h (enum define_coding_utf8_arg_index): New enum.
3195 (enum coding_attr_index): Change coding_attr_utf_16_bom to
3196 coding_attr_utf_bom.
fd9440c5
SM
3197 (enum utf_bom_type): Rename from utf_16_bom_type.
3198 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
3199 (struct coding_system): Add utf_8_bom in `spec' union.
3200
3201 * coding.c (CODING_UTF_8_BOM): New macro.
3202 (enum coding_category): Delete coding_category_utf_8, add
3203 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
3204 coding_category_utf_8_sig.
3205 (CATEGORY_MASK_UTF_8): Delete it.
3206 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
3207 (CATEGORY_MASK_UTF_8_SIG): New macros.
3208 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
3209 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
3210 CATEGORY_MASK_UTF_8_SIG.
3211 (CATEGORY_MASK_UTF_8): New macro.
3212 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
3213 (detect_coding_utf_8): Check BOM.
3214 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 3215 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
3216 (encode_coding_utf_16): Likewise.
3217 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
3218 (detect_coding, detect_coding_system): Handle utf-8-auto.
3219 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
3220 (syms_of_coding): Fix setting up of Vcoding_category_table.
3221
891bd142
SM
32222008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
3223
3224 * process.c (Faccept_process_output): If `millisec' is non-nil,
3225 `seconds' default to 0.
3226 (wait_reading_process_output): Also return non-nil if we read output
3227 from a non-running process.
3228
1519d52e
JR
32292008-05-29 Jason Rumney <jasonr@gnu.org>
3230
fd9440c5
SM
3231 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
3232 `raster' specified.
3233 (add_font_entity_to_list): Allow non-opentype truetype fonts back
3234 in the uniscribe backend, but disallow any font that has no
3235 unicode subrange support.
1519d52e 3236
d5ab09cd
JB
32372008-05-29 Juanma Barranquero <lekktu@gmail.com>
3238
3239 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
3240 Fix typos in docstrings.
3241
a4eec626
KH
32422008-05-29 Kenichi Handa <handa@m17n.org>
3243
3244 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 3245 (Fx_family_fonts): Set frame correctly.
a4eec626 3246
a6e0b7e5
JR
32472008-05-28 Jason Rumney <jasonr@gnu.org>
3248
d5ab09cd 3249 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 3250
6b3d752c
SM
32512008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3252
3253 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
3254 calling build_annotations.
3255
c3f9fba8
JB
32562008-05-28 Juanma Barranquero <lekktu@gmail.com>
3257
3258 * coding.c (Fdecode_coding_region, Fencode_coding_region)
3259 (Fencode_coding_string):
3260 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
3261 <latin-extra-code-table>: Fix typos in docstrings.
3262 (syms_of_coding) <coding-system-alist>: Doc fix.
3263 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
3264
00c670e1
KH
32652008-05-28 Kenichi Handa <handa@m17n.org>
3266
b75d7f28
KH
3267 * fontset.c (Ffont_info): Don't call font_close_object.
3268
3269 * font.c (font_parse_family_registry): Use Ffont_put to validate
3270 foundry and family.
3271 (font_delete_unmatched): Don't check spacing.
3272 (font_list_entities): Add spacing to the spec to list fonts.
3273
3274 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 3275 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 3276
00c670e1
KH
3277 * coding.c (encode_coding_raw_text): Fix previous change.
3278 (encode_coding_object): When the dst_object is a buffer and is
3279 different from src_object, move gap to PT.
3280
45feca91
CY
32812008-05-27 Chong Yidong <cyd@stupidchicken.com>
3282
c3f9fba8 3283 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 3284
5dd5d9eb
SM
32852008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3286
01d45367
SM
3287 * coding.c (encode_coding_raw_text): Set coding->produced_char for
3288 all branches. Compute it differently.
3289
5dd5d9eb
SM
3290 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
3291
9c623c85
JB
32922008-05-27 Juanma Barranquero <lekktu@gmail.com>
3293
3294 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
3295 into "else if () ... else ...".
3296
943f2093
JR
32972008-05-27 Jason Rumney <jasonr@gnu.org>
3298
5dd5d9eb
SM
3299 * w32font.c (w32font_open_internal): Determine if glyph indices
3300 are likely to work here.
943f2093 3301
7385fe74
CY
33022008-05-27 Chong Yidong <cyd@stupidchicken.com>
3303
3304 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
3305 draw overlap glyphs with appropriate highlighting.
3306
4f64a164
KH
33072008-05-27 Kenichi Handa <handa@m17n.org>
3308
3309 * xfont.c (xfont_open): Fix calculation of font->average_width.
3310
1fb5aad7
SM
33112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3312
3313 * casefiddle.c (casify_object): Try to guess better whether the
3314 argument is a byte or a char.
3315
f8eb1603
AS
33162008-05-26 Andreas Schwab <schwab@suse.de>
3317
1fb5aad7
SM
3318 * xselect.c (x_reply_selection_request): Properly handle format == 32.
3319 Always send multiples of format size.
5a9c35e5 3320
f8eb1603
AS
3321 * xterm.c (x_set_frame_alpha): Fix type mismatch.
3322
ba93d684
JR
33232008-05-26 Jason Rumney <jasonr@gnu.org>
3324
1fb5aad7
SM
3325 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
3326 (compute_metrics): Don't set failure if we just cleared the cache.
3327 (w32_weight_table): Remove unused variable.
3328 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
3329 backwards compatibility.
ba93d684 3330
505ecc49
KH
33312008-05-25 Kenichi Handa <handa@m17n.org>
3332
1fb5aad7
SM
3333 * w32term.c (x_draw_glyph_string):
3334 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
3335
3336 * xfaces.c: Delete unused function prototypes.
3337 (xstrlwr, font_frame): Delete them.
3338 (clear_face_cache): Delete unused variable.
3339
1fb5aad7
SM
3340 * xftfont.c (xftfont_open): Delete unused variable.
3341 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
3342
3343 * ftxfont.c (ftxfont_open): Delete unused variable.
3344
3345 * fontset.c (face_for_char): Optimize for the case of no charset
3346 property.
3347
3348 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
3349 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
3350 (otf_open, font_otf_capability, generate_otf_features)
3351 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 3352 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
3353 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
3354 (syms_of_font): Codes for accessing above commented out.
3355
f481eb31
EZ
33562008-05-24 Eli Zaretskii <eliz@gnu.org>
3357
3358 * w32proc.c: Include dispextern.h.
3359
3360 * w32.c: Include dispextern.h.
3361
20746fe4
JB
33622008-05-23 Juanma Barranquero <lekktu@gmail.com>
3363
3364 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
3365 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
3366 Fix typos in docstrings.
3367
e7150846
JR
33682008-05-23 Jason Rumney <jasonr@gnu.org>
3369
20746fe4 3370 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 3371
dbf46ba6
KH
33722008-05-23 Kenichi Handa <handa@m17n.org>
3373
6c652beb
KH
3374 * charset.c (Qemacs, charset_emacs): New variables.
3375 (char_charset): Fix for non-Unicode characters.
3376 (syms_of_charset): Define charset_emacs.
3377
baf4d3b3 3378 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
3379 s->underline_thickness and s->underline_position. Be sure to draw
3380 underline within the current line area.
baf4d3b3
KH
3381
3382 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 3383 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 3384 underline within the current line area.
baf4d3b3 3385
dbf46ba6
KH
3386 * fontset.c: Delete unused variables and add casting for char *
3387 throughout the file.
3388 (fontset_font): Try the fallback fonts of the current fontset
3389 before consulting the default fontset.
3390
3391 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
3392
9e0e0d77 3393 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 3394
3b780338
JR
33952008-05-22 Jason Rumney <jasonr@gnu.org>
3396
20746fe4 3397 * font.c: Don't include strings.h.
577eba22 3398
9e0e0d77 3399 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 3400
20746fe4
JB
3401 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
3402 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
3403 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
3404 to call xstrcasecmp.
05131107 3405
b1722a46 3406 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 3407
b1722a46 3408 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 3409
b1722a46 3410 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 3411
b1722a46 3412 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 3413
a30e1957
KH
34142008-05-22 Kenichi Handa <handa@m17n.org>
3415
20746fe4 3416 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 3417
20746fe4 3418 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
3419 change of font_style_table.
3420
a30e1957
KH
3421 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
3422 two args.
3423
3424 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
3425 two args.
3426
631248e5
SM
34272008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
3428
3429 * minibuf.c (keys_of_minibuf): Delete.
3430 * lisp.h (keys_of_minibuf): Delete.
3431 * emacs.c (main): Don't call keys_of_minibuf.
3432
318548be
KH
34332008-05-22 Kenichi Handa <handa@m17n.org>
3434
631248e5 3435 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
3436 ftfont_list_generic_family. Return a single family for each
3437 generic family.
3438 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
3439 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
3440 Call font_add_log.
318548be
KH
3441 (ftfont_match): Call font_add_log.
3442
3443 * font.h (Ffont_xlfd_name): EXFUN adjusted.
3444 (FONT_DEBUG): Define it.
3445 (font_add_log): Extern it.
631248e5 3446 (font_assert): Rename from xassert.
318548be
KH
3447
3448 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
3449 (xfont_list_family): Call font_add_log.
3450 (xfont_match): Likewise.
631248e5 3451 (memq_no_quit): Delete.
318548be
KH
3452
3453 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
3454 call of Ffont_xlfd_name.
3455
3456 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 3457 (swidth_table): Move to font.c.
318548be
KH
3458
3459 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 3460 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
3461 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
3462 New variables.
631248e5
SM
3463 (struct table_entry): Move from xfaces.c and modified.
3464 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 3465 contents adjusted for the change of struct table_entry.
20746fe4 3466 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 3467 format change of font_style_table.
318548be
KH
3468 (font_parse_family_registry): Don't overwrite existing foundry and
3469 family of font_spec.
3470 (font_score): Fix calculation of diff for sizes.
3471 (font_sort_entites): Call font_add_log.
3472 (font_delete_unmatched): Return a newly created list.
3473 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
3474 (font_matching_entity, font_open_entity, font_close_entity):
3475 Call font_add_log.
318548be 3476 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 3477 (Finternal_set_font_style_table): Delete.
318548be
KH
3478 (BUILD_STYLE_TABLE): New macro.
3479 (build_style_table): New function.
3480 (Vfont_log, font_log_env_checked): New variables.
3481 (font_add_log): New function.
3482 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
3483 Declare Lisp variables "font-weight-table", "font-slant-table",
3484 "font-width-table", and "font-log". Initialize font_style_table.
3485
6aac1c03
DN
34862008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
3487
bcc850aa 3488 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 3489
7950790f
GM
34902008-05-21 Seiji Zenitani <zenitani@mac.com>
3491 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 3492
7950790f 3493 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 3494 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 3495 (x_set_alpha): New function.
a2979e8e 3496
7950790f 3497 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 3498
7950790f
GM
3499 * xfns.c (x-create-frame, Qalpha):
3500 Initialize the frame parameter `alpha'.
b9fb2c45
GM
3501 * xterm.c (OPAQUE, OPACITY): New.
3502 (x_set_frame_alpha): New function.
3503 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 3504
7950790f
GM
3505 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
3506 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 3507
5c2a72d9
JR
35082008-05-20 Jason Rumney <jasonr@gnu.org>
3509
20746fe4
JB
3510 * w32font.c (add_font_entity_to_list): Don't add non-opentype
3511 truetype fonts to opentype list.
5c2a72d9 3512
eb152aa9
JB
35132008-05-20 Juanma Barranquero <lekktu@gmail.com>
3514
3515 * fontset.c (Ffontset_info): Doc fix.
3516 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
3517 <ignore-relative-composition>: Fix typos in docstrings.
3518
3519 * font.c (syms-of-font) <font-encoding-alist>:
3520 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
3521 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
3522 (Ffont_otf_alternates): Doc fixes.
3523
ad00e1a3
KH
35242008-05-20 Kenichi Handa <handa@m17n.org>
3525
3526 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
3527 font.h through out the file.
9e0e0d77 3528 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 3529 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
3530 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
3531
3532 * emacs.c (main): Call syms_of_font unconditionally.
3533
3534 * font.h (find_font_encoding): Extern it.
3535
9e0e0d77 3536 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
3537 fontset.c.
3538 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
3539 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
3540 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
3541 only when HAVE_WINDOW_SYSTEM is defined.
3542 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
3543 when HAVE_WINDOW_SYSTEM is defined.
3544
9e0e0d77
SM
3545 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
3546 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
3547
3548 * xfaces.c: Include font.h unconditionally.
3549 (merge_face_ref, merge_face_vectors)
3550 (Finternal_set_lisp_face_attribute): Cancel the previous change.
3551
40a69fac
SM
35522008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
3553
3554 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
3555 indirect_variable.
3556 * eval.c (lisp_indirect_variable): New fun.
3557 (Fuser_variable_p): Use it.
3558
8c2dccbf
SM
35592008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3560
ad97b375
SM
3561 * lisp.h (indirect_variable):
3562 * data.c (indirect_variable, let_shadows_buffer_binding_p):
3563 Use Lisp_Symbol pointers rather than Lisp_Object.
3564 Adjust callers.
3565 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
3566 To this end, change calling-convention.
3567
8c2dccbf
SM
3568 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
3569 if some non-hidden buffers are selected by string&pred.
3570
ad97b375
SM
35712008-05-19 Chong Yidong <cyd@stupidchicken.com>
3572
3573 * process.c (wait_reading_process_output): Always check status
3574 when in batch mode.
3575
25b81df4
KH
35762008-05-19 Kenichi Handa <handa@m17n.org>
3577
3578 * font.c (font_list_entities): Fix handling of cache.
3579 (font_matching_entity): Likewise.
3580
8c2dccbf 3581 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 3582 (ft_face_cache): New variable.
1f204af3 3583 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 3584 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
3585 (fc_charset_table): New variable.
3586 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
3587 . FC_CHARSET_IDX) as :font-entity property in the font entity.
3588 Callers changed.
dde8403f 3589 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
3590 (ftfont_spec_pattern): New argument fc_charset_idx.
3591 Check registry more rigidly. Change callers.
a2979e8e 3592 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
3593 change of :font-entity property of the font.
3594
a2979e8e 3595 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
3596 property of the font.
3597
d4a1d553
JB
35982008-05-18 Juanma Barranquero <lekktu@gmail.com>
3599
3600 * coding.c (Fcoding_system_p): Rename argument to match docstring.
3601 (Funencodable_char_position, Fcheck_coding_systems_region)
3602 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
3603 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
3604 (Ffind_operation_coding_system, Fset_coding_system_priority)
3605 (Fcoding_system_eol_type): Doc fixes.
3606
07cfc4e7
GM
36072008-05-17 Glenn Morris <rgm@gnu.org>
3608
3609 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
3610
1cab27d2
EZ
36112008-05-16 Eli Zaretskii <eliz@gnu.org>
3612
3613 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
3614 and st_gid.
3615
dde8403f 3616 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
3617 HAVE_WINDOW_SYSTEM is not defined.
3618
3619 * xfaces.c (merge_face_ref, merge_face_vectors)
3620 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
3621 HAVE_WINDOW_SYSTEM is defined.
3622 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
3623
86b89713
SM
36242008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
3625
3626 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
3627
6750bd93
YM
36282008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3629
62867b11 3630 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 3631
79f105c9
KH
36322008-05-15 Kenichi Handa <handa@m17n.org>
3633
3634 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
3635 preference.
3636
6b33da9f
GM
36372008-05-15 Glenn Morris <rgm@gnu.org>
3638
3639 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
3640
d0e4433b
CY
36412008-05-15 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * fns.c (init_fns): Don't initialize weak_hash_tables here.
3644 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
3645
3646 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
3647
5f2d79e0
KH
36482008-05-15 Kenichi Handa <handa@m17n.org>
3649
fd8a1cae
KH
3650 * ftfont.c (ftfont_list): Downcase family name to check generic
3651 families.
3652
3653 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
3654 font-spec for QCfont value.
3655
5f2d79e0
KH
3656 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
3657 buffer. Check the return value of it.
3658
e5e29349
JR
36592008-05-14 Jason Rumney <jasonr@gnu.org>
3660
3661 * w32term.c (w32_get_glyph_overhangs): Remove.
3662 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
3663
1f09f444
KH
36642008-05-14 Kenichi Handa <handa@m17n.org>
3665
3666 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
3667 (font_clear_cache): Check if the cached vector of entities is nil
3668 or not.
1f09f444 3669
ecae6af9 36702008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
3671
3672 * emacs.c (main_thread): Conditionalize on
3673 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3674 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
3675
3676 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
3677 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
3678 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3679
c6b278e7
KH
36802008-05-14 Kenichi Handa <handa@m17n.org>
3681
3682 * coding.c (detect_coding_iso_2022): Ignore a coding category that
3683 has no corresponding coding system.
3684
36852008-05-14 Jason Rumney <jasonr@gnu.org>
3686
3687 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
3688
3689 * w32font.h (w32font_open_internal): Update declaration.
3690
3691 * w32font.c (w32font_open_internal): Change last argument from
3692 w32font_info struct to font object. Fill in font object from
3693 font_entity. Get Outline metrics if possible. Use them to
3694 calculate underline position and thickness. Use xlfd name as name
3695 property. Don't set codepage.
3696 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 3697 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
3698 (w32font_draw): Use s->font.
3699 (clear_cached_metrics): Don't clear non-existent blocks.
3700
3701 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
3702 font was not found.
a879ee6f 3703 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
3704
3705 * w32uniscribe.c (uniscribe_open): Pass font_object to
3706 w32font_open_internal.
3707
37082008-05-14 Kenichi Handa <handa@m17n.org>
3709
3710 These changes are to delete all legacy font-handling codes, and
3711 make Emacs use only font-backends.
3712
3713 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
3714 (frame.o, image.o, print.o): Depend on $(FONTSRC).
3715
3716 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
3717
3718 * charset.h (Vcharset_non_preferred_head)
3719 (Vcurrent_iso639_language): Extern them.
3720
3721 * charset.c (Vcharset_non_preferred_head): New variable.
3722 (Vcurrent_iso639_language): New variable.
3723 (syms_of_charset): Declare it as a Lisp variable.
3724 (char_charset): Don't check non preferred charsets. As a last
3725 resort, return charset_unicode.
3726 (Fset_charset_priority): Update Vcharset_non_preferred_head.
3727
3728 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
3729 conditionals. Don't check enable_font_backend. Delete all codes
3730 used only when USE_FONT_BACKEND is not defined.
3731
3732 * dispextern.h (struct glyph_string): Change type of `font' to
3733 `struct font *'.
3734 (struct glyph_string): New member underline_position and
3735 underline_thickness.
3736 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
3737 (struct face): Change type of `font' to `struct font *'. Remove
3738 members `font_name', `font_info_id'.
3739 (per_char_metric, encode_char): Delete externs.
3740 (calc_pixel_width_or_height): Adjust the prototype.
3741
3742 * emacs.c (enable_font_backend): Delete extern.
3743 (main): Don't set enable_font_backend. Don't check the command
3744 line argument "-disable-font-backend".
3745
3746 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
3747 (enum font_property_index): New members FONT_DPI_INDEX,
3748 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
3749 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
3750 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
3751 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
3752 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
3753 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
3754 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
3755 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
3756 (struct font_spec, struct font_entity): New structs.
3757 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
3758 (struct font): Many members from old "struct font_info" moved to
3759 here. Members font and entity deleted.
3760 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
3761 the new font-related objects.
3762 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
3763 (CHECK_FONT_GET_OBJECT): Likewise.
3764 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
3765 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
3766 (struct font_driver): New members case_sensitive anc check. Type
3767 of the member list and open changed.
3768 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
3769 (font_symbolic_width, font_find_object, font_get_spec)
3770 (font_set_lface_from_name): Delete extern.
20746fe4 3771 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
3772
3773 * font.c: Include <strings.h>.
3774 (enable_font_backend): Delete it.
3775 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
3776 (CHECK_VALIDATE_FONT_SPEC): Delete it.
3777 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
3778 (null_string): Delete it.
3779 (null_vector): Make it static.
3780 (font_family_alist): Delete it.
3781 (Qnormal): Extern it.
3782 (QCextra, QClanguage): Delete it.
1f204af3 3783 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
3784 (font_make_spec, font_make_entity, font_make_object)
3785 (font_intern_prop): Renamed from intern_downcase. Don't downcase
3786 the string. Callers changed.
3787 (font_pixel_size): Adjusted for the format change of font-related
3788 objects.
3789 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
3790 (font_style_to_value, font_style_symbolic): New function.
3791 (build_font_family_alist): Delete it.
3792 (font_registry_charsets): Use Fassoc_string instead of
3793 assq_no_quit.
3794 (font_prop_validate_symbol): Don't return null_string.
3795 (font_prop_validate_style): Adjusted for the change of
3796 style-related values in a font vector.
20746fe4 3797 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
3798 QCantialias, add entries for QCavgwidth.
3799 (get_font_prop_index): Delete the 2nd argument FROM.
3800 (font_prop_validate): Arguments changed.
3801 (font_put_extra): Adjusted for the change of font-related objects.
3802 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
3803 (font_parse_fcname, font_unparse_fcname)
3804 (font_prepare_composition): Likewise.
3805 (font_parse_family_registry): Renamed from font_merge_old_spec.
3806 (otf_open): Delete the 1st arg entity.
3807 (font_otf_capability): Adjusted for the above change.
3808 (font_score): New arg alternate_families. Adjusted for the change
3809 of font-related objects.
3810 (font_sort_entites): New arg best_only.
3811 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
3812 Delete them.
3813 (font_match_p): Check alternate families.
3814 (font_find_object): Delete it.
3815 (font_check_object): New function.
c3f9fba8 3816 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
3817 (font_delete_unmatched): New arg.
3818 (font_list_entities): Call font_driver->list with a spec that
3819 doesn't specify style-related properties.
3820 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 3821 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
3822 (font_close_object, font_has_char, font_encode_char)
3823 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
3824 (font_spec_from_name, font_clear_prop, font_update_lface):
3825 New functions.
3826 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
3827 (font_prepare_for_face, font_done_for_face, font_open_by_name)
3828 (font_at): Adjusted for the change of font-related objects.
3829 (font_range): New function.
3830 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 3831 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
3832 (Fcopy_font_spec, Fmerge_font_spec): New function.
3833 (Ffont_family_list): Renamed from list-families.
3834 (Finternal_set_font_style_table): Arguments changed.
3835 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
3836 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
3837 change of font-related objects.
c3f9fba8 3838 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 3839
3554e566 3840 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
3841 struct font.
3842 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
3843 (enum FONT_SPEC_INDEX): Delete it.
3844 (font_info, list_fonts_func, load_font_func, query_font_func)
3845 (set_frame_fontset_func, find_ccl_program_func)
3846 (get_font_repertory_func, new_fontset_from_font_name): Delete
3847 externs.
3848 (fontset_from_font_name): Extern it.
3849 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
3850 (FONT_INFO_FROM_FACE): Deleted.
3851 (face_for_font): Adjust prototype.
3852
3853 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
3854 conditionals. Don't check enable_font_backend. Delete all codes
3855 used only when USE_FONT_BACKEND is not defined.
3856 (get_font_info_func, list_font_func, load_font_func)
3857 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
3858 (get_font_repertory_func): Delete them.
3859 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
3860 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
3861 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
3862 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
3863 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
3864 (fontset_compare_rfontdef): New function.
3865 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
3866 ront-defs by qsort. Adjusted for the change of font-group vector.
3867 (load_font_get_repertory): Deleted.
3868 (fontset_find_font): Use new macros to ref/set elements of
3869 font-def and rfont-def.
3870 (fontset_font): Fix the timing of remembering that no font for C.
3871 (free_face_fontset): Do nothing if the face has no fontset.
3872 (face_suitable_for_char_p): Use new macros to ref/set elements of
3873 rfont-def.
3874 (face_for_char): Likewise. Call face_for_char with font_object.
3875 (fs_load_font): Delete. Delete #pragma surrounding it.
3876 (fs_query_fontset): Use strcasecmp instead of strcmp.
3877 (generate_ascii_font_name): Adjusted for the format change of
3878 font-spec.
3879 (Fset_fontset_font): Likewise. Use new macros to set elements of
3880 font-def.
3881 (Fnew_fontset): Use font_unparse_xlfd to generate
3882 FONTSET_ASCII (fontset).
3883 (new_fontset_from_font_name): Deleted.
3884 (fontset_from_font): Renamed from new_fontset_from_font. Check if
3885 a fontset is already created for the font. FIx updating of
3886 Vfontset_alias_alist.
3887 (fontset_ascii_font): Deleted.
3888 (Ffont_info): Adjusted for the format change of font-spec.
3889 (Finternal_char_font): Likewise.
3890 (Ffontset_info): Likewise.
3891 (syms_of_fontset): Don't check load_font_func.
3892
3893 * fns.c (internal_equal): Handle PREV_FONT.
3894
3895 * frame.h: Delete USE_FONT_BACKEND conditional.
3896
3897 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3898 conditionals. Don't check enable_font_backend. Delete all codes
3899 used only when USE_FONT_BACKEND is not defined.
3900 (x_set_font): Call x_new_font, not x_new_fontset2.
3901 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3902 already set for the frame.
3903
3904 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
3905 a font-entity by font_make_entity. Use font_intern_prop instead
3906 of intern_downcase. Use FONT_SET_STYLE to set a style-related
3907 font property. If a font is scalable, set avgwidth property to 0.
3908 Set font-entity property by font_put_extra.
3909 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3910 (ffont_driver): Adjusted for the change of struct font_driver.
3911 (ftfont_spec_pattern): New function.
3912 (ftfont_list): Return a list, not vector.
3913 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3914 (ftfont_list_family): Don't downcase names.
3915 (ftfont_free_entity): Deleted.
3916 (ftfont_open): Return a font-ojbect. Adjusted for the change of
3917 struct font. Get underline_thickness and underline_position from
3918 font property. Don't update dpyinfo->smallest_font_height and
3919 dpyinfo->smallest_char_width.
3920 (ftfont_close): Don't free `struct font'.
3921 (ftfont_has_char): Adjusted for the format change of font-entity.
3922 (ftfont_encode_char, ftfont_text_extents): Likewise.
3923
3924 * ftxfont.c (ftxfont_list): Return a list, not vector.
3925 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
3926 struct font. Get underline_thickness and underline_position from
3927 font property. Don't update dpyinfo->smallest_font_height and
3928 dpyinfo->smallest_char_width.
3929 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3930 (ftxfont_draw): Adjusted for the change of struct font.
3931
3932 * image.c (image_ascent): Don't include "charset.h". Include
3933 "character.h" and "font.h".
3934
3935 * lisp.h (enum pvec_type): New member PREV_FONT.
3936 (Fassoc_string): EXFUN it.
3937
3938 * print.c: Include font.h.
3939 (print_object): Handle font-related objects.
3940
3941 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3942 conditionals. Don't check enable_font_backend. Delete all codes
3943 used only when USE_FONT_BACKEND is not defined.
3944 (handle_auto_composed_prop): Do nothing if it->f is not on a
3945 window system. Check how many following characters can be
3946 displayed by the same font.
3947 (calc_pixel_width_or_height): Type of the 4th arg is changed to
3948 'struct font *'.
3949 (get_char_face_and_encoding): Assign the whole encoding task to
3950 the `encode-char' method of a font driver.
3951 (fill_composite_glyph_string): Adjusted for the change of `struct
3952 face' and `struct glyph_string'.
3953 (fill_glyph_string): Likewise.
3954 (get_per_char_metric): Arguments changed.
3955 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3956 and `struct glyph_string'.
3957 (produce_stretch_glyph, calc_line_height_property)
3958 (x_produce_glyphs): Likewise.
3959
3960 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3961 conditionals. Don't check enable_font_backend. Delete all codes
3962 used only when USE_FONT_BACKEND is not defined. Use
3963 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3964 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3965 (Qp): Extern them.
3966 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3967 Deleted.
3968 (struct font_name): Deleted.
3969 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3970 (compare_fonts_by_sort_order): New function.
3971 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3972 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3973 Deleted.
3974 (Fx_family_fonts): Use font_list_entities, and sort fonts by
3975 compare_fonts_by_sort_order.
3976 (Fx_font_family_list): Call Ffont_family_list.
3977 (face_numeric_value, face_numeric_weight, face_numeric_slant)
3978 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3979 (face_symbolic_slant, face_symbolic_swidth)
3980 (split_font_name_into_vector, build_font_name_from_vector)
3981 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3982 (font_rescale_ratio, split_font_name, build_font_name)
3983 (free_font_names, sort_fonts, x_face_list_fonts)
3984 (face_font_available_p, sorted_font_list, cmp_font_names)
3985 (font_list_1, concat_font_list, font_list, remove_duplicates):
3986 Deleted.
3987 (Fx_list_fonts): Use Ffont_list.
3988 (LFACE_AVGWIDTH): Deleted.
3989 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
3990 by FONTP.
3991 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3992 (set_lface_from_font_name): Delete it.
3993 (set_lface_from_font): Renamed from
3994 set_lface_from_font_and_fontset. Caller changed. Don't set
3995 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
3996 for face.
c3f9fba8
JB
3997 (merge_face_vectors): Copy font-spec if necessary.
3998 Clear properties of the font-spec if necessary.
c6b278e7
KH
3999 (merge_face_ref): Clear properties of the font-spec if necessary.
4000 (Finternal_set_lisp_face_attribute): Likewise.
4001 (set_font_frame_param): Use font_load_for_lface to load a
4002 font-object, and call Fmodify_frame_parameters with it.
4003 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
4004 font name by Ffont_xlfd_name.
4005 (Finternal_lisp_face_attribute_values): Don't check QCweight,
4006 QCslant, and QCwidth.
4007 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
4008 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
4009 Compare fonts by EQ.
4010 (lookup_non_ascii_face): Deleted.
4011 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
4012 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
4013 Check atomic font properties by case insensitive.
c6b278e7
KH
4014 (realize_non_ascii_face): Set face->overstrike correctly.
4015 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
4016 (dump_realized_face): Get font name from
4017 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
4018
4019 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
4020 conditionals. Don't check enable_font_backend. Delete all codes
4021 used only when USE_FONT_BACKEND is not defined.
4022 (xic_create_xfontset): Original code deleted and renamed from
4023 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
4024 (x_make_gc): Don't set GCFont in GCs.
4025 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
4026 opened by "fixed".
4027 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
4028 find_ccl_program_func, query_font_func, set_frame_fontset_func,
4029 get_font_repertory_func.
4030
4031 * xfont.c: Include <stdlib.h> and "ccl.h".
4032 (struct xfont_info): New structure.
4033 (xfont_query_font): Deleted.
4034 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
4035 moved from xterm.c.
4036 (xfont_driver): Adjusted for the change of struct font_driver.
4037 (compare_font_names): New function.
4038 (xfont_list_pattern): Sort font names case insensitively. Make
4039 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
4040 (xfont_list): Return a list, not vector.
4041 (xfont_match): If the font doesn't have QCname property, generate
4042 a name from the other font properties.
4043 (xfont_open): Return a font-ojbect. Adjusted for the change of
4044 struct font. Get underline_thickness and underline_position from
4045 font property. Don't update dpyinfo->smallest_font_height and
4046 dpyinfo->smallest_char_width.
4047 (xfont_close): Don't free struct font.
4048 (xfont_prepare_face): Adjusted for the change of struct font.
4049 (xfont_done_face): Deleted.
4050 (xfont_has_char): Adjusted for the change of struct font.
4051 (xfont_encode_char, xfont_draw): Likewise.
4052 (xfont_check): New function.
4053
4054 * xftfont.c (xftfont_list): Adjusted for the change of `list'
4055 callback function.
4056 (xftfont_match): Adjusted for the fontmat change of font-entity.
4057 (xftfont_open): Adjusted for the format change of font-entity and
4058 font-object. Adjusted for the change of struct font. Return a
4059 font-object. Don't update dpyinfo->smallest_font_height and
4060 dpyinfo->smallest_char_width.
4061 (xftfont_close): Block input while calling XftFontClose.
4062 (xftfont_prepare_face): Don't block input while calling
4063 xftfont_get_colors. Adjusted for the change of struct font.
4064 (xftfont_shape): Return value of error case fixed.
4065
4066 * xrdb.c (x_load_resources): Don't setup a fontset resource.
4067
4068 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
4069 conditionals.
4070 (FONT_WIDTH): Return (f)->max_width.
4071 (struct x_display_info): Delete member `font'.
4072 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
4073 (x_find_ccl_program, x_get_font_repertory): Delete externs.
4074 (struct x_output): Change type of `font' to `struct font *'.
4075
4076 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
4077 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 4078 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
4079 (x_per_char_metric, x_encode_char): Deleted.
4080 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
4081 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 4082 `struct face'.
c6b278e7
KH
4083 (x_draw_glyph_string_foreground)
4084 (x_draw_composite_glyph_string_foreground): Likewise.
4085 (x_draw_glyph_string): Likewise. Use font->underline_position and
4086 font->underline_thickness.
4087 (x_new_font): Renamed from x_new_fontset2.
4088 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
4089 (x_check_font): Call `check' method of a font driver.
4090 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
4091 (x_query_font, x_get_font_repertory): Deleted.
4092 (x_find_ccl_program): Renamed and moved to xfont.c.
4093 (x_redisplay_interface): Adjusted for the change of `struct
4094 redisplay_interface'.
4095
4096 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
4097 conditionals. Don't check enable_font_backend. Delete all codes
4098 used only when USE_FONT_BACKEND is not defined. Surround non-used
4099 code by "#ifdef OLD_FONT" and "endif".
4100 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
4101
4102 * w32font.h (struct w32font_info): New member.
4103 (FONT_COMPAT): New macro.
4104 (w32font_open_internal): Prototype adjusted.
4105
4106 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
4107 OLD_FONT" and "endif".
4108
4109 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
4110 conditionals. Don't check enable_font_backend. Delete all codes
4111 used only when USE_FONT_BACKEND is not defined.
4112 (w32font_open): Return a font-object. Make a font-object by
4113 font_make_object. Adjusted for the change of struct w32font_info.
4114 (w32font_close): Don't free struct font. Adjusted for the change
4115 of struct w32font_info.
4116 (w32font_encode_char, w32font_text_extents, w32font_draw):
4117 Adjusted for the change of struct w32font_info.
4118 (w32font_draw): Likewise.
4119 (w32font_list_internal): Return a list, not vector.
4120 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 4121 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
4122 (add_font_name_to_list): Don't downcase names.
4123 (w32_enumfont_pattern_entity): Make a font-entity by
4124 font_make_entity. Adjusted for the format change of font-entity.
4125 Use FONT_SET_STYLE to set a style-related font property. If a
4126 font is scalable, set avgwidth property to 0. Set font-entity
4127 property by font_put_extra.
c3f9fba8 4128 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
4129 (w32_weight_table, w32_decode_weight): New variables.
4130 (w32_encode_weight): New function.
4131 (fill_in_logfont): Adjusted for the format change of font-spec.
4132 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
4133 weight value.
4134 (w32font_driver): Adjusted for the change of struct font_driver.
4135
4136 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 4137 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
4138 code by "#ifdef OLD_FONT" and "endif".
4139 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
4140 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
4141
4142 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
4143 conditionals. Don't check enable_font_backend. Delete all codes
4144 used only when USE_FONT_BACKEND is not defined. Surround non-used
4145 code by "#ifdef OLD_FONT" and "endif".
4146
4147 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
4148 (uniscribe_open): Return value changed to font-object.
4149 Adjusted for the format change of font-object.
4150 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
4151 (add_opentype_font_name_to_list): Don't downcase names.
4152 (uniscribe_font_driver): Adjusted for the change of struct
4153 font_driver.
4154
f9d4c199
CY
41552008-05-13 Chong Yidong <cyd@stupidchicken.com>
4156
4157 * dispnew.c (update_frame_1): Check if tty output is still valid
4158 before flushing it.
4159
44f249c0
JD
41602008-05-13 Jan Djärv <jan.h.d@swipnet.se>
4161
4162 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
4163 to Gtk+ menus.
4164
01bb4018
SM
41652008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4166
3271a8f5
SM
4167 * dired.c (file_name_completion): Tweak the code so as to always do it
4168 in a single pass. Tighten the scope of some variables.
4169
01bb4018
SM
4170 * dired.c (Qdefault_directory): New var.
4171 (file_name_completion): Use it instead of Fexpand_file_name.
4172 (syms_of_dired): Initialize it.
4173
728bb8e0
SM
41742008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
4175
4176 * fileio.c (double_dollars): Remove dead code.
4177
ed4c17bb
EZ
41782008-05-10 Eli Zaretskii <eliz@gnu.org>
4179
6c5665e9
EZ
4180 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
4181 Mention w32-get-true-file-attributes in doc string.
4182
ed4c17bb
EZ
4183 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4184
71e1f69d
GM
41852008-05-09 Glenn Morris <rgm@gnu.org>
4186
4187 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
4188 2008-04-23.
4189
ee7a2e7a
EZ
41902008-05-09 Eli Zaretskii <eliz@gnu.org>
4191
8aaaec6b
EZ
4192 Support for reporting owner and group of each file on MS-Windows:
4193 * dired.c (stat_uname, stat_gname): New functions, with special
4194 implementation for w32.
4195 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
4196
ee7a2e7a
EZ
4197 * w32.c: Rename the_passwd_* to dflt_passwd_*.
4198 (dflt_group_name): New static variable.
728bb8e0 4199 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
4200 (init_user_info): Init dflt_group fields. Get user's group name
4201 from LookupAccountSid.
8aaaec6b
EZ
4202 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
4203 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
4204 New initialization states.
4205 (globals_of_w32): Initialize them to zero. Initialize the default
4206 group name to "None".
4207 (GetFileSecurity_Name): New global var, the name of the function
4208 to call for GetFileSecurity.
4209 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
4210 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
4211 (get_file_security, get_security_descriptor_owner)
4212 (get_security_descriptor_group, is_valid_sid)
4213 (get_file_security_desc, get_rid, get_name_and_id)
4214 (get_file_owner_and_group): New functions.
4215 (stat): Use get_file_security_desc and get_file_owner_and_group to
4216 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
4217 high 32 bits of file's size, now that st_size is 64-bit wide.
4218 Fix test when to get true file attributes.
8aaaec6b
EZ
4219 (init_user_info): Use get_rid instead of equivalent inline code.
4220 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 4221
b199c436
CY
42222008-05-09 Chong Yidong <cyd@stupidchicken.com>
4223
4224 * image.c (png_load): Use correct bit-depth for setting background
4225 color.
4226
86914123
EZ
42272008-05-08 Eli Zaretskii <eliz@gnu.org>
4228
4229 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
4230 epa-hook.elc.
4231
67b5d7de
JB
42322008-05-08 Juanma Barranquero <lekktu@gmail.com>
4233
4234 * font.c (Ffont_match_p): Don't use `iff' in docstring.
4235
1a111394
DN
42362008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4237
4238 * macfns.c (Fx_create_frame): Make a copy of frame parameters
4239 because the original parameters are in pure storage now.
4240 (mac_window): Remove unused params. Update callers.
4241
6d77fa95
SM
42422008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4243
7a3d90dc
SM
4244 * lread.c (substitute_object_recurse): Use lower-level primitives.
4245 Don't signal errors when traversing sub-char-tables.
4246 Don't loop over all the possible characters when traversing char-tables.
4247
6d77fa95
SM
4248 * print.c (print_preprocess): Add sub-char-tables to the print-table,
4249 just like we do in print.c.
4250
140eb764
SM
42512008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4252
4253 * minibuf.c (Ftry_completion): Remove code left over from when we used
4254 scmp instead of Fcompare_strings.
4255
e9184ccb
JB
42562008-05-04 Juanma Barranquero <lekktu@gmail.com>
4257
4258 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
4259
0e9378b3
YM
42602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4261
4262 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
4263 Create bitmap context in native byte order.
4264
f67e15be
MB
4265 * macterm.c (XDrawLine)
4266 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
4267 context in native byte order.
064032d0 4268
f67e15be 42692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
4270
4271 * config.in: Regenerate.
4272
4273 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
4274 New definitions for Image I/O support.
4275 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4276 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
4277 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4278 (mac_data_provider_release_data, image_load_image_io)
4279 [USE_MAC_IMAGE_IO]: New functions.
4280 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
4281 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
4282 (init_image_func_pointer) [MAC_OSX]: Remove function.
4283 (image_load_quartz2d) [MAC_OSX]: Check availability of
4284 CGImageCreateWithPNGDataProvider at compile time.
4285 Use lowercase `false' for boolean constant.
4286 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
4287 Use image_load_image_io.
4288 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
4289 Don't check MyCGImageCreateWithPNGDataProvider.
4290 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
4291 Don't call init_image_func_pointer.
4292
4293 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
4294
4295 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
4296 Make variable non-static.
4297 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4298 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4299
4300 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
4301 (RED_FROM_ULONG): Mask off higher bits.
4302 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
4303
4304 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
4305 Include AvailabilityMacros.h.
4306 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
4307 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
4308
c6bff69e
SM
43092008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
4310
4311 * chartab.c (Fset_char_table_range): If range is t, really set all
4312 chars to that value.
4313
7412d429
EZ
43142008-05-03 Eli Zaretskii <eliz@gnu.org>
4315
4316 * dired.c (Ffile_attributes): Don't allow the device number become
4317 negative.
4318
f83bbfac
DU
43192008-05-02 Daiki Ueno <ueno@unixuser.org>
4320
5a81d3d7 4321 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 4322
2e3148e2
JL
43232008-05-02 Juri Linkov <juri@jurta.org>
4324
4325 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
4326 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
4327 DEFAULT argument as a list of default values in docstrings.
2e3148e2 4328
923fb88c
CY
43292008-05-01 Chong Yidong <cyd@stupidchicken.com>
4330
4331 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4332
047aaeb9
MR
43332008-05-01 Martin Rudalics <rudalics@gmx.at>
4334
4335 * dispnew.c (change_frame_size_1): Preserve small windows when
4336 shrinking frames by calling set_window_height|width with third
4337 arg 2.
4338
4339 * window.h (struct window): Replace field too_small_ok by field
4340 resize_proportionally.
4341
4342 * window.c (make_window): Initialize resize_proportionally.
4343 (enlarge_window): Temporarily set resize_proportionally to make
4344 sure that shrink_windows does scale the window proportionally.
4345 (shrink_windows): When window has resize_proportionally set try
4346 to shrink it proportionally by stealing from other windows.
4347 (struct saved_window, Fset_window_configuration)
4348 (compare_window_configurations): Handle resize_proportionally.
4349 (WINDOW_TOTAL_SIZE): New macro.
4350 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 4351 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
4352 window-min-height|width are handled by window_min_size_2 now.
4353 (size_window, Fsplit_window, enlarge_window)
4354 (adjust_window_trailing_edge, grow_mini_window): Don't call
4355 check_min_window_sizes.
c6bff69e
SM
4356 (window_min_size_2, window_min_size_1, window_min_size):
4357 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 4358 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
4359 (adjust_window_trailing_edge, grow_mini_window):
4360 Adjust arguments of window_min_size... functions.
047aaeb9
MR
4361 (shrink_windows): Argument min_size removed. New argument
4362 safe_p allows shrinking windows to their safe minimum sizes.
4363 Calculate minimum size and decide whether a window shall be
4364 deleted for each window individually.
4365 (size_window): When nodelete_p equals 2, tell shrink_windows to
4366 delete windows only if their new minimum size is no more safe.
4367 (shrink_window_lowest_first): Call window_min_size_1 to make
4368 sure to preserve modeline of bottom-most window when resizing
4369 the minibuffer.
4370 (Fset_window_configuration, Fcurrent_window_configuration)
4371 (compare_window_configurations): Do not handle
4372 window-min-height|width any more.
4373 (syms_of_window): Clarify window-min-height|width doc-strings.
4374
2a54a229
SM
43752008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
4376
4377 * dired.c (file_name_completion): Fix up the encoding/decoding issue
4378 some more. Copy some of the code from Ftry_completions.
4379 Remove special case code that dates back to initial revision when the
4380 slash was only added when necessary and that can't trigger nowadays.
4381
384bc634
KH
43822008-04-27 Kenichi Handa <handa@m17n.org>
4383
4384 * font.c (font_prop_validate): Signal `error' instead of `font'.
4385
2c2279c6
JR
43862008-04-29 Jason Rumney <jasonr@gnu.org>
4387
4388 * w32fns.c (Fw32_battery_status): New defun.
4389 (syms_of_w32fns): Defsubr it.
4390
fb4a622a
AS
43912008-04-28 Andreas Schwab <schwab@suse.de>
4392
4393 * dired.c (file_name_completion): Fix another mixing of encoded
4394 and decoded names.
4395
23f250f4
JB
43962008-04-28 Juanma Barranquero <lekktu@gmail.com>
4397
4398 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
4399
d8d30dff
JB
44002008-04-27 Juanma Barranquero <lekktu@gmail.com>
4401
4402 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4403
ea6104a8
AS
44042008-04-27 Andreas Schwab <schwab@suse.de>
4405
9c691c00
AS
4406 * dired.c (file_name_completion): Fix inappropriate mixing of
4407 encoded and decoded names.
4408
ec1bf773
AS
4409 * xterm.c (XTread_socket): Fix use of uninitialized variable.
4410
ea6104a8
AS
4411 * puresize.h (BASE_PURESIZE): Increase to 1200000.
4412
01388a3d
EZ
44132008-04-26 Eli Zaretskii <eliz@gnu.org>
4414
4415 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
4416 2008-03-31, it's not needed anymore with `struct stat' definition
4417 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
4418 for the same reasons.
4419
175aea10 44202008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
4421
4422 * m/sparc.h: Additional redefinitions for GNU/Linux.
4423
1289aeb8
YM
44242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4425
4426 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
4427 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4428 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
4429 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
4430 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4431 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
4432 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4433 Likewise.
4434
4435 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 4436 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
4437 (mac_ax_number_of_characters): Add externs.
4438 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4439 [USE_MAC_TSM]: Likewise.
4440 (mac_handle_text_input_event) [MAC_OSX]:
4441 Handle kEventTextInputOffsetToPos for no active input area case.
4442 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4443 (mac_handle_document_access_event)
4444 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
4445 (install_application_handler) [MAC_OSX]: Register handlers for
4446 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4447 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4448 Register mac_handle_document_access_event.
4449
4450 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
4451 Make functions non-static.
4452
dbd50d4b
SM
44532008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4454
4455 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
4456 (read_file_name_completion_ignore_case, insert_default_directory)
4457 (Qdefault_directory): Move to minibuffer.el.
4458 (Fread_file_name): Call the new `read-file-name' instead.
4459
9ea37b9d 44602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
4461
4462 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
4463 Make function non-static.
4464 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
4465 Remove function.
4466 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4467 Move to mactoolbox.c.
4468 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
4469
4470 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
4471 (mac_rect_make): New macro.
4472
4473 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
4474 instead of float.
4475 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4476 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
4477 (XSetBackground) [USE_CG_DRAWING]: Likewise.
4478 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
4479 CGRectMake.
4480 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4481 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
4482 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
4483 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4484 instead of WindowRef in argument type.
4485 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
4486 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
4487 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
4488 instead of DISPLAY. All uses changed.
4489 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
4490 (x_calc_absolute_position): Simplify so as not to use
4491 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
4492
4493 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4494 instead of WindowRef in argument type.
4495 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
4496 [TARGET_API_MAC_CARBON]: Remove externs.
4497 (create_apple_event, mac_event_parameters_to_lisp)
4498 [TARGET_API_MAC_CARBON]: Add externs.
4499
d8d30dff 4500 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
4501 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
4502 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
4503 is clicked.
4504 (x_activate_menubar): Remove extern for saved_menu_event_location.
4505 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4506 Move from mac.c.
4507
9ea37b9d 45082008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
4509
4510 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
4511 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
4512
9ea37b9d 45132008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
4514
4515 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
4516 attributes only for local files.
4517
4518 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 4519 default to Qlocal.
bd735631 4520
88970542
JL
45212008-04-22 Juri Linkov <juri@jurta.org>
4522
4523 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
4524 read-buffer-to-switch instead of using the letter "B".
4525
92ec67e3
SM
45262008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4527
4528 * fileio.c (Qdefault_directory): New variable.
4529 (Fread_file_name): Use it to pass `dir' to the completion functions.
4530
a32b2382
CY
45312008-04-20 Chong Yidong <cyd@stupidchicken.com>
4532
2a2e8de7 4533 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 4534
6c8b4f07
SM
45352008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
4536
ece5f847
SM
4537 * keyboard.c (Vpre_help_message): Remove.
4538 (show_help_echo): Remove default C code.
4539
6c8b4f07
SM
4540 * dired.c (directory_files_internal, file_name_completion):
4541 Only call ENCODE_FILE if the string is indeed decoded.
4542
73d798d5
SM
45432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4544
4545 * Makefile.in (TOOLKIT_DEFINES): Remove.
4546 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
4547
d8d30dff 45482008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
4549
4550 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4551 (mactoolbox.o): New target.
4552
4553 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
4554 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
4555
4556 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
4557 Use mac_set_frame_window_background instead of XSetWindowBackground.
4558 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
4559 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
4560 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
4561 instead of SetWindowTitleWithCFString.
4562 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
4563 Move function to mactoolbox.c.
4564 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
4565 Use mac_set_window_modified instead of SetWindowModified.
4566 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
4567 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
4568 (Fx_focus_frame): Use mac_front_non_floating_window instead of
4569 FrontNonFloatingWindow. Use mac_activate_window instead of
4570 ActivateWindow. Use mac_active_non_floating_window instead of
4571 ActiveNonFloatingWindow.
4572 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
4573 Use mac_show_hourglass and mac_hide_hourglass.
4574 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
4575 instead of GetGlobalMouse.
4576 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
4577 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
4578 Use mac_bring_window_to_front instead of BringToFront.
4579 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
4580 mactoolbox.c.
4581 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
4582 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
4583 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
4584 mactoolbox.c.
4585
4586 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
4587 (XtPointer): Move typedef from macmenu.c.
4588 (enum button_type): Move enum from macmenu.c.
4589 (widget_value): Move typedef from macmenu.c.
4590 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
4591 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4592 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4593 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4594 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4595 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4596 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4597 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
4598 (Selection): Move typedef from macselect.c.
4599 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
4600 macterm.c.
4601 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
4602 (mac_is_window_collapsed, mac_bring_window_to_front)
4603 (mac_send_window_behind, mac_hide_window, mac_show_window)
4604 (mac_collapse_window, mac_front_non_floating_window)
4605 (mac_active_non_floating_window, mac_activate_window)
4606 (mac_move_window_structure, mac_move_window, mac_size_window)
4607 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
4608
4609 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
4610 (enum mac_menu_kind): Move enum to mactoolbox.c.
4611 (min_menu_id): Move variable to mactoolbox.c.
4612 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
4613 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
4614 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
4615 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
4616 [TARGET_API_MAC_CARBON]: Likewise.
4617 (XtPointer): Move typedef to macgui.h.
4618 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
4619 (widget_value): Move typedef to macgui.h.
4620 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4621 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4622 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4623 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4624 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4625 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4626 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
4627 (popup_activated_flag): Make variable non-static.
4628 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
4629 (add_menu_item, fill_menu, dispose_menus):
4630 Move functions to mactoolbox.c.
4631 (restore_show_help_function, menu_target_item_handler)
4632 (install_menu_target_item_handler, mac_handle_dialog_event)
4633 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
4634 [TARGET_API_MAC_CARBON]: Likewise.
4635 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
4636 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4637 (find_and_call_menu_selection, name_is_separator): Make function
4638 non-static.
4639 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
4640 to mactoolbox.c.
4641 (set_frame_menubar): Don't call install_menu_quit_handler.
4642 (menu_item_selection): New variable.
4643 (mac_menu_show): Use create_and_show_popup_menu.
4644 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
4645 selection but set variable menu_item_selection. All uses changed.
4646 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
4647 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 4648
d02fe47d
MB
4649 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
4650 (Selection): Move typedef to macgui.h.
4651 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
4652 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
4653 Make variables non-static.
4654 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4655 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
4656 Make functions non-static.
4657 (Vmac_service_selection) [MAC_OSX]: Likewise.
4658 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
4659 (mac_valid_selection_target_p, mac_clear_selection)
4660 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4661 (mac_put_selection_value, mac_selection_has_target_p)
4662 (mac_get_selection_value, mac_get_selection_target_list)
4663 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
4664 Move functions to mactoolbox.c.
4665 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
4666 Likewise.
4667 (copy_scrap_flavor_data, mac_handle_service_event)
4668 (install_service_handler) [MAC_OSX]: Likewise.
4669 (syms_of_macselect) <Vmac_dnd_known_types>:
4670 Use mac_dnd_default_known_types.
463f55ee 4671
d02fe47d
MB
4672 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
4673 Move to mactoolbox.c.
4674 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
4675 (Fx_selection_owner_p): Add EXFUN.
4676 (install_window_handler, remove_window_handler, XSetWindowBackground):
4677 Remove externs.
4678 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
4679 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
4680 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
4681 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
4682 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
4683 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
4684 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
4685 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
4686 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
4687 (create_and_show_popup_menu, mac_get_selection_from_symbol)
4688 (mac_valid_selection_target_p, mac_clear_selection)
4689 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4690 (mac_put_selection_value, mac_selection_has_target_p)
4691 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
4692 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
4693 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
4694 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4695 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
4696 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4697 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
4698 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4699 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 4700
d02fe47d 4701 * mactoolbox.c: New file.
af253914 4702
d8d30dff 47032008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 4704
d02fe47d 4705 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 4706
8ee085a4
SM
47072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4708
73d798d5
SM
4709 * character.c (Fmultibyte_char_to_unibyte):
4710 Return latin1 chars unchanged.
5556875b 4711
8ee085a4
SM
4712 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
4713 relocated if it points to `name'.
4714
5dff5999
KH
47152008-04-17 Kenichi Handa <handa@m17n.org>
4716
4717 * data.c (Faset): Allow setting a multibyte character in an
4718 ASCII-only unibyte string.
4719
4720 * lisp.h (STRING_SET_MULTIBYTE): New macro.
4721
a51f4969
SM
47222008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
4723
4724 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
4725 done in config.h.
4726
add553ac
JB
47272008-04-16 Juanma Barranquero <lekktu@gmail.com>
4728
4729 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
4730 (Fchar_direction): Add usage in the docstring.
4731
8ad7b280
CY
47322008-04-15 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * keyboard.c (read_key_sequence): Remove always-true checks.
4735
e157d7ba
JR
47362008-04-14 Jason Rumney <jasonr@gnu.org>
4737
4738 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4739 compatibility struct, for better underline positioning.
4740
9ec3aaef 47412008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
4742
4743 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
4744 string.
4745
36c08864
DN
47462008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4747
4748 * m/hp800.h (XUINT, XSET): Remove.
4749
f5acc071
JB
47502008-04-12 Juanma Barranquero <lekktu@gmail.com>
4751
4752 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
4753 previous change.
4754
5b5a2ea1
SM
47552008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4756
4757 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
4758 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
4759
492d9fd6
SM
47602008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4761
4762 * keymap.h (map_keymap_canonical): Declare.
4763 * xmenu.c (single_keymap_panes): Use it.
4764
dd60787c
GM
47652008-04-11 Glenn Morris <rgm@gnu.org>
4766
4767 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
4768 set the target's value to that of the alias.
4769
c23b5410
SM
47702008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4771
4772 * term.c (set_tty_color_mode): Left over typo.
4773
e89b536d
MA
47742008-04-10 Michael Albinus <michael.albinus@gmx.de>
4775
4776 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 4777 only after check for file name handler functions. Signal, when
e89b536d
MA
4778 native functionality is not supported.
4779 (syms_of_fileio): Declare it unconditionally.
4780
40a339c8
JR
47812008-04-10 Jason Rumney <jasonr@gnu.org>
4782
31403b24
JR
4783 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
4784 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
4785
40a339c8
JR
4786 * w32.c (logon_network_drive): Also logon to remote drives that
4787 are mapped to drive letters.
4788
96a7394f
GM
47892008-04-10 Glenn Morris <rgm@gnu.org>
4790
4791 * xdisp.c (truncate-partial-width-windows): Doc fix.
4792
34b67b0f
SM
47932008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
4794
4795 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
4796 Move functions to minibuffer.el.
4797 (syms_of_fileio): Don't declare them.
4798
c025fb0a
SM
47992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4800
ba5ff07b
SM
4801 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
4802 (syms_of_minibuf): Remove its initialization.
4803
c025fb0a
SM
4804 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
4805
7a6a86ad
JB
48062008-04-09 Juanma Barranquero <lekktu@gmail.com>
4807
4808 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
4809
cf907d69
JR
48102008-04-09 Jason Rumney <jasonr@gnu.org>
4811
3dc94c30
JR
4812 * makefile.w32-in (distclean): Delete makefile too.
4813 (maintainer-clean): New target.
4814
8d28646b
JR
4815 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
4816
cf907d69
JR
4817 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
4818 for new font backend and composite cases.
4819
ef5eb925
JD
48202008-04-09 Jan Djärv <jan.h.d@swipnet.se>
4821
4822 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
4823 Most of the code moved to run_timers.
4824 (do_pending_atimers): Call run_timers.
4825 (run_timers): New function.
4826
cf907d69
JR
4827 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
4828 run atimers.
ef5eb925
JD
4829
4830 * process.c (wait_reading_process_output): The same as above.
4831
9b2cd403
SM
48322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4833
32bae13c
SM
4834 * minibuf.c (last_exact_completion): Remove variable.
4835 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
4836 (complete_and_exit_1, complete_and_exit_2)
4837 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4838 (Fdisplay_completion_list, display_completion_list_1)
4839 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
4840 (Fexit_minibuffer, Fminibuffer_message): Move functions to
4841 minibuffer.el.
32bae13c
SM
4842 (syms_of_minibuf): Remove corresponding initializations.
4843
5c4cc82a
SM
4844 * keyboard.c (Qdeactivate_mark): New var.
4845 (command_loop_1): Use it to call `deactivate-mark'.
4846 (syms_of_keyboard): Initialize it.
4847
9b2cd403
SM
4848 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
4849 to another frame.
4850 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
4851 Don't call set_tty_color_mode.
4852 (store_frame_param): Reset previous_frame rather than call
4853 set_tty_color_mode.
4854 * term.c (set_tty_color_mode): Rewrite.
4855 * dispextern.h (set_tty_color_mode): New type.
4856 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
4857
84cb7b45
SM
48582008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4859
4860 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
4861 for generic chars, which do not exist any more in emacs-unicode.
4862
3ed051d4
MA
48632008-04-08 Michael Albinus <michael.albinus@gmx.de>
4864
4865 * coding.c (detect_coding_emacs_mule)
4866 (Ffind_operation_coding_system): Fix typo.
4867
58c3ea42
JR
48682008-04-08 Jason Rumney <jasonr@gnu.org>
4869
3bf8d230
JR
4870 * w32uniscribe.c (SNAME): Extract only symbol name.
4871
56a70cca
JR
4872 * w32font.h (struct w32_metric_cache): New struct.
4873 (w32font_info): Use it.
4874 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
4875 (CACHE_BLOCKSIZE): New constants.
3ed051d4 4876
58c3ea42
JR
4877 * w32font.c (Qja, Qko, Qzh): New symbols.
4878 (syms_of_w32font): Initialise them.
4879 (font_matches_spec): Use them to filter by language.
4880 (recompute_cached_metrics): Remove function.
4881 (compute_metrics, clear_cached_metrics): New functions.
4882 (w32font_encode_char): Use them to manage metric cache.
4883 (w32font_text_extents): Cache metrics for all glyphs on demand.
4884 Delay converting glyph indices to WORD until needed.
4885 (w32font_open_internal): Initialize metric cache to empty.
4886 (registry_to_w32_charset): Charset should always be a symbol.
4887 (fill_in_logfont, list_all_matching_fonts): Family should
4888 always be a symbol.
4889
0ce24b2d
JR
48902008-04-06 Jason Rumney <jasonr@gnu.org>
4891
4892 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4893 Give up if glyph indices not supported. Use uniscribe obtained
4894 ABC widths for individual metrics. Map glyph clusters back to
4895 characters using fClusterStart flag. Return number of glyphs
4896 produced, not chars processed.
b7655e0c 4897 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 4898
5bc6ddff 48992008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 4900
fbf57abb
JB
4901 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4902 Use SetMenuItemHierarchicalMenu.
56613f06 4903
5bc6ddff 49042008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 4905
5bc6ddff
MB
4906 * image.c (pbm_load): Allow color values up to 65535.
4907 Throw an error if max_color_idx is outside the supported range.
4908 Report an error when image size is invalid.
4909 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 4910
5bc6ddff 49112008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 4912
5bc6ddff
MB
4913 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4914 cFileName a file name that includes `?' characters, use the 8+3
4915 alias in cAlternateFileName instead.
5ed6ba5b 4916
5bc6ddff 49172008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 4918
5bc6ddff
MB
4919 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4920 append "CCL: Quitted" when the CCL program is quitted.
4921 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 4922
5bc6ddff 4923 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 4924
c36e15db
CY
49252008-04-05 Chong Yidong <cyd@stupidchicken.com>
4926
9605d567
CY
4927 * search.c (compile_pattern_1): Treat non-nil and non-string of
4928 search-spaces-regexp as nil.
4929
c36e15db
CY
4930 * minibuf.c (Fassoc_string): Tweak docstring.
4931
40beb147
EZ
49322008-04-05 Eli Zaretskii <eliz@gnu.org>
4933
4934 * dired.c (Ffile_attributes): Support inode numbers wider than 32
4935 bits. Remove ugly WINDOWSNT-specific kludge introduced on
4936 2008-03-14 to force inode be positive.
4937
4938 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4939 _S_* ones, since we now use our own sys/stat.h.
4940 (stat, fstat): Don't mangle the inode number.
aa08d1ff 4941 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 4942
4591d6cb
SM
49432008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
4944
d4417eb0
SM
4945 * frame.h (struct frame): Give one more bit to `visible' since we use
4946 values larger than 1 to indicate obscured frames on ttys.
4947
00f7c5ed
SM
4948 * keymap.c (Qkeymap_canonicalize): New var.
4949 (Fmap_keymap_internal): New fun.
4950 (describe_map): Use keymap-canonicalize.
4951
4591d6cb
SM
4952 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4953 (Fundo_boundary): Set them.
4954 (syms_of_undo): Initialize them.
4955 (record_point): Use them instead of last_point_position*.
4956 (last_undo_buffer): Change type.
4957
3187540e
JR
49582008-04-04 Jason Rumney <jasonr@gnu.org>
4959
0ce24b2d
JR
4960 * w32font.c (w32font_text_extents): Use font's ascent and descent.
4961 (recompute_cached_metrics): Don't set ascent and descent per char.
4962
3187540e 4963 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 4964 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 4965 Rearrange loop for counting features.
3187540e 4966
f1a6b216
SM
49672008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4970 buffer with byte-size of source buffer.
4971
1d8dcf63
CY
49722008-04-03 Chong Yidong <cyd@stupidchicken.com>
4973
4974 * callint.c (Fcall_interactively): Handle temporary region even
4975 when shift-select-mode is off.
4976
6b8aa22a
JR
49772008-04-03 Jason Rumney <jasonr@gnu.org>
4978
4979 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4980
2f3cbb32
KH
49812008-04-03 Kenichi Handa <handa@m17n.org>
4982
4983 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4984 (CATEGORY_MASK_UTF_16): Likewise.
4985 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4986 binary file.
4987 (detect_coding): Add null-byte detection for a binary file.
4988 (detect_coding_system): Likewise.
4989
43f4f91c
JR
49902008-04-03 Jason Rumney <jasonr@gnu.org>
4991
0c1b4ae2
JR
4992 * w32uniscribe.c: New file.
4993
4994 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4995
4996 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4997
4998 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4999 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
5000 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
5001 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
5002 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
5003 (Qphonetic): New symbols.
5004 (syms_of_w32font): Initialize them.
5005 (font_supported_scripts): Use them.
5006 (w32font_list_family): List all charsets.
5007 (w32font_text_extents, recompute_cached_metrics): Fix metric
5008 calculations.
5009 (w32_enumfont_pattern_entity): Make full_type a DWORD.
5010 Give opentype fonts their own format.
5011 (font_matches_spec): New arguments backend and logfont.
5012 Handle :otf spec for uniscribe backend.
5013 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
5014 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 5015
0c1b4ae2
JR
5016 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
5017 font backend.
5018 (globals_of_w32fns): Initialize uniscribe font backend.
5019
fbf57abb 5020 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
5021 dependencies.
5022 (w32uniscribe.$(O)): New file to build.
5023 (FONT_OBJ): Include w32uniscribe.$(O).
5024 (LIBS): Add uniscribe libraries.
5025
43f4f91c
JR
5026 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
5027
75043a7d
CY
50282008-04-02 Chong Yidong <cyd@stupidchicken.com>
5029
5030 * callint.c (Vshift_select_mode): New var.
5031 (Finteractive): Document new ^ spec.
5032 (Fcall_interactively): Call handle-shift-selection if the ^ spec
5033 is present.
5034
5035 * keyboard.c (Vthis_command_keys_shift_translated): New var.
5036 (command_loop_1): Avoid running the direct display versions of
5037 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
5038 (read_key_sequence): Set Vthis_command_keys_shift_translated if
5039 shift-translation takes place.
5040
5041 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
5042 avoid clobbering by define-minor-mode.
5043
5044 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
5045 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
5046
5047 * syntax.c (Fforward_word): Add ^ interactive spec.
5048
5049 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
5050 (Fscroll_right): Add ^ interactive spec.
5051
b2b7f29e
SM
50522008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
5053
a432c0a6
SM
5054 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
5055
994b75e0
SM
5056 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
5057
b2b7f29e
SM
5058 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
5059
e99c7806
JL
50602008-03-31 Juri Linkov <juri@jurta.org>
5061
5062 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
5063
1c9c1270
JD
50642008-03-30 Jan Djärv <jan.h.d@swipnet.se>
5065
5066 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 5067 (xg_resize_outer_widget): Remove.
1c9c1270
JD
5068 (x_wm_size_hint_off): Fix indentation.
5069 (xg_frame_set_char_size): Call flush_and_sync after
5070 gtk_window_resize.
5071 (x_wm_set_size_hint): Pass NULL as geometry window to
5072 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
5073 Add menu bar and tool bar height to base height.
5074 (xg_update_frame_menubar, free_frame_menubar)
5075 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
5076 (update_frame_tool_bar, free_frame_tool_bar):
5077 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 5078
90b3fc84
MA
50792008-03-30 Michael Albinus <michael.albinus@gmx.de>
5080
5081 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
5082 (Fdbus_call_method): New parameter TIMEOUT.
5083 (dbus-send-signal): Optimize UNGCPRO call.
5084
7ae6d1d1
JL
50852008-03-29 Juri Linkov <juri@jurta.org>
5086
5087 * window.c (Fdisplay_buffer): Move call to
5088 Vsplit_window_preferred_function out of conditions that check
5089 if window is eligible for vertical splitting.
5090 When Vsplit_window_preferred_function is non-nil, call it and use
5091 its non-nil return value as window. Otherwise, continue doing
5092 vertical splitting using Fsplit_window with arg horflag=nil.
5093 (syms_of_window) <Vsplit_window_preferred_function>: Change the
5094 default value from `split-window' to nil.
5095
f03f8f2c
JL
50962008-03-29 Juri Linkov <juri@jurta.org>
5097
5098 * callint.c (Fcall_interactively): Revert 2008-03-16 change
5099 for interactive code letters 'b' and 'B'.
5100
6d557778
EZ
51012008-03-29 Eli Zaretskii <eliz@gnu.org>
5102
5103 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
5104 multibyte string.
5105
58555d81
SM
51062008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5107
5108 * keyboard.c (pending_funcalls): New var.
5109 (timer_check): Run it.
5110 (syms_of_keyboard): Initialize it.
5111 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
5112 (Vdelete_terminal_functions): New vars.
5113 (syms_of_terminal): Initialize them.
5114 (Fdelete_terminal): Run delete-terminal-functions.
5115 * xdisp.c (safe_eval): Rewrite.
5116 (safe_call2): New fun.
5117 * frame.c (Qdelete_frame_functions): New var.
5118 (syms_of_frame): Initialize it.
5119 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
5120 * lisp.h (safe_call2, pending_funcalls): Declare.
5121
4c92f429
AS
51222008-03-28 Andreas Schwab <schwab@suse.de>
5123
5124 * indent.c (Fmove_to_column): Move declaration before statements.
5125
a1567c45
SM
51262008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
5127
2806a183
SM
5128 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
5129 (struct frame): Use bit fields for boolean vars.
5130
eef60308
SM
5131 * process.c (server_accept_connection): Simplify naming.
5132 (emacs_get_tty_pgrp): Use SDATA.
5133
a1567c45
SM
5134 * coding.c (decode_coding_object): Fix last change.
5135
30076589
JR
51362008-03-27 Jason Rumney <jasonr@gnu.org>
5137
5138 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
5139
880820fe
KH
51402008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
5141
5142 * charset.c (Fdefine_charset_internal): Change the way of
5143 registering charsets in Vcharset_order_list.
5144 (syms_of_charset): Make the charset `eight-bit' supplementary.
5145
3cf8cdfb
CY
51462008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
5147
5148 * regex.c (EXTEND_BUFFER): Change order of pointer addition
5149 operations, to avoid having the difference between pointers
5150 overflow.
5151
ef6f5c0e
SM
51522008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5153
80e3db56
SM
5154 * indent.c (check_display_width): New fun.
5155 (scan_for_column): Use it.
5156
c397dc7a
SM
5157 * data.c (syms_of_data): Mark most-positive-fixnum and
5158 most-negative-fixnum as constants.
5159
bf6b4d58
SM
5160 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
5161
ef6f5c0e
SM
5162 * indent.c (scan_for_column): Extract from current_column_1.
5163 Merge with the same code from Fmove_to_column.
5164 (current_column_1, Fmove_to_column): Use it.
5165
72d5003d
SM
51662008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5167
12270607
SM
5168 * keymap.c (map_keymap_internal): New fun.
5169 (map_keymap): Use it.
5170 (Fmap_keymap_internal): New fun.
5171 (Fmap_keymap): Remove left-out test from before make_save_value.
5172
a10cca6c
SM
5173 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
5174
d7b10f4c
SM
5175 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
5176 Use XCAR/XCDR.
5177
5431bd6a
SM
5178 * process.h (struct Lisp_Process): Remove filter_multibyte.
5179 * process.c (QCfilter_multibyte): Remove.
5180 (setup_process_coding_systems): Don't use filter_multibyte.
5181 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
5182 (read_process_output): Don't adjust multibyteness to filter_multibyte.
5183 (Fset_process_filter_multibyte): Change the coding-system to
5184 approximate the previous behavior.
5185 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
5186 coding-system.
5187
72d5003d
SM
5188 * coding.c (decode_coding_object): When not decoding into a buffer,
5189 obey the coding system's preference of (uni|multi)byte.
5190
438eba3c
SM
51912008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5192
5193 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
5194 every char is changed and has a different byte-length.
5195 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
5196 Fix int -> EMACS_INT.
5197
9ec3aaef 51982008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 5199
438eba3c 5200 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
5201 strings. Check for NULL `interface' or `member'.
5202
b07103dc
EZ
52032008-03-22 Eli Zaretskii <eliz@gnu.org>
5204
5205 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5206 cFileName a file name that includes `?' characters, use the 8+3
5207 alias in cAlternateFileName instead.
5208
5371d722
SM
52092008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
5210
5211 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
5212
6ba7f443
SM
52132008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5214
5215 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
5216 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
5217 work on current_buffer only instead (that was already the case
5218 for some of the code anyway).
5219 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
5220 (temp_set_point, temp_set_point_both): Use EMACS_INT.
5221 (SET_PT, SET_PT_BOTH): Adjust.
5222 * intervals.h (set_point, temp_set_point, set_point_both)
5223 (temp_set_point_both): Remove redundant declarations.
5224
bf1c0f27
SM
52252008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5226
5227 * fileio.c (Finsert_file_contents):
5228 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
5229 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
5230 when buffer != current_buffer anyway.
5231
acab783e
AS
52322008-03-20 Andreas Schwab <schwab@suse.de>
5233
5234 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
5235 as default.
5236
d148e14d
JR
52372008-03-19 Jason Rumney <jasonr@gnu.org>
5238
5239 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
5240 (syms_of_w32fns): Initialize them.
5241 (HOURGLASS_ID): New constant.
5242 (x_window_to_frame): Don't check hourglass_window.
5243 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
5244 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
5245 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
5246 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
5247 Only change the cursor if hourglass is not active.
5248 (Fx_create_frame): Initialize frame's current_cursor.
5249 (hourglass_atimer): Remove.
5250 (hourglass_started): New function.
5251 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
5252 (show_hourglass): Adapt to w32, changing argument to frame.
5253
5254 * w32term.h (struct w32_output): Remove hourglass_window.
5255 Add current_cursor.
5256
5257 * eval.c (call_debugger, Fsignal):
5258 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
5259 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
5260 (Fexecute_extended_command, cancel_hourglass_unwind):
5261 * minibuf.c (read_minibuf):
5262 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 5263
a5c54077
JB
52642008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5265
5266 * window.c (run_funs): New fun.
5267 (run_window_configuration_change_hook): Use it to run the buffer-local
5268 and the global part of the hook.
5269
5270 * xdisp.c (format_mode_line_unwind_data): Add window argument.
5271 (unwind_format_mode_line): Restore selected window.
5272 (x_consider_frame_title, Fformat_mode_line): Set selected window.
5273
f9f3238f
SM
52742008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5275
253c3c82
SM
5276 * editfns.c (Fchar_equal): Check they are valid characters.
5277
f9f3238f
SM
5278 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
5279
065a118d
AS
52802008-03-17 Andreas Schwab <schwab@suse.de>
5281
0b8be006
AS
5282 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
5283 against a charset.
5284
065a118d
AS
5285 * lisp.h (Fbuffer_list): Declare.
5286
880820fe 52872008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
5288
5289 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
5290 handlebox_widget is != 0.
5291
6206d6c2
JL
52922008-03-16 Juri Linkov <juri@jurta.org>
5293
5294 * callint.c (Fcall_interactively): For interactive code letters
5295 'b' and 'B' put the buffer list into the list of default "future"
5296 values of the minibuffer.
5297
f5020181
AS
52982008-03-16 Andreas Schwab <schwab@suse.de>
5299
a864f6d6
AS
5300 * keyboard.c (read_key_sequence): Fix downcasing of letters with
5301 modifiers.
5302
f5020181
AS
5303 * regex.c (re_match_2_internal): Correct matching of a charset
5304 against latin-1 characters.
5305
03f244e2
KH
53062008-03-16 Kenichi Handa <handa@m17n.org>
5307
5308 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
5309 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
5310 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
5311 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
5312 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
5313 CHAR_STRING_ADVANCE.
5314 (produce_chars): Fix for the case that the source and the
5315 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
5316 instead of CHAR_STRING_ADVANCE.
5317 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
5318 STRING_CHAR_ADVANCE.
5319
0e2501ed
AS
53202008-03-15 Andreas Schwab <schwab@suse.de>
5321
5322 * regex.c (re_match_2_internal): Correct matching of eight bit
5323 characters in unibyte strings.
5324
7723e095
MR
53252008-03-15 Martin Rudalics <rudalics@gmx.at>
5326
5327 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
5328 at end of range when it coincides with the end of the buffer.
5329
f507f365
EZ
53302008-03-14 Eli Zaretskii <eliz@gnu.org>
5331
294f1153
EZ
5332 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
5333
f507f365
EZ
5334 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
5335
64f0809d
JR
53362008-03-14 Jason Rumney <jasonr@gnu.org>
5337
956ae531
JR
5338 * editfns.c (initial_tz): New variable.
5339 (syms_of_editfns): Initialize it.
5340 (Fset_time_zone_rule): Set it when first called.
5341 Use it when TZSTRING is nil.
5342
64f0809d
JR
5343 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
5344 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
5345 (monitor_from_point_fn, get_monitor_info_fn): New globals.
5346 (globals_of_w32fns): Initialize them.
5347 (compute_tip_xy): Use them to position tooltips.
5348
21a4ff8e
GM
53492008-03-14 Glenn Morris <rgm@gnu.org>
5350
5351 * emacs.c (main): Revert previous change.
5352 (standard_args): Revert -internal-script back to -scriptload,
5353 and remove the long-option form.
5354
a09a5b5b
GM
53552008-03-13 Glenn Morris <rgm@gnu.org>
5356
5357 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
5358 Remove option -enable-font-backend.
5359
1c55ebd1
SM
53602008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5361
5362 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
5363
880820fe 53642008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
5365
5366 * xterm.c (x_connection_closed): For GTK: If this is the last
5367 terminal just exit without closing the display.
5368
7145be81
JR
53692008-03-11 Jason Rumney <jasonr@gnu.org>
5370
5371 * w32font.c (w32font_full_name): Use floor to round.
5372
e6201af3 53732008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
5374
5375 * sound.c (alsa_configure): Declare vol at beginning of block.
5376
e6201af3 5377 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 5378
390b81fa 53792008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 5380
56388398
MB
5381 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
5382 size of resulting string.
af0ad939 5383
390b81fa 53842008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 5385
56388398 5386 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 5387
390b81fa 53882008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 5389
56388398
MB
5390 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
5391 Don't pretend as if characters with display property haven't been
5392 consumed for string-replacing-string case.
acd37560 5393
223ed6db
KS
53942008-03-08 Kim F. Storm <storm@cua.dk>
5395
5396 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
5397 (get_next_display_element, next_element_from_string)
5398 (next_element_from_ellipsis, next_element_from_buffer): Use it.
5399
28545f7c
AS
54002008-03-08 Andreas Schwab <schwab@suse.de>
5401
5402 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
5403
c960bff8
JR
54042008-03-06 Jason Rumney <jasonr@gnu.org>
5405
290afd83
JB
5406 * w32font.c (w32_registry): Take font_type argument. Use ANSI
5407 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
5408 font_type is truetype.
5409 (w32font_coverage_ok): New function.
5410 (add_font_entity_to_list): Use it to filter unsuitable fonts.
5411
87b8ce92
KH
54122008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
5413
5414 * lread.c (Fread_char): Resolve modifiers.
5415 (Fread_char_exclusive): Likewise.
5416
5417 * character.c (char_resolve_modifier_mask): New function.
5418 (char_string): Use char_resolve_modifier_mask.
5419 (Fchar_resolve_modifiers): New function.
5420 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
5421 function.
5422
cefd56f6
JR
54232008-03-04 Jason Rumney <jasonr@gnu.org>
5424
5425 * makefile.w32-in: Always include w32font.c in the build.
5426 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
5427
03bd3c1f
AS
54282008-03-04 Andreas Schwab <schwab@suse.de>
5429
5430 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
5431 (versionclean): Likewise.
5432
6f69e89b
JB
54332008-03-04 Juanma Barranquero <lekktu@gmail.com>
5434
5435 * .cvsignore: Add oo.
5436
f4a3cc44
AS
54372008-03-03 Andreas Schwab <schwab@suse.de>
5438
5439 * coding.c (decode_coding_object): Inhibit gap shrinking while
5440 decoding in place.
5441
73f838ad
DN
54422008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
5443
5444 * w32term.c: Remove unused include "gnu.h".
6f69e89b 5445 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
5446
5447 * gnu.h: Rename to ...
5448 * emacs-icon.h: ... this.
5449 * xterm.c: Use emacs-icon.h instead of gnu.h.
5450 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
5451
ce9c1f06
JB
54522008-03-03 Juanma Barranquero <lekktu@gmail.com>
5453
5454 * w32font.c: Include math.h.
5455
34fd2d28
JR
54562008-03-03 Jason Rumney <jasonr@gnu.org>
5457
54efdcd1
JR
5458 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
5459 Compute options separately.
5460 (w32font_open_internal): Set glyph_idx before caching metrics.
5461
ce9c1f06
JB
5462 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
5463 Define if system headers don't.
5464 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
5465 (w32font_encode_char): Don't declare here.
5466
5467 * w32font.c (Quniscribe, QCformat): New symbols.
5468 (syms_of_w32font): Define them.
5469 (w32font_has_char): Indicate uncertainty.
ce9c1f06 5470 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 5471 (recompute_cached_metrics): New function.
ce9c1f06
JB
5472 (w32font_open_internal): Use it. Set font to use glyph points
5473 initially. Set format based on type of font.
34fd2d28 5474 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
5475 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
5476 on it. Set format based on information available here.
34fd2d28
JR
5477 (add_font_entity_to_list): Identify backend based on opentype_only.
5478
14daee73
AS
54792008-03-02 Andreas Schwab <schwab@suse.de>
5480
f907fb2e
AS
5481 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
5482
ce9c1f06
JB
5483 * coding.c (decode_coding_big5, produce_chars):
5484 Fix typos in last change.
14daee73 5485
c9cc6462
DN
54862008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
5487
5488 * gnu.h: New icon.
5489
119852e7
KH
54902008-03-02 Kenichi Handa <handa@m17n.org>
5491
5492 * coding.c (decode_coding_utf_8): When eol-type of CODING is
5493 `dos', don't decode '\r' if that is the last in the source.
5494 (decode_coding_utf_16, decode_coding_emacs_mule)
5495 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5496 (decode_coding_raw_text, decode_coding_charset): Likewise.
5497 (produce_chars): Don't decode EOL here. Use EMACS_INT.
5498
a823468b
JR
54992008-03-01 Jason Rumney <jasonr@gnu.org>
5500
5501 * w32font.c (w32font_full_name): Report point size for scalable fonts.
5502
4ddc7e30
KS
55032008-03-01 Kim F. Storm <storm@cua.dk>
5504
5505 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
5506
67997c79
JR
55072008-03-01 Jason Rumney <jasonr@gnu.org>
5508
5509 * w32font.c (w32font_full_name): New function.
5510 (w32font_open_internal): Use it.
5511
3f4e9c35
KS
55122008-03-01 Kim F. Storm <storm@cua.dk>
5513
5514 * dispnew.c (line_draw_cost): Fix invalid glyph check.
5515
f3b9e479
JR
55162008-03-01 Jason Rumney <jasonr@gnu.org>
5517
5518 * font.c (font_unparse_fcname): Increase len when style is a symbol.
5519
880820fe 55202008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
5521
5522 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
5523 xg_frame_resized when the event is for the edit widget.
5524
5525 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
5526
5527 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
5528 set_char_size.
5529 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
5530 operations on widgets here. Just set frame size if needed.
5531 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
5532 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
5533 (x_wm_set_size_hint): Set size hints on the edit widget only, not
5534 the whole frame.
5535 (xg_create_tool_bar): Move attachement of the tool bar to
5536 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
5537 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
5538
6c8acaa1
JR
55392008-03-01 Jason Rumney <jasonr@gnu.org>
5540
5541 * w32fns.c (w32_msg_pump): Disable debug code.
5542
51fb064b 55432008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 5544
51fb064b 5545 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 5546
60221a33
CY
55472008-02-29 Chong Yidong <cyd@stupidchicken.com>
5548
5549 * xdisp.c (next_overlay_string): Don't set
5550 overlay_strings_at_end_processed_p if we're currently reading from
5551 a display string.
5552
10cbc34f
SM
55532008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
5554
5555 * xdisp.c (get_overlay_strings_1): Fix typo.
5556
73c0054e
CY
55572008-02-29 Chong Yidong <cyd@stupidchicken.com>
5558
5559 * xdisp.c (get_overlay_strings_1): Add missing argument type.
5560
ec1c4354
KH
55612008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
5562
55082642
KH
5563 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
5564
ec1c4354
KH
5565 * xdisp.c (display_mode_element): Cancel the previous change.
5566 (decode_mode_spec): Likewise.
ee548a94
KH
5567 (handle_auto_composed_prop): Don't make composition if it->string
5568 is a string.
ec1c4354 5569
b6d898a2
KS
55702008-02-27 Kim F. Storm <storm@cua.dk>
5571
5572 * lisp.h (GLYPH): Change type from int to struct with separate char
5573 and face_id members.
5574 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
5575 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
5576 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
5577 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
5578 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
5579 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
5580 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
5581 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
5582 handle new Lisp glyph code encoding, either an integer or a cons.
5583
5584 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
5585 (GLYPH_ALIAS): Delete.
5586 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
5587 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
5588 (GLYPH_FROM_CHAR): Replace macro by ...
5589 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
5590
5591 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
5592 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
5593 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
5594 (GLYPH_INVALID_P): New macro.
5595 (spec_glyph_lookup_face): Update prototype.
5596
5597 * dispnew.c (line_draw_cost): Adapt to new glyph type.
5598 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
5599 new glyph code encoding.
5600 (spec_glyph_lookup_face): No return value; update passed glyph instead.
5601 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
5602
5603 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5604 Adapt to new glyph type and new glyph code encoding.
5605
5606 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
5607
5608 * indent.c (current_column, current_column_1, Fmove_to_column)
5609 (compute_motion): Adapt to new glyph code encoding.
5610
5611 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
5612
af2080a2
CY
56132008-02-27 Chong Yidong <cyd@stupidchicken.com>
5614
5615 * process.c (wait_reading_process_output): Check for window
5616 changes caused by timers.
880820fe 5617 Suggested by Johan Bockgård.
af2080a2 5618
253ed25e
GM
56192008-02-27 Glenn Morris <rgm@gnu.org>
5620
5621 * emacs.c (USAGE1): Add `--disable-font-backend'.
5622
18a9f8d9
SM
56232008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
5624
5625 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
5626 is made to the buffer.
5627
0f8b27ea
SM
56282008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5629
5630 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
5631 (face_at_string_position):
5632 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5633 (face_at_string_position):
5634 * xdisp.c (display_string, next_overlay_change):
5635 * buffer.h (overlays_at):
5636 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
5637 Update callers.
5638
4e7c53ca
CY
56392008-02-26 Chong Yidong <cyd@stupidchicken.com>
5640
5641 * editfns.c (Fformat): Doc fix.
5642
51c01100
JB
56432008-02-26 Juanma Barranquero <lekktu@gmail.com>
5644
5645 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
5646 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
5647 (Ffont_otf_alternates, Fquery_font): Doc fixes.
5648
13cda5f9
SM
56492008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5650
5651 * buffer.c (Fbuffer_swap_text): New function.
5652 (syms_of_buffer): Defsubr it.
5653
8018d430
CY
56542008-02-25 Chong Yidong <cyd@stupidchicken.com>
5655
5656 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
5657
9bde1a21
JR
56582008-02-25 Jason Rumney <jasonr@gnu.org>
5659
5660 * w32font.c (w32font_draw): Draw one character at a time when padding.
5661
eeca6f6f
SM
56622008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5663
5664 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
5665 Handle a nil arg. Use run_window_configuration_change_hook.
5666 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
5667 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
5668 Use run_window_configuration_change_hook.
5669
ec1c4354
KH
56702008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5671
5672 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
5673 1-pixel width.
5674
ae185452
KH
56752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5676
5677 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
5678 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
5679 if the glyph in the font is zero pixel with.
5680
5681 * dispextern.h (struct glyph_string): New member padding_p.
5682
5683 * w32font.c (w32font_draw): Pay attention to s->padding_p.
5684
5685 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
5686
5687 * xfont.c (xfont_draw): Pay attention to s->padding_p.
5688
5689 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
5690
eeca6f6f 5691 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 5692
ffe832ea 56932008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 5694
ffe832ea 5695 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 5696
06045130
SM
56972008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
5698
5699 Allow fine-grained image-cache flushing.
5700 * dispextern.h (struct image): Add `dependencies' field.
5701 (clear_image_caches): Change arg to Lisp_Object.
5702 * image.c (make_image): Initialize `dependencies' field.
5703 (clear_image_cache): Change arg to allow fine-grained flushing.
5704 Perform the flush even if image-cache-eviction-delay is nil.
5705 (clear_image_caches): Change arg to Lisp_Object.
5706 (Fclear_image_cache): Expand meaning of the argument.
5707 (mark_image): Mark `dependencies' field.
5708 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
5709 (lface_hash): Use XHASH rather than XFASTINT.
5710 (face_at_buffer_position): Fix int -> EMACS_INT position.
5711 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
5712 (select_frame_for_redisplay): Remove code duplication.
5713 (redisplay_internal): Adapt arg to call to clear_image_caches.
5714
9d2818d6
DN
57152008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
5716
5717 * s/vms4-0.h:
5718 * s/vms4-2.h:
5719 * s/vms4-4.h:
5720 * s/vms5-5.h: Remove, unused.
5721
5722 * s/irix5-2.h:
5723 * s/irix6-0.h:
5724 * s/riscos5.h:
5725 * s/mach-bsd4-3.h:
2a2e8de7 5726 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
5727
5728 * Makefile.in:
5729 * filelock.c:
5730 * unexmips.c:
5731 * m/hp9000s300.h:
5732 * m/iris4d.h:
5733 * s/aix3-1.h:
5734 * s/hpux.h:
5735 * s/msdos.h:
5736 * s/usg5-0.h:
5737 * s/usg5-2-2.h:
5738 * s/usg5-2.h:
5739 * s/usg5-3.h: Remove references to obsolete variables.
5740
5741 * s/irix5-0.h: Remove, move all the contents ...
5742 * s/irix6-5.h: ... here. Simplify.
5743 * config.in: Regenerate.
5744
2a36efcf
JR
57452008-02-24 Jason Rumney <jasonr@gnu.org>
5746
c5ad7a3d 5747 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
5748 manually when cleartype is in use.
5749 (x_draw_glyph_string_foreground): Draw text transparently when
5750 cleartype is in use.
5751
2a36efcf
JR
5752 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
5753 a font into it unless we have to.
5754
b03f96dc 57552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 5756
b03f96dc
MB
5757 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
5758 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 5759
b03f96dc 57602008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 5761
b03f96dc 5762 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 5763
b03f96dc 57642008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 5765
b03f96dc 5766 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 5767
b03f96dc 57682008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 5769
b03f96dc 5770 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 5771
d5958163
CY
57722008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
5773
5774 * xterm.c (x_set_offset): Don't change the gravity if
5775 CHANGE_GRAVITY is -1.
5776
9997701e
CY
57772008-02-23 Chong Yidong <cyd@stupidchicken.com>
5778
5779 * fileio.c (auto_save_error_occurred): New var.
5780 (auto_save_error): Set it.
5781 (Fdo_auto_save): Don't overwrite the error message if an auto-save
5782 error occurred.
5783
9d95a291
EZ
57842008-02-23 Eli Zaretskii <eliz@gnu.org>
5785
5786 * w32.c (globals_of_w32): Add initializations for
5787 g_b_init_get_sid_sub_authority and
5788 g_b_init_get_sid_sub_authority_count.
5789
43d1af23
SM
57902008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5791
43a1d19b
SM
5792 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
5793 (font_parse_xlfd): Use them for sanity check.
608c3307 5794 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 5795
354884c4
SM
5796 Consolidate the image_cache to the terminal struct.
5797 * termhooks.h (P_): Remove redundant def.
5798 (struct terminal): New field `image_cache'.
5799 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
5800 of FRAME_X_IMAGE_CACHE.
5801 * xterm.h (struct x_display_info): Remove image_cache field.
5802 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5803 * w32term.h (struct w32_display_info): Remove image_cache field.
5804 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5805 * macterm.h (struct mac_display_info): Remove image_cache field.
5806 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5807 * xterm.c (x_term_init):
5808 * w32term.c (w32_term_init):
5809 * macterm.c (mac_term_init): Set the image_cache in the terminal.
5810 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
5811 Remove declarations.
5812 (clear_image_caches, mark_image_cache): New declarations.
5813 * xfaces.c (clear_face_cache):
5814 * xdisp.c (redisplay_internal): Use clear_image_caches.
5815 * image.c (clear_image_cache): Don't check that a frame is on
5816 a window-system before checking if it shares the same cache.
5817 (clear_image_caches): New function.
5818 (Fclear_image_cache): Use it.
5819 (mark_image): Move from allo.c.
5820 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
5821 * alloc.c (mark_image, mark_image_cache): Move to image.c.
5822 (mark_object): Don't call mark_image_cache for frames.
5823 (mark_terminals): Call mark_image_cache.
5824
c2e42690
SM
5825 * lisp.h (Fdelete_terminal): Declare.
5826
43d1af23
SM
5827 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
5828 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
5829 wrong_type_argument.
5830
cc8d1311
KH
58312008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
5832
5833 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 5834 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 5835
6bd92640
SM
58362008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5837
5838 * xterm.c (x_connection_closed): Consolidate identical tests.
5839 (x_delete_terminal): Don't crash if called via x_connection_closed.
5840
a73b5627
KH
58412008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
5842
5843 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 5844 (display_mode_element): Adjust for the above change.
a73b5627 5845
1b511542
SM
58462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5847
5848 * callint.c (Fcall_interactively): Use AREF.
5849
81aefea4
SM
58502008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5851
5852 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
5853
880820fe 58542008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
5855
5856 * xfns.c (Fx_show_tip): Set string to " " if empty.
5857
a2b84f35
DN
58582008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
5859
5860 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
5861 with Qt.
5862
43c0454d
KH
58632008-02-17 Kenichi Handa <handa@m17n.org>
5864
5865 * ftfont.c (ftfont_shape): Return Lispy number.
5866
5867 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
5868 for GCs.
5869 (Finternal_set_font_selection_order): Call font_update_sort_order
5870 only when enable_font_backend is set.
5871 (realize_x_face): Set face->font_info to that of default face only
5872 when enable_font_backend is set.
5873
5874 * xdisp.c (handle_composition_prop): Set it->c to the fist
5875 characte of the composed region.
5876 (fill_composite_glyph_string): Set base_face->font_info to
5877 s->font_info. Get a face for ascii from base_face->ascii_face.
5878 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5879 with a face already decided.
5880 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5881 non-negative.
978bef9a
JB
5882 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5883 call font_prepare_composition unconditionally.
43c0454d 5884
978bef9a 5885 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
5886
5887 * xterm.h (struct x_display_info): New member font.
5888
5889 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5890 (x_set_mouse_face_gc, x_new_font): Likewise.
5891 (x_term_init): Setup display_info->font.
5892 (x_delete_terminal): Free display_info->font.
5893
5894 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5895
5896 * ftxfont.c (ftxfont_default_fid): Delete it.
5897 (ftxfont_open): Set xfont->fid to 0.
978bef9a 5898 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
5899 font-driver.
5900
5901 * xftfont.c (xftfont_default_fid): Delete it.
5902 (xftfont_open): Set xfont->fid to 0.
5903
5904 * fontset.c (FONTSET_OBJLIST): New macro.
5905 (fontset_find_font): Update font-object list of the fontset.
5906 (free_realized_fontset): New function.
5907 (free_face_fontset): Call free_realized_fontset.
5908 (Ffont_info): Call font_close_object only when enable_font_backend
5909 is set.
5910
5911 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5912 [HAVE_NTGUI]: Include w32term.h.
5913 [MAC_OS]: Include macterm.ch.
5914 (font_otf_ValueRecord): Use make_number.
5915 (font_finish_cache): Fix handling of reference count.
5916 (font_clear_cache): Update num_fonts.
5917 (font_open_entity): Update smallest_char_width and
5918 smallest_font_height of the frame.
5919 (font_close_object): Update num_fonts.
5920 (Fclear_font_cache): Fix finding the target cache data.
5921
be617367
GM
59222008-02-16 Glenn Morris <rgm@gnu.org>
5923
5924 * fontset.c (Finternal_char_font): Fix compilation warning.
5925
2930d117
EZ
59262008-02-16 Eli Zaretskii <eliz@gnu.org>
5927
634d3003
EZ
5928 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5929 instead of char arrays. Enlarge the size of array passed to
5930 get_token_information.
5931
2930d117
EZ
5932 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5933 warnings.
5934
79214046
DN
59352008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
5936
5937 * .gdbinit: Don't set `args', it breaks gdb --args.
5938
7f5d2c72
SM
59392008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
5940
5941 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5942 within a narrowed buffer.
5943
6edacc43
KH
59442008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
5945
b270d6af
JB
5946 * coding.c (decode_coding_object, encode_coding_object):
5947 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 5948
174105f7
SM
59492008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5950
b270d6af
JB
5951 * coding.c (coding_set_destination): Use BEG_BYTE rather than
5952 hardcoding 1.
13818c30
SM
5953 (detect_coding_system):
5954 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5955 (string_char_to_byte, string_byte_to_char, insert_from_gap):
5956 * insdel.c (insert_from_gap):
5957 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5958 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5959 (string_to_multibyte):
5960 * character.c (chars_in_text, multibyte_chars_in_text):
5961 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5962
f1c99628
SM
5963 * character.h (FETCH_STRING_CHAR_ADVANCE)
5964 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5965 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5966 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5967
7927d8e3
SM
5968 * casefiddle.c (casify_region): Only call after-change and composition
5969 functions on the part of the region that was changed.
5970
adf6a429 5971 * keyboard.c (read_avail_input):
174105f7
SM
5972 * frame.c (Fdelete_frame): Call Fdelete_terminal.
5973
3ee24aec
SM
59742008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5975
5976 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5977 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5978
4ed4b975
JB
59792008-02-11 Juanma Barranquero <lekktu@gmail.com>
5980
5981 * w32menu.c (push_submenu_start, push_submenu_end)
5982 (push_left_right_boundary, push_menu_pane, push_menu_item):
5983 * keyboard.c (read_key_sequence): Don't pass args with side effects
5984 to AREF, it fails when compiling with -DENABLE_CHECKING.
5985
79e3bfb8
KH
59862008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
5987
4ed4b975
JB
5988 * Makefile.in (${lispsource}international/charprop.el):
5989 Delete this target.
6e76043f 5990
79e3bfb8
KH
5991 * search.c (boyer_moore): Fix incorrect synching of the trunk and
5992 emacs-unicode-2.
5993
5b8de9c5
SM
59942008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5995
5996 * terminal.c (Fdelete_terminal): Clean up the `force' path.
5997
eac1939a
SM
59982008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5999
c53956fe
SM
6000 * frame.c (Qnoelisp): New symbol.
6001 (syms_of_frame): Initialize it.
6002 (Fdelete_frame): Use it to distinguish a mere `force' passed from
6003 someharmles Elisp code, from a strong `force' from x_connection_closed.
6004 * frame.h (Qnoelisp): Declare.
6005 * xterm.c (x_connection_closed): Pass `noelisp'.
6006
eac1939a
SM
6007 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
6008 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
6009 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
6010 rather than `int' for the type of `type'.
6011
13f6772b
DN
60122008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
6013
6014 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
6015
6016 * Makefile.in (GNUC): Remove support for gcc-1.x.
6017
e8455367
RS
60182008-02-10 Richard Stallman <rms@gnu.org>
6019
6020 * lisp.h (ASET): Use AREF, not ASLOT.
6021
4b75ffab
SM
60222008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6023
6024 * lisp.h (ASET): Check bounds.
6025
d224e8c2
GM
60262008-02-10 Glenn Morris <rgm@gnu.org>
6027
6028 * buffer.c (mode-name): Doc fix.
6029
4624371d
DN
60302008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6031
290afd83
JB
6032 * Makefile.in:
6033 * emacs.c:
6034 * gmalloc.c:
6035 * keyboard.c:
6036 * lisp.h:
6037 * m/ibm370aix.h:
6038 * process.c:
6039 * regex.c:
6040 * s/hpux.h:
6041 * sysdep.c:
6042 * sysselect.h:
6043 * systty.h:
6044 * unexec.c:
6045 * w32term.c:
6046 * xsmfns.c:
6047 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
6048
6049 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
6050
6051 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
6052 nothing else needs it anymore.
6053
274ec34b
EZ
60542008-02-09 Eli Zaretskii <eliz@gnu.org>
6055
6056 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
6057 instead of unibyte_char_to_multibyte.
6058
deeaffe1
DN
60592008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6060
6061 * s/gnu-linux.h: Remove commented out code.
6062
4ed4b975 6063 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
6064
6065 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 6066 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 6067 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
6068 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
6069 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
6070
68b587a6
SM
60712008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6072
9141ca5e
SM
6073 * keymap.c (Fkey_description): Move side effect outside of macro call.
6074
dfae5f9a 6075 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
6076 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
6077
ff7a2223
SM
6078 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
6079 (syms_of_fontset): Use ASET.
6080
68b587a6
SM
6081 * fns.c (concat): Move side effect outside of macro call.
6082 (hash_clear): Use ASET.
6083
a31787b1
RS
60842008-02-08 Richard Stallman <rms@gnu.org>
6085
6086 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
6087 If FORCE, and frame has a surrogate minibuffer for another frame,
6088 delete the other frame first.
6089
987be29b 60902008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
6091
6092 * xterm.c (x_detect_focus_change): Handle embed client message.
6093 (handle_one_xevent): Ditto.
6094 (handle_one_xevent): If embedded and we get a button press/release,
6095 request focus.
6096 (xembed_set_info, xembed_send_message): New functions.
6097 (x_make_frame_visible): Call xembed_set_info if embedded.
6098 (x_make_frame_invisible): Call xembed_set_info if embedded.
6099 (x_term_init): Initialize Xatom_XEMBED.
6100 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
6101 (x_iconify_frame): Ditto.
6102
6103 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
6104 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
6105 (enum xembed_modifier, enum xembed_accelerator): New.
6106 (xembed_set_info, xembed_send_message): Declare.
6107 (FRAME_X_EMBEDDED_P): New.
6108
6109 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
6110 gtk_plug_new.
6111
6112 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
6113 window ID of a frame.
6114 (x_window): Reparent frame if embedded.
6115 (Fx_create_frame): Don't set border width if embedded.
6116
1f204af3 6117 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
6118 (standard_args): Ditto.
6119
880820fe 61202008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
6121
6122 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
6123
92413ef3
JD
61242008-02-07 Jim Meyering <meyering@redhat.com>
6125
6f69e89b 6126 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
6127 The latter provokes a warning from gcc about the empty else, when
6128 followed by ";". Also, without that trailing semicolon, it would
6129 silently swallow up any following statement.
c3f9fba8 6130 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
6131 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
6132 * buffer.h (DECODE_POSITION): Likewise.
6133 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
6134 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
6135 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
6136 (FETCH_CHAR_ADVANCE): Likewise.
6137 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 6138
03fa5713
GM
61392008-02-07 Jim Meyering <meyering@redhat.com>
6140
6141 * lread.c [lint]: Don't include <sys/inode.h>.
6142
3ae565b3
SM
61432008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
6144
6145 * xselect.c (x_handle_dnd_message):
6146 * xmenu.c (digest_single_submenu, xmenu_show):
6147 * xdisp.c (with_echo_area_buffer_unwind_data)
6148 (format_mode_line_unwind_data, unwind_format_mode_line)
6149 (display_menu_bar):
6150 * eval.c (Ffetch_bytecode):
6151 * doc.c (store_function_docstring):
6152 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
6153 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
6154 * buffer.c (add_overlay_mod_hooklist): Use ASET.
6155
146b6e55
KH
61562008-02-07 Kenichi Handa <handa@m17n.org>
6157
6158 * ftxfont.c (ftxfont_open): Don't set
6159 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
6160
6161 * ftfont.c (ftfont_open): Fix previous change.
6162
46a923ac
JR
61632008-02-06 Jason Rumney <jasonr@gnu.org>
6164
6165 * w32font.c (w32font_text_extents): Fill in lbearing metric.
6166 Use cached metrics for ASCII characters.
3ae565b3
SM
6167 (w32font_open_internal): Don't set font's owning_frame.
6168 Cache metrics for ASCII characters.
46a923ac
JR
6169
6170 * w32font.h (struct w32font_info): Add ascii_metrics.
6171 Remove owning_frame.
6172
da7d7c21
KH
61732008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
6174
6175 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
6176 to negative value.
6177
6178 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
6179
3ae565b3 6180 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
6181
6182 * charset.c (syms_of_charset): Set QCtest and Qeq.
6183
c62c8ddb
SM
61842008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
6185
ca319910
SM
6186 * process.c (Fstart_process):
6187 * callproc.c (Fcall_process): Handle the case where
6188 Funhandled_file_name_directory returns nil.
6189
76860cbb
SM
6190 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
6191 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
6192 * font.c (check_gstring): Use them and AREF to access the vector before
6193 we know it's really a gstring.
6194 (Ffont_shape_text): Fix typo.
6195 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 6196
15139d67
SM
6197 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
6198 Declare.
6199
c62c8ddb
SM
6200 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
6201
04b65d2b
JR
62022008-02-05 Jason Rumney <jasonr@gnu.org>
6203
6204 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
6205 Set smallest_font_height and smallest_char_width in display info.
6206
fccaebfd
KH
62072008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
6208
6209 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
6210
e7d7fd8c
MB
62112008-02-05 Miles Bader <miles@gnu.org>
6212
6213 * xfaces.c (get_lface_attributes, merge_named_face)
6214 (lookup_named_face, lookup_derived_face, realize_named_face):
6215 Revert 2008-02-01 change by cyd@stupidchicken.com.
6216
3d4448a8
KH
62172008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
6218
6219 * fontset.c (Ffontset_info): Handle the case of inhibitting the
6220 fallback fonts.
15139d67 6221 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 6222
5ace1ec1
JR
62232008-02-04 Jason Rumney <jasonr@gnu.org>
6224
6225 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
6226 set full_name.
e3a77b22 6227 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 6228
ffe42183
JR
62292008-02-03 Jason Rumney <jasonr@gnu.org>
6230
6231 * makefile.w32-in (OBJ1): Include font.o here.
6232 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
6233
526dc3b3
JR
62342008-02-02 Jason Rumney <jasonr@gnu.org>
6235
a0fece35 6236 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 6237
af805c82
JR
62382008-02-01 Jason Rumney <jasonr@gnu.org>
6239
6240 * s/cygwin.h: Define VIRT_ADDR_VARIES.
6241
6242 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
6243
7f6519c5
AS
62442008-02-01 Andreas Schwab <schwab@suse.de>
6245
1f45f627 6246 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 6247 ../lisp/language/myanmar.el.
7f6519c5 6248
26f8aa27
CY
62492008-02-01 Chong Yidong <cyd@stupidchicken.com>
6250
1f45f627 6251 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
6252 (merge_named_face, lookup_named_face, lookup_derived_face)
6253 (realize_named_face): Call lface_from_face_name directly, and use
6254 the fact that merge_face_vectors does not alter its FROM argument.
6255
73acf815 62562008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6257
6258 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 6259 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 6260
73acf815 62612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6262
6263 * fontset.c (reorder_font_vector): Exclude nil elements from the
6264 font group. Don't try multiple fonts.
15139d67 6265 (fontset_font): Adjust for the above change.
aca7a3d2
MB
6266 (Finternal_char_font): Return nil if the found font doesn't
6267 contain the character ch.
6268
4c4475a8 6269 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 6270
73acf815 62712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6272
6273 * font.h (FONTP): Make it return 1 also for a font-object.
6274
6275 * .gdbinit (xfontset): New function.
6276
6277 * font.c (font_find_for_lface): Check if the character C is
6278 supported or not only for the first font.
6279
6280 * fontset.c (reorder_font_vector): Fix typo.
6281 (fontset_find_font): Don't add a font-spec specifying a script.
6282 Use 0 (not Qt) for the indication of empty font-group. Change the
6283 format of RFONT-DEF. Return Qt if no font in the font-group
6284 support the character.
15139d67 6285 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 6286 found the character, remember that.
15139d67 6287 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
6288 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
6289 no font for the target.
15139d67 6290 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 6291
73acf815 62922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6293
6294 * font.c (font_load_for_face): Handle the case that the font in
6295 face->lface is a string.
6296
73acf815 62972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6298
1f45f627 6299 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 6300
73acf815 63012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6302
6303 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
6304 Fix previous change. If the frame is not on a window system,
6305 signal an error.
6306
73acf815 63072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6308
4c4475a8
GM
6309 * coding.c (decode_coding_object, encode_coding_object): Adjust
6310 marker positions after conversion.
aca7a3d2
MB
6311
6312 * lisp.h (struct Lisp_Marker): New member need_adjustment.
6313
73acf815 63142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6315
6316 * font.c (font_find_for_lface): Fix the handling of the return
6317 value of font_has_char.
6318 (Ffont_shape_text): Fix previous change.
6319
6320 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
6321 (fontset_ref_and_range): Delete it.
6322 (fontset_find_font): Call char_table_ref_and_range instead of
6323 FONTSET_REF_AND_RANGE.
6324 (make_fontset): Don't setup font groups of Latin here.
6325 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
6326 (new_fontset_from_font): Make the specified font the default for
6327 all Latin characters.
6328
73acf815 63292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6330
6331 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
6332 is on a window system before accessing the fontset of the frame.
6333
73acf815 63342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6335
1f45f627 6336 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
6337
6338 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
6339 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
6340
6341 * font.c (Ffont_shape_text): If the font driver doesn't have a
6342 shaper function, make zero-width glyphs to have at least one-pixel
6343 width. Fix setting of `to' field of glyphs.
6344
73acf815 63452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6346
6347 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
6348 glyphs.
6349
1f45f627 6350 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 6351
73acf815 63522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6353
6354 * composite.c (syms_of_composite): Fix docstring of
6355 auto-composition-function.
6356
6357 * font.h (LGLYPH_SIZE): New macro.
6358
6359 * font.c (Ffont_fill_gstring): Stop filling when a character not
6360 supported by the font is found.
6361 (Ffont_shape_text): When a shape callback function returns nil,
6362 try at most two more times with larger gstring.
15139d67 6363 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
6364
6365 * xdisp.c (handle_auto_composed_prop): Change the argument to
6366 auto-composition-function.
6367
6368 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
6369 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
6370 Lispy glyph and store it in the lgstring.
6371
6372 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
6373
6374 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
6375
73acf815 63762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6377
6378 * font.c (Ffont_shape_text): Avoid unnecessary composition.
6379
6380 * fontset.c (Vfont_encoding_charset_alist): New variable.
6381 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
6382 (reorder_font_vector, fontset_find_font): Optimize for the case of
6383 no need of reordering.
aca7a3d2
MB
6384 (face_for_char): Map the charset property by
6385 Vfont_encoding_charset_alist.
6386
73acf815 63872008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6388
6389 * w32font.c (logfonts_match): Don't check adstyle here.
6390 (font_matches_spec): Check here against physical font instead.
6391 (add_font_entity_to_list): Avoid some substitutions.
6392
6393 * font.c (font_parse_fcname): Default weight and slant to normal.
6394 (font_score): Prefer normal fonts if weight or slant unspecified.
6395 (font_score) [WINDOWSNT]: Scale weight difference down to closer
6396 match freetype scores.
6397
73acf815 63982008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6399
6400 * w32font.c (w32font_text_extents): Don't use the frame stored in the
6401 font, as it may have been deleted.
6402 (w32_enumfont_pattern_entity): Map generic family to adstyle using
6403 most common hyphenless variation.
6404 (logfonts_match): Check generic family.
6405 (font_matches_spec): Don't check generic family here.
6406 (fill_in_logfont): Set generic family based on adstyle.
6407
6408 * w32font.h (w32font_get_cache): Update declaration.
6409
73acf815 64102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6411
6412 * ftfont.c (ftfont_get_cache): Adjust the argument type.
6413
15139d67 6414 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 6415 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
6416 with the old drivers.
6417
6418 * w32font.c (w32font_get_cache): Adjust the argument type.
6419
6420 * xfont.c (xfont_get_cache): Adjust the argument type.
6421
6422 * font.h (struct font_driver): Change argument type of get_cache.
6423
6424 * xftfont.c (xftfont_start_for_frame): Delete prototype.
6425
6426 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 6427 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 6428 (font_clear_cache): New function.
4c4475a8 6429 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 6430 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
6431
6432 * fontset.c (fontset_find_font): Fix previous change.
6433
73acf815 64342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6435
6436 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
6437 dpyinfo->font_table.
6438 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 6439 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
6440
6441 * font.c (font_at): Handle the case that the arg C is negative.
6442 Handle the unibyte case.
6443 (Ffont_at): Call font_at with the arg C -1.
6444
6445 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
6446 the position here, and call font_at with the arg C -1.
6447 Don't check the range of the existing composition at the point.
aca7a3d2 6448
73acf815 64492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6450
15139d67 6451 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 6452 Change caller.
4c4475a8
GM
6453 (load_font_get_repertory, fontset_find_font): Assume that
6454 font_spec is always a font-spec object.
aca7a3d2
MB
6455 (Fset_fontset_font): Always store a font-spec object in a fontset.
6456
6457 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
6458 instead of get_property_and_range.
6459
73acf815 64602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6461
6462 * xftfont.c (struct xftfont_info): Delete the member ft_face.
6463 (xftfont_open): Don't keep locking face.
6464 (xftfont_close): Don't unlock face.
4c4475a8 6465 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
6466
6467 * fontset.c (fontset_find_font): Don't prefer a font of
6468 supplementary charset.
6469
73acf815 64702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6471
1f45f627
GM
6472 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
6473 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
6474 (OTF_TAG_STR): Terminate by '\0'.
6475 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
6476 listing to the script specified in that property. Fix arg to
6477 OTF_check_features.
6478
73acf815 64792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6480
6481 * w32font.h: New file.
6482
6483 * w32font.c: Include it.
6484 (struct w32font_info): Add owning_frame field. Move to w32font.h.
6485 (w32font_open): Set owning_frame.
6486 (w32font_text_extents): Use owning_frame.
6487 (struct font_callback_data): Add opentype_only field.
6488 (add_font_entity_to_list): Use it to filter fonts.
6489 Don't check against full name.
6490 (w32font_list_internal): New function.
6491 (w32font_list): Use it.
6492 (w32font_match_internal): New function.
6493 (w32font_match): Use it.
6494 (w32font_open_internal): New function.
6495 (w32font_open): Use it.
6496 (w32font_get_cache, w32font_close, w32font_has_char)
6497 (w32font_encode_char, w32font_text_extents, w32font_draw):
6498 Make non-static.
6499
6500 * makefile.w32-in (w32font.o): Depend on w32font.h.
6501
73acf815 65022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6503
6504 * charset.c (Fdefine_charset_internal): Record a supplementary
6505 charset at the tail of Vcharset_order_list.
6506
6507 * font.c (Ffont_shape_text): Fix the return value.
6508
6509 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
6510
6511 * xdisp.c (handle_auto_composed_prop): Fix previous change.
6512
73acf815 65132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6514
6515 * ftfont.c (struct OpenTypeSpec): New struct.
6516 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
6517 (ftfont_get_open_type_spec): New function.
6518 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
6519
15139d67 6520 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 6521
73acf815 65222008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6523
6524 * w32font.c (add_font_entity_to_list): Compare only the beginning
6525 of full name.
6526
73acf815 65272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6528
15139d67
SM
6529 * xdisp.c (handle_auto_composed_prop): Simplify the code.
6530 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 6531
73acf815 65322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6533
6534 * font.c (font_gstring_produce): Delete it.
6535
15139d67
SM
6536 * composite.h (COMPOSITION_METHOD):
6537 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 6538
73acf815 65392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6540
15139d67 6541 * xfont.c (Qx): Delete.
aca7a3d2
MB
6542 (syms_of_xfont): Don't initialize Qx.
6543
15139d67
SM
6544 * composite.h (enum composition_method):
6545 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 6546
73acf815 65472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6548
6549 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
6550 (choose_face_font): Accept new form of font-spec.
6551
6552 * frame.h (font_driver_list): Declare it unconditionally.
6553 (struct frame): Define members font_driver_list and font_data_list
6554 unconditionally.
6555
6556 * fontset.c: Include "font.h" unconditionally.
15139d67 6557 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
6558 (Fset_fontset_font): Accept a font-spec object.
6559
6560 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
6561 PIXEL_SIZE part a wild card.
6562
6563 * dispextern.h (struct glyph_string): Define members clip and
6564 num_clips unconditionally.
6565 (struct face): Define members font_info and extra unconditionally.
6566
6567 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
6568 ftfont_info only when HAVE_LIBOTF is defined.
6569
73acf815 65702008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6571
6572 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
6573 and end.
6574
73acf815 65752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6576
6577 * w32font.c (w32font_driver): Add new fields.
6578
73acf815 65792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6580
aca7a3d2
MB
6581 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
6582 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
6583 (LIBES): Add @M17N_FLT_CFLAGS@.
6584
6585 * composite.c (compose_text): Don't treat the new style
6586 composition specially.
6587
6588 * emacs.c (main): Call syms_of_font unconditionally.
6589
6590 * font.h (FONT_ENTITY_NOT_LOADABLE)
6591 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 6592 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 6593 (struct font_driver): New member shape.
1f45f627 6594 (font_registry_charsets): Extern it.
4c4475a8 6595 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
6596 (font_otf_capability, font_drive_otf): Delete their externs.
6597
6598 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
6599 (font_charset_alist, font_registry_charsets): Move from xfont.c
6600 and rename.
aca7a3d2
MB
6601 (font_prop_validate_otf): New function.
6602 (font_property_table): Register it for QCotf.
6603 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 6604 (font_drive_otf): Delete.
1f45f627 6605 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
6606 lispy gstring.
6607 (font_find_for_lface): New arg C.
15139d67 6608 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
6609 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
6610 lispy gstring.
aca7a3d2
MB
6611 (Ffont_shape_text): New function.
6612 (Fopen_font): If the font size is not given, use 12-pixel.
6613 (Ffont_at): New arg STRING.
15139d67
SM
6614 (syms_of_font): Initalize font_charset_alist.
6615 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
6616 conditionally.
6617
6618 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
6619 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
6620 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
6621 Adjust for the change of RFONT-DEF.
15139d67 6622 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
6623
6624 * ftfont.h: New file.
6625
6626 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
6627 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6628 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6629 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
6630 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 6631 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
6632 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
6633 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
6634 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 6635 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
6636 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
6637 (otf_gstring, gstring, m17n_flt_initialized): New variables.
6638
15139d67
SM
6639 * w32term.c (x_draw_composite_glyph_string_foreground):
6640 Adjust for the change of lispy gstring.
aca7a3d2 6641
15139d67 6642 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 6643 lispy gstring. Call a function for auto-composition with the
15139d67
SM
6644 third arg it->window.
6645 (fill_composite_glyph_string): Adjust for the change of lispy string.
6646 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 6647
15139d67 6648 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6649 font_find_for_lface.
6650
1f45f627
GM
6651 * xfont.c (x_font_charset_alist): Move to font.c and rename.
6652 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
6653 (syms_of_xfont): Don't handle x_font_charset_alist.
6654
6655 * xftfont.c: Include "ftfont.h".
15139d67 6656 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
6657 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6658 (xftfont_close) [HAVE_LIBOTF]: Close otf.
6659 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
6660 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
6661 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 6662
15139d67 6663 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
6664 the change of lispy gstring.
6665
73acf815 66662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6667
6668 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
6669
73acf815 66702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6671
6672 * w32font.c (w32font_draw): Fill background manually.
6673
73acf815 66742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6675
6676 * font.c (Qfontp): Remove unused symbol.
6677 (QCantialias): New symbol.
6678 (syms_of_font): Define it.
6679 (font_property_table): Set a validator for QCantialias.
6680
15139d67
SM
6681 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
6682 Define if not already.
aca7a3d2
MB
6683 (QCfamily): Share with xfaces.c.
6684 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 6685 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
6686 (w32_antialias_type, lispy_antialias_type): New functions.
6687 (w32_enumfont_pattern_entity): New arg requested_font.
6688 Set antialias parameter if non-default was requested.
6689 (fill_in_logfont): Fill in lfQuality if :antialias specified.
6690
73acf815 66912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6692
6693 * lread.c (read1): Undo the previous change.
6694
73acf815 66952008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
6696
6697 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 6698 USE_FONT_BACKEND is defined.
aca7a3d2 6699
73acf815 67002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6701
6702 * font.h (struct font_bitmap): New member bits_per_pixel.
6703 (struct font_driver): New members start_for_frame and end_for_frame.
6704 (struct font_data_list): New struct.
6705 (font_put_frame_data, font_get_frame_data): Extern them.
6706
6707 * frame.h (struct frame): New member font_data_list.
6708
6709 * font.c (font_update_drivers): Call driver->start_for_frame and
6710 driver->end_for_frame at proper timings.
6711 (font_put_frame_data, font_get_frame_data): New functions.
6712 (Ffont_spec): Add usage in the docstring.
6713
6714 * frame.c (make_frame): Initialize f->font_data_list to NULL.
6715 (Fdelete_frame): Call font_update_drivers.
6716
6717 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 6718 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
6719 (xftfont_get_xft_draw): New function.
6720 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
6721 (xftfont_end_for_frame): New function.
6722 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
6723
15139d67 6724 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 6725 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
6726 (struct ftxfont_frame_data): New struct.
6727 (ftxfont_draw_bitmap): New arg gc_fore and flush.
6728 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 6729 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
6730 (ftxfont_end_for_frame): New function.
6731 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
6732
6733 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
6734
73acf815 67352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6736
6737 * xselect.c (Vselection_coding_system)
6738 (Vnext_selection_coding_system): Delete them.
6739 (syms_of_xselect): Don't declare selection-coding-system and
6740 next-selection-coding-system. They are declared in select.el.
6741
73acf815 67422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6743
6744 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
6745
6746 * w32fns.c: Include imm.h.
6747 (get_composition_string_fn, get_ime_context_fn): New optional
6748 system functions.
6749 (globals_of_w32fns): Load them from imm32.dll.
6750 (ignore_ime_char): New flag.
6751 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
6752 WM_IME_ENDCOMPOSITION messages.
6753
6754 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
6755 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
6756
73acf815 67572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6758
6759 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
6760 (READCHAR_REPORT_MULTIBYTE): New macro.
6761 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
6762 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
6763 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
6764 source.
6765
73acf815 67662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6767
6768 * xfaces.c (face_for_overlay_string): Call lookup_face with
6769 correct arguments (fix of synching with the trunk).
6770
73acf815 67712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6772
4c4475a8
GM
6773 * font.c (font_prop_validate_symbol, font_prop_validate_style)
6774 (font_prop_validate_non_neg, font_prop_validate_spacing):
6775 Delete argument prop_index.
15139d67
SM
6776 (font_property_table): Change arguments to validater. Change Callers.
6777 (font_lispy_object): Delete.
aca7a3d2
MB
6778 (font_at): Use font_find_object instead fo font_lispy_object.
6779
73acf815 67802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6781
6782 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
6783 and file names.
6784
73acf815 67852008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6786
6787 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
6788 (font_matches_spec): Remove debug output.
6789 (add_font_entity_to_list): Avoid using substituted fonts.
6790
73acf815 67912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6792
6793 * doc.c (Fsnarf_documentation):
6794 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
6795
73acf815 67962008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 6797
290afd83 6798 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
6799 HAVE_WINDOW_SYSTEM is defined.
6800
73acf815 68012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6802
6803 Fix up multi-tty merge.
6804
6805 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
6806 and indentation.
6807
6808 * xfaces.c (free_realized_face, clear_face_gcs):
6809 Include font_done_for_face in the input_blocked section, just in case.
6810
6811 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
6812 (get_char_face_and_encoding): Undo last change and remove the *other*
6813 duplicate definition (i.e. keep the one that's better scoped and that
6814 includes code for the font-backend).
6815
6816 * terminal.c (create_terminal): Default keyboard_coding to
6817 `no-conversion' and terminal_coding to `undecided'.
6818
6819 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
6820
6821 * fontset.c (free_realized_fontsets): Check that the table entry does
6822 contain a fontset before trying to compare it to `base'.
6823
6824 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
6825 syms_of_charset, and syms_of_coding earlier because init_window_once
6826 now needs Vcoding_system_hash_table to be setup.
6827
6828 * coding.h (default_buffer_file_coding): Remove.
6829
6830 * coding.c (default_buffer_file_coding): Remove.
6831 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
6832 than ->symbol, and use the terminal-local coding system.
6833 (syms_of_coding): Don't setup the coding-systems that are not
6834 terminal-local.
6835 (Fdefine_coding_system_internal): Use XCAR/XCDR.
6836
6837 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
6838 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
6839
6840 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
6841 in chartab.c and were re-added here by mistake.
6842 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
6843
6844 * doc.c (Fsnarf_documentation):
6845 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
6846 src to etc.
6847
6848 * ChangeLog.10: Add mistakenly removed entry.
6849
73acf815 68502008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
6851
6852 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
6853
73acf815 68542008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6855
6856 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
6857 Add extra args to FACE_FOR_CHAR.
6858
73acf815 68592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6860
6861 * keymap.c (where_is_internal_1): If key is a cons, store the copy
6862 in sequence.
6863
4c4475a8
GM
6864 * chartab.c (map_sub_char_table, map_char_table): If the range
6865 contains just one character, call the function with that character
6866 even if the depth is not 3.
aca7a3d2 6867
73acf815 68682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6869
6870 * w32font.c (w32font_text_extents): Calculate metrics for the
6871 whole string.
6872
73acf815 68732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6874
6875 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
6876
73acf815 68772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6878
6879 * w32term.c (x_set_glyph_string_clipping): Use
6880 get_glyph_string_clip_rects.
4c4475a8
GM
6881 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6882 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6883
6884 * w32font.c (w32font_draw): Do clipping here.
6885
73acf815 68862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6887
1f45f627 6888 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
6889 glyph_string.
6890
6891 * xterm.c (x_set_glyph_string_clipping): Use
6892 get_glyph_string_clip_rects.
4c4475a8
GM
6893 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6894 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6895
6896 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6897 the resulting clip(s}.
1f45f627 6898 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
6899 row->clip temporarily.
6900 (expose_window): Redraw rows overlapping the exposed area.
6901
6902 * dispextern.h (struct glyph_row): New member clip.
6903 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6904 clip_height, new member clip, and num_clips.
6905
73acf815 69062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6907
6908 * data.c (Fchar_or_string_p): Fix docstring.
6909
73acf815 69102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6911
6912 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6913 create a temporal XftDraw object.
6914
73acf815 69152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6916
6917 * font.c (Ffontp): Fix docstring.
6918
6919 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6920 strong evidence of ISO-2022.
6921
73acf815 69222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6923
6924 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6925 SYNTAX_ENTRY_FOLLOW_PARENT.
6926
73acf815 69272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6928
6929 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6930 its type.
6931 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6932 Update to the new type of weak_hash_tables and next_weak.
6933
6934 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6935 a plain C pointer to Lisp_Hash_Table.
6936
6937 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6938 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6939 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6940 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6941 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6942 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6943 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6944 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6945 (GC_EQ): Remove since they've been identical to their non-GC_
6946 alter-egos ever since the markbit was eradicated.
6947
290afd83
JB
6948 * alloc.c:
6949 * buffer.c:
6950 * buffer.h:
6951 * data.c:
6952 * fileio.c:
6953 * filelock.c:
6954 * fns.c:
6955 * frame.h:
6956 * lisp.h:
6957 * macterm.c:
6958 * print.c:
6959 * process.c:
6960 * w32fns.c:
6961 * w32menu.c:
6962 * w32term.c:
6963 * xfns.c:
6964 * xmenu.c:
6965 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 6966
73acf815 69672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6968
6969 * chartab.c (map_sub_char_table): Make it work for the top-level
6970 char-table. Fix handling of parent char-table.
c5ad7a3d 6971 (map_char_table): Adjust for the above change.
aca7a3d2 6972
73acf815 69732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6974
6975 * w32font.c (Qgdi): Rename from Qw32.
6976
73acf815 69772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6978
6979 * w32bdf.c (get_quoted_string): Make function static.
6980
73acf815 69812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6982
6983 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6984 bigger ascent and descent than those of the font, use them as
6985 font's ascent and descent.
6986
73acf815 69872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6988
6989 * Makefile.in (${lispsource}international/charprop.el): Move this
6990 target within "#ifdef HAVE_UNIDATA" and "#endif".
6991
73acf815 69922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6993
6994 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6995 (shortlisp): Add ../lisp/language/tai-viet.el.
6996
1f45f627 69972008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
6998
6999 * Makefile.in (${lispsource}international/charprop.el): Depend on
7000 temacs${EXEEXT}.
7001
73acf815 70022008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7003
7004 * w32font.c (w32font_close): Delete the GDI font object.
7005
6f69e89b 7006 * w32menu.c: Include character.h.
aca7a3d2
MB
7007
7008 * w32proc.c: Likewise.
7009
7010 * w32select.c: Likewise.
7011
6f69e89b 7012 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 7013
73acf815 70142008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7015
7016 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
7017
7018 * w32menu.c (syms_of_w32menu): Likewise.
7019
7020 * w32proc.c (syms_of_ntproc): Likewise.
7021
7022 * w32select.c (syms_of_w32select): Likewise.
7023
7024 * w32term.c (syms_of_w32term): Likewise.
7025
73acf815 70262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7027
7028 * w32font.c (w32font_draw): Delete brush after using it.
7029
73acf815 70302008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7031
7032 * w32font.c (w32font_open): Don't set font_idx.
7033 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
7034 to font settings.
7035 (w32font_draw): Fill background explicitly.
7036
73acf815 70372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7038
7039 * w32term.c (w32_initialize): Don't call w32font_initialize.
7040
7041 * w32font.c (w32font_info): Remove subranges.
7042 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
7043 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
7044 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
7045 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
7046 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
7047 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
7048 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
7049 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
7050 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
7051 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
7052 New symbols.
7053 (font_callback_data): New struct.
7054 (w32font_list, w32font_match): Use it.
7055 (w32font_open): Don't populate subranges.
7056 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
7057 (w32font_encode_char): Always return unicode code-point as-is.
7058 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
7059 GetGlyphOutline. Never look up by glyph index. Avoid looping
7060 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 7061 glyph index version.
1f204af3 7062 (set_fonts_frame): Remove.
aca7a3d2 7063 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
7064 set frame parameter. Use backward compatible fake foundries.
7065 Save generic family in extra slot under QCfamily. Make width slot
7066 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
7067 binary subranges.
7068 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 7069 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
7070 unwanted fonts.
7071 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
7072 (w32_registry): Default to iso10646_1.
7073 (fill_in_logfont): Use dpi from extra slot. Don't bother with
7074 string font registries. Don't fill in font name if it is a generic
7075 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
7076 extra info to fill pitch, family and charset fields.
7077 (list_all_matching_fonts): Use font_callback_data struct.
7078 (unicode_range_for_char): Remove.
7079 (font_supported_scripts): New function.
7080 (w32font_initialize): Remove.
7081 (syms_of_w32font): Update which symbols are defined.
7082
73acf815 70832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7084
7085 * font.c (font_pixel_size): Reverse assq_no_quit args.
7086
7087 * w32term.h (FONT_WIDTH): Report max width, not average.
7088 (FONT_MAX_WIDTH): Remove.
7089 (FONT_AVG_WIDTH): New macro.
7090
7091 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
7092 redefinition of FONT_WIDTH.
7093
7094 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
7095 (w32_cache_char_metrics): Use FONT_WIDTH.
7096
7097 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
7098
73acf815 70992008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7100
7101 * w32font.c (w32font_open): Make lfHeight negative.
7102
7103 * w32fns.c (x_default_font_parameter): Use new style font name.
7104 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
7105
73acf815 71062008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7107
7108 * w32font.c (QCsubranges): New symbol.
7109 (w32font_open, w32font_has_char): Get subranges from subproperty
7110 of extra.
7111 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
7112 (syms_of_w32font): Define :subranges symbol.
7113
7114 * font.c (font_put_extra): Expose externally.
7115
1f45f627 7116 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
7117
7118 * font.c (Ffont_get): Use font driver to determine otf capability.
7119 (adjust_anchor): Check if driver defines anchor_point before using.
7120
7121 * w32font.c (w32font_open): Handle size, height and pixel_size better.
7122 (w32font_draw): Use options.
7123 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
7124 Fix detection of truetype fonts.
7125 (registry_to_w32_charset): Handle charsets other than iso8859-1
7126 expressed as lisp symbols.
7127 (w32_registry): Express charset as lisp symbol.
7128 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 7129 Don't set width here. Set quality to default.
aca7a3d2
MB
7130
7131 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
7132 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
7133
7134 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7135 Remove redundant loop and allocation.
7136
7137 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 7138 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
7139 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
7140
7141 * xdisp.c (fill_composite_glyph_string): Make the first arg to
7142 STORE_XCHARB a valid l-value.
7143
7144 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
7145 calculations for non-Truetype fonts.
7146 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
7147 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7148 Remove redundant code.
aca7a3d2
MB
7149 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
7150
7151 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
7152 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
7153
7154 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
7155 (x_to_w32_charset, w32_to_x_charset): Expose externally.
7156
7157 * w32font.c: New file for w32 font backend.
7158
73acf815 71592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7160
7161 * term.c: Don't include "buffer.h" twice.
7162
73acf815 71632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7164
7165 * character.c (Funibyte_string): New function.
7166 (syms_of_character): Defsubr it.
7167
73acf815 71682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7169
7170 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
7171 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
7172 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
7173 (x_draw_glyph_string, x_draw_glyph_string_foreground)
7174 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
7175 (x_free_frame_resources): Sync with xterm.c.
7176
73acf815 71772008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7178
7179 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
7180 char-table size.
7181
73acf815 71822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7183
c3f9fba8 7184 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 7185
73acf815 71862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7187
7188 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
7189 font_otf_gpos, add font_drive_otf.
7190
7191 * fontset.c (fontset_find_font): Pay attention to font size
7192 specified for a font.
7193 (reorder_font_vector): Check contents of font_def.
7194
7195 * font.c (struct otf_list): Delete it.
6f69e89b 7196 (otf_list): Make it a lisp variable.
aca7a3d2 7197 (otf_open): Use lispy otf_list.
1f45f627 7198 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 7199 (check_otf_features): New function.
c3f9fba8
JB
7200 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7201 New functions.
aca7a3d2
MB
7202 (font_drive_otf): New function merging font_otf_gsub and
7203 font_otf_gpos.
7204 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 7205 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
7206 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
7207 Ffont_otf_gpos.
7208 (syms_of_font): Staticpro otf_list. Delete defsubr of
7209 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
7210
1f45f627 7211 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
7212 font_open_for_lface.
7213
7214 * font.h (font_open_for_lface): Adjust prototype.
7215 (struct font_driver): Delete members otf_gsub and otf_gpos, add
7216 member otf_drive.
7217 (font_otf_gsub, font_otf_gpos): Delete externs.
7218 (font_drive_otf): Extern it.
7219
73acf815 72202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7221
7222 * font.c (font_at): If the window W is not on a window system,
7223 return Qnil.
7224
4c4475a8
GM
7225 * coding.c (produce_chars, encode_coding): Don't call
7226 insert_from_gap if no characters to produce.
aca7a3d2 7227
73acf815 72282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7229
7230 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
7231 Fclear_face_cache.
7232
7233 * xfaces.c (face_for_font): Check also face->font==font->font.font.
7234
73acf815 72352008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7236
7237 * emacs.c (main): Change default value of `enable_font_backend' to 1.
7238 Parse "--disable-font-backend" option.
7239 (standard_args): Add "--disable-font-backend" option.
7240
73acf815 72412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7242
7243 * fontset.c (fontset_find_font): New function.
7244 (fontset_font): Use fontset_find_font.
7245 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
7246 Register the specified font for all Latin characters.
7247 (new_fontset_from_font): Register the specified font for all Latin
7248 characters.
7249 (dump_fontset): For a realized fontset, include the base fontset
7250 name in the returned vector.
7251
73acf815 72522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7253
7254 * character.h (CHAR_STRING): Cast C to unsigned on calling
7255 char_string.
7256
7257 * character.c (char_string): Type of arg C changed to unsigned.
7258 Signal an error if C is an invalid character code.
7259
4c4475a8
GM
7260 * editfns.c (general_insert_function, Fchar_to_string):
7261 Use CHARACTERP, not INTEGERP.
aca7a3d2 7262
73acf815 72632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7264
7265 * character.h (MIN_MULTIBYTE_LEADING_CODE)
7266 (MAX_MULTIBYTE_LEADING_CODE): New macros.
7267
7268 * regex.c (analyse_first): Fix for multibyte characters in "case
7269 charset:" and "case categoryspec:".
7270
73acf815 72712008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7272
7273 * Makefile.in (LIBES): Move standard libraries to the end.
7274
73acf815 72752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7276
7277 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
7278 nonzero, don't shrink the buffer nextb.
7279
7280 * buffer.h (struct buffer_text): New member inhibit_shrinking.
7281
7282 * coding.c (coding_alloc_by_making_gap): New arg offset.
7283 (alloc_destination): Call coding_alloc_by_making_gap with the arg
7284 offset.
7285 (decode_coding_iso_2022): Update coding->safe_charsets.
7286 (decode_coding_gap): Temporarily set
7287 current_buffer->text->inhibit_shrinking to 1.
7288
73acf815 72892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7290
7291 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
7292 indexing into elements of s->cmp and s->char2b.
7293
73acf815 72942008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
7295
7296 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
7297
73acf815 72982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7299
7300 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
7301 target_multibyte instead of multibyte.
7302 (re_match_2_internal): Call bcmp_translate with target_multibyte.
7303 (bcmp_translate): Change the argument name from multibyte to
7304 target_multibyte.
7305
73acf815 73062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7307
7308 These changes are to compile a regexp into a pattern that can be
7309 used both for multibyte and unibyte targets.
7310
7311 * Makefile.in (search.o): Depend on charset.h.
7312
7313 * character.c (multibyte_char_to_unibyte_safe): New function.
7314
7315 * search.c: Include "charset.h".
7316 (compile_pattern_1): Delete argument multibyte. Don't set
7317 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
7318 (compile_pattern): Don't compare cp->buf.target_multibyte.
7319 Compare cp->buf.charset_unibyte.
7320 (compile_pattern): Set cp->buf.target_multibyte.
7321
7322 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
7323
7324 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
7325
7326 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 7327 multibyte. Change callers.
aca7a3d2 7328 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
7329 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
7330 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
7331 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
7332 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
7333 (regex_compile): Make the compiled pattern usable both for
7334 multibyte and unibyte targets.
7335 (analyse_first): Make the fastmap usable both for multibyte and
7336 unibyte targets.
1f45f627 7337 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
7338 (re_match_2_internal): Pay attention to the case that the
7339 multibyteness of bufp and target may be different.
7340
73acf815 73412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7342
7343 * xdisp.c (x_produce_glyphs): When a font is not found, make the
7344 empty box occupy at least one column width.
7345
73acf815 73462008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7347
7348 * Makefile.in: Remove redundant HAVE_XFT clause.
7349
73acf815 73502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7351
7352 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
7353
73acf815 73542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7355
7356 * fontset.c (Finternal_char_font): Fix for the case of POSITION
7357 being nil.
7358
73acf815 73592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7360
7361 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
7362
73acf815 73632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7364
7365 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
7366
73acf815 73672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7368
7369 * search.c (simple_search): Fix previous change.
7370
73acf815 73712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7372
7373 * xftfont.c (ftfont_font_format): Extern declaration.
7374
7375 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
7376
7377 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
7378 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
7379
7380 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
7381 (ftfont_font_format): Fix previous change.
7382
7383 * font.h (Ffont_xlfd_name): EXFUN it.
7384
7385 * font.c (font_parse_xlfd): Fix the array size of `f'.
7386 (register_font_driver): Use EQ to compare driver->type.
7387
7388 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
7389 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
7390 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
7391
73acf815 73922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7393
4c4475a8
GM
7394 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
7395 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 7396
73acf815 73972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7398
7399 * xfont.c (xfont_open): Set font->format.
7400
7401 * xftfont.c (xftfont_open): Set font->format.
7402
7403 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
7404 (ftfont_list): Include FC_FONTFORMAT in FcObject.
7405 (ftfont_open): Set font->format.
7406 (ftfont_font_format): New function.
7407
7408 * font.h (struct font): New memeber format.
7409
7410 * font.c (Qopentype): New variable.
7411 (syms_of_font): Defsym it.
7412 (Fquery_font): Change the format of the last element of the return
7413 value.
7414
73acf815 74152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7416
7417 * xfns.c (xic_create_xfontset): Try the default fontset name as a
7418 last resort.
7419
73acf815 74202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7421
7422 * coding.c (detect_coding_charset): Fix detection of multi-byte
7423 charset.
7424
73acf815 74252008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
7426
7427 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
7428
73acf815 74292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7430
7431 * xdisp.c (get_next_display_element): Set it->face_id for the
7432 first component of a composition.
1f45f627 7433 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 7434
73acf815 74352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7436
7437 * fontset.c (Qlatin): New variable.
7438 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 7439 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 7440
73acf815 74412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7442
7443 * font.c (font_unparse_fcname): Pay attention to the case that
7444 some of font property is a null string.
7445
73acf815 74462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7447
7448 * term.c: Include "composite.h".
7449 (encode_terminal_code): Output all components of composition.
7450 Check the size of encode_terminal_src.
424c157f 7451 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
7452 (append_composite_glyph, produce_composite_glyph): New functions.
7453
7454 * xdisp.c (x_produce_glyphs): In handling composition, if a font
7455 is not found, get font_info from the current ascii face.
7456
73acf815 74572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7458
7459 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
7460 buffer-file-name to Qnil before calling insert_from_buffer.
7461
7462 * font.c (font_unparse_fcname): Pay attention to the case that
7463 foundry is a null string.
7464
73acf815 74652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7466
7467 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
7468
7469 * font.c (Qunicode_sip): New variable.
7470 (syms_of_font): Declare it as a Lisp symbol.
7471
7472 * font.h (Qunicode_sip): Extern it.
7473
73acf815 74742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7475
1f45f627 7476 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
7477
7478 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 7479 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
7480 the first elememnt of allocated memory.
7481
1f45f627 7482 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
7483
7484 * xdisp.c (handle_composition_prop): Set it->c to the first
7485 non-TAB component.
1f45f627
GM
7486 (fill_composite_glyph_string): Change argument.
7487 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
7488 (x_produce_glyphs): Fix handling of left/right padding.
7489
73acf815 74902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7491
7492 * coding.c (detect_coding_system): Fix for handling off
7493 inhibit_iso_escape_detection. Fix for the case that no coding
7494 system is defined for a specific coding category.
7495
73acf815 74962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7497
1f45f627 7498 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
7499
7500 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
7501 opening a font.
7502
7503 * fileio.c (Finsert_file_contents): On recovering a file, assume
7504 Unix-like eol.
7505 (choose_write_coding_system): On auto-saving a file, force
7506 Unix-like eol.
7507
7508 * coding.c (setup_coding_system): Fix setting of
7509 coding->common_flags based on eol_type.
7510 (coding_inherit_eol_type): If PARENT is not nil, be sure to
7511 inherit from it.
7512
73acf815 75132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7514
1f45f627 7515 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 7516
73acf815 75172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7518
1f45f627 7519 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
7520 (ftfont_list): Don't check :name property.
7521 (ftfont_match): New function.
7522 (ftfont_pattern_entity): If the pattern doesn't contain
7523 FC_SPACING, don't assuce FC_MONO.
7524
7525 * font.h (struct font_driver): New member `match'.
1f45f627 7526 (font_update_drivers): Adjust prototype.
aca7a3d2 7527
4c4475a8
GM
7528 * font.c (font_parse_fcname, font_parse_name): Don't change :name
7529 property of FONT.
aca7a3d2
MB
7530 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
7531 them unconditionally.
7532 (font_matching_entity): New function.
7533 (font_open_by_name): Try font_matching_entity if exact match is
7534 not found.
7535 (font_update_drivers): Delete the arg FONT. Return a list of
7536 actually used backends. Don't free faces, font caches here.
7537 Don't store data in frame parameters. Don't call x_set_font.
7538 (Ffont_spec): Store :name property as is.
7539 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
7540 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
7541 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
7542 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
7543 Call font->driver->otf_gsub instead of font_otf_gsub.
7544
7545 * frame.c (x_set_font_backend): Do more works that were done in
7546 font_update_drivers before.
7547
7548 * xfont.c (xfont_match): New function.
7549 (xfont_driver): Set xfont_driver.match to xfont_match.
7550 (xfont_draw): Set font in GC if necessary.
7551
7552 * ftxfont.c (ftxfont_match): New function.
7553 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
7554
7555 * xftfont.c (xftfont_match): New function.
7556 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
7557
73acf815 75582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7559
7560 * font.h (struct font): New member scalable.
7561 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 7562 (font_otf_gsub): Adjust prototype.
aca7a3d2 7563
1f45f627
GM
7564 * font.c (font_otf_capability): Fix handling of the default langsys.
7565 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
7566 Check the contents of SPEC.
7567 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
7568 (check_gstring): New function.
7569 (REPLACEMENT_CHARACTER): New macro.
7570 (font_otf_gsub): New arg alternate_subst. Be sure to set all
7571 glyph codes of GSTRING.
7572 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
7573 (font_prepare_composition): Set cmp->glyph_len.
7574 (font_open_entity): Set font->scalable.
7575 (Ffont_get): Handle :otf property.
7576 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
7577 functions.
7578 (Fquery_font): Use font->font.full_name.
7579 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
7580 Sfont_otf_alternates.
7581
7582 * ftfont.c (ftfont_open): Set font->font.full_name and
7583 font->font.name properly. Fix calculation of font->font.height
7584 and font->min_width.
7585
7586 * ftxfont.c (ftxfont_create_gcs): New function.
7587 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
7588 (ftxfont_draw_backgrond): Fix filling region.
7589 (ftxfont_default_fid): New function.
7590 (ftxfont_open): Set xfotn->fid to the return value of
7591 ftxfont_default_fid.
7592 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
7593 (ftxfont_done_face): Free only GCs that are created by
7594 ftxfont_create_gcs.
7595 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
7596
7597 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
7598 Clip to src->width, etc (not src->clip_XXX).
7599
7600 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
7601 FontBackend frame parameter.
7602
73acf815 76032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7604
7605 * font.h (struct font_driver_list): New member `on'.
7606 (Fclear_font_cache): EXFUN it.
7607 (font_update_drivers): Extern it.
7608
7609 * font.c (font_unparse_fcname): Fix typo (swidth->width).
7610 (font_list_entities): Check driver_list->on.
7611 (register_font_driver): Initalize `on' member to 0.
7612 (font_update_drivers): New function.
7613 (Fclear_font_cache): Check driver_list->on.
7614
7615 * frame.h (Qfont_backend): Extern it.
7616 (x_set_font_backend): Extern it.
7617
7618 * frame.c (Qfont_backend): New variable.
7619 (frame_parms): New element for font-backend.
7620 (x_set_font_backend): New function.
7621
7622 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
7623 FontBackend frame parameter.
7624 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
7625 x_set_font_backend.
7626
7627 * xfont.c (xfont_list): Don't try listing by :name property if the
7628 name is not for XLFD.
7629
73acf815 76302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7631
7632 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
7633 (LGLYPH_SET_TO): New macros.
7634 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
7635 element of G is vector or not.
7636 (font_at): Extern it.
7637
7638 * font.c: Include window.h.
7639 (font_lispy_object): New function.
7640 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
7641 end of valid glyph.
7642 (font_close_object): Fix getting (struct font *).
7643 (font_at): New function.
7644 (Ffont_get): If FONT is a font-object, get entity from it.
7645 (Ffont_make_gstring): Initialize elements of glyphs with nil.
7646 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
7647 range check.
7648 (Ffont_at): New function.
7649 (syms_of_font): Defsubr Sfont_at.
7650
7651 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 7652 before the entry for Qcomposition.
1f45f627 7653 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
7654 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
7655 the font in gstring.
7656 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
7657 LGLYPH_FORM (g) to detect the end of valid glyph.
7658 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
7659 we are composing with gstring.
7660
7661 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
7662 Check if adjustment is vector or not.
7663
7664 * Makefile.in (font.o): Make it depends on window.h.
7665
73acf815 76662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7667
7668 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
7669 adjustment is vector or not.
7670
73acf815 76712008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7672
7673 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
7674
73acf815 76752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7676
7677 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
7678 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
7679 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
7680
1f45f627 7681 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 7682 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
7683 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
7684 LGLYPH format.
aca7a3d2 7685
1f45f627 7686 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
7687 the change of LGLYPH format.
7688
73acf815 76892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7690
7691 * ftfont.c (ftfont_list): Fix typo.
1f45f627 7692 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 7693
880820fe 76942008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7695
7696 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
7697
7698 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
7699 xftface_info is non-NULL.
7700
880820fe 77012008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 7702
1f45f627 7703 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 7704
73acf815 77052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7706
7707 * ftfont.c (ftfont_list): Pay attention to the case that
7708 FC_CAPABILITY is not defined.
7709
73acf815 77102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7711
7712 * xftfont.c (xftfont_open): Set charset related members to -1.
7713
1f45f627
GM
7714 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
7715 QCname.
aca7a3d2
MB
7716 (ftfont_open): Set charset related members to -1.
7717
7718 * fontset.c (Votf_script_alist): New variable.
7719 (syms_of_fontset): Initialize it.
7720 (fontset_font): Delete unused variable.
7721
7722 * fontset.h (Votf_script_alist): Extern it.
7723
1f45f627 7724 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
7725
7726 * font.h (font_close_object, font_merge_old_spec): Extern them.
7727
73acf815 77282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7729
7730 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
7731 (syms_of_font): Initialize them.
7732 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
7733 (font_prop_validate_type): Delete.
7734 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
7735 Change caller.
7736 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
7737 (font_prop_validate_extra): Delete.
aca7a3d2
MB
7738 (font_prop_validate_spacing): New function.
7739 (font_property_table): Add elements for all known properties.
1f45f627
GM
7740 (get_font_prop_index): Rename from check_font_prop_name. New
7741 argument FROM. Change caller.
aca7a3d2 7742 (font_prop_validate): Validate all known properties.
1f45f627 7743 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
7744 (font_expand_wildcards): Make it static. Fix the way of shrinking
7745 the possible range.
1f45f627 7746 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 7747 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 7748 Change caller.
aca7a3d2 7749 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
7750 (font_parse_fcname): Delete argument merge. Fix parsing of point
7751 size. Don't validate properties values here. Change caller.
7752 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
7753 (font_open_by_name): Delete unused variable.
7754 (Ffont_spec): Likewise. Validate property values.
7755 (Ffont_match_p): New function.
7756
7757 * font.h (QCscalable): Extern it.
1f45f627 7758 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 7759
1f45f627 7760 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 7761
1f45f627 7762 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
7763 (xfont_list_pattern): New function.
7764 (xfont_list): Use xfont_list_pattern.
7765
73acf815 77662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7767
7768 * font.h (Flist_fonts): EXFUN it.
7769
73acf815 77702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7771
7772 * w32term.c (w32_initialize): Add back smoothing_type and
7773 smoothing_enabled definitions.
7774
73acf815 77752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7776
7777 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
7778 s->face->font on determining underline position.
7779
73acf815 77802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7781
7782 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
7783 (font_has_char): Accept font-object too.
7784 (font_find_for_lface): Try at first with a size specified in face.
7785
73acf815 77862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7787
7788 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
7789 font_open_by_name.
7790
73acf815 77912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7792
7793 * font.h (QCspacing, QCdpi): Extern them.
7794 (enum font_spacing): New enum.
7795 (FONT_PIXEL_SIZE_QUANTUM): New macro.
7796
7797 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
7798 (QCspacing, QCdpi): New variables.
7799 (syms_of_font): Initialize them.
7800 (font_pixel_size): New function.
7801 (font_put_extra): New function.
7802 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
7803 in FONT_EXTRA.
e9184ccb
JB
7804 (font_parse_fcname): Handle enumenrated values (e.g. bold).
7805 Fix handling font size. Add QCname property that contains only
aca7a3d2 7806 unknown properties.
1f45f627 7807 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 7808 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
7809 (font_sort_entites, font_list_entities, font_find_for_lface)
7810 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 7811 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
7812
7813 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
7814 include weight in listing pattern, instead check weight of each
7815 listed font. Don't include scalable in pattern. Pay attention to
7816 FONT_PIXEL_SIZE_QUANTUM.
7817
73acf815 78182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7819
aca7a3d2 7820 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 7821 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
7822 (font_list_entities): Handle float size correctly.
7823 (font_open_by_name): Prefer `normal' property values if the name
7824 doesn't specify them.
7825
7826 * fontset.c (Finternal_char_font): Use font_get_name, not
7827 Ffont_xlfd_name.
7828
7829 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
7830 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
7831 pattern. Don't force scalable.
7832
7833 * xftfont.c (xftfont_open): For generating a name, start from
7834 96-byte buffer.
7835
880820fe 78362008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7837
7838 * frame.h (x_new_fontset2): Fix prototype.
7839
73acf815 78402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7841
1f45f627 7842 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
7843 (font_match_p, font_get_spec, font_parse_fcname)
7844 (font_unparse_fcname): Extern them.
1f45f627 7845 (font_get_name): Adjust prototype.
aca7a3d2
MB
7846
7847 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
7848 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
7849 (font_expand_wildcards): Fix handling ENCODING field. Avoid
7850 unnecessary checks for weight, slant, and swidth.
7851 (font_parse_fcname): New function.
7852 (font_unparse_fcname): New function.
7853 (font_parse_name): New function.
7854 (font_match_p): New function.
1f45f627 7855 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
7856 (font_get_spec): New function.
7857 (Qunspecified, Qignore_defface): Don't extern them.
7858 (font_find_for_lface): Assume that LFACE is fully specified.
7859 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
7860 object, use it for FACE.
7861 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
7862 driver->parse_name.
7863 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
7864
1f45f627
GM
7865 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
7866 prototype.
aca7a3d2 7867
1f45f627
GM
7868 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
7869 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
7870 make_fontset.
7871
1f45f627 7872 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 7873
1f45f627 7874 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
7875 of x_new_fontset2.
7876
7877 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
7878 (Qsans__serif): New variables.
7879 (ftfont_generic_family_list): New variable.
7880 (syms_of_ftfont): Initialize the above variables.
1f45f627 7881 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
7882 (ftfont_list_generic_family): New function.
7883 (ftfont_parse_name): Delete this function.
1f45f627 7884 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
7885 (ftfont_list_family): Fix args to FcObjectSetBuild.
7886
7887 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7888 object in attrs[LFACE_FONT_INDEX].
7889 (set_lface_from_font_name): Cancel all changes for font-backend.
7890 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7891 function.
7892 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7893 font object in QCfont attribute.
7894 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7895 (realize_default_face) [USE_FONT_BACKEND]: Call
7896 set_lface_from_font_and_fontset.
7897
7898 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7899 "fixed", and signal error here if no suitable font was found.
7900
7901 * xfont.c (xfont_parse_name): Delete this function.
7902
7903 * xftfont.c (xftfont_open): Change coding style of error
7904 handling. Generate fontconfig's fontname pattern.
7905
7906 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7907 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7908
7909 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7910 Both args FONTSET and FONT_OBJECT must be existing ones.
7911
73acf815 79122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7913
7914 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7915
73acf815 79162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7917
7918 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7919
7920 * font.h (struct font): Fix typo.
7921
7922 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7923 XLFD_XXX_INDEX.
7924 (enum xlfd_field_mask): New enum.
1f45f627 7925 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
7926 are followed by non-digits, return a symbol.
7927 (font_expand_wildcards): New function.
7928 (font_parse_xlfd): Fix wildcard handling.
7929 (Ffont_spec): If :name is specified, reflect the info in the other
7930 properties.
7931
7932 * ftfont.c (ftfont_pattern_entity): Fix typo.
7933 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7934 locale.
7935
73acf815 79362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7937
7938 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7939
1f45f627 7940 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
7941 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
7942 registry doesn't specify encoding part.
7943 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7944 (font_open_by_name): At first try parsing the name.
7945 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7946 as Lisp symbols.
7947
7948 * fontset.c (reorder_font_vector): Pay attention to the case that
7949 the 3rd element of font_def is nil.
7950 (fontset_font): For the default fontset, append one more fontset
7951 elements for a script-based font specification. Don't add script
7952 attribute on finding a font.
7953 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7954 font name.
7955 (fontset_ascii_font): If a font can't be opened, return nil.
7956
1f45f627 7957 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
7958 (ftfont_pattern_entity): New function.
7959 (ftfont_get_cache): Assume that freetype_font_cache is already
7960 initialized.
7961 (ftfont_list): Handle the case that a file is specified in font
7962 name. Use ftfont_pattern_entity to generate entities.
7963 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7964 (syms_of_ftfont): Initialize freetype_font_cache.
7965
7966 * xftfont.c (xftfont_open): Make the font name fontconfig's
7967 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
7968 (xftfont_close): Free font->font.name if not NULL.
7969
7970 * xfont.c (xfont_list): If script is specified for a font, return
7971 null_vector.
7972 (xfont_list_family): Declare argument type.
7973
7974 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7975 name, set LFACE_FONT (lface) to nil.
7976
7977 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7978 return Qnil.
7979
73acf815 79802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7981
1f45f627 7982 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
7983 (standard_args): Add "-enable-font-backend".
7984
73acf815 79852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7986
7987 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7988 (struct xftdraw_list, xftdraw_list): Delete them.
7989 (register_xftdraw, check_xftdraw): Delete them.
7990 (xftfont_prepare_face): Don't call register_xftdraw.
7991 (xftfont_done_face): Don't call check_xftdraw.
7992 (xftfont_draw): Get backroudn color only when with_background is
7993 nonzero.
7994
7995 * xfont.c (xfont_encode_char): Fix calculation of char2b.
7996
73acf815 79972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7998
7999 These changes are for the new font handling codes.
8000
8001 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
8002 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
8003 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
8004 (FONTSRC, FONTOBJ): New variables.
8005 (obj): Add $(FONTOBJ).
8006 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
8007 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
8008 @LIBOTF_LIBS@.
8009 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 8010 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 8011
1f45f627 8012 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
8013
8014 * character.h (Vscript_representative_chars): Extern it.
8015
8016 * character.c (Vscript_representative_chars): New variable.
8017 (syms_of_character): Declare it as a Lisp variable.
8018
8019 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
8020 enable_font_backend is nonzero, accept the composition method
8021 COMPOSITION_WITH_GLYPH_STRING.
8022
8023 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
8024 enumeration COMPOSITION_WITH_GLYPH_STRING.
8025
aca7a3d2
MB
8026 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
8027 members clip_x, clip_y, clip_width, and clip_height.
8028 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
8029
8030 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
8031 --enable-font-backend. Call syms_of_font.
8032
8033 * fns.c (assoc_no_quit): New function.
8034
8035 * fontset.h (FONT_INFO_FROM_FACE): New macro.
8036 (face_for_font, new_fontset_from_font)
8037 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
8038
8039 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
8040 (fontset_font, fontset_ascii, face_for_char)
8041 (make_fontset_for_ascii_face, Ffont_info)
8042 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
8043 is nonzero, use font-backend mechanism.
8044 (find_font_encoding): Make it non-static.
8045 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
8046 New functions.
8047
8048 * frame.h (struct frame): New members resx and resy.
8049 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
8050 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
8051
8052 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 8053 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
8054
8055 * lisp.h (assoc_no_quit): Extern it.
8056
8057 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
8058 Through out the file, use FONT_INFO_FROM_FACE instead of
8059 FONT_INFO_FROM_ID, use get_per_char_metric instead of
8060 rif->per_char_metric.
8061 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
8062 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
8063 (get_glyph_face_and_encoding, fill_composite_glyph_string)
8064 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8065 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
8066 nonzero, use font-backend mechanism.
8067 (get_per_char_metric): New function.
8068
8069 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
8070 (set_lface_from_font_name)
8071 (set_font_frame_param, free_realized_face)
8072 (prepare_face_for_display, clear_face_gcs)
8073 (Finternal_set_font_selection_order, realize_x_face)
8074 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
8075 font-backend mechanism.
1f45f627 8076 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
8077 (load_face_font) [USE_FONT_BACKEND]: Abort.
8078 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 8079 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
8080
8081 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
8082 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
8083 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
8084 nonzero, register all available font drivers. Call
8085 x_default_font_parameter for deciding a font.
8086 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
8087
8088 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
8089 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
8090 (x_set_glyph_string_clipping_exactly)
8091 (x_compute_glyph_string_overhangs)
8092 (x_draw_glyph_string_foreground)
8093 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
8094 (x_free_frame_resources) [USE_FONT_BACKEND]: If
8095 enable_font_backend is nonzero, use font-backend mechanism.
8096 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
8097
73acf815 80982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8099
fcb314b2 8100 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
8101 system_eol_type.
8102 (syms_of_coding): Initialize system_eol_type.
8103
fcb314b2
GM
8104 * process.c (Fset_process_coding_system): Inherit system's eol
8105 format if necessary.
aca7a3d2 8106
73acf815 81072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8108
8109 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
8110
73acf815 81112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8112
8113 * coding.c (decode_eol): Pay attention to buffer relocation in
8114 del_range_2.
8115 (decode_coding): Call decode_eol before restoring undo_list.
8116
73acf815 81172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8118
8119 * charset.c (Fdefine_charset_internal): Fix setting of
8120 emacs_mule_bytes.
8121
73acf815 81222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8123
8124 * keyboard.c (read_char): Check if C is a character or not before
8125 looking up Vkeyboard_translate_table.
8126
73acf815 81272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8128
8129 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
8130 condition to terminate the loop.
8131
73acf815 81322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8133
8134 * coding.c (produce_composition): Compare charbuf[i] instead of
8135 args[i] against 0.
8136 (Fterminal_coding_system): Use EQ to compare Lisp objects.
8137
73acf815 81382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8139
8140 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
8141 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
8142 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
8143 detect_coding.
8144 (emacs_mule_char): Handle old style (Emacs 20) component character
8145 of a composition.
4c4475a8
GM
8146 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
8147 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
8148 composition rule.
aca7a3d2
MB
8149 (decode_coding_emacs_mule): Handle invalid bytes correctly.
8150
73acf815 81512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8152
8153 * coding.c (encode_coding_ccl): Allocate destination dynamically
8154 when necessary.
8155
73acf815 81562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8157
8158 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
8159 the loop. When quitted, show a proper error message.
8160
73acf815 81612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8162
aca7a3d2
MB
8163 * xterm.c (x_set_glyph_string_clipping_exactly): Set
8164 src->clip_head and src->clip_tail temporarily instead of src->hl.
8165
8166 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
8167 character sequence.
8168 (Fccl_execute_on_string): Use ASET, not XSET.
8169
73acf815 81702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8171
1f45f627 8172 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 8173
73acf815 81742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8175
8176 * coding.c (decode_coding): Fix the condition of terminating the
8177 decoding loop.
8178
73acf815 81792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8180
8181 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 8182 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 8183
73acf815 81842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8185
8186 * charset.c (map_charset_chars): Fix for ascii-compatible charset
8187 made by a mapping table.
8188
73acf815 81892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8190
8191 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
8192 not.
8193 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
8194 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
8195
8196 * xterm.c (x_draw_composite_glyph_string_foreground): Check
8197 s->face is NULL or not.
8198
73acf815 81992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8200
8201 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
8202 (x_draw_glyph_string): Fix drawing of right_overhang and
8203 left_overhang around/on cursor.
8204
1f45f627 8205 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 8206
73acf815 82072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8208
8209 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
8210
73acf815 82112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8212
4c4475a8
GM
8213 * coding.c (Fdefine_coding_system_internal)
8214 (Fdefine_coding_system_alias): Avoid a duplicated element in
8215 Vcoding_system_alist.
aca7a3d2 8216
73acf815 82172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8218
8219 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
8220
fcb314b2 8221 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
8222 (syms_of_coding): Intern and staticpro it.
8223 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 8224 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
8225
8226 * coding.h (CODING_SYSTEM_P): If ID is not available, call
8227 Fcoding_system_p.
8228 (CHECK_CODING_SYSTEM): If ID is not available, call
8229 Fcheck_coding_system.
4c4475a8
GM
8230 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
8231 Try also Fcheck_coding_system.
aca7a3d2 8232
73acf815 82332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8234
aca7a3d2
MB
8235 * coding.c (code_conversion_restore): GCPRO arg.
8236
73acf815 82372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8238
8239 * character.c (lisp_string_width): Check multibyteness of STRING.
8240
73acf815 82412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8242
8243 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
8244 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
8245 (decode_mac_font_name): Use decode_coding_c_string instead of
8246 decode_coding.
8247 (x_load_font): Initialize fontp->fontset to -1. Set
8248 fontp->encoding_type.
8249
73acf815 82502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8251
8252 * search.c (search_buffer): Give up BM search on case-fold-search
8253 if one of a target character has a case-equivalence of different
8254 byte length even if that target charcter is an ASCII.
1f45f627
GM
8255 (simple_search): Fix calculation of byte length of matched text.
8256 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 8257
73acf815 82582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8259
8260 * coding.c (decode_coding): Fix handling of invalid bytes.
8261
73acf815 82622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8263
8264 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8265 Unicode characters.
8266
73acf815 82672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8268
8269 * coding.c (encode_coding_object): If a pre-write-conversion
8270 function makes a new buffer, kill it.
8271
73acf815 82722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8273
8274 * coding.c (QCascii_compatible_p): New variable.
8275 (syms_of_coding): Initialize it.
4c4475a8
GM
8276 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
8277 calling string_char.
aca7a3d2
MB
8278 (record_conversion_result): Add `default:' case.
8279 (coding_charset_list): Delete unused variable `coding_type'.
8280 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
8281 property in the plist of the coding system.
8282 (Fcoding_system_put): Check QCascii_compatible_p.
8283
73acf815 82842008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
8285
8286 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
8287 removed calculation of frame `f', as it's now used.
8288
73acf815 82892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8290
1f45f627 8291 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
8292 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
8293 (UNIDATA): New variable.
8294 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
8295 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
8296 $(RUN_TEMACS) unconditionally.
8297
73acf815 82982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8299
1f45f627 8300 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
8301 (admindir): New variable.
8302 ($(lispsource)international/charprop.el): New target.
8303
73acf815 83042008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 8305
1f45f627 8306 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
8307 (syms_of_character): Remove its initialization.
8308
73acf815 83092008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
8310
8311 * w32select.c (validate_coding_system)
8312 (setup_windows_coding_system): New functions.
8313 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
8314 setup_windows_coding_system.
8315 (setup_config, Fw32_get_clipboard_data): Use
8316 validate_coding_system.
8317 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 8318 where signals are allowed.
aca7a3d2
MB
8319
8320 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
8321 (Fcheck_coding_system): Add declarations.
8322
73acf815 83232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8324
1f45f627 8325 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 8326
73acf815 83272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8328
8329 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
8330 string as the second argument for x_new_fontset.
8331
73acf815 83322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8333
8334 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
8335 (encode_coding_object): Use safe_call instead of call2.
8336
73acf815 83372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8338
1f45f627 8339 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
8340
8341 * Makefile.in (lisp): Include charprop.el.
8342
73acf815 83432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8344
8345 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
8346 Not sure if it's unnecessary.
8347
73acf815 83482008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8349
8350 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
8351 some possibly unnecessary fontset checking code that crashed
1f45f627 8352 when creating a new frame.
aca7a3d2 8353
73acf815 83542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8355
8356 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
8357 lookup_face.
8358
8359 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
8360
1f45f627 8361 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 8362
73acf815 83632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8364
73acf815 8365 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
8366 (coding_charset_list): New function.
8367
8368 * coding.h (coding_charset_list): Extern it.
8369
73acf815 83702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8371
8372 * fontset.c (Fset_fontset_font): Call find_font_encoding with
8373 concatenation of family and registry.
8374
73acf815 83752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8376
8377 * character.h (BYTE8_STRING): Fix typo.
8378
8379 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
8380 string to multibyte (sync to HEAD).
8381
8382 * casefiddle.c (casify_region): Handle changes in byte-length
8383 using replace_range_2 (sync to HEAD).
8384
73acf815 83852008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8386
8387 * chartab.c (map_char_table): GCPRO table and arg.
8388
73acf815 83892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8390
8391 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
8392 already at limit.
8393
73acf815 83942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8395
8396 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
8397 instead of fast_c_string_match_ignore_case.
1f45f627 8398 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 8399 fast_string_match_ignore_case instead of
1f45f627 8400 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 8401
73acf815 84022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8403
8404 * xdisp.c (get_next_display_element): In unibyte case, decide to
8405 display in octal form by checking a chacter by
8406 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
8407
1f45f627 8408 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
8409
8410 * character.c (unibyte_has_multibyte_table): New variable.
8411
8412 * character.h (unibyte_has_multibyte_table): Extern it.
8413 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
8414
73acf815 84152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8416
8417 * coding.c (encode_coding_iso_2022): Fix handling of charset
8418 annotation.
8419
73acf815 84202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8421
8422 * coding.c (setup_coding_system): If coding_system is nil, use
8423 Qundecided.
8424 (Fterminal_coding_system): Return nil if terminal coding system is
8425 `undecided'.
8426 (syms_of_coding): Define coding-system `undecided' here. Setup
8427 terminal_coding as `undecided'.
8428
73acf815 84292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8430
8431 * xdisp.c (message_dolog, set_message_1): Call
8432 unibyte_char_to_multibyte with arg type int.
8433
aca7a3d2
MB
8434 * lread.c (read1): Fix reading of a char-table.
8435
8436 * print.c (print_object): Include sub char-table in cicularities
8437 detection.
8438
73acf815 84392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8440
8441 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 8442 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 8443
73acf815 84442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8445
8446 * fileio.c (report_file_error): Make a unibyte string from
8447 strerror (errorno).
8448 (Fsubstitute_in_file_name): Fix the arg to
8449 unibyte_char_to_multibyte. It is evaluated twice.
8450
73acf815 84512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8452
8453 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
8454
73acf815 84552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8456
8457 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
8458 BOM is not found.
4c4475a8
GM
8459 (detect_coding, detect_coding_system): Optimization for ISO-2022
8460 when no 8-bit data is found.
aca7a3d2 8461
73acf815 84622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8463
8464 * w32fns.c (x_to_w32_font): Update to use new coding struct.
8465
73acf815 84662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8467
4c4475a8
GM
8468 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
8469 CHARS.
aca7a3d2 8470
73acf815 84712008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8472
8473 * macterm.c (mac_encode_char): Add charset argument and update
8474 to use encoding_type.
2a2e8de7 8475 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
8476 switch to pure fontset.
8477 (decode_mac_font_name): Temporarily remove decoding.
8478 (x_font_name_to_mac_font_name): Temporarily remove encoding.
8479 (x_load_font): Temporarily remove encoding.
aca7a3d2 8480
73acf815 84812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8482
8483 * xfaces.c (Fface_font): If frame is not on a window system,
8484 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
8485 refer to face->font.
8486 (split_font_name_into_vector, build_font_name_from_vector)
8487 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
8488 whne HAVE_WINDOW_SYSTEM is defined.
8489
73acf815 84902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8491
8492 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
8493 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 8494 cmp->glyph_len is zero.
aca7a3d2 8495
1f45f627 8496 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
8497 (Ffontset_info): Make it backward compatible. New arg ALL.
8498
73acf815 84992008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
8500
8501 * process.c (read_process_output): Grow decoding_buf when needed;
8502 this could cause a crash in allocate_string and compact_small_strings.
8503
73acf815 85042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8505
1f45f627 8506 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 8507
73acf815 85082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8509
8510 * coding.c (setup_coding_system): Set coding->common_flags
8511 correctly for raw-text.
8512 (consume_chars): On encoding unibyte text by raw-text, don't check
8513 multibyte form.
1f45f627 8514 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
8515
8516 * fileio.c (e_write): Short cut for the case of no encoding.
8517
73acf815 85182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8519
4c4475a8
GM
8520 * coding.c (detect_coding, detect_coding_system): Delete unused
8521 variables.
aca7a3d2 8522
73acf815 85232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8524
8525 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
8526 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
8527
73acf815 85282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8529
8530 * coding.c (Ffind_coding_systems_region_internal): Include
8531 raw-text and no-conversion in the result.
8532
73acf815 85332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8534
1f45f627 8535 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
8536 (load_font_get_repertory): Delete unnecessary check of ENCODING of
8537 FONT_DEF.
8538 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 8539 (set_fontset_font): Change argument.
aca7a3d2
MB
8540 (Fset_fontset_font): Fix for the case that TARGET is a script
8541 name and charset name.
8542 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
8543
73acf815 85442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8545
1f45f627
GM
8546 * fontset.c (fontset_font): Rename from fontset_face. Change return
8547 value.
4c4475a8
GM
8548 (face_suitable_for_char_p, face_for_char): Adjust for the change
8549 of fontset_font.
aca7a3d2
MB
8550 (make_fontset_for_ascii_face): Fix setting of the fontset element
8551 for ASCII.
8552 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
8553 to get a font name.
1f45f627 8554 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 8555
fcb314b2 8556 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
8557
8558 * character.h (LEADING_CODE_LATIN_1_MIN)
8559 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
8560
73acf815 85612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8562
fcb314b2 8563 * editfns.c (check_translation): New function.
aca7a3d2
MB
8564 (Ftranslate_region_internal): Handle M:N mapping.
8565
73acf815 85662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8567
8568 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
8569
73acf815 85702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8571
8572 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
8573 goto invalid_code.
8574 (decode_coding_iso_2022): Fix handling of invalid designation.
8575
8576 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
8577 after calling code_conversion_save.
8578
73acf815 85792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8580
8581 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
8582
8583 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
8584
8585 * fontset.c: Include "intervals.h".
8586 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
8587 (free_face_fontset, new_fontset_from_font_name): Fix
8588 Lisp_Object/int mixup.
aca7a3d2
MB
8589
8590 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
8591
8592 * coding.c: Add many prototypes for static functions.
8593 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 8594 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
8595 (Funencodable_char_position, Fcheck_coding_systems_region): Call
8596 get_translation_table with max_lookup NULL.
aca7a3d2 8597
73acf815 85982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8599
8600 * coding.c (get_translation_table): Declare it as Lisp_Object.
8601 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
8602 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
8603 instead of CHAR_TABLE_REF.
aca7a3d2 8604
73acf815 86052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8606
1f45f627 8607 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
8608 annotation data format.
8609 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 8610 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 8611 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 8612 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
8613 (decode_coding_ccl, decode_coding_charset): Pay attention to
8614 coding->charbuf_used.
aca7a3d2
MB
8615 (get_translation): New function.
8616 (produce_chars): New arguments translation_table and last_block.
8617 Translate characters here. Return number of carryover chars.
1f45f627
GM
8618 Change caller.
8619 (produce_composition): New argument pos. Change caller.
8620 Adjust for the change of annotation data format.
aca7a3d2
MB
8621 (produce_charset, produce_annotation): Likewise.
8622 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
8623 (consume_chars): New arg translation_table. Change caller.
8624 (translate_chars): Delete.
8625 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 8626
73acf815 86272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8628
8629 * search.c (simple_search): Fix setting this_pos_byte in backward
8630 search.
8631
8632 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
8633 byte sequence.
8634 (detect_coding_ccl): Fix setting of the variable valids.
8635
73acf815 86362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8637
8638 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
8639
8640 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
8641
1f45f627 8642 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
8643 Ftranslate_region. Accept a char-table in TABLE.
8644 (syms_of_editfns): Defsubr Stranslate_region_internal.
8645
8646 * xfaces.c (set_lface_from_font_name): If a font is specified for
8647 a frame, generate a fontset from the font.
8648 (build_scalable_font_name): If the scalable font is requested for
8649 a specific size, don't change that size.
8650 (try_font_list): Try a scalable font also in the case that a
1f45f627 8651 pattern string is specified.
aca7a3d2 8652
73acf815 86532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8654
8655 * xfaces.c (Fface_font): New optional arg CHARACTER.
8656
73acf815 86572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8658
8659 * charset.h (CHARSET_OFFSET): New macro.
8660
73acf815 86612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8662
8663 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
8664
8665 * fontset.c (fontset_face): Handle the case that repertory is a
8666 char-table.
8667 (find_font_encoding): Return nil for unknown encoding.
8668 (Fset_fontset_font): Ignore a font of unknown encoding.
8669
73acf815 86702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8671
1f45f627 8672 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
8673
8674 * fontset.c (fontset_face): Handle fallback fonts correctly.
8675 (Ffontset_info): Return infomation about fallback fonts.
8676
73acf815 86772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8678
8679 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 8680 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
8681 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
8682 the case that it is nil.
8683 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 8684 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
8685
8686 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
8687 subset or superset.
8688
73acf815 86892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8690
8691 * emacs.c (main): Call init_charset after syms_of_XXX.
8692
1f45f627 8693 * charset.c (Vcharset_map_directory): Delete.
1f204af3 8694 (Vcharset_map_path): New variable.
aca7a3d2
MB
8695 (load_charset_map_from_file): Use Vcharset_map_path instead.
8696 (init_charset): Initialize Vcharset_map_path.
8697 (syms_of_charset): Delete declaration of "charset-map-directory",
8698 add declaration of "charset-map-path".
8699
73acf815 87002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8701
4c4475a8
GM
8702 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
8703 ASCII only string.
aca7a3d2
MB
8704
8705 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
8706
8707 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 8708 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 8709
73acf815 87102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8711
8712 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
8713
8714 * coding.c (QCmnemonic, QCdefalut_char)
8715 (QCdecode_translation_table, QCencode_translation_table)
8716 (QCpost_read_conversion, QCpre_write_conversion): New variables.
8717 (get_translation_table): Return a list of translation tables if
8718 necessary.
8719 (decode_coding): Call get_translation_table with ENCODEP 0.
8720 (char_encodable_p): If translation_table is non-nil, always call
8721 translate_char.
8722 (Fdefine_coding_system_internal): Accept list of translation
8723 tables as :encode-translation-table and :decode-translation-table.
8724 (Fcoding_system_put): New function.
8725 (syms_of_coding): Declare new symbols. Defsubr
8726 Scoding_system_put.
4c4475a8
GM
8727 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
8728 typically JISX0212.
aca7a3d2
MB
8729
8730 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
8731 when the charset is superset type.
8732
8733 * character.c (translate_char): Accept list of translation tables.
8734
73acf815 87352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8736
1f45f627 8737 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
8738 (CODING_ATTR_TRANS_TBL): New macro.
8739
8740 * coding.c (get_translation_table): New function.
8741 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
8742 (decode_coding, encode_coding): Utilize get_translation_table.
8743 (char_encodable_p, Funencodable_char_position): Translate char if
8744 necessary.
8745 (Ffind_coding_systems_region_internal)
8746 (Fcheck_coding_systems_region): Setup translation table for encode
8747 in a coding system attribute vector in advance.
aca7a3d2
MB
8748 (Fdefine_coding_system_internal): Allow a symbol as translation
8749 table. For shift-jis type coding system, allow 4th charset.
8750
73acf815 87512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8752
8753 * coding.c (decode_coding_sjis): Check the first byte rigidly.
8754
8755 * xdisp.c (get_next_display_element): Pass -1 as POS to
8756 FACE_FOR_CHAR if displaying a C-string.
8757
73acf815 87582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8759
8760 * composite.c (get_composition_id): Handle xoff and yoff in a
8761 composition rule.
8762
8763 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
8764 (struct composition): New member lbearing and rbearing.
8765
8766 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
8767 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 8768 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
8769
8770 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
8771 composition glyph.
8772
73acf815 87732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8774
8775 * print.c: Include charset.h.
8776 (Vprint_charset_text_property): New variable.
8777 (Qdefault): Extern it.
8778 (PRINT_STRING_NON_CHARSET_FOUND)
8779 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
8780 (print_check_string_result): New variable.
8781 (print_check_string_charset_prop): New function.
8782 (print_prune_charset_plist): New variable.
8783 (print_prune_string_charset): New function.
8784 (print_object): Call print_prune_string_charset if
8785 Vprint_charset_text_property is not t.
8786 (print_interval): Print nothing if itnerval->plist is nil.
8787 (syms_of_print): Declare Vprint_charset_text_property as a lisp
8788 variable. Init and staticpro print_prune_charset_plist.
8789
73acf815 87902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8791
8792 * fontset.c (new_fontset_from_font_name): Use the specified font
8793 for all characters in the new fontset.
8794
8795 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8796 OBJECT args.
8797
8798 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
8799 OBJECT args for composition too.
8800
8801 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8802 OBJECT args.
8803
73acf815 88042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8805
8806 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
8807
1f45f627 8808 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 8809 FONT_DEF format.
1f45f627 8810 (fontset_face): New arg id. Change caller.
aca7a3d2 8811 (face_for_char): New args pos and object.
1f204af3 8812 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
8813 (fs_query_fontset): Check NAME by Fassoc too.
8814 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 8815 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 8816
1f45f627 8817 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 8818
4c4475a8
GM
8819 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
8820 (append_space, extend_face_to_end_of_line)
8821 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8822 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
8823
8824 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
8825 POS and OBJECT args.
8826
8827 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
8828 POS and OBJECT args.
8829
73acf815 88302008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8831
8832 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
8833 of GlobalAlloc'ed memory.
8834
73acf815 88352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8836
8837 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
8838
8839 * charset.h (charset_table_used): Delete extern.
8840
8841 * charset.c (charset_table_used): Make it static.
8842 (map_charset_chars): Fix args to c_function with.
8843
8844 * chartab.c (map_sub_char_table_for_charset): Fix args to
8845 c_function with.
8846
8847 * coding.h (enum coding_result_code): Delete
8848 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
8849
8850 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 8851 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
8852 (Vlast_code_conversion_error): New variables.
8853 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
8854 (ONE_MORE_BYTE): Record error if any instead of signaling an
8855 error. If non-ASCII multibyte char is found, return the negative
8856 value of the code. All callers changed to check it.
8857 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
8858 (record_conversion_result): New function. Change all codes setting
8859 coding->result to call this function.
4c4475a8
GM
8860 (detect_coding_utf_8, decode_coding_utf_8)
8861 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
8862 Don't use the local variable incomplete.
aca7a3d2 8863 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
8864 (decode_coding): Fix of flushing out unprocessed data.
8865 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 8866 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
8867
8868 * fontset.c (set_fontset_font): Fix args.
8869
8870 * lisp.h (CHARACTERBITS): Define as 22.
8871
8872 * process.c (send_process): Be sure to set coding->src_multibyte.
8873
8874 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
8875
73acf815 88762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8877
8878 * xdisp.c (handle_auto_composed_prop): Give limit to
8879 Fnext_single_char_property_change.
8880
73acf815 88812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8882
424c157f 8883 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 8884 table weak.
aca7a3d2
MB
8885
8886 * fontset.c (Fset_fontset_font): Fix docstring.
8887
8888 * lisp.h (detect_coding_system): Adjust prototype.
8889
8890 * fileio.c (kill_workbuf_unwind): Delete this function.
8891 (Finsert_file_contents): Adjust the call of detect_coding_system.
8892 Get conversion_buffer by code_conversion_save. Use the macor
8893 CODING_MAY_REQUIRE_DECODING. After decoding, update
8894 coding_system.
8895
8896 * coding.h (make_conversion_work_buffer): Delete extern.
8897 (code_conversion_save): Extern it.
8898
8899 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 8900 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
8901 (decode_coding_utf_8): Don't do eol converion.
8902 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 8903 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
8904 (decode_coding_emacs_mule, decode_coding_iso_2022)
8905 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8906 Don't do eol converion.
aca7a3d2
MB
8907 (adjust_coding_eol_type): Return a new coding system.
8908 (detect_coding): Don't detect eol. Fix for utf-16 detection.
8909 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8910 each change.
8911 (decode_coding): Pay attention to undo_list. Do eol convesion for
8912 all types of coding-systems (if necessary).
8913 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 8914 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
8915 Vcode_conversion_reused_work_buf.
8916 (Vcode_conversion_workbuf_name): New variable.
8917 (reused_workbuf_in_use): New variable.
8918 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 8919 (code_conversion_restore): Change argument to cons.
1f45f627
GM
8920 (code_conversion_save): Delete the argument BUFFER. Change callers.
8921 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
8922 Fix for utf-16 detection.
8923 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 8924 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
8925 reused_workbuf_in_use.
8926
73acf815 89272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8928
8929 * keymap.c (store_in_keymap): Pay attention to the case that idx
8930 is a cons specifying a character range.
8931
73acf815 89322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8933
8934 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8935 HANDLED_RECOMPUTE_PROPS.
8936
8937 * coding.c (Fdefine_coding_system_internal): Fix checking of
8938 ascii compatibility.
8939
73acf815 89402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8941
1f45f627 8942 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
8943 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8944
8945 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8946 Resync charset_list to Vemacs_mule_charset_list.
8947
8948 * keymap.c (store_in_keymap): Pay attention to the case that idx
8949 is a cons specifying a character range.
8950
73acf815 89512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8952
8953 * composite.c (update_compositions): Bind inhibit-read-only, etc
8954 to t before calling remove-list-of-text-properties.
8955
8956 * print.c (print_object): Always print ASCII chars as is.
8957
73acf815 89582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8959
1f45f627 8960 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 8961
4c4475a8
GM
8962 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8963 is a char table.
aca7a3d2 8964
73acf815 89652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8966
1f45f627 8967 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 8968
73acf815 89692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8970
8971 * xfaces.c (set_lface_from_font_name): Fix for the case that
8972 FONTNAME is not fontset name.
8973
73acf815 89742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8975
8976 * fns.c (base64_encode_1): Fix previous change.
8977
73acf815 89782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8979
8980 * fontset.c (set_fontset_font): New function.
8981 (Fset_fontset_font): If a font is specified for a charset, use
8982 map_charset_chars to store the font spec in a fontset.
8983
73acf815 89842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8985
1f204af3 8986 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
8987 (make_fontset): Don't create a fallback fontset here.
8988 (free_face_fontset): Free a fallback fontset (if any) too.
8989 (n_auto_fontsets): Delete this variable.
8990 (auto_fontset_alist): New variable.
8991 (new_fontset_from_font_name): Check auto_fontset_alist.
8992 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8993 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8994 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8995 Defsubr Sfontset_list_all.
8996
73acf815 89972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8998
8999 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9000
73acf815 90012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9002
9003 * fontset.c (Fnew_fontset): Check NAME more rigidly.
9004
73acf815 90052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9006
9007 * editfns.c (Fgoto_char): Fix docstring.
9008
73acf815 90092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9010
9011 * insdel.c (insert_from_gap): Adjust intervals correctly.
9012
73acf815 90132008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9014
9015 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
9016 (pfnGetFontUnicodeRanges): New dynamically loaded function.
9017 (w32_initialize): Try to load it.
9018 (x_get_font_repertory): Use it if available.
9019 (w32_encode_char): Add shortcut for unicode output.
9020
9021 * w32fns.c (w32_load_system_font): Default charset to -1.
9022 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 9023 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
9024 or wildcard charsets.
9025 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
9026 (w32_codepage_for_font): Return CP_UNICODE for unicode.
9027 (w32_to_x_font): Match charset to real charset.
9028 (enum_font_cb2): Always list unicode versions.
9029
9030 * makefile.w32-in (temacs): Increase EMHEAP.
9031
73acf815 90322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9033
9034 * w32term.c (w32_encode_char): New charset parameter.
9035 font_info.encoding becomes encoding_type.
1f45f627 9036 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
9037 (x_new_font): Return quickly if font already set.
9038 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
9039 Use new fs_query_fontset. Try new_fontset_from_font_name.
9040 Use fontset_name for return value.
aca7a3d2
MB
9041
9042 * w32term.h: Declare x_get_font_repertory.
9043
9044 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 9045 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
9046 of encode_coding.
9047 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
9048 decode_coding.
9049
9050 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
9051 of x_new_fontset.
9052 (w32_load_system_font): Initialize charset as unicode.
9053 font_info.encoding becomes encoding_type.
1f45f627
GM
9054 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
9055 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
9056 (syms_of_w32fns): Set get_font_repertory_func.
9057
1f45f627 9058 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 9059 from term.c.
1f45f627 9060 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
9061 encode_coding_object in place of encode_coding.
9062
9063 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
9064 encoding becomes encoding_type.
9065
9066 * term.c (terminal_encode_buffer): Make externally visible.
9067
9068 * makefile.w32-in: Add character.h dependancies.
9069 (character.o, chartab.o): New targets.
9070
73acf815 90712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9072
9073 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 9074 CODING_ID_EOL_TYPE.
aca7a3d2 9075
73acf815 90762008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
9077
9078 * coding.c (produce_chars): Revert last change.
9079
73acf815 90802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9081
9082 * charset.h (charset_unicode): Extern it.
9083
9084 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 9085 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 9086 arg MULTIBYTE.
1f45f627 9087 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
9088 change of find_charsets_in_text.
9089 (Fsplit_char): Fix doc. Never return unknown.
9090
9091 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
9092
9093 * coding.c (Fdefine_coding_system_alias): Update
9094 Vcoding_system_list.
9095
9096 * fontset.c (load_font_get_repertory): Pay attention to the case
9097 that ENCODING of a font is specified by a char-table.
9098
9099 * xterm.c (x_get_font_repertory): Handle the case that the
9100 encoding of font is other than Unicode.
9101
73acf815 91022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9103
9104 * term.c (encode_terminal_code): Don't handle glyph-table. Check
9105 if a character is encodable by the terminal coding system. If
9106 not, produces proper number of `?'s. Update
9107 terminal_encode_buffer and terminal_encode_buf_size if necessary.
9108 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
9109
73acf815 91102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9111
9112 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
9113 variables.
1f45f627 9114 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
9115 characters at once. Store the result of encoding in
9116 terminal_encode_buffer.
4c4475a8
GM
9117 (write_glyphs, insert_glyphs): Adjust for the change of
9118 encode_terminal_code.
aca7a3d2
MB
9119 (term_init): Initialize terminal_encode_buffer and
9120 terminal_encode_buf_size.
9121
9122 * coding.c (consume_chars): If coding->src_object is nil, don't
9123 check annotation.
9124
73acf815 91252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9126
9127 * character.c (char_string): Use ASCII_CHAR_P instead of
9128 SINGLE_BYTE_CHAR_P.
9129
73acf815 91302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9131
9132 * xdisp.c (handle_auto_composed_prop): Check if the last
9133 characters of auto-composed region is newly composed with the
9134 following characters.
9135 (handle_composition_prop): Fix checking of point being inside
9136 composition.
9137
73acf815 91382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9139
9140 * fns.c (concat): Don't change multibyteness of the result by
9141 concatenating an 8-bit character.
9142
9143 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
9144 multibyteness of the result when newelt is an 8-bit character.
9145
73acf815 91462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9147
9148 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
9149 EMACS_INT.
9150
9151 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
9152
9153 * xfaces.c (face_numeric_value): Declare dim size_t.
9154 (Finternal_lisp_face_equal_p): Remove unused f.
9155
9156 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
9157 (MATRIX_ROW): Remove unused vars.
9158 (draw_glyphs, x_insert_glyphs, fast_find_position)
9159 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
9160 byte/char counts.
9161
9162 * regex.c (regex_compile): Remove unused var.
9163
9164 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9165
9166 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9167 (Faccessible_keymaps, where_is_internal): Remove unused vars.
9168
9169 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
9170
9171 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
9172
9173 * fileio.c (Fwrite_region): Remove unused var.
9174
9175 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
9176 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
9177
9178 * composite.c (Fremove_list_of_text_properties): Declare.
9179
1f45f627
GM
9180 * coding.c (inhibit_pre_post_conversion): Remove (unused).
9181 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
9182 (coding_inherit_eol_type): Remove unused attrs.
9183 (detect_coding): Cast arg of detect_eol.
9184
9185 * charset.c (syms_of_charset): Remove unused var p.
9186 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
9187 byte/char counts.
9188
9189 * casetab.c (set_case_table): Remove unused var.
9190
9191 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 9192 unused vars.
aca7a3d2 9193
73acf815 91942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9195
9196 * xterm.c (x_bitmap_mask): Declare.
9197
73acf815 91982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9199
9200 * xterm.c (x_term_init): Fix type error.
9201
9202 * lisp.h: Add Funibyte_char_to_multibyte.
9203
9204 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
9205 (Fset_coding_system_priority): Doc fix.
9206
aca7a3d2
MB
9207 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
9208
9209 * indent.c (check_composition): Make start and end EMACS_INT.
9210
9211 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
9212
9213 * xdisp.c (handle_composition_prop, check_point_in_composition):
9214 Make buffer positions EMACS_INT.
9215
9216 * composite.c (find_composition, run_composition_function)
9217 (update_compositions, Ffind_composition_internal): Make buffer
9218 positions EMACS_INT.
9219
9220 * composite.h (find_composition, update_compositions): Make
9221 position args EMACS_INT.
9222
1f45f627 9223 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
9224
9225 * intervals.c (get_property_and_range):
9226 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
9227
9228 * unexalpha.c: Don't include varargs.h.
9229
73acf815 92302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9231
9232 * coding.h (ENCODE_UTF_8): New.
9233
9234 * Makefile.in (gtkutil.o): Depend on coding.h.
9235
9236 * coding.c (Fset_coding_system_priority): Doc fix.
9237
73acf815 92382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9239
9240 * fileio.c (Finsert_file_contents): Call setup_coding_system in
9241 the case of auto saving.
9242
73acf815 92432008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 9244
4c4475a8
GM
9245 * chartab.c (map_char_table, map_char_table_for_charset): Protect
9246 `range' from GC.
aca7a3d2 9247
73acf815 92482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9249
9250 * coding.c (decode_coding_sjis): Check bytes more rigidly.
9251
73acf815 92522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9253
1f45f627 9254 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
9255 (Fwrite_region): Set Vlast_coding_system_used to the return value
9256 of choose_write_coding_system.
9257
73acf815 92582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9259
9260 * charset.c (Fset_charset_priority): Pay attention to duplicated
9261 arguments.
9262
9263 * coding.c (QCcategory): New variable.
9264 (syms_of_coding): Defsym it. Set all elements of
9265 Vcoding_category_table and their symbol values.
9266 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
9267 coding-category-XXX, and coding-category-list.
9268 (Fdefine_coding_system_internal): Add category in the plist.
9269
73acf815 92702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9271
9272 * callproc.c (Fcall_process): Handle carryover correctly.
9273
1f45f627 9274 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
9275 (raw_text_coding_system): Check NILP (coding_system).
9276 (coding_inherit_eol_type): Check NILP (coding_system) and
9277 NILP (parent).
9278 (consume_chars): Fix for the case of raw-text.
9279
9280 * process.c (read_process_output): Handle carryover correctly.
9281
73acf815 92822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9283
9284 * regex.c (re_search_2): Fix last change.
9285
73acf815 92862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9287
9288 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
9289 target_multibyte. Even in a unibyte case, return a converted
9290 multibyte char.
9291 (GET_CHAR_AFTER): New macro.
9292 (PATFETCH): Translate via multibyte char.
9293 (HANDLE_UNIBYTE_RANGE): Delete this macro.
9294 (SETUP_MULTIBYTE_RANGE): New macro.
9295 (regex_compile): Setup compiled code so that its multibyteness
9296 matches that of a target. Fix the handling of "[X-YZ]" using
9297 SETUP_MULTIBYTE_RANGE.
9298 (analyse_first) <charset>: For filling fastmap for all multibyte
9299 characters, don't check by BASE_LEADING_CODE_P.
9300 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
9301 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 9302 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
9303 (TARGET_CHAR_AND_LENGTH): Delete this macro.
9304 (TRANSLATE_VIA_MULTIBYTE): New macro.
9305 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
9306 It is the same as RE_MULTIBYTE_P (bufp) now.
9307 <exactn>: Translate via multibyte.
9308 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
9309 translate it.
9310 <charset, charset_not>: Fetch a character by
9311 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
9312 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
9313 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
9314 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
9315 by GET_CHAR_AFTER.
c5ad7a3d 9316 (bcmp_translate): Likewise.
aca7a3d2
MB
9317
9318 * search.c (compile_pattern): Check the member target_multibyte,
9319 not the member multibyte of buf.
9320
9321 * lread.c (read1): While reading a string, set force_singlebyte
9322 and force_multibyte correctly.
9323
4c4475a8
GM
9324 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
9325 up of unibyte_to_multibyte_table.
aca7a3d2 9326
73acf815 93272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9328
9329 * coding.c (setup_coding_system): If coding has
9330 post-read-conversion or pre-write-conversion, set
9331 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
9332 respectively.
9333 (decode_coding_gap): Run post-read-conversion if any.
9334
9335 * fileio.c (Finsert_file_contents): Even if we read into a
9336 unibyte buffer, check if we must decode the result or not.
9337
73acf815 93382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9339
9340 * coding.c (make_conversion_work_buffer): Change the work buffer
9341 name to the same one as that of Emacs 21.
9342
73acf815 93432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9344
1f45f627 9345 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
9346 (code_conversion_restore): Don't extern it.
9347
9348 * coding.c (detected_mask): Delete unused variable.
9349 (decode_coding_iso_2022): Pay attention to the byte sequence of
9350 CTEXT extended segment, and retain those bytes as is.
9351 (decode_coding_ccl): Delete unused variable `valids'.
9352 (setup_coding_system): Delete unused variable `category'.
9353 (consume_chars): Delete unused variable `category'. Make it work
9354 for non-multibyte case.
1f45f627 9355 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
9356 (saved_coding): Delete unused variable.
9357 (code_conversion_restore): Don't check saved_coding->destination.
9358 (code_conversion_save): New function.
9359 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
9360 instead of record_unwind_protect.
1f45f627 9361 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 9362 (detect_coding_system): Delete unused variable `mask'.
1f45f627 9363 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
9364
9365 * fileio.c (kill_workbuf_unwind): New function.
9366 (Finsert_file_contents): On replacing, call
9367 make_conversion_work_buffer with correct args, and call
9368 record_unwind_protect with the first arg kill_workbuf_unwind.
9369
9370 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
9371
73acf815 93722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9373
1f45f627 9374 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
9375 (fontset_add): Fix for the case that TO is less than TO1.
9376 (Ffontset_info): Don't use fallback fontset on checking the
9377 default fontset.
9378 (dump_fontset): New function for debugging.
9379
9380 * coding.c (Fdefine_coding_system_internal): Fix for the case that
9381 coding_type is Qcharset.
9382
73acf815 93832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9384
9385 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
9386 (map_char_table): Don't inherit the value from the parent on
1f45f627 9387 initializing VAL. Adjust for the above change.
aca7a3d2 9388
73acf815 93892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9390
9391 * coding.c (Qsignature, Qendian): Delete these variables.
9392 (syms_of_coding): Don't initialize them.
9393 (CATEGORY_MASK_UTF_16_AUTO): New macro.
9394 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
9395 detect_info->found.
9396 (decode_coding_utf_16): Don't detect BOM here.
9397 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
9398 is NOT utf_16_without_bom.
9399 (setup_coding_system): For a coding system of type utf-16, check
9400 if the attribute :endian is Qbig or not (not nil or not), and set
9401 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
9402 (detect_coding): If coding type is utf-16 and BOM detection is
9403 required, detect it.
9404 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 9405 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 9406
73acf815 94072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9408
9409 * coding.c (coding_set_source): Fix for the case that the current
9410 buffer is different from coding->src_object.
9411 (decode_coding_object): Don't use the conversion work buffer if
9412 DST_OBJECT is a buffer.
9413
73acf815 94142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9415
9416 * lread.c (read_emacs_mule_char) [len==2]: Index
9417 emacs_mule_charset correctly.
9418
73acf815 94192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9420
9421 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
9422 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 9423 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
9424 treated specially.)
9425 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
9426 (detected_mask): Remove Big5 bits.
9427
73acf815 94282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9429
9430 The following changes are to make the font rescaling facility
9431 compatible with Emacs 21.
9432
1f45f627 9433 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
9434 Vface_resizing_fonts.
9435 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 9436 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
9437 (split_font_name): Set font->rescale_ratio.
9438 (better_font_p): Pay attention to font->rescale_ratio.
9439 (build_scalable_font_name): Likewise. Change RESX, and RESY
9440 fields.
1f45f627 9441 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 9442
73acf815 94432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9444
9445 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
9446 (Qutf_16_le): Remove these variables.
9447 (syms_of_coding): Don't DEFSYM them.
9448 (decode_coding_utf_16): Fix handling of BOM.
9449 (encode_coding_utf_16): Fix handling of BOM.
9450
73acf815 94512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9452
9453 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 9454 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 9455
73acf815 94562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9457
9458 * coding.c (Fcheck_coding_systems_region): Fix type errors.
9459
73acf815 94602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9461
9462 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9463 and fix C types.
9464
73acf815 94652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9466
9467 * xdisp.c (SKIP_GLYPHS): New macro.
9468 (set_cursor_from_row): Pay attention to string display properties.
9469
9470 * category.c (copy_category_entry): Fix for the case that RANGE
9471 is an integer.
9472
9473 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
9474
1f45f627 9475 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 9476
73acf815 94772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9478
9479 * charset.c (Fcharset_id_internal): New function.
9480 (syms_of_charset): Defsubr it.
9481
9482 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
9483 with the last arg charset_list acquired from coding.
9484 (Fdefine_coding_system_internal): For ccl-based coding system, fix
9485 the attribute coding_attr_ccl_valids.
9486
9487 * coding.h (enum define_coding_ccl_arg_index): Set the first
9488 member coding_arg_ccl_decoder to coding_arg_max.
9489
1f45f627 9490 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
9491
9492 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
9493 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
9494 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
9495 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
9496 last arg Qnil.
aca7a3d2 9497
73acf815 94982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9499
9500 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
9501 call encode_char.
9502
1f45f627 9503 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 9504
73acf815 95052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9506
1f45f627 9507 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 9508
73acf815 95092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9510
9511 * dispextern.h (check_face_attributes, generate_ascii_font_name)
9512 (font_name_registry): Don't extern them.
1f45f627 9513 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
9514
9515 * fontset.h (Qfontset): Don't extern it.
9516 (new_fontset_from_font_name): Extern it.
9517
9518 * fontset.c: Give 8 extra slots to fontset objects.
9519 (Qfontset_info): New variable.
9520 (syms_of_fontset): Defsym it.
9521 (FONTSET_FALLBACK): New macro.
9522 (fontset_face): Try also the default fontset.
1f45f627
GM
9523 (make_fontset): Realize a fallback fontset from the default fontset.
9524 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
9525 using split_font_name_into_vector and build_font_name_from_vector.
9526 (Fset_fontset_font): Access the elements of font_spec by enum
9527 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
9528 name by using split_font_name_into_vector.
9529 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
9530 generate a proper font name from the fontset name. Update
9531 Vfontset_alias_alist.
9532 (n_auto_fontsets): New variable.
9533 (new_fontset_from_font_name): New function.
9534 (Ffont_info): Store the information about fonts generated from the
1f45f627 9535 default fontset in the first extra slot of the returned char-table.
aca7a3d2 9536
1f45f627
GM
9537 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
9538 (font_name_registry): Delete function.
aca7a3d2
MB
9539 (split_font_name_into_vector): New function.
9540 (build_font_name_from_vector): New function.
1f45f627 9541 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
9542 (choose_face_font): If we are choosing an ASCII font, and ATTRS
9543 specifies an explicit font name, return the name as is. Make a
9544 list of registy names.
9545
1f45f627 9546 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
9547 of x_new_fontset.
9548 (Fx_create_frame): Don't call x_new_fontset here. Just use
9549 x_list_fonts to check the existence of fonts.
9550
1f45f627 9551 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
9552
9553 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
9554 string. Use new_fontset_from_font_name to create a fontset from a
9555 font name.
9556
1c8658b9
GM
95572008-02-01 Kenichi Handa <handa@m17n.org>
9558
9559 * syntax.c (Vfind_word_boundary_function_table): New name for
9560 Vnext_word_boundary_function_table.
9561 (find-word-boundary-function-table): New name for
9562 next-word-boundary-function-table.
9563
73acf815 95642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9565
9566 * Makefile.in: Fix some dependencies.
9567
9568 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
9569 set it to nil before returning.
9570
9571 * composite.c (update_compositions): Fix type error.
9572
9573 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
9574
73acf815 95752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9576
9577 * xterm.c (x_new_font): Optimize for the case that the font is
9578 already set for the frame.
9579
73acf815 95802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9581
9582 * chartab.c (char_table_ascii): Check if the char table contents
9583 is sub-char-table or not.
4c4475a8
GM
9584 (char_table_set, char_table_set_range): Fix argument to
9585 char_table_ascii.
aca7a3d2
MB
9586
9587 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
9588 (detect_coding_utf_8, detect_coding_utf_16)
9589 (detect_coding_emacs_mule, detect_coding_iso_2022)
9590 (detect_coding_sjis, detect_coding_big5)
9591 (detect_coding_ccl, detect_coding_charset): Change argument MASK
9592 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 9593 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
9594 (MAX_ANNOTATION_LENGTH): New macro.
9595 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
9596 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
9597 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 9598 (ADD_CHARSET_DATA): New macro.
1f45f627 9599 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
9600 (decode_coding_emacs_mule, decode_coding_iso_2022)
9601 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9602 Produce charset annotation data in coding->charbuf.
9603 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
9604 to charset annotation data in coding->charbuf.
9605 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
9606 coding->common_flags if the coding system is iso-2022 based and
9607 uses designation.
1f45f627 9608 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
9609 (produce_charset): New function.
9610 (produce_annotation): Handle charset annotation.
9611 (handle_composition_annotation, handle_charset_annotation): New
9612 functions.
9613 (consume_chars): Handle charset annotation. Utilize the above two
9614 functions.
9615 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
9616 buffer, get the deleted text as a string and set
9617 coding->src_object to that string.
9618 (detect_coding, detect_coding_system): Use the new struct
9619 coding_detection_info.
9620
9621 * coding.h (struct coding_detection_info): New structure.
1f45f627 9622 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
9623 (CODING_ANNOTATE_CHARSET_MASK): New macro.
9624
73acf815 96252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9626
9627 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
9628
73acf815 96292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9630
1f45f627 9631 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
9632 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
9633 to new local and nullify apropos_accumulate before returning.
9634 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
9635
73acf815 96362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9637
9638 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
9639 correctly.
9640
73acf815 96412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9642
9643 * fns.c (Flanginfo): Call synchronize_system_time_locale.
9644
73acf815 96452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9646
9647 The following changes are to make character composition happen
9648 automatically on displaying.
9649
2a2e8de7 9650 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 9651
1f45f627
GM
9652 * composite.h (Qauto_composed, Vauto_composition_function)
9653 (Qauto_composition_function): Extern them.
aca7a3d2 9654
1f45f627
GM
9655 * composite.c (Vcomposition_function_table)
9656 (Qcomposition_function_table): Delete variables.
9657 (Qauto_composed, Vauto_composition_function)
9658 (Qauto_composition_function): New variables.
aca7a3d2
MB
9659 (run_composition_function): Don't call
9660 compose-chars-after-function.
9661 (update_compositions): Clear `auto-composed' text property.
9662 (compose_chars_in_text): Delete this function.
9663 (syms_of_composite): Staticpro Qauto_composed and
9664 Qauto_composition_function. Declare Vauto_composition_function as
9665 a Lisp variable.
9666
9667 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
9668
9669 * xdisp.c (it_props): Add an entry for Qauto_composed.
9670 (handle_auto_composed_prop): New function.
9671
9672 * xselect.c (selection_data_to_lisp_data): Don't call
9673 compose_chars_in_text.
9674
73acf815 96752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9676
9677 * keyboard.c (read_char): Modify checking around use of
9678 Vkeyboard_translate_table.
9679
9680 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9681 and fix C types.
9682
73acf815 96832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9684
4c4475a8
GM
9685 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
9686 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9687 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 9688 the case that the last byte is '\r' correctly.
1f45f627
GM
9689 (decode_coding): Flush out the unprocessed data correctly.
9690 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 9691
73acf815 96922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9693
f245f2c6
JB
9694 * xterm.c (XTread_socket): Fix changes for defined keysyms.
9695 Add XK_ISO... case.
aca7a3d2
MB
9696 (xaw_scroll_callback): Revert last change.
9697
73acf815 96982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9699
1f45f627 9700 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 9701
73acf815 97022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9703
9704 * xfaces.c (Vface_resizing_fonts): New variable.
9705 (struct font_name): New member `resizing_ratio'.
9706 (font_resizing_ratio): New function.
9707 (split_font_name): Set font->resizing_ratio.
9708 (better_font_p): Pay attention to font->resizing_ratio.
9709 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
9710 RESX, and RESY fields.
9711 (try_alternative_families): Try scalable fonts if
9712 Vscalable_fonts_allowed is not Qt.
9713 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
9714
73acf815 97152008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9716
9717 * xterm.c (xaw_scroll_callback): Cast correctly.
9718
73acf815 97192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9720
9721 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
9722 (lispy_kana_keys): Comment out.
9723 (make_lispy_event) [XK_kana_A]: Comment out.
9724
9725 * xterm.c (xaw_scroll_callback): Cast call_data.
9726 (XTread_socket): Deal with ASCII keysyms.
9727 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
9728
73acf815 97292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9730
9731 * xterm.c (Vx_keysym_table): New.
9732 (syms_of_xterm): Initialize it.
9733 (XTread_socket): Use it.
9734 From head: Eliminate incorrect optimization that tried to avoid
9735 decoding the output of X*LookupString.
9736 (x_get_font_repertory): Delete charset declaration.
9737
73acf815 97382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9739
1f45f627
GM
9740 * coding.c (detect_coding_charset): If only ASCII bytes are found,
9741 return 0.
aca7a3d2
MB
9742 (Fdefine_coding_system_internal): Setup
9743 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
9744
73acf815 97452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9746
9747 * coding.c (Fcheck_coding_system): Doc fix.
9748
9749 * editfns.c (Finsert_byte): Return a proper value.
9750
73acf815 97512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9752
9753 * coding.c (decode_coding): Fix args to translate_chars. Pay
9754 attention to Vstandard_translation_table_for_decode.
9755 (encode_coding): Fix args to translate_chars. Pay attention to
9756 Vstandard_translation_table_for_encode.
9757
9758 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
9759 SINGLE_BYTE_CHAR_P.
9760
9761 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
9762 not by SINGLE_BYTE_CHAR_P.
9763
9764 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
9765 SINGLE_BYTE_CHAR_P.
9766
9767 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
9768 SINGLE_BYTE_CHAR_P.
9769
9770 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
9771 by SINGLE_BYTE_CHAR_P.
9772
9773 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
9774 SINGLE_BYTE_CHAR_P.
9775
73acf815 97762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9777
9778 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
9779
73acf815 97802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9781
9782 * fns.c (Flanginfo): Fix typo.
9783
9784 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
9785
73acf815 97862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9787
4c4475a8
GM
9788 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
9789 (detect_coding_emacs_mule, detect_coding_iso_2022)
9790 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
9791 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 9792 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 9793 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 9794 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 9795
73acf815 97962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9797
1f45f627
GM
9798 * character.c (char_string): Rename from
9799 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
9800 (string_char): Rename from string_char.
aca7a3d2 9801
4c4475a8
GM
9802 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
9803 if C is greater than MAX_3_BYTE_CHAR.
9804 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
9805 string_char instead of string_char_with_unification.
aca7a3d2 9806
73acf815 98072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9808
9809 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
9810
73acf815 98112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9812
1f45f627 9813 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
9814
9815 * regex.c (re_search_2): Fix for the case of unibyte buffer.
9816
73acf815 98172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9818
9819 * charset.c (define_charset_internal): Rename `supprementary'.
9820
9821 * Makefile.in (lisp, shortlisp): Remove latin-N.
9822
73acf815 98232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9824
9825 * xfns.c (x_window, x_window): Use use_xim.
9826
9827 * xterm.c (use_xim): Initialize.
9828 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9829 (x_term_init): Maybe set use_xim.
9830
9831 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9832
73acf815 98332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9834
9835 * search.c (search_buffer): Fix case-fold-search of multibyte
9836 characters.
9837 (boyer_moore): Rename the last argument to char_high_bits.
9838
73acf815 98392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9840
9841 * xdisp.c (display_string): Fix for the case of zero width glyph.
9842
9843 * xfns.c (x_set_font): Change the error message of the case that
9844 x_new_fontset returns Qt.
9845
9846 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
9847 (Finternal_set_lisp_face_attribute): Use signal_error for the
9848 error of invalid fontset.
9849
9850 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
9851 fontset, return Qt.
9852
73acf815 98532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9854
aca7a3d2
MB
9855 * unexelf.c (unexec): Make .got handling not SGI-specific.
9856
9857 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
9858
9859 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
9860
9861 * keyboard.c (read_key_sequence): Fix type error.
9862
9863 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
9864 type error.
9865
9866 * fontset.c (fontset_add): Return Lisp_Object.
9867
73acf815 98682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9869
9870 * charset.h (charset_ordered_list_tick): Declare extern.
9871
73acf815 98722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9873
73acf815 9874 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
9875 for handling syntax, category, and case conversion for unibyte
9876 characters by converting them to multibyte on the fly. With these
9877 changes, we don't have to setup syntax and case tables for unibyte
9878 characters in each language environment.
9879
9880 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9881 multibyte if necessary.
9882
9883 * bytecode.c (Fbyte_code): Likewise.
9884
9885 * character.h (LEADING_CODE_LATIN_1_MIN)
9886 (LEADING_CODE_LATIN_1_MAX): New macros.
9887 (unibyte_to_multibyte_table): Extern it.
9888 (unibyte_char_to_multibyte): New macro.
9889 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9890 (CHAR_LEADING_CODE): New macro.
9891 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9892
9893 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 9894 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
9895 (multibyte_char_to_unibyte): If C is an eight-bit character,
9896 convert it to the corresponding byte value.
9897
9898 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9899 not 1, singals an error. Update the elements of
9900 unibyte_to_multibyte_table.
9901 (init_charset_once): Initialize unibyte_to_multibyte_table.
9902 (syms_of_charset): Define the charset `iso-8859-1'.
9903
aca7a3d2
MB
9904 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9905 as is without converting it to unibyte. In a unibyte buffer,
9906 convert C to multibyte before checking the syntax.
9907
1f45f627 9908 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
9909
9910 * minibuf.c (Fminibuffer_complete_word): Use the macro
9911 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9912
9913 * regex.h (struct re_pattern_buffer): New member target_multibyte.
9914
9915 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9916 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
9917 that is zero, convert an eight-bit char to multibyte.
9918 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9919 non-emacs case.
9920 (PATFETCH): Convert an eight-bit char to multibyte.
9921 (HANDLE_UNIBYTE_RANGE): New macro.
9922 (regex_compile): Setup the compiled pattern for multibyte chars
9923 even if the given regex string is unibyte. Use PATFETCH_RAW
9924 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 9925 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 9926 only for ASCII chars.
1f45f627 9927 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
9928 is multibyte.
9929 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9930 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 9931 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
9932 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9933 multibyte always 1.
9934 (re_search_2): In emacs, set the locale variable multibyte to 1,
9935 otherwise to 0. New local variable target_multibyte. Check it
9936 to decide the multibyteness of STR1 and STR2. If
9937 target_multibyte is zero, convert unibyte chars to multibyte
9938 before translating and checking fastmap.
9939 (TARGET_CHAR_AND_LENGTH): New macro.
9940 (re_match_2_internal): In emacs, set the locale variable multibyte
9941 to 1, otherwise to 0. New local variable target_multibyte. Check
9942 it to decide the multibyteness of STR1 and STR2. Use
9943 TARGET_CHAR_AND_LENGTH to fetch a character from D.
9944 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 9945 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
9946 target_multibyte, not with multibyte.
9947 <begline>: Declare the local variable C as `unsigned'.
9948 (bcmp_translate): Change the last arg name to target_multibyte.
9949
9950 * search.c (compile_pattern_1): Don't adjust the multibyteness of
9951 the regexp pattern and the matching target. Set cp->buf.multibyte
9952 to the multibyteness of the regexp pattern. Set
1f45f627 9953 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
9954 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9955 FETCH_STRING_CHAR_ADVANCE.
9956 (Freplace_match): Convert unibyte chars to multibyte.
9957
4c4475a8
GM
9958 * syntax.c (char_quoted, back_comment, scan_words)
9959 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9960 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 9961 unibyte chars to multibyte.
1f45f627
GM
9962 (skip_chars): Delete the arg syntaxp, and move the code for
9963 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
9964 Fix the case that the multibyteness of STRING and the current
9965 buffer doesn't match.
9966 (skip_syntaxes): New function.
9967 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9968 SINGLE_BYTE_CHAR_P.
aca7a3d2 9969
73acf815 99702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9971
9972 * xfaces.c (QCfontset): New variable.
9973 (LFACE_FONTSET): New macro.
9974 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9975 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
9976 (Finternal_set_lisp_face_attribute)
9977 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
9978 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9979 check also LFACE_FONTSET_INDEX.
9980 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9981 attrs[LFACE_FONT_INDEX].
9982 (syms_of_xfaces): Intern and staticpro QCfontset.
9983
9984 * dispextern.h (enum lface_attribute_index): New member
9985 LFACE_FONTSET_INDEX.
9986
9987 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9988
73acf815 99892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9990
9991 * coding.c (coding_set_destination): Fix coding->destination for
9992 the case converting a region.
9993 (encode_coding_utf_8): Encode eight-bit chars as single byte.
9994 (encode_coding_object): Fix coding->dst_pos and
9995 coding->dst_pos_byte for the case converting a region.
9996
9997 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9998
9999 * character.h (BYTE8_STRING): New macro.
10000
10001 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
10002
73acf815 100032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10004
10005 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
10006 characters by octal form.
10007
10008 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10009
1f45f627 10010 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
10011 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
10012 _fetch_multibyte_char_len.
aca7a3d2
MB
10013 (FETCH_CHAR_AS_MULTIBYTE): New macro.
10014
1f45f627 10015 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 10016
1f45f627 10017 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 10018 the case conversion change the byte length.
1f45f627 10019 (casify_region): Likewise.
aca7a3d2 10020
1f45f627 10021 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 10022
1f45f627 10023 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
10024 (syms_of_character): Setup Vprintable_chars.
10025
10026 * editfns.c (Fchar_equal): Fix for the unibyte case.
10027 (Finsert_byte): New function.
10028 (syms_of_editfns): Defsubr it.
10029
10030 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
10031 of direct code 0x3ffff.
10032
10033 * search.c (Freplace_match): Fix for the unibyte case.
10034
73acf815 100352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10036
10037 * lread.c (safe_to_load_p): Fix the logic.
10038
10039 * syntax.c (scan_words): Don't treat characters belonging to
10040 different scripts as constituting a word.
10041
10042 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10043
1f45f627 10044 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
10045
10046 * emacs.c (main): In the case of --unibyte, instead of aborting on
10047 finding non-empty buffer, make it unibyte.
10048
73acf815 100492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10050
10051 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
10052 to create a fontset.
10053
73acf815 100542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10055
10056 * character.c (Funibyte_char_to_multibyte): Doc fix.
10057
10058 * xfns.c [HAVE_STDLIB_H]: Fix last change.
10059
73acf815 100602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10061
10062 * fontset.c (fontset_add): Make the type `int'.
10063 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
10064
4c4475a8
GM
10065 * character.c (unibyte_char_to_multibyte)
10066 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 10067 charset_unibyte, not charset_primary.
aca7a3d2 10068
1f45f627 10069 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 10070
1f45f627
GM
10071 * charset.c (charset_unibyte): Rename from charset_primary.
10072 (Funibyte_charset): Rename from Fprimary_charset.
10073 (Fset_unibyte_charset): Rename from Fset_primary_charset.
10074 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
10075
10076 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10077 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10078 it->multibyte_p is zero.
10079
10080 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 10081 Delete extern.
aca7a3d2 10082
73acf815 100832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10084
10085 * coding.c (Fdefine_coding_system_internal): Fix category setting
10086 for a coding system of type iso-2022.
10087
73acf815 100882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10089
1f45f627 10090 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 10091
73acf815 100922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10093
10094 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
10095 (next-word-boundary-function-table): Declare it as a Lisp variable
10096 in syms_of_syntax.
aca7a3d2
MB
10097 (scan_words): Call functions in Vnext_word_boundary_function_table
10098 if any.
10099
10100 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
10101
10102 * fontset.c (fs_load_font): If fontp->charset is not negative,
10103 return fontp without setting its members.
10104
73acf815 101052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10106
aca7a3d2
MB
10107 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
10108
10109 * m/sparc.h (HAVE_ALLOCA): Delete.
10110
10111 * s/irix6-5.h: Don't include strings.h.
10112 (bcopy, bzero, bcmp): Don't undef.
10113
10114 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
10115
10116 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
10117 (TIOCSIGSEND): Don't test IRIX6.
10118 (bcopy, bzero, bcmp): Define conditionally.
10119
73acf815 101202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10121
10122 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 10123 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
10124 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
10125
10126 * callproc.c (Fcall_process): Don't call insert_1_both directly if
10127 we are inserting a process output into a multibyte buffer.
10128
10129 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
10130 multibyte_char_to_unibyte.
10131
10132 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
10133 by the primary charset, make it eight-bit char.
10134 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
10135
1f45f627
GM
10136 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
10137 (charset_8_bit__control, charset_8_bit_graphic)
10138 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
10139 (define_charset_internal): New function.
10140 (syms_of_charset): Call define_charset_internal for pre-defined
10141 charsets.
10142
10143 * charset.h (charset_8_bit): Extern it.
10144
1f45f627 10145 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
10146 of Fset_buffer_multibyte.
10147 (encode_coding_raw_text): Increment p0 in the loop.
10148
1f45f627 10149 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 10150
1f45f627 10151 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
10152 for the change of Fset_buffer_multibyte.
10153
10154 * fns.c (Fstring_to_multibyte): New function.
10155 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
10156
73acf815 101572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10158
10159 * xfns.c (x_put_x_image): Declare args.
10160
1f45f627 10161 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
10162 (try_font_list): Declare an arg.
10163
10164 * xdisp.c (message2_nolog, set_message): Declare an arg.
10165
10166 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
10167
10168 * syntax.c (scan_sexps_forward): Declare an arg.
10169
10170 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10171 Declare an arg.
10172
10173 * lisp.h (Fnew_fontset): Declare.
10174
10175 * keymap.c (push_key_description): Call CHARACTERP correctly.
10176
1f45f627 10177 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
10178 (face_for_char): Delete unused vars.
10179 (Fset_fontset_font): Doc fix. Delete unused vars.
10180
10181 * doc.c (Fsubstitute_command_keys): Delete unused vars.
10182
10183 * composite.c (update_compositions): Declare arg.
10184
10185 * cm.c (calccost, cmgoto): Declare args.
10186
10187 * charset.c: Remove `emacs' conditional. Doc fixes.
10188 (map_char_table_for_charset): Declare.
10189
1f45f627 10190 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 10191
1f45f627 10192 * ccl.c: Remove `emacs' conditional.
aca7a3d2 10193
73acf815 101942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10195
10196 The following changes are to allow specifying multiple font
10197 patterns for a character range (specified by script or charset).
10198
10199 * Makefile.in (abbrev.o): Depend on syntax.h.
10200 (xfaces.o): Depend on charset.h.
10201
10202 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
10203 SINGLE_BYTE_CHAR_P.
10204
10205 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
10206
10207 * character.h (Vchar_script_table): Extern it.
10208
1f45f627 10209 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
10210 (Vchar_script_table, Qchar_script_table): New variable.
10211 (syms_of_character): Declare Vchar_script_table as a lisp variable
10212 and initialize it.
10213
1f45f627 10214 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
10215 have property char-table-extra-slots, make no extra slot.
10216
1f45f627 10217 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
10218 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
10219 SINGLE_BYTE_CHAR_P.
1f45f627
GM
10220 (choose_face_font, lookup_non_ascii_face, font_name_registry):
10221 Add prototypes.
10222 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
10223 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
10224
10225 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 10226 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
10227 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
10228
10229 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 10230 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
10231 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
10232 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
10233 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
10234 (fontset_ref_and_range, fontset_add, reorder_font_vector)
10235 (load_font_get_repertory): New functions.
1f45f627 10236 (fontset_set): Delete.
aca7a3d2 10237 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 10238 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
10239 (free_face_fontset): Use ASET istead of AREF (X) = Y.
10240 (face_for_char): Don't call lookup_face.
10241 (make_fontset_for_ascii_face): New arg FACE.
10242 (fs_load_font): New arg CHARSET_ID. Don't check
10243 Vfont_encoding_alist here.
10244 (find_font_encoding): New function.
10245 (list_fontsets): Use STRINGP, not ! NILP.
10246 (accumulate_script_ranges): New function.
10247 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
10248 re-written to handle new fontset structure.
10249 (Ffontset_font): Return a copy of element.
10250 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
10251 docstring of font-encoding-alist.
10252
10253 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
10254 (Fset_fotset_font): Fix arguments to 5.
10255
1f45f627 10256 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
10257
10258 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
10259 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 10260 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
10261 lookup_named_face.
10262
10263 * xfaces.c: Include charset.h.
1f45f627
GM
10264 (load_face_font): Delete argument C. Change caller.
10265 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
10266 (font_name_registry): New function.
10267 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 10268 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
10269 Lookup only ascii faces.
10270 (lookup_non_ascii_face): New function.
1f45f627
GM
10271 (lookup_named_face): Delete argument C. Change caller.
10272 (lookup_derived_face): Delete argument C. Change caller.
10273 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 10274 a string, just call font_list with it.
1f45f627
GM
10275 (choose_face_font): Delete arguments FACE and C. New arg
10276 FONT_SPEC. Change caller.
4c4475a8
GM
10277 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
10278 Change caller.
aca7a3d2
MB
10279 (realize_non_ascii_face): New function.
10280 (realize_x_face): Call load_face_font here.
1f45f627 10281 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
10282 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
10283 get a face ID.
10284 (dump_realized_face): Don't print charset of FACE.
10285
10286 * xfns.c (x_set_font): Always call x_new_fontset and
10287 store_frame_parameter.
10288 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 10289 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
10290
10291 * xterm.h (x_get_font_repertory): Extern it.
10292
10293 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10294 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10295 it->multibyte_p is zero.
10296 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10297 (x_new_fontset): If FONTSETNAME doesn't match any existing
10298 fontsets, create a new one.
10299 (x_get_font_repertory): New function.
10300
73acf815 103012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10302
10303 * coding.c (Ffind_coding_systems_region_internal): Detect an
10304 ASCII only string correctly.
10305
10306 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
10307 version is 0.
10308
73acf815 103092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10310
10311 * lread.c: Include "coding.h".
1f45f627
GM
10312 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
10313 (load_each_byte, unread_char): New variables.
10314 (readchar_backlog): Delete.
aca7a3d2
MB
10315 (readchar): Return a character unless load_each_byte is nonzero.
10316 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
10317 cons. If unread_char is not -1, simply return it.
10318 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
10319 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
10320 (read_multibyte): Delete.
aca7a3d2
MB
10321 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
10322 (read_emacs_mule_char): New functions.
10323 (Fload): Even if the file doesn't have the extention ".elc", if
10324 safe_to_load_p returns a positive version number, assume that the
10325 file contains bytecompiled code. If the version is less than 22,
10326 load the file while decoding multibyte sequences by emacs-mule.
10327 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
10328 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
10329 (Fread_from_string): Pay attention to the case that STREAM is a cons.
10330 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
10331 (read1): Set load_each_byte to 1 temporarily while handling
10332 #@NUMBER. Don't call read_multibyte.
10333 (read_vector): Call Fread with a cons. If readcharfun is
10334 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 10335 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
10336 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
10337 and Qload_force_doc_strings.
10338
73acf815 103392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10340
10341 * xdisp.c (face_before_or_after_it_pos): Call
10342 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10343
73acf815 103442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10345
10346 * character.h (TRAILING_CODE_P): New macro.
1f45f627 10347 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
10348 (string_char_with_unification): Fix prototype.
10349 (Vscript_alist): Extern it.
10350
10351 * character.c (Vscript_alist): New variable.
4c4475a8
GM
10352 (string_char_with_unification, str_as_unibyte)
10353 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
10354 (syms_of_character): Declare script-alist as a Lisp variable.
10355
10356 * charset.h (Vcharset_ordered_list): Extern it.
10357 (charset_ordered_list_tick): Extern it.
10358 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
10359 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
10360 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 10361 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 10362 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
10363
10364 * charset.c (charset_ordered_list_tick): New variable.
10365 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
10366 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
10367 deunify intead of unify a charset.
10368 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
10369 (find_charsets_in_text): Add `const' to arguemnts and local variables.
10370 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
10371 detecting of invalid code.
10372 (Fset_charset_priority): Increment charset_ordered_list_tick.
10373 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
10374 and TO_CODE.
10375
10376 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
10377 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
10378 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
10379 (decode_coding_ccl, consume_chars)
10380 (Ffind_coding_systems_region_internal)
10381 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
10382
10383 * print.c (print_object): Use octal form for printing the
10384 contents of a bool vector.
10385
73acf815 103862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10387
10388 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
10389 <version == 20>: Refuse to load.
10390
73acf815 103912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10392
10393 * fns.c: Move coding.h.
10394 (Qcodeset, Qdays, Qmonths): New.
10395 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 10396 (Flocale_codeset): Delete.
aca7a3d2 10397 (Flanginfo): New function.
1f45f627 10398 (syms_of_fns): Change accordingly.
aca7a3d2
MB
10399
10400 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
10401
73acf815 104022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10403
10404 * casetab.c (init_casetab_once, init_casetab_once): Fix
10405 CHAR_TABLE_SET call.
10406
10407 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
10408
10409 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
10410
10411 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
10412 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
10413 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
10414
10415 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
10416
10417 * coding.c (ENCODE_DESIGNATION, decode_eol)
10418 (make_conversion_work_buffer, code_conversion_restore)
10419 (Fdefine_coding_system_internal): Convert Lisp types.
10420 (code_conversion_restore): Use EQ, not ==.
10421 (Fencode_coding_string): Fix code_convert_string call.
10422
10423 * coding.h (code_convert_region): Fix prototype.
10424
1f45f627 10425 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
10426
10427 * fontset.c (fontset_ref, fontset_set, fs_load_font)
10428 (Ffontset_info): Convert Lisp types.
10429
10430 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
10431
10432 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
10433
10434 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
10435
10436 * chartab.c: Include "...h", not <...h> in some cases.
10437
10438 * callproc.c (Fcall_process): Remove unused variables.
10439
73acf815 104402008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10441
10442 * coding.c (Fset_coding_system_priority): Allow null arg list.
10443
73acf815 104442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10445
10446 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10447 (Fself_insert_and_exit): Use CHARACTERP.
10448
10449 * callproc.c (Fcall_process): Remove unused vars.
10450
10451 * xterm.c (XTread_socket): Add extra dead keysyms.
10452
10453 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
10454
10455 * dispextern.h: Remove prototypes for redraw_frame,
10456 redraw_garbaged_frames.
10457
10458 * cmds.c (Fself_insert_command): Use CHARACTERP.
10459
10460 * chartab.c (make_sub_char_table): Remove unused var.
10461 (Fset_char_table_default, Fmap_char_table): Doc fix.
10462
10463 * keymap.c (access_keymap): Remove generic char code.
10464 (push_key_description): Use CHARACTERP.
10465
73acf815 104662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10467
10468 * charset.c: Doc fixes.
10469 (Funify_charset): Extra checking.
10470
73acf815 104712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10472
10473 * lread.c: Remove some unused variables.
10474 (safe_to_load_p): If safe, return the magic number version byte.
10475 (Fload): Maybe use load-with-code-conversion.
10476
73acf815 104772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10478
10479 * category.c (Fmodify_category_entry): Don't modify the contents
10480 of category_set for characters out of the range. Avoid
10481 unnecessary modification.
10482
1f45f627 10483 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
10484 Vchar_unify_table. The default value of the table is now nil.
10485
10486 * character.c (syms_of_character): Setup Vchar_width_table for
10487 eight-bit-control and raw-byte chars.
10488
10489 * charset.h (enum define_charset_arg_index): Delete
10490 charset_arg_parents and add charset_arg_subset and
10491 charset_arg_superset.
10492 (enum charset_attr_index): Delete charset_parents and add
10493 charset_subset and charset_superset.
10494 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
10495 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 10496 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
10497 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
10498 (CHARSET_SUPERSET): New macros.
10499 (charset_work): Extern it.
10500 (ENCODE_CHAR): Use charset_work.
1f45f627 10501 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
10502 (map_charset_chars): Extern it.
10503
10504 * charset.c (load_charset_map): Set the default value of encoder
10505 and deunifier char-tables to nil.
1f45f627 10506 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
10507 map_char_table_for_charset instead of map_char_table.
10508 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 10509 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
10510 `define-charset' (:parents -> :subset or :superset).
10511 (charset_work): New variable.
4c4475a8
GM
10512 (encode_char, syms_of_charset): Adjust for the change of
10513 Fdefine_charset_internal.
aca7a3d2
MB
10514 (Ffind_charset_string): Setup the vector `charsets' correctly.
10515
1f45f627 10516 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 10517 the previous change.
1f45f627 10518 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
10519 (map_sub_char_table_for_charset): New function.
10520 (map_char_table_for_charset): New function.
10521
10522 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 10523 (describe_char_table): Delete.
aca7a3d2 10524
1f45f627 10525 * lisp.h (map_charset_chars): Delete.
aca7a3d2 10526
73acf815 105272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10528
10529 * fns.c (count_combining): Comment out (unused).
10530 (Flocale_codeset): New.
10531 (syms_of_fns): Defsubr it.
10532
10533 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 10534 (size_t): Remove.
aca7a3d2 10535
73acf815 105362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10537
6f69e89b 10538 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 10539
73acf815 105402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10541
10542 * character.c (syms_of_character): Set the default value of
10543 Vprintable_chars to Qnil.
10544
73acf815 105452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10546
10547 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
10548
73acf815 105492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10550
10551 * charset.c (load_charset_map): Handle the case that from < to
10552 correctly.
10553
4c4475a8
GM
10554 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
10555 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
10556 Pay attention to raw-8-bit chars.
aca7a3d2 10557
73acf815 105582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10559
4c4475a8
GM
10560 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
10561 It is not bytecompiled now.
aca7a3d2
MB
10562
10563 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
10564 (charset_jisx0208): New variables.
10565 (Fdefine_charset_internal): Setup them if appropriate.
10566 (init_charset_once): Initialize them to -1.
10567
1f45f627
GM
10568 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
10569 (charset_jisx0208): Extern them.
aca7a3d2 10570
1f204af3 10571 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 10572 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
10573 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
10574 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
10575 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
10576 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
10577 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
10578 (encode_coding_iso_2022): Change the 1st arg to
10579 ENCODE_ISO_CHARACTER to a variable.
10580
73acf815 105812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10582
10583 * charset.h (enum define_charset_arg_index): New enums
10584 charset_arg_min_code and charset_arg_max_code.
10585 (struct charset): New member char_index_offset.
10586
4c4475a8
GM
10587 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
10588 Take charset->char_index_offset into account.
aca7a3d2
MB
10589 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
10590 args[charset_arg_max_code]. Setup charset.char_index_offset.
10591 (syms_of_charset): Fix args to Fdefine_charset_internal.
10592
73acf815 105932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10594
10595 * coding.c (decode_coding_utf_8): Reject overlong sequences.
10596
73acf815 105972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10598
10599 * coding.c: Doc fixes.
10600 (Fcoding_system_aliases): Fix return value.
10601 (Qmac): Remove (duplicated) definition.
10602
73acf815 106032008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10604
10605 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
10606 functions.
10607
10608 * character.c (Fstring): Doc fix.
10609
10610 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
10611
10612 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
10613 ids.
10614 (font-encoding-alist): Doc fix.
10615
73acf815 106162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10617
10618 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 10619 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
10620
10621 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10622 for K&R.
10623
10624 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
10625
10626 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 10627 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 10628
1f45f627 10629 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
10630
10631 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
10632
73acf815 106332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10634
10635 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
10636
1f45f627 10637 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 10638
2a2e8de7 106392008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
10640
10641 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
10642
1f45f627 10643 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 10644
73acf815 106452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10646
4c4475a8 10647 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 10648 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 10649
73acf815 106502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10651
1f45f627 10652 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
10653 Fdefine_coding_system_internal.
10654 (Fdefine_coding_system_internal): For a coding system of
10655 `charset' type, store a list of charset IDs in
10656 `charset_attr_charset_valids' element of coding attributes.
10657
73acf815 106582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10659
10660 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
10661 (emacs_mule_char): New arg src. Delete arg `composition'. Change
10662 caller. Handle 2-byte and 3-byte charsets correctly.
10663 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
10664 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
10665 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
10666 (DECODE_EMACS_MULE_21_COMPOSITION): Call
10667 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
10668 sequence.
10669 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 10670 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
10671 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
10672 and alt&rule composition.
10673 (decode_coding_iso_2022): Handle composition correctly.
10674 (init_coding_once): Setup emacs_mule_bytes for private charsets.
10675
10676 * charset.c (Fdefine_charset_internal): Fix bug for the case of
10677 re-defining a charset. If the charset has :emacs-mule-id, setup
10678 emacs_mule_bytes.
1f45f627 10679 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 10680
73acf815 106812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10682
4c4475a8
GM
10683 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
10684 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
10685 encoding, produce a character specified by
10686 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 10687
73acf815 106882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10689
10690 * xterm.c (XSetIMValues): Declare.
10691
10692 * process.c: Conditionally include sys/wait.h, pty.h.
10693
1f45f627 10694 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 10695
1f45f627 10696 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
10697
10698 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
10699
10700 * fontset.c (Fclear_face_cache): Declare.
1f45f627 10701 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
10702 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
10703 variables.
10704
10705 * character.h (string_escape_byte8): Declare.
10706
10707 * charset.c (load_charset_map, load_charset_map_from_file): Remove
10708 unused vars.
10709 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
10710 (Fmap_charset_chars): Doc fix.
10711
1f45f627 10712 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
10713 (Fset_coding_system_priority, Fset_coding_system_priority)
10714 (Fdefine_coding_system_internal): Doc fix.
10715
73acf815 107162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10717
10718 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
10719
73acf815 107202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10721
10722 * character.c (string_escape_byte8): Make multibyte string with
10723 correct size.
10724
10725 * charset.c (Fmake_char): Delete unnecessary code.
10726
73acf815 107272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10728
10729 * xfns.c (x_encode_text): Allocate coding.destination here, and
10730 call encode_coding_object with dst_object Qnil.
10731
10732 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
10733 multibyte form correctly.
10734
10735 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
10736 against Vfont_encoding_alist.
10737
10738 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
10739 handling of charset list.
10740 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
10741 (decode_coding_object): Move point to coding->dst_pos before
10742 calling post-read-conversion function.
10743 (encode_coding_object): Give correct arguments to
10744 pre-write-conversion. Ignore the return value of
10745 pre-write-conversion function. Pay attention to the case that
10746 pre-write-conversion changes the current buffer. If dst_object is
10747 Qt, even if coding->src_bytes is zero, allocate at least one byte
10748 to coding->destination.
10749
10750 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
10751
10752 * charset.c (Fmake_char): Make it more backward compatible.
10753 (Fmap_charset_chars): Fix docstring.
10754
73acf815 107552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10756
10757 * coding.c: Doc fixes.
10758 (Fdefine_coding_system_alias): Use names, not symbols, in
10759 coding-system-alist.
10760
73acf815 107612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10762
10763 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
10764 of calling free_realized_face.
10765
2a2e8de7 107662008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 10767
1f45f627
GM
10768 * charset.c (read_hex): Don't treat SPC as a comment starter.
10769 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
10770 (Fdecode_char): Fix typo.
10771
73acf815 107722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10773
10774 * charset.h (struct charset): New member `code_space_mask'.
10775
1f45f627 10776 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
10777 (encode_coding_charset, Fdefine_coding_system_internal):
10778 Delete the local variable charset.
aca7a3d2
MB
10779 (Fdefine_coding_system_internal): Setup
10780 attrs[coding_attr_charset_valids] correctly.
10781
10782 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
10783 member to check if CODE is valid or not.
10784 (Fdefine_charset_internal): Initialize `code_space_mask' member.
10785 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
10786 is within the range of charset->min_code and carset->max_code.
10787
73acf815 107882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10789
10790 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
10791
10792 * dispextern.h (generate_ascii_font): Fix return type.
10793
10794 * xfaces.c (generate_ascii_font): Fix arg declaration.
10795
10796 * coding.c (coding_inherit_eol_type)
10797 (Fset_terminal_coding_system_internal)
10798 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
10799
73acf815 108002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10801
10802 * coding.c (decode_coding_charset, encode_coding_charset): Handle
10803 multiple charsets correctly.
10804
73acf815 108052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10806
10807 * search.c (boyer_moore): Fix handling of mulitbyte character
10808 translation.
10809
10810 * xdisp.c (display_mode_element): When the variable `elt' is
10811 changed, update `this' and `lisp_string'.
10812
73acf815 108132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10814
10815 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
10816
10817 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 10818 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
10819
10820 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
10821 (load_charset_map): Rename from parse_charset_map. New args
10822 entries and n_entries. Change caller.
10823 (load_charset_map_from_file): Rename from load_charset_map.
10824 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
10825 the tail.
10826 (load_charset_map_from_vector): New function.
10827 (Fdefine_charset_internal): Setup charset.compact_codes_p.
10828 (encode_char): If the charset is compact, change a character index
10829 to a code point.
10830
10831 * coding.c (coding_alloc_by_making_gap): Check the case that the
10832 source and destination are the same correctly.
10833 (decode_coding_raw_text): Set coding->consumed_char and
10834 coding->consumed to 0.
10835 (produce_chars): If coding->chars_at_source is nonzero, update
10836 coding->consumed_char and coding->consumed before calling
10837 alloc_destination.
10838 (Fdefine_coding_system_alias): Register ALIAS in
10839 Vcoding_system_alist.
10840 (syms_of_coding): Define `no-convesion' coding system at the tail.
10841
10842 * fileio.c (Finsert_file_contents): Set coding_system instead of
10843 val. If the current buffer is multibyte, always call
10844 decode_coding_gap.
10845
10846 * xfaces.c (try_font_list): Give higher priority to fontset's
10847 family than face's family.
10848
73acf815 108492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10850
10851 * callproc.c (Fcall_process): Be sure to give the current buffer
10852 to decode_coding_c_string.
10853
10854 * xfaces.c (try_font_list): Give a family specified in a fontset
10855 higher priority than a family specified in a face.
10856
73acf815 108572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10858
10859 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
10860 Fix arguments to insert_from_buffer.
10861
10862 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
10863
73acf815 108642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10865
10866 * coding.c (produce_chars): Set the variable `multibytep' correctly.
10867 (decode_coding_gap): Set coding->dst_multibyte correctly.
10868
73acf815 108692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10870
10871 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 10872 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
10873 (encode_coding_utf_16): Substitute coding->default_char for
10874 non-Unicode characters.
10875 (decode_coding): Don't call record_insert here.
10876 (setup_coding_system): Initialize `surrogate' of
10877 coding->spec.utf_16 to 0.
10878 (EMIT_ONE_BYTE): Fix for multibyte case.
10879
10880 * insdel.c (insert_from_gap): Call record_insert.
10881
73acf815 108822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10883
10884 * casefiddle.c (casify_region): Fix multibyte case.
10885
10886 * character.c (c_string_width): Add return type `int'.
1f45f627 10887 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
10888
10889 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 10890 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
10891 (CHAR_STRING_ADVANCE): Make it do-while statement.
10892
1f45f627 10893 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
10894 DEPTH == 3. Add workaround code for a GCC optimization bug.
10895
10896 * charset.c (parse_charset_map): Remove an unused variable.
10897
10898 * coding.c: Delete unused variables.
10899
10900 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10901 earlier. If inserted is zero and the coding system doesn't
10902 require flushing, don't call decode_coding_gap.
10903
10904 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10905
73acf815 109062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10907
10908 The following changes are for using Unicode as an internal
10909 character model, and use UTF-8 format for buffer/string
10910 representation.
10911
1f45f627 10912 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
10913 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10914
10915 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 10916 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
10917 (*.o): For many files, change dependency on charset.h to
10918 character.h, and add dependency on character.h.
10919 (character.o, chartab.o): New targets.
10920
1f45f627
GM
10921 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10922 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10923 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
10924 of "charset.h".
10925
10926 * dired.c, filelock.c: Include "character.h".
10927
10928 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 10929 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10930 (syms_of_alloc): Remove defsubr for Smake_char_table.
10931
10932 * buffer.c: Include "character.h" instead of "charset.h", don't
10933 include "coding.h".
1f45f627 10934 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
10935
10936 * buffer.h: EXFUN Fbuffer_live_p.
10937
10938 * callproc.c: Include "character.h" instead of "charset.h".
10939 (Fcall_process): Big change for the new code-conversion APIs.
10940
10941 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 10942 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
10943 map_char_table spec.
10944 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10945 accessing the char table structure.
10946
10947 * chartab.c: New file that implements char table.
10948
10949 * category.c: Include "character.h".
10950 (copy_category_entry): New function.
10951 (copy_category_table): Call map_char_table and copy_category_entry.
10952 (Fmake_category_table): Initialize all top-vel slots.
10953 (char_category_set): New function.
1f45f627 10954 (modify_lower_category_set): Delete.
aca7a3d2
MB
10955 (Fmodify_category_entry): Call char_table_ref_and_range.
10956
10957 * category.h (CATEGORY_SET): Just call char_category_set.
10958
10959 * ccl.c: Include "character.h".
10960 (Qccl, Qcclp): New variables.
10961 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10962 it's less than 256.
1f45f627
GM
10963 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10964 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 10965 and DST type.
1f45f627
GM
10966 (ccl_driver): Change types of argument, adjust code accordingly.
10967 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
10968 ccl_driver.
10969 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10970
1f45f627
GM
10971 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10972 New members src_multibyte, dst_multibyte, consumed, and produced.
10973 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 10974 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 10975 (ccl_driver): Update prototype.
aca7a3d2
MB
10976 (Qccl, Qcclp, Fccl_program_p): Extern them.
10977 (CHECK_CCL_PROGRAM): New macro.
10978
10979 * character.c, character.h, chartab.c: New files.
10980
1f45f627
GM
10981 * charset.c: Mostly re-written. Move character and multibyte sequence
10982 handling codes to character.c.
aca7a3d2 10983
1f45f627
GM
10984 * charset.h: Mostly re-written. Move character and multibyte sequence
10985 handling codes to character.h.
aca7a3d2
MB
10986
10987 * coding.c, coding.h: Mostly re-written.
10988
10989 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10990 (CHAR_WIDTH): Move to character.h.
10991 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 10992
1f45f627
GM
10993 * composite.h (enum composition_method): Change order of enumeration
10994 symbols.
aca7a3d2
MB
10995
10996 * data.c: Include "character.h" instead of "charset.h".
10997 (Faref): Call CHAR_TABLE_REF for a char table.
10998 (Faset): Call CHAR_TABLE_SET for a char table.
10999
1f45f627
GM
11000 * dispextern.h (free_realized_face, check_face_attribytes)
11001 (generate_ascii_font): Extern them.
11002 (free_realized_multibyte_face): Delete extern.
aca7a3d2 11003
1f45f627 11004 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
11005 table structure.
11006
11007 * editfns.c: Include "character.h" instead of "charset.h".
11008 (Fchar_to_string): Always call CHAR_STRING.
11009
11010 * emacs.c (main): Call init_charset_once, init_charset,
11011 syms_of_chartab, and syms_of_character.
11012
11013 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 11014 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 11015 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 11016 (build_annotations_2): Delete.
aca7a3d2
MB
11017 (e_write): Big change for the new code-conversion API.
11018
11019 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 11020 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
11021 (Fcopy_sequence): Call copy_char_table for a char table.
11022 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
11023 (string_char_to_byte, string_byte_to_char): Adjust for the new
11024 multibyte form.
1f45f627
GM
11025 (internal_equal): Adjust for the change of char table structure.
11026 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
11027 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
11028 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
11029 (char_table_translate, optimize_sub_char_table)
11030 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 11031 chartab.c.
1f45f627
GM
11032 (char_table_ref_and_index): Delete.
11033 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 11034 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
11035 Vcoding_category_list. Adjust for the new code-conversion API.
11036 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
11037 chartab.c.
11038
11039 * fontset.c: Mostly re-written.
11040
1f45f627 11041 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 11042 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
11043 (fontset_font_pattern, fs_load_font): Update prototype.
11044 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
11045
11046 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 11047 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
11048
11049 * insdel.c: Include "character.h" instead of "charset.h".
11050 (copy_text): Don't refer to Vnonascii_translation_table.
11051 (insert_from_gap): New function.
11052
11053 * keyboard.c: Include "character.h" instead of "charset.h".
11054 (command_loop_1): Never call direct_output_forward_char before
11055 a non-ASCII character.
11056 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 11057 translate a character.
aca7a3d2
MB
11058
11059 * keymap.c: Include "character.h".
11060 (store_in_keymap): Handle the case that IDX is a cons.
11061 (Fdefine_key): Handle the case that KEY is a cons and the car part
11062 is also a cons (range).
1f45f627 11063 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
11064 (describe_vector): Call describe_char_table for a char table.
11065 (describe_char_table): New function.
11066
11067 * keymap.h (describe_char_table): Extern it.
11068
11069 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
11070 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
11071 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
11072 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
11073 Delete.
11074 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
11075 structure.
11076 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
11077 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
11078 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 11079 (chartab_size): Extern it.
1f45f627 11080 (struct Lisp_Char_Table): Re-design.
aca7a3d2 11081 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
11082 (HASH_KEY, HASH_VALUE): Move from fns.c.
11083 (CHARACTERBITS): Define as 22.
11084 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
11085 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
11086 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
11087 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
11088 (code_convert_string_norecord): Deleted extern.
11089 (init_character_once, syms_of_character, init_charset)
11090 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
11091
11092 * lread.c: Include "character.h".
11093 (read_multibyte): New arg NBYTES.
1f45f627
GM
11094 (read_escape): Change the meaning of returned *BYTEREP.
11095 (to_multibyte): Delete.
11096 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
11097
11098 * print.c: Include "character.h" instead of "charset.h".
11099 (print_string): Convert 8-bit raw bytes to octal form by
11100 string_escape_byte8.
1f45f627 11101 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
11102 raw bytes always in octal form. Handle sub char table correctly.
11103
11104 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
11105 (read_process_output, send_process): Adjust for the new
11106 code-conversion API.
aca7a3d2 11107
1f45f627 11108 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
11109
11110 * regex.c: Include "character.h" instead of "charset.h".
11111 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
11112 (regex_compile): Accept a range whose starting and ending
11113 character have different leading bytes.
1f45f627 11114 (analyse_first): Adjust for the above change.
aca7a3d2
MB
11115
11116 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
11117 (search_buffer, boyer_moore): Adjust for the new multibyte form.
11118 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
11119
11120 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 11121 (syntax_parent_lookup): Delete.
aca7a3d2 11122 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 11123 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
11124 (init_syntax_once): Call char_table_set_range instead of directly
11125 accessing the structure of a char table.
11126
11127 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 11128 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
11129 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
11130 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
11131
11132 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
11133 (encode_terminal_code, write_glyphs): Adjust for the new
11134 code-conversion API.
aca7a3d2
MB
11135 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
11136
1f45f627 11137 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
11138
11139 * xdisp.c: Include "character.h".
1f45f627
GM
11140 (get_next_display_element): Adjust for the new multibyte form.
11141 (disp_char_vector): Adjust for the new char table structure.
11142 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 11143 coding system.
1f45f627 11144 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
11145
11146 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 11147 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
11148 FS_LOAD_FONT.
11149 (generate_ascii_font): New function.
1f45f627
GM
11150 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
11151 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 11152 (free_realized_face): Make it public.
1f45f627 11153 (free_realized_faces_for_fontset): Rename from
aca7a3d2 11154 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 11155 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
11156 fontset_font_pattern and FS_LOAD_FONT.
11157
11158 * xfns.c: Include "character.h".
1f45f627 11159 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
11160
11161 * xselect.c: Don't include "charset.h".
1f45f627 11162 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
11163
11164 * xterm.c: Include "character.h".
1f45f627 11165 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
11166 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
11167 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
11168 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
11169 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
11170 (XTread_socket): Adjust for the new code-conversion API.
11171 (x_new_font): Adjust for the change of FS_LOAD_FONT.
11172 (x_load_font): Adjust for the change of struct font.
aca7a3d2 11173
d6abfc14
SM
111742008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11175
11176 * xfaces.c (face_at_buffer_position): Remove unused vars.
11177
0acdaf8d
KH
111782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11179
4c4475a8
GM
11180 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
11181 Fix overflow checking.
0acdaf8d 11182
6c8a0ebf
GM
111832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11184
11185 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
11186 Cancel previous change.
11187
111882008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
11189
11190 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
11191 ccl->eight_bit_control. Fix check for buffer overflow.
11192 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
11193 (ccl_driver): Initialize extra_bytes to 0.
11194
a32aad64
KH
111952008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
11196
11197 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
11198 return it ORed with ctrl_modifier.
11199
8b329dba
MB
112002008-01-29 Miles Bader <miles@gnu.org>
11201
11202 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
11203
548667aa
JR
112042008-01-28 Jason Rumney <jasonr@gnu.org>
11205
11206 * w32.c (stat): Don't double check for networked drive.
11207
0975aa24
SM
112082008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
11209
ef264c42
SM
11210 * window.c (run_window_configuration_change_hook): New function.
11211 Code extracted from set_window_buffer. Set the selected frame.
11212 (set_window_buffer): Use it.
11213 * window.h (run_window_configuration_change_hook): Declare.
11214 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
11215
0975aa24
SM
11216 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
11217
9c28b587
DN
112182008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
11219
11220 * Makefile.in: Remove references to unused macros.
11221
c617afce
EZ
112222008-01-26 Eli Zaretskii <eliz@gnu.org>
11223
11224 * w32.c (g_b_init_get_sid_sub_authority)
11225 (g_b_init_get_sid_sub_authority_count): New static variables.
11226 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
11227 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
11228 (init_user_info): Use them to retrieve uid and gid.
11229 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
11230 (fstat): Use pw_uid and pw_gid from the_passwd structure for
11231 st_uid and st_gid of the file.
c617afce 11232
302d7d54
JR
112332008-01-26 Jason Rumney <jasonr@gnu.org>
11234
11235 * w32.c (logon_network_drive): New function.
11236 (stat): Use it.
11237
3ac7a21e
CY
112382008-01-26 Chong Yidong <cyd@stupidchicken.com>
11239
11240 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
11241 invisible text covered with an ellipsis.
11242
bbb9fc1f
RS
112432008-01-25 Richard Stallman <rms@gnu.org>
11244
11245 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
11246 jump back to beginning. Move some other initializations after that.
11247 (Qwindow_text_change_functions, Vwindow_text_change_functions):
11248 New variables.
11249 (syms_of_xdisp): Init them.
11250
11251 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
11252
0975aa24
SM
11253 * buffer.c (reset_buffer_local_variables):
11254 Implement `permanent-local-hook'.
bbb9fc1f 11255 (Qpermanent_local_hook): New variable.
0975aa24 11256 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 11257
79235cbe
MA
112582008-01-25 Michael Albinus <michael.albinus@gmx.de>
11259
11260 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
11261
ccd8f7fe
TTN
112622008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
11263
11264 * fns.c (Fclrhash): Return TABLE.
11265
dfbe40f2 112662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
11267
11268 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
11269 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
11270 is set even without positional changes.
11271 (x_scroll_bar_clear): Set bar->redraw_needed_p.
11272
11273 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
11274
dfbe40f2 112752008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 11276
d6169680
JR
11277 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
11278
602e142f
JR
11279 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
11280 the unicode range available in MULE by locale-coding-system.
c041e2d1 11281 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
11282 earlier.
11283
dfbe40f2 112842008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
11285
11286 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
11287 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 11288 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
11289 when used on child processes.
11290
8c7a4ac5
MA
112912008-01-21 Michael Albinus <michael.albinus@gmx.de>
11292
e0df1b73 11293 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 11294 Fdbus_method_return.
e0df1b73 11295 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 11296 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 11297 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 11298
8abe0f97
MR
112992008-01-20 Martin Rudalics <rudalics@gmx.at>
11300
11301 * undo.c (undo_inhibit_record_point): New variable.
11302 (syms_of_undo): Initialize it.
11303 (record_point): Don't record point when undo_inhibit_record_point
11304 is set.
11305
c3b232e4
SM
113062008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
11307
e69c4cae
SM
11308 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
11309
823e0ebb
SM
11310 * xdisp.c (Qauto_hscroll_mode): New var.
11311 (syms_of_xdisp): Initialize it.
11312 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
11313 window's buffer.
11314 (hscroll_windows): Don't check automatic_hscrolling_p here.
11315
c3b232e4
SM
11316 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
11317 vscroll if we're setting window-buffer to the value it already has.
11318
76ed5e01
DN
113192008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
11320
11321 * m/intel386.h: Remove references to XENIX.
11322
55e6d9b2
AS
113232008-01-17 Andreas Schwab <schwab@suse.de>
11324
11325 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
11326 instead of HAVE_X86_64_LIB64_DIR.
11327 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
11328
b16ed52d
GM
113292008-01-17 Glenn Morris <rgm@gnu.org>
11330
11331 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
11332 to HAVE_X86_64_LIB64_DIR.
11333
6bed5c4a
DN
113342008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
11335
11336 * s/irix3-3.h:
11337 * s/irix4-0.h:
11338 * s/386-ix.h:
11339 * s/domain.h:
11340 * s/hpux9-x11r4.h:
11341 * s/hpux9shxr4.h: Remove files for systems no longer supported.
11342
11343 * sysdep.c: Remove code containing references to symbols defined
11344 by unsupported systems.
11345
fdecf907
GM
113462008-01-16 Glenn Morris <rgm@gnu.org>
11347
11348 * coding.c (select-safe-coding-system-function): Doc fix.
11349
9292328f
GM
113502008-01-15 Glenn Morris <rgm@gnu.org>
11351
11352 * config.in: Revert 2008-01-13 change: this is a generated file.
11353
944df511
MO
113542008-01-13 Tom Tromey <tromey@redhat.com>
11355
11356 * lisp.h: Fix typo.
11357
8111ec05
DN
113582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11359
f40f5dc3
DN
11360 * m/sequent-ptx.h:
11361 * m/sequent.h:
11362 * s/ptx.h:
11363 * s/ptx4-2.h:
11364 * s/ptx4.h: Remove files for systems no longer supported.
11365
ce20b664 11366 * callproc.c (Fcall_process): Fix previous change.
8111ec05 11367
e39a993c
DN
113682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11369
052e457f 11370 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 11371
290afd83
JB
11372 * m/mips.h:
11373 * m/intel386.h:
e39a993c
DN
11374 * callproc.c:
11375 * config.in:
11376 * ecrt0.c:
11377 * emacs.c:
11378 * fileio.c:
11379 * frame.c:
11380 * getpagesize.h:
11381 * keyboard.c:
11382 * lread.c:
11383 * process.c:
11384 * puresize.h:
11385 * sysdep.c:
11386 * systty.h:
11387 * syswait.h:
11388 * unexec.c:
11389 * xdisp.c:
11390 * alloc.c: Remove code containing references to symbols defined by
11391 unsupported systems.
11392
81cd7687
KH
113932008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
11394
11395 * coding.c (detect_coding_mask): Fix previous change.
11396
218b3b76
KH
113972008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
11398
11399 * coding.c (detect_coding_iso2022): New arg
11400 latin_extra_code_state. Allow Latin extra codes only
11401 when *latin_extra_code_state is nonzero.
11402 (detect_coding_mask): If there is a NULL byte, detect the encoding
11403 as UTF-16 or binary. If Latin extra codes exist, detect the
11404 encoding as ISO-2022 only when there's no other proper encoding is
11405 found.
11406
59ce725a 114072008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 11408
59ce725a
MB
11409 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
11410 #ifdef MAC_OS.
048addec 11411
59ce725a 114122008-01-08 Richard Stallman <rms@gnu.org>
048addec 11413
59ce725a 11414 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 11415
8290574e
NR
114162008-01-06 Nick Roberts <nickrob@snap.net.nz>
11417
a0a3805c 11418 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
11419 menu bar in parentheses.
11420
f3041af1
DN
114212008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
11422
11423 * m/7300.h:
11424 * m/acorn.h:
11425 * m/alliant-2800.h:
11426 * m/alliant.h:
11427 * m/alliant1.h:
11428 * m/alliant4.h:
11429 * m/altos.h:
11430 * m/amdahl.h:
11431 * m/apollo.h:
11432 * m/att3b.h:
11433 * m/aviion-intel.h:
11434 * m/aviion.h:
11435 * m/celerity.h:
11436 * m/clipper.h:
11437 * m/cnvrgnt.h:
11438 * m/convex.h:
11439 * m/cydra5.h:
11440 * m/delta88k.h:
11441 * m/dpx2.h:
11442 * m/dual.h:
11443 * m/elxsi.h:
11444 * m/f301.h:
11445 * m/gould-np1.h:
11446 * m/gould.h:
11447 * m/i860.h:
11448 * m/ibmps2-aix.h:
11449 * m/ibmrt-aix.h:
11450 * m/ibmrt.h:
11451 * m/irist.h:
11452 * m/is386.h:
11453 * m/isi-ov.h:
11454 * m/mega68.h:
11455 * m/mg1.h:
11456 * m/news-r6.h:
11457 * m/news-risc.h:
11458 * m/news.h:
11459 * m/nh3000.h:
11460 * m/nh4000.h:
11461 * m/ns16000.h:
11462 * m/ns32000.h:
11463 * m/nu.h:
11464 * m/orion.h:
11465 * m/orion105.h:
11466 * m/paragon.h:
11467 * m/pfa50.h:
11468 * m/plexus.h:
11469 * m/pyramid.h:
11470 * m/pyrmips.h:
11471 * m/sh3el.h:
11472 * m/sps7.h:
11473 * m/sr2k.h:
11474 * m/stride.h:
11475 * m/sun1.h:
11476 * m/sun2.h:
11477 * m/sun3-68881.h:
11478 * m/sun3-fpa.h:
11479 * m/sun3-soft.h:
11480 * m/sun3.h:
11481 * m/sun386.h:
11482 * m/symmetry.h:
11483 * m/tad68k.h:
11484 * m/tahoe.h:
11485 * m/targon31.h:
11486 * m/tek4300.h:
11487 * m/tekxd88.h:
11488 * m/tower32.h:
11489 * m/tower32v3.h:
11490 * m/ustation.h:
11491 * m/wicat.h:
11492 * m/xps100.h:
11493 * s/cxux.h:
11494 * s/cxux7.h:
11495 * s/dgux.h:
11496 * s/dgux4.h:
11497 * s/dgux5-4-3.h:
11498 * s/dgux5-4r2.h:
11499 * s/esix.h:
11500 * s/esix5r4.h:
11501 * s/hiuxmpp.h:
11502 * s/hiuxwe2.h:
11503 * s/iris3-5.h:
11504 * s/iris3-6.h:
11505 * s/isc2-2.h:
11506 * s/isc3-0.h:
11507 * s/isc4-0.h:
11508 * s/isc4-1.h:
11509 * s/newsos5.h:
11510 * s/newsos6.h:
11511 * s/osf1.h:
11512 * s/osf5-0.h:
11513 * s/riscix1-1.h:
11514 * s/riscix12.h:
11515 * s/sco4.h:
11516 * s/sco5.h:
11517 * s/sunos4-0.h:
11518 * s/sunos4-1.h:
11519 * s/sunos413.h:
11520 * s/sunos4shr.h:
11521 * s/umax.h:
11522 * s/unipl5-2.h:
11523 * s/xenix.h:
11524 * cxux-crt0.s:
11525 * unexapollo.c:
11526 * unexconvex.c:
11527 * unexenix.c:
11528 * unexsni.c: Remove files for systems no longer supported.
11529
11530 * m/intel386.h: Remove references to unsupported systems.
11531
11532 * w32.c (get_emacs_configuration): Remove reference to i860.
11533
11534 * sysdep.c: Remove dead code.
11535
d35e1cd7
DN
115362008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
11537
11538 * s/rtu.h:
a0a3805c 11539 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 11540
abe136ee
MA
115412008-01-04 Michael Albinus <michael.albinus@gmx.de>
11542
11543 * dbusbind.c (Fdbus_method_return): New function.
11544 (xd_read_message): Add the serial number to the event.
11545 (Fdbus_register_method): Activate the function.
11546
87df3c32
SM
115472008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
11548
11549 * keyboard.c (read_key_sequence): Fix typo.
11550
5125905e
MA
115512008-01-03 Michael Albinus <michael.albinus@gmx.de>
11552
11553 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
11554 (xd_signature, xd_append_arg): Handle element type detection for
11555 empty arrays.
11556 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
11557 SDATA () calls; this must be solved more general.
11558 (Fdbus_register_signal): Use SBYTES instead of strlen.
11559
8bba1b5c
MH
115602008-01-03 Magnus Henoch <magnus@zemdatav>
11561
11562 * dbusbind.c (xd_append_arg): Use unsigned char instead of
11563 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 11564 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 11565
a0a3805c 115662007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
11567
11568 * dbusbind.c (xd_read_message): Use non-static input_event struct.
11569
a271e124
MH
115702007-12-31 Magnus Henoch <mange@freemail.hu>
11571
11572 * dbusbind.c (xd_signature): Signature of variant is just "v".
11573
17bc8f94
MA
115742007-12-30 Michael Albinus <michael.albinus@gmx.de>
11575
87df3c32 11576 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 11577 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
11578 (XD_ERROR, XD_DEBUG_MESSAGE)
11579 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
11580 (xd_append_arg): Part for basic D-Bus types rewitten.
11581 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
11582 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
11583 appropriate.
11584 (xd_read_message): Return Qnil. Don't signal an error; it is not
11585 useful during event reading.
11586 (Fdbus_register_signal): Signal an error if the check for
11587 FUNCTIONP fails.
11588 (Fdbus_register_method): New function. The implementation is not
11589 complete, the call of the function signals an error therefore.
11590 (Fdbus_unregister_object): New function, renamed from
11591 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 11592 the object is not well formed.
17bc8f94 11593
dd6f2802
RS
115942007-12-30 Richard Stallman <rms@gnu.org>
11595
11596 * textprop.c (get_char_property_and_overlay):
11597 Signal error if POSITION is out of range in a buffer.
11598
1da8a031
MR
115992007-12-29 Martin Rudalics <rudalics@gmx.at>
11600
11601 * w32fns.c (Fx_create_frame): Make copy of frame parameters
11602 because the original parameters are in pure storage now.
11603
5742be86
YM
116042007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11605
11606 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
11607
b014713c
EZ
116082007-12-22 Eli Zaretskii <eliz@gnu.org>
11609
b17f53ab
MB
11610 * callint.c (syms_of_callint) <command-history>: Add reference to
11611 history-length in the doc string.
048addec 11612
b17f53ab 116132007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 11614
b17f53ab
MB
11615 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
11616 before passing as wParam.
048addec 11617
9af5078b
MA
116182007-12-22 Michael Albinus <michael.albinus@gmx.de>
11619
11620 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
11621 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
11622 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
11623 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
11624 as number.
11625 (Fdbus_call_method): Fix docstring.
11626
87cf1a39
MA
116272007-12-21 Michael Albinus <michael.albinus@gmx.de>
11628
11629 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
11630 New macros.
87df3c32 11631 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
11632 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
11633 Simplify.
87cf1a39
MA
11634 (xd_signature): New function.
11635 (xd_append_arg): Compute also signatures. Major rewrite.
11636 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
11637 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
11638 Check for signatures of arguments.
87cf1a39 11639
54371585
MA
116402007-12-19 Michael Albinus <michael.albinus@gmx.de>
11641
11642 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
11643 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
11644 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
11645 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
11646 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 11647 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
11648 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
11649 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 11650 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
11651 (xd_append_arg): New function.
11652 (Fdbus_call_method, Fdbus_send_signal): Apply it.
11653
f5306ca3
MA
116542007-12-16 Michael Albinus <michael.albinus@gmx.de>
11655
11656 * dbusbind.c (top): Include <stdio.h>.
11657 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
11658 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
11659 (Fdbus_register_signal): Rename unique_name to uname.
11660 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
11661 non-existing unique name. Fix typos in matching rule. Return an
11662 object which is useful in Fdbus_unregister_signal.
11663 (Fdbus_unregister_signal): Reimplementation, in order to remove
11664 only the corresponding entry.
11665 (Vdbus_registered_functions_table): Change the order of entries.
11666 Apply these changes in xd_read_message and Fdbus_register_signal.
11667
77a28bbf
AS
116682007-12-16 Andreas Schwab <schwab@suse.de>
11669
11670 * fileio.c (Finsert_file_contents): Fix overflow check to not
11671 depend on undefined integer overflow.
11672
2e3566d8
JR
116732007-12-14 Jason Rumney <jasonr@gnu.org>
11674
11675 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
11676 for characters above 127.
11677
bf254037
JR
116782007-12-13 Jason Rumney <jasonr@gnu.org>
11679
11680 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
11681 before dereferencing array.
11682 (lookup_vk_code): Remove zero comparison.
11683
eb7c7bf5
MA
116842007-12-14 Michael Albinus <michael.albinus@gmx.de>
11685
11686 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
11687 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
11688 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
11689 (xd_read_message, Fdbus_register_signal): Split expressions into
11690 multiple lines before operators "&&" and "||", according to the
11691 GNU Coding Standards.
11692
34fb0fc9
EZ
116932007-12-14 Eli Zaretskii <eliz@gnu.org>
11694
11695 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
11696
c7d97628
JL
116972007-12-12 Juri Linkov <juri@jurta.org>
11698
11699 * buffer.c (Frename_buffer): In interactive spec replace
11700 `read-buffer' with `read-string' that uses `buffer-name-history'
11701 as history, and the current buffer's name as default.
11702
3709505e
SM
117032007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
11704
11705 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
11706 manipulating the backtrace manually.
11707 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
11708 (struct backtrace, backtrace_list): Remove.
11709 (command_loop_1): Remove dead var `no_direct'.
11710
11711 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
11712 preserve non-built-in buffer-local variables.
11713 (Fkill_all_local_variables): Don't re-create&re-set permanent
11714 buffer-local variables.
11715
e2bec886
JL
117162007-12-09 Juri Linkov <juri@jurta.org>
11717
11718 * buffer.c (Frename_buffer): Change interactive spec from "s" to
11719 Lisp code that uses `read-buffer' with current buffer as default.
11720
a31d47c7
MA
117212007-12-08 Michael Albinus <michael.albinus@gmx.de>
11722
11723 * dbusbind.c (xd_read_message): Generate an event for every
11724 registered handler. There might be several handlers registered
11725 for the same signal.
11726 (Fdbus_register_signal): Don't overwrite a registration for the
11727 same signal. Add a new registration if handlers are different.
11728 (Vdbus_registered_functions_table): Rework doc string.
11729
52da95fa
MA
117302007-12-07 Michael Albinus <michael.albinus@gmx.de>
11731
11732 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
11733 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
11734 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
11735 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
11736 Unify argument lists.
a0a3805c 11737 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
11738 arguments and hash table keys. Use unique name for service.
11739 (Fdbus_unregister_signal): Remove checks.
11740 (Vdbus_registered_functions_table): Fix doc string.
11741
e5e76c04 117422007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
11743
11744 * process.c (make_process): Initialize pty_flag to 0.
11745
e5e76c04 117462007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
11747
11748 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
11749 specified XBMs.
11750
e5e76c04 117512007-12-05 Richard Stallman <rms@gnu.org>
048addec 11752
e5e76c04 11753 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 11754
e5e76c04 117552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11756
e5e76c04
MB
11757 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
11758 New variable.
11759 (mac_try_close_socket) [MAC_OSX]: New function.
11760 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
11761 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 11762
e5e76c04
MB
11763 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
11764 Use mac_try_close_socket.
048addec 11765
e5e76c04 117662007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11767
e5e76c04
MB
11768 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
11769 reloc_base.
11770 (copy_dysymtab): Compute relocation base here.
11771 (rebase_reloc_address) [__ppc64__]: New function.
11772 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
11773 changed.
048addec 11774
e5e76c04 117752007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 11776
e5e76c04 11777 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 11778
e5e76c04 117792007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11780
e5e76c04
MB
11781 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
11782 __objc_* sections.
11783 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 11784
96faeb40
MA
117852007-12-05 Michael Albinus <michael.albinus@gmx.de>
11786
11787 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
11788 Move check for Vdbus_registered_functions_table to
11789 xd_read_queued_messages.
11790 (xd_read_queued_messages): Protect xd_read_message calls by
11791 internal_condition_case_1.
11792
39abdd4a
MA
117932007-12-04 Michael Albinus <michael.albinus@gmx.de>
11794
87df3c32 11795 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 11796 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 11797 (Vdbus_intern_symbols): Remove.
39abdd4a 11798 (Vdbus_registered_functions_table): New hash table.
87df3c32 11799 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 11800 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 11801 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
11802 Vdbus_registered_functions_table.
11803
880820fe 118042007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
11805
11806 * xterm.c: Update URL to Window Manager Specification in comment.
11807
033b73e2
MA
118082007-12-02 Michael Albinus <michael.albinus@gmx.de>
11809
11810 * config.in (HAVE_DBUS): Add.
11811
a0a3805c 11812 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
11813 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
11814 (obj): Add $(DBUS_OBJ).
11815 (LIBES): Add $(DBUS_LIBS).
11816 (dbusbind.o): New target.
11817
11818 * dbusbind.c: New file.
11819
11820 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
11821
11822 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 11823 (Qdbus_event): New Lisp symbol.
033b73e2 11824 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 11825 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
11826 (keys_of_keyboard ): Define dbus-event.
11827
11828 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
11829
39d0bf74
RS
118302007-12-01 Richard Stallman <rms@gnu.org>
11831
11832 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
11833
f3157c65
JR
118342007-11-30 Jason Rumney <jasonr@gnu.org>
11835
11836 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
11837 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
11838 (w32_face_attributes): Don't use color indexes that are out of range.
11839 Only reverse the default colors.
f3157c65
JR
11840
11841 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
11842 WINDOWSNT.
11843
11844 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
11845
b510360c
JR
118462007-11-29 Jason Rumney <jasonr@gnu.org>
11847
11848 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
11849 (w32_face_attributes): Use Vtty_defined_color_alist to determine
11850 if the terminal colors are initialized.
11851 (unspecified_fg, unspecified_bg): Remove unused declarations.
11852
4b7ab1c4
AS
118532007-11-29 Andreas Schwab <schwab@suse.de>
11854
11855 * keyboard.c (apply_modifiers): Fix typo.
11856
4bb6c266
RS
118572007-11-29 Richard Stallman <rms@gnu.org>
11858
11859 * keymap.c (Fcurrent_local_map): Doc fix.
11860
aa44cd84
GM
118612007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
11862
11863 * s/gnu-kfreebsd.h: New file.
11864
21ec2c43
SM
118652007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
11866
cc648cef
SM
11867 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
11868 Don't cast redundantly.
11869
21ec2c43
SM
11870 * keyboard.c (KEY_TO_CHAR): New macro.
11871 (parse_modifiers, apply_modifiers): Accept integer arguments.
11872 (read_key_sequence): Use them to unify the "shift->unshift" mapping
11873 for chars and symbol keys.
11874 After doing such remapping, apply function-key-map again.
11875
73e72da4
DN
118762007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
11877
11878 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11879 compiled anymore.
11880
254693ff
AS
118812007-11-26 Andreas Schwab <schwab@suse.de>
11882
11883 * process.c (list_processes_1): Fix indentation level of the
11884 command column.
11885
ff6e6ac8
AS
118862007-11-23 Andreas Schwab <schwab@suse.de>
11887
11888 * editfns.c (Fformat): Handle %c specially since it requires the
11889 argument to be of type int.
11890
f7cf8b20
SM
118912007-11-23 Markus Triska <markus.triska@gmx.at>
11892
11893 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 11894 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 11895
569c11e3
SM
118962007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11897
8787dd73
SM
11898 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11899 (find_symbol_value): Use do_symval_forwarding.
11900
569c11e3
SM
11901 * data.c (set_internal): Set the value in the `cons-cell' (for
11902 Buffer_Local_values) not only for frame-local variables.
11903
6af1696d
AS
119042007-11-22 Andreas Schwab <schwab@suse.de>
11905
11906 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11907 values to sprintf.
11908 * keymap.c (Fsingle_key_description): Likewise.
11909 * print.c (print_object): Likewise.
11910
880820fe 119112007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
11912
11913 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11914 file for image is nil.
11915
7c401d15
DN
119162007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
11917
11918 * term.c: Include stdarg.h.
569c11e3 11919 (fatal): Implement using varargs.
a0a3805c 11920 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 11921
64e16c3c
SM
119222007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11923
11924 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11925 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11926 Update call to buffer_slot_type_mismatch.
11927 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11928 (buffer_slot_type_mismatch): Update.
11929 * buffer.c (buffer_local_types): Remove.
11930 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11931 (defvar_per_buffer): Set the type in the buffer_objfwd.
11932
d4aa48db 119332007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 11934
64e16c3c
SM
11935 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11936 CreateFileMapping returns NULL on failure.
5f42a7eb 11937
d4aa48db 119382007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 11939
d4aa48db
MB
11940 * search.c (Fset_match_data): Remove the `evaporate' feature.
11941 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 11942
bdae0540
JR
119432007-11-21 Jason Rumney <jasonr@gnu.org>
11944
11945 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11946
11947 * w32console.c (w32con_write_glyphs): Remove unused variables.
11948
202c09a8
DN
119492007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
11950
b951420f
DN
11951 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11952
202c09a8
DN
11953 * s/darwin.h (MULTI_KBOARD): Remove.
11954
11955 * macfns.c (x_create_tip_frame, Fx_create_frame)
11956 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11957
bae72c12
SM
119582007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11959
e7c10f83
SM
11960 * buffer.c (Fbuffer_local_value): Remove redundant test.
11961 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11962 than in `current-buffer' to match the comment.
11963 Do the swap using swap_in_global_binding.
11964
136eb6ed
SM
11965 * data.c (store_symval_forwarding, set_internal):
11966 * eval.c (specbind): Remove dead code.
11967
bae72c12
SM
11968 * coding.c (detect_coding, Fupdate_coding_systems_internal):
11969 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11970 Since we do not want to see internal Lisp_*fwd objects here.
11971
880820fe 119722007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 11973
3d66b985
JD
11974 * sysdep.c (init_system_name): Use getaddrinfo if available.
11975
95fbaefc
JD
11976 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11977 (x_scroll_bar_note_movement): start, end, with, height in struct
11978 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11979
6c1d8cb6
DN
119802007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
11981
11982 * puresize.h (BASE_PURESIZE): Increase to 1190000.
11983
30f95089
SM
119842007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11985
66b04bd4
SM
11986 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11987 This undoes Richard's change of 14-Oct-2002.
11988
6d3f2bb2
SM
11989 * alloc.c (allocate_other_vector):
11990 * lisp.h (allocate_other_vector): Remove.
11991
b05b4e27
SM
11992 * window.c (struct save_window_data): Move non-lisp data to the end
11993 and make it `int' rather than Lisp_Object.
11994 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11995 Done wrap/unwrap integer values.
11996 (Fset_window_configuration, compare_window_configurations):
11997 Update use of fields to their new types.
11998
056ce195
SM
11999 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
12000 Turn integer fields into `int'. Merge x_window_low and x_window_high.
12001 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
12002 (SET_SCROLL_BAR_X_WINDOW): Remove.
12003 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
12004 Access the new x_window field directly.
12005 * xterm.c (x_scroll_bar_create): Use a pseudovector.
12006 Don't wrap/unwrap integers into Lisp_Objects.
12007 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
12008 (x_scroll_bar_report_motion):
12009 Don't wrap/unwrap integers into Lisp_Objects.
12010 (x_term_init): Use SDATA.
12011 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
12012 (x_scroll_bar_set_handle, x_scroll_bar_remove)
12013 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
12014 (x_scroll_bar_report_motion, x_scroll_bar_clear):
12015 * xfns.c (x_set_background_color):
12016 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
12017 Access the new x_window field directly.
12018
30f95089
SM
12019 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
12020 (allocate_pseudovector): Make non-static.
6d3f2bb2 12021
30f95089
SM
12022 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
12023 (allocate_pseudovector): Declare.
6f69e89b 12024 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 12025
9b6112e8
AS
120262007-11-15 Andreas Schwab <schwab@suse.de>
12027
30f95089
SM
12028 * editfns.c (Fformat): Correctly format EMACS_INT values.
12029 Also take precision into account when formatting an integer.
0f860bd7 12030
9b6112e8
AS
12031 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
12032
262fcd41
SM
120332007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
12034
58da34c7
SM
12035 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
12036 (syms_of_keyboard): Defsubr it.
12037
262fcd41
SM
12038 * data.c (swap_in_global_binding): Fix longstanding bug where
12039 store_symval_forwarding was not called with the right second argument,
12040 thus causing objfwd-ing from being dropped.
12041
d29a9848
JB
120422007-11-14 Juanma Barranquero <lekktu@gmail.com>
12043
12044 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
12045 (Fx_display_pixel_height, Fx_display_planes)
12046 (Fx_display_color_cells, Fx_server_max_request_size)
12047 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12048 (Fx_display_visual_class, Fx_display_save_under):
12049 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
12050 (Fx_display_pixel_height, Fx_display_planes)
12051 (Fx_display_color_cells, Fx_server_max_request_size)
12052 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12053 (Fx_display_mm_height, Fx_display_mm_width)
12054 (Fx_display_backing_store, Fx_display_visual_class)
12055 (Fw32_select_font, Fx_display_save_under):
12056 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
12057 (Fx_display_pixel_height, Fx_display_planes)
12058 (Fx_display_color_cells, Fx_server_max_request_size)
12059 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12060 (Fx_display_save_under): Fix typos in docstrings.
12061
74084731
JB
120622007-11-14 Juanma Barranquero <lekktu@gmail.com>
12063
12064 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
12065 corresponding to deleted entries; they are an implementation detail.
12066 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
12067 Remove variables.
12068 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
12069 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
12070 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
12071 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
12072 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 12073 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 12074 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
12075 Fix typos in docstrings.
12076 (Fx_server_version): Reflow docstring.
12077 (Fw32_shell_execute): Doc fixes.
74084731 12078
fb053a1f
JB
120792007-11-13 Juanma Barranquero <lekktu@gmail.com>
12080
12081 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
12082 if w32_parse_hot_key returned nil.
12083
a457417e 120842007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 12085
a457417e 12086 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 12087
4b219faa
JR
120882007-11-09 Jason Rumney <jasonr@gnu.org>
12089
12090 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
12091
12092 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
12093
12094 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
12095 Remove W32_SCROLL_BAR_CLICK_EVENT.
12096
12097 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
12098 Add MULTIMEDIA_KEY_EVENT.
12099
12100 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
12101 (lispy_multimedia_keys) [WINDOWSNT]: New array.
12102 (make_lispy_event) [WINDOWSNT]: Use it to translate
12103 MULTIMEDIA_KEY_EVENT.
12104
12105 * w32term.h (WM_APPCOMMAND): Define if not already.
12106 (GET_APPCOMMAND_LPARAM): Likewise.
12107
12108 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
12109 WM_APPCOMMAND.
12110
12111 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
12112 (syms_of_w32fns): Export and initialize it.
12113 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
12114
c12ecb0a 121152007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
12116
12117 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
12118 twice.
12119
12120 * xdisp.c (handle_face_prop): Fix last change.
12121
c12ecb0a 121222007-11-09 Richard Stallman <rms@gnu.org>
048addec 12123
c12ecb0a
MB
12124 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
12125 not just for after-strings and before-strings.
12126 Call face_for_overlay_string and pass the overlay to it.
12127 (handle_display_prop): Determine whether property came from an overlay.
12128 Pass OVERLAY arg to handle_single_display_spec.
12129 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
12130 (load_overlay_strings): Fill in it->string_overlays.
12131 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 12132
c12ecb0a
MB
12133 * xfaces.c (face_for_overlay_string): Function renamed from
12134 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 12135
c12ecb0a
MB
12136 * dispextern.h (struct it): New elt string_overlays.
12137 New elt from_overlay, also in stack.
12138 Rearrange a few elements.
12139 (face_for_overlay_string): Decl renamed from
12140 face_at_buffer_position_no_overlays, and add argument.
15fff01d 12141
c12ecb0a 121422007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 12143
c12ecb0a
MB
12144 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
12145 to get the base face for an overlay string.
0d8466cc 12146
c12ecb0a 12147 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 12148
c12ecb0a 12149 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 12150
c12ecb0a 12151 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 12152
c12ecb0a 121532007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 12154
c12ecb0a
MB
12155 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
12156 Fix conversion from Lisp object to ATSUFontID.
07025a55 12157
c12ecb0a 121582007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 12159
c12ecb0a 12160 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 12161
c12ecb0a 121622007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 12163
c12ecb0a
MB
12164 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
12165 Don't assume regions are aligned to page boundary.
12166 (print_load_command_name): Add LC_UUID if defined.
3a232704 12167
c12ecb0a 121682007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 12169
c12ecb0a 12170 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 12171
b8ddfbcc
JR
121722007-11-07 Jason Rumney <jasonr@gnu.org>
12173
12174 * s/windows95.h: Remove.
12175
880820fe 121762007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
12177
12178 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
12179 abort with a message on unhandled store_type values.
12180
880820fe 121812007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
12182
12183 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
12184 Remove HAVE_X11R5 and HAVE_X11R4.
12185
04a697fe
DN
121862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
12187
12188 * Makefile.in: Remove references to sunfns.c and sunfns.o.
12189
880820fe 121902007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
12191
12192 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 12193 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
12194 x_set_glyph_string_gc from x_draw_glyph_string.
12195
07e5c0b0
DN
121962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
12197
2a2e8de7 12198 * sunfns.c: Remove file.
07e5c0b0
DN
12199
12200 * m/sun386.h:
12201 * m/sun2.h:
12202 * m/sparc.h: Remove Sun windows code.
12203
1bc973c2
SM
122042007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
12205
12206 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
12207 (init_keyboard): Set current_kboard's window-system to nil.
12208 (tty_read_avail_input): Typo.
12209 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
12210
c22140f6
DN
122112007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
12212
12213 * s/usg5-4.h:
12214 * s/usg5-3.h:
12215 * s/ptx.h:
12216 * m/is386.h:
12217 * m/ibmps2-aix.h:
2a2e8de7 12218 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
12219
12220 * dispnew.c (syms_of_display): Don't mention version 10.
12221
660a8219
JB
122222007-10-28 Juanma Barranquero <lekktu@gmail.com>
12223
12224 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
12225 ($(BLD)/abbrev.$(O)): Remove.
12226
e047f448
SM
122272007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12228
12229 Rewrite abbrev.c in Elisp.
12230 * image.c (Qcount): Don't declare as extern.
12231 (syms_of_image): Initialize and staticpro `Qcount'.
12232 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
12233 * emacs.c (main): Don't call syms_of_abbrev.
12234 * Makefile.in (obj): Remove abbrev.o.
12235 (abbrev.o): Remove.
12236 * abbrev.c: Remove.
12237
67b73e3a
MR
122382007-10-26 Martin Rudalics <rudalics@gmx.at>
12239
12240 * window.c (window_min_size_2): Don't count header-line.
12241
e3d7bd83
DN
122422007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
12243
12244 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 12245 field to take advantage of the available space. Group all the
e3d7bd83
DN
12246 chars together to reduce wasted space due to padding.
12247
a3547743
JB
122482007-10-26 Juanma Barranquero <lekktu@gmail.com>
12249
e298936f
JB
12250 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
12251
d3d47262
JB
12252 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
12253 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
12254 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
12255 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
12256 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
12257 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
12258 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
12259 (last_marked, mark_object_loop_halt): Make static.
12260
a3547743
JB
12261 * frame.c (syms_of_frame) <delete-frame-functions>:
12262 Fix typo in docstring.
12263
14c71d8b
JB
122642007-10-25 Juanma Barranquero <lekktu@gmail.com>
12265
12266 * w32.c (init_environment): Fix tiny memory leak.
66199f74 12267 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 12268
70b8d0a4
SM
122692007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
12270
12271 Make `window-system' into a keyboard-local variable (rather than
12272 frame-local as done originally by multi-tty).
12273
12274 * keyboard.h (struct kboard): Add Vwindow_system.
12275 * keyboard.c (init_kboard): Set a default for Vwindow_system.
12276 (mark_kboards): Mark Vwindow_system.
12277
12278 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
12279 (init_display): Don't set the obsolete `window-system' frame-param.
12280
12281 * xterm.c (x_term_init):
12282 * w32term.c (w32_create_terminal):
12283 * term.c (init_tty): Set Vwindow_system.
12284 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
12285 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
12286
12287 * xfns.c (Fx_create_frame, x_create_tip_frame):
12288 * w32fns.c (Fx_create_frame, x_create_tip_frame):
12289 * macfns.c (Fx_create_frame):
12290 Don't set the obsolete `window-system' frame-param.
12291
12292 * frame.h (Qwindow_system): Remove.
12293 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
12294 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
12295
fdc90613 122962007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 12297
fdc90613
MB
12298 * frame.c (x_figure_window_size): For fullscreen case,
12299 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 12300
fdc90613 12301 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 12302
fdc90613 12303 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 12304
7357cb04
SM
123052007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12306
98228e72
SM
12307 * process.c (unwind_request_sigio): Only define if __ultrix__.
12308
1baf6db9
SM
12309 * callproc.c (child_setup): Remove spurious *.
12310
4d0ac3d7
SM
12311 * lisp.h (Fget_text_property): Declare.
12312 (have_menus_p): Declare it here rather than in sys-dep header files.
12313 * macterm.h (have_menus_p):
12314 * msdos.h (have_menus_p):
12315 * xterm.h (have_menus_p): Remove.
12316
7357cb04
SM
12317 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12318 (Fmake_variable_frame_local): Just check the variable's const-ness
12319 rather than checking nil or t.
12320
866e6dd6
JR
123212007-10-22 Jason Rumney <jasonr@gnu.org>
12322
b00afeae
JR
12323 * w32fns.c: Include math.h.
12324 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 12325
c8f7c76b
JR
12326 * s/ms-w32.h (HAVE_STDLIB_H): Define.
12327 (abort): Redefinition moved to nt/config.nt.
12328
866e6dd6
JR
12329 * m/windowsnt.h: Remove.
12330
e79beb56
JB
123312007-10-22 Juanma Barranquero <lekktu@gmail.com>
12332
12333 * emacs.c (Fdump_emacs): Fix typo in message.
12334 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
12335 <installation-directory>: Reflow docstring.
12336
fb30dfd2
JL
123372007-10-22 Juri Linkov <juri@jurta.org>
12338
12339 * minibuf.c: Allow minibuffer default to be a list of default values.
12340 With empty input use the first element of this list as returned default.
e79beb56 12341 (string_to_object)
0f7f11b7 12342 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
12343 (read_minibuf): If defalt is cons, set histstring to its car.
12344 (Fread_string): If default_value is cons, set val to its car.
12345 (Fread_buffer): If def is cons, use its car.
12346 (Fcompleting_read): If defalt is cons, set val to its car.
12347
1f163f28
MA
123482007-10-21 Michael Albinus <michael.albinus@gmx.de>
12349
12350 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
12351
db3534c3
JB
123522007-10-20 Juanma Barranquero <lekktu@gmail.com>
12353
12354 * doc.c (Fdocumentation): Check for advice in all cases.
12355
c6f18a07
CY
123562007-10-19 Chong Yidong <cyd@stupidchicken.com>
12357
12358 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
12359
2a1534d3
RS
123602007-10-19 Richard Stallman <rms@gnu.org>
12361
12362 * doc.c (Fdocumentation): Check for and handle an advised function.
12363
7b82c3b6
JB
123642007-10-19 Juanma Barranquero <lekktu@gmail.com>
12365
12366 * process.c (Fset_process_filter): Doc fix.
12367
3278f20e
SM
123682007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12369
12370 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
12371 which caused key-translation-map to applied repeatedly (thus breaking
12372 double-mode).
12373
99784d63
SM
123742007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12375
12376 * xselect.c (x_own_selection, x_handle_selection_clear)
12377 (x_clear_frame_selections):
12378 * w32menu.c (list_of_panes, list_of_items):
12379 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
12380 * textprop.c (validate_plist, interval_has_all_properties)
12381 (interval_has_some_properties, interval_has_some_properties_list)
12382 (add_properties, text_property_list):
12383 * process.c (Fget_buffer_process, list_processes_1, status_notify):
12384 * minibuf.c (Fassoc_string):
12385 * macselect.c (x_own_selection, x_clear_frame_selections)
12386 (Fx_disown_selection_internal):
12387 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
12388 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
12389
44bb704d
CY
123902007-10-17 Chong Yidong <cyd@stupidchicken.com>
12391
12392 * process.c: Link to libs for calling res_init() if available.
12393 (Fmake_network_process): Call res_init() before getaddrinfo or
12394 gethostbyname, if possible.
12395
d314756e
SM
123962007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12397
2504022a
SM
12398 * lread.c (read1): Set pvectype for char_tables.
12399
19fa82b9
SM
12400 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
12401 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
12402 Add type checks.
12403 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
12404
d314756e
SM
12405 * alloc.c (free_misc): Use XMISCTYPE.
12406 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
12407
94b9aaa2
GM
124082007-10-17 Glenn Morris <rgm@gnu.org>
12409
12410 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
12411 (syms_of_minibuf): Add Qcompletion_ignore_case.
12412 * dired.c (Qcompletion_ignore_case): Change to external.
12413 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
12414 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
12415 (Fread_file_name): Use it rather than intern'ing.
12416
12417 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
12418 (Fread_coding_system): Ignore case of user input.
12419
da6658e8
YM
124202007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12421
12422 * xdisp.c (handle_display_prop): Ignore display specs after
12423 replacing one when string text is being replaced.
12424 (handle_single_display_spec): Pretend as if characters with display
12425 property haven't been consumed only when buffer text is being replaced.
12426
11fb4bdb
SM
124272007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
12428
9beb8baa
SM
12429 * xfns.c (Fx_create_frame, Fx_display_list):
12430 * window.c (window_fixed_size_p, enlarge_window)
12431 (shrink_window_lowest_first):
12432 * macterm.c (init_font_name_table):
12433 * macfns.c (Fx_create_frame, Fx_display_list):
12434 * lread.c (close_load_descs):
12435 * keyboard.c (read_char_x_menu_prompt):
12436 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
12437 * coding.c (code_convert_region_unwind): Test the type of an object
12438 rather than just !NILP before extracting data from it.
12439
d3f41ff5
SM
12440 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
12441
67ee9f6e
SM
12442 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
12443 (XMISCANY): New macro.
12444 (XMISCTYPE): Use it.
12445 (struct Lisp_Misc_Any): New type.
12446 (union Lisp_Misc): Use it.
12447 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
12448 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
12449 (find_symbol_value, set_internal, default_value, Fset_default)
12450 (Fmake_variable_buffer_local, Fmake_local_variable)
12451 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
12452 (Flocal_variable_if_set_p, Fvariable_binding_locus):
12453 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
12454 * alloc.c (allocate_buffer): Set the size and tag.
12455 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
12456 Use XMISCANY.
12457 (die): Follow the GNU convention for error messages.
12458 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
12459 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
12460 tag any more.
12461 (set_buffer_internal_1):
12462 * frame.c (store_frame_param):
12463 * eval.c (specbind):
12464 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
12465
11fb4bdb
SM
12466 * doc.c (Fsnarf_documentation): Simplify.
12467
decb374a
JB
124682007-10-14 Juanma Barranquero <lekktu@gmail.com>
12469
12470 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
12471 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
12472
b5a40ee7
SM
124732007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
12474
12475 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
12476
35277b03
JB
124772007-10-14 Juanma Barranquero <lekktu@gmail.com>
12478
12479 * eval.c (do_autoload): Don't save autoloads.
12480
12481 * data.c (Ffset): Save autoload of the function being set.
12482
35fdaa62
GM
124832007-10-07 John Paul Wallington <jpw@pobox.com>
12484
12485 * xfns.c (x_create_tip_frame): Set the `display-type' frame
12486 parameter before setting up faces.
12487
1ea40aa2
EZ
124882007-10-13 Eli Zaretskii <eliz@gnu.org>
12489
35fdaa62 12490 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
12491 * keyboard.c (append_tool_bar_item): Reformat last change.
12492
1ea40aa2
EZ
12493 * lisp.h (eabs): Rename from `abs'. All callers changed.
12494
35277b03 124952007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
12496
12497 * buffer.c (add_overlay_mod_hooklist):
12498 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
12499 * fontset.c (make_fontset):
12500 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
12501 (append_tool_bar_item):
12502 * macmenu.c (grow_menu_items):
35fdaa62 12503 * w32menu.c (grow_menu_items):
71d00ce4 12504 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 12505
bc82f120
EZ
125062007-10-13 Eli Zaretskii <eliz@gnu.org>
12507
12508 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
12509 selected frame'' on MSDOS).
12510
d57d5a78
MR
125112007-10-12 Martin Rudalics <rudalics@gmx.at>
12512
12513 * frame.c (Qexplicit_name): New variable.
12514 (x_report_frame_params): Report it in parameter alist.
12515 (syms_of_frame): Intern and staticpro it.
12516
35277b03 125172007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
12518
12519 * macfns.c (x_create_tip_frame): Set terminal for frame.
12520
c7a4b95b
SM
125212007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
12522
26f9c7b7
SM
12523 * frame.c (Qenvironment): Remove.
12524 (syms_of_frame) <Qenvironment>: Don't initialize.
12525 (Fdelete_frame): Don't treat the `environment' param specially.
12526 * frame.h (Qenvironment): Don't declare.
12527 * callproc.c (set_initial_environment): Don't set unused frame param.
12528
c7a4b95b
SM
12529 * frame.c (Fframe_with_environment): Remove.
12530 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 12531
c7a4b95b
SM
12532 * lisp.h (Fframe_with_environment): Don't declare.
12533
c86f7377
JB
125342007-10-10 Juanma Barranquero <lekktu@gmail.com>
12535
12536 * indent.c (indent_tabs_mode, last_known_column)
12537 (last_known_column_modified): Make static.
12538 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
12539
d1b3a122
KY
125402007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
12541
12542 * puresize.h (BASE_PURESIZE): Increase to 1170000.
12543
d57d5a78
MR
125442007-10-09 Jason Rumney <jasonr@gnu.org>
12545
12546 * w32term.c (x_set_window_size): Disable code that attempts to tell
12547 Lisp code about a size change before it actually happens.
12548
81d3d428 125492007-10-09 Richard Stallman <rms@gnu.org>
91175673 12550
81d3d428
MB
12551 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
12552 return HANDLED_RETURN.
91175673 12553
1af74d06 125542007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 12555
1af74d06
MB
12556 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
12557 when there's an unread command event.
e0fead5d 12558
c7a4b95b 12559 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
12560 window autoselection act appropriately when leaving selected frame.
12561 (syms_of_frame): Initialize focus_follows_mouse.
12562 * frame.h (focus_follows_mouse): Extern it.
12563 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 12564 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
12565 * msdos.c (dos_rawgetc): Likewise.
12566 * w32term.c (w32_read_socket): Likewise.
12567 * xterm.c (handle_one_xevent): Likewise.
12568 * xdisp.c (syms_of_xdisp): In doc-string of
12569 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 12570
1af74d06 125712007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 12572
1af74d06
MB
12573 * macterm.c (mac_load_query_font): Fix missing return value.
12574 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
12575 Add BLOCK_INPUT.
c186cdb3 12576
1af74d06 125772007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 12578
1af74d06
MB
12579 * xdisp.c (get_window_cursor_type): Implement documented behavior
12580 for cursor-in-non-selected-windows = t.
c186cdb3 12581
1af74d06 125822007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 12583
1af74d06 12584 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 12585
1af74d06 125862007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 12587
1af74d06 12588 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 12589
1af74d06 12590 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 12591
1af74d06 125922007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 12593
c7a4b95b 12594 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 12595
1af74d06 125962007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 12597
1af74d06 12598 * buffer.c (Foverlays_at): Doc fix.
036e218d 12599
1af74d06 126002007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 12601
1af74d06 12602 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 12603
1af74d06 126042007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 12605
1af74d06 12606 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 12607
1af74d06 12608 * frame.h (enum): Remove trailing comma.
90647b07 12609
8993ad2e 126102007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 12611
1af74d06 12612 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 12613
1af74d06 126142007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 12615
1af74d06 12616 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 12617
1af74d06
MB
12618 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
12619 last-repeatable-command.
12620 (init_kboard): Initialize Vlast_repeatable_command.
12621 (command_loop_1): Set it to real_this_command unless that was
12622 bound to an input event.
12623 (mark_kboards): Mark it.
9fbc32aa 12624
1af74d06 126252007-10-08 Richard Stallman <rms@gnu.org>
036e218d 12626
1af74d06 12627 * eval.c (condition-case): Doc fix.
9fbc32aa 12628
1af74d06 126292007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 12630
1af74d06
MB
12631 * xfaces.c (tty_supports_face_attributes_p): Fix code
12632 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
12633 was copied and not edited.
9fbc32aa 12634
beb9f745
SM
126352007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
12636
c86f7377 12637 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
12638 escape sequences.
12639 * keyboard.h (struct kboard): Add Vinput_decode_map.
12640 Remove Vlocal_key_translation_map.
12641 * keyboard.c (read_key_sequence): Add support for input-decode-map.
12642 (init_kboard): Init input-decode-map.
12643 Replace local-key-translation-map back with key-translation-map.
12644 (syms_of_keyboard): Declare input-decode-map.
12645 Remove local-key-translation-map. Update docstrings.
12646 (mark_kboards): Mark Vinput_decode_map.
12647 Don't mark Vlocal_key_translation_map.
12648 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
12649 Replace local-key-translation-map back with key-translation-map.
12650 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
12651 Bind in input-decode-map rather than function-key-map.
12652
beb9f745
SM
12653 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
12654 This was made redundant by the previous introduction of XSETPVECTYPE.
12655
65342ae3
RS
126562007-10-09 Richard Stallman <rms@gnu.org>
12657
beb9f745 12658 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
12659
126602007-09-29 Richard Stallman <rms@gnu.org>
12661
12662 * eval.c (internal_condition_case_2, internal_condition_case_1)
12663 (internal_condition_case): Reenable abort if x_catching_errors ()
12664 to see if that really happens and why.
12665
6cff77fd
AS
126662007-10-06 Andreas Schwab <schwab@suse.de>
12667
12668 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
12669
bbe6f2aa
JB
126702007-10-04 Juanma Barranquero <lekktu@gmail.com>
12671
12672 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
12673
a390930c
SM
126742007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
12675
12676 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
12677
d6aa1876
SM
126782007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
12679
d0fdb6da
SM
12680 * window.h (struct window):
12681 * window.c (struct save_window_data, struct saved_window):
12682 * termhooks.h (struct terminal):
12683 * process.h (struct Lisp_Process):
12684 * frame.h (struct frame):
12685 * buffer.h (struct buffer):
12686 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
12687 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
12688 The size field of (pseudo)vectors is now unsigned.
12689 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
12690
878f97ff
SM
12691 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
12692 Turn `count' into an integer.
d0fdb6da 12693
878f97ff
SM
12694 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
12695 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
12696 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
12697 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
12698 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
12699
d2029e5b
SM
12700 * alloc.c (allocate_pseudovector): New fun.
12701 (ALLOCATE_PSEUDOVECTOR): New macro.
12702 (allocate_window, allocate_terminal, allocate_frame)
12703 (allocate_process): Use it.
12704 (mark_vectorlike): New function.
12705 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
12706 (mark_terminals): Use it.
12707 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
12708 (Fmake_byte_code): Use XSETPVECTYPE.
12709
12710 * frame.c (Fframe_parameters): Minor simplification.
12711
12712 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
12713
12714 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
12715
12716 * buffer.c (Fget_buffer_create, init_buffer_once):
12717 * lread.c (defsubr):
12718 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
12719
12720 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
12721 defined differently in the m/*.h files.
12722 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
12723 (XSETPVECTYPE): New macro.
12724 (XSETPSEUDOVECTOR): Use it.
12725
d6aa1876
SM
12726 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
12727 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 12728
d6aa1876
SM
12729 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
12730 * lread.c (defvar_per_buffer):
12731 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
12732
12733 * window.c (candidate_window_p): Only consider as visible frames that
12734 are on the same terminal.
12735
12736 * m/ibms390x.h (MARKBIT): Remove unused macro.
12737
88852d45
JB
127382007-10-01 Juanma Barranquero <lekktu@gmail.com>
12739
12740 * lread.c (Fload): Fix typo in docstring.
12741
880820fe 127422007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
12743
12744 * floatfns.c (Fexpt): Manually check for overflows, so that a power
12745 of a non-zero value can't yield zero.
12746
ed0c79c6
SM
127472007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
12748
b870aa61
SM
12749 * term.c (term_clear_mouse_face, term_mouse_highlight)
12750 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
12751
4c37a414
SM
12752 * print.c (safe_debug_print): Use XHASH.
12753
b9466edb
SM
12754 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
12755 Lisp elements such as tags.
12756 (XHASH): New macro.
12757 (EQ): Use it.
12758 (SREF, SSET, STRING_COPYIN): Use SDATA.
12759 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
12760
9c545a55
SM
12761 * alloc.c (mark_terminal): Remove left-over declaration.
12762 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
12763 (allocate_vectorlike): Remove type argument. Adjust callers.
12764 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
12765 Only handle the one remaining MEM_TYPE_VECTORLIKE.
12766
dafc79fa
SM
12767 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
12768 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
12769 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
12770 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
12771 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
12772 Use them.
12773
ed0c79c6
SM
12774 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
12775 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
12776 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
12777
3c81afd4
DN
127782007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12779
12780 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
12781 loaded by default.
12782
6178ce5e
SM
127832007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12784
4ce5ab77
SM
12785 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
12786 on this tty.
12787 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
12788
6178ce5e
SM
12789 * term.c (mouse_face_window): Rename from Qmouse_face_window.
12790 Update all users.
12791 (handle_one_term_event): Use Gpm_DrawPointer.
12792 (Fgpm_mouse_start): Rename from Fterm_open_connection.
12793 Signal errors instead of returning nil. Always return nil.
12794 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
12795 Make it a noop if gpm-mouse was not activated.
12796 (syms_of_term): Update names.
12797
bdf5f8ef
SM
127982007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
12799
75a8734b
SM
12800 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
12801 (init_sys_modes): Check that gpm_tty is the current tty.
12802
13559ee0
SM
12803 * alloc.c (allocate_terminal): Set the vector size to only count the
12804 lisp fields. Initialize those to nil.
12805 (mark_object): Don't treat terminals specially.
12806 (mark_terminal): Remove.
12807 (mark_terminals): Use mark_object instead.
12808
ff16b875
SM
12809 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
12810 the GC to the beginning.
12811
83155776
SM
12812 * indent.h:
12813 * indent.c: Use EMACS_INT for ints coming from Elisp data.
12814
bdf5f8ef
SM
12815 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
12816
ec8705b6
JR
128172007-09-25 Jason Rumney <jasonr@gnu.org>
12818
12819 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
12820
12821 * w32console.c (create_w32cons_output): Remove.
12822
12823 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
12824
12825 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
12826 (reset_sys_modes): Use reset_terminal_modes_hook.
12827
7351b242
SM
128282007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
12829
12830 * eval.c (do_autoload): Don't output any message.
12831
16706228
JL
128322007-09-24 Juri Linkov <juri@jurta.org>
12833
12834 * emacs.c (standard_args): Change priority of "--no-splash"
12835 from 40 to 3. Add "--no-desktop" with the same priority.
12836
3ae2e3a3
RS
128372007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
12838
12839 * alloc.c (gc_sweep): Check cons cell mark bits word by word
12840 and optimize the case where they are all 1.
12841
7a58fb43
GM
128422007-09-23 Johannes Weiner <hannes@saeurebad.de>
12843
3ae2e3a3
RS
12844 * lisp.h (abs): Define if not defined.
12845 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
12846 Don't define `abs', since it's defined in lisp.h.
7a58fb43 12847
78048085
EZ
128482007-09-22 Eli Zaretskii <eliz@gnu.org>
12849
c7a4b95b 12850 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
12851 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
12852 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
12853 (init_tty): Use DEV_TTY instead of "/dev/tty".
12854 [WINDOWSNT]: No need to protect from NAME arg being null.
12855
23d4cba5
DN
128562007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12857
12858 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
12859 up the tty state.
12860
71f44e7a
SM
128612007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12862
12863 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
12864 (gpm_tty): Change its type.
12865 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
12866 (gpm_tty): Change its type and initialize it.
12867 (Fterm_open_connection): Check the frame is indeed a tty.
12868 Use the new gpm_tty.
12869 (Fterm_close_connection): Use the new gpm_tty.
12870 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
12871 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
12872
def7fa34
JB
128732007-09-21 Juanma Barranquero <lekktu@gmail.com>
12874
12875 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
12876 underline_color, to draw strike-through.
12877
d2bb6598
SM
128782007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12879
273f164c
SM
12880 * lisp.h (allocate_terminal): Declare.
12881
ca2d5566
SM
12882 * window.c (candidate_window_p): Consider frames that are being placed
12883 by the user as somewhere between visible and iconified.
12884 (window_loop): Prefer windows on the current frame.
12885 (Fselect_window): Move the use of select-frame to the beginning so we
12886 can just delegate all the work (it'll call us back anyway).
12887
6168122d
SM
12888 * frame.c (Qdisplay_environment_variable):
12889 * frame.h (Qdisplay_environment_variable): Delete.
12890
c51842ec
SM
12891 * .gdbinit (xbacktrace): Print the arg's address rather than the value
12892 of the first arg, since that value may be a union.
12893
d2bb6598
SM
12894 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12895 parameter rather than Qdisplay_environment_variable. If all else
12896 fails, look for DISPLAY in initial-environment.
12897
6f022c19
GM
128982007-09-21 Glenn Morris <rgm@gnu.org>
12899
12900 * Makefile.in (emacstool): Remove target.
f466320b 12901 (lisp, shortlisp): Remove termdev.elc.
6f022c19 12902
ea1bf8c7
GM
129032007-09-21 Markus Triska <markus.triska@gmx.at>
12904
d2bb6598 12905 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 12906
d30a25b3
SM
129072007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
12908
db699fc6
SM
12909 * callproc.c (getenv_internal_1): New function.
12910 (getenv_internal): Use it.
12911 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12912
d2bb6598 12913 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
12914 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12915 (Fset_terminal_parameter): Work with dead terminals as well.
12916 (Fmodify_terminal_parameters): Remove.
12917
d30a25b3
SM
12918 * terminal.c (get_terminal): Handle terminals.
12919 Make sure the terminal returned is live.
12920 (create_terminal): Use allocate_terminal.
12921 (mark_terminals): Move to alloc.c.
12922 (delete_terminal): Use terminal->name as liveness status.
12923 NULL out fields after freeing their contents.
12924 Don't deallocate the object.
12925 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
12926 rather than an int.
12927 (Fterminal_live_p): Accept non-integer arguments.
12928 (Fterminal_list): Return terminal objects rather than an ints.
12929
12930 * alloc.c (enum mem_type): New member for `terminal' objects.
12931 (allocate_terminal): New function.
d2bb6598
SM
12932 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12933 Handle terminals.
d30a25b3
SM
12934 (mark_terminal): New fun.
12935 (mark_terminals): Move from terminal.c.
12936
12937 * term.c (get_tty_terminal): Don't treat output_initial specially.
12938 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12939 (delete_tty): Use terminal->name as liveness status.
12940
12941 * termhooks.h (struct terminal): Make it into a pseudovector.
12942 Remove `deleted' replaced by checking `name's nullness.
12943
12944 * print.c (print_object): Handle terminals.
12945
12946 * lisp.h (enum pvec_type): New `terminal' pseudovector.
12947 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12948
12949 * frame.c (make_terminal_frame):
12950 * keyboard.c (tty_read_avail_input):
12951 * w32term.c (x_delete_terminal):
12952 * xfns.c (Fx_create_frame, x_create_tip_frame):
12953 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12954
eba25e7c
GM
129552007-09-20 Glenn Morris <rgm@gnu.org>
12956
12957 * process.c (Fmake_network_process): Doc fix.
12958
2a29c3c1
JR
129592007-09-19 Jason Rumney <jasonr@gnu.org>
12960
12961 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12962
880820fe 129632007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
12964
12965 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12966 Fix a C warning regarding variable constness.
12967
12968 * xterm.c (handle_one_xevent): Fix a C warning.
12969
334a1195
JR
129702007-09-18 Jason Rumney <jasonr@gnu.org>
12971
12972 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12973
880820fe 129742007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
12975
12976 * gtkutil.c (gdpy_def): New variable.
12977 (xg_initialize): Initialize gdpy_def.
12978 (xg_display_close): If no other display exists, set gdpy_def to a
12979 new connection.
12980
880820fe 129812007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
12982
12983 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12984 when we have no file name for the icon.
12985 (xg_tool_bar_expose_callback): Remove.
12986 (xg_create_tool_bar): Don't connect expose signal to
12987 xg_tool_bar_expose_callback.
12988 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12989
4d580af2
AS
129902007-09-16 Andreas Schwab <schwab@suse.de>
12991
12992 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12993 values instead of zapping them.
12994
aca946f3
GM
129952007-09-14 Glenn Morris <rgm@gnu.org>
12996
12997 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12998 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12999 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
13000 scope and rename to omfib_buffer for clarity.
13001 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
13002
25c460e5
KH
130032007-09-14 Kenichi Handa <handa@m17n.org>
13004
13005 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
13006
09b69f01
JR
130072007-09-13 Jason Rumney <jasonr@gnu.org>
13008
13009 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
13010
13011 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
13012
13013 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
13014 (mac_term_init): Call here instead, passing rif.
13015
442218db
GM
130162007-09-13 Glenn Morris <rgm@gnu.org>
13017
13018 * s/hpux.h: No longer define `static' as nothing.
13019
880820fe 130202007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
13021
13022 * callint.c (Fcall_interactively): Remove unused var `fun'.
13023
1971a872
RF
130242007-09-12 Romain Francoise <romain@orebokech.com>
13025
13026 * window.c (prefer_window_split_horizontally, display_buffer):
13027 Revert 2007-09-08 change.
13028
2d33f506
GM
130292007-09-12 Glenn Morris <rgm@gnu.org>
13030
585474ae 13031 * alloca.c: Remove file.
ca7af97a
GM
13032 * Makefile.in (alloca): Do not undef.
13033 (allocaobj, alloca.o): Remove.
13034 (otherobj): Remove allocaobj.
13035 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
13036 * regex.c (C_ALLOCA): Remove all references and code that was only
13037 used when this was defined.
13038 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
13039 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
13040 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
13041
2d33f506 13042 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
13043
13044 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
13045 (menu_grab_callback): All uses changed.
13046
13047 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
13048 (x_reply_selection_request): All uses changed.
2d33f506 13049
18a4a65e
SM
130502007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13051
13052 * lread.c (load_warn_old_style_backquotes): Change message to look
13053 better when it appears in the middle of byte-compiler messages.
13054
47cc8819
DN
130552007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
13056
b7ea0894
DN
13057 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
13058
47cc8819
DN
13059 * xterm.c (x_create_terminal): Add comment.
13060
13061 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
13062
5632bd0f
RS
130632007-09-10 Richard Stallman <rms@gnu.org>
13064
13065 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
13066
880820fe 130672007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 13068
4bca9161
MC
13069 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
13070 (DEFUN): Document `intspec', use it instead of `prompt'.
13071
04724b69
MC
13072 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
13073
8a6d230a
MC
13074 * data.c (Finteractive_form): If the interactive specification starts
13075 with a `(', use it as a Lisp form.
13076
09fbdf6c
MC
13077 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
13078 name and file modes.
13079
ccb5c14f
MC
13080 * callint.c (Fcall_interactively): Comment fixes.
13081
023accd6
SM
130822007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13083
13084 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
13085 and compiled functions.
13086
f26b9544
EZ
130872007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
13088
13089 * window.c (prefer_window_split_horizontally): New variable.
13090 (display_buffer): Consider splitting window horizontally depending
13091 on prefer_window_split_horizontally.
13092
4d395425
EZ
130932007-09-08 Eli Zaretskii <eliz@gnu.org>
13094
97ddc760 13095 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 13096
08c1d235
SM
130972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13098
179cef48
SM
13099 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
13100
08c1d235
SM
13101 * frame.c (x_set_frame_parameters): Check number is positive before
13102 using XFASTINT.
13103
13104 * window.c (freeze_window_start): Don't presume selected_window holds
13105 a window object.
92f94a12 13106 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 13107
97ddc760 131082007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
13109
13110 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
13111
90ab5c62
SM
131122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13113
13114 * window.c (Vsplit_window_preferred_function): New var.
13115 (Fdisplay_buffer): Use it.
13116 (syms_of_window): Export, and initialize it.
13117
1ab2cd43
TTN
131182007-09-06 Pixel <pixel@mandriva.com> (tiny change)
13119
13120 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
13121
0b0515bc
GM
131222007-09-06 Glenn Morris <rgm@gnu.org>
13123
57fd5c55 13124 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
13125 * xselect.c (x_reply_selection_request) <cnt>: Move static
13126 variable to file scope.
13127
98594580
SM
131282007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
13129
13130 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
13131 consistent values of selected_frame and selected_window.
13132
0f4c7aef
JR
131332007-09-04 Jason Rumney <jasonr@gnu.org>
13134
13135 * w32console.c (initialize_w32_display): Zero unused hooks.
13136
e4019195
DN
131372007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13138
13139 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
13140 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
13141
bce179b5
JR
131422007-09-04 Jason Rumney <jasonr@gnu.org>
13143
a0236551
JR
13144 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
13145 in w32console.c. Set up input. Remove XXX comments that have been
13146 confirmed as correct.
13147
a4926668
JR
13148 * s/ms-w32.h (MULTI_KBOARD): Define.
13149
953bf0dc
JR
13150 * w32console.c (one_and_only_w32cons): Remove.
13151 (initialize_w32_display): Take terminal argument.
13152
13153 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
13154 initialize_w32_display.
13155 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
13156
bce179b5
JR
13157 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
13158
13159 * keyboard.c (discard_mouse_events): Discard it.
13160 (make_lispy_event): Translate it to a lisp event.
13161 (lispy_wheel_names): Add wheel-left and right events.
13162 (syms_of_keyboard): Enlarge wheel_syms.
13163
13164 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
13165 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
13166
13167 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
13168
13169 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
13170 from WM_MOUSEHWHEEL.
13171 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
13172
13173 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
13174 terminal.
13175
13176 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
13177 keyboard for the terminal.
13178
92cd6a7c
DN
131792007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13180
13181 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
13182 (Vresume_tty_hook): Rename from Vresume_tty_functions.
13183 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
13184 and resume-tty-function to resume-tty-hook.
13185 (Fsuspend_tty, Fresume_tty): Use new names.
13186
880820fe 131872007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
13188
13189 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
13190 if it starts with "n:".
13191
880820fe 131922007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
13193
13194 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
13195
6b8e474c
SM
131962007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13197
92d9c1d4
SM
13198 * frame.h:
13199 * frame.c (Qterm_environment_variable): Remove.
13200 (syms_of_frame): Don't init and staticpro it.
13201
92d9c1d4
SM
13202 * callproc.c (getenv_internal): Remove special case for $TERM.
13203
6b8e474c
SM
13204 * callproc.c (Vinitial_environment): New variable.
13205 (set_initial_environment): Initialize it.
13206 (syms_of_callproc): Declare it.
13207 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
13208 TERM under which a process runs is never related to the TERM in which
13209 Emacs is running.
13210
0f1444e1
DN
132112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13212
13213 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
13214 * s/darwin.h: ... do it here.
13215
b8866860
SM
132162007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13217
13218 * lisp.h (set_initial_environment): Rename from set_global_environment.
13219
13220 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
13221 removed by mistake on the multi-tty branch.
13222
13223 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
13224 (Fmodify_frame_parameters): Return a value.
13225
13226 * image.c (png_load): Comment-out var only used in commented-out code.
13227
13228 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
13229 before passing it to mark_object.
13230
13231 * xfaces.c (internal_resolve_face_name): Return a value.
13232 (internal_resolve_face_name, resolve_face_name_error): Comment out.
13233
13234 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
13235 (x_icon): Comment-out var only used in commented-out code.
13236
0a42be6d
RF
132372007-08-29 Romain Francoise <romain@orebokech.com>
13238
13239 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
13240 QUIT hasn't been provided.
13241
8d9cc0b7
MB
132422007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13243
13244 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 13245 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
13246 (set_initial_environment): Initialise Vprocess_environment.
13247
13248 * config.in: Disable multi-keyboard support on a mac.
13249
13250 * frame.c (Qterm_environment_variable)
13251 (Qdisplay_environment_variable): New variables.
13252 (syms_of_frame): Intern and staticpro them.
13253 (Fmake_terminal_frame): Disable output method test.
13254
13255 * frame.h: Declare them here.
13256
13257 * macfns.c (x_set_mouse_color): Get rif from the frame.
13258 (x_set_tool_bar_lines): Don't use updating_frame.
13259 (mac_window): Add 2 new parameters for consistency with other systems.
13260 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
13261 frame parameters following what is done in X11 and w32. Don't use
13262 FRAME_MAC_DISPLAY_INFO.
13263 (Fx_open_connection, start_hourglass): Remove window-system check.
13264 (x_create_tip_frame): Get the keyboard from the terminal.
13265
13266 * macmenu.c: Reorder includes.
13267 (Fx_popup_menu): Use terminal specific mouse_position_hook.
13268
13269 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
13270 terminal parameter.
13271 (x_clear_frame): Add a frame parameter.
13272 (note_mouse_movement): Get rif from the frame.
13273 (mac_term_init): Initialize the terminal.
13274 (mac_initialize): Make static and move terminal initialization ...
13275 (mac_create_terminal): ... to this new function.
13276
13277 * macterm.h (struct mac_display_info): Add terminal.
7196c970 13278 (mac_initialize): Delete declaration.
8d9cc0b7 13279
381864b2 13280 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
13281
13282 * sysdep.c: Comment out text after #endif.
13283
13284 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
13285 is defined. Better initialize ttys in windows. Use terminal
13286 specific mouse_position_hook.
13287
13288 * termhooks.h (union display_info): Add mac_display_info.
13289
b8866860
SM
13290 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
13291 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
13292 frame parameters following what is done in X11.
13293
13294 * w32term.c (w32_initialize): Make static.
13295
13296 * xselect.c (x_handle_selection_clear): Only access
13297 terminal->kboard when MULTI_KBOARD is defined.
13298
13299 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
13300 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
13301
133022007-08-29 Jason Rumney <jasonr@gnu.org>
13303
13304 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
13305 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
13306
13307 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
13308 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
13309
13310 * keyboard.c (restore_kboard_configuration): Only define when
13311 MULTI_KBOARD defined.
13312
35277b03 13313 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
13314 (OBJ1): Add terminal.$(O)
13315
b8866860
SM
13316 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
13317 Don't define function body.
8d9cc0b7
MB
13318 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
13319
13320 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
13321
13322 * w32.c (request_sigio, unrequest_sigio): Remove.
13323
13324 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
13325 (w32con_clear_frame, w32con_clear_end_of_line)
13326 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
13327 (w32con_delete_glyphs, w32con_set_terminal_window)
13328 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
13329 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
13330 Add terminal arg.
8d9cc0b7
MB
13331 (PICK_FRAME): Remove.
13332 (w32con_write_glyphs): Use frame specific terminal coding.
13333 (one_and_only_w32cons): New global variable.
13334 (initialize_w32_display): Use it for storing hooks.
13335 (create_w32cons_output): New function.
13336
13337 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
13338 arg a frame.
13339
b8866860
SM
13340 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
13341 Set window_system.
8d9cc0b7
MB
13342 (x_set_tool_bar_lines): Don't use updating_frame.
13343 (Fx_create_frame): Set terminal and ref count.
13344 (Fx_open_connection): Remove window-system check.
13345
13346 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
13347
13348 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
13349 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
13350 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
13351 Add frame arg.
13352 (x_delete_terminal, w32_create_terminal): New functions.
13353 (w32_term_init): Create a terminal.
13354 (w32_initialize): Move terminal specific initialization to
13355 w32_create_terminal.
13356
b8866860 13357 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
13358 (w32_clear_rect, w32_clear_area): Use background from frame.
13359 (w32_display_info): Add terminal.
13360 (w32_sys_ring_bell, x_delete_display): Declare here.
13361
13362 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
13363
13364 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
13365
133662007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
13367
13368 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
13369 Fix get_named_tty calls for the controlling tty.
13370
133712007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
13372
13373 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
13374
133752007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
13376
13377 * term.c (tty_insert_glyphs): Add missing first parameter.
13378
880820fe 133792007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 13380
b8866860
SM
13381 * buffer.c (Fbuffer_list, Fbury_buffer):
13382 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
13383
13384 * cm.c (current_tty): New variable, for cmputc().
13385 (cmputc): Use it.
13386 (cmcheckmagic): Add tty parameter, look up terminal streams there.
13387 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
13388 (cmgoto): Add tty parameter. Pass it on to calccost().
13389 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
13390
13391 * cm.h (emacs_tputs): New macro to set current_tty, and then call
13392 tputs().
13393 (current_tty): New variable, for cmputc().
13394 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
13395
13396 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
13397 (internal_condition_case, internal_condition_case_1)
13398 (internal_condition_case_2): Don't abort when x_catching_errors.
13399
13400 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
13401 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
13402 prevent crashes caused by bogus longjmps in read_char.
13403
13404 * keymap.h (Fset_keymap_parent): Add EXFUN.
13405
13406 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
13407 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13408 Remove redundant definition.
13409
b8866860
SM
13410 * macfns.c (x_set_mouse_color, x_make_gc):
13411 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 13412
b8866860
SM
13413 * w32term.c (x_free_frame_resources):
13414 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13415 (w32_initialize): Use the accessor macros for terminal characteristics.
13416
13417 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
13418 Use the accessor macros for terminal characteristics.
13419 * msdos.c (internal_terminal_init): Use the accessor macros for
13420 terminal characteristics.
b8866860
SM
13421 (ScreenVisualBell, internal_terminal_init):
13422 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13423
13424 * termopts.h (no_redraw_on_reenter): Declare.
13425
13426 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 13427 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 13428 (Fgarbage_collect): Call them.
03f06e5c 13429 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
13430
13431 * prefix-args.c: Include stdlib.h for exit.
13432
13433 * syssignal.h: Add comment.
13434
13435 * indent.c: Include stdio.h.
13436
13437 * window.h (Vinitial_window_system): Declare.
13438 (Vwindow_system): Delete declaration.
13439
13440 * fontset.c (Finternal_char_font): Use FRAME_RIF.
13441
13442 * image.c (lookup_image): Don't initialize `c' until the xasserts
13443 have been run.
13444
13445 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
13446 FRAME_FOREGROUND_PIXEL.
13447
13448 * print.c (print_preprocess): Don't lose print_depth levels while
13449 iterating.
13450
b8866860
SM
13451 * widget.c (update_from_various_frame_slots):
13452 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13453
13454 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
13455 frames.
13456 (window_internal_height): Remove bogus make_number call.
b8866860 13457 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
13458
13459 * fileio.c (Fread_file_name): Update comment.
13460
b8866860
SM
13461 * callint.c (Fcall_interactively):
13462 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
13463 Make sure it is correctly unwound.
13464
13465 * xsmfns.c (x_session_close): New function.
13466
03f06e5c 13467 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
13468 Delete declarations.
13469
13470 * xterm.h: Remove declaration for x_fully_uncatch_errors.
13471 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 13472 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 13473 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
13474
13475 * lread.c: Include setjmp.h. Update declaration of `read_char'.
13476 (read_filtered_event): Call `read_char' with a local
13477 `wrong_kboard_jmpbuf'.
13478
b8866860
SM
13479 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
13480 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
13481
13482 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
13483 systems.
13484
b8866860 13485 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 13486 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 13487 (Fset_quit_char): EXFUN.
03f06e5c 13488 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
13489 (init_sys_modes, reset_sys_modes): Update prototypes.
13490 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
13491
b8866860
SM
13492 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
13493 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 13494 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 13495 Delete declarations.
03f06e5c
JB
13496 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
13497 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
13498 New declarations.
13499
13500 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
13501 already does that during init_display(). Call syms_of_keymap
b8866860
SM
13502 before syms_of_keyboard. Call `syms_of_terminal'.
13503 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
13504 (shut_down_emacs): Call reset_all_sys_modes() instead of
13505 reset_sys_modes().
13506
13507 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
13508 (internal_resolve_face_name, resolve_face_name_error): New functions.
13509 (resolve_face_name): Protect against loops and errors thrown by Fget.
13510 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
13511 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
13512
13513 * scroll.c: Replace CURTTY() with local variables throughout the
13514 file (where applicable).
13515 (calculate_scrolling, calculate_direct_scrolling)
13516 (scrolling_1, scroll_cost): Use the accessor macros for terminal
13517 characteristics.
13518
13519 * keymap.c (Vfunction_key_map): Remove.
b8866860 13520 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
13521 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
13522 (Vkey_translation_map): Remove.
13523 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 13524 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
13525 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
13526 Update for terminal-local key-translation-map.
13527
13528 * Makefile.in (callproc.o): Update dependencies.
13529 (lisp, shortlisp): Add termdev.elc.
13530 (obj): Add terminal.o.
13531 (terminal.o): Add dependencies.
13532 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
13533 (data.o, fns.o): Add termhooks.h dependency.
13534 (SOME_MACHINE_LISP): Add dnd.elc.
13535 (minibuf.o): Fix typo.
13536 Update dependencies.
13537
13538 * data.c (do_symval_forwarding, store_symval_forwarding)
13539 (find_symbol_value): Use the selected frame's keyboard, not
13540 current_kboard.
13541
13542 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
13543 Vwindow_system.
13544
13545 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
13546 Fmenu_bar_open.
13547 (syms_of_xmenu): Update defsubr.
13548 (mouse_position_for_popup, Fx_popup_menu)
13549 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
13550 (set_frame_menubar, free_frame_menubar)
13551 (create_and_show_popup_menu, xmenu_show, )
13552 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
13553 an X frame.
13554
13555 * xselect.c (x_own_selection): Abort if not an X frame.
13556 (some_frame_on_display): Check if it is an X frame.
13557 (x_handle_selection_clear): Deal with MULTI_KBOARD.
13558
13559 * coding.c: Include frame.h and termhooks.h.
03f06e5c 13560 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
13561 (Fset_terminal_coding_system_internal)
13562 (Fset_keyboard_coding_system_internal)
13563 (Fkeyboard_coding_system)
03f06e5c
JB
13564 (Fterminal_coding_system): Add a terminal parameter.
13565 Get terminal_coding from the terminal.
8d9cc0b7
MB
13566 (init_coding_once): Don't call setup_coding_system here.
13567
13568 * dispextern.h (set_scroll_region, turn_off_insert)
13569 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
13570 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 13571 (delete_tty, updating_frame)
8d9cc0b7
MB
13572 (produce_special_glyphs, produce_glyphs, write_glyphs)
13573 (insert_glyphs): Remove.
13574 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 13575 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 13576 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
13577
13578 * frame.h (enum output_method): Add output_initial.
13579 (struct x_output): Delete.
b8866860
SM
13580 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13581 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
13582 (tty_display): Delete.
13583 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 13584 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
13585 (union output_data): Add tty.
13586 (FRAME_KBOARD): Get the kboard from the terminal.
13587 (FRAME_INITIAL_P): New macro.
13588 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
13589 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
13590 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
13591 New declarations.
8d9cc0b7
MB
13592
13593 * termchar.h (tty_output, tty_display_info): New structures.
13594 (tty_list): Declare.
13595 (FRAME_TTY, CURTTY): New macros.
13596 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
13597 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
13598 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
13599 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
13600
13601 * callproc.c: Include frame.h and termhooks.h, for terminal
13602 parameters.
13603 (add_env): New function.
13604 (child_setup): Use it.
b8866860 13605 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
13606 (getenv_internal): Fix get_terminal_param call.
13607 (Fgetenv_internal, egetenv): Update doc.
13608 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 13609 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
13610 strings.
13611 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
13612 (getenv_internal): Add terminal parameter.
13613 Handle Vlocal_environment_variables.
8d9cc0b7
MB
13614 (Fgetenv_internal): Add terminal parameter.
13615 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 13616 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
13617 (set_initial_environment): Rename from set_global_environment.
13618 Store Emacs environment in initial frame parameter.
13619
13620 * xdisp.c (redisplay_internal): Update references to
13621 `previous_terminal_frame'.
13622 (display_mode_line, Fformat_mode_line): Replace calls to
13623 `push_frame_kboard' with `push_kboard'.
13624 (get_glyph_string_clip_rects): Add extra parentheses and
13625 braces to prevent compiler warnings.
13626 (calc_pixel_width_or_height): Add xassert to check that the
13627 frame is alive. Don't call `lookup_image' on a termcap frame.
13628 (message2_nolog, message3_nolog, redisplay_internal)
13629 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
13630 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
13631 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
13632 (Fx_display_pixel_width, Fx_display_pixel_height)
13633 (Fx_display_planes, Fx_display_color_cells)
13634 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
13635 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
13636 (Fx_display_backing_store, Fx_display_visual_class)
13637 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 13638 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
13639
13640 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
13641 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
13642 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13643 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
13644 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
13645 terminal that is being deleted.
13646 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 13647 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
13648 (Fx_close_connection, Fx_synchronize): Unify argument names with
13649 the rest of the DEFUNs.
13650
13651 * dispnew.c (Fsend_string_to_terminal): Update call to
13652 `get_tty_terminal'.
13653 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 13654 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
13655 FRAME_TERMCAP_P and FRAME_TTY.
13656 (window_change_signal): Don't believe width/height values that are
13657 impossibly small.
13658 (Vinitial_window_system): Rename from Vwindow_system.
13659 (termscript, Wcm, rif): Delete.
13660
13661 * termhooks.h (struct terminal): New struct containing the
13662 previously global text display hooks and new members NAME,
13663 DELETED and PARAM_ALIST.
13664 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
13665 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
13666 (FRAME_RIF): New macros.
13667 (get_terminal_param, get_device): New declarations.
13668 (termscript): Delete declaration.
13669
13670 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
13671 (XTflash, x_free_frame_resources, x_scroll_bar_create)
13672 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
13673 FRAME_FOREGROUND_PIXEL.
13674 (x_fully_uncatch_errors): Disable definition.
13675 (x_scroll_bar_expose): Fix reference to foreground pixel.
13676 (XTread_socket): Disable loop on all X displays.
13677 (x_delete_terminal): Don't set terminal->deleted and let
13678 delete_terminal delete the frames on the terminal.
13679 (x_delete_display): Doc update to reflect changes in
13680 delete_terminal.
13681 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
13682 (deleting_tty): Remove old variable.
13683 (Fsuspend_tty): Call clear_tty_hooks.
13684 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
13685 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
13686 errors on X frames.
13687 (x_catch_errors_unwind): Abort if x_error_message is NULL.
13688 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 13689 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
13690 (XTset_terminal_modes, XTreset_terminal_modes)
13691 (XTread_socket, x_connection_closed, x_term_init)
13692 (x_term_init, x_delete_display): Add terminal parameter.
13693 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
13694 X connections.
13695
bf380f53
GM
13696 * frame.c: Include termchar.h.
13697 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
13698 (Qwindow_system, Qenvironment, Qterm_environment_variable)
13699 (Qdisplay_environment_variable): New vars.
13700 (Fframep): Deal with output_initial.
13701 (Fframe-live-p): Doc fix.
13702 (Fwindow-system): New function.
8d9cc0b7
MB
13703 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
13704 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 13705 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 13706 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
13707 (Fmake_terminal_frame): Handle NULL tty names correctly.
13708 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
13709 (Fdelete_frame): Remove unused variable `count'. Don't allow other
13710 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 13711 (Fframe_with_environment): New function.
b8866860 13712 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
13713 (get_future_frame_param): New function.
13714 (Fmake_terminal_frame): Use it.
2d33f506 13715 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
13716
13717 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
13718 * sysdep.c (reset_sys_modes): Update for renames.
13719
13720 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 13721 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
13722 (syms_of_keyboard): Defsubr them.
13723 (Fset_input_meta_mode, Fset_quit_char): New functions.
13724 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
13725 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
13726 parameter. Use it in call to `read_char'.
b8866860
SM
13727 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
13728 Set wrong_kboard_jmpbuf correctly in recursive calls.
13729 Use current_kboard to access Vkeyboard_translate_table.
13730 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
13731 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
13732 Update longjmp invocations. Remember the original current_kboard,
13733 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
13734 changes it. Comment out unnecessary calls to
13735 `record_single_kboard_state' and `any_kboard_state'.
13736 Update recursive calls.
8d9cc0b7
MB
13737 (wrong_kboard_jmpbuf): Remove global variable.
13738 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
13739 Handle deleted interrupted_kboards correctly; that is a legal
13740 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 13741 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
13742 (any_kboard_state, single_kboard_state)
13743 (push_frame_kboard): Remove function.
13744 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
13745 been deleted. Remove unused variable. Help debugging by not
13746 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
13747 kboard of the selected frame when the stored kboard object has
13748 been deleted before pop_kboard.
13749 (temporarily_switch_to_single_kboard): Change first parameter to a
13750 frame pointer. Throw an error when caller wants to change kboards
13751 while in single_kboard mode. Don't push_kboard if we weren't in
13752 single kboard state. Don't pop_kboard if we popped into any
13753 kboard state.
13754 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 13755 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
13756 up single_kboard mode.
13757 (Frecursive_edit): Switch to single_kboard mode only in nested
13758 command loops.
b8866860
SM
13759 (cmd_error, command_loop, command_loop_1, timer_check):
13760 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
13761 `record_single_kboard_state'.
13762 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 13763 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
13764 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
13765 `fatal_error_signal'.
13766 (record_single_kboard_state): Don't push_kboard if we weren't in
13767 single kboard state. Don't pop_kboard if we popped into any
13768 kboard state.
13769 (push_frame_kboard): Rename to push_kboard.
13770 (kbd_buffer_get_event): Use FRAME_TERMINAL.
13771 (read_avail_input): Read input from all terminals.
13772 (mark_kboards): Also mark Vkeyboard_translate_table.
13773 (kbd_buffer_store_event_hold): Simplify condition.
13774 (read_key_sequence): Reinitialize fkey and keytran at each replay.
13775 (Vkeyboard_translate_table): Move to struct kboard.
13776 (init_kboard): Initialize Vkeyboard_translate_table.
13777 (syms_of_keyboard): Use DEFVAR_KBOARD to define
13778 Vkeyboard_translate_table. Update doc strings. Update docs of
13779 local-function-key-map and function-key-map.
13780
13781 * terminal.c: New file.
13782
13783 * term.c: Include errno.h.
13784 (Vring_bell_function, device_list, initial_device)
13785 (next_device_id, ring_bell, update_begin, update_end)
13786 (set_terminal_window, cursor_to, raw_cursor_to)
13787 (clear_to_end, clear_frame, clear_end_of_line)
13788 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
13789 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
13790 (syms_of_term): Move their initialization to terminal.c.
13791 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
13792 (Ftty_display_color_cells)
13793 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 13794 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
13795 (init_tty, maybe_fatal): New functions.
13796 (Ftty_type): Return nil if terminal is not on a tty instead of
13797 throwing an error. Doc update.
13798 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 13799 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
13800 (delete_tty): Use terminal->deleted.
13801 (tty_set_terminal_modes): Rename from set_terminal_modes.
13802 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
13803 (set_scroll_region): Rename to `tty_set_scroll_region'.
13804 (turn_on_insert): Rename to `tty_turn_on_insert'.
13805 (turn_off_insert): Rename to `tty_turn_off_insert'.
13806 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
13807 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
13808 (toggle_highligh): Rename to `tty_toggle_highlight'.
13809 (background_highlight): Rename to `tty_background_highlight'.
13810 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
13811 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
13812 (tty_set_scroll_region, tty_background_highlight)
13813 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
13814 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
13815 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
13816 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
13817 Add static modifier.
13818 (tty_reset_terminal_modes, tty_set_terminal_window)
13819 (tty_set_scroll_region, tty_background_highlight)
13820 (tty_highlight_if_desired, tty_cursor_to)
13821 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
13822 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
13823 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
13824 renames.
13825
880820fe 138262007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
13827
13828 * keyboard.c: Qrtl is new.
13829 (parse_tool_bar_item): Handle :rtl keyword.
13830 (syms_of_keyboard): Intern :rtl keyword.
13831
13832 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
13833
13834 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
13835 so no Lisp code is executed.
13836 (file_for_image, find_rtl_image): New functions.
1f204af3 13837 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
13838 (update_frame_tool_bar): If direction is RTL, use RTL image if
13839 defined. Use Gtk stock images if defined.
13840
83cc8d35
YM
138412007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13842
13843 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
13844 for nonexistent or zero-width glyph in composition glyph.
13845
e60c4e15
SM
138462007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
13847
d7e2a28f
SM
13848 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
13849
e60c4e15
SM
13850 * xdisp.c (Finvisible_p): New function.
13851 (syms_of_xdisp): defsubr it.
13852
ee163e6d
JB
138532007-08-24 Juanma Barranquero <lekktu@gmail.com>
13854
13855 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
13856 Doc fixes.
13857
90fa408d
YM
138582007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13859
35277b03 13860 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 13861
cac4219c
MR
138622007-08-24 Martin Rudalics <rudalics@gmx.at>
13863
13864 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
13865 whether decoding has modified buffer contents.
13866
5fc9fdeb
JR
138672007-08-24 Jason Rumney <jasonr@gnu.org>
13868
13869 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
13870 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
13871 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
13872 (init_svg_functions) [HAVE_NTGUI]: New function.
13873 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
13874 (svg_load_image): Use them.
13875 (svg_load_image) [HAVE_NTGUI]: Implement background.
13876
93b23406
YM
138772007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13878
13879 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13880 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13881 (LIBX): Remove @RSVG_LIBS@.
13882 (LIBES): Add $(RSVG_LIBS).
13883
13884 * image.c (svg_load_image): Blend with specified background if exists.
13885 Use IMAGE_BACKGROUND. Add Mac OS Support.
13886
13887 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13888 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13889 Remove macros.
13890 [MAC_OSX] (socket_callback): Do nothing.
13891 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13892 ReceiveNextEvent.
13893 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
13894 socket_callback.
13895 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13896
2467875c
GM
138972007-08-22 Glenn Morris <rgm@gnu.org>
13898
ff8da443 13899 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 13900
4ab27a43
GM
139012007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
13902
13903 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 13904
666e0eda
GM
13905 * image.c: Add support for SVG images. Some additional comments
13906 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
13907 (svg_image_p): New function to test for SVG image.
13908 (svg_load): New function to load SVG image.
13909 (svg_load_image): New function, helper for svg_load.
13910 (Qsvg): New Lisp_object.
13911 (svg_keyword_index): New enum.
13912 (svg_format): New static `image_keyword' struct.
13913 (svg_type): New static `image_type' struct.
13914 (librsvg/rsvg.h): Include it.
4ab27a43 13915
b636b4c1
SM
139162007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
13917
13918 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13919
9ecb827b
SM
139202007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
13921
1d064697
SM
13922 * lread.c (Qold_style_backquotes): New var.
13923 (syms_of_lread): Init and staticpro it.
13924 (load_warn_old_style_backquotes): New fun.
13925 (Fload): Use them to warn about old style backquotes.
13926 (end_of_file_error, Fload): Remove unused vars.
13927
5772ed4b
SM
13928 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13929
9ecb827b 13930 * lread.c (Vold_style_backquotes): New var.
5aa273b0 13931 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
13932 (read1): Set it when we find an old-style (back)quote.
13933
32e1c7b1
JR
139342007-08-22 Jason Rumney <jasonr@gnu.org>
13935
13936 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13937
b8fa755b
KY
139382007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
13939
13940 * puresize.h (BASE_PURESIZE): Increase to 1140000.
13941
1283140e
RS
139422007-08-19 Richard Stallman <rms@gnu.org>
13943
13944 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13945
2c4685ee
AS
139462007-08-19 Andreas Schwab <schwab@suse.de>
13947
13948 * alloc.c (pure): Round PURESIZE up.
13949
880820fe 139502007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
13951
13952 * xterm.c (handle_one_xevent): Remove check that mouse click is in
13953 active frame.
13954
6e33efc4
RS
139552007-08-16 Richard Stallman <rms@gnu.org>
13956
13957 * eval.c (Fcommandp): Add parens to clarify.
13958
13959 * minibuf.c (Fall_completions): Use enum for type of table.
13960
13961 * emacs.c (USAGE2): Improve text.
13962
fcf8ff2e
GM
139632007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
13964
5205ee62
GM
13965 * term.c (tty_default_color_capabilities): Declare static
13966 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 13967
880820fe 139682007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
13969
13970 * gtkutil.c (update_frame_tool_bar): Use -1 as index
13971 to gtk_toolbar_insert.
13972
4a181359
SM
139732007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
13974
1bc99c9c
SM
13975 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13976
4a181359
SM
13977 * insdel.c (reset_var_on_error): New fun.
13978 (signal_before_change, signal_after_change):
13979 Use it to reset (after|before)-change-functions to nil in case of error.
13980 Bind inhibit-modification-hooks to t.
13981 Don't bind (after|before)-change-functions to nil while they run.
13982
6c28435c
YM
139832007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13984
13985 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13986 filling pixmap with stippled background.
13987
ad3b3e02
YM
139882007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13989
13990 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13991 Don't use invisible frame as parent window for repositioning.
13992
a22dec27
SM
139932007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
13994
13995 * print.c (new_backquote_output): Rename from old_backquote_output.
13996 (print): Inverse its logic (according to its name) so as to match the
13997 behavior of new_backquote_flag in lread.c.
13998
7b7d07bb
YM
139992007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14000
14001 * gmalloc.c (posix_memalign): New function.
14002
14003 * macterm.c (frame_highlight, frame_unhighlight): Don't call
14004 ActivateControl/DeactivateControl here.
14005 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
14006 frame-notice-user-settings is non-nil.
14007 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
14008 for kEventParamFMFontStyle.
14009 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
14010 mac_pass_command_to_system and mac_pass_control_to_system here.
14011 (XTread_socket): Call ActivateControl/DeactivateControl here.
14012 (XTread_socket) [TARGET_API_MAC_CARBON]:
14013 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
14014 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
14015 for window repositioning.
7b7d07bb 14016
22e9fe24
GM
140172007-08-08 Glenn Morris <rgm@gnu.org>
14018
14019 * Replace `iff' in doc-strings and comments.
14020
ae494350
CY
140212007-08-07 Chong Yidong <cyd@stupidchicken.com>
14022
14023 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
14024
6f2528d8
MR
140252007-08-07 Martin Rudalics <rudalics@gmx.at>
14026
14027 * fileio.c (Finsert_file_contents): Run format-decode and
14028 after_insert_file_functions on entire buffer when REPLACE is
14029 non-nil and inhibit modification_hooks and point_motion_hooks.
14030 For consistency, run after_insert_file_functions iff something
14031 got inserted. Move signal_after_change and update_compositions
14032 after code running after_insert_file_functions. Make sure that
6b8e474c 14033 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 14034
3ceeb306
YM
140352007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14036
14037 * emacs.c (main)
14038 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
14039 Call malloc_enable_thread on interactive startup.
14040
14041 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
14042 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
14043 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
14044 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
14045 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
14046 New functions.
14047
ca5e6fd5
CY
140482007-08-06 Chong Yidong <cyd@stupidchicken.com>
14049
32bfce5d
CY
14050 * xdisp.c (redisplay_window): When restoring original buffer
14051 position, make sure it is still valid.
14052
ca5e6fd5
CY
14053 * image.c (png_load): Ignore png-supplied background color.
14054
a5b11587
YM
140552007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14056
14057 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
14058 Use kCFAbsoluteTimeIntervalSince1970.
14059
14060 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
14061 New variable.
14062 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
14063 event loop should be quit.
14064 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
14065 Quit dialog event loop if quit_dialog_event_loop is set.
14066
14067 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
14068 (Selection): New typedef. Use instead of ScrapRef.
14069 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
14070 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
14071 (mac_clear_selection): Rename from clear_scrap.
14072 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 14073 scrap_has_target_type. All uses changed.
a5b11587
YM
14074 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14075 (mac_selection_has_target_p): New functions.
14076 (mac_put_selection_value): Rename from put_scrap_string.
14077 (mac_get_selection_value): Rename from get_scrap_string.
14078 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
14079 (put_scrap_private_timestamp, scrap_has_target_type)
14080 (get_scrap_private_timestamp): Remove functions.
14081 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
14082 (x_own_selection, x_get_local_selection):
14083 Use mac_valid_selection_value_p.
14084 (x_own_selection): Don't use put_scrap_private_timestamp.
14085 Record OWNERSHIP-INFO into Vselection_alist instead.
14086 (x_get_local_selection): Don't check type if request is local.
14087 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
14088 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
14089
880820fe 140902007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
14091
14092 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
14093 add comment explaining why.
14094
73ff9d42
RS
140952007-08-03 Richard Stallman <rms@gnu.org>
14096
14097 * fileio.c (Fvisited_file_modtime): Use make_time.
14098
54ed9a2d 140992007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
14100
14101 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
14102 build.
14103
65a9c8e2
SM
141042007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
14105
14106 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
14107
c5925799
KY
141082007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
14109
14110 * puresize.h (BASE_PURESIZE): Increase to 1130000.
14111
adef3de7
RS
141122007-07-30 Richard Stallman <rms@gnu.org>
14113
14114 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
14115
880820fe 141162007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
14117
14118 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
14119
a10421a1
NR
141202007-07-28 Nick Roberts <nickrob@snap.net.nz>
14121
14122 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
14123 remote default-directory.
14124
14125 * buffer.c (mode-line-format): Update doc string.
14126
0cb1ae20
YM
141272007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14128
14129 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
14130 scroll bar gap.
14131 (x_scroll_bar_create): Set bar->fringe_extended_p.
14132 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
14133 on frame edge. Check fringe background extension. Don't clear
14134 extended fringe background area.
14135
14136 * w32term.h (struct scroll_bar): New member fringe_extended_p.
14137 (w32_fill_area): Enclose multiple statements with do ... while (0).
14138
14139 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
14140 Extend fringe background to scroll bar gap.
14141 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
14142 Set bar->fringe_extended_p.
14143 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14144 Put leftmost/rightmost scroll bars on frame edge. Check fringe
14145 background extension. Don't clear extended fringe background area.
14146
14147 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14148 New member fringe_extended_p.
14149
cacc7b51
GM
141502007-07-25 Glenn Morris <rgm@gnu.org>
14151
14152 * Relicense all FSF files to GPLv3 or later.
14153
14154 * COPYING: Switch to GPLv3.
14155
89835619
SM
141562007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
14157
c4f46926
SM
14158 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
14159
14160 * data.c (Finteractive_form): Check for the presence of an
14161 `interactive-form' symbol property more thoroughly.
14162
14163 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
14164 present, analogous to the function-documentation property.
14165
ee04257d
JR
141662007-07-24 Jason Rumney <jasonr@gnu.org>
14167
14168 * w32fns.c (x_real_positions): Get real position from OS instead of
14169 calculating it.
14170
50624218
JR
141712007-07-23 Jason Rumney <jasonr@gnu.org>
14172
14173 * filelock.c (current_lock_owner): Allow for @ sign in username.
14174
3650f60e
NR
141752007-07-22 Nick Roberts <nickrob@snap.net.nz>
14176
14177 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
14178 remote default-directory.
14179
14180 * buffer.c (mode-line-format): Describe above case in doc string.
14181
1e899515 141822007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 14183
75be5258
EZ
14184 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
14185 Define if not defined.
14186
2b6e2f4d
JR
141872007-07-18 Jason Rumney <jasonr@gnu.org>
14188
14189 * w32proc.c (w32_executable_type): Handle 64 bit executables.
14190
23dacf80
JB
141912007-07-18 Richard Stallman <rms@gnu.org>
14192
14193 * data.c (Fsetq_default): Doc fix.
14194
14195 * eval.c (Fsetq): Doc fix.
14196
141972007-07-18 Juanma Barranquero <lekktu@gmail.com>
14198
14199 * coding.c (Ffind_operation_coding_system):
14200 * eval.c (For, Fand): Doc fixes.
880820fe 14201 Reported by Johan Bockgård.
23dacf80 14202
880820fe 142032007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 14204
23dacf80 14205 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 14206
23dacf80 14207 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
14208
14209 * xterm.c (x_ewmh_activate_frame): New function.
14210 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
14211
71ec17e6
MR
142122007-07-17 Martin Rudalics <rudalics@gmx.at>
14213
14214 * window.c (Fdisplay_buffer): If largest or LRU window is the
14215 only window, split it even if it is not eligible for splitting.
14216 This restores the original behavior broken by the 2007-07-15
14217 change.
14218
e9818042
GM
142192007-07-17 Glenn Morris <rgm@gnu.org>
14220
14221 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
14222 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14223 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
14224 constituents. Doc fix.
14225
e6fca843
SM
142262007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14227
14228 * process.c (Fstart_process, Fmake_network_process)
14229 (read_process_output): Fix up last changes.
14230
b5d2b4ab
EZ
142312007-07-16 Eli Zaretskii <eliz@gnu.org>
14232
14233 * makefile.w32-in (clean): Don't delete *~.
14234
413a79ad
AS
142352007-07-16 Andreas Schwab <schwab@suse.de>
14236
14237 * window.c (Fdisplay_buffer): Use NILP.
14238 (Fset_window_scroll_bars): Likewise.
14239
f1de8c77
MR
142402007-07-15 Martin Rudalics <rudalics@gmx.at>
14241
14242 * window.c (window_min_size_2): New function.
14243 (window_min_size_1, size_window, Fdisplay_buffer)
14244 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
14245 windows without mode- or header-lines when window-min-height is
14246 too small.
14247 (size_window): Reset nodelete_p after testing it, following an
14248 earlier note by Kim F. Storm.
14249 (display_buffer): Do not set split_height_threshold to twice the
14250 value of window_min_height to avoid changing the value of a
14251 customizable variable. Rather explicitly check whether the
14252 height of the window that shall be splitted is at least as large
14253 as split_height_threshold.
1af74d06
MB
14254 (Fwindow_full_width_p): New defun.
14255 (syms_of_window): Defsubr it.
d31053f9 14256
1af74d06 14257 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 14258
5e1ab613
JR
142592007-07-14 Jason Rumney <jasonr@gnu.org>
14260
14261 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
14262
f01cbfdd
RS
142632007-07-14 Richard Stallman <rms@gnu.org>
14264
14265 * eval.c (maybe_call_debugger): New function.
14266 (find_handler_clause): Use maybe_call_debugger.
14267 Call it when the handler says `debug'.
14268 Eliminate DEBUGGER_VALUE_PTR.
14269 (Fsignal): Eliminate debugger_value.
14270 (Qdebug): New variable.
14271 (syms_of_eval): Initialize it.
14272
1bab435a
JB
142732007-07-14 Juanma Barranquero <lekktu@gmail.com>
14274
14275 * eval.c (Fprogn):
14276 * keyboard.c (Ftrack_mouse):
14277 * print.c (Fwith_output_to_temp_buffer):
14278 * window.c (Fsave_window_excursion): Doc fix.
14279
be436d23
SM
142802007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
14281
14282 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
14283
60f0fb11
SM
142842007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
14285
14286 * process.h (struct Lisp_Process): Turn slots infd, outfd,
14287 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
14288 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
14289 read_output_delay, and read_output_skip from Lisp_Objects to ints.
14290 Remove unused encoding_carryover.
14291 * process.c: Adjust all functions accordingly.
14292
d8b18043
RS
142932007-07-12 Richard Stallman <rms@gnu.org>
14294
14295 * term.c: Include unistd.h only if HAVE_UNISTD_H.
14296
d5781bb6
JR
142972007-07-11 Jason Rumney <jasonr@gnu.org>
14298
14299 * makefile.w32-in (LIBS): Include OLE32.
14300
14301 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
14302 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
14303
5bb7dfee
SM
143042007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
14305
14306 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
14307 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
14308 from a Lisp_Object into a bare pointer.
14309 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14310 Adjust the code correspondingly.
14311
14312 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
14313
14314 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
14315 (term_show_mouse_face): Remove unused var `j'.
14316 (handle_one_term_event): Remove unused vars `i' and `j'.
14317 Don't cast return value of ttyname since it's not necessary.
14318
a1be1ce8
SM
143192007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
14320
5045e68e
SM
14321 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
14322 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
14323
8071c00f
SM
14324 * fns.c (map_char_table): Use an array of int for `indices' rather than
14325 an array of Lisp_Objects (which are only ever integers anyway).
14326 (Fmap_char_table): Update caller.
14327 * lisp.h: Update prototype.
14328 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
14329 * fontset.c (Ffontset_info):
14330 * casetab.c (set_case_table): Update callers.
14331
14332 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
14333
fab84e3c
SM
14334 * keymap.c (struct accessible_keymaps_data)
14335 (struct where_is_internal_data): New structures.
14336 (accessible_keymaps_1, where_is_internal_1): Use them to change
14337 interface to adhere to the one used by map_keymap.
14338 (Faccessible_keymaps, where_is_internal): Use map_keymap.
14339 (accessible_keymaps_char_table, where_is_internal_2): Remove.
14340
a1be1ce8
SM
14341 * keymap.h (map_keymap_function_t): More informative prototype.
14342
ef887810
RS
143432007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
14344
14345 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
14346 (looking_at_1): Don't change search_regs and last_thing_searched
14347 if `inhibit-changing-match-data' is non-nil.
14348 (string_match_1, search_buffer, set_search_regs): Likewise.
14349 (syms_of_search): Add Lisp level definition for
14350 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
14351 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
14352 start and end of the match, instead of using values in search_regs.
ef887810 14353
4d02fc25
SM
143542007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
14355
14356 * minibuf.c (Fcompleting_read): New value `confirm-only'
14357 for `require-match'.
14358
fe45b81f
SM
143592007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
14360
14361 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
14362 part of the 2007-06-27 change to syms_of_fileio.
14363
a56dd283
YM
143642007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14365
14366 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
14367 Check WINDOWP before using XWINDOW. Consolidate return statements.
14368
0cf9f5b5
RS
143692007-06-27 Richard Stallman <rms@gnu.org>
14370
14371 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14372
a66f285a
JB
143732007-06-27 Juanma Barranquero <lekktu@gmail.com>
14374
14375 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
14376
8d0d84d2
YM
143772007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14378
14379 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
14380 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
14381 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
14382 (_free_internal, memalign): Use them.
14383 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
14384 Initialize to PTHREAD_MUTEX_INITIALIZER.
14385 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
14386 (morecore_nolock): Rename from morecore. All uses changed.
14387 Use only nolock versions of internal allocation functions.
14388 (_malloc_internal_nolock, _realloc_internal_nolock)
14389 (_free_internal_nolock): New functions created from
14390 _malloc_internal, _realloc_internal, and _free_internal.
14391 (_malloc_internal, _realloc_internal, _free_internal): Use them.
14392 Copy hook value to automatic variable before its use.
14393 (memalign): Copy hook value to automatic variable before its use.
14394
5a0bbd9a
KH
143952007-06-26 Kenichi Handa <handa@m17n.org>
14396
14397 * coding.c (Ffind_operation_coding_system): Docstring improved.
14398 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
14399
9a51747b
DK
144002007-06-25 David Kastrup <dak@gnu.org>
14401
14402 * keymap.c (Fcurrent_active_maps): Add `position' argument.
14403 (Fwhere_is_internal): Adjust call to `current-active-maps' to
14404 cater for additional parameter.
14405
14406 * keymap.h: Adjust number of parameters to `current-active-maps'.
14407
14408 * doc.c (Fsubstitute_command_keys): Adjust call of
14409 `current-active-maps'.
14410
e4305426
DK
144112007-06-25 David Kastrup <dak@gnu.org>
14412
14413 * callint.c (Fcall_interactively): Make the parsing of interactive
14414 specs somewhat more readable.
14415
511a18d9
YM
144162007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14417
14418 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
14419 to scroll bar gap also when bitmap fills fringe. Draw only foreground
14420 if extended background has already been filled.
14421
512eb161
YM
144222007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14423
14424 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
14425 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
14426
14427 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
14428 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
14429 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
14430 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
14431 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
14432 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
14433 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
14434 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
14435 Run timers during dialog popup.
14436 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
14437
2386b1f1
JR
144382007-06-21 Jason Rumney <jasonr@gnu.org>
14439
14440 * image.c (convert_mono_to_color_image): Swap fore and background.
14441
fab8b787
JR
144422007-06-20 Jason Rumney <jasonr@gnu.org>
14443
14444 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
14445 (w32_free_bdf_font): Unmap memory not handle.
14446
15bdd7a0 144472007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
14448
14449 * gmalloc.c (__morecore): Fix the declaration to comply with the
14450 definition.
14451
1bb8a291
JB
144522007-06-20 Juanma Barranquero <lekktu@gmail.com>
14453
14454 * w32term.c (w32_delete_display): Remove leftover declaration.
14455 (w32_define_cursor, w32_initialize): Make static.
14456
14457 * w32.c (_wsa_errlist): Fix typo in error message.
14458 (init_environment): Ignore any environment variable from the
14459 registry having a null value.
14460
92648dea
GM
144612007-06-20 Glenn Morris <rgm@gnu.org>
14462
14463 * Makefile.in (LIBGIF): Default to -lgif.
14464
ff25d115
JR
144652007-06-17 Jason Rumney <jasonr@gnu.org>
14466
14467 * w32menu.c (add_menu_item): Don't use multibyte string functions on
14468 unicode strings.
14469
a1a578a5
JB
144702007-06-16 Juanma Barranquero <lekktu@gmail.com>
14471
14472 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
14473 Fix typo in docstring.
14474
af41f8a8
EZ
144752007-06-16 Eli Zaretskii <eliz@gnu.org>
14476
14477 * w32menu.c (add_menu_item): Escape `&' characters in menu items
14478 and their keybindings.
14479
8b29cab9
CY
144802007-06-15 Chong Yidong <cyd@stupidchicken.com>
14481
14482 * composite.c (update_compositions): Fix last fix.
14483
c433c134
JR
144842007-06-14 Jason Rumney <jasonr@gnu.org>
14485
14486 * w32.c (get_process_times_fn): New function pointer.
14487 (globals_of_w32): Intialize it if present in kernel32.dll.
14488 (w32_get_internal_run_time): New function.
14489
14490 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
14491
553d3164
KH
144922007-06-14 Kenichi Handa <handa@etlken.m17n.org>
14493
14494 * composite.c (update_compositions): Check the validness of
14495 compositions.
14496
446ba96f
YM
144972007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14498
14499 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
14500 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
14501
14502 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
14503 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
14504
14505 * macgui.h (USE_MAC_TOOLBAR): New define.
14506
14507 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14508 Return immediately unless popup is activated.
14509
14510 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
14511 background to scroll bar gap.
14512 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
14513 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
14514 scroll bars on frame edge. Check fringe background extension.
14515 Don't clear extended fringe background area.
14516 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
14517 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
14518 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
14519 [USE_MAC_TOOLBAR]: New macros.
14520 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
14521 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
14522 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
14523 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
14524 [USE_MAC_TOOLBAR]: New functions.
14525 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
14526 manually if previous repositioning has failed.
14527 (mac_handle_keyboard_event): Use precomputed event kind.
14528 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
14529 as tool bar item click. Handle mouse movement over tool bar items.
14530
14531 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
14532 toolbar_win_gravity.
14533 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
14534 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
14535 Add externs.
14536
14537 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
14538 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
14539
9720173f
CY
145402007-06-14 Chong Yidong <cyd@stupidchicken.com>
14541
14542 * image.c (search_image_cache): Remove unused variable.
14543
1217dd00
CY
145442007-06-13 Chong Yidong <cyd@stupidchicken.com>
14545
14546 * xfns.c, xmenu.c: Link to xaw3d if available.
14547
c5b8e0ea
YM
145482007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14549
14550 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
14551 frame_foreground and frame_background.
14552
14553 * image.c (lookup_image): Save frame foreground and background colors.
14554 (search_image_cache): Check if saved and current frame colors match.
14555
c69b0314
SM
145562007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14557
14558 * regex.c (regex_compile): Remove the `regnum' counter.
14559 Use bufp->re_nsub instead. Add support for \(?N:RE\).
14560
c9612b8e
SM
145612007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14562
14563 * term.c: Include intervals.h to declare Fget_text_property.
14564
843d2458
JR
145652007-06-10 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
14568
1e0d2d60 145692007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
14570
14571 * callint.c (Fcall_interactively):
14572 * editfns.c (Fdelete_and_extract_region):
14573 * fileio.c (Fread_file_name):
14574 * fns.c (Fmapconcat):
14575 * keyboard.c (cmd_error_internal):
14576 * keymap.c (Fkey_description):
14577 * lread.c (openp):
14578 * minibuf.c (read_minibuf):
14579 * search.c (wordify):
14580 * sunfns.c (sel_read):
14581 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
14582 * xfns.c (x_default_scroll_bar_color_parameter):
14583 * xmenu.c (menu_help_callback):
14584 * xselect.c (Fx_get_atom_name):
14585 * xterm.c (x_term_init): Use empty_unibyte_string.
14586
15bdd7a0 145872007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
14588
14589 * alloc.c (init_strings): Initialize canonical empty strings.
14590 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
14591 canonical empty string when the requested size is 0.
14592
14593 * emacs.c (empty_unibyte_string): Rename from empty_string.
14594 (empty_multibyte_string): New canonical empty string.
14595 (syms_of_emacs): Don't initialize empty_string.
14596
14597 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
14598 string, if appropriate.
14599 (empty_unibyte_string, empty_multibyte_string): New externs.
14600 (empty_string): Remove extern.
14601
14602 * lread.c (syms_of_lread): Use empty_unibyte_string.
14603
42c4c67a
JR
146042007-06-07 Jason Rumney <jasonr@gnu.org>
14605
14606 * s/ms-w32.h: Don't define HAVE_TZNAME.
14607
14608 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
14609
aa8280d3
YM
146102007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14611
14612 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
14613
14614 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
14615 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
14616
14617 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14618 Don't call next handler.
14619 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
14620 Remove argument. Install handler to application.
14621 (set_frame_menubar): Don't change deep_p.
1e0d2d60 14622 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
14623 FRAME_OUTER_TO_INNER_DIFF_Y.
14624 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14625 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14626 [HAVE_DIALOGS]: New macros.
14627 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
14628 Use them.
14629 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
14630
14631 * macselect.c [MAC_OSX] (install_service_handler): Rename from
14632 init_service_handler. All callers changed. Return OSStatus value.
14633
14634 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
14635 All callers changed so as not to call SetPortWindowPort.
14636 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
14637 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
14638 mac_draw_string_common.
14639 (mac_draw_image_string_qd): Likewise.
14640 (mac_draw_string_common): Use them. Add INLINE.
14641 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
14642 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
14643 GetGlobalMouse.
14644 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
14645 and FRAME_OUTER_TO_INNER_DIFF_Y.
14646 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
14647 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
14648 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
14649 repositioning window to mac_handle_window_event.
14650 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
14651 saving window location to mac_handle_window_event
14652 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
14653 (install_menu_target_item_handler): Remove argument in extern.
14654 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
14655 Also accept command events.
14656 (do_keystroke): New function created from XTread_socket.
14657 (init_command_handler): Remove functions.
14658 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
14659 and save window location by kEventWindowShowing and kEventWindowHiding
14660 handlers here. Don't call next handler for window state change and
14661 focus events.
14662 (mac_handle_application_event, mac_handle_keyboard_event)
14663 [TARGET_API_MAC_CARBON]: New functions.
14664 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
14665 kEventWindowShowing and kEventWindowHiding events. Move installation
14666 of mouse, font, text input and menu target item handlers to
14667 install_application_handler.
14668 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
14669 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14670 New function.
14671 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14672 Register it.
c9612b8e
SM
14673 (XTread_socket) [TARGET_API_MAC_CARBON]:
14674 Consolidate SendEventToEventTarget calls.
14675 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
14676 Move application activation handler to mac_handle_application_event.
14677 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
14678 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
14679 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
14680 init_command_handler. Call install_application_handler.
14681
14682 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
14683 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
14684
6926c954
GM
146852007-06-07 Glenn Morris <rgm@gnu.org>
14686
14687 * emacs.c (main): Use `emacs-copyright' in --version output.
14688
6fe04c89
CY
146892007-06-06 Chong Yidong <cyd@stupidchicken.com>
14690
c9612b8e 14691 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 14692
7eb0d727
YM
146932007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14694
14695 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
785ce0ac 14696
7eb0d727
YM
14697 * macgui.h: Replace WindowPtr with WindowRef.
14698
14699 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14700 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14701 Replace ControlHandle with ControlRef.
14702 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
14703
14704 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14705 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14706 Replace ControlHandle with ControlRef.
14707 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
14708 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
14709
14710 * macterm.h (struct scroll_bar): Rename member control_handle_low
14711 and control_handle_high to control_ref_low and control_ref_high.
14712 All uses changed.
14713 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
14714 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
14715 respectively. All uses changed.
14716 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
14717 (install_window_handler, remove_window_handler): Replace WindowPtr
14718 with WindowRef in externs.
14719
65fddb74
JB
147202007-06-05 Juanma Barranquero <lekktu@gmail.com>
14721
14722 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
14723
db1213a9
NR
147242007-06-03 Nick Roberts <nickrob@snap.net.nz>
14725
14726 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
14727
65fddb74 14728 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
14729 Condition on HAVE_GPM too.
14730
14731 * term.c (term_mouse_highlight): Remove unused variables.
14732 (Fterm_open_connection): Set gpm_zerobased to 1.
14733 (term_mouse_movement, term_mouse_click, handle_one_term_event):
14734 Use zero based co-ordinates.
14735 (handle_one_term_event): Report a drag as mouse movement too.
14736
14737 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
14738
d94df25b
CY
147392007-06-03 Chong Yidong <cyd@stupidchicken.com>
14740
14741 * image.c (search_image_cache): New function. Require background
14742 color match if background color is unspecified in the image spec.
14743 (uncache_image, lookup_image): Use it.
14744
4797b6d9
JB
147452007-06-01 Juanma Barranquero <lekktu@gmail.com>
14746
14747 * window.c (Fshrink_window): Reflow docstring.
14748
1ffe7343
NR
147492007-06-02 Chong Yidong <cyd@stupidchicken.com>
14750
14751 * Version 22.1 released.
14752
147532007-06-01 Richard Stallman <rms@gnu.org>
14754
14755 * xfns.c (x_encode_text): Add GCPRO.
14756
147572007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14758
14759 * xfns.c (x_set_name_internal): Save encoded name before
14760 x_encode_text in case string data is relocated.
14761
147622007-05-31 Richard Stallman <rms@gnu.org>
14763
14764 * buffer.c (syms_of_buffer): Doc fix.
14765
147662007-05-30 Nick Roberts <nickrob@snap.net.nz>
14767
14768 * sysdep.c (init_sys_modes): Add rather than replace with
14769 O_NONBLOCK.
14770
14771 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
14772 term_mouse_moveto.
14773
14774 * termhooks.h (term_mouse_moveto): New extern.
14775
14776 * term.c (mouse_face_window): Rename...
14777 (Qmouse_face_window): ...to this.
14778 (term_show_mouse_face, term_clear_mouse_face)
14779 (term_mouse_highlight): Use Qmouse_face_window.
14780 (term_mouse_moveto): New function.
14781 (term_mouse_position): Make it work.
14782 (syms_of_term): Uncomment assignment to mouse_position_hook.
14783 Staticpro Qmouse_face_window.
14784
147852007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14786
14787 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
14788 around current_column call.
14789
147902007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
14791
14792 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
14793 * xdisp.c (next_element_from_buffer):
14794 * window.c (delete_window):
14795 * term.c (term_mouse_highlight):
14796 * msdos.c (getdefdir):
14797 * macterm.c (mac_create_bitmap_from_bitmap_data)
14798 (init_font_name_table):
14799 * fns.c (Fsxhash):
14800 * data.c (Fmake_local_variable):
14801 * ccl.c (ccl_driver): Likewise.
14802
148032007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14804
14805 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
14806 Call mac_wakeup_from_rne on window size change.
14807
148082007-05-25 Chong Yidong <cyd@stupidchicken.com>
14809
14810 * image.c (uncache_image): Fix typo.
14811
148122007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
14813
14814 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
14815
148162007-05-22 Richard Stallman <rms@gnu.org>
14817
14818 * xterm.c (x_connection_closed): Remove NO_RETURN.
14819
148202007-05-22 Martin Rudalics <rudalics@gmx.at>
14821
14822 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
14823
148242007-05-21 Chong Yidong <cyd@stupidchicken.com>
14825
14826 * image.c (uncache_image): New function.
14827 (Fimage_refresh): New function.
14828
880820fe 148292007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14830
14831 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
14832
148332007-05-20 Nick Roberts <nickrob@snap.net.nz>
14834
14835 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
14836 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
14837
148382007-05-20 Nick Roberts <nickrob@snap.net.nz>
14839
14840 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
14841 conditional on [HAVE_GPM_H].
14842
148432007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14844
14845 * syntax.c (skip_chars): Update syntax-table only after we checked that
14846 the new location is valid.
14847
148482007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14849
14850 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
14851 mac_get_window_bounds.
14852
148532007-05-20 Nick Roberts <nickrob@snap.net.nz>
14854
14855 * Makefile.in (LIBGPM): Allow it to be set from configure.
14856 If set then link Emacs with it.
14857
14858 * config.in: Regenerate.
14859
14860 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
14861 New externs.
14862
14863 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
14864 Include gpm.h.
14865 (handle_one_term_event, term_gpm): New externs.
14866
14867 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
14868 and allow it to be interrupted by SIGIO.
14869
14870 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
14871 (wait_reading_process_output): Wait on gpm_fd too.
14872 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
14873 (add_gpm_wait_descriptor_called_flag): New variable.
14874 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
14875
14876 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
14877 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
14878 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14879 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14880 (make_lispy_event): Add case GPM_CLICK_EVENT.
14881 (read_avail_input): Handle mouse input.
14882
14883 * term.c (write_glyphs_with_face): New function.
14884 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14885 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14886 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14887 (mouse_face_face_id, term_gpm, pos_x, pos_y)
14888 (last_mouse_x, last_mouse_y): New variables.
14889 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14890 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14891 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14892 (Fterm_close_connection): New functions.
14893 (term_init): Initialise mouse_face_window.
14894
148952007-05-19 Chong Yidong <cyd@stupidchicken.com>
14896
14897 * xdisp.c (redisplay_window): If first window line is a
14898 continuation line, recompute the new window start instead of
14899 recentering.
14900
149012007-05-18 Glenn Morris <rgm@gnu.org>
14902
14903 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14904 Suggested by Alfred M. Szmidt <ams@gnu.org>.
14905
149062007-05-17 Glenn Morris <rgm@gnu.org>
14907
14908 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14909
149102007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14911
14912 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14913 dead key repeat and up events.
14914
149152007-05-14 Chong Yidong <cyd@stupidchicken.com>
14916
14917 * image.c (pbm_load): Check image size for monochrome pbm.
14918
149192007-05-13 Chong Yidong <cyd@stupidchicken.com>
14920
14921 * xterm.c (XTread_socket): Revert last change.
14922
149232007-05-12 Chong Yidong <cyd@stupidchicken.com>
14924
14925 * image.c (pbm_load): Correctly check image size for greyscale pbm.
14926
14927 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14928
149292007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14930
14931 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14932 mixup (YAILOM).
14933
149342007-05-07 Andreas Schwab <schwab@suse.de>
14935
14936 * keymap.c (Flookup_key): Fix typo in last change.
14937
149382007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14939
14940 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14941 mapping for unibyte strings.
14942
149432007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14944
14945 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14946 (Fx_popup_dialog) [MAC_OSX]: Likewise.
14947
149482007-04-29 Richard Stallman <rms@gnu.org>
14949
14950 * insdel.c (replace_range): For undo, record insertion first.
14951
149522007-04-29 Andreas Schwab <schwab@suse.de>
14953
14954 * lisp.h (VECSIZE): Use OFFSETOF.
14955
149562007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14957
14958 * xdisp.c (try_window_reusing_current_matrix): Fix number of
14959 disabled lines.
14960
149612007-04-28 Richard Stallman <rms@gnu.org>
14962
14963 * lread.c (read_escape): In a string, \s is always space.
14964
880820fe 149652007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14966
14967 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14968
14969 * gtkutil.c (xg_update_menubar, create_menus): Create empty
14970 submenu for menu bar items.
14971
382c648d 14972See ChangeLog.10 for earlier changes.
6922b018
KH
14973
14974;; Local Variables:
880820fe 14975;; coding: utf-8
33462dfa 14976;; add-log-time-zone-rule: t
67e8d28a 14977;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 14978;; End:
2a34a036 14979
59ce725a 14980 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
14981
14982 This file is part of GNU Emacs.
14983
5a1dde61 14984 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 14985 it under the terms of the GNU General Public License as published by
5a1dde61
GM
14986 the Free Software Foundation, either version 3 of the License, or
14987 (at your option) any later version.
7f6d64f8
GM
14988
14989 GNU Emacs is distributed in the hope that it will be useful,
14990 but WITHOUT ANY WARRANTY; without even the implied warranty of
14991 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14992 GNU General Public License for more details.
14993
14994 You should have received a copy of the GNU General Public License
5a1dde61 14995 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 14996
28f60c3d 14997;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40